/* Layout: a deep green "market" cover like the app icon, then the list itself: one 1120px column on a warm paper
   ground, sections separated by space and hairlines rather than boxes. Small facts are set in mono, like a receipt.
   System fonts only (SF Pro Rounded for headings on Apple devices), so there's nothing to download. */

:root {
  --paper: #F7F5EE;
  --card: #FFFFFF;
  --ink: #14261B;
  --muted: #56655B;
  --line: #E2DDD0;
  --accent: #1E7F45;
  --lemon: #946500;
  --tomato: #D2472A;
  --shadow: 0 1px 2px rgba(20, 38, 27, 0.06), 0 8px 24px rgba(20, 38, 27, 0.08);
  /* The cover is green in both themes. */
  --cover: #0C3B22;
  --cover-2: #1E7F45;
  --cover-3: #34B26A;
  --cover-ink: #FFFFFF;
  --cover-muted: rgba(255, 255, 255, 0.8);
  --lemon-bright: #FFD86B;
  --bezel: #0E0F13;

  --font-display: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(1.9rem, 1.3rem + 2.4vw, 2.8rem);
  --step-4: clamp(2.5rem, 1.4rem + 4.6vw, 4.4rem);
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0D1811; --card: #152219; --ink: #E8F1EA; --muted: #A2B4A7; --line: #26382C;
    --accent: #5BD08A; --lemon: #FFD86B; --tomato: #FF7A5C;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0D1811; --card: #152219; --ink: #E8F1EA; --muted: #A2B4A7; --line: #26382C;
  --accent: #5BD08A; --lemon: #FFD86B; --tomato: #FF7A5C;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--step-0)/1.6 var(--font-body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 0.18em; }
a:focus-visible, summary:focus-visible, .gallery:focus-visible, button:focus-visible { outline: 3px solid var(--lemon-bright); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance; margin: 0; }
h2 { font-size: var(--step-3); font-weight: 800; }
h3 { font-size: var(--step-1); font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
code { font-family: var(--font-mono); font-size: 0.92em; }
.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 820px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); color: var(--ink); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
.eyebrow { font: 600 var(--step--1)/1.2 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--lemon); }
.hl { color: var(--lemon-bright); }

/* Header: part of the cover. */
.top { background: var(--cover); color: var(--cover-ink); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font: 800 1.1rem/1 var(--font-display); letter-spacing: -0.01em; }
.brand img { border-radius: 22%; }
.nav { display: flex; gap: clamp(12px, 2.4vw, 28px); flex-wrap: wrap; justify-content: flex-end; }
.nav a { color: var(--cover-muted); text-decoration: none; font-size: var(--step--1); font-weight: 600; }
.nav a:hover { color: var(--cover-ink); }
@media (max-width: 620px) { .nav a:not(:last-child) { display: none; } }

/* The cover. */
.hero { background: radial-gradient(110% 90% at 15% 0%, var(--cover-3) 0%, var(--cover-2) 40%, var(--cover) 100%); color: var(--cover-ink); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(32px, 6vw, 72px); align-items: center; padding-block: clamp(40px, 7vw, 88px) 0; }
.hero .eyebrow { color: var(--lemon-bright); }
.hero h1 { font-size: var(--step-4); font-weight: 800; margin-top: 14px; }
.lede { margin-top: 22px; font-size: var(--step-1); line-height: 1.5; color: var(--cover-muted); max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 30px; }
.badge img { height: 52px; width: auto; }
.badge .on-light { display: none; }
.soon { display: inline-block; padding: 12px 18px; border-radius: 12px; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.3); font-weight: 600; }
.facts { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font: 500 var(--step--1)/1.3 var(--font-mono); color: var(--cover-muted); }
.facts li::before { content: "✓ "; color: var(--lemon-bright); }
.hero-copy { padding-bottom: clamp(40px, 7vw, 88px); }
.phone { margin: 0; justify-self: center; width: min(360px, 100%); padding: 12px; background: var(--bezel); border-radius: 56px 56px 0 0;
         box-shadow: 0 0 0 3px #2A2D36, 0 40px 90px rgba(0, 0, 0, 0.45); align-self: end; max-height: 640px; overflow: hidden; }
.phone img { border-radius: 44px 44px 0 0; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 0; }
  .phone { width: min(320px, 86%); max-height: 460px; }
}

/* Sections. */
.section { padding-block: clamp(56px, 9vw, 112px); }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 14px; max-width: 44rem; }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: var(--step-1); line-height: 1.55; }

/* Features. */
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: min(260px, 64vw); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
           margin-top: 40px; padding-bottom: 14px; }
.gallery img { scroll-snap-align: start; border-radius: 22px; box-shadow: var(--shadow); }
.feature-list { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 40px; }
.feature-list h3::before { content: ""; display: inline-block; width: 0.8em; height: 0.8em; margin-right: 0.45em; vertical-align: -0.05em;
                           border-radius: 50%; border: 2.5px solid var(--accent); }
.feature-list li:nth-child(3n + 1) h3::before { background: var(--accent); box-shadow: inset 0 0 0 2px var(--card); }
.feature-list p { color: var(--muted); margin-top: 8px; }
.feature-list .tag { font: 600 0.7rem/1 var(--font-mono); letter-spacing: 0.06em; color: var(--lemon); border: 1px solid currentColor; border-radius: 999px; padding: 3px 7px; margin-left: 6px; vertical-align: 0.2em; }
@media (max-width: 860px) { .feature-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .feature-list { grid-template-columns: 1fr; } }

/* iPad. */
.ipad-grid { display: grid; gap: 40px; }
.tablet { margin: 0; padding: clamp(8px, 1.4vw, 16px); background: var(--bezel); border-radius: clamp(20px, 3vw, 40px); box-shadow: 0 0 0 3px #2A2D36, var(--shadow); }
.tablet img { border-radius: clamp(12px, 2vw, 26px); }

/* Plans. */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: clamp(22px, 3vw, 36px); display: grid; align-content: start; gap: 12px; }
.plan-plus { border: 2px solid var(--accent); }
.price { font: 600 var(--step-2)/1.1 var(--font-display); }
.price span { font: 400 var(--step-0)/1 var(--font-body); color: var(--muted); }
.plan ul { margin: 8px 0 0; padding-left: 1.2em; display: grid; gap: 10px; color: var(--muted); }
.plan strong { color: var(--ink); }
.plans-note { margin-top: 20px; color: var(--muted); font-size: var(--step--1); }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }

/* API. */
.api-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.terminal { margin: 0; background: #0F1712; color: #D7E8DC; border-radius: 18px; padding: 22px 24px; box-shadow: var(--shadow); overflow-x: auto;
            font: 400 0.84rem/1.7 var(--font-mono); white-space: pre; }
.terminal .c { color: #7D9A86; }
.terminal .k { color: #FFD86B; }
@media (max-width: 860px) { .api-grid { grid-template-columns: 1fr; } }

/* Privacy. */
.privacy-list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 40px; }
.privacy-list li { padding-left: 1.6em; position: relative; color: var(--muted); }
.privacy-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.privacy-list strong { color: var(--ink); }
@media (max-width: 760px) { .privacy-list { grid-template-columns: 1fr; } }

/* FAQ. */
.faq details { border-bottom: 1px solid var(--line); padding-block: 18px; }
.faq details:first-of-type { margin-top: 28px; border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; font: 700 var(--step-1)/1.3 var(--font-display); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 10px; color: var(--muted); max-width: 65ch; }

/* Documents: privacy, support, press. */
.doc-head { background: var(--cover); color: var(--cover-ink); padding-block: clamp(36px, 6vw, 64px); }
.doc-head h1 { font-size: var(--step-4); font-weight: 800; }
.doc-head p { color: var(--cover-muted); margin-top: 12px; font-family: var(--font-mono); font-size: var(--step--1); }
.doc { padding-block: clamp(36px, 6vw, 72px); max-width: 760px; }
.doc h2 { font-size: var(--step-2); margin-top: 44px; }
.doc h3 { margin-top: 28px; }
.doc p, .doc ul, .doc table { margin-top: 14px; }
.doc ul { padding-left: 1.2em; display: grid; gap: 6px; }
.doc table { width: 100%; border-collapse: collapse; font-size: var(--step--1); }
.doc th, .doc td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { font-weight: 600; width: 30%; }
.table-scroll { overflow-x: auto; }
.contact { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 16px; padding: 18px 20px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.contact-card { margin-top: 16px; padding: 18px 20px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.contact-card h3 { margin-top: 0; }
.contact code { font: 500 var(--step-1)/1.2 var(--font-mono); user-select: all; }
.contact button { font: 600 var(--step--1)/1 var(--font-body); padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; }
.downloads { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-top: 18px; }
.downloads a { display: grid; gap: 8px; padding: 18px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; text-decoration: none; color: var(--ink); font-weight: 600; }
.downloads a span { color: var(--muted); font-weight: 400; font-size: var(--step--1); }

/* Footer. */
.foot { border-top: 1px solid var(--line); padding-block: 48px 36px; color: var(--muted); font-size: var(--step--1); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; }
.foot .brand { color: var(--ink); }
.foot-about p { margin-top: 14px; max-width: 46ch; }
.foot-links { display: grid; gap: 10px; justify-content: end; align-content: start; }
.foot-links a { color: var(--ink); text-decoration: none; font-weight: 600; }
.receipt { margin-top: 36px; padding-block: 14px; border-block: 1.5px dashed var(--line); font: 400 clamp(0.62rem, 1.5vw, 0.85rem)/1.7 var(--font-mono);
           letter-spacing: 0.08em; color: var(--muted); overflow: hidden; white-space: nowrap; display: grid; }
.fine { margin-top: 18px; font-size: 0.78rem; opacity: 0.8; }
@media (max-width: 620px) { .foot-grid { grid-template-columns: 1fr; } .foot-links { justify-content: start; } }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
