/* Ploypad — design system.
   "Instrument readout": control-room surfaces, one amber indicator, green only
   for healthy, the app's own SF fonts (mono for data, sans for prose). Tokens
   mirror the app's Theme.swift
   (Color.dynamic(light, dark)). */

/* ---- Tokens -------------------------------------------------------------- */
:root {
  /* dark = the default control-room look */
  --bg:#15161A;        --panel:#121317;     --card:#1A1C21;
  --field:#1D1F24;     --log-bg:#0E0F12;
  --text-hi:#F2F2F0;   --text:#D6D7D5;      --text-dim:#9A9CA2;  --text-faint:#6B6E76;
  --amber:#EF9F27;     --amber-ink:#412402;
  --healthy:#1D9E75;   --healthy-lt:#5DCAA5; --down:#E24B4A;     --stopped:#888780;
  --log-info:#85B7EB;
  --hairline:rgba(255,255,255,.08);
  --hairline-strong:rgba(255,255,255,.16);
  --card-stroke:rgba(255,255,255,.10);
  --grid:rgba(255,255,255,.022);
  --amber-glow:rgba(239,159,39,.16);
  --shadow:0 1px 0 rgba(255,255,255,.03), 0 28px 64px -24px rgba(0,0,0,.66);
  color-scheme: dark;

  /* The app's own fonts: SF Mono for data, SF Pro for prose. No web fonts —
     renders identically to the native app on the audience's Macs. */
  --font-mono:ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  --font-sans:-apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
  --maxw:1120px;
  --r:12px;
}
/* system mode (no explicit data-theme) follows the OS */
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --bg:#F4F5F7;        --panel:#EBEDF0;     --card:#FFFFFF;
    --field:#FFFFFF;     --log-bg:#F6F7F9;
    --text-hi:#191A1D;   --text:#33353A;      --text-dim:#636770;  --text-faint:#9BA0A8;
    --amber-ink:#412402; --healthy-lt:#147B57; --log-info:#2D6CA8;
    --hairline:rgba(0,0,0,.08);
    --hairline-strong:rgba(0,0,0,.14);
    --card-stroke:rgba(0,0,0,.10);
    --grid:rgba(0,0,0,.03);
    --amber-glow:rgba(239,159,39,.14);
    --shadow:0 1px 0 rgba(0,0,0,.02), 0 28px 64px -28px rgba(20,25,35,.18);
    color-scheme: light;
  }
}
/* explicit choices win over the OS */
[data-theme="light"] {
  --bg:#F4F5F7;        --panel:#EBEDF0;     --card:#FFFFFF;
  --field:#FFFFFF;     --log-bg:#F6F7F9;
  --text-hi:#191A1D;   --text:#33353A;      --text-dim:#636770;  --text-faint:#9BA0A8;
  --amber-ink:#412402; --healthy-lt:#147B57; --log-info:#2D6CA8;
  --hairline:rgba(0,0,0,.08);
  --hairline-strong:rgba(0,0,0,.14);
  --card-stroke:rgba(0,0,0,.10);
  --grid:rgba(0,0,0,.03);
  --amber-glow:rgba(239,159,39,.14);
  --shadow:0 1px 0 rgba(0,0,0,.02), 0 28px 64px -28px rgba(20,25,35,.18);
  color-scheme: light;
}
[data-theme="dark"] { color-scheme: dark; } /* tokens already = :root defaults */

/* ---- Reset / base -------------------------------------------------------- */
*,*::before,*::after { box-sizing:border-box; }
* { margin:0; }
html { -webkit-text-size-adjust:100%; scroll-behavior:smooth; }
body {
  font-family:var(--font-sans);
  background:var(--bg);
  color:var(--text);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
a { color:inherit; text-decoration:none; }
img,svg { display:block; max-width:100%; }
button { font:inherit; color:inherit; background:none; border:none; cursor:pointer; }
:focus-visible { outline:2px solid var(--amber); outline-offset:2px; border-radius:4px; }

.mono { font-family:var(--font-mono); }
.amber { color:var(--amber); }
.wrap { width:100%; max-width:var(--maxw); margin-inline:auto; padding-inline:24px; }

/* ---- Type ---------------------------------------------------------------- */
/* Prose in system sans (like the app); data/labels/status stay mono. */
h1,h2,h3 { font-family:var(--font-sans); color:var(--text-hi); font-weight:600; letter-spacing:-.022em; line-height:1.07; }
.eyebrow {
  font-family:var(--font-mono); font-size:12px; font-weight:500;
  letter-spacing:.16em; text-transform:uppercase; color:var(--amber);
}
.lede { color:var(--text-dim); font-size:clamp(15px,1.6vw,18px); }

/* ---- Nav ----------------------------------------------------------------- */
.nav {
  position:sticky; top:0; z-index:50;
  background:color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter:saturate(140%) blur(12px);
  border-bottom:1px solid var(--hairline);
}
.nav__in { display:flex; align-items:center; gap:18px; height:60px; }
.brand { display:flex; align-items:center; gap:9px; font-family:var(--font-mono); font-weight:600; color:var(--text-hi); letter-spacing:-.02em; }
.brand svg { width:22px; height:22px; }
.brand__ic { width:24px; height:24px; display:block; flex:none; }

/* The real app icon, large, anchoring the hero. */
.hero__ic { width:108px; height:108px; display:block; margin:0 auto 22px; filter:drop-shadow(0 16px 36px rgba(0,0,0,.34)); }
.nav__links { display:flex; gap:22px; margin-left:8px; }
.nav__links a { font-family:var(--font-mono); font-size:13px; color:var(--text-dim); transition:color .2s; }
.nav__links a:hover { color:var(--text-hi); }
.nav__spacer { flex:1; }
.nav__right { display:flex; align-items:center; gap:12px; }

/* theme readout pill */
.theme-toggle {
  font-family:var(--font-mono); font-size:11px; font-weight:500; letter-spacing:.12em;
  color:var(--text-dim); padding:6px 10px; border:1px solid var(--hairline);
  border-radius:999px; display:inline-flex; align-items:center; gap:7px; transition:.2s;
}
.theme-toggle:hover { color:var(--text-hi); border-color:var(--hairline-strong); }
.theme-toggle .ind { width:7px; height:7px; border-radius:50%; background:var(--amber); }

/* ---- Buttons ------------------------------------------------------------- */
.btn { display:inline-flex; align-items:center; gap:9px; font-family:var(--font-mono); font-size:14px; font-weight:500; padding:11px 18px; border-radius:10px; transition:transform .15s, filter .2s, background .2s, border-color .2s; }
.btn:active { transform:translateY(1px); }
.btn-amber { background:var(--amber); color:var(--amber-ink); box-shadow:0 0 0 1px rgba(0,0,0,.04), 0 8px 24px -8px var(--amber-glow); }
.btn-amber:hover { filter:brightness(1.05); }
.btn-amber.sm { padding:8px 14px; font-size:13px; }
.btn-ghost { color:var(--text); border:1px solid var(--hairline-strong); }
.btn-ghost:hover { border-color:var(--amber); color:var(--text-hi); }
.btn svg { width:16px; height:16px; }

/* ---- Footer -------------------------------------------------------------- */
.site-footer { border-top:1px solid var(--hairline); margin-top:96px; padding:40px 0 56px; }
.site-footer__in { display:flex; flex-wrap:wrap; gap:18px 28px; align-items:center; }
.site-footer a { font-family:var(--font-mono); font-size:13px; color:var(--text-dim); transition:color .2s; }
.site-footer a:hover { color:var(--text-hi); }
.site-footer__brand { display:flex; align-items:center; gap:9px; font-family:var(--font-mono); font-weight:600; color:var(--text); }
.site-footer__brand svg { width:18px; height:18px; }
.site-footer__legal { width:100%; font-family:var(--font-mono); font-size:12px; color:var(--text-faint); line-height:1.7; padding-top:8px; border-top:1px solid var(--hairline); margin-top:6px; }
.site-footer__spacer { flex:1; }

/* ---- Reveal-on-scroll utility (used by sections) ------------------------- */
.reveal { opacity:0; transform:translateY(14px); transition:opacity .6s ease, transform .6s ease; }
.reveal.in { opacity:1; transform:none; }

/* ---- Reduced motion ------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior:auto; }
  *,*::before,*::after { animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; }
  .reveal { opacity:1; transform:none; }
}

/* ---- Sections / hero ----------------------------------------------------- */
.section { padding:76px 0; }
.section__head { max-width:60ch; margin-bottom:36px; }
.section__head h2 { font-size:clamp(22px,3vw,32px); margin:12px 0 12px; }

/* Hero: centered copy, then a big full-width screenshot below. */
.hero { padding:52px 0 18px; text-align:center; }
.hero__copy { max-width:760px; margin-inline:auto; }
.hero__h1 { font-size:clamp(30px,5vw,52px); }
.hero__h1 .l { display:block; }
.hero__h1 .l--dim { color:var(--text-dim); }
.hero__sub { margin:22px auto 30px; max-width:56ch; }
.hero__cta { display:flex; align-items:center; justify-content:center; gap:18px; flex-wrap:wrap; }
.hero__req { font-family:var(--font-mono); font-size:12.5px; color:var(--text-faint); letter-spacing:.01em; }
.hero__req b { color:var(--healthy-lt); font-weight:500; }
.appstore { display:inline-flex; align-items:center; gap:10px; }
.appstore svg { width:19px; height:19px; }
.appstore small { display:block; font-size:9.5px; line-height:1; opacity:.85; letter-spacing:.04em; }
.appstore b { display:block; font-size:14px; line-height:1.15; letter-spacing:-.01em; }

/* Wide screenshot band — breaks past the 1120 text column so app screens
   render close to their native size and stay legible. */
.shotband { max-width:1340px; margin:0 auto; padding-inline:24px; }
.shotband--narrow { max-width:500px; }   /* small near-square panels (e.g. Settings) */
.hero .shotband { margin-top:34px; }

/* ---- Problem (compare) --------------------------------------------------- */
.compare { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-top:6px; }
.compare__card { border:1px solid var(--card-stroke); border-radius:var(--r); padding:24px; background:var(--card); }
.compare__card h3 { font-family:var(--font-mono); font-size:11.5px; letter-spacing:.12em; text-transform:uppercase; color:var(--text-faint); margin-bottom:16px; font-weight:500; }
.compare__card.good h3 { color:var(--amber); }
.compare__list { list-style:none; display:flex; flex-direction:column; gap:12px; }
.compare__list li { display:flex; gap:11px; color:var(--text-dim); font-size:14px; line-height:1.5; }
.compare__list li::before { content:""; width:6px; height:6px; border-radius:50%; margin-top:8px; flex:none; background:var(--text-faint); }
.compare__card.good li { color:var(--text); }
.compare__card.good li::before { background:var(--healthy); }

/* ---- Features ------------------------------------------------------------ */
.features { display:grid; grid-template-columns:repeat(auto-fit, minmax(256px,1fr)); gap:14px; }
.feature { border:1px solid var(--card-stroke); border-radius:var(--r); padding:22px; background:var(--card); transition:border-color .2s, transform .2s; }
.feature:hover { border-color:var(--hairline-strong); transform:translateY(-2px); }
.feature__ic { width:34px; height:34px; border-radius:9px; display:grid; place-items:center; background:var(--amber-glow); color:var(--amber); margin-bottom:15px; }
.feature__ic svg { width:18px; height:18px; }
.feature h3 { font-family:var(--font-mono); font-size:14px; font-weight:500; letter-spacing:0; margin-bottom:8px; color:var(--text-hi); }
.feature p { color:var(--text-dim); font-size:13.5px; line-height:1.55; }

/* ---- Showcase ------------------------------------------------------------ */
.showcase { display:flex; flex-direction:column; align-items:center; gap:18px; }
.showcase .win { width:100%; max-width:840px; }
.showcase__cap { font-family:var(--font-mono); font-size:13px; color:var(--text-dim); text-align:center; }

/* ---- Pricing band -------------------------------------------------------- */
.band { border-block:1px solid var(--hairline); background:color-mix(in srgb, var(--amber) 6%, transparent); }
.band__in { text-align:center; padding:66px 24px; max-width:660px; margin:0 auto; }
.band h2 { font-size:clamp(22px,3vw,31px); margin:14px 0 12px; }
.band p { color:var(--text-dim); margin-bottom:26px; }

/* ---- FAQ ----------------------------------------------------------------- */
.faq { max-width:760px; }
.faq details { border-top:1px solid var(--hairline); }
.faq details:last-of-type { border-bottom:1px solid var(--hairline); }
.faq summary { list-style:none; cursor:pointer; padding:18px 2px; display:flex; align-items:center; gap:12px; font-family:var(--font-mono); font-size:14.5px; color:var(--text-hi); }
.faq summary::-webkit-details-marker { display:none; }
.faq summary::after { content:"+"; margin-left:auto; color:var(--text-faint); font-size:18px; line-height:1; }
.faq details[open] summary::after { content:"\2013"; }
.faq__a { color:var(--text-dim); padding:0 2px 20px; font-size:14.5px; line-height:1.62; max-width:66ch; }

@media (max-width:680px) {
  .compare { grid-template-columns:1fr; }
}

/* ---- Real screenshots (theme-matched: dark shot in dark, light in light) -- */
.shot img { display:block; width:100%; height:auto; }
.shot .light { display:none; }
[data-theme="light"] .shot .dark { display:none; }
[data-theme="light"] .shot .light { display:block; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .shot .dark { display:none; }
  :root:not([data-theme]) .shot .light { display:block; }
}
/* Window captures already carry chrome + a transparent drop shadow; region
   captures (the sheets) are flat rects → round + lift them to match. */
.shot--framed img { border-radius:12px; box-shadow:var(--shadow); border:1px solid var(--card-stroke); }

/* ---- Product tour (full-width screens, captions zig-zag left/right) ------- */
.tour { display:flex; flex-direction:column; gap:92px; }
.tour__copy { margin-bottom:24px; }
.tour__copy h3 { font-size:clamp(21px,2.8vw,30px); margin:12px 0 0; }
.tour__copy > * { max-width:60ch; }
.tour__copy p { color:var(--text-dim); margin-top:14px; }
.tour__item:nth-child(odd)  .tour__copy { text-align:left; }
.tour__item:nth-child(odd)  .tour__copy > * { margin-left:0; margin-right:auto; }
.tour__item:nth-child(even) .tour__copy { text-align:right; }
.tour__item:nth-child(even) .tour__copy > * { margin-left:auto; margin-right:0; }
@media (max-width:680px) {
  .tour { gap:64px; }
  .tour__item .tour__copy { text-align:left; }
  .tour__item .tour__copy > * { margin-left:0; margin-right:auto; }
}

/* ---- Prose pages (privacy / support) ------------------------------------- */
.page { max-width:720px; padding:60px 0 8px; }
.page h1 { font-size:clamp(27px,4vw,38px); margin-bottom:10px; }
.page__meta { font-family:var(--font-mono); font-size:12.5px; color:var(--text-faint); margin-bottom:34px; }
.page h2 { font-size:18px; margin:34px 0 10px; }
.page p { color:var(--text-dim); margin-bottom:14px; max-width:66ch; }
.page a.link { color:var(--amber); }
.page a.link:hover { text-decoration:underline; }
.page ul { color:var(--text-dim); margin:0 0 14px; padding-left:20px; }
.page li { margin-bottom:8px; max-width:64ch; }

/* ---- Responsive nav ------------------------------------------------------ */
@media (max-width:720px) {
  .nav__links { display:none; }
}
