@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --night: #131418;
  --text: #F4F4F5;
  --mint: #4FA8A0;
  --muted: #A1A4AD;
  --line: #2C2E35;
  --ink: #131418;
  --tile: #1C1D21;
  --display: 'DM Sans', sans-serif;
  --mono: 'IBM Plex Mono', monospace;
  color-scheme: dark;
  font-family: var(--display);
  font-synthesis: none;
  scroll-behavior: smooth;
  scroll-padding-top: 36px;
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--night); color: var(--text); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-weight: 500; }
h1, h2 { letter-spacing: -.055em; line-height: 1.08; }
h2 { font-size: clamp(36px, 3.9vw, 54px); }
h3 { letter-spacing: -.02em; line-height: 1.35; }
p { color: var(--muted); }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 5px; border-radius: 3px; }
::selection { background: var(--mint); color: var(--ink); }
[hidden] { display: none !important; }
.wrap { max-width: 1320px; margin-inline: auto; padding-inline: clamp(24px, 5vw, 72px); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 12px; left: 16px; z-index: 10; transform: translateY(-180%); background: var(--mint); color: var(--ink); padding: 12px 22px; }
.skip-link:focus { transform: none; }
.wordmark { display: inline-flex; align-items: center; width: 88px; flex-shrink: 0; }
.wordmark svg { width: 100%; overflow: visible; }
.arrow { width: 18px; height: 18px; flex-shrink: 0; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 36px; min-height: 54px; padding: 14px 24px; background: var(--mint); color: var(--ink); border: 1px solid transparent; border-radius: 5px; text-decoration: none; font-size: 14px; font-weight: 600; line-height: 1.4; transition: background .2s, transform .2s; }
.button:hover { filter: brightness(1.08); transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button.small { min-height: 44px; padding: 10px 18px; gap: 20px; font-size: 12px; }
.top { min-height: 104px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.top nav { display: flex; gap: 30px; margin-left: auto; margin-right: 30px; }
.top nav a { display: flex; align-items: center; min-height: 44px; text-decoration: none; font-size: 13px; color: var(--muted); }
.top nav a:hover { color: white; }
.experience { position: relative; display: grid; grid-template-columns: 1.12fr 1fr; column-gap: 56px; align-items: start; }
.story { position: relative; min-width: 0; }
.chapter { padding-block: 88px; border-top: 1px solid var(--line); }
.chapter > h2 { margin-bottom: 28px; }
.chapter:focus { outline: none; }
.chapter > p { font-size: 15px; line-height: 1.8; max-width: 410px; }
.hero { min-height: min(78svh, 800px); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; border-top: 0; padding-block: 64px 100px; }
.hero h1 { font-size: clamp(52px, 4.9vw, 72px); margin-bottom: 30px; line-height: 1.05; }
.hero h1 span { color: var(--mint); }
.hero .lead { max-width: 365px; margin-bottom: 32px; font-size: 16px; }
.hero .release-note { font-size: 11px; margin-top: 15px; }
.form-status { font-size: 14px; margin-top: 12px; color: var(--mint); }
.form-status:empty { display: none; }
.benefit { padding: 38px; margin-block: 38px 88px; background: var(--tile); color: var(--text); border: 0; border-radius: 8px; }
/* The card holds in the middle of the viewport while scrolling crossfades the photos.
   The spacer after the card is the scroll distance the card stays pinned
   (sticky is bounded by the wrapper's content box, so padding would not count). */
.history-pin { --pin-offset: 0px; --pin-length: 130svh; margin-block: 38px 88px; }
.history-pin::after { content: ''; display: block; height: var(--pin-length); }
.history-pin > .benefit { position: sticky; top: calc(var(--pin-offset) + (100svh - var(--pin-offset) - var(--card-h, 640px)) / 2); margin: 0; }
.benefit h2 { font-size: clamp(34px, 3.3vw, 46px); margin-bottom: 22px; }
.benefit > p { color: var(--muted); font-size: 14px; }
.photo-history { margin-top: 30px; }
.history-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 14px; font-size: 12px; }
.history-head strong { font-weight: 550; }
.history-head span { color: var(--muted); }
.history-window { overflow: hidden; border-radius: 5px; }
.history-strip { display: grid; }
.history-photo { grid-area: 1 / 1; min-width: 0; width: 100%; height: auto; aspect-ratio: 2.4; object-fit: cover; }
.history-photo:nth-child(2) { opacity: clamp(0, calc(var(--photo-progress, 0) * 2), 1); }
.history-photo:nth-child(3) { opacity: clamp(0, calc(var(--photo-progress, 0) * 2 - 1), 1); }
.photo-history.manual-date .history-photo { transition: opacity 320ms ease; }
.photo-history:has([value="1"]:checked) { --photo-progress: .5; }
.photo-history:has([value="2"]:checked) { --photo-progress: 1; }
.history-dates { display: flex; justify-content: space-between; gap: 16px; margin-top: 20px; border-top: 1px solid var(--line); }
.history-dates label { cursor: pointer; min-height: 44px; }
.history-dates time { display: block; position: relative; padding-top: 14px; color: var(--muted); font-size: 12px; }
.history-dates time::before { content: ''; position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); top: -3.5px; left: 0; }
.history-dates input:checked + time { color: var(--text); }
.history-dates input:checked + time::before { background: var(--mint); }
.history-dates label:last-child time::before { left: auto; right: 0; }
.history-dates input:focus-visible + time { outline: 2px solid var(--mint); outline-offset: 5px; }
.photo-history figcaption { margin-top: 20px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.features { display: grid; gap: 26px; }
.design { scroll-margin-top: max(0px, calc(50svh - 210px)); }
.feature { border-top: 1px solid var(--line); padding-top: 18px; transition: border-color .2s; }
.feature h3 { font-size: 20px; margin-bottom: 8px; }
.feature p { font-size: 14px; line-height: 1.8; max-width: 375px; }
.feature.selected { border-top-color: var(--mint); }
.feature.selected h3 { color: var(--mint); }
.privacy details { border-top: 1px solid var(--line); }
.privacy details:last-child { border-bottom: 1px solid var(--line); }
summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px; font-size: 16px; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font: 400 22px var(--display); color: var(--mint); }
details[open] summary::after { content: '−'; }
details p { padding-bottom: 22px; max-width: 420px; font-size: 14px; line-height: 1.8; }
.join { padding-block: 80px 116px; }
.join h2 { color: var(--mint); max-width: 7.5em; }
.join > p { margin-bottom: 28px; }

/* One product occupies a reserved lane for the complete story.
   The canvas follows native page progress, without a separate pinned tour. */
.model-track { position: sticky; top: 0; height: 100svh; min-height: 580px; width: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; isolation: isolate; }
.model-track::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 54% 48%, #2C2E3560, transparent 67%); pointer-events: none; }
.model-stage { position: relative; width: 100%; height: min(80svh, 740px); min-height: 470px; overflow: hidden; }
.model-fallback, #brush-canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.model-fallback { transform: rotate(14deg); }
#brush-canvas { visibility: hidden; }
.model-track.ready #brush-canvas { visibility: visible; }
.model-track.ready .model-fallback { visibility: hidden; }
.model-controls { display: flex; gap: 6px; justify-content: center; margin-top: 6px; position: relative; z-index: 1; }
.model-controls button { min-height: 44px; min-width: 74px; padding: 10px 15px; border: 1px solid var(--line); border-radius: 5px; background: var(--tile); color: var(--muted); font-size: 12px; transition: background .2s, color .2s; }
.model-controls button:hover { background: #2C2E35; color: white; }
.model-controls button[aria-pressed='true'] { background: var(--mint); border-color: var(--mint); color: var(--ink); }
footer { padding-top: 40px; padding-bottom: 28px; border-top: 1px solid var(--line); }
.foot-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 30px; }
.foot-links { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--muted); }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.foot-links a:last-child { margin-left: 18px; }
.foot-links a:hover { text-decoration: underline; }
.copy { background: transparent; border: 1px solid var(--line); border-radius: 4px; min-height: 44px; min-width: 48px; color: var(--muted); font-size: 11px; }
.copy:hover { border-color: var(--mint); }
.disclaimer { max-width: 720px; font-size: 12px; line-height: 1.8; color: var(--muted); margin-bottom: 26px; }
.legal { border-top: 1px solid var(--line); padding-top: 20px; display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.legal p, .legal a { color: var(--muted); font-size: 11px; }
.legal a { min-height: 30px; text-decoration: none; }
@media (min-width: 1600px) {
  .hero { min-height: 82svh; }
  .chapter { padding-block: 112px; }
  .benefit { padding: 42px; }
}
@media (max-width: 1100px) and (min-width: 701px) {
  .experience { column-gap: 32px; grid-template-columns: 1.2fr 1fr; }
  .top nav { gap: 22px; margin-right: 10px; }
  .hero h1 { font-size: clamp(46px, 5vw, 58px); }
  .benefit { padding: 28px; }
}
@media (max-width: 700px) {
  :root { scroll-padding-top: 266px; }
  .wrap { padding-inline: 24px; }
  .top { min-height: 80px; gap: 18px; }
  .top nav { display: none; }
  .wordmark { width: 78px; }
  .button.small { min-height: 44px; font-size: 11px; padding-inline: 14px; gap: 14px; }
  .experience { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .story { display: contents; }
  .chapter { padding-block: 56px; }
  .chapter > h2 { font-size: 36px; margin-bottom: 22px; }
  .chapter > p { font-size: 14px; }
  .hero { order: 0; min-height: 0; padding-block: 34px 28px; }
  .hero h1 { font-size: clamp(42px, 10.8vw, 68px); margin-bottom: 22px; max-width: 9.4em; }
  .hero .lead { font-size: 14px; line-height: 1.75; margin-bottom: 24px; max-width: 360px; }
  .hero .button { min-height: 50px; font-size: 13px; padding: 12px 22px; gap: 40px; }
  .hero .release-note { font-size: 10px; margin-top: 12px; }
  .model-track { order: 1; top: 0; height: 238px; min-height: 0; margin: 0 -24px; padding-inline: 24px; width: calc(100% + 48px); flex-shrink: 0; z-index: 3; background: var(--night); justify-content: flex-start; border-bottom: 1px solid var(--line); }
  .model-track { clip-path: inset(0 0 calc(var(--scene-exit, 0) * 100%) 0); }
  .model-track.leaving { pointer-events: none; }
  .model-track::before { inset: 0; background: radial-gradient(ellipse at 65% 45%, #2C2E3560, transparent 70%); }
  .model-stage { height: calc(180px * (1 - var(--scene-exit, 0))); min-height: 0; }
  .model-fallback { transform: rotate(58deg) scale(1.8); }
  .model-controls { margin-top: 0; padding-bottom: 12px; width: 100%; gap: 8px; }
  .model-controls button { flex: 1; min-width: 0; min-height: 44px; font-size: 11px; padding: 8px 4px; white-space: nowrap; }
  .history-pin { order: 2; --pin-offset: 238px; --pin-length: 110svh; margin-block: 34px 56px; }
  .benefit { padding: 28px 24px; border-radius: 6px; }
  .benefit h2 { font-size: 32px; }
  .benefit > p { font-size: 13px; }
  .design { order: 3; }
  .design { scroll-margin-top: 0; }
  .features { gap: 24px; }
  .feature h3 { font-size: 18px; }
  .feature p { font-size: 13px; }
  .privacy { order: 4; }
  summary { font-size: 15px; min-height: 60px; }
  details p { font-size: 13px; }
  .join { order: 5; padding-bottom: 64px; }
  .join h2 { max-width: 7em; font-size: 44px; }
  .join > p { font-size: 13px; }
  footer { padding-top: 32px; }
  .foot-row { flex-direction: column; align-items: flex-start; gap: 20px; margin-bottom: 22px; }
  .foot-links { gap: 10px; font-size: 11px; }
  .foot-links a:last-child { margin-left: 10px; }
  .disclaimer { font-size: 11px; }
  .legal p { font-size: 10px; max-width: 230px; }
  .legal a { font-size: 10px; white-space: nowrap; }
}
@media (max-width: 360px) {
  .wrap { padding-inline: 20px; }
  .hero h1 { font-size: 39px; }
  .hero .lead { font-size: 13px; }
  .benefit { padding: 24px 18px; }
  .chapter > h2 { font-size: 32px; }
  .model-track { margin-inline: -20px; padding-inline: 20px; width: calc(100% + 40px); }
}
@media (max-height: 600px) and (max-width: 700px) {
  .model-track { position: relative; height: 238px; }
  .history-pin { --pin-offset: 0px; }
  .model-stage { height: 180px; }
  :root { scroll-padding-top: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .model-fallback { transform: none; }
  .model-track { position: relative; transform: none; }
  .history-pin::after { display: none; }
  .history-pin > .benefit { position: static; }
}

.model-track.fallback-detail .model-fallback { transform: none; }

/* Timed "Stay updated" popup */
html:has(.updates-popup[open]) { overflow: hidden; }
.updates-popup { width: min(560px, calc(100% - 32px)); max-width: none; max-height: calc(100svh - 32px); padding: 0; border: 1px solid var(--line); border-radius: 22px; background: var(--tile); color: var(--text); box-shadow: 0 30px 80px #00000080; }
.updates-popup::backdrop { background: #13141873; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.updates-popup[open] { animation: updates-in .4s cubic-bezier(.2,.8,.2,1); }
.updates-popup[open]::backdrop { animation: updates-fade .4s ease; }
@keyframes updates-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }
@keyframes updates-fade { from { opacity: 0; } }
.updates-card { position: relative; padding: 60px 48px 40px; text-align: center; }
.updates-card:focus { outline: none; }
.updates-close { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; background: none; border: 0; border-radius: 50%; color: var(--muted); transition: background .2s, color .2s; }
.updates-close:hover { background: var(--line); color: var(--text); }
.updates-close svg { width: 20px; height: 20px; }
.updates-card h2 { font-size: clamp(36px, 4vw, 46px); margin-bottom: 16px; }
.updates-card > p { max-width: 340px; margin-inline: auto; font-size: 15px; line-height: 1.7; }
.updates-field { display: flex; align-items: center; gap: 8px; max-width: 400px; margin: 34px auto 0; padding: 6px 6px 6px 24px; background: var(--text); border-radius: 999px; }
.updates-field:focus-within { outline: 3px solid var(--mint); outline-offset: 3px; }
.updates-field input { flex: 1; min-width: 0; min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 16px; }
.updates-field input:focus-visible { outline: none; }
.updates-field input::placeholder { color: #6B6E76; }
.updates-field button { width: 50px; height: 50px; flex-shrink: 0; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: var(--mint); color: var(--ink); transition: filter .2s, transform .2s; }
.updates-field button:hover { filter: brightness(1.08); transform: translateX(2px); }
.updates-field button:focus-visible { outline: 2px solid var(--ink); outline-offset: -5px; }
.updates-field .arrow { width: 20px; height: 20px; }
.updates-note { margin-top: 18px; font-size: 12px; }
@media (max-width: 700px) {
  .updates-popup { border-radius: 18px; }
  .updates-card { padding: 54px 22px 30px; }
  .updates-card h2 { font-size: 34px; }
  .updates-card > p { font-size: 14px; }
  .updates-field { margin-top: 28px; padding-left: 18px; }
}
