/* The assessment (plan/index.html). Builds on site.css tokens. Served no-store while it is
   a preview, so no version query is needed yet. */

/* A landing page converts better with nowhere else to go: the header keeps its logo only. */
.as-page .site-header .header-nav,
.as-page .site-header .header-end,
.as-page .site-header .hamburger,
.as-page .mobile-nav { display: none !important; }

.as-page main { padding-top: var(--header-h); }
.as-page [hidden] { display: none !important; }

.as-stage {
    min-height: calc(100vh - var(--header-h));
    padding: 36px 16px 80px;
    background: radial-gradient(1200px 520px at 50% -8%, rgba(77, 184, 176, .20), transparent 70%);
}
.as-card { max-width: 600px; margin: 0 auto; }

.as-label { display: inline-block; font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 8px; }
.as-h1 { font-size: clamp(30px, 6vw, 44px); line-height: 1.12; font-weight: 800; margin: 0 0 14px; letter-spacing: -.5px; }
.as-h2 { font-size: clamp(22px, 4.6vw, 28px); line-height: 1.22; font-weight: 800; margin: 0 0 10px; }
.as-h3 { font-size: 19px; font-weight: 800; margin: 28px 0 12px; }
.as-sub { color: var(--text-secondary); font-size: 17px; line-height: 1.55; margin: 0 0 18px; }
.as-muted { color: var(--muted); font-size: 13px; line-height: 1.55; }

.as-points { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 22px; padding: 0; list-style: none; }
.as-points li { color: var(--text-secondary); font-size: 14px; }

/* Buttons */
.as-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: var(--accent); color: #031414; border: 0; border-radius: 999px; padding: 15px 28px; font: 700 17px/1 var(--font); cursor: pointer; text-decoration: none; transition: background .15s, transform .15s, box-shadow .15s; }
.as-btn:hover { background: var(--accent-light); transform: translateY(-1px); box-shadow: 0 12px 36px rgba(77, 184, 176, .35); }
.as-btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.as-btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.as-btn.ghost:hover { border-color: var(--accent); background: rgba(77, 184, 176, .06); box-shadow: none; }
.as-btn.block { width: 100%; }
.as-btn .spin { width: 18px; height: 18px; border: 2.5px solid rgba(3, 20, 20, .25); border-top-color: #031414; border-radius: 50%; animation: as-spin .8s linear infinite; }
@keyframes as-spin { to { transform: rotate(360deg); } }
.as-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 18px; }
.as-link { background: none; border: 0; color: var(--muted); font: 600 14px var(--font); cursor: pointer; padding: 8px 0; }
.as-link:hover { color: var(--text); }

/* Questions */
.as-bar { height: 6px; background: var(--surface2); border-radius: 99px; overflow: hidden; margin-bottom: 22px; }
.as-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-light)); transition: width .35s ease; }
.as-step { color: var(--muted); font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.as-q { font-size: clamp(22px, 4.6vw, 27px); line-height: 1.25; font-weight: 800; margin: 0 0 6px; }
.as-opt { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: var(--surface2); color: var(--text); border: 1px solid var(--border); border-radius: 16px; padding: 15px 16px; margin: 10px 0; font: 500 16px var(--font); cursor: pointer; transition: border-color .15s, background .15s; }
/* Hover only where a pointer really hovers: on a phone :hover sticks after a tap, so an untapped answer kept its border (Dean 11-18). */
@media (hover: hover) { .as-opt:hover { border-color: var(--accent); } }
.as-opt.on { border-color: var(--accent); background: var(--surface-active); }
.as-help { margin: 20px 0 0; padding: 14px 16px; border-radius: 14px; background: rgba(77, 184, 176, .12); border: 1px solid rgba(77, 184, 176, .3); color: #cfdcdb; font-size: 14.5px; line-height: 1.55; animation: asHelp .25s ease; }
.as-help p { margin: 0 0 8px; }
.as-help-k { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.as-help-k::before { content: '💡 '; letter-spacing: 0; }
.as-help p:last-child, .as-help ul:last-child { margin-bottom: 0; }
.as-help strong { color: var(--text); }
.as-help ul { margin: 6px 0 0; padding-left: 18px; }
.as-help li { margin: 4px 0; }
.as-help.picked { border-color: rgba(77, 184, 176, .55); background: rgba(77, 184, 176, .16); }
.as-help-lead { color: var(--text); font-weight: 600; }
.as-help-num { color: var(--text); }
@keyframes asHelp { from { opacity: .4; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .as-help { animation: none; } }
.as-opt .e { font-size: 22px; width: 28px; text-align: center; }
.as-opt .tick { margin-left: auto; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--border); flex: none; }
.as-opt.on .tick { background: var(--accent); border-color: var(--accent); box-shadow: inset 0 0 0 4px var(--surface-active); }

/* Building the plan */
.as-build { text-align: center; padding: 40px 0; }
.as-ring { width: 72px; height: 72px; margin: 0 auto 22px; border-radius: 50%; border: 4px solid var(--surface2); border-top-color: var(--accent); animation: as-spin 1s linear infinite; }
.as-checks { list-style: none; padding: 0; margin: 18px auto 0; max-width: 340px; text-align: left; }
.as-checks li { display: flex; gap: 10px; align-items: center; padding: 8px 0; color: var(--muted); font-size: 16px; transition: color .3s; }
.as-checks li::before { content: ""; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--border); flex: none; transition: all .3s; }
.as-checks li.done { color: var(--text); }
.as-checks li.done::before { background: var(--accent); border-color: var(--accent); box-shadow: inset 0 0 0 4px var(--bg); }

/* The result */
.as-reveal { animation: as-up .5s ease both; }
@keyframes as-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.as-hero { background: radial-gradient(600px 240px at 50% 0, rgba(77, 184, 176, .22), transparent 70%), var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 26px 22px; text-align: center; }
.as-mode { display: inline-flex; align-items: center; gap: 6px; background: var(--surface-active); color: var(--accent-light); border-radius: 99px; padding: 5px 14px; font-size: 13px; font-weight: 700; margin-bottom: 12px; }
.as-goal { color: var(--text-secondary); font-size: 15px; margin: 4px 0 0; }
.as-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 20px 0 8px; }
.as-stats div { background: var(--surface2); border: 1px solid var(--border); border-radius: 16px; padding: 14px 8px; }
.as-stats b { display: block; font-size: clamp(20px, 4.4vw, 26px); font-weight: 800; color: var(--accent-light); font-variant-numeric: tabular-nums; }
.as-stats span { font-size: 13px; color: var(--text-secondary); }
.as-warn { background: #2b1a16; border: 1px solid #5a2a20; border-radius: 16px; padding: 14px 16px; font-size: 15px; line-height: 1.55; margin: 16px 0; text-align: left; }
.as-warn a { color: #ff9a85; }
.as-tried { background: var(--surface); border-left: 3px solid var(--accent); border-radius: 10px; padding: 12px 14px; color: var(--text-secondary); margin: 16px 0; }

.as-block { display: flex; gap: 16px; align-items: center; background: var(--surface2); border: 1px solid var(--border); border-radius: 18px; padding: 14px; margin: 12px 0; }
.as-block img { width: 84px; height: 112px; object-fit: cover; object-position: top; border-radius: 12px; flex: none; box-shadow: 0 8px 24px rgba(0, 0, 0, .45); }
.as-block .n { font-size: 11px; font-weight: 800; letter-spacing: 1px; color: var(--accent); }
.as-block h4 { margin: 2px 0 4px; font-size: 17px; line-height: 1.3; }
.as-block p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--text-secondary); }
.as-block.locked { position: relative; }
.as-block.locked img, .as-block.locked p { filter: blur(6px); opacity: .6; user-select: none; }
.as-block.locked .lock { position: absolute; right: 14px; top: 14px; font-size: 16px; }

.as-email { background: linear-gradient(180deg, rgba(77, 184, 176, .12), rgba(77, 184, 176, .03)), var(--surface); border: 1px solid rgba(77, 184, 176, .45); border-radius: var(--radius-xl); padding: 24px 20px; margin: 24px 0 10px; }
.as-email ul { margin: 0 0 16px; padding-left: 20px; color: var(--text-secondary); line-height: 1.8; }
.as-input { width: 100%; background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: 14px; padding: 15px 16px; font: 16px var(--font); margin-bottom: 12px; }
.as-input:focus { outline: none; border-color: var(--accent); }
.as-chk { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-secondary); line-height: 1.5; margin: 4px 0 16px; cursor: pointer; }
.as-chk input { margin-top: 3px; accent-color: var(--accent); width: 18px; height: 18px; flex: none; }
.as-err { color: #ff8a75; font-size: 14px; margin: -4px 0 12px; }

.as-week { list-style: none; padding: 0; margin: 0; counter-reset: wk; }
.as-week li { counter-increment: wk; display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 16px; }
.as-week li::before { content: counter(wk); width: 28px; height: 28px; border-radius: 50%; background: var(--surface-active); color: var(--accent-light); font-weight: 800; font-size: 14px; display: grid; place-items: center; flex: none; }
.as-sent { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; font-size: 14px; color: var(--text-secondary); margin: 0 0 18px; }
.as-get { text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 24px 18px; margin-top: 26px; }

@media (max-width: 480px) {
    .as-block img { width: 70px; height: 96px; }
    .as-stats { gap: 6px; grid-template-columns: repeat(2, 1fr); }
}

/* ─── The landing (before Start) ─────────────────────────────────────────────── */
.as-page .grecaptcha-badge { visibility: hidden !important; }
.pl-wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.pl-center { text-align: center; }
.as-btn.xl { padding: 18px 34px; font-size: 18px; }
.pl-hero { padding: 56px 0 40px; background: radial-gradient(1200px 560px at 70% -10%, rgba(77, 184, 176, .22), transparent 70%); overflow: clip; }
.pl-band { padding: 8px 0 24px; }
.as-btn.pl-mega { width: 100%; max-width: 720px; padding: 26px 34px; font-size: 24px; font-weight: 700; border-radius: 20px; box-shadow: 0 18px 50px rgba(77, 184, 176, .28); }
.pl-band-note { margin: 14px 0 0; color: var(--text-secondary); font-size: 15px; }
.pl-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.pl-trust { display: flex; gap: 16px; flex-wrap: wrap; list-style: none; padding: 0; margin: 20px 0 0; color: var(--text-secondary); font-size: 14px; }
.pl-visual { position: relative; height: 520px; }
.pl-phone { position: absolute; width: 230px; border-radius: 34px; overflow: hidden; border: 6px solid #1a1f1f; box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 0 1px var(--border); }
.pl-phone img { display: block; width: 100%; height: auto; }
.pl-phone.front { left: 22%; top: 30px; z-index: 2; animation: pl-float 6s ease-in-out infinite; }
.pl-phone.back { left: 50%; top: 0; transform: rotate(6deg); opacity: .75; }
.pl-float { position: absolute; z-index: 3; display: flex; gap: 10px; align-items: center; background: rgba(21, 26, 26, .92); border: 1px solid var(--border); border-radius: 16px; padding: 10px 14px; box-shadow: 0 14px 40px rgba(0, 0, 0, .5); backdrop-filter: blur(8px); }
.pl-float .ic { font-size: 22px; }
.pl-float strong { display: block; font-size: 14px; }
.pl-float span:not(.ic) { font-size: 12px; color: var(--text-secondary); }
.pl-float.f1 { left: 0; top: 70px; }
.pl-float.f2 { right: 0; top: 230px; }
.pl-float.f3 { left: 6%; bottom: 40px; }
@keyframes pl-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.pl-sec { padding: 56px 0; }
.pl-h2 { font-size: clamp(24px, 4vw, 34px); font-weight: 800; line-height: 1.2; margin: 0 0 22px; text-align: center; }
.pl-get { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pl-get div { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; }
.pl-get .n { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--surface-active); color: var(--accent-light); font-weight: 800; margin-bottom: 12px; }
.pl-get h3 { margin: 0 0 6px; font-size: 18px; }
.pl-get p { margin: 0; color: var(--text-secondary); font-size: 15px; line-height: 1.55; }

.pl-proof { background: radial-gradient(circle at 50% 0%, rgba(77,184,176,0.06) 0%, transparent 60%), radial-gradient(circle at 50% 100%, rgba(77,184,176,0.04) 0%, transparent 60%), repeating-linear-gradient(45deg, transparent, transparent 11px, rgba(77,184,176,0.05) 11px, rgba(77,184,176,0.05) 12px), var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.pl-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.pl-stats .num { font: 800 clamp(28px, 4vw, 38px) var(--font-mono); color: var(--accent); margin-bottom: 8px; }
.pl-stats p { font-size: 14px; color: var(--text-secondary); line-height: 1.5; margin: 0 0 6px; }
.pl-stats a { font-size: 11px; color: var(--muted); text-decoration: underline; }
.pl-foot { text-align: center; margin: 24px 0 0; font-size: 12px; color: var(--muted); font-style: italic; }

.pl-feat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 18px; }
.pl-feat div { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px; }
.pl-feat img { display: block; width: 100%; height: 260px; object-fit: cover; object-position: top; border-radius: 14px; margin-bottom: 14px; }
.pl-feat h3 { margin: 0 0 4px; font-size: 17px; }
.pl-feat p { margin: 0; color: var(--text-secondary); font-size: 15px; line-height: 1.5; }


.pl-final { background: radial-gradient(900px 360px at 50% 100%, rgba(77, 184, 176, .18), transparent 70%); padding-bottom: 80px; }

@media (max-width: 900px) {
    .pl-hero-grid { grid-template-columns: 1fr; }
    .pl-visual { height: 440px; max-width: 420px; margin: 0 auto; width: 100%; }
    .pl-phone { width: 190px; }
    .pl-get,     .pl-stats { grid-template-columns: repeat(2, 1fr); }
    /* Dean 11-18: the hero button centred once the hero stacks; the three "what you get" cards
       as a pyramid, card 1 alone and centred, 2 and 3 under it. */
    .pl-hero .as-btn.xl { display: flex; width: fit-content; margin-inline: auto; }
    .pl-hero .pl-trust { justify-content: center; }
    .pl-get > div:first-child { grid-column: 1 / -1; justify-self: center; width: calc(50% - 8px); }
    .pl-feat { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .as-btn.pl-mega { font-size: 20px; padding: 22px 20px; }
    .pl-feat { grid-template-columns: 1fr; }
    .pl-feat img { height: 220px; }
}
@media (prefers-reduced-motion: reduce) { .pl-phone.front { animation: none; } }

/* Testimonials marquee: copied from the homepage (index.html), same look; pauses on hover/tap */
.testimonials-strip { padding: 48px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); overflow: hidden; position: relative; background: radial-gradient(circle at 50% 0%, rgba(77,184,176,0.06) 0%, transparent 60%), radial-gradient(circle at 50% 100%, rgba(77,184,176,0.04) 0%, transparent 60%), repeating-linear-gradient(135deg, transparent, transparent 11px, rgba(77,184,176,0.05) 11px, rgba(77,184,176,0.05) 12px), var(--surface); }
.testimonials-strip .strip-label { text-align: center; font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin-bottom: 24px; }
.marquee-wrap { max-width: 1200px; margin: 0 auto; overflow: hidden; mask-image: linear-gradient(90deg, transparent, black 60px, black calc(100% - 60px), transparent); -webkit-mask-image: linear-gradient(90deg, transparent, black 60px, black calc(100% - 60px), transparent); }
.marquee-track { display: flex; gap: 24px; width: max-content; animation: marqueeScroll 40s linear infinite; }
.testimonials-strip:hover .marquee-track, .testimonials-strip:active .marquee-track { animation-play-state: paused; }
@keyframes marqueeScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.testimonial-card { flex-shrink: 0; width: 300px; background: var(--surface2); border: 1px solid var(--border); border-radius: 14px; padding: 20px; display: flex; gap: 14px; align-items: flex-start; }
.testimonial-avatar { width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; overflow: hidden; }
.testimonial-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.testimonial-flag { display: inline-block; margin-right: 4px; font-size: 13px; line-height: 1; }
.testimonial-body { flex: 1; min-width: 0; }
.testimonial-quote { font-size: 13px; color: var(--text-secondary); line-height: 1.5; margin-bottom: 8px; font-style: italic; }
.testimonial-name { font-size: 11px; font-weight: 600; color: var(--text); }
.testimonial-location { font-weight: 400; color: var(--muted); margin-left: 2px; }
.testimonial-detail { font-size: 10px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } .marquee-wrap { overflow-x: auto; } }

/* Four numbers since money joined them (Dean 2026-11-18): two by two until there is room. */
@media (max-width: 640px) {
    .as-stats { grid-template-columns: repeat(2, 1fr); }
}

/* The plan page's own header: logo to /plan/, one link to the main site. */
.pl-header .header-inner { justify-content: space-between; }
.pl-main-link { color: var(--muted); font-size: 14px; font-weight: 600; letter-spacing: .2px; padding: 7px 14px; border: 1px solid var(--border); border-radius: 999px; transition: color .2s, border-color .2s; white-space: nowrap; }
.pl-main-link:hover, .pl-main-link:focus-visible { color: var(--text); border-color: var(--accent-light); }

/* The confirmation after the email, and the report-link screens. */
.as-done { text-align: center; }
.as-done-ic { font-size: 46px; line-height: 1; margin: 8px 0 10px; }
.as-checks.static li { align-items: flex-start; }
.as-checks.static { max-width: 440px; }
