/* AnswerDrill site: account bar, top bar, landing sections, pricing, FAQ, footer, status pages.
   Same tokens (tokens.css) and look as the React web app at /answerdrill/app. */

.acct-bar { background: var(--surface-2); border-bottom: 1px solid var(--border); color: var(--muted); font-size: .84rem; }
.acct-inner { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 4px 10px; min-height: 32px; padding-top: 4px; padding-bottom: 4px; text-align: right; }
.acct-text { min-width: 0; overflow-wrap: anywhere; }
.acct-text b { color: var(--text); font-weight: 650; }
/* Small links are at least 24px tall (WCAG 2.5.8 target size). */
.acct-bar a { display: inline-flex; align-items: center; min-height: 24px; color: var(--accent); font-weight: 650; text-decoration: none; white-space: nowrap; }
.acct-bar a:hover { text-decoration: underline; }
.acct-pro { color: var(--ok); font-weight: 650; }
.announcement { background: var(--accent); color: var(--accent-ink); text-align: center; padding: 9px 16px; font-size: .9rem; font-weight: 600; }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--border); }
@media (max-height: 520px) { .topbar { position: static; } }
.topbar-inner { display: flex; align-items: center; gap: 16px; min-height: 62px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.05rem; color: var(--text); text-decoration: none; letter-spacing: -.01em; }
.brand:hover { color: var(--text); }
.brand-mark { width: 30px; height: 30px; flex: none; }
.bm-tile { fill: var(--accent); }
.bm-bubble { fill: var(--accent-ink); }
.bm-wave { stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; fill: none; }
.topnav { display: flex; gap: 22px; margin-left: auto; }
.topnav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; }
.topnav a:hover, .topnav a[aria-current="page"] { color: var(--text); }
.topbar-cta { white-space: nowrap; }
/* The icon shows the theme you switch TO, as in the practice app: a moon while light, a sun while dark. */
#themeToggle .i-sun { display: none; }
:root[data-theme="dark"] #themeToggle .i-moon { display: none; }
:root[data-theme="dark"] #themeToggle .i-sun { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) #themeToggle .i-moon { display: none; }
  :root:not([data-theme="light"]) #themeToggle .i-sun { display: block; }
}
@media (max-width: 760px) { .topnav { display: none; } .topbar-cta { margin-left: auto; } }
@media (max-width: 380px) { .brand span { display: none; } }

/* Hero */
.hero { padding: 48px 0 56px; background:
  radial-gradient(700px 360px at 85% 10%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%),
  radial-gradient(520px 280px at 4% 30%, color-mix(in srgb, var(--filler-edge) 8%, transparent), transparent 70%); }
.hero-grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 940px) { .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 56px; } .hero { padding: 64px 0 80px; } }
.eyebrow { display: inline-block; font-weight: 700; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.hero h1 { font-size: clamp(2.2rem, 5.2vw, 3.7rem); font-weight: 800; letter-spacing: -.035em; margin-bottom: 18px; }
.slogan { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 700; color: var(--text); margin: -6px 0 12px; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 36em; margin-bottom: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.btn.big { min-height: 50px; padding: 0 22px; font-size: 1.02rem; }
.trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-weight: 600; font-size: .95rem; }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { width: 20px; height: 20px; fill: none; stroke: var(--ok); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; padding: 2px; border-radius: 50%; background: var(--ok-soft); }

.preview { border-radius: 20px; padding: 22px; display: grid; gap: 12px; }
.preview p { margin: 0; }
.preview-label { display: flex; align-items: center; justify-content: space-between; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.preview-q { font-weight: 700; font-size: 1.05rem; }
.preview-answer { color: var(--muted); font-size: .95rem; line-height: 1.7; }
mark.filler { background: var(--filler); color: var(--filler-ink); border-radius: 4px; padding: 0 3px; box-shadow: inset 0 -2px 0 var(--filler-edge); }
.preview-scores { margin: 0; display: grid; gap: 8px; }
.preview-scores div { display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: 10px; font-size: .9rem; }
.preview-scores dt { font-weight: 600; }
.preview-scores dd { margin: 0; display: flex; align-items: center; gap: 10px; font-variant-numeric: tabular-nums; }
.preview-scores .bar { flex: 1; height: 10px; border-radius: 99px; background: var(--surface-2); position: relative; overflow: hidden; }
.preview-scores .bar::after { content: ""; position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: var(--accent); width: 60%; }
.preview-scores .bar[data-score="5"]::after { width: 100%; }
.preview-scores .bar[data-score="4"]::after { width: 80%; }
.preview-scores .bar[data-score="3"]::after { width: 60%; }
.preview-scores .bar[data-score="2"]::after { width: 40%; }
.preview-meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: .85rem; }
.preview-meta span { background: var(--accent-soft); color: var(--accent); border-radius: 99px; padding: 2px 10px; font-weight: 600; }
.preview-tip { font-size: .92rem; background: var(--surface-2); border-radius: 10px; padding: 10px 12px; }

/* Sections */
.section { padding: 64px 0; }
.section.alt { background: var(--surface-2); border-block: 1px solid var(--border); }
.section-title { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 800; letter-spacing: -.025em; text-align: center; }
.section-sub { text-align: center; color: var(--muted); max-width: 42em; margin: 0 auto 32px; }
.steps { list-style: none; margin: 28px 0 40px; padding: 0; display: grid; gap: 18px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.steps li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; }
.step-n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-weight: 800; margin-bottom: 12px; }
.steps h3 { font-size: 1.1rem; }
.steps p { color: var(--muted); margin: 0; }
.features { display: grid; gap: 14px; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature { padding: 18px 20px; border-left: 3px solid var(--accent); background: color-mix(in srgb, var(--surface) 60%, transparent); border-radius: 0 12px 12px 0; }
.feature h3 { font-size: 1rem; margin-bottom: 6px; }
.feature p { margin: 0; color: var(--muted); font-size: .95rem; }

.plans { display: grid; gap: 20px; max-width: 900px; margin: 0 auto; }
@media (min-width: 760px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 26px; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.plan.pro { border: 2px solid var(--accent); }
.plan h3 { font-size: 1.25rem; }
.price { font-size: 2.1rem; font-weight: 800; letter-spacing: -.02em; margin: 6px 0 4px; }
.checks { list-style: none; padding: 0; margin: 16px 0 22px; display: grid; gap: 9px; flex: 1; align-content: start; }
.checks li { position: relative; padding-left: 28px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--ok-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='%2316a34a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.pro-cta { display: grid; gap: 12px; }
.pro-cta p { margin: 0; }
.whatsapp svg { stroke: #16a34a; }

#faq details { border-bottom: 1px solid var(--border); padding: 4px 0; }
#faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
#faq summary::-webkit-details-marker { display: none; }
#faq summary::after { content: "+"; color: var(--accent); font-weight: 800; font-size: 1.3rem; line-height: 1; }
#faq details[open] summary::after { content: "–"; }
#faq details p { color: var(--muted); }

.footer { border-top: 1px solid var(--border); padding: 26px 0 34px; font-size: .95rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; }
.footer p { margin: 0; }
.footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer nav a, .footer-inner p a { display: inline-flex; align-items: center; min-height: 24px; }

/* Legal and status pages */
.doc-page { padding: 40px 0 64px; }
.doc-page h1 { font-size: clamp(2rem, 4vw, 2.6rem); }
.doc-page h2 { font-size: 1.25rem; margin-top: 1.8em; }
.doc-page li { margin-bottom: .4em; }
.status-page { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 48px 16px; }
.status-page .card { max-width: 520px; padding: 34px; }
.center-actions { justify-content: center; display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
