/* Home page, design B. Shared tokens and components come from site.css; this file is the public page only.
   Depth: background orbs, headline lines, the try-card, dials and the answer sheet move at different rates (home.js).
   All movement is transform-only and switched off for prefers-reduced-motion and the accessibility "stop motion" option. */
.home { background: var(--paper); }
.home .frame { max-width: 74rem; margin: 0 auto; padding: 0 1.25rem; }
.home h1, .home h2, .home h3 { font-family: var(--f-head); }

.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s ease; }
.top.scrolled { border-bottom-color: var(--rule); }
.top-in { display: flex; justify-content: space-between; align-items: center; gap: .75rem 1.25rem; min-height: 4.25rem; flex-wrap: wrap; }
.mark { font: 800 1.15rem/1 var(--f-head); color: var(--ink); text-decoration: none; display: inline-flex; gap: .6rem; align-items: center; }
.mark-dot { width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--pen); box-shadow: 0 0 0 3px var(--paper), 0 0 0 4.5px var(--pen); }
.top-nav { display: flex; gap: .4rem 1.1rem; flex-wrap: wrap; align-items: center; font-size: .95rem; }
.top-nav a { color: var(--ink); text-decoration: none; padding: .45rem 0; }
.top-nav a:hover { color: var(--pen); }
.top-nav .nav-cta { background: var(--pen); color: var(--on-pen); padding: .5rem 1rem; border-radius: 999px; font-weight: 600; }
.top-nav .nav-cta:hover { color: var(--on-pen); filter: brightness(1.1); }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 19rem; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.flow { min-width: 0; }

.hero { overflow-x: clip; position: relative; padding: clamp(2.5rem, 8vw, 6.5rem) 0 clamp(2rem, 5vw, 3.5rem); isolation: isolate; }
.drift { position: absolute; inset: -2rem -30vw -4rem -2rem; z-index: -1; pointer-events: none; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; border: 2px solid var(--rule); will-change: transform; }
.orb.o1 { width: 9rem; height: 9rem; inset-inline-start: 78%; top: 4%; background: var(--sheet); border-color: transparent; }
.orb.o2 { width: 3.2rem; height: 3.2rem; inset-inline-start: 92%; top: 58%; }
.orb.o3 { width: 1.6rem; height: 1.6rem; inset-inline-start: 72%; top: 70%; background: var(--pen); border-color: var(--pen); opacity: .9; }
.orb.o4 { width: 5rem; height: 5rem; inset-inline-start: 86%; top: 86%; border-style: dashed; }
.kicker { font: 500 1rem var(--f-head); color: var(--pen); margin: 0 0 1rem; }
.home h1 { font: 800 clamp(3rem, 9vw, 6.5rem)/1.04 var(--f-head); margin: 0 0 1.5rem; letter-spacing: -.02em; }
.home h1 span { display: block; will-change: transform; }
.home h1 .h1b { color: var(--pen); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 36rem; margin: 0 0 .6rem; }
.audience { font-weight: 600; margin: 0 0 1.75rem; }
.actions { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; }
.fine { font-size: .9rem; color: var(--muted); margin: .9rem 0 0; }
.link { color: var(--pen); font-weight: 600; }

.try { padding: 0 0 clamp(2.5rem, 6vw, 4rem); }
.try-card { background: var(--paper); border: 2px solid var(--ink); border-radius: 18px; padding: clamp(1rem, 3vw, 1.75rem); box-shadow: 10px 10px 0 var(--sheet-2); will-change: transform; }
.try-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .75rem; }
.try-head h2 { font-size: 1.35rem; margin: 0; }

.block { padding: clamp(2.5rem, 6vw, 4.5rem) 0; border-top: 2px solid var(--ink); }
.block h2 { font: 800 clamp(1.75rem, 3.6vw, 2.6rem)/1.15 var(--f-head); margin: 0 0 1rem; letter-spacing: -.01em; will-change: transform; }
.block h3 { font: 800 1.3rem/1.2 var(--f-head); margin: 0 0 .4rem; color: var(--pen); }
.block > p { max-width: 38rem; }

.stages { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.75rem; counter-reset: s; }
.stages li { counter-increment: s; display: grid; grid-template-columns: 3.25rem minmax(0, 1fr); gap: 1rem; }
.stages li > * { grid-column: 2; }
.stages li::before { grid-row: 1 / span 2; content: counter(s); width: 3rem; height: 3rem; border-radius: 50%; border: 2px solid var(--pen); display: grid; place-items: center; font: 800 1.2rem var(--f-head); color: var(--pen); }
.stages p { margin: 0; max-width: 34rem; }
.aside-line { color: var(--muted); font-size: .95rem; margin-top: 1.5rem; }

.weights { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: .55rem; max-width: 38rem; }
.weights li { display: grid; grid-template-columns: minmax(0, 1fr) 3rem; gap: .75rem; align-items: center; position: relative; padding: .6rem .9rem; background: var(--sheet); border-radius: 8px; overflow: hidden; }
.weights li::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: calc(var(--w) * 6%); background: var(--pen); opacity: .16; transform-origin: right; transform: scaleX(var(--g, 1)); }
.weights b { font: 800 1rem var(--f-head); text-align: end; position: relative; }
.weights span { position: relative; }

.dials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 2rem 0; }
.dials figure { margin: 0; background: var(--sheet); border-radius: 14px; padding: 1.25rem 1rem; will-change: transform; }
.num { display: block; font: 800 clamp(2.25rem, 4.5vw, 3.25rem)/1 var(--f-head); color: var(--pen); margin-bottom: .5rem; font-variant-numeric: tabular-nums; }
.dials figcaption { font-size: .9rem; color: var(--muted); line-height: 1.5; }
.dials figcaption b { color: var(--ink); font-weight: 600; }
.more { border: 0; border-top: 1px solid var(--rule); margin-top: 1.5rem; padding-top: 1rem; }
.steps { padding-inline-start: 1.25rem; }
.steps li { margin-bottom: .5rem; max-width: 38rem; }

.fit { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 1.5rem; }
.ticks, .crosses { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.ticks li, .crosses li { position: relative; padding-inline-start: 2rem; max-width: 34rem; }
.ticks li::before, .crosses li::before { content: ""; position: absolute; inset-inline-start: 0; top: .35em; width: 1.1rem; height: 1.1rem; border-radius: 50%; }
.ticks li::before { background: var(--pen); }
.crosses li::before { border: 2px solid var(--rule); }

.buy .price { font: 800 3.25rem/1 var(--f-head); margin: 0 0 1rem; }
.buy .price small { font: 400 1rem var(--f-body); color: var(--muted); margin-inline-start: .35rem; }
.buy .ticks { margin-bottom: 1.25rem; }
.compare { color: var(--muted); }

#faq details { max-width: 44rem; }
.closing { text-align: start; padding-bottom: clamp(4rem, 9vw, 7rem); }

/* the answer sheet, sticky beside the page */
.sheet-wrap { position: sticky; top: 5.5rem; padding-top: clamp(2.5rem, 8vw, 6.5rem); }
.osheet { background: var(--sheet); border-radius: 16px; padding: 1rem 1rem 1.25rem; position: relative; will-change: transform; }
.osheet::before { content: ""; position: absolute; inset-block: 2.75rem 1rem; inset-inline-start: .4rem; width: .35rem; background: repeating-linear-gradient(var(--ink) 0 .45rem, transparent .45rem 1.1rem); opacity: .8; }
.osheet-head { display: flex; justify-content: space-between; align-items: baseline; font: 500 .95rem var(--f-head); margin-bottom: .6rem; padding-inline-start: .75rem; }
.oscore b { font: 800 1.5rem var(--f-head); color: var(--pen); font-variant-numeric: tabular-nums; }
.ocols, .orow { display: grid; grid-template-columns: 2rem repeat(5, 1fr); align-items: center; padding-inline-start: .75rem; }
.ocols { font: 500 .75rem var(--f-head); color: var(--muted); text-align: center; margin-bottom: .2rem; }
.orow { height: 1.1rem; }
.orow .n { font: 500 .68rem var(--f-head); color: var(--muted); }
.ob { width: .82rem; height: .82rem; border-radius: 50%; border: 1.3px solid var(--rule); justify-self: center; transition: background-color .25s ease, border-color .25s ease, transform .25s ease; }
.ob.f { background: var(--pen); border-color: var(--pen); transform: scale(1.08); }

.mini { display: none; }
.home .site-foot { border-top: 2px solid var(--ink); padding-top: 2rem; }

@media (max-width: 960px) {
  .layout { grid-template-columns: 1fr; }
  .sheet-wrap { display: none; }
  .mini { display: flex; position: fixed; inset-inline: 0; bottom: 0; z-index: 15; gap: .6rem; align-items: center; padding: .6rem 1rem calc(.6rem + env(safe-area-inset-bottom)); background: var(--sheet); border-top: 1px solid var(--rule); }
  .mini-row { flex: 1; display: grid; grid-template-columns: repeat(25, 1fr); gap: 2px; }
  .mini-row .ob { width: 100%; height: auto; aspect-ratio: 1; max-width: .8rem; border-width: 1px; }
  .mini-score { font: 800 .9rem var(--f-head); color: var(--pen); min-width: 4.6rem; text-align: end; white-space: nowrap; font-variant-numeric: tabular-nums; }
  .home { padding-bottom: 3.25rem; }
  .home .a11y-toggle { bottom: calc(3.75rem + env(safe-area-inset-bottom)); }
  .drift { inset-inline-end: -1rem; }
}
@media (max-width: 640px) {
  .dials, .fit { grid-template-columns: 1fr; }
  .top-nav a:not(.nav-cta) { display: none; }
  .mark { white-space: nowrap; font-size: 1.05rem; }
  .top-nav .nav-cta { padding: .45rem .85rem; font-size: .88rem; white-space: nowrap; }
  .top-in { min-height: 3.5rem; padding-block: .4rem; }
  .orb.o1 { width: 6rem; height: 6rem; inset-inline-start: 70%; top: 2%; }
  .top-nav { font-size: .9rem; gap: .3rem .9rem; }
  .try-card { box-shadow: 6px 6px 0 var(--sheet-2); }
}
@media (prefers-reduced-motion: reduce) {
  .home *, .home *::before, .home *::after { transition: none !important; animation: none !important; }
  [data-speed] { transform: none !important; }
}
html[data-a11y-motion="1"] [data-speed] { transform: none !important; }
