/* ============================================================
   LAAP Suite Console — style.css
   Consistent with LaFaries Mortimer LLC design system
   ============================================================ */

:root {
  --bg: #070b18;
  --panel: #0e0f12;
  --midnight: #0b1020;
  --gold: #f6c453;
  --gold-deep: #c89222;
  --gold-glow: rgba(246,196,83,.35);
  --ink: #ffffff;
  --muted: rgba(255,255,255,.65);
  --line: rgba(255,255,255,.10);
  --shadow: 0 18px 45px rgba(0,0,0,.55);
  --radius: 16px;
  --heading: "Cormorant Garamond", serif;
  --body: "Inter", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background:
    radial-gradient(circle at 20% 10%, rgba(246,196,83,.12), transparent 45%),
    radial-gradient(circle at 85% 30%, rgba(246,196,83,.08), transparent 45%),
    var(--bg);
  color: var(--ink);
  font-family: var(--body);
  min-height: 100vh;
}

/* ── APP WRAPPER ── */
.laap-app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── HEADER ── */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7,11,24,.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

/* ── BRAND ── */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(246,196,83,.5), 0 8px 22px rgba(246,196,83,.3);
  object-fit: cover;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0b0b0c;
  font-weight: 900;
  font-size: 18px;
  box-shadow: 0 0 0 2px rgba(246,196,83,.4), 0 8px 22px rgba(246,196,83,.35);
}

.brand-text h1 {
  margin: 0;
  font-family: var(--heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}

.brand-text p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .04em;
}

/* ── PROGRESS ── */
.progress-wrapper {
  flex: 1;
  max-width: 420px;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--muted);
}

.progress-label span:first-child {
  color: rgba(246,196,83,.85);
  font-weight: 600;
}

.progress-bar {
  height: 4px;
  background: rgba(255,255,255,.1);
  border-radius: 999px;
  overflow: hidden;
}

#progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-deep));
  border-radius: 999px;
  transition: width .4s ease;
  width: 0%;
}

/* ── MAIN ── */
.app-main {
  flex: 1;
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
  padding: 50px 24px 40px;
}

/* ── STEPS ── */
.step {
  display: none;
}

.step.active {
  display: block;
}

.step h2 {
  font-family: var(--heading);
  font-size: 36px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--ink);
}

.step-desc {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  margin: 0 0 32px;
  max-width: 60ch;
}

/* ── GRID ── */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 640px) {
  .grid-2 { grid-template-columns: 1fr; }
}

/* ── FIELDS ── */
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label,
.group-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(246,196,83,.85);
}

input[type="text"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(15,21,45,.75);
  color: var(--ink);
  font-size: 14px;
  font-family: var(--body);
  transition: border-color .2s, box-shadow .2s;
}

input::placeholder,
textarea::placeholder {
  color: rgba(255,255,255,.35);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(246,196,83,.6);
  box-shadow: 0 0 0 3px var(--gold-glow);
  background: rgba(15,21,45,.9);
}

textarea {
  resize: vertical;
  min-height: 100px;
}

/* ── CHECKBOX GROUP ── */
.checkbox-group {
  margin-top: 8px;
}

.checkbox-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.checkbox-row label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  cursor: pointer;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(15,21,45,.5);
  transition: border-color .2s, background .2s;
}

.checkbox-row label:hover {
  border-color: rgba(246,196,83,.4);
  background: rgba(15,21,45,.8);
}

.checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
  flex-shrink: 0;
  padding: 0;
  border-radius: 4px;
}

/* ── SUMMARY CARDS ── */
.summary-card {
  background: rgba(14,15,18,.85);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

.summary-card h3 {
  font-family: var(--heading);
  font-size: 20px;
  margin: 0 0 14px;
  color: var(--gold);
}

.summary-card p {
  margin: 6px 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.summary-card p strong {
  color: var(--ink);
}

.summary-card ul,
.summary-card ol {
  margin: 8px 0 0 18px;
  padding: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.summary-card.checklist {
  border-color: rgba(246,196,83,.3);
  box-shadow: 0 0 40px rgba(246,196,83,.08);
}

/* ── FOOTER ── */
.app-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--line);
  background: rgba(7,11,24,.8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.nav-buttons {
  display: flex;
  gap: 12px;
}

.footer-note {
  font-size: 12px;
  color: rgba(255,255,255,.35);
  max-width: 480px;
  line-height: 1.5;
}

/* ── BUTTONS ── */
.btn-primary {
  padding: 14px 28px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #070b18;
  font-weight: 700;
  font-size: 14px;
  font-family: var(--body);
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(246,196,83,.35);
  transition: transform .2s ease, box-shadow .2s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(246,196,83,.45);
}

.btn-primary:disabled {
  opacity: .4;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  padding: 14px 28px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  font-family: var(--body);
  cursor: pointer;
  transition: all .2s ease;
}

.btn-secondary:hover {
  border-color: rgba(246,196,83,.4);
  background: rgba(246,196,83,.06);
}

.btn-secondary:disabled {
  opacity: .4;
  cursor: not-allowed;
}

/* ── MOBILE ── */
@media (max-width: 640px) {
  .app-header { padding: 12px 16px; }
  .progress-wrapper { display: none; }
  .app-main { padding: 30px 16px; }
  .step h2 { font-size: 28px; }
  .app-footer { flex-direction: column; align-items: flex-start; }
}
