/* Back on Shopping home page.
   1. The banner: the headline, and beside it an example store check that
      plays in a loop (home.js). Five pages are read, each problem is flagged
      where it sits, fixed, and the account turns to Ready. Four steps above
      the scene show where the loop is; a click on one jumps there. Without
      script, with reduced motion or on a very short screen the banner is the
      headline with the account panel beside it.
   2. The sections under it. */

@property --glow { syntax: "<color>"; inherits: true; initial-value: #6fd7a4; }

/* The banner, the header over it and the closing band are always dark green. */
.scene, body[data-page="home"] .site-header, .closing {
  --bg: #0b2118; --panel: #11291e; --ink: #f0f6f1; --soft: #c8d6cc; --muted: #9ab0a2; --line: #284232; --tint: #153024;
  --accent: #56d394; --accent-ink: #06120b; --accent-deep: #86e6b4; --pass: #56d394; --warn: #f2b84b; --warn-bg: #2e2412; --fail: #ff8f84; --fail-bg: #40201c;
  color: var(--ink); color-scheme: dark;
}
body[data-page="home"] { overflow-x: clip; }
body[data-page="home"] .site-header { position: absolute; left: 0; right: 0; top: 0; z-index: 6; }
body[data-page="home"] .site-header .wrap, .scene-ui.wrap { max-width: 1280px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Banner: the plain version (no script, reduced motion) ---------- */
.scene { position: relative; isolation: isolate; overflow: hidden; overflow: clip; padding: 128px 0 100px; --glow: #6fd7a4;
  background: linear-gradient(180deg, #0a1e15, #0d2a1d 58%, #0b2118); }
.scene-light { position: absolute; inset: 0; z-index: -1; pointer-events: none; transition: --glow 1.2s ease;
  background:
    radial-gradient(44% 62% at 76% 56%, color-mix(in srgb, var(--glow) 24%, transparent), transparent 72%),
    radial-gradient(56% 70% at 0% 0%, rgba(86, 211, 148, .1), transparent 70%); }
.scene-ui { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; }
.steps, .caps, .stage, .scene-fx { display: none; }

.open h1 { font-size: clamp(42px, min(5.7vw, 9.6vh), 86px); line-height: .98; letter-spacing: -.015em; margin: 18px 0 22px; max-width: 12ch; }
.open .lead { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.55; color: var(--soft); max-width: 33em; margin: 0; }
.open .cta-buttons { margin-top: 28px; }
.scene .eyebrow { color: var(--accent); }
.scene .hero-note, .closing .hero-note { color: var(--muted); }
.scene .button, .closing .button { box-shadow: 0 10px 34px color-mix(in srgb, var(--accent) 24%, transparent); }
.scene .button.secondary { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .24); }
.scene .button.secondary:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }

/* The account panel */
.ledger { background: rgba(13, 34, 25, .8); border: 1px solid rgba(255, 255, 255, .12); border-radius: 18px; padding: 16px 18px 14px;
  box-shadow: 0 28px 64px rgba(2, 12, 8, .45), inset 0 1px 0 rgba(255, 255, 255, .07); -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2);
  transition: border-color .6s ease, box-shadow .6s ease; }
.ledger-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.ledger-store { font: 500 13.5px/1.3 var(--mono); color: var(--ink); white-space: nowrap; }
.ledger-store span { color: var(--muted); }
.ledger-store span::before { content: "· "; }
.ledger .badge { transition: background-color .5s ease, color .5s ease; }
.ledger-list { list-style: none; margin: 4px 0 0; padding: 0; }
.row { border-bottom: 1px dashed var(--line); transition: opacity .4s ease; }
.row:last-child { border-bottom: 0; }
.row-head { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: center; padding: 10px 0; border-radius: 8px; }
.row-title { font-size: 15.5px; font-weight: 500; line-height: 1.3; }
.t-find, .row[data-s="flag"] .t-name { display: none; }
.row[data-s="flag"] .t-find { display: inline; }
.ledger .rule { display: block; font: 500 11.5px/1.4 var(--mono); color: var(--muted); margin-top: 2px; }
.ledger .mark { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--bg); background: var(--fail); transition: background-color .35s ease, box-shadow .35s ease; }
.ledger .mark::after { content: "!"; }
.row[data-s="todo"] .mark { background: transparent; box-shadow: inset 0 0 0 1.5px var(--muted); }
.row[data-s="todo"] .mark::after { content: ""; }
.row[data-s="reading"] .mark { background: transparent; box-shadow: none; border: 2px solid rgba(255, 255, 255, .16); border-top-color: var(--accent); animation: spin .8s linear infinite; }
.row[data-s="reading"] .mark::after { content: ""; }
.row[data-s="ok"] .mark { background: var(--pass); }
.row[data-s="ok"] .mark::after { content: "✓"; }
.row-more { display: grid; grid-template-rows: 1fr; }
.row-more > div { overflow: hidden; min-height: 0; }
.row-more p { margin: 0 0 12px 36px; font-size: 14.5px; line-height: 1.5; color: var(--soft); }
.row-more .k { display: block; font: 500 11px/1.5 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--fail); }
.row-more .fx .k { color: var(--pass); }
.row-more .rd { font: 500 12.5px/1.5 var(--mono); color: var(--muted); }
.rd, .fx { display: none; }
.ledger-foot { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--fail-bg); color: var(--fail); font-weight: 600; font-size: 14.5px; transition: background-color .45s ease, color .45s ease; }
.ledger-foot p { margin: 0; flex: 1; }
.dots { display: none; }

@media (max-width: 880px) {
  .scene { padding: 108px 0 84px; }
  .scene-ui { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 820px) {
  body[data-page="home"] .site-header nav a:not(.nav-cta) { display: none; }
  body[data-page="home"] .site-header .wrap { flex-wrap: nowrap; }
  body[data-page="home"] .site-header .wordmark { font-size: 20px; }
  body[data-page="home"] .site-header .nav-cta { min-height: 40px; padding: 0 13px; font-size: 15px; white-space: nowrap; }
}

/* ---------- Banner: the playing version ---------- */
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) and (min-height: 520px) {
  .scene { padding: 104px 0 84px; }
  .scene-ui { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; }
  .open h1 { font-size: clamp(40px, min(4.7vw, 8.6vh), 70px); margin: 16px 0 20px; }

  /* The reel keeps its height from the first paint, so nothing moves when the
     script starts. If the script never starts, the plain panel shows instead. */
  .reel { position: relative; --mode: wide; --pw: clamp(280px, 46%, 336px); height: clamp(540px, calc(100svh - 128px), 620px); }
  .scene:not(.is-live) .reel { visibility: hidden; overflow: hidden; animation: reveal 0s 5s forwards; }
  .scene.is-live .reel { display: grid; grid-template-columns: var(--pw) minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr); column-gap: 16px; animation: reel-in .9s ease both; }

  /* The four steps and the pause control */
  .scene.is-live .steps { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; position: relative; z-index: 3; }
  .step-list { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; list-style: none; margin: 0; padding: 0; }
  .step { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 8px; align-items: baseline; width: 100%; min-height: 44px; padding: 6px 0 0; border: 0; border-radius: 6px; background: none; color: var(--muted); font: 600 14.5px/1.3 var(--text); text-align: left; cursor: pointer; transition: color .3s ease; }
  .step-n { font: 500 11.5px/1.3 var(--mono); letter-spacing: .04em; }
  .step-n::before { content: "0"; }
  .step-t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .step-bar { grid-column: 1 / -1; align-self: end; height: 3px; margin-top: 9px; border-radius: 3px; background: rgba(255, 255, 255, .17); overflow: hidden; }
  .step-bar i { display: block; height: 100%; border-radius: 3px; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }
  .step.is-done { color: var(--soft); }
  .step.is-done .step-bar i { transform: scaleX(1); opacity: .6; }
  .step.is-on, .step:hover { color: var(--ink); }
  .step:hover .step-bar { background: rgba(255, 255, 255, .3); }
  .motion-toggle { flex: none; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .09); color: var(--soft); font-size: 0; cursor: pointer; transition: background-color .2s ease, color .2s ease; }
  .motion-toggle:hover { background: rgba(255, 255, 255, .18); color: var(--ink); }
  .motion-toggle::before { content: ""; box-sizing: border-box; width: 11px; height: 12px; border: solid currentColor; border-width: 0 3.5px; }
  .motion-toggle[aria-pressed="true"]::before { width: 0; height: 0; margin-left: 3px; border-width: 6.5px 0 6.5px 11px; border-color: transparent transparent transparent currentColor; }

  /* The line that says what the step shows */
  .scene.is-live .caps { grid-column: 1 / -1; display: grid; position: relative; z-index: 3; margin: 16px 0 20px; }
  .cap { grid-area: 1 / 1; margin: 0; font: 700 clamp(19px, 1.75vw, 25px)/1.18 var(--display); letter-spacing: -.005em; text-wrap: balance; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .4s ease, transform .4s ease, visibility 0s .4s; }
  .cap.on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }

  /* The pages, and the line of light over them */
  .scene.is-live .stage { display: block; grid-area: 3 / 2; position: relative; z-index: 1; --u: clamp(8.5px, min(.9vw, 1.7vh), 13px); font-size: var(--u); perspective: 80em; transition: opacity .4s ease; }
  .world { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; will-change: transform; }
  .scene.is-live .scene-fx { display: block; position: absolute; inset: 0; width: 100%; height: 100%; z-index: 4; pointer-events: none; transition: opacity .4s ease; }
  .scene.is-cut .stage, .scene.is-cut .scene-fx { opacity: 0; transition-duration: .2s; }

  /* The account panel, beside the pages */
  .scene.is-live .ledger { grid-area: 3 / 1; align-self: start; position: relative; z-index: 3; padding: 14px 16px 12px; background: rgba(13, 34, 25, .9); }
  .scene.is-live .ledger-head { flex-direction: column; align-items: flex-start; flex-wrap: nowrap; gap: 7px; padding-bottom: 10px; }
  .scene.is-live .row-head { padding: 6px 0; gap: 10px; grid-template-columns: 22px 1fr; cursor: pointer; }
  .scene.is-live .ledger .mark { width: 22px; height: 22px; font-size: 12px; }
  .scene.is-live .row-title { font-size: 14.5px; min-width: 0; }
  .scene.is-live .ledger .rule { display: none; }
  .scene.is-live .row.is-open .rule, .scene.is-live .ledger[data-phase="found"] .rule { display: block; }
  .scene.is-live .row-more p { margin: 0 0 8px 32px; font-size: 13.5px; line-height: 1.42; }
  .scene.is-live .ledger-foot { margin-top: 8px; padding: 8px 12px; font-size: 14px; }
  button.row-head { width: 100%; border: 0; background: none; color: inherit; font: inherit; text-align: left; }
  .scene.is-live .row-head:hover .row-title { color: var(--accent-deep); }
  .scene.is-live .row-more { grid-template-rows: 0fr; transition: grid-template-rows .5s cubic-bezier(.2, .7, .2, 1); }
  .scene.is-live .row.is-open .row-more { grid-template-rows: 1fr; }
  .scene.is-live .row .ev, .scene.is-live .row .fx, .scene.is-live .row .rd { display: none; }
  .scene.is-live .row[data-s="reading"] .rd { display: block; }
  .scene.is-live .row[data-s="flag"] .ev { display: block; }
  .scene.is-live .row[data-s="ok"] .fx { display: block; }
  .scene.is-live .ledger-list:has(.is-open) .row:not(.is-open) { opacity: .58; }
  .ledger[data-phase="read"] .ledger-foot, .ledger[data-phase="fix"] .ledger-foot { background: rgba(255, 255, 255, .07); color: var(--soft); }
  .ledger[data-phase="ready"] .ledger-foot { background: color-mix(in srgb, var(--pass) 16%, transparent); color: var(--pass); }
  .ledger.is-ready { border-color: color-mix(in srgb, var(--pass) 60%, transparent); box-shadow: 0 28px 64px rgba(2, 12, 8, .45), 0 0 60px color-mix(in srgb, var(--pass) 22%, transparent), inset 0 1px 0 rgba(255, 255, 255, .1); }

  .scene.is-paused *, .scene.is-paused *::before, .scene.is-paused *::after { animation-play-state: paused !important; }
  .scene.is-paused .reel { animation: none; }
  .scene.is-lite .ledger { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(13, 34, 25, .96); }

  @media (max-width: 1239.98px) { .step-t span { display: none; } }
  /* A short window: the panel is set tighter so it stays on the first screen. */
  @media (min-width: 1040px) and (max-height: 699.98px) {
    .scene.is-live .caps { margin: 12px 0 14px; }
    .scene.is-live .ledger { padding: 12px 16px 10px; }
    .scene.is-live .row-head { padding: 5px 0; }
    .scene.is-live .row:not(.is-open) .row-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .scene.is-live .ledger[data-phase="found"] .row-title { white-space: normal; }
    .scene.is-live .ledger[data-phase="found"] .rule, .scene.is-live .row[data-s="ok"] .rule { display: none; }
    .scene.is-live .row-more p { font-size: 13px; margin-bottom: 6px; }
  }

  /* Stacked: the scene under the headline (phones, tablets) */
  @media (max-width: 1039.98px) {
    .scene { padding: 100px 0 76px; }
    .scene-ui { grid-template-columns: 1fr; gap: 34px; }
    .open h1 { font-size: clamp(34px, 10.2vw, 60px); margin: 12px 0 16px; max-width: 13ch; }
    .reel { --mode: stacked; width: 100%; max-width: 560px; margin: 0 auto; height: clamp(520px, calc(100svh - 28px), 680px); }
    .scene.is-live .reel { display: flex; flex-direction: column; }
    .cap { font-size: clamp(19px, 5.4vw, 24px); }
    .scene.is-live .caps { margin: 12px 0 0; }
    .scene.is-live .stage { position: absolute; inset: 0; --u: min(3.05vw, 15px); }
    /* The panel keeps one size while the loop plays, so nothing on the page
       moves by layout: either all five rows on a line each, or the one in hand. */
    .scene.is-live .ledger { align-self: stretch; margin-top: auto; padding: 12px 14px; background: rgba(13, 34, 25, .97); }
    .scene.is-live .ledger-head { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 6px 8px; }
    .scene.is-live .ledger-store span { position: absolute; left: 10px; top: -9px; padding: 0 6px; border-radius: 4px; background: #0d2219; font-size: 10.5px; line-height: 16px; letter-spacing: .08em; text-transform: uppercase; }
    .scene.is-live .ledger-store span::before { content: none; }
    .scene.is-live .ledger .badge { font-size: 12px; padding: 4px 9px; }
    .scene.is-live .ledger-list { min-height: 170px; margin-top: 2px; }
    .scene.is-live .row { border-bottom: 0; animation: row-in .3s ease both; }
    .scene.is-paused .row { animation: none; }
    .scene.is-live .row-more { transition: none; }
    .scene.is-live .row-more p { margin: 0 0 4px; font-size: 13.5px; line-height: 1.4; }
    .scene.is-live .ledger[data-view="one"] .row:not(.is-open) { display: none; }
    .scene.is-live .ledger[data-view="swap"] .row { display: none; }
    .scene.is-live .ledger[data-view="one"] .row-head { align-items: start; min-height: 68px; }
    .scene.is-live .ledger[data-view="one"] .mark { margin-top: 17px; }
    .scene.is-live .ledger[data-view="one"] .row-title { display: flex; flex-direction: column; }
    .scene.is-live .ledger[data-view="one"] .rule { order: -1; margin: 0 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .scene.is-live .ledger.is-ready .dots { display: none; }
    .scene.is-live .ledger[data-view="all"] .row { border-bottom: 1px dashed var(--line); }
    .scene.is-live .ledger[data-view="all"] .row:last-child { border-bottom: 0; }
    .scene.is-live .ledger[data-view="all"] .row-head { padding: 5px 0; }
    .scene.is-live .ledger[data-view="all"] .row-title { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .scene.is-live .ledger[data-view="all"] .rule, .scene.is-live .ledger[data-view="all"] .row-more { display: none; }
    .scene.is-live .ledger-foot { margin-top: 6px; }
    .scene.is-live .dots { display: flex; gap: 6px; }
    .dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .2); transition: background-color .3s ease; }
    .dots i[data-s="reading"] { background: var(--accent); }
    .dots i[data-s="flag"] { background: var(--fail); }
    .dots i[data-s="ok"] { background: var(--pass); }
  }
  @media (max-width: 560px) {
    .open .lead { font-size: 16.5px; }
    .open .cta-buttons { margin-top: 20px; }
    .step { font-size: 14px; gap: 0 6px; }
    .step-list { gap: 8px; }
  }
  @media (max-width: 380px) {
    .open .cta-buttons { gap: 8px; }
    .open .cta-buttons .button { padding: 0 14px; font-size: 15.5px; }
    .step-n { display: none; }
  }
}
@keyframes reveal { to { visibility: visible; height: auto; overflow: visible; } }
@keyframes reel-in { from { opacity: 0; } }
@keyframes row-in { from { opacity: 0; } }

/* The example store's pages (only in the playing version) */
.sheet { position: absolute; left: -13em; top: -17em; width: 26em; height: 34em; border-radius: 1em; overflow: hidden; background: #f4f6f0; color: #17271e; font-family: var(--text); line-height: 1.5;
  box-shadow: 0 2.6em 5.5em rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .55) inset; backface-visibility: hidden; will-change: transform, opacity; visibility: hidden; }
.sh-bar { display: flex; align-items: center; gap: .45em; height: 2.5em; padding: 0 .9em; background: #e3e9e0; border-bottom: 1px solid #d2dbd0; }
.sh-bar i { width: .62em; height: .62em; border-radius: 50%; background: #c2cdc3; }
.sh-bar span { flex: 1; margin-left: .7em; padding: .26em .8em; border-radius: .6em; background: #f4f6f0; color: #4d5f53; font: 500 .76em/1.5 var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-body { padding: 1.25em 1.7em; }
.sh-nav { display: flex; align-items: center; gap: .9em; padding-bottom: .95em; margin-bottom: 1.15em; border-bottom: 1px solid #dce3d9; }
.sh-nav b { margin-right: auto; font: 700 1.02em/1 var(--display); letter-spacing: .08em; text-transform: uppercase; }
.sh-nav u { width: 2.6em; height: .5em; border-radius: .3em; background: #ced8cd; }
.sh-h { font: 700 1.95em/1.1 var(--display); margin: 0 0 .55em; }
.sh-sub { font-weight: 600; margin: 1.15em 0 .5em; }
.sh-p { margin: .85em 0; }
.ln { display: block; height: .55em; border-radius: .3em; background: #d4ddd2; margin: .62em 0; }
.w100 { width: 100%; } .w97 { width: 97%; } .w95 { width: 95%; } .w94 { width: 94%; } .w92 { width: 92%; } .w91 { width: 91%; } .w88 { width: 88%; } .w84 { width: 84%; } .w78 { width: 78%; } .w76 { width: 76%; }
.w70 { width: 70%; } .w66 { width: 66%; } .w62 { width: 62%; } .w58 { width: 58%; } .w52 { width: 52%; } .w48 { width: 48%; } .w40 { width: 40%; }
.flagbox { position: relative; }
.hit { border-radius: .25em; padding: .06em .18em; margin: 0 -.18em; -webkit-box-decoration-break: clone; box-decoration-break: clone; background: linear-gradient(#ffd6d0, #ffd6d0) no-repeat 0 100% / 0% 100%; transition: background-size .55s ease; }
.is-flag .hit { background-size: 100% 100%; box-shadow: inset 0 -.14em 0 #e04a3c; }
.is-fixed .hit { background-image: linear-gradient(#c9ecd8, #c9ecd8); box-shadow: inset 0 -.14em 0 #1f7a4d; animation: fixed .9s ease; }
@keyframes fixed { from { background-image: linear-gradient(#7fe0ad, #7fe0ad); } }
.good, .t-good { display: none; }
.is-fixed .bad, .is-fixed .t-bad { display: none; }
.is-fixed .good, .is-fixed .t-good { display: inline; }
.tag { position: absolute; right: -.9em; top: -1.75em; display: inline-flex; align-items: center; gap: .45em; padding: .3em .8em .3em .36em; border-radius: 2em; background: #d53c2e; color: #fff; font: 600 .82em/1.3 var(--text); white-space: nowrap;
  box-shadow: 0 .5em 1.4em rgba(213, 60, 46, .45); opacity: 0; transform: translateY(.6em) scale(.6); transform-origin: 85% 100%; transition: opacity .25s ease, transform .5s cubic-bezier(.2, 1.6, .4, 1), background-color .3s ease; }
.tag b { width: 1.45em; height: 1.45em; border-radius: 50%; background: #fff; color: #d53c2e; display: grid; place-items: center; font-weight: 700; }
.tag b::after { content: "!"; }
.is-flag .tag { opacity: 1; transform: none; }
.is-fixed .tag { background: #1f7a4d; box-shadow: 0 .5em 1.4em rgba(31, 122, 77, .4); }
.is-fixed .tag b { color: #1f7a4d; }
.is-fixed .tag b::after { content: "✓"; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 1.05em 1.2em; }
.tile { display: grid; gap: .3em; justify-items: start; }
.pic { width: 100%; height: 6.5em; border-radius: .7em; position: relative; overflow: hidden; }
.pic::after { content: ""; position: absolute; }
.p1 { background: linear-gradient(135deg, #ead9c2, #d8bf9f); } .p1::after { inset: 22% 14%; border-radius: .5em; background: repeating-linear-gradient(90deg, #f7efe3 0 .5em, #c9ab85 .5em .62em); transform: rotate(-6deg); }
.p2 { background: linear-gradient(135deg, #d5e3e6, #b9cdd3); } .p2::after { left: 34%; top: 24%; width: 30%; height: 54%; border-radius: .35em .35em .9em .9em; background: #f5f8f8; box-shadow: 1.25em .35em 0 -.72em #f5f8f8, 1.5em .35em 0 -.95em #b9cdd3; }
.p3 { background: linear-gradient(135deg, #ece0cc, #dcc9a8); } .p3::after { left: 14%; right: 14%; top: 38%; height: 30%; border-radius: 50%; background: #a9774a; box-shadow: inset 0 .5em 0 #c08b5b; }
.p4 { background: linear-gradient(135deg, #dedbea, #c5c0db); } .p4::after { left: 40%; top: 18%; width: 20%; height: 30%; border-radius: 50% 50% .2em .2em; background: #fbf6d9; box-shadow: 0 1.9em 0 -.62em #5d5873, 0 2.9em 0 -.2em #5d5873; }
.nm { font-weight: 600; font-size: .95em; }
.tile .bad { display: inline-flex; align-items: baseline; gap: .5em; }
.is-fixed .tile .bad { display: none; }
.tile s { color: #6f7f74; }
.tile em { font-style: normal; font-weight: 700; font-size: .78em; color: #fff; background: #d53c2e; border-radius: .4em; padding: .12em .42em; }
.reach .hit { display: block; padding: .55em .75em; margin: 0; }
.soc { display: inline-flex; align-items: center; gap: .6em; }
.soc i { width: 1.5em; height: 1.5em; border-radius: .45em; border: .16em solid #6f7f74; position: relative; }
.soc i::after { content: ""; position: absolute; inset: 22%; border-radius: 50%; border: .14em solid #6f7f74; }
.cl { display: block; font-weight: 500; }
.form-sk { display: grid; grid-template-columns: 1fr 1fr; gap: .7em; margin-top: 1.2em; opacity: .35; transition: opacity .5s ease; }
.form-sk u { height: 2.3em; border-radius: .5em; border: 1px solid #c9d3c8; background: #fbfcf9; }
.form-sk .tall { grid-column: 1 / -1; height: 4.6em; }
.form-sk .btn { width: 7em; border: 0; background: #17271e; }
.is-fixed .form-sk { opacity: 1; }
.sh-veil { position: absolute; inset: 2.5em 0 0; background: rgba(244, 246, 240, .55); transform-origin: 50% 100%; transform: scaleY(calc(1 - var(--scan, 0))); opacity: 0; transition: opacity .35s ease; pointer-events: none; }
.is-scan .sh-veil { opacity: 1; }
.sh-beam { position: absolute; left: 0; right: 0; top: 2.5em; height: 7em; margin-top: -3.5em; transform: translateY(calc(var(--scan, 0) * 31.5em)); opacity: 0; transition: opacity .3s ease; pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgba(86, 211, 148, .16) 38%, rgba(86, 211, 148, .5) 48.5%, #fff 49.6%, #56d394 50.4%, rgba(86, 211, 148, .12) 53%, transparent 62%); }
.is-scan .sh-beam { opacity: 1; }
.sh-stamp { position: absolute; right: 1.3em; bottom: 1.3em; width: 3.3em; height: 3.3em; border-radius: 50%; background: #1f7a4d; color: #fff; display: grid; place-items: center; font-size: 1.15em; font-weight: 700;
  box-shadow: 0 .6em 1.6em rgba(31, 122, 77, .5), 0 0 0 .3em rgba(31, 122, 77, .18); opacity: 0; transform: scale(.3) rotate(-25deg); transition: opacity .25s ease, transform .55s cubic-bezier(.2, 1.7, .4, 1); }
.sh-stamp::after { content: "✓"; }
.is-fixed .sh-stamp { opacity: 1; transform: none; }

/* ---------- Under the scene ---------- */
.after { position: relative; z-index: 1; background: var(--bg); border-radius: 28px 28px 0 0; margin-top: -28px; }
.sec { padding-top: clamp(68px, 8.5vw, 124px); }
.sec-head { max-width: 780px; margin-bottom: clamp(26px, 3.6vw, 46px); }
.sec-head h2 { font-size: clamp(32px, 4.7vw, 60px); line-height: 1.02; letter-spacing: -.015em; margin: 12px 0 0; }
.sec-lead p { font-size: 19px; line-height: 1.55; color: var(--soft); margin: 16px 0 0; max-width: 40em; }
.chip { display: inline-block; margin: 0; padding: 4px 10px; border-radius: 99px; background: var(--tint); color: var(--accent-deep); font: 500 11.5px/1.5 var(--mono); letter-spacing: .06em; text-transform: uppercase; }

.facts { padding-top: clamp(52px, 6.5vw, 92px); }
.facts dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fact { padding: 30px 24px 28px; border-left: 1px solid var(--line); }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact dt { font: 700 clamp(52px, 6.4vw, 88px)/.86 var(--display); letter-spacing: -.02em; color: var(--accent-deep); font-variant-numeric: tabular-nums; }
.fact dt small { font-size: .42em; letter-spacing: 0; margin-left: .06em; }
.fact dd { margin: 14px 0 0; font-size: 15.5px; line-height: 1.45; color: var(--soft); max-width: 24ch; }
@media (max-width: 820px) {
  .facts dl { grid-template-columns: 1fr 1fr; }
  .fact, .fact:first-child { padding: 22px 16px 20px 0; border-left: 0; }
  .fact:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; }
.card { grid-column: span 6; display: flex; flex-direction: column; gap: 24px; padding: 28px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); }
.c1, .c4 { grid-column: span 7; } .c2, .c3 { grid-column: span 5; }
.card h3 { font: 700 clamp(22px, 2.2vw, 28px)/1.12 var(--display); letter-spacing: -.005em; margin: 14px 0 8px; }
.card-text p:not(.chip) { margin: 0; color: var(--soft); font-size: 16px; }
.card-art { margin-top: auto; }
.art { padding: 16px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); font-size: 14.5px; line-height: 1.45; }
.art p { margin: 0; }
.art-finding p:first-child, .art-finding .next { display: flex; align-items: center; gap: 10px; }
.art-finding .q { margin: 10px 0; padding-left: 12px; border-left: 3px solid var(--fail); color: var(--soft); }
.art-finding .src { font-size: 13px; color: var(--muted); } .art-finding .src span { color: var(--accent-deep); font-weight: 600; margin-left: 6px; }
.art-cap { font: 500 11.5px/1.5 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.art-finding .next { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.art-finding .q.warn { border-left-color: var(--warn); }
.art-issues ul { list-style: none; margin: 0; padding: 0; }
.art-issues li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px dashed var(--line); }
.art-issues li span { color: var(--muted); font-size: 13px; white-space: nowrap; }
.art-time ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.art-time li { position: relative; display: grid; padding: 0 0 14px 30px; }
.art-time li:last-child { padding-bottom: 0; }
.art-time li::before { content: ""; position: absolute; left: 4px; top: 4px; width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--muted); }
.art-time li::after { content: ""; position: absolute; left: 9px; top: 18px; bottom: -2px; width: 2px; background: var(--line); }
.art-time li:last-child::after { display: none; }
.art-time li.done::before { background: var(--pass); box-shadow: none; }
.art-time li.done::after { background: var(--pass); }
.art-time span { font-size: 13px; color: var(--muted); }
.art-watch .days { display: grid; grid-template-columns: repeat(14, 1fr); gap: 6px; margin-bottom: 14px; }
.art-watch .days i { aspect-ratio: 1; border-radius: 5px; background: var(--tint); }
.art-watch .days i.ok { background: color-mix(in srgb, var(--pass) 32%, var(--panel)); }
.art-watch .days i.hot { background: var(--warn); box-shadow: 0 0 0 3px color-mix(in srgb, var(--warn) 30%, transparent); }
.art-watch .days i.win { background: color-mix(in srgb, var(--warn) 26%, var(--panel)); }
.art-watch .days i.end { background: none; box-shadow: inset 0 0 0 2px var(--warn); }
.art-watch p { display: flex; align-items: center; gap: 10px; color: var(--soft); }
.art-watch p + p { margin-top: 8px; }
.badge.end { color: var(--warn); box-shadow: inset 0 0 0 1.5px var(--warn); }
@media (max-width: 900px) { .card, .c1, .c2, .c3, .c4 { grid-column: 1 / -1; } }

.groups { border-top: 1px solid var(--line); }
.group { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 2.2fr); gap: 12px 48px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.group h3 { font: 700 23px/1.2 var(--display); margin: 0; }
.group h3 a { color: var(--ink); text-decoration: none; }
.group h3 a:hover { color: var(--accent-deep); }
.group h3 i { font-style: normal; font-size: .7em; margin-left: .35em; color: var(--muted); }
.group-head p { margin: 6px 0 0; font: 500 12px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.group ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 40px; align-content: start; }
.group li { display: grid; grid-template-columns: 26px 1fr; gap: 8px; align-items: baseline; font-weight: 600; font-size: 16.5px; line-height: 1.35; }
.group .n { font: 500 12px/1.4 var(--mono); color: var(--muted); }
.rules-cta { margin: 28px 0 0; }
.rules-cta a { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 88px; padding: 18px 28px; border-radius: 16px; background: var(--accent); color: var(--accent-ink); text-decoration: none; font: 700 clamp(22px, 2.4vw, 32px)/1.1 var(--display); }
.rules-cta a:hover { background: var(--accent-deep); color: var(--accent-ink); }
.rules-cta b { font-size: 1.3em; transition: transform .25s ease; }
.rules-cta a:hover b { transform: translateX(6px); }
@media (max-width: 760px) {
  .group { grid-template-columns: 1fr; gap: 14px; padding: 22px 0; }
  .group ul { grid-template-columns: 1fr; gap: 9px; }
  .group h3 { font-size: 21px; }
  .group li { font-size: 16px; }
}

.steps3 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.steps3 li { position: relative; padding-top: 24px; border-top: 2px solid var(--line); }
.steps3 li::before { content: ""; position: absolute; left: 0; top: -2px; width: 100%; height: 2px; background: var(--accent); transform-origin: 0 50%; }
.steps3 .n { display: block; font: 700 clamp(64px, 7vw, 96px)/.85 var(--display); color: var(--accent-deep); margin-bottom: 18px; }
.steps3 li > p:last-child { font-size: 18px; line-height: 1.5; margin: 12px 0 0; max-width: 26em; }
@media (max-width: 820px) { .steps3 { grid-template-columns: 1fr; gap: 34px; } }

.pricing.sec { margin-top: clamp(68px, 8.5vw, 124px); padding: clamp(60px, 7.5vw, 108px) 0; background: var(--tint); }
.pricing .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 900px; margin: 0 0 20px; }
.pricing .plan { padding: 28px; border-radius: 20px; }
.pricing .plan h3 { font: 500 13px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-deep); }
.pricing .plan .price { font-size: clamp(48px, 5vw, 64px); line-height: 1; margin: 10px 0 6px; }
.pricing .plan ul { list-style: none; padding: 0; margin: 14px 0 24px; }
.pricing .plan li { position: relative; padding-left: 28px; margin: 8px 0; }
.pricing .plan li::before { content: "✓"; position: absolute; left: 2px; top: 0; font-weight: 700; color: var(--accent-deep); }
.pricing .plan.highlight { box-shadow: var(--shadow); }
.free-row { max-width: 900px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin: 0 0 18px; padding: 16px 20px; border: 1.5px dashed color-mix(in srgb, var(--accent) 45%, var(--line)); border-radius: 16px; }
.free-row span { flex: 1 1 320px; color: var(--soft); }
.free-row b { color: var(--ink); }
.pricing .small { max-width: 900px; margin: 0; }
@media (max-width: 700px) { .pricing .plans { grid-template-columns: 1fr; } }

.faq2 { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 24px 56px; align-items: start; }
.faq2 .sec-head { position: sticky; top: 32px; margin-bottom: 0; }
.faq2 details { background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 0; margin: 0; }
.faq2 details:first-child { border-top: 1px solid var(--line); }
.faq2 summary { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 18px 0; font-size: 19px; line-height: 1.3; list-style: none; }
.faq2 summary::-webkit-details-marker { display: none; }
.faq2 summary::after { content: "+"; flex: none; font: 400 30px/1 var(--display); color: var(--accent-deep); transition: transform .25s ease; }
.faq2 details[open] summary::after { transform: rotate(45deg); }
.faq2 summary:hover { color: var(--accent-deep); }
.faq2 details p { margin: 0 0 20px; color: var(--soft); max-width: 40em; }
@media (max-width: 880px) { .faq2 { grid-template-columns: 1fr; } .faq2 .sec-head { position: static; } }

.guide-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.guide-list a { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 100%; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); color: var(--ink); font-weight: 600; text-decoration: none; transition: border-color .2s ease; }
.guide-list a:hover { border-color: var(--accent); }
.guide-list b { color: var(--accent-deep); transition: transform .2s ease; }
.guide-list a:hover b { transform: translateX(5px); }

.closing-wrap { padding-top: clamp(68px, 8.5vw, 124px); }
.closing { position: relative; overflow: hidden; padding: clamp(40px, 6.5vw, 88px) clamp(22px, 5vw, 72px); border-radius: 28px; text-align: center;
  background: radial-gradient(70% 120% at 50% 118%, #1c4a34, transparent 70%), #0b2118; }
.closing h2 { font-size: clamp(30px, 4.4vw, 56px); line-height: 1.04; max-width: 17ch; margin: 0 auto 28px; }
.closing .go { max-width: 560px; margin: 0 auto; }
.closing .hero-note { margin: 16px 0 0; }
.go { display: flex; flex-wrap: wrap; gap: 10px; }
.go .input { flex: 1 1 220px; min-height: 52px; background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .2); color: var(--ink); }
.go .input::placeholder { color: var(--muted); }
.go .button { min-height: 52px; flex: 0 0 auto; }
@media (max-width: 480px) { .go .button { flex: 1 1 100%; } }

/* Sections ease in as they are reached (only with script and motion allowed) */
@media (prefers-reduced-motion: no-preference) {
  .js .rv { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
  .js .rv.in { opacity: 1; transform: none; }
  .js .steps3 li::before { transform: scaleX(0); transition: transform 1s cubic-bezier(.2, .7, .2, 1) .25s; }
  .js .steps3 li.in::before { transform: scaleX(1); }
  .card { transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease, opacity .7s ease; }
  .js .card.in:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); box-shadow: var(--shadow); }
}
