/* ============================================
   AgenticCore Pakistan — design system
   Colour tokens copied verbatim from agenticcore.estate
   (deep emerald + gold) so both sites read as one family.
   Mobile first: designed at 360px, scaled up.
   ============================================ */

:root {
  --bg-primary: #071F17;
  --bg-panel: #0C3324;
  --bg-panel-hover: #103E2C;
  --border-subtle: #1D4835;
  --accent-gold: #D4AF37;
  --accent-gold-bright: #F0CE63;
  --accent-emerald: #3FAE7B;
  --text-primary: #F4EFE0;
  --text-secondary: #9BB9A9;
  --text-tertiary: #62806E;
  --danger: #E2726B;
  --danger-bg: rgba(226, 114, 107, 0.1);

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-urdu: 'Noto Nastaliq Urdu', serif;

  --wa-green: #1FA855;
  --wa-green-dark: #178A45;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --mobile-bar-h: 56px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  background: var(--bg-primary);
  background-image:
    radial-gradient(ellipse 900px 500px at 15% -10%, rgba(212, 175, 55, 0.07), transparent),
    radial-gradient(ellipse 900px 600px at 100% 0%, rgba(63, 174, 123, 0.10), transparent);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

html[lang="ur"] body { font-family: var(--font-urdu), var(--font-body); line-height: 2; }
html[dir="rtl"] { direction: rtl; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; }
html[lang="ur"] h1, html[lang="ur"] h2, html[lang="ur"] h3, html[lang="ur"] h4 {
  font-family: var(--font-urdu), var(--font-display); font-weight: 700; letter-spacing: 0; line-height: 1.8;
}

a { color: inherit; text-decoration: none; }
p a, .link { color: var(--accent-gold-bright); text-decoration: underline; text-underline-offset: 3px; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; font-size: inherit; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent-gold); outline-offset: 3px; border-radius: 4px; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .container { padding: 0 var(--space-lg); } }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--font-mono); }
.muted { color: var(--text-secondary); }
.tiny { font-size: 0.85rem; color: var(--text-tertiary); }
.gold { color: var(--accent-gold-bright); }
.hidden { display: none !important; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(7, 31, 23, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); min-height: 60px; }
.nav-logo { display: flex; align-items: center; gap: 0.55rem; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; white-space: nowrap; }
.nav-logo img { width: 32px; height: 32px; border-radius: 6px; }
.brand-suffix { color: var(--accent-gold); margin-inline-start: 0.3rem; font-weight: 600; }
.nav-right { display: flex; align-items: center; gap: var(--space-md); }
.nav-links { display: flex; gap: var(--space-md); font-size: 0.95rem; color: var(--text-secondary); }
.nav-links a:hover, .nav-links a.active { color: var(--accent-gold-bright); }
.nav-cta { display: flex; align-items: center; gap: 0.6rem; }
.nav-mobile-actions { display: none; align-items: center; gap: 0.4rem; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px; }
.icon-btn svg { width: 24px; height: 24px; }
.icon-btn.wa { color: var(--wa-green); }

.lang-toggle {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0.3rem 0.8rem;
  border-radius: 999px; border: 1px solid var(--border-subtle); color: var(--text-secondary); font-size: 0.9rem;
}
.lang-toggle:hover { border-color: var(--accent-gold); color: var(--accent-gold-bright); }
.lang-toggle .sep { opacity: 0.5; margin: 0 0.35rem; }
.lang-toggle .on { color: var(--accent-gold-bright); font-weight: 600; }

@media (max-width: 960px) {
  .nav-mobile-actions { display: flex; }
  .nav-right {
    display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--bg-primary); border-bottom: 1px solid var(--border-subtle); padding: var(--space-sm) 16px var(--space-md);
  }
  .nav-right.open { display: flex; }
  .nav-links { flex-direction: column; gap: 0; }
  .nav-links a { padding: 0.8rem 0; border-bottom: 1px solid var(--border-subtle); font-size: 1rem; }
  .nav-cta { flex-wrap: wrap; padding-top: var(--space-sm); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.7rem 1.4rem; border-radius: 999px;
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-align: center;
  transition: transform 0.15s ease, filter 0.15s ease, background 0.15s ease;
}
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn-sm { min-height: 40px; padding: 0.45rem 1rem; font-size: 0.92rem; }
.btn-primary { background: linear-gradient(135deg, var(--accent-gold-bright), var(--accent-gold)); color: #16250D; }
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-secondary { border: 1px solid var(--border-subtle); color: var(--text-primary); background: transparent; }
.btn-secondary:hover { border-color: var(--accent-gold); color: var(--accent-gold-bright); }
.btn-wa { background: var(--wa-green); color: #fff; }
.btn-wa:hover { background: var(--wa-green-dark); }
.btn-danger { border: 1px solid var(--danger); color: var(--danger); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- Sections ---------- */
section { padding: var(--space-xl) 0; }
.section-alt { background: rgba(12, 51, 36, 0.45); border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.eyebrow { display: inline-block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-gold); margin-bottom: 0.6rem; }
html[lang="ur"] .eyebrow { letter-spacing: 0; text-transform: none; font-size: 0.9rem; }
.section-title { font-size: clamp(1.6rem, 5vw, 2.4rem); margin-bottom: 0.75rem; }
.section-sub { color: var(--text-secondary); max-width: 680px; font-size: 1.05rem; }
.section-head { margin-bottom: var(--space-lg); }
.roman-urdu { color: var(--accent-gold-bright); font-style: italic; }

/* ---------- Hero ---------- */
.hero { padding: var(--space-lg) 0 var(--space-xl); }
.hero-grid { display: grid; gap: var(--space-lg); align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.15fr 0.85fr; } .hero { padding-top: var(--space-xl); } }
.hero h1 { font-size: clamp(2rem, 7vw, 3.3rem); margin-bottom: var(--space-sm); }
.hero h1 .accent { color: var(--accent-gold-bright); }
.hero-sub { color: var(--text-secondary); font-size: 1.1rem; margin-bottom: var(--space-md); max-width: 600px; }
.trust-line { margin-top: var(--space-sm); font-size: 0.92rem; color: var(--text-secondary); display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; }
.trust-line span::before { content: '✓ '; color: var(--accent-emerald); }

/* phone mock showing the real "My tasks" screen */
.phone {
  width: min(300px, 100%); margin: 0 auto; border-radius: 34px; padding: 12px;
  background: #031510; border: 1px solid var(--border-subtle);
  box-shadow: 0 30px 80px rgba(0,0,0,0.45), 0 0 0 6px rgba(212,175,55,0.08);
}
.phone-screen { border-radius: 24px; background: var(--bg-primary); padding: 14px; min-height: 420px; font-size: 0.85rem; }
.phone-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-weight: 600; }
.phone-chips { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.phone-chip { padding: 3px 9px; border-radius: 999px; border: 1px solid var(--border-subtle); font-size: 0.72rem; color: var(--text-secondary); }
.phone-chip.on { background: var(--accent-gold); color: #16250D; border-color: var(--accent-gold); }
.phone-task { background: var(--bg-panel); border: 1px solid var(--border-subtle); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; }
.phone-task .row { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.phone-task .id { font-family: var(--font-mono); color: var(--accent-gold-bright); font-size: 0.75rem; }
.phone-task .svc { margin: 3px 0; font-size: 0.82rem; }
.phone-task .due { font-size: 0.72rem; color: var(--text-tertiary); }
.phone-caption { text-align: center; font-size: 0.8rem; color: var(--text-tertiary); margin-top: 0.75rem; }

/* ---------- Status pills (shared with dashboard) ---------- */
.pill { display: inline-flex; align-items: center; gap: 0.3rem; padding: 2px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; white-space: nowrap; border: 1px solid transparent; }
.pill-received { background: rgba(155,185,169,0.12); color: var(--text-secondary); }
.pill-waiting_on_you { background: rgba(240,206,99,0.14); color: var(--accent-gold-bright); border-color: rgba(240,206,99,0.3); }
.pill-confirmed { background: rgba(63,174,123,0.14); color: #6FD3A2; }
.pill-in_progress { background: rgba(63,174,123,0.22); color: #8BE3B8; }
.pill-ready_for_review { background: rgba(212,175,55,0.2); color: var(--accent-gold-bright); }
.pill-changes_requested { background: rgba(226,114,107,0.14); color: #F0A09A; }
.pill-delivered { background: rgba(63,174,123,0.3); color: #C9F2DD; }
.pill-cancelled { background: rgba(98,128,110,0.18); color: var(--text-tertiary); text-decoration: line-through; }
.pill-new { background: rgba(212,175,55,0.16); color: var(--accent-gold-bright); font-size: 0.7rem; padding: 1px 8px; }

/* ---------- Cards / grids ---------- */
.card { background: var(--bg-panel); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: var(--space-md); }
.grid { display: grid; gap: var(--space-sm); }
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } .grid { gap: var(--space-md); } }

/* ---------- A3 problems ---------- */
.tabs { display: flex; gap: 0.5rem; overflow-x: auto; padding-bottom: 4px; margin-bottom: var(--space-md); scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex-shrink: 0; min-height: 44px; padding: 0.5rem 1.1rem; border-radius: 999px; border: 1px solid var(--border-subtle); color: var(--text-secondary); font-weight: 600; }
.tab[aria-selected="true"] { background: var(--accent-gold); border-color: var(--accent-gold); color: #16250D; }
.problem { display: grid; gap: 0.35rem; }
.problem q { font-size: 1.05rem; color: var(--text-primary); quotes: '“' '”'; }
.problem .answer { color: var(--accent-emerald); font-weight: 600; }
.problem .answer::before { content: '→ '; }
html[dir="rtl"] .problem .answer::before { content: '← '; }
.card-link { display: inline-flex; align-items: center; gap: 0.35rem; min-height: 44px; color: var(--wa-green); font-weight: 600; font-size: 0.95rem; }

/* ---------- A4 service groups ---------- */
.group-card { display: flex; flex-direction: column; gap: 0.75rem; }
.group-card h3 { font-size: 1.25rem; }
.group-card .benefit { color: var(--text-secondary); }
.group-type { font-size: 0.8rem; color: var(--text-tertiary); }
.svc-mini { display: flex; justify-content: space-between; gap: 0.75rem; padding: 0.55rem 0; border-top: 1px dashed var(--border-subtle); font-size: 0.95rem; }
.svc-mini .p { color: var(--accent-gold-bright); white-space: nowrap; font-weight: 600; text-align: end; }
.svc-mini .d { display: block; font-size: 0.78rem; color: var(--text-tertiary); font-weight: 400; }
.group-note { font-size: 0.88rem; background: rgba(63,174,123,0.1); border-radius: var(--radius-sm); padding: 0.6rem 0.8rem; color: #BFE8D2; }

details.acc { border-top: 1px solid var(--border-subtle); }
details.acc > summary { list-style: none; cursor: pointer; min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-weight: 600; padding: 0.6rem 0; }
details.acc > summary::-webkit-details-marker { display: none; }
details.acc > summary::after { content: '+'; font-size: 1.4rem; color: var(--accent-gold); line-height: 1; }
details.acc[open] > summary::after { content: '–'; }
.acc-body { padding-bottom: var(--space-sm); }

.svc-full { padding: var(--space-sm) 0; border-top: 1px solid var(--border-subtle); }
.svc-full:first-child { border-top: 0; }
.svc-full h4 { font-size: 1.05rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.svc-full .no { font-family: var(--font-mono); color: var(--text-tertiary); font-size: 0.85rem; }
.svc-full .brief { color: var(--text-secondary); margin: 0.25rem 0 0.5rem; font-size: 0.95rem; }
.price-line { margin: 0.4rem 0; padding: 0.55rem 0.75rem; border-radius: var(--radius-sm); background: rgba(7,31,23,0.6); border: 1px solid var(--border-subtle); font-size: 0.93rem; }
.model-tag { display: inline-block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-gold); margin-bottom: 0.15rem; }
html[lang="ur"] .model-tag { letter-spacing: 0; text-transform: none; font-size: 0.8rem; }
.price-line .extra { display: block; color: var(--text-secondary); font-size: 0.86rem; margin-top: 0.2rem; }
.delivery { font-size: 0.88rem; color: #BFE8D2; margin-top: 0.35rem; }
.delivery::before { content: '⏱ '; }
.caution { margin-top: 0.5rem; padding: 0.7rem 0.85rem; border-radius: var(--radius-sm); background: var(--danger-bg); border: 1px solid rgba(226,114,107,0.35); color: #F3C1BD; font-size: 0.9rem; }

/* ---------- A5 packages ---------- */
.pkg-scroller { display: grid; grid-auto-flow: column; grid-auto-columns: 86%; gap: var(--space-sm); overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 12px; scrollbar-width: thin; }
.pkg-scroller > * { scroll-snap-align: center; }
@media (min-width: 720px) { .pkg-scroller { grid-auto-columns: 48%; } }
@media (min-width: 1100px) { .pkg-scroller { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; } }
.pkg { position: relative; display: flex; flex-direction: column; gap: 0.7rem; }
.pkg.featured { border-color: var(--accent-gold); box-shadow: 0 0 0 1px var(--accent-gold) inset; }
.pkg .badge { align-self: flex-start; background: var(--accent-gold); color: #16250D; font-size: 0.75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.pkg h3 { font-size: 1.3rem; }
.pkg .for { color: var(--text-secondary); font-size: 0.93rem; }
.pkg .price { font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; color: var(--accent-gold-bright); line-height: 1.1; }
.pkg .price small { font-size: 0.95rem; font-weight: 500; color: var(--text-secondary); }
.pkg .setup { font-size: 0.92rem; color: var(--text-secondary); }
.pkg .save { font-size: 0.9rem; background: rgba(63,174,123,0.12); border-radius: var(--radius-sm); padding: 0.5rem 0.7rem; }
.pkg .save strong { color: #8BE3B8; }
.pkg ul { list-style: none; display: grid; gap: 0.35rem; font-size: 0.93rem; }
.pkg li { padding-inline-start: 1.3rem; position: relative; }
.pkg li::before { content: '✓'; position: absolute; inset-inline-start: 0; color: var(--accent-emerald); }
.pkg .sep-label { font-size: 0.8rem; color: var(--text-tertiary); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-top: 0.3rem; }
.pkg .paid-sep { font-size: 0.85rem; color: var(--text-tertiary); }
.pkg .btn-row { margin-top: auto; padding-top: 0.5rem; }
.pkg .btn-row .btn { flex: 1 1 140px; }

/* ---------- A6 steps ---------- */
.steps { counter-reset: step; display: grid; gap: var(--space-sm); }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(5, 1fr); } }
.step { position: relative; }
.step .n { display: inline-flex; width: 36px; height: 36px; border-radius: 50%; align-items: center; justify-content: center; background: var(--accent-gold); color: #16250D; font-weight: 700; margin-bottom: 0.6rem; }
.step h3 { font-size: 1.1rem; margin-bottom: 0.3rem; }
.step p { color: var(--text-secondary); font-size: 0.95rem; }
.step .shot { margin-top: 0.7rem; font-size: 0.78rem; background: var(--bg-primary); border: 1px solid var(--border-subtle); border-radius: 10px; padding: 0.55rem 0.7rem; }
.footnote { margin-top: var(--space-md); font-size: 0.9rem; color: var(--text-tertiary); }

/* ---------- forms ---------- */
.field { display: grid; gap: 0.35rem; margin-bottom: 0.9rem; }
.field label, .label { font-size: 0.9rem; font-weight: 600; color: var(--text-secondary); }
input, select, textarea {
  width: 100%; min-height: 48px; padding: 0.7rem 0.9rem; border-radius: var(--radius-sm);
  background: var(--bg-primary); color: var(--text-primary); border: 1px solid var(--border-subtle);
  font: inherit; font-size: 16px;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent-gold); }
input[type="checkbox"], input[type="radio"] { width: 20px; height: 20px; min-height: 0; accent-color: var(--accent-gold); }
input[type="color"] { padding: 4px; width: 64px; }
.check { display: flex; align-items: center; gap: 0.6rem; min-height: 44px; }
.phone-input { display: grid; grid-template-columns: 110px 1fr; gap: 0.5rem; }
.form-msg { display: none; padding: 0.7rem 0.9rem; border-radius: var(--radius-sm); font-size: 0.93rem; margin-bottom: 0.9rem; }
.form-msg.error { display: block; background: var(--danger-bg); color: #F3C1BD; }
.form-msg.ok { display: block; background: rgba(63,174,123,0.14); color: #BFE8D2; }
.hint { font-size: 0.83rem; color: var(--text-tertiary); }

/* ---------- A8 / A9 ---------- */
.split { display: grid; gap: var(--space-lg); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
.ref-rule { display: grid; gap: 0.8rem; }
.ref-rule .big { font-family: var(--font-display); font-size: 3rem; color: var(--accent-gold-bright); font-weight: 700; line-height: 1; }

/* ---------- FAQ ---------- */
.faq details.acc > summary { font-size: 1.02rem; }
.faq .acc-body { color: var(--text-secondary); }

/* ---------- Final CTA ---------- */
.final-cta { background: linear-gradient(135deg, #0F5A3A, #0C3324); border-top: 1px solid var(--accent-emerald); border-bottom: 1px solid var(--accent-emerald); }
.final-cta h2 { font-size: clamp(1.6rem, 5vw, 2.3rem); }
.callback { display: grid; gap: 0.6rem; }
@media (min-width: 720px) { .callback { grid-template-columns: 1fr 1fr 1fr auto; align-items: end; } .callback .field { margin: 0; } }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border-subtle); padding: var(--space-xl) 0 calc(var(--space-lg) + var(--mobile-bar-h)); font-size: 0.93rem; }
@media (min-width: 961px) { .footer { padding-bottom: var(--space-lg); } }
.footer-top { display: grid; gap: var(--space-lg); }
@media (min-width: 800px) { .footer-top { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer h5 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent-gold); margin-bottom: 0.7rem; font-family: var(--font-body); }
.footer ul { list-style: none; display: grid; gap: 0.2rem; }
.footer li a { display: inline-block; padding: 0.35rem 0; color: var(--text-secondary); }
.footer li a:hover { color: var(--accent-gold-bright); }
.footer-small { margin-top: var(--space-lg); padding-top: var(--space-md); border-top: 1px solid var(--border-subtle); color: var(--text-tertiary); font-size: 0.85rem; display: grid; gap: 0.4rem; }

/* ---------- WhatsApp float + mobile bar ---------- */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 58px; height: 58px; border-radius: 50%; background: var(--wa-green); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 30px rgba(0,0,0,0.35); }
html[dir="rtl"] .wa-float { right: auto; left: 22px; }
.wa-float svg { width: 30px; height: 30px; }
.mobile-bar { display: none; }
@media (max-width: 960px) {
  .wa-float { display: none; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    height: var(--mobile-bar-h); background: #04160F; border-top: 1px solid var(--border-subtle);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 0.4rem; font-weight: 600; font-size: 0.92rem; }
  .mobile-bar a svg { width: 20px; height: 20px; }
  .mobile-bar a.wa { background: var(--wa-green); color: #fff; }
  body.has-mobile-bar { padding-bottom: var(--mobile-bar-h); }
}

/* ---------- Auth ---------- */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: var(--space-lg) 16px; }
.auth-card { width: 100%; max-width: 460px; background: var(--bg-panel); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: var(--space-lg) var(--space-md); }
.auth-card h1 { font-size: 1.6rem; margin: var(--space-sm) 0 0.3rem; }
.auth-logo img { width: 52px; height: 52px; border-radius: 10px; }
.auth-sub { color: var(--text-secondary); margin-bottom: var(--space-md); }
.auth-shared { font-size: 0.88rem; background: rgba(63,174,123,0.1); border-radius: var(--radius-sm); padding: 0.6rem 0.8rem; margin-bottom: var(--space-md); color: #BFE8D2; }
.auth-footer { margin-top: var(--space-md); text-align: center; color: var(--text-secondary); }
.role-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.role-option { display: flex; align-items: center; gap: 0.5rem; min-height: 48px; padding: 0.5rem 0.7rem; border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); font-size: 0.92rem; cursor: pointer; }
.role-option.checked { border-color: var(--accent-gold); background: rgba(212,175,55,0.08); }

/* ---------- Legal / prose pages ---------- */
.prose { max-width: 760px; }
.prose h2 { margin: var(--space-lg) 0 0.6rem; font-size: 1.5rem; }
.prose p, .prose li { color: var(--text-secondary); margin-bottom: 0.6rem; }
.prose ul { padding-inline-start: 1.2rem; }
.notice { padding: 0.8rem 1rem; border-radius: var(--radius-sm); border: 1px solid rgba(240,206,99,0.35); background: rgba(240,206,99,0.08); color: var(--accent-gold-bright); font-size: 0.93rem; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: calc(var(--mobile-bar-h) + 16px); transform: translateX(-50%); background: var(--bg-panel-hover); border: 1px solid var(--accent-gold); padding: 0.7rem 1.1rem; border-radius: 999px; z-index: 200; font-size: 0.93rem; box-shadow: 0 10px 30px rgba(0,0,0,0.4); }
