/* poppy for CRT. Split stage: one flower stays fixed while the argument scrolls.
   One face (Work Sans), flat fields, no rules, no gradients, no shadows at rest. */
:root {
  --paper: #f4f6f1;
  --sage-field: #dfe8dc;
  --sage: #b9cdbb;
  --ink: #141414;
  --soft: #4a4d48;
  --poppy: #ee5a24;
  --gold: #f5b323;
  --night: #141414;
  --on-night: #f4f6f1;

  --font: "Work Sans", "Helvetica Neue", system-ui, sans-serif;
  --step-small: 0.875rem;
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2.25rem, 1.2rem + 2.9vw, 3.75rem);
  --step-display: clamp(3.25rem, 1rem + 7vw, 7rem);

  --margin: clamp(1.25rem, 3vw, 3rem);
  --pad: clamp(1.5rem, 4.5vw, 4.5rem);

  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-weight: 400; font-size: var(--step-body); line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, p, figure, ul, ol, dl, dd, dt { margin: 0; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input { font: inherit; color: inherit; letter-spacing: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
:target { scroll-margin-top: 4rem; }
::selection { background: var(--poppy); color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.stage :focus-visible, .field-orange :focus-visible { outline-color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
p { max-width: 46ch; text-wrap: pretty; }
h1, h2, h3 { font-weight: 300; letter-spacing: -0.035em; line-height: 1.02; text-wrap: balance; }
h1, h2 { font-size: var(--step-head); }
h3 { font-size: var(--step-lead); font-weight: 400; letter-spacing: -0.02em; line-height: 1.2; }
.small { font-size: var(--step-small); line-height: 1.5; color: var(--soft); }
.nums { font-variant-numeric: tabular-nums; }
strong, b { font-weight: 500; }

/* ---------- buttons and links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.75rem; min-height: 3.25rem; padding: 0 1.5rem; background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 500; font-size: var(--step-body); transition: transform 300ms var(--ease), background-color 300ms var(--ease); }
.btn svg { width: 16px; height: 16px; transition: transform 300ms var(--ease); }
.btn:active { transform: scale(0.98); }
@media (hover: hover) { .btn:hover { background: var(--poppy); color: var(--ink); } .btn:hover svg { transform: translate(3px, -3px); } }
.textlink { font-weight: 500; text-decoration: underline; text-underline-offset: 0.3em; text-decoration-thickness: 2px; text-decoration-color: var(--poppy); transition: text-decoration-color 300ms var(--ease); }
@media (hover: hover) { .textlink:hover { text-decoration-color: var(--ink); } }

/* ---------- top bar: plain links, one action ---------- */
.top { position: fixed; z-index: 30; top: 0; right: 0; width: 50%; display: flex; justify-content: flex-end; align-items: center; gap: 1.75rem; padding: 1rem var(--margin); background: var(--paper); font-size: var(--step-small); }
.top { transition: opacity 300ms var(--ease); }
.top.off { opacity: 0; pointer-events: none; }
.top a { text-decoration: none; transition: color 300ms var(--ease); }
.top .nav-links { display: flex; gap: 1.5rem; }
@media (hover: hover) { .top a:hover { color: var(--poppy); } }
.top .go { font-weight: 500; text-decoration: underline; text-decoration-color: var(--poppy); text-decoration-thickness: 2px; text-underline-offset: 0.3em; }
@media (max-width: 62em) {
  .top { display: none; }
}

/* ---------- the split: fixed flower, scrolling argument ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
.stage { position: sticky; top: 0; z-index: 3; height: 100svh; background: var(--night); color: var(--on-night); display: grid; grid-template-rows: auto 1fr auto; padding: clamp(1.25rem, 2.2vw, 2.25rem); overflow: hidden; }
.readout { display: flex; flex-wrap: wrap; gap: 0.5rem 2.5rem; align-items: baseline; }
.readout div { display: grid; gap: 0.1rem; }
.readout .big { font-size: var(--step-head); font-weight: 300; letter-spacing: -0.035em; line-height: 1; font-variant-numeric: tabular-nums; }
.readout .lab { font-size: var(--step-small); color: #c9cfc6; }
.flower { align-self: center; justify-self: center; width: min(100%, 62svh); max-height: 100%; }
.flower svg { width: 100%; height: auto; max-height: 56svh; margin-inline: auto; }
.petal { transform-box: view-box; transform-origin: 200px 200px; transition: transform 800ms var(--ease); }
.petal.p-a { fill: var(--poppy); }
.petal.p-b { fill: var(--sage); }
.key { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; font-size: var(--step-small); color: #c9cfc6; }
.key span { display: inline-flex; align-items: center; gap: 0.5rem; }
.key i { width: 12px; height: 12px; display: block; }
.wordmark { font-size: clamp(5rem, 12vw, 12.5rem); font-weight: 300; letter-spacing: -0.05em; line-height: 0.8; color: var(--on-night); margin-top: 0.5rem; transform-origin: left bottom; will-change: transform; }
.stage .wm-row { display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
@media (max-height: 44rem) and (min-width: 62em) { .wordmark { display: none; } .stage .key { margin-top: 0.5rem; } }
@media (max-width: 62em) {
  .split { grid-template-columns: 1fr; }
  .stage { height: auto; display: flex; align-items: center; gap: 1rem; padding: 0.6rem var(--margin); }
  .flower { order: -1; width: 3.5rem; flex: none; }
  .flower svg { max-height: none; animation: none; }
  .stage .readout { gap: 0 1.5rem; flex-wrap: nowrap; }
  .readout .big { font-size: 1.5rem; }
  .readout .lab { font-size: var(--step-small); line-height: 1.2; }
  .stage .wm-row { display: none; }
  .col { position: relative; z-index: 1; background: var(--paper); }
}

.col { min-width: 0; }
.col > section { padding: 0 var(--pad); }
.hero { padding-top: clamp(7rem, 18svh, 10rem) !important; min-height: 100svh; display: grid; align-content: start; gap: 1.5rem; }
.hero h1 { max-width: 18ch; }
.hero .lead { font-size: var(--step-lead); line-height: 1.35; max-width: 34ch; }
.hero .acts { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 0.5rem; }
@media (max-width: 62em) { .hero { min-height: 0; padding-top: clamp(2rem, 6vw, 3rem) !important; padding-bottom: clamp(3rem, 12vw, 6rem); } }

.block { min-height: 60svh; display: grid; align-content: center; gap: 1.25rem; padding-block: clamp(3rem, 10vh, 6rem); }
.block h2 { font-size: clamp(1.75rem, 1.1rem + 2.4vw, 2.75rem); max-width: 16ch; }
.block p { font-size: var(--step-body); }
.col .first { padding-top: clamp(4rem, 12vh, 8rem); }
.col .last { padding-bottom: clamp(5rem, 14vh, 9rem); }
.gap-row { display: grid; gap: 0.1rem; padding: 0.6rem 0; }
.gap-row label { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; font-weight: 500; line-height: 1.3; }
.gap-row output, .ctl-read output { white-space: nowrap; font-variant-numeric: tabular-nums; }
.ctl-read { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; font-weight: 500; }

/* sliders: solid track, ink passed part, square accent thumb */
.rng { position: relative; height: 44px; }
.rng .rail, .rng .fill { position: absolute; left: 0; right: 0; top: 50%; height: 8px; margin-top: -4px; }
.rng .rail { background: rgba(20, 20, 20, 0.14); }
.rng .fill { background: var(--ink); transform-origin: left center; transform: scaleX(var(--p, 0)); transition: transform 300ms var(--ease); }
.rng input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.rng input::-webkit-slider-runnable-track { background: transparent; height: 44px; }
.rng input::-moz-range-track { background: transparent; height: 44px; }
.rng input::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 32px; height: 32px; margin-top: 6px; background: var(--poppy); border: 0; border-radius: 0; transition: transform 300ms var(--ease); }
.rng input::-moz-range-thumb { width: 32px; height: 32px; background: var(--poppy); border: 0; border-radius: 0; }
.rng input:active::-webkit-slider-thumb { transform: scale(1.12); }

/* ---------- how it works: two flat fields, one slider ---------- */
.how { display: grid; grid-template-columns: 1fr 1fr; min-height: 88svh; }
.how > * { min-width: 0; }
.how-text { background: var(--sage-field); padding: var(--pad); display: grid; align-content: space-between; gap: 2rem; }
.how-text h2 { max-width: 12ch; min-height: 2.1em; }
.how-text p { font-size: var(--step-body); min-height: 6.2em; max-width: 36ch; }
.how-ui { background: var(--sage); display: grid; place-items: center; padding: var(--pad); }
.how-bar { padding-top: 1rem; }
.stops { display: grid; grid-template-columns: repeat(4, 1fr); }
.stops button { text-align: left; min-height: 2.75rem; padding: 0.5rem 0; color: var(--soft); font-size: var(--step-body); transition: color 300ms var(--ease); }
.stops button:last-child { text-align: right; }
.stops button:nth-child(2), .stops button:nth-child(3) { text-align: center; }
.stops button.is-on { color: var(--ink); font-weight: 500; }
.frag { display: grid; width: min(440px, 100%); }
.frag figure { grid-area: 1 / 1; place-self: center; width: 100%; opacity: 0; transform: translateY(10px); transition: opacity 250ms var(--ease), transform 500ms var(--ease); pointer-events: none; }
.frag figure.is-on { opacity: 1; transform: none; pointer-events: auto; }
.frag figcaption { margin-top: 0.6rem; text-align: center; }
@media (max-width: 62em) {
  .how { grid-template-columns: 1fr; min-height: 0; }
  .how-ui { order: -1; min-height: 46svh; padding: 1.5rem var(--margin); }
  .how-text h2 { min-height: 2.1em; }
  .how-text p { min-height: 0; }
}

/* the product's own fragments (data-ui keep their own borders) */
.mock { background: #fff; border: 1px solid rgba(20, 20, 20, 0.12); border-radius: 8px; padding: 1rem 1.1rem; display: grid; gap: 0.6rem; font-size: var(--step-small); line-height: 1.4; color: var(--ink); text-align: left; width: 100%; }
.mock-h { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font-weight: 500; }
.mock-row { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; padding-top: 0.55rem; border-top: 1px solid rgba(20, 20, 20, 0.1); /* taste-skill-ignore: data-ui fragment */ }
.mock-row .who { font-size: var(--step-small); color: var(--soft); }
.mock-line { max-width: none; }
.mock-btn { justify-self: start; padding: 0.5rem 1rem; background: var(--ink); color: #fff; font-size: var(--step-small); font-weight: 500; }
.mock-msg { background: #eef1ec; padding: 0.7rem 0.85rem; }
.mock-msg b { display: block; font-size: var(--step-small); color: var(--soft); margin-bottom: 0.15rem; }
.src { display: inline-block; margin-left: 0.45rem; padding: 0.05rem 0.5rem; background: #e4ece2; color: #2f5d33; font-size: var(--step-small); white-space: nowrap; }
.chip { flex: none; padding: 0.15rem 0.65rem; font-size: var(--step-small); font-weight: 500; background: #e4ece2; color: #2f5d33; }
.chip.wait { background: #fbefc9; color: #7a5200; }
.chip.idle { background: #e9ebe6; color: var(--soft); }
.chip.bad { background: #fbe0d3; color: #9a3410; }

/* ---------- try a case: full-width section that breaks the split ---------- */
.try { background: var(--paper); padding: clamp(5rem, 12vw, 10rem) var(--pad); display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: 1fr 1fr; align-items: start; }
.try-head { grid-column: 1 / -1; display: grid; gap: 1.25rem; max-width: 40rem; }
.try-head p { font-size: var(--step-lead); line-height: 1.35; }
.try > * { min-width: 0; }
.report { background: var(--ink); color: var(--on-night); padding: clamp(1.25rem, 3vw, 2.5rem); display: grid; gap: 0.4rem; position: sticky; top: 4.5rem; }
.report .out-title { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; font-size: var(--step-lead); font-weight: 300; margin-bottom: 0.6rem; }
.report .out-title .small { color: #c9cfc6; }
.out-row { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; padding: 0.7rem 0; font-weight: 500; line-height: 1.25; }
.out-row .chip { background: #cfe3cd; color: #17361a; }
.out-row.is-bad .chip { background: var(--poppy); color: var(--ink); }
.req { background: #262826; padding: 0.9rem 1rem; font-size: var(--step-body); line-height: 1.5; margin-top: 0.5rem; }
.req b { font-weight: 500; color: #ff8a5c; display: block; }
.req .msg { margin-top: 0.7rem; }
.req .msg span { display: block; font-size: var(--step-small); color: #c9cfc6; }
.ctl-list { display: grid; gap: 0; }
.ctl-card { background: var(--sage-field); padding: clamp(1.25rem, 2.6vw, 2rem); display: grid; gap: 0.75rem; align-content: start; }
.ctl-card:nth-child(even) { background: var(--paper); }
.ctl-card h3 { max-width: 22ch; }
.ctl-card p { font-size: var(--step-body); max-width: 42ch; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.seg.four { grid-template-columns: repeat(2, 1fr); }
.seg button { min-height: 2.75rem; padding: 0.4rem; background: rgba(20, 20, 20, 0.08); font-weight: 500; transition: background-color 300ms var(--ease), transform 300ms var(--ease); }
.seg button:active { transform: scale(0.97); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
@media (hover: hover) { .seg button:not([aria-pressed="true"]):hover { background: rgba(20, 20, 20, 0.16); } }
.tog { display: inline-flex; align-items: center; gap: 0.8rem; min-height: 2.75rem; font-weight: 500; text-align: left; }
.tog .sw { width: 52px; height: 30px; background: rgba(20, 20, 20, 0.25); position: relative; transition: background-color 400ms var(--ease); flex: none; }
.tog .sw::after { content: ""; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; background: #fff; transition: transform 500ms var(--ease); }
.tog[aria-pressed="true"] .sw { background: var(--poppy); }
.tog[aria-pressed="true"] .sw::after { transform: translateX(22px); }
@media (max-width: 62em) { .try { grid-template-columns: 1fr; } .report { position: static; } }

/* ---------- people: quiet two-track list ---------- */
.people { background: var(--sage-field); padding: clamp(5rem, 12vw, 10rem) var(--pad); display: grid; gap: clamp(2rem, 4vw, 3rem); }
.people-head { display: grid; gap: 1.25rem; max-width: 44rem; }
.people-head p { font-size: var(--step-lead); line-height: 1.35; max-width: 34ch; }
.who-list { display: grid; gap: 1.75rem; max-width: 62rem; }
.who-list div { display: grid; grid-template-columns: minmax(8rem, 15rem) 1fr; gap: 0.5rem 2rem; align-items: baseline; }
.who-list dt { font-size: var(--step-lead); font-weight: 400; letter-spacing: -0.02em; line-height: 1.2; }
.who-list dd { font-size: var(--step-body); max-width: 46ch; }
@media (max-width: 48em) { .who-list div { grid-template-columns: 1fr; } }

/* ---------- the name: pictures break the split ---------- */
.name { background: var(--night); color: var(--on-night); padding: clamp(5rem, 12vw, 10rem) var(--pad); display: grid; gap: clamp(2rem, 4vw, 3rem); }
.name > * { min-width: 0; }
.name-text { display: grid; gap: 1.25rem; max-width: 44rem; }
.name-text p { font-size: var(--step-lead); line-height: 1.35; max-width: 32ch; }
.pics { display: grid; grid-template-columns: 1.6fr 1fr 0.8fr; grid-template-rows: auto auto; gap: 8px; align-items: stretch; }
.pics figure { display: grid; grid-template-rows: 1fr auto; gap: 0.5rem; min-height: 0; overflow: hidden; }
.pics .ph { overflow: hidden; background: #262826; min-height: 0; }
.pics img { width: 100%; height: 100%; object-fit: cover; }
.pics figcaption { font-size: var(--step-small); color: #c9cfc6; line-height: 1.4; }
.pic-a { grid-column: 1; grid-row: 1 / 3; }
.pic-a .ph { aspect-ratio: auto; }
.pic-a img { animation: drift 24s var(--ease) infinite alternate; transform: scale(1.04); }
.pic-b .ph { aspect-ratio: 1 / 1; }
.pic-c { grid-column: 3; grid-row: 1 / 3; }
.pic-c .ph { aspect-ratio: 0.4 / 1; }
.pic-d { grid-column: 2; }
.pic-d .ph { aspect-ratio: 4 / 3; }
@keyframes drift { to { transform: scale(1.1) translate(-1.5%, -1%); } }
@media (max-width: 48em) {
  .pics { grid-template-columns: 1fr 1fr; }
  .pic-a { grid-column: 1 / -1; grid-row: auto; }
  .pic-b, .pic-c, .pic-d { grid-column: auto; grid-row: auto; }
  .pic-c { grid-column: 1 / -1; }
  .pic-c .ph { aspect-ratio: 2 / 1; }
}

/* ---------- faq: reading text ---------- */
.faq { padding: clamp(5rem, 12vw, 10rem) var(--pad); display: grid; gap: clamp(2rem, 4vw, 3rem); grid-template-columns: 1fr 2.4fr; align-items: start; }
.faq h2 { font-size: clamp(1.75rem, 1.1rem + 2.4vw, 2.75rem); }
.faq-text { columns: 2; column-gap: 3.5rem; font-size: var(--step-body); line-height: 1.55; }
.faq-text p { max-width: none; break-inside: avoid; margin-bottom: 1.25rem; }
.faq-text strong { font-weight: 500; }
@media (max-width: 62em) { .faq { grid-template-columns: 1fr; } .faq-text { columns: 1; } }

/* ---------- cta: the form, already open ---------- */
.field-orange { background: var(--poppy); color: var(--ink); min-height: 90svh; display: grid; grid-template-columns: 5fr 6fr; gap: 2rem; padding: var(--pad); align-items: end; }
.field-orange > * { min-width: 0; }
.cta-text { display: grid; gap: 1.25rem; align-self: end; }
.cta-text h2 { font-size: var(--step-display); font-weight: 300; line-height: 0.92; letter-spacing: -0.045em; max-width: 8ch; }
.cta-text p { font-size: var(--step-body); max-width: 34ch; }
.dlg { background: var(--paper); border-radius: 8px; padding: clamp(1.25rem, 2.4vw, 2rem); display: grid; gap: 1rem; width: min(100%, 440px); justify-self: center; align-self: center; box-shadow: 0 24px 60px -20px rgba(20, 20, 20, 0.45); /* taste-skill-ignore: open dialog */ }
.dlg h3 { font-size: var(--step-lead); }
.dlg label.l { display: grid; gap: 0.35rem; font-weight: 500; font-size: var(--step-small); }
.dlg input[type="email"] { height: 3.25rem; padding: 0 0.9rem; border: 2px solid rgba(20, 20, 20, 0.2); border-radius: 0; background: #fff; font-size: var(--step-body); width: 100%; }
.dlg input[type="email"]:focus-visible { border-color: var(--ink); outline: 0; }
.dlg .btn { width: 100%; }
.dlg .status { min-height: 1.5em; font-weight: 500; font-size: var(--step-small); max-width: none; }
.dlg .after { font-size: var(--step-small); color: var(--soft); max-width: none; }
@media (max-width: 62em) {
  .field-orange { grid-template-columns: 1fr; min-height: 84svh; }
  .cta-text h2 { font-size: 13vw; }
}

/* ---------- footer: one quiet line ---------- */
.foot { padding: 30svh var(--margin) 30px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 1.5rem; align-items: baseline; font-size: var(--step-small); }
.foot nav { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.foot a { text-decoration: none; }
@media (hover: hover) { .foot a:hover { color: var(--poppy); } }
.foot .l { color: var(--soft); }
.foot .r { color: var(--soft); justify-self: end; text-align: right; }
@media (max-width: 48em) {
  .foot { grid-template-columns: 1fr; gap: 0.5rem; padding-top: 20svh; padding-bottom: 24px; font-size: var(--step-small); }
  .foot nav, .foot .r { justify-self: start; justify-content: flex-start; text-align: left; }
}

/* ---------- motion: transform and opacity only ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(1.75rem); transition: opacity 800ms var(--ease), transform 800ms var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .rise { opacity: 0; transform: translateY(1.5rem); animation: rise 900ms var(--ease) forwards; animation-delay: calc(var(--i, 0) * 90ms + 120ms); }
  .flower svg { animation: sway 14s ease-in-out infinite alternate; }
}
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes sway { from { transform: rotate(-3deg); } to { transform: rotate(3deg); } }
