/* ================= Design tokens ================= */
:root {
  --bg: #f4f6f3;
  --surface: #ffffff;
  --surface-2: #f6f8f5;
  --ink: #0d1813;
  --ink-2: #33423a;
  --muted: #66766d;
  --line: #e2e8e3;

  --asphalt: #111915;
  --green: #0b7a4b;
  --green-600: #096840;
  --green-ink: #ffffff;
  --green-soft: #e4f4ea;
  --amber: #ffb81c;
  --amber-soft: #fff5db;
  --red: #d7263d;
  --red-soft: #fde9ec;

  --radius: 22px;
  --radius-sm: 14px;
  --shadow-sm: 0 1px 2px rgba(13, 24, 19, .05);
  --shadow: 0 1px 2px rgba(13, 24, 19, .05), 0 10px 30px rgba(13, 24, 19, .06);
  --shadow-lg: 0 24px 60px rgba(13, 24, 19, .16);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a100d;
    --surface: #131b17;
    --surface-2: #18221d;
    --ink: #edf3ef;
    --ink-2: #c4cfc9;
    --muted: #8e9e96;
    --line: #24302a;
    --green: #22b072;
    --green-600: #1c9a63;
    --green-soft: #12301f;
    --amber-soft: #382c0f;
    --red: #ff5a6e;
    --red-soft: #3a1820;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .25);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, .5);
  }
}

/* ================= Base ================= */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -.025em; }
p { margin: 0; }
a { color: var(--green); }
button { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
.muted { color: var(--muted); }
.center { text-align: center; }
.small { font-size: .85rem; }
.spacer { flex: 1; }
.wrap { max-width: 720px; margin: 0 auto; padding: 0 18px 48px; }
.stack > * + * { margin-top: 14px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 10px; }

/* ================= Logo ================= */
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo img { border-radius: 10px; box-shadow: 0 4px 14px rgba(4, 68, 42, .35); }
.wordmark { font-weight: 800; font-size: 1.35rem; letter-spacing: -.04em; color: var(--ink); }
.logo-link { text-decoration: none; color: inherit; }

/* ================= Top bar (app screens) ================= */
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px;
  padding: 12px 18px; background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.topbar.scrolled, .nav.scrolled { border-bottom-color: var(--line); }
.topbar h1 { font-size: 1rem; font-weight: 700; flex: 1; letter-spacing: -.01em; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 13px; border: 1px solid var(--line); background: var(--surface);
  display: grid; place-items: center; cursor: pointer; flex: none;
}
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn.small { width: 34px; height: 34px; border-radius: 10px; }
.icon-btn.small svg { width: 16px; height: 16px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); font-size: .85rem; font-weight: 700; white-space: nowrap; cursor: pointer;
}
.chip.fire { background: var(--amber-soft); border-color: transparent; cursor: default; }

/* ================= Buttons ================= */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 22px; border-radius: 16px; border: 0; text-decoration: none;
  font-weight: 750; font-size: 1rem; cursor: pointer; letter-spacing: -.01em;
  transition: transform .15s var(--ease), box-shadow .2s var(--ease), background .2s;
}
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--green); color: var(--green-ink); box-shadow: 0 8px 22px color-mix(in srgb, var(--green) 32%, transparent); }
.btn.primary:hover { background: var(--green-600); }
.btn.amber { background: var(--amber); color: var(--asphalt); box-shadow: 0 8px 22px rgba(255, 184, 28, .32); }
.btn.ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn.link { background: none; color: var(--green); min-height: 40px; padding: 0 6px; font-weight: 700; }
.btn.whatsapp { background: #25d366; color: #05210f; }
.btn.small { min-height: 38px; padding: 0 12px; font-size: .92rem; }
.btn.lg { min-height: 58px; font-size: 1.05rem; }
.btn.xl { min-height: 62px; padding: 0 30px; font-size: 1.1rem; border-radius: 18px; }
.btn.wide { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ================= Cards ================= */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card h3 { font-size: 1.12rem; font-weight: 800; margin-bottom: 6px; }
.eyebrow { font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--green); margin-bottom: 6px; }
.micro { font-size: .85rem; color: var(--muted); margin-top: 10px; }

/* ================= Landing ================= */
.landing { overflow-x: clip; }
.nav {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between;
  max-width: 1160px; margin: 0 auto; padding: 14px 20px;
  background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
}
.nav-links { display: flex; align-items: center; gap: 18px; }
.nav-links a { color: var(--ink-2); text-decoration: none; font-weight: 650; font-size: .95rem; }
@media (max-width: 560px) { .nav-links a { display: none; } }

.hero {
  max-width: 1160px; margin: 0 auto; padding: 28px 20px 56px;
  display: grid; gap: 40px; align-items: center;
}
@media (min-width: 900px) { .hero { grid-template-columns: 1.05fr .95fr; padding-top: 56px; padding-bottom: 88px; } }
.kicker {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px;
  background: var(--green-soft); color: var(--green); font-weight: 750; font-size: .82rem;
}
.kicker svg { width: 16px; height: 16px; }
.hero h1 { font-size: clamp(2.5rem, 7.5vw, 4.2rem); font-weight: 800; letter-spacing: -.045em; margin: 18px 0 16px; }
.hero h1 em { font-style: normal; color: var(--green); }
.lead { font-size: clamp(1.05rem, 2.4vw, 1.25rem); color: var(--ink-2); max-width: 34ch; margin-bottom: 26px; }
.trust { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 10px 18px; }
.trust li { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; font-weight: 650; color: var(--ink-2); }
.trust svg { color: var(--green); }

.hero-visual { position: relative; }
.photo-frame { border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 4.4; background: #cfd8d2; }
.photo-frame.tall { aspect-ratio: 4 / 5; }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px;
  background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg);
  animation: floaty 6s ease-in-out infinite;
}
.float-card div { display: flex; flex-direction: column; line-height: 1.2; }
.float-card strong { font-weight: 800; }
.float-card span { font-size: .8rem; color: var(--muted); }
.readiness-card { left: -12px; bottom: 34px; }
.float-card .ring-label strong { font-size: .95rem; }
.pass-card { right: -8px; top: 26px; font-weight: 700; font-size: .9rem; animation-delay: -3s; }
.stamp-mini {
  padding: 2px 10px; border: 3px solid var(--green); color: var(--green) !important; border-radius: 8px;
  font-weight: 800 !important; letter-spacing: .1em; font-size: .9rem !important; transform: rotate(-6deg);
}
@keyframes floaty { 50% { transform: translateY(-8px); } }
@media (max-width: 899px) { .readiness-card { left: 10px; } .pass-card { right: 10px; } }

.band.dark { background: radial-gradient(120% 120% at 100% 0%, #1f3329, #0d1511 60%); color: #eef4f0; }
.band-inner { max-width: 1160px; margin: 0 auto; padding: 64px 20px; }
.band h2 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); font-weight: 800; max-width: 22ch; }
.band-lead { color: #b9c7bf; max-width: 52ch; margin: 14px 0 32px; font-size: 1.05rem; }
.stats { display: grid; gap: 14px; }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stats > div { display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: 20px; background: #ffffff0d; border: 1px solid #ffffff14; }
.stats strong { font-size: 2.8rem; font-weight: 800; color: var(--amber); letter-spacing: -.04em; line-height: 1; }
.stats span { color: #dbe5df; font-weight: 600; }
.stats a, .stat-link { color: #9fb4a9; font-size: .8rem; text-align: left; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.section { max-width: 1160px; margin: 0 auto; padding: 72px 20px 0; }
.section.narrow { max-width: 760px; }
.section-h { font-size: clamp(1.8rem, 4.5vw, 2.5rem); font-weight: 800; text-align: center; max-width: 22ch; margin: 0 auto 12px; }
.section-h.left { text-align: left; margin-left: 0; }
.section-sub { text-align: center; color: var(--muted); max-width: 52ch; margin: 0 auto 30px; font-size: 1.05rem; }
.steps { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 14px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.step-n {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; margin-bottom: 16px;
  background: var(--amber); color: var(--asphalt); font-weight: 800;
}
.steps h3 { font-size: 1.25rem; font-weight: 800; margin-bottom: 6px; }
.steps p { color: var(--ink-2); }

.split { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1.1fr .9fr; } }
.feature-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 18px; }
.feature-list li { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; }
.feature-list li > svg { width: 44px; height: 44px; padding: 10px; border-radius: 14px; background: var(--green-soft); color: var(--green); }
.feature-list strong { display: block; font-weight: 800; font-size: 1.05rem; }
.feature-list span { color: var(--muted); }

.sample { display: grid; gap: 20px; align-items: center; max-width: 760px; margin: 26px auto 0; }
@media (min-width: 640px) { .sample { grid-template-columns: 170px 1fr; } }
.sample-sign { display: grid; place-items: center; padding: 18px; border-radius: 18px; background: linear-gradient(180deg, #e3efe8, #eef4f0); }
.sample-sign svg { width: 130px; height: auto; filter: drop-shadow(0 10px 14px rgba(0,0,0,.2)); }
.sample-q { font-weight: 750; font-size: 1.15rem; margin-bottom: 14px; }
.sample-options { display: grid; gap: 8px; }
.sample-fb { margin-top: 12px; font-weight: 650; }
.sample-fb.ok { color: var(--green); } .sample-fb.bad { color: var(--red); }

/* ================= Pricing ================= */
.plans { display: grid; gap: 14px; margin-top: 8px; }
@media (min-width: 820px) { .plans { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
.plan {
  position: relative; display: flex; flex-direction: column; gap: 10px; text-align: left; width: 100%;
  padding: 24px 22px; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); transition: transform .2s var(--ease), border-color .2s, box-shadow .2s;
}
button.plan { cursor: pointer; }
button.plan:hover { transform: translateY(-2px); }
.plan.featured { border: 2px solid var(--green); box-shadow: 0 18px 44px color-mix(in srgb, var(--green) 20%, transparent); }
@media (max-width: 819px) { .plan.featured { order: -1; margin-top: 10px; } }
@media (min-width: 820px) { .plans:not(.selectable) .plan.featured { transform: scale(1.04); } }
.plan.selected { border: 2px solid var(--green); background: color-mix(in srgb, var(--green-soft) 45%, var(--surface)); }
.plan-tag {
  position: absolute; top: -12px; left: 22px; padding: 4px 12px; border-radius: 999px;
  background: var(--green); color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
}
.plan-name { font-weight: 800; font-size: 1.1rem; }
.plan-price { display: flex; align-items: baseline; gap: 8px; }
.plan-price strong { font-size: 2.6rem; font-weight: 800; letter-spacing: -.045em; line-height: 1; }
.plan-price span, .plan-blurb, .plan-foot { color: var(--muted); font-size: .9rem; }
.plan-list { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 8px; }
.plan-list li { display: flex; gap: 8px; align-items: flex-start; font-size: .93rem; }
.plan-list svg { color: var(--green); flex: none; margin-top: 2px; }
.plan-foot { margin-top: auto; padding-top: 8px; border-top: 1px dashed var(--line); }
.plan-radio { position: absolute; top: 22px; right: 20px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); }
.plan.selected .plan-radio { border: 7px solid var(--green); }
.plans.selectable { gap: 10px; }
.plans.selectable .plan { padding: 16px 52px 16px 18px; gap: 2px; display: grid; grid-template-columns: 1fr auto; align-items: center; }
.plans.selectable .plan-list, .plans.selectable .plan-foot { display: none; }
.plans.selectable .plan-name { grid-column: 1; }
.plans.selectable .plan-blurb { grid-column: 1; font-size: .85rem; }
.plans.selectable .plan-price { grid-column: 2; grid-row: 1 / span 2; }
.plans.selectable .plan-price strong { font-size: 1.7rem; }
.plans.selectable .plan-price span { display: none; }
.plans.selectable .plan-radio { top: 50%; margin-top: -11px; }
.plans.selectable .plan-tag { top: -10px; left: 16px; }
@media (min-width: 820px) { .plans.selectable { grid-template-columns: 1fr; } }
.included { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.included li { display: flex; gap: 8px; align-items: flex-start; font-size: .93rem; font-weight: 600; }
.included svg { color: var(--green); flex: none; margin-top: 2px; }
.guarantees { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; }
.guarantees li { display: inline-flex; align-items: center; gap: 7px; font-size: .88rem; font-weight: 650; color: var(--ink-2); }
.guarantees svg { color: var(--green); }
.center .btn { margin-top: 26px; }
.toggle { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; margin-bottom: 16px; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle-ui { width: 46px; height: 28px; border-radius: 999px; background: var(--line); position: relative; transition: background .2s; }
.toggle-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .2s var(--ease); }
.toggle input:checked + .toggle-ui { background: var(--green); }
.toggle input:checked + .toggle-ui::after { transform: translateX(18px); }
.toggle input:focus-visible + .toggle-ui { outline: 3px solid var(--amber); outline-offset: 2px; }
.toggle strong { display: inline-flex; align-items: center; gap: 6px; }
.toggle .muted { display: block; font-size: .88rem; }
.pay-card .btn { margin-top: 4px; }

/* ================= FAQ, final CTA, footer ================= */
.faq { display: grid; gap: 10px; margin-top: 24px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; box-shadow: var(--shadow-sm); }
.faq summary { font-weight: 750; }
.faq p { color: var(--ink-2); margin-top: 10px; }
details > summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
details > summary::-webkit-details-marker { display: none; }
details > summary::after { content: "+"; font-size: 1.4rem; color: var(--muted); font-weight: 400; }
details[open] > summary::after { content: "\2212"; }

.final-cta { position: relative; margin: 80px auto 0; max-width: 1160px; border-radius: 0; overflow: hidden; min-height: 380px; display: grid; place-items: center; }
@media (min-width: 900px) { .final-cta { border-radius: 32px; margin-left: 20px; margin-right: 20px; } }
.final-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.final-cta::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 15, 11, .35), rgba(8, 15, 11, .82)); }
.final-inner { position: relative; z-index: 1; text-align: center; color: #fff; padding: 48px 20px; }
.final-inner h2 { font-size: clamp(2rem, 5.5vw, 3rem); font-weight: 800; }
.final-inner p { color: #d5e0da; margin: 12px 0 26px; font-size: 1.05rem; }

.footer { max-width: 1160px; margin: 0 auto; padding: 48px 20px 40px; }
.wrap .footer { padding-left: 0; padding-right: 0; }
.footer-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.footer-top p { color: var(--muted); font-weight: 600; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 20px 0; }
.footer-links a { color: var(--ink-2); text-decoration: none; font-weight: 650; font-size: .92rem; }
.fine { font-size: .78rem; color: var(--muted); margin-top: 8px; line-height: 1.6; max-width: 80ch; }

/* ================= Dashboard ================= */
.dash-hero { margin-top: 8px; }
.dash-top { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; margin-bottom: 20px; }
.dash-top h2 { font-size: 1.3rem; font-weight: 800; margin-bottom: 4px; }
.section-rings { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.mini { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 12px 6px; border-radius: 16px; background: var(--surface-2); }
.mini .ring-label strong { font-size: .92rem; }
.mini small { font-size: .74rem; font-weight: 700; color: var(--muted); line-height: 1.25; }
.quick-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.ql {
  position: relative; display: flex; align-items: center; gap: 10px; padding: 16px; text-align: left; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; font-weight: 700; font-size: .93rem; box-shadow: var(--shadow-sm);
}
.ql svg { width: 22px; height: 22px; color: var(--green); flex: none; }
.badge-lock { position: absolute; top: 8px; right: 10px; color: var(--muted); }
.upsell-card { display: flex; align-items: center; gap: 16px; margin-top: 14px; background: var(--amber-soft); border-color: color-mix(in srgb, var(--amber) 40%, transparent); }
.upsell-card > div { flex: 1; }
.upsell-card h3 { margin: 0; }
.row-card {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px; text-align: left; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); cursor: pointer;
}
.row-text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.row-text strong { font-weight: 800; }
.row-text span { color: var(--muted); font-size: .88rem; }
.src-icon svg { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--green-soft); color: var(--green); }

/* ================= Rings & meters ================= */
.ring { position: relative; display: grid; place-items: center; flex: none; }
.ring svg { transform: rotate(-90deg); display: block; }
.ring .track { stroke: var(--line); }
.ring .value { stroke: var(--green); stroke-linecap: round; transition: stroke-dashoffset 1.2s var(--ease); }
.ring.warn .value { stroke: var(--amber); }
.ring.bad .value { stroke: var(--red); }
.ring-label { position: absolute; text-align: center; line-height: 1; }
.ring-label strong { display: block; font-size: 1.55rem; font-weight: 800; letter-spacing: -.03em; }
.ring-label span { font-size: .68rem; color: var(--muted); font-weight: 750; text-transform: uppercase; letter-spacing: .06em; }
.meter { position: relative; height: 10px; margin: 10px 0 6px; border-radius: 999px; background: var(--line); }
.meter > div { height: 100%; border-radius: 999px; background: var(--green); width: 0; transition: width 1s var(--ease); }
.meter.bad > div { background: var(--red); }
.meter i { position: absolute; top: -5px; width: 3px; height: 20px; border-radius: 2px; background: var(--ink); }
.meter-note { font-size: .82rem; color: var(--muted); }

/* ================= Quiz ================= */
.quiz-head { display: flex; align-items: center; gap: 12px; }
.quiz-head .count { font-weight: 800; font-size: .95rem; flex: 1; }
.timer { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-variant-numeric: tabular-nums; font-weight: 800; }
.timer.low { background: var(--red-soft); color: var(--red); border-color: transparent; animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .6; } }
.track-bar { display: flex; gap: 3px; margin: 14px 0 18px; }
.track-bar i { flex: 1; height: 6px; border-radius: 3px; background: var(--line); transition: background .3s; }
.track-bar i.done { background: var(--green); } .track-bar i.bad { background: var(--red); } .track-bar i.here { background: var(--amber); }
.track-bar.dense { gap: 2px; } .track-bar.dense i { height: 5px; }
.q-card { padding: 22px 18px; animation: rise .35s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.q-section { display: inline-block; margin-bottom: 12px; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: .74rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.q-text { font-size: 1.22rem; font-weight: 750; letter-spacing: -.01em; }

.sign-stage { position: relative; overflow: hidden; display: grid; place-items: center; margin: 0 0 20px; border-radius: 18px;
  background: linear-gradient(180deg, #dfeee6 0%, #eef4f0 62%, #d9dfdb 62%, #cfd6d2 100%); }
.sign-stage.post { padding: 22px 0 0; min-height: 230px; }
.sign-stage.post::before { content: ""; position: absolute; left: 50%; top: 40%; bottom: 0; width: 8px; margin-left: -4px; background: linear-gradient(90deg, #8f9893, #cfd5d1 45%, #7d8681); border-radius: 2px; }
.sign-stage.post::after { content: ""; position: absolute; left: 50%; bottom: 10px; width: 70px; height: 10px; margin-left: -35px; background: radial-gradient(closest-side, rgba(0,0,0,.22), transparent); border-radius: 50%; }
.sign-stage .sign-art { position: relative; z-index: 1; align-self: start; }
.sign-stage.post svg { width: min(160px, 44vw); height: auto; max-height: 190px; filter: drop-shadow(0 10px 14px rgba(0,0,0,.22)); }
.sign-stage.road { background: #3e4340; padding: 0; }
.sign-stage.road .sign-art, .sign-stage.road svg { width: 100%; display: block; }
.sign-stage.road svg { height: 190px; }
@media (prefers-color-scheme: dark) { .sign-stage { background: linear-gradient(180deg, #1d2a24 0%, #22302a 62%, #18201c 62%, #141b17 100%); } }
.diagram-stage { margin: 0 0 18px; border-radius: 18px; overflow: hidden; }
.diagram-stage svg { width: 100%; height: auto; display: block; }
.legend { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px 14px; margin: 14px 0 0; padding: 14px; border-radius: 14px; background: var(--surface-2); }
.legend div { display: flex; gap: 8px; align-items: center; font-size: .85rem; }
.legend dt { display: grid; place-items: center; min-width: 24px; height: 24px; border-radius: 50%; background: var(--amber); color: var(--asphalt); font-weight: 800; font-size: .78rem; }
.legend dd { margin: 0; }

.options { display: grid; gap: 10px; margin-top: 18px; }
.option {
  display: flex; gap: 14px; align-items: center; text-align: left; width: 100%; min-height: 60px; padding: 12px 14px;
  background: var(--surface); border: 2px solid var(--line); border-radius: 16px; cursor: pointer;
  transition: border-color .15s, background .15s, transform .15s var(--ease);
}
.option.slim { min-height: 50px; }
.option:hover:not(:disabled) { border-color: color-mix(in srgb, var(--green) 50%, var(--line)); }
.option:active:not(:disabled) { transform: scale(.99); }
.opt-letter { flex: none; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; font-weight: 800; font-size: .9rem; background: var(--surface-2); border: 1px solid var(--line); }
.opt-text { flex: 1; font-weight: 600; }
.option.chosen, .option.right { border-color: var(--green); background: var(--green-soft); }
.option.chosen .opt-letter, .option.right .opt-letter { background: var(--green); color: #fff; border-color: transparent; }
.option.wrong { border-color: var(--red); background: var(--red-soft); animation: shake .35s; }
.option.wrong .opt-letter { background: var(--red); color: #fff; border-color: transparent; }
.option:disabled { cursor: default; color: var(--ink); }
.option.dim { opacity: .55; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.mark { display: block; margin-top: 3px; font-size: .8rem; font-weight: 800; }
.option.right .mark { color: var(--green); } .option.wrong .mark { color: var(--red); }
.kbd { margin-left: auto; font-size: .72rem; color: var(--muted); font-weight: 700; }
@media (hover: none) { .kbd { display: none; } }
.explain { margin-top: 16px; padding: 14px 16px; border-radius: 16px; display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; animation: rise .3s var(--ease); }
.explain.ok { background: var(--green-soft); } .explain.bad { background: var(--red-soft); }
.explain .dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; }
.explain.ok .dot { background: var(--green); } .explain.bad .dot { background: var(--red); }
.explain strong { display: block; margin-bottom: 2px; }
.explain p { color: var(--ink-2); font-size: .95rem; }
.source { display: flex; gap: 6px; align-items: flex-start; margin-top: 10px !important; font-size: .78rem !important; color: var(--muted) !important; font-weight: 600; }
.source svg { width: 14px; height: 14px; flex: none; margin-top: 2px; }
.consent { margin-top: 10px; font-size: .75rem; color: var(--muted); text-align: center; line-height: 1.5; }
.consent a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.report { margin-top: 8px; font-size: .78rem; }
.report summary { cursor: pointer; color: var(--muted); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; list-style: none; padding: 4px 0; }
.report summary::-webkit-details-marker { display: none; }
.report-reasons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.report-reasons .chip { font-size: .8rem; }
.report-done { margin-top: 8px !important; font-size: .78rem !important; color: var(--green) !important; font-weight: 700; }
.quiz-nav { position: sticky; bottom: 0; z-index: 10; display: flex; gap: 10px; margin: 18px -18px 0; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--bg) 70%, transparent); }
.quiz-nav .btn { flex: 1; } .quiz-nav .btn.ghost { flex: 0 0 auto; }
.warn-box { margin-top: 12px; display: grid; gap: 10px; border-color: var(--amber); }
.grid-wrap { margin-top: 16px; }
.grid-wrap summary { font-weight: 700; color: var(--muted); }
.qgrid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; margin-top: 10px; }
.qcell { aspect-ratio: 1; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-size: .8rem; font-weight: 700; cursor: pointer; }
.qcell.done { background: var(--green-soft); border-color: transparent; }
.qcell.flag { box-shadow: inset 0 0 0 2px var(--amber); }
.qcell.here { outline: 2px solid var(--green); outline-offset: 1px; }

/* ================= Results ================= */
.result-hero { text-align: center; padding: 30px 20px 24px; }
.result-hero .ring { margin: 6px auto 0; }
.stamp { display: inline-block; margin-top: 16px; padding: 6px 18px; border: 4px solid currentColor; border-radius: 12px; font-weight: 800; font-size: 1.6rem; letter-spacing: .12em; transform: rotate(-6deg); animation: stamp .5s .6s var(--ease) both; }
.stamp.ok { color: var(--green); } .stamp.bad { color: var(--red); }
@keyframes stamp { from { opacity: 0; transform: rotate(-6deg) scale(2.2); } }
.result-hero h2 { margin-top: 14px; font-size: 1.5rem; font-weight: 800; }
.result-hero p { margin-top: 6px; }
.sec-row { padding: 14px 0; border-top: 1px solid var(--line); }
.sec-row:first-of-type { border-top: 0; }
.sec-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sec-top strong { font-weight: 800; }
.pill { padding: 4px 10px; border-radius: 999px; font-weight: 800; font-size: .74rem; letter-spacing: .04em; text-transform: uppercase; }
.pill.ok { background: var(--green-soft); color: var(--green); } .pill.bad { background: var(--red-soft); color: var(--red); }
.upsell { color: #eef4f0; border: 0; background: radial-gradient(120% 120% at 100% 0%, #24342c, #0d1511); }
.upsell h3 { font-size: 1.35rem; }
.upsell p { color: #c9d3ce; margin: 8px 0 16px; }
.upsell .trust li { color: #c9d3ce; }
.review { list-style: none; padding: 0; margin: 12px 0 0; }
.review li { padding: 14px 0; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.review .q { font-weight: 700; }
.review .bad-ans { color: var(--red); } .review .ok-ans { color: var(--green); font-weight: 700; }
.review .sign-mini svg { width: 70px; height: auto; }

/* ================= Progress, guide, sources ================= */
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { padding: 14px; border-radius: 16px; background: var(--surface-2); text-align: center; }
.stat strong { display: block; font-size: 1.45rem; font-weight: 800; }
.stat span { font-size: .74rem; color: var(--muted); font-weight: 700; }
.attempts { list-style: none; margin: 8px 0 0; padding: 0; }
.attempts li { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.attempts li:first-child { border-top: 0; }
.score-tag { font-weight: 800; font-variant-numeric: tabular-nums; }
.week { display: flex; gap: 6px; justify-content: space-between; margin-top: 12px; }
.week div { flex: 1; text-align: center; font-size: .72rem; color: var(--muted); font-weight: 700; }
.week i { display: block; height: 34px; margin-bottom: 6px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.week i.on { background: var(--amber); border-color: transparent; }
.guide-step { display: grid; grid-template-columns: auto 1fr; gap: 14px; }
.step-no { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--amber); color: var(--asphalt); font-weight: 800; }
.guide-step ul { margin: 0; padding-left: 18px; color: var(--ink-2); }
.guide-step li { margin: 4px 0; }
.format-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.format-grid div { padding: 12px 8px; border-radius: 14px; background: var(--surface-2); text-align: center; }
.format-grid strong { display: block; font-size: 1.4rem; font-weight: 800; }
.format-grid span { font-size: .72rem; color: var(--muted); font-weight: 700; line-height: 1.2; display: block; }
.prose p + p { margin-top: 10px; }

/* ================= Account, codes ================= */
.field { display: grid; gap: 6px; margin: 12px 0; font-weight: 700; font-size: .9rem; }
.field input { min-height: 52px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); font: inherit; font-weight: 600; }
.field input:focus { outline: 3px solid color-mix(in srgb, var(--green) 40%, transparent); border-color: var(--green); }
.msg { min-height: 1.4em; margin-top: 10px; font-size: .9rem; font-weight: 600; }
.msg.bad { color: var(--red); } .msg.ok { color: var(--green); }
.account-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.account-row > div { display: flex; flex-direction: column; min-width: 0; }
.account-row strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.access-ok-card { display: flex; align-items: center; gap: 14px; background: var(--green-soft); border-color: transparent; }
.access-ok-card > svg { width: 32px; height: 32px; color: var(--green); flex: none; }
.access-ok-card div { display: flex; flex-direction: column; }
.codes-box { display: grid; gap: 8px; margin: 18px 0; }
.code-chip { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 10px 10px 16px; border-radius: 14px; background: var(--surface-2); border: 1px dashed var(--green); }
.code-chip code { font-size: 1.2rem; font-weight: 800; letter-spacing: .08em; }
.gift-icon { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 10px; border-radius: 20px; background: var(--amber-soft); }
.gift-icon svg { width: 32px; height: 32px; }

/* ================= Misc ================= */
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 50; }
.toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 60; transform: translateX(-50%); max-width: calc(100% - 32px); text-align: center; padding: 12px 18px; border-radius: 14px; background: var(--asphalt); color: #fff; font-weight: 700; box-shadow: var(--shadow-lg); animation: rise .3s var(--ease); }
@keyframes flash { 50% { opacity: .15; } }
.flash { animation: flash 1s steps(1) infinite; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media (forced-colors: active) {
  .option.right, .option.wrong { border-width: 4px; }
  .option.wrong { border-style: dashed; }
  .meter > div, .track-bar i.done { background: Highlight; }
}
