/* SalesPitchTrainer — one stylesheet for the whole site (public, portal, broker, admin).
   Mobile-first. Breakpoints: 640 (large phone), 900 (tablet), 1100 (desktop). */

:root {
  --ink: #0B1020; --ink-2: #0E1530; --ink-3: #1E293B;
  --text: #0F172A; --text-2: #334155; --muted: #475569; --muted-2: #64748B;
  --line: #E2E8F0; --line-2: #F1F5F9; --line-3: #CBD5E1;
  --bg: #F6F7FB; --card: #FFFFFF; --soft: #F8FAFC;
  --green: #10B981; --green-text: #047857; --green-deep: #065F46; --green-border: #059669;
  --tint: #D1FAE5; --tint-2: #F0FDF8; --on-dark: #34D399; --on-dark-soft: #6EE7B7; --on-dark-text: #CBD5E1;
  --pro: #F59E0B; --pro-bg: #FEF3C7; --pro-fg: #8A4B00;
  --unread: #DC2626; --danger: #B91C1C; --danger-bg: #FEF2F2;
  --warn-bg: #FFFBEB; --warn-fg: #92400E;
  --radius: 12px; --radius-lg: 20px;
  --shadow: 0 1px 2px rgba(15,23,42,.04), 0 8px 24px rgba(15,23,42,.06);
  --shadow-lg: 0 30px 80px rgba(11,16,32,.12);
  --font: Manrope, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --gutter: 16px;
  --band: radial-gradient(900px 420px at 18% 0%, rgba(16,185,129,.28), rgba(16,185,129,0) 70%),
          radial-gradient(700px 380px at 92% 30%, rgba(45,212,191,.12), rgba(45,212,191,0) 70%),
          linear-gradient(180deg, #0B1020 0%, #0E1530 100%);
}
@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 1100px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); font-size: 16px; line-height: 1.55; overflow-x: hidden; }
img, svg, video { max-width: 100%; }
img { height: auto; }
a { color: var(--green-text); text-underline-offset: 2px; }
a:hover { color: var(--green-deep); }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; font-weight: 800; }
p { margin: 0; }
ul, ol { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
code, .mono { font-family: var(--mono); font-weight: 500; }
.mono { font-size: .9em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
[hidden] { display: none !important; }

/* Focus: always visible for keyboard users */
:focus-visible { outline: 3px solid var(--green-border); outline-offset: 2px; border-radius: 6px; }
.on-dark :focus-visible, .band :focus-visible, .portal-top :focus-visible { outline-color: var(--on-dark); }

.skip-link { position: absolute; left: 12px; top: -80px; z-index: 1000; background: #fff; color: var(--text); padding: 10px 14px; border-radius: 8px; font-weight: 800; text-decoration: none; box-shadow: var(--shadow); }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ---------------- Layout ---------------- */
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.container-narrow { max-width: 860px; }
.container-xs { max-width: 560px; }
.section { padding-top: 52px; padding-bottom: 52px; }
@media (min-width: 900px) { .section { padding-top: 88px; padding-bottom: 88px; } }
.section-white { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; margin-bottom: 28px; }
.section-head h2 { font-size: 28px; }
.section-head p { margin-top: 8px; color: var(--muted); font-size: 17px; }
@media (min-width: 900px) { .section-head { margin-bottom: 36px; } .section-head h2 { font-size: 38px; } }
.h2 { font-size: 28px; } @media (min-width: 900px) { .h2 { font-size: 38px; } }
.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--green-text); }
.eyebrow-muted { color: var(--muted); }
.lead { font-size: 17px; color: var(--muted); line-height: 1.6; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.tiny { font-size: 13px; }
.center { text-align: center; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.stack-lg { display: flex; flex-direction: column; gap: 22px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.row-between { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.ml-auto { margin-left: auto; }
.mt-0{margin-top:0}.mt-1{margin-top:6px}.mt-2{margin-top:12px}.mt-3{margin-top:20px}.mt-4{margin-top:32px}
.mb-2{margin-bottom:12px}.mb-3{margin-bottom:20px}
.grid { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .grid-2-sm { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 32px; align-items: center; }
  .grid-aside { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; }
}
@media (min-width: 1100px) { .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------------- Logo ---------------- */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; font-size: 19px; letter-spacing: -0.01em; white-space: nowrap; }
.logo svg { flex: none; }
.logo b { font-weight: 800; }
.logo .wm > span { font-weight: 500; color: var(--green-text); }
.on-dark .logo, .band .logo, .portal-top .logo, .site-footer .logo { color: #fff; }
.on-dark .logo .wm > span, .band .logo .wm > span, .portal-top .logo .wm > span, .site-footer .logo .wm > span { color: var(--on-dark-soft); }

/* ---------------- Buttons ---------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: var(--radius); border: 1.5px solid transparent; font-weight: 800; font-size: 16px; text-decoration: none; cursor: pointer; line-height: 1.2; text-align: center; transition: background .15s, border-color .15s, color .15s; white-space: nowrap; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--green); color: var(--ink); }
.btn-primary:hover { background: #0EA371; color: var(--ink); }
.btn-secondary { background: #fff; color: var(--text); border-color: var(--line-3); }
.btn-secondary:hover { border-color: var(--muted-2); color: var(--text); }
.btn-dark { background: var(--text); color: #fff; }
.btn-dark:hover { background: #000; color: #fff; }
.btn-danger { background: #fff; color: var(--danger); border: 2px solid var(--danger); }
.btn-danger:hover { background: var(--danger-bg); color: var(--danger); }
.btn-danger-solid { background: var(--danger); color: #fff; }
.btn-ghost-dark { background: transparent; color: #fff; border-color: rgba(255,255,255,.28); }
.btn-ghost-dark:hover { background: rgba(255,255,255,.08); color: #fff; }
.btn-link { background: none; border: 0; padding: 0; min-height: 0; color: var(--green-text); font-weight: 800; }
.btn-link:hover { color: var(--green-deep); text-decoration: underline; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 17px; }
.btn-block { width: 100%; }
.btn .spinner { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.text-link { font-weight: 800; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* ---------------- Pills / badges ---------------- */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 800; line-height: 1.3; white-space: nowrap; }
.pill-free, .pill-solid, .pill-green { background: var(--tint); color: var(--green-deep); }
.pill-pro, .pill-paused { background: var(--pro-bg); color: var(--pro-fg); }
.pill-seat, .pill-muted { background: var(--line); color: var(--ink-3); }
.pill-excellent { background: #064E3B; color: #fff; }
.pill-needs { background: var(--line-2); color: var(--text-2); }
.pill-poor, .pill-red { background: #FEE2E2; color: #991B1B; }
.pill-warn { background: #FFEDD5; color: #9A3412; }
.pill-outline { background: #fff; border: 1px solid var(--line-3); color: var(--text-2); }
.band .pill-dark, .pill-dark { background: rgba(52,211,153,.18); color: var(--tint); }
.pill-dark-pro { background: rgba(245,158,11,.2); color: #FCD34D; }
.badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--unread); color: #fff; font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.dot { width: 8px; height: 8px; border-radius: 99px; background: var(--on-dark); display: inline-block; }
.lock { display: inline-flex; align-items: center; gap: 5px; }

/* ---------------- Cards ---------------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.card-lg { border-radius: var(--radius-lg); padding: 24px; }
@media (min-width: 900px) { .card-lg { padding: 28px; } }
.card-flat { background: var(--soft); }
.card-feature { border: 2px solid var(--green-border); }
.card h2 { font-size: 18px; }
.card h3 { font-size: 20px; }
.card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-bottom: 14px; }
.card-head h2, .card-head h3 { font-size: 18px; }
.card-head .ml-auto { font-size: 14px; font-weight: 700; }
.path-card { display: flex; flex-direction: column; gap: 14px; }
.path-card .btn { align-self: flex-start; margin-top: 6px; }
.empty { padding: 28px 20px; text-align: center; color: var(--muted); border: 1.5px dashed var(--line-3); border-radius: var(--radius); }
.empty h3 { color: var(--text); font-size: 18px; margin-bottom: 6px; }
.empty .btn { margin-top: 14px; }
.spotlight { background: linear-gradient(135deg, #FFFBEB, #FEF3C7); border: 1px solid #FCD34D; border-radius: 16px; padding: 20px; }

/* ---------------- Alerts / flash ---------------- */
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; font-size: 15px; }
.alert svg { flex: none; margin-top: 2px; }
.alert-success { background: var(--tint-2); border-color: #A7F3D0; color: var(--green-deep); }
.alert-error { background: var(--danger-bg); border-color: #FECACA; color: #7F1D1D; }
.alert-warn { background: var(--warn-bg); border-color: #FDE68A; color: var(--warn-fg); }
.alert-info { background: var(--soft); color: var(--text-2); }
.alert a { color: inherit; font-weight: 800; }
.toast-wrap { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 2000; display: flex; flex-direction: column; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
.toast { background: var(--text); color: #fff; padding: 12px 16px; border-radius: var(--radius); font-weight: 700; box-shadow: var(--shadow-lg); pointer-events: auto; }
.toast.error { background: var(--danger); }

/* ---------------- Forms ---------------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .label { font-weight: 700; font-size: 14px; color: var(--text); }
.field .opt { font-weight: 500; color: var(--muted); }
.input, .select, .textarea { width: 100%; min-height: 48px; border: 1.5px solid var(--line-3); border-radius: 10px; padding: 0 14px; background: #fff; font-size: 16px; color: var(--text); }
.textarea { padding: 12px 14px; min-height: 110px; resize: vertical; line-height: 1.5; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23475569' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--green-border); box-shadow: 0 0 0 4px var(--tint); }
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--danger); }
.input[readonly], .input:disabled { background: var(--soft); color: var(--muted); }
.help { font-size: 13px; color: var(--muted); }
.err { font-size: 13px; color: var(--danger); font-weight: 700; }
.form-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .form-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .span-2 { grid-column: 1 / -1; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--green-border); flex: none; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 700; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { width: 46px; height: 28px; border-radius: 99px; background: var(--line-3); position: relative; transition: background .15s; flex: none; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 99px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .15s; }
.switch input:checked + .track { background: var(--green); }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch input:focus-visible + .track { outline: 3px solid var(--green-border); outline-offset: 2px; }
.choice-grid { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .choice-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .choice-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .choice-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; }
.choice .choice-body { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 14px 16px; border: 1.5px solid var(--line-3); border-radius: var(--radius); background: #fff; }
.choice .choice-body b { font-weight: 800; }
.choice .choice-body small { color: var(--muted); font-size: 14px; line-height: 1.45; }
.choice input:checked + .choice-body { border-color: var(--green-border); background: var(--tint-2); box-shadow: 0 0 0 1px var(--green-border) inset; }
.choice input:focus-visible + .choice-body { outline: 3px solid var(--green-border); outline-offset: 2px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; font-weight: 800; font-size: 15px; margin-bottom: 10px; }
.code-input { font-family: var(--mono); font-size: 26px; letter-spacing: .35em; text-align: center; min-height: 58px; }
.pw-rules { list-style: none; padding: 0; display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.pw-rules li::before { content: "○ "; }
.pw-rules li.ok { color: var(--green-text); }
.pw-rules li.ok::before { content: "✓ "; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------------- Dark band / public header ---------------- */
.band { background: var(--band); color: #fff; position: relative; }
.band-flat { background: linear-gradient(180deg, #0B1020 0%, #0E1530 100%); }
.site-nav { display: flex; align-items: center; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.site-nav .links { display: none; }
.site-nav .actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.site-nav .login { color: #fff; font-weight: 700; text-decoration: none; padding: 10px 6px; font-size: 15px; }
.site-nav .nav-cta { display: none; }
.menu-btn { width: 44px; height: 44px; border-radius: 10px; border: 1px solid rgba(255,255,255,.2); background: transparent; color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.mobile-menu { padding: 0 var(--gutter) 18px; display: flex; flex-direction: column; gap: 4px; }
.mobile-menu a { color: #E2E8F0; font-weight: 700; text-decoration: none; padding: 12px 4px; border-bottom: 1px solid rgba(255,255,255,.08); }
.mobile-menu .btn { margin-top: 10px; }
@media (min-width: 900px) {
  .site-nav { padding-top: 20px; padding-bottom: 20px; gap: 24px; }
  .site-nav .links { display: flex; gap: 26px; margin-left: 20px; }
  .site-nav .links a { color: var(--on-dark-text); font-weight: 600; font-size: 15px; text-decoration: none; }
  .site-nav .links a:hover, .site-nav .links a[aria-current="page"] { color: #fff; }
  .site-nav .nav-cta { display: inline-flex; }
  .menu-btn, .mobile-menu { display: none !important; }
}
.hero { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; padding-top: 36px; padding-bottom: 56px; }
@media (min-width: 900px) { .hero { padding-top: 72px; padding-bottom: 96px; gap: 22px; } }
.hero-sm { padding-top: 32px; padding-bottom: 44px; }
@media (min-width: 900px) { .hero-sm { padding-top: 56px; padding-bottom: 72px; } }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); font-size: 14px; font-weight: 600; color: var(--tint); }
.hero h1 { font-size: 40px; line-height: 1.04; letter-spacing: -0.03em; max-width: 860px; }
@media (min-width: 640px) { .hero h1 { font-size: 54px; } }
@media (min-width: 900px) { .hero h1 { font-size: 72px; } }
.hero-sm h1 { font-size: 34px; } @media (min-width: 900px) { .hero-sm h1 { font-size: 52px; } }
.hero .lead, .band .lead { color: var(--on-dark-text); font-size: 17px; max-width: 640px; }
@media (min-width: 900px) { .hero .lead { font-size: 20px; } }
.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; font-size: 14px; font-weight: 600; color: var(--on-dark-text); list-style: none; padding: 0; }
.trust li { display: inline-flex; align-items: center; gap: 7px; }
.hero-form { width: 100%; max-width: 560px; display: flex; flex-direction: column; gap: 8px; text-align: left; }
.hero-form label { font-size: 14px; font-weight: 700; color: #E2E8F0; }
.hero-form .combo { display: flex; flex-direction: column; gap: 10px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); border-radius: 16px; padding: 8px; }
.hero-form .input { border: 0; min-height: 52px; font-size: 17px; }
.hero-form .btn { min-height: 52px; font-size: 17px; }
@media (min-width: 640px) { .hero-form .combo { flex-direction: row; } .hero-form .input { flex: 1 1 auto; min-width: 0; } }
.hero-form .err { color: #FCA5A5; }
.call-visual { width: 100%; max-width: 520px; margin-top: 18px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 22px; padding: 18px; display: flex; flex-direction: column; gap: 14px; text-align: left; }
.call-visual .who { display: flex; align-items: center; gap: 14px; }
.call-visual .avatar { width: 48px; height: 48px; border-radius: 99px; background: var(--green); display: flex; align-items: center; justify-content: center; flex: none; }
.call-visual .t { font-family: var(--mono); color: var(--on-dark-soft); font-size: 14px; margin-left: auto; }
.wave { display: flex; align-items: center; gap: 4px; height: 44px; }
.wave span { flex: 1; border-radius: 3px; background: var(--on-dark); opacity: .85; }
.wave.live span { animation: wave 1.2s ease-in-out infinite; transform-origin: center; }
@keyframes wave { 0%,100% { transform: scaleY(.55); } 50% { transform: scaleY(1); } }

/* How it works */
.steps-3 .step { display: flex; flex-direction: column; gap: 12px; }
.step-visual { background: var(--soft); border: 1px solid var(--line); border-radius: 16px; min-height: 150px; padding: 18px; display: flex; flex-wrap: wrap; align-content: center; align-items: center; gap: 8px; }
.step-visual.dark { background: var(--ink); color: #fff; flex-direction: column; align-items: stretch; justify-content: center; border: 0; }
.step-num { font-family: var(--mono); font-size: 13px; color: var(--green-text); }
.step h3 { font-size: 20px; }
.step p { color: var(--muted); }
.chip { padding: 8px 12px; border-radius: 99px; background: #fff; border: 1px solid var(--line-3); font-size: 14px; font-weight: 600; }
.chip-on { background: var(--green); border-color: var(--green); color: var(--ink); font-weight: 700; }
.score-big { font-size: 44px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.score-big small { font-size: 20px; color: var(--muted); font-weight: 700; }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0; }
.faq summary { list-style: none; cursor: pointer; font-weight: 700; font-size: 17px; padding: 18px 48px 18px 20px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 10px; height: 10px; border-right: 2.5px solid var(--muted); border-bottom: 2.5px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .15s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details > div { padding: 0 20px 18px; color: var(--muted); line-height: 1.6; }

/* Transcript with coaching notes (home example + call summary) */
.coach-doc { background: #fff; border-radius: 22px; border: 1px solid var(--line); box-shadow: var(--shadow-lg); overflow: hidden; }
.coach-doc-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 16px 18px; border-bottom: 1px solid var(--line); background: #FBFCFD; }
@media (min-width: 640px) { .coach-doc-head { padding: 16px 24px; } }
.coach-doc-head h3 { font-size: 15px; }
.coach-line { display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--line-2); }
.coach-line:last-child { border-bottom: 0; }
.coach-line .said { flex: 999 1 420px; min-width: 0; display: flex; gap: 14px; padding: 14px 18px; }
@media (min-width: 640px) { .coach-line .said { padding: 16px 24px; } }
.coach-line .ts { font-family: var(--mono); font-size: 13px; color: var(--muted-2); width: 40px; flex: none; padding-top: 3px; }
.coach-line .who { font-size: 12px; font-weight: 800; letter-spacing: .04em; color: var(--muted); text-transform: uppercase; }
.coach-line.you .who { color: var(--green-text); }
.coach-line .text { margin-top: 3px; font-size: 16px; line-height: 1.55; }
@media (min-width: 640px) { .coach-line .text { font-size: 17px; } }
.coach-line .text mark { background: transparent; color: inherit; border-radius: 3px; }
.coach-line.good .text mark { background: var(--tint); box-shadow: 0 0 0 3px var(--tint); }
.coach-line.fix .text mark { background: var(--line); box-shadow: 0 0 0 3px var(--line); }
.coach-line .note { flex: 1 1 280px; min-width: 0; padding: 12px 18px; border-left: 2px solid var(--line-2); }
@media (min-width: 640px) { .coach-line .note { padding: 14px 24px; } }
.coach-line.good .note { border-left-color: var(--green); background: var(--tint-2); }
.coach-line.fix .note { border-left-color: #94A3B8; background: var(--soft); }
.coach-line .note-label { font-size: 12px; font-weight: 800; letter-spacing: .06em; color: var(--text-2); }
.coach-line.good .note-label { color: var(--green-text); }
.coach-line .note-text { margin-top: 4px; font-size: 15px; line-height: 1.5; color: #134E3A; }
.coach-line.plain .note { display: none; }
@media (min-width: 900px) { .coach-line.plain .note { display: block; } }

/* Coaching report (free call results, call summary) */
.coach-report .coach-title { font-size: 16px; font-weight: 800; }
@media (min-width: 640px) { .coach-report .coach-title { font-size: 17px; } }
.coach-report .coach-score { font-size: 24px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.coach-report .coach-summary { margin: 0; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 16px; line-height: 1.55; color: var(--text-2); background: #fff; }
@media (min-width: 640px) { .coach-report .coach-summary { padding: 16px 24px; } }
.coach-line .ts.btn-link { color: var(--muted-2); font-weight: 500; text-align: left; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.coach-more { border-bottom: 1px solid var(--line-2); }
.coach-more > summary { list-style: none; cursor: pointer; padding: 10px 18px; font-size: 14px; font-weight: 800; color: var(--green-text); background: #FBFCFD; min-height: 44px; display: flex; align-items: center; gap: 8px; }
.coach-more > summary::-webkit-details-marker { display: none; }
.coach-more > summary::before { content: "⋯"; font-size: 18px; line-height: 1; color: var(--muted-2); }
.coach-more[open] > summary { border-bottom: 1px solid var(--line-2); }
.coach-more[open] > summary::before { content: "−"; }
@media (min-width: 640px) { .coach-more > summary { padding: 10px 24px; } }
.coach-takeaways { display: grid; gap: 1px; background: var(--line); border-top: 1px solid var(--line); }
@media (min-width: 760px) { .coach-takeaways { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.coach-takeaways .take { background: #fff; padding: 18px; }
@media (min-width: 640px) { .coach-takeaways .take { padding: 20px 24px; } }
.coach-takeaways h3 { font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); margin-bottom: 12px; }
.coach-takeaways .take-good h3 { color: var(--green-text); }
.coach-takeaways .take-try { background: var(--tint-2); }
.coach-takeaways .take-try h3 { color: var(--green-text); }
.coach-takeaways .try-quote { margin: 0; font-size: 18px; line-height: 1.45; font-weight: 700; color: #134E3A; }
.coach-report.no-notes .coach-line .note { display: none; }

/* Pricing */
.price-toggle { display: inline-flex; padding: 4px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 999px; gap: 4px; }
.price-toggle button { border: 0; background: transparent; color: #E2E8F0; font-weight: 800; padding: 10px 18px; border-radius: 999px; cursor: pointer; min-height: 44px; }
.price-toggle button[aria-pressed="true"] { background: #fff; color: var(--text); }
.price-card { display: flex; flex-direction: column; gap: 14px; }
.price { font-size: 42px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; }
.price small { font-size: 18px; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.ticks { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks li svg { flex: none; margin-top: 4px; }
.ticks li.no { color: var(--muted-2); }
.compare { width: 100%; border-collapse: collapse; font-size: 15px; background: #fff; }
.compare th, .compare td { padding: 14px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.compare th[scope="col"] { font-size: 14px; }
.compare td:not(:first-child), .compare th[scope="col"]:not(:first-child) { text-align: center; }

/* ---------------- Footer ---------------- */
.site-footer { background: radial-gradient(800px 300px at 50% 0%, rgba(16,185,129,.24), rgba(16,185,129,0) 70%), linear-gradient(180deg, #0B1020 0%, #0E1530 100%); color: #fff; }
.site-footer .closing { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; padding-top: 52px; padding-bottom: 52px; }
@media (min-width: 900px) { .site-footer .closing { padding-top: 80px; padding-bottom: 80px; } }
.site-footer .closing h2 { font-size: 28px; max-width: 760px; }
@media (min-width: 900px) { .site-footer .closing h2 { font-size: 38px; } }
.site-footer .foot { border-top: 1px solid rgba(255,255,255,.1); }
.site-footer .foot-inner { display: grid; gap: 24px; padding-top: 32px; padding-bottom: 32px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .site-footer .foot-inner { grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); } }
.site-footer h3 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #94A3B8; margin-bottom: 10px; }
.site-footer ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.site-footer a { color: var(--on-dark-text); text-decoration: none; font-size: 15px; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .legal { border-top: 1px solid rgba(255,255,255,.08); padding-top: 18px; padding-bottom: 28px; font-size: 13px; color: #94A3B8; display: flex; flex-wrap: wrap; gap: 10px 20px; }
.footer-min { background: var(--ink); color: #94A3B8; font-size: 14px; padding-top: 20px; padding-bottom: 20px; }
.footer-min a { color: var(--on-dark-text); }

/* Sticky phone CTA (public pages) */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: rgba(11,16,32,.96); border-top: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(8px); transform: translateY(110%); transition: transform .2s; }
.sticky-cta.show { transform: translateY(0); }
.sticky-cta .btn { width: 100%; }
@media (min-width: 900px) { .sticky-cta { display: none; } }
body.has-sticky { padding-bottom: 0; }

/* ---------------- Auth pages ---------------- */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .auth-wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.auth-side { display: none; }
@media (min-width: 900px) { .auth-side { display: flex; flex-direction: column; justify-content: space-between; padding: 40px; gap: 30px; } }
.auth-side .quote { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; max-width: 460px; }
.auth-top { padding: 14px var(--gutter); display: flex; align-items: center; }
@media (min-width: 900px) { .auth-top.only-phone { display: none; } }
.auth-main { display: flex; align-items: flex-start; justify-content: center; padding: 20px var(--gutter) 40px; }
@media (min-width: 900px) { .auth-main { align-items: center; padding: 40px; } }
.auth-card { width: 100%; max-width: 440px; display: flex; flex-direction: column; gap: 18px; }
.auth-card h1 { font-size: 30px; }
.auth-card .sub { color: var(--muted); }
.gbtn-wrap { min-height: 44px; display: flex; justify-content: center; }

/* ---------------- Portal shell ---------------- */
.portal-top { background: var(--ink); color: #fff; border-bottom: 1px solid rgba(255,255,255,.08); position: sticky; top: 0; z-index: 80; }
.portal-top .bar { height: 60px; display: flex; align-items: center; gap: 12px; padding: 0 12px; }
@media (min-width: 640px) { .portal-top .bar { padding: 0 24px; height: 64px; } }
.portal-top .who { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; position: relative; }
.portal-top .who-name { display: none; }
@media (min-width: 640px) { .portal-top .who-name { display: inline; } }
.avatar-sm { width: 34px; height: 34px; border-radius: 99px; background: var(--ink-3); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; flex: none; }
.user-menu-btn { display: flex; align-items: center; gap: 10px; background: transparent; border: 0; color: #fff; cursor: pointer; padding: 6px; border-radius: 10px; font-weight: 700; min-height: 44px; }
.user-menu { position: absolute; right: 0; top: calc(100% + 6px); background: #fff; color: var(--text); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); min-width: 220px; padding: 6px; z-index: 100; }
.user-menu a, .user-menu button { display: block; width: 100%; text-align: left; padding: 11px 12px; border-radius: 8px; color: var(--text); text-decoration: none; font-weight: 700; background: none; border: 0; cursor: pointer; font-size: 15px; }
.user-menu a:hover, .user-menu button:hover { background: var(--soft); }
.user-menu .meta { padding: 8px 12px 10px; font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--line); margin-bottom: 4px; overflow-wrap: anywhere; }
.portal-body { display: flex; align-items: flex-start; min-height: calc(100vh - 64px); }
.portal-nav { display: none; }
@media (min-width: 900px) {
  .portal-nav { display: flex; flex-direction: column; gap: 3px; flex: 0 0 236px; padding: 20px 14px; position: sticky; top: 64px; max-height: calc(100vh - 64px); overflow-y: auto; }
  .portal-top .menu-btn { display: none; }
}
.portal-nav a, .drawer-nav a { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 10px; color: var(--text-2); text-decoration: none; font-weight: 700; font-size: 15px; min-height: 44px; }
.portal-nav a:hover, .drawer-nav a:hover { background: #fff; color: var(--text); }
.portal-nav a[aria-current="page"], .drawer-nav a[aria-current="page"] { background: var(--tint); color: var(--green-deep); }
.portal-nav a .end, .drawer-nav a .end { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; }
.portal-nav .sep, .drawer-nav .sep { height: 1px; background: var(--line); margin: 10px 4px; }
.portal-nav .nav-label, .drawer-nav .nav-label { font-size: 12px; font-weight: 800; letter-spacing: .08em; color: var(--muted-2); text-transform: uppercase; padding: 10px 12px 4px; }
.portal-main { flex: 1 1 auto; min-width: 0; padding: 16px 12px 96px; display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 640px) { .portal-main { padding: 24px 24px 64px; } }
@media (min-width: 1100px) { .portal-main { padding: 24px 32px 64px; } }
.portal-main.wide { max-width: none; }
.portal-main > .page-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.page-head h1 { font-size: 26px; }
@media (min-width: 900px) { .page-head h1 { font-size: 30px; } }
.page-head .sub { flex-basis: 100%; color: var(--muted); }
.page-head .actions { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.hero-card { border-radius: var(--radius-lg); padding: 24px 20px; color: #fff; background: radial-gradient(600px 260px at 12% 0%, rgba(16,185,129,.30), rgba(16,185,129,0) 70%), linear-gradient(180deg, #0B1020 0%, #0E1530 100%); display: flex; flex-direction: column; gap: 14px; }
@media (min-width: 640px) { .hero-card { padding: 36px 40px; } }
.hero-card .pill { align-self: flex-start; }
.hero-card h1, .hero-card h2 { font-size: 28px; line-height: 1.12; }
@media (min-width: 640px) { .hero-card h1, .hero-card h2 { font-size: 36px; } }
.hero-card p { color: var(--on-dark-text); font-size: 17px; max-width: 640px; }
.hero-card .row a:not(.btn) { color: var(--tint); font-weight: 700; }
.imp-banner { background: #FEF3C7; color: #78350F; border-bottom: 1px solid #FCD34D; padding: 10px 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; font-size: 14px; font-weight: 700; }
.imp-banner form { margin: 0; display: inline-flex; gap: 8px; }
.imp-banner .mode { padding: 3px 10px; border-radius: 99px; background: #78350F; color: #fff; font-size: 12px; }
.imp-banner .mode.edit { background: var(--danger); }
.mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(15,23,42,.06); }
.mobile-cta .btn { width: 100%; }
@media (min-width: 900px) { .mobile-cta { display: none; } }

/* Off-canvas drawer nav (phones) */
.drawer-nav-wrap { position: fixed; inset: 0; z-index: 200; display: none; }
.drawer-nav-wrap.open { display: block; }
.drawer-nav-wrap .scrim { position: absolute; inset: 0; background: rgba(11,16,32,.55); }
.drawer-nav { position: absolute; top: 0; bottom: 0; left: 0; width: min(86vw, 320px); background: var(--bg); padding: 16px 12px; display: flex; flex-direction: column; gap: 3px; overflow-y: auto; box-shadow: var(--shadow-lg); }
.drawer-nav .close { align-self: flex-end; }

/* Checklist / steps */
.checklist { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.checklist li { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.checklist li.done { background: var(--tint-2); }
.checklist .mark { width: 28px; height: 28px; border-radius: 99px; border: 2px solid var(--line-3); color: var(--muted); display: flex; align-items: center; justify-content: center; flex: none; font-size: 13px; font-weight: 800; }
.checklist li.done .mark { background: var(--green); border-color: var(--green); color: var(--ink); }
.checklist li.next .mark { border-color: var(--green); color: var(--green-text); }
.checklist .t { font-weight: 800; }
.checklist .d { font-size: 14px; color: var(--muted); }
.checklist li > .btn, .checklist li > a.text-link { margin-left: auto; }

.stepper { display: flex; gap: 6px; list-style: none; padding: 0; flex-wrap: wrap; }
.stepper li { flex: 1 1 0; min-width: 70px; text-align: center; font-size: 12px; font-weight: 800; color: var(--muted-2); }
.stepper li::before { content: ""; display: block; height: 6px; border-radius: 99px; background: var(--line); margin-bottom: 6px; }
.stepper li.done { color: var(--green-text); }
.stepper li.done::before { background: var(--green); }
.stepper li.current { color: var(--text); }
.stepper li.current::before { background: var(--green-border); }

.timeline { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0; }
.timeline li { position: relative; padding: 0 0 16px 22px; font-size: 14px; }
.timeline li::before { content: ""; position: absolute; left: 5px; top: 7px; width: 8px; height: 8px; border-radius: 99px; background: var(--line-3); }
.timeline li::after { content: ""; position: absolute; left: 8.5px; top: 18px; bottom: 0; width: 1px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline li.sys::before { background: var(--green); }
.timeline .when { font-family: var(--mono); font-size: 12px; color: var(--muted-2); }
.timeline .body { color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---------------- Live call screen ---------------- */
.call-stage { max-width: 640px; margin: 0 auto; width: 100%; }
.call-panel { border-radius: 24px; padding: 28px 20px; color: #fff; background: var(--band); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
@media (min-width: 640px) { .call-panel { padding: 40px; } }
.call-panel h1 { font-size: 30px; }
@media (min-width: 640px) { .call-panel h1 { font-size: 38px; } }
.call-panel p { color: var(--on-dark-text); }
.ring { width: 96px; height: 96px; border-radius: 99px; background: var(--green); display: flex; align-items: center; justify-content: center; position: relative; }
.ring.pulse::before, .ring.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 99px; border: 2px solid var(--on-dark); animation: ripple 1.8s ease-out infinite; }
.ring.pulse::after { animation-delay: .9s; }
.ring.muted { background: #334155; }
.ring.bad { background: #7F1D1D; }
@keyframes ripple { from { transform: scale(1); opacity: .8; } to { transform: scale(1.8); opacity: 0; } }
.call-timer { font-family: var(--mono); font-size: 22px; color: var(--on-dark-soft); }
.progress-dots { display: flex; gap: 8px; list-style: none; padding: 0; justify-content: center; flex-wrap: wrap; font-size: 13px; font-weight: 700; color: #94A3B8; }
.progress-dots li { display: inline-flex; align-items: center; gap: 6px; }
.progress-dots li::before { content: ""; width: 8px; height: 8px; border-radius: 99px; background: #475569; }
.progress-dots li.done { color: var(--on-dark-soft); }
.progress-dots li.done::before { background: var(--on-dark); }
.progress-dots li.now { color: #fff; }
.progress-dots li.now::before { background: #fff; }

/* Score header on summary */
.score-head { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.score-ring { width: 104px; height: 104px; flex: none; position: relative; }
.score-ring svg { width: 104px; height: 104px; transform: rotate(-90deg); }
.score-ring .v { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 34px; font-weight: 800; letter-spacing: -0.03em; }
.score-ring .v small { font-size: 15px; color: var(--muted); }
.kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; font-size: 15px; }
.kv dt { color: var(--muted); font-weight: 600; }
.kv dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.list-good, .list-fix { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.list-good li, .list-fix li { display: flex; gap: 10px; align-items: flex-start; }
.list-good li::before, .list-fix li::before { flex: none; width: 22px; height: 22px; border-radius: 99px; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; margin-top: 1px; }
.list-good li::before { content: "✓"; background: var(--tint); color: var(--green-deep); }
.list-fix li::before { content: "→"; background: var(--line); color: var(--text-2); }
.try-line { border-left: 3px solid var(--green); background: var(--tint-2); padding: 14px 16px; border-radius: 0 12px 12px 0; font-size: 17px; font-weight: 700; color: #134E3A; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button, .tabs a { background: none; border: 0; border-bottom: 3px solid transparent; padding: 12px 14px; font-weight: 800; color: var(--muted); cursor: pointer; white-space: nowrap; min-height: 44px; text-decoration: none; }
.tabs [aria-selected="true"], .tabs [aria-current="page"] { color: var(--text); border-bottom-color: var(--green); }
audio { width: 100%; }
.stars { display: inline-flex; gap: 2px; }
.stars button { background: none; border: 0; padding: 4px; cursor: pointer; color: var(--line-3); font-size: 26px; line-height: 1; min-width: 36px; min-height: 36px; }
.stars button[aria-checked="true"], .stars button.on { color: var(--pro); }
.stars-static { color: var(--pro); letter-spacing: 1px; }

/* ---------------- Data tables + toolbar ---------------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.toolbar .field { flex: 1 1 160px; min-width: 0; }
.toolbar .field-search { flex: 2 1 240px; }
.toolbar .field-date { flex: 0 1 160px; }
.toolbar .input, .toolbar .select { min-height: 42px; font-size: 15px; }
.toolbar .field label { font-size: 12px; color: var(--muted); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips a, .chips button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line-3); background: #fff; color: var(--text-2); text-decoration: none; font-weight: 700; font-size: 14px; cursor: pointer; min-height: 38px; }
.chips a[aria-pressed="true"], .chips button[aria-pressed="true"], .chips a.on { background: var(--text); color: #fff; border-color: var(--text); }
.chips .count { font-weight: 800; opacity: .8; }
.table-wrap { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.table-scroll { overflow-x: auto; }
.dtable { width: 100%; border-collapse: collapse; font-size: 15px; }
.dtable th { text-align: left; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); padding: 12px 14px; background: var(--soft); border-bottom: 1px solid var(--line); white-space: nowrap; }
.dtable td { padding: 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.dtable tbody tr:last-child td { border-bottom: 0; }
.dtable tbody tr[data-href], .dtable tbody tr[data-drawer] { cursor: pointer; }
.dtable tbody tr[data-href]:hover, .dtable tbody tr[data-drawer]:hover { background: var(--tint-2); }
.dtable tr.unread td { font-weight: 800; }
.dtable tr.unread td:first-child { box-shadow: inset 3px 0 0 var(--green); }
.dtable td.date { font-family: var(--mono); font-size: 14px; white-space: nowrap; color: var(--text-2); }
.dtable td.num, .dtable th.num { text-align: right; }
.dtable td .sub { display: block; font-size: 13px; color: var(--muted); font-weight: 500; }
.dtable a.row-link { color: var(--text); text-decoration: none; font-weight: 800; }
.dtable a.row-link:hover { text-decoration: underline; }
/* Phone: rows become stacked cards */
@media (max-width: 760px) {
  .dtable.stack-phone thead { display: none; }
  .dtable.stack-phone, .dtable.stack-phone tbody, .dtable.stack-phone tr, .dtable.stack-phone td { display: block; width: 100%; }
  .dtable.stack-phone tr { padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .dtable.stack-phone tbody tr:last-child { border-bottom: 0; }
  .dtable.stack-phone td { padding: 3px 0; border: 0; display: flex; gap: 10px; justify-content: space-between; text-align: right; }
  .dtable.stack-phone td::before { content: attr(data-label); font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; text-align: left; flex: none; padding-top: 2px; }
  .dtable.stack-phone td.primary { font-size: 16px; text-align: left; justify-content: flex-start; }
  .dtable.stack-phone td.primary::before { display: none; }
  .dtable.stack-phone td.hide-phone { display: none; }
}
.table-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 12px 14px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.pager { display: flex; gap: 6px; margin-left: auto; align-items: center; }
.pager a, .pager span { min-width: 38px; min-height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid var(--line-3); background: #fff; color: var(--text); text-decoration: none; font-weight: 700; padding: 0 10px; }
.pager span[aria-current] { background: var(--text); color: #fff; border-color: var(--text); }
.pager .disabled { opacity: .45; pointer-events: none; }

/* ---------------- Slide-out drawer ---------------- */
.drawer { position: fixed; inset: 0; z-index: 300; display: none; }
.drawer.open { display: block; }
.drawer .scrim { position: absolute; inset: 0; background: rgba(11,16,32,.45); }
.drawer .panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(100vw, 560px); background: #fff; display: flex; flex-direction: column; box-shadow: var(--shadow-lg); }
.drawer .panel-head { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.drawer .panel-head .pos { font-size: 14px; color: var(--muted); font-weight: 700; margin: 0 auto 0 4px; }
.drawer .panel-body { flex: 1; overflow-y: auto; padding: 18px 16px 28px; display: flex; flex-direction: column; gap: 18px; }
@media (min-width: 640px) { .drawer .panel-body { padding: 22px 24px 32px; } }
.icon-btn { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-3); background: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text); flex: none; }
.icon-btn:hover { border-color: var(--muted-2); }
.icon-btn:disabled { opacity: .4; cursor: not-allowed; }

/* ---------------- Modal (native dialog) ---------------- */
dialog.modal { border: 0; border-radius: 18px; padding: 0; width: min(92vw, 520px); box-shadow: var(--shadow-lg); color: var(--text); }
dialog.modal::backdrop { background: rgba(11,16,32,.55); }
.modal-body { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.modal-body h2 { font-size: 22px; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; padding: 0 22px 22px; }

/* ---------------- Charts (server-drawn SVG) ---------------- */
.chart { width: 100%; height: auto; display: block; }
.chart .grid-line { stroke: var(--line); stroke-width: 1; }
.chart .axis { fill: var(--muted); font-size: 12px; font-family: var(--font); }
.chart .line { fill: none; stroke: var(--green-border); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart .area { fill: var(--tint); opacity: .6; }
.chart .pt { fill: #fff; stroke: var(--green-border); stroke-width: 2; }
.chart .bar { fill: var(--green); }
.chart .bar.muted { fill: var(--line-3); }
.meter { height: 10px; border-radius: 99px; background: var(--line); overflow: hidden; }
.meter > span { display: block; height: 100%; background: var(--green); border-radius: 99px; }
.locked-panel { position: relative; overflow: hidden; }
.locked-panel .lock-over { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; padding: 32px 20px; }

/* Legal pages */
.prose { max-width: 760px; font-size: 16px; line-height: 1.7; color: var(--text-2); }
.prose h2 { font-size: 22px; color: var(--text); margin: 32px 0 10px; }
.prose h3 { font-size: 18px; color: var(--text); margin: 22px 0 8px; }
.prose p, .prose ul, .prose ol { margin: 0 0 14px; }
.prose ul, .prose ol { padding-left: 22px; }
.toc { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
@media (min-width: 1100px) { .legal-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; align-items: start; } .legal-grid .toc-wrap { position: sticky; top: 24px; } }

/* Email preview frame (admin) */
.email-frame { width: 100%; min-height: 640px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }

/* Utilities */
.nowrap { white-space: nowrap; }
.break { overflow-wrap: anywhere; }
.w-100 { width: 100%; }
.text-green { color: var(--green-text); }
.text-danger { color: var(--danger); }
.text-pro { color: var(--pro-fg); }
.fw-800 { font-weight: 800; }
.hide-phone { display: none; }
@media (min-width: 900px) { .hide-phone { display: revert; } .only-phone { display: none !important; } }
.only-desktop { display: none; }
@media (min-width: 900px) { .only-desktop { display: block; } }
@media (max-width: 380px) { .site-nav .login { display: none; } .logo { font-size: 17px; } .site-nav { gap: 10px; } }
@media (min-width: 381px) { .mobile-menu .login-link { display: none; } }

/* ---------------- Free call page ---------------- */
.fc-layout { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.fc-card { flex: 999 1 560px; min-width: 0; margin-top: -48px; box-shadow: 0 10px 30px rgba(15,23,42,.06); position: relative; }
.fc-aside { flex: 1 1 300px; min-width: 0; padding-top: 8px; }
.fc-progress { margin-bottom: 22px; }
.fc-h2 { font-size: 22px; }
.fc-brief { margin: 0; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .fc-brief { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fc-brief dt { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.fc-brief dd { margin: 4px 0 0; font-weight: 800; }
.fc-dots { justify-content: flex-start; color: var(--muted-2); }
.fc-dots li.done { color: var(--green-text); } .fc-dots li.done::before { background: var(--green); }
.fc-dots li.now { color: var(--text); } .fc-dots li.now::before { background: var(--text); }
.fc-layout.is-report .fc-aside { display: none; }
.fc-card .coach-report { box-shadow: none; border-radius: 16px; }
@media (max-width: 639px) { .fc-layout.is-report .fc-card { padding: 14px; } .fc-card .coach-report { margin: 0 -4px; } }
.fc-save { border: 2px solid var(--green-border); border-radius: 16px; padding: 20px; background: var(--tint-2); }
.fc-actions { display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 640px) { .fc-actions { flex-direction: row; } .fc-actions .btn { flex: 1; } }
.fc-expect { list-style: none; padding: 0; counter-reset: fx; display: flex; flex-direction: column; gap: 12px; }
.fc-expect li { counter-increment: fx; display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); font-size: 15px; }
.fc-expect li::before { content: counter(fx); width: 26px; height: 26px; border-radius: 99px; background: var(--tint); color: var(--green-deep); font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; flex: none; }
@media (max-width: 899px) { .fc-card { margin-top: -56px; padding: 20px; } }

/* ---------------- Account pages ---------------- */
.auth-card .consent summary { cursor: pointer; font-weight: 700; }
.auth-card .consent p { line-height: 1.55; }
.mark-circle { width: 52px; height: 52px; border-radius: 99px; background: var(--tint); display: inline-flex; align-items: center; justify-content: center; }
.team-mark { width: 44px; height: 44px; border-radius: 12px; background: var(--ink); color: var(--on-dark); font-weight: 800; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.auth-card .stepper li { min-width: 0; }

/* ---------------- Public pages ---------------- */
/* ---------- Public pages (Fork A) ---------- */
.js .no-js-only { display: none; }
.pricing-hero { padding-bottom: 96px; }
@media (min-width: 900px) { .pricing-hero { padding-bottom: 128px; } }
.plans-wrap { max-width: 980px; margin-top: -72px; position: relative; }
@media (min-width: 900px) { .plans-wrap { margin-top: -88px; } }
.plan-card { box-shadow: 0 10px 30px rgba(15,23,42,.06); }
.plan-pro { box-shadow: 0 10px 30px rgba(16,185,129,.14); }
.hero-eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: .14em; color: var(--on-dark-soft); text-transform: uppercase; }
.path-link { text-decoration: none; color: var(--text); display: flex; flex-direction: column; gap: 10px; }
.path-link:hover { border-color: var(--green-border); color: var(--text); }
.path-link .go { font-weight: 800; color: var(--green-text); }
.path-link .t { font-size: 22px; font-weight: 800; line-height: 1.2; }
@media (min-width: 900px) { .path-link .t { font-size: 24px; } }
.steps-cards { list-style: none; padding: 0; }
.steps-cards li { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.steps-cards h3 { font-size: 20px; }
.steps-cards p { color: var(--muted); }
.demo-table { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 20px 50px rgba(15,23,42,.08); overflow: hidden; }
.demo-table .head { padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.demo-table .dtable td, .demo-table .dtable th { padding: 12px 14px; }
.st-review { color: #9A3412; font-weight: 800; }
.st-coached { color: var(--green-text); font-weight: 700; }
.split { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); } }
.contact-wrap { max-width: 1000px; margin-top: -36px; position: relative; display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); align-items: start; padding-bottom: 64px; }
@media (min-width: 900px) { .contact-wrap { grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); } }
.contact-card { box-shadow: 0 10px 30px rgba(15,23,42,.06); }
.contact-aside { padding-top: 8px; }
@media (min-width: 900px) { .contact-aside { padding-top: 60px; } }
.contact-aside .item { display: flex; gap: 10px; align-items: flex-start; color: var(--text-2); }
.contact-aside .item svg { flex: none; margin-top: 3px; }
.sent-icon { width: 48px; height: 48px; border-radius: 99px; background: var(--tint); display: flex; align-items: center; justify-content: center; }
.provider-logo { height: 22px; width: auto; filter: brightness(0) invert(1); opacity: .85; }
.tip-time { font-family: var(--mono); font-size: 13px; color: var(--green-text); }
.legal-hero p { color: var(--on-dark-text); font-family: var(--mono); font-size: 14px; margin-top: 10px; }
.legal-hero a { color: var(--on-dark-soft); }
.legal-hero h1 { font-size: 34px; }
@media (min-width: 900px) { .legal-hero h1 { font-size: 46px; } }
.legal-body { padding-top: 32px; padding-bottom: 64px; }
@media (min-width: 900px) { .legal-body { padding-top: 56px; padding-bottom: 88px; } }
.legal-article { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
@media (min-width: 640px) { .legal-article { padding: 32px 36px; } }
.legal-article h2:first-child { margin-top: 0; }
.legal-article section { scroll-margin-top: 20px; }
.toc-wrap { margin-bottom: 24px; }
.toc-wrap .label { font-size: 12px; font-weight: 800; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; margin-bottom: 8px; }
.toc a { color: var(--text-2); text-decoration: none; display: block; padding: 4px 0; }
.toc a:hover { color: var(--green-text); text-decoration: underline; }
.note-new { border-left: 3px solid var(--green); background: var(--tint-2); padding: 12px 16px; border-radius: 0 12px 12px 0; }
@media (max-width: 1099px) { .toc-wrap details > summary { cursor: pointer; font-weight: 800; } }
.unsub-card { max-width: 520px; margin: 0 auto; }
/* Footer logo sits on the dark footer: use on-dark colors (shared footer; safe to merge) */
.site-footer .logo { color: #fff; }
.site-footer .logo .wm > span { color: var(--on-dark-soft); }
@media (max-width: 1099px) { .legal-grid .toc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; font-size: 14px; } .legal-grid .toc a { padding: 3px 0; } }

/* ---------------- Broker portal (also used by admin lists) ---------------- */
/* ---------- Broker portal ---------- */
.review-list, .activity-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.review-list a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; color: var(--text); text-decoration: none; background: #fff; min-height: 56px; }
.review-list a:hover { border-color: var(--green-border); background: var(--tint-2); }
.review-list .who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.review-list .who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.activity-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: 15px; }
.activity-list li:last-child { border-bottom: 0; }
.activity-list .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.text-warn { color: #9A3412; font-weight: 700; }
.dtable tr[aria-selected="true"] td { background: var(--tint-2); }
.drawer-sec { display: flex; flex-direction: column; gap: 10px; }
.drawer-sec h3 { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.drawer-meta { font-size: 14px; color: var(--muted); }
.mini-coach { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.mini-coach .coach-line .said { padding: 10px 14px; }
.mini-coach .coach-line .note { padding: 8px 14px; }
.mini-coach .coach-line .text { font-size: 15px; }
.seat-switch { display: inline-flex; align-items: center; gap: 10px; background: none; border: 0; padding: 4px; cursor: pointer; font-weight: 700; color: var(--text); min-height: 40px; }
.seat-switch .track { width: 42px; height: 24px; border-radius: 99px; background: var(--line-3); position: relative; flex: none; }
.seat-switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 99px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.seat-switch[aria-pressed="true"] .track { background: var(--green); }
.seat-switch[aria-pressed="true"] .track::after { left: 21px; }
.seat-switch[aria-pressed="false"] { color: var(--muted-2); }
.import-steps { display: flex; gap: 8px; list-style: none; padding: 0; flex-wrap: wrap; }
.import-steps li { flex: 1 1 90px; font-size: 13px; font-weight: 800; color: var(--muted-2); }
.import-steps li::before { content: ""; display: block; height: 5px; border-radius: 99px; background: var(--line); margin-bottom: 6px; }
.import-steps li.done, .import-steps li.current { color: var(--text); }
.import-steps li.done::before, .import-steps li.current::before { background: var(--green); }
.count-tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.count-tile { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: #fff; }
.count-tile .n { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.count-tile.ok { border-color: #A7F3D0; background: var(--tint-2); }
.count-tile.warn { border-color: #FDE68A; background: var(--warn-bg); }
.count-tile ul { margin: 6px 0 0; padding-left: 18px; font-size: 13px; color: var(--muted); }
.big-num { font-size: 40px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; }
.big-num small { font-size: 16px; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.cell-stack { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
@media (max-width: 760px) { .dtable.stack-phone .cell-stack { align-items: flex-end; text-align: right; } }
@media (max-width: 899px) { .page-head .actions.desk { display: none; } }
@media (max-width: 400px) { .portal-top .logo .wm { display: none; } } .portal-top .menu-btn { flex: none; }
.mini-coach .ts:empty { display: none; }
.coach-doc.no-notes .coach-line .note { display: none !important; }

/* ---------------- Admin ---------------- */
/* ---- Admin ---- */
.admin-email-grid { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1100px) { .admin-email-grid { grid-template-columns: 280px minmax(0, 1fr); } }
.admin-tpl-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; max-height: 70vh; overflow-y: auto; }
.admin-tpl-list a { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; color: var(--text); text-decoration: none; }
.admin-tpl-list a:hover { background: var(--soft); }
.admin-tpl-list a[aria-current="true"] { background: var(--tint); color: var(--green-deep); }
.admin-email-frame-wrap { background: var(--soft); border-radius: 12px; padding: 12px; }
.admin-email-frame-wrap.phone .email-frame { max-width: 390px; margin: 0 auto; display: block; }
.admin-lint-bad { color: var(--danger); font-weight: 700; }
@media (max-width: 640px) {
  .toolbar .field { flex: 1 1 100%; }
  .toolbar .field-date { flex: 1 1 calc(50% - 5px); }
  .toolbar > .btn { flex: 1 1 100%; }
}
@media (max-width: 760px) { .dtable.stack-phone td.primary { flex-direction: column; gap: 2px; } .dtable.stack-phone td.primary .sub { display: block; } }
