/* SamplePad landing — tokens from the Figma file p9YXbM6huosH5WVkB2Aoz8
   (collection "Color", modes Light/Dark; collection "Dimensions").
   Light = strictly black / white / neutral grays. Dark = Apple iOS 26 system colors.
   Font: the system stack. SF Pro is NOT self-hosted: Apple's font licence only
   covers mock-ups of apps for Apple platforms, not web embedding. */

:root {
  color-scheme: light dark;
  /* Figma Color / Light */
  --bg: #ffffff;                       /* bg/primary */
  --bg-2: #f2f2f7;                     /* bg/secondary, system gray6 */
  --bg-3: #ffffff;                     /* bg/tertiary */
  --label: #000000;                    /* text/primary */
  --label-2: rgba(60, 60, 67, 0.8);    /* web/text/secondary (DESIGN.md §10): secondaryLabel Increased Contrast, ≥ 4.5:1 */
  --label-3: rgba(60, 60, 67, 0.6);    /* text/secondary: decorative/large text only */
  --separator: rgba(0, 0, 0, 0.12);    /* separator */
  --fill: rgba(120, 120, 128, 0.16);   /* fill/secondary = pad/idle/fill */
  --fill-strong: #d1d1d6;              /* fader/track, system gray4 */
  --accent: #000000;                   /* accent (light is monochrome) */
  --on-accent: #ffffff;
  --panic: #000000;                    /* panic/fill */
  --on-panic: #ffffff;                 /* panic/label */
  --pad-playing: #000000;              /* pad/playing/fill */
  --on-pad-playing: #ffffff;           /* pad/playing/label */
  --loop-badge: #000000;               /* pad/looping/badge */
  --focus: #000000;                    /* focus/ring */
  --band-bg: #000000;                  /* "Stop All" band: inverted section */
  --band-fg: #ffffff;
  --band-fg-2: #a1a1a6;
  --glass: rgba(255, 255, 255, 0.72);
  --shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.25), 0 18px 36px -18px rgba(0, 0, 0, 0.2);

  /* Figma Dimensions */
  --space-xs: 4px; --space-s: 8px; --space-m: 12px; --space-l: 16px; --space-xl: 24px;
  --radius-pad: 16px; --hit: 44px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, sans-serif; /* DESIGN.md §10 */
  --maxw: 1080px;
  --gutter: clamp(20px, 5vw, 48px);
}

@media (prefers-color-scheme: dark) {
  :root {
    /* Figma Color / Dark */
    --bg: #000000;                     /* bg/primary */
    --bg-2: #1c1c1e;                   /* bg/secondary */
    --bg-3: #2c2c2e;                   /* bg/tertiary */
    --label: #ffffff;                  /* text/primary */
    --label-2: rgba(235, 235, 245, 0.7); /* text/secondary */
    --label-3: rgba(235, 235, 245, 0.3); /* text/tertiary */
    --separator: rgba(255, 255, 255, 0.17);
    --fill: #2c2c2e;                   /* pad/idle/fill */
    --fill-strong: #3a3a3c;            /* fader/track */
    --accent: #0091ff;                 /* systemBlue (dark), accent */
    --on-accent: #ffffff;
    --panic: #ff4245;                  /* systemRed (dark), panic/fill */
    --on-panic: #ffffff;
    --pad-playing: #0091ff;            /* pad/playing/fill */
    --on-pad-playing: #ffffff;
    --loop-badge: #30d158;             /* systemGreen (dark), pad/looping/badge */
    --focus: #0091ff;                  /* focus/ring */
    --band-bg: #1c1c1e;
    --band-fg: #ffffff;
    --band-fg-2: rgba(235, 235, 245, 0.7);
    --glass: rgba(28, 28, 30, 0.72);
    --shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--label);
  font-family: var(--font); font-size: 17px; line-height: 1.47; letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
p a, li a, dd a { color: var(--accent); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--label); color: var(--bg); padding: 10px 16px; border-radius: 999px; text-decoration: none; font-weight: 600; }
.skip-link:focus { top: 12px; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--glass); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--separator);
}
.site-header .wrap { display: flex; align-items: center; gap: var(--space-l); min-height: 52px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 19px; text-decoration: none; letter-spacing: -0.02em; min-height: var(--hit); }
.brand img { width: 28px; height: 28px; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav a { display: inline-flex; align-items: center; min-height: var(--hit); padding: 0 10px; font-size: 14px; color: var(--label-2); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--label); }
.nav-cta { font-size: 14px; font-weight: 600; padding: 7px 14px; border-radius: 999px; background: var(--label); color: var(--bg); text-decoration: none; white-space: nowrap; }
@media (max-width: 760px) { .site-nav .hide-sm { display: none; } }
@media (max-width: 480px) { .site-nav { display: none; } .nav-cta { margin-left: auto; } }

/* Type */
.eyebrow { font-size: 17px; font-weight: 600; color: var(--label-2); margin: 0 0 var(--space-m); letter-spacing: -0.01em; }
h1, h2, h3 { margin: 0; letter-spacing: -0.03em; line-height: 1.07; }
h1 { font-size: clamp(44px, 8vw, 88px); font-weight: 700; }
h2 { font-size: clamp(34px, 5.4vw, 60px); font-weight: 700; }
h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.lede { font-size: clamp(19px, 2.2vw, 24px); line-height: 1.38; color: var(--label-2); max-width: 36em; margin: var(--space-xl) 0 0; letter-spacing: -0.015em; }
.lede strong { color: var(--label); font-weight: 600; }
.center { text-align: center; } .center .lede { margin-left: auto; margin-right: auto; }

section { padding: clamp(80px, 12vw, 160px) 0; }
section + section { border-top: 1px solid var(--separator); }

/* Hero */
.hero { padding-top: clamp(56px, 9vw, 112px); padding-bottom: 0; overflow: hidden; text-align: center; }
.hero h1 { max-width: 12ch; margin: 0 auto; }
.hero .lede { margin-left: auto; margin-right: auto; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--space-l) var(--space-xl); margin-top: 40px; }
.hero-stage { position: relative; margin: clamp(48px, 7vw, 88px) auto 0; max-width: 980px; padding-bottom: clamp(24px, 4vw, 56px); }

/* App Store badge: official artwork, unmodified. Clear space = 1/4 badge height (Apple). */
.badge { display: inline-block; padding: 10px; /* 10px = 1/4 of the 40px badge height */ line-height: 0; }
.badge img { height: 48px; width: auto; }
.badge--sm img { height: 40px; } /* Apple's onscreen minimum is 40px */
a.badge { border-radius: 12px; }
.badge-dark { display: none; }
@media (prefers-color-scheme: dark) { .badge-light { display: none; } .badge-dark { display: block; } }
.release-note { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; }
.pill { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--fill); color: var(--label); }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--label); }
@media (prefers-color-scheme: dark) { .pill .dot { background: var(--loop-badge); } }
.text-link { font-size: 17px; font-weight: 500; color: var(--accent); text-decoration: none; min-height: var(--hit); display: inline-flex; align-items: center; }
.text-link:hover { text-decoration: underline; }
.text-link::after { content: "›"; margin-left: 4px; font-size: 1.15em; }
.small { font-size: 14px; color: var(--label-2); }

/* Release state: <html data-release="coming-soon|testflight|live"> */
[data-show] { display: none !important; }
html[data-release="coming-soon"] [data-show~="coming-soon"],
html[data-release="testflight"] [data-show~="testflight"],
html[data-release="live"] [data-show~="live"] { display: revert !important; }
html[data-release="coming-soon"] .flex[data-show~="coming-soon"],
html[data-release="testflight"] .flex[data-show~="testflight"],
html[data-release="live"] .flex[data-show~="live"] { display: flex !important; }

/* Generic device frames (no Apple-specific hardware details; see LANDING_RESEARCH.md §5) */
.device { container-type: inline-size; }
.device .frame { background: #0b0b0c; padding: 2.2cqw; border-radius: 6cqw; box-shadow: var(--shadow); }
.device .frame img, .device .frame picture { border-radius: 4.2cqw; overflow: hidden; width: 100%; }
.device--phone .frame { padding: 3.2cqw; border-radius: 16cqw; }
.device--phone .frame img, .device--phone .frame picture { border-radius: 13cqw; }
@media (prefers-color-scheme: dark) { .device .frame { background: #2c2c2e; } }
.hero-stage .device--tablet { width: 86%; }
.hero-stage .device--phone { position: absolute; width: 25%; right: 0; bottom: 0; }
@media (max-width: 600px) { .release-note { align-items: center; text-align: center; } .hero-stage .device--tablet { width: 92%; } .hero-stage .device--phone { width: 34%; right: calc(var(--gutter) - 8px); } }

/* Proof strip */
.proof { padding: 40px 0; }
.proof ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--space-xl); text-align: center; }
.proof strong { display: block; font-size: 28px; letter-spacing: -0.03em; }
.proof span { color: var(--label-2); font-size: 15px; }

/* Features */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: var(--space-l); margin-top: 64px; }
.card { background: var(--bg-2); border-radius: 28px; padding: 32px; }
.card h3 { margin-top: 20px; }
.card p { margin: 10px 0 0; color: var(--label-2); }
.card--wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; }
@media (max-width: 760px) { .card--wide { grid-template-columns: 1fr; } }
.glyph { display: grid; grid-template-columns: repeat(3, 22px); gap: 5px; }
.glyph i { width: 22px; height: 22px; border-radius: 6px; background: var(--fill-strong); }
.glyph i.on { background: var(--pad-playing); }
.glyph--loop i.on { position: relative; }
.glyph--loop i.on::after { content: ""; position: absolute; right: -4px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--loop-badge); border: 2px solid var(--bg-2); }
.mini-stop { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 999px; background: var(--panic); color: var(--on-panic); font-weight: 700; font-size: 19px; letter-spacing: -0.02em; } /* ≥ 14pt bold = large text: white on systemRed 3.4:1 passes AA large */
.mini-stop::before { content: ""; width: 10px; height: 10px; border-radius: 2px; background: currentColor; }
.faders { display: flex; gap: 14px; align-items: flex-end; height: 66px; }
.faders span { width: 6px; border-radius: 3px; background: var(--fill-strong); height: 100%; position: relative; }
.faders span::after { content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: var(--v); background: var(--label); border-radius: 3px; }
@media (prefers-color-scheme: dark) { .faders span::after { background: var(--accent); } }
.card-shot { justify-self: center; width: min(220px, 60%); }
.card--wide { padding-top: 40px; padding-bottom: 40px; }

/* Split sections with a screenshot */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.split.reverse .split-media { order: -1; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.reverse .split-media { order: 0; } }
.split-media .device--phone { width: min(320px, 80%); margin: 0 auto; }
.checklist { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.checklist li { padding-left: 30px; position: relative; color: var(--label-2); }
.checklist li strong { color: var(--label); font-weight: 600; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 0.35em; width: 16px; height: 16px; border-radius: 5px; background: var(--label); }
@media (prefers-color-scheme: dark) { .checklist li::before { background: var(--accent); } }

/* Stop All band */
.band { background: var(--band-bg); color: var(--band-fg); border-top: 0 !important; text-align: center; }
.band + section { border-top: 0; }
.band .lede { color: var(--band-fg-2); margin-left: auto; margin-right: auto; }
.band .big-stop { margin: 48px auto 0; display: inline-flex; align-items: center; justify-content: center; gap: 14px; height: 72px; padding: 0 44px; border-radius: 999px; background: var(--band-fg); color: var(--band-bg); font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.band .big-stop::before { content: ""; width: 18px; height: 18px; border-radius: 4px; background: currentColor; }
@media (prefers-color-scheme: dark) { .band .big-stop { background: var(--panic); color: #fff; } }
.kbd { display: inline-block; border: 1px solid currentColor; border-radius: 6px; padding: 0 6px; font-size: 0.85em; line-height: 1.4; }

/* Use cases */
.cases { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: var(--space-l); margin-top: 56px; list-style: none; padding: 0; }
.cases li { border-top: 2px solid var(--label); padding-top: 18px; }
.cases p { margin: 8px 0 0; color: var(--label-2); font-size: 16px; }

/* Screenshots carousel */
.shots-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.carousel-controls { display: flex; gap: 10px; }
.carousel-controls button { width: var(--hit); height: var(--hit); border-radius: 50%; border: 0; background: var(--fill); color: var(--label); font: inherit; font-size: 22px; cursor: pointer; display: grid; place-items: center; }
.carousel-controls button:hover { background: var(--fill-strong); }
.carousel-controls button:disabled { opacity: 0.4; cursor: default; }
.carousel { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 48px var(--gutter) 24px; margin: 0 calc(50% - 50vw); scroll-padding: 0 var(--gutter); list-style: none; scrollbar-width: none; }
.carousel::-webkit-scrollbar { display: none; }
.carousel li { flex: 0 0 auto; scroll-snap-align: start; }
.carousel figure { margin: 0; }
.carousel img { height: clamp(380px, 52vw, 560px); width: auto; border-radius: 22px; background: var(--bg-2); box-shadow: 0 0 0 1px var(--separator); }
.carousel figcaption { font-size: 14px; color: var(--label-2); margin-top: 12px; }
@media (min-width: 1180px) { .carousel { padding-left: calc((100vw - var(--maxw)) / 2 + var(--gutter)); scroll-padding-left: calc((100vw - var(--maxw)) / 2 + var(--gutter)); } }

/* Platforms */
.platforms { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-l); margin-top: 56px; }
.platforms .card { text-align: left; }
.platform-shot { margin: 64px 0 0; }
.window-shot img { border-radius: 14px; box-shadow: var(--shadow), 0 0 0 1px var(--separator); }

/* Teams teaser */
.teams { background: var(--bg-2); border-radius: 36px; padding: clamp(36px, 6vw, 72px); display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .teams { grid-template-columns: 1fr; } }
.teams ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.teams li { background: var(--bg-3); border-radius: 18px; padding: 18px 20px; }
@media (prefers-color-scheme: light) { .teams li { box-shadow: 0 0 0 1px var(--separator); } }
.teams li strong { display: block; }
.teams li span { color: var(--label-2); font-size: 15px; }

/* FAQ */
.faq { max-width: 760px; margin: 48px auto 0; }
.faq details { border-bottom: 1px solid var(--separator); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; font-size: 19px; font-weight: 600; position: relative; letter-spacing: -0.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 26px; font-weight: 300; transition: transform .25s ease; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0 0 22px; color: var(--label-2); }

/* Final CTA */
.final { text-align: center; }
.final .app-icon { width: 120px; height: 120px; margin: 0 auto 32px; }

/* Footer */
.site-footer { background: var(--bg-2); color: var(--label-2); font-size: 12px; line-height: 1.5; padding: 32px 0 48px; }
.site-footer nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 20px; padding: 0; margin: 0 0 16px; }
.site-footer nav a { color: var(--label); font-size: 14px; text-decoration: none; display: inline-flex; min-height: var(--hit); align-items: center; }
.site-footer nav a:hover { text-decoration: underline; }
.site-footer p { margin: 6px 0; }

/* Legal / document pages */
.doc { max-width: 720px; margin: 0 auto; padding: clamp(48px, 8vw, 96px) var(--gutter) 96px; }
.doc h1 { font-size: clamp(40px, 6vw, 56px); }
.doc h2 { font-size: 26px; margin-top: 48px; letter-spacing: -0.02em; }
.doc h3 { margin-top: 28px; }
.doc p, .doc li { color: var(--label-2); }
.doc strong { color: var(--label); }
.draft-banner { border: 2px dashed var(--label); border-radius: 16px; padding: 16px 20px; margin: 24px 0 8px; color: var(--label); font-size: 15px; }
.contact-card { background: var(--bg-2); border-radius: 24px; padding: 28px; margin-top: 32px; }
.contact-card .email { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; color: var(--label); }

/* Motion (only when JS is on and the user hasn't asked for reduced motion) */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(32px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
  .js .reveal.in { opacity: 1; transform: none; }
  .js .hero-stage .device--phone.reveal { transition-delay: .25s; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
