/* Layout: a left-aligned spec sheet for an independent Apple developer.
   Real app icons carry the color; everything else stays cool and quiet. */
:root {
  --bg: #f3f5f8;
  --surface: #ffffff;
  --ink: #10141b;
  --muted: #586274;
  --line: #dce1e8;
  --accent: #1d4ed0;
  --accent-ink: #ffffff;
  --accent-soft: #e5ebfb;
  --app: var(--accent);

  --font-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Instrument Sans", -apple-system, "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.625rem;
  --step-3: clamp(1.9rem, 1.4rem + 2vw, 2.6rem);
  --step-4: clamp(2.4rem, 1.5rem + 4vw, 4.4rem);

  --wrap: 72rem;
  --radius: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c0f14;
    --surface: #141922;
    --ink: #edf0f5;
    --muted: #9aa4b4;
    --line: #242b36;
    --accent: #7f9cff;
    --accent-ink: #0c0f14;
    --accent-soft: #1a2342;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c0f14;
  --surface: #141922;
  --ink: #edf0f5;
  --muted: #9aa4b4;
  --line: #242b36;
  --accent: #7f9cff;
  --accent-ink: #0c0f14;
  --accent-soft: #1a2342;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--step-0)/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; margin: 0; font-weight: 650; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); letter-spacing: -0.01em; font-weight: 600; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }
.eyebrow { font: 500 var(--step--1)/1.4 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.lead { font-size: var(--step-1); color: var(--muted); max-width: 38em; }
.measure { max-width: 40em; }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); font-size: var(--step--1); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.brand { display: flex; align-items: baseline; gap: 8px; color: var(--ink); text-decoration: none; font: 700 1.25rem/1 var(--font-display); letter-spacing: -0.02em; }
.brand small { font: 500 0.7rem/1 var(--font-mono); letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: clamp(12px, 2.5vw, 28px); }
.nav a { color: var(--ink); text-decoration: none; font-size: var(--step--1); font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); }
/* The header button keeps its own text color on hover and on the contact page, where the nav link rules would turn it blue. */
.nav .btn, .nav .btn:hover, .nav .btn[aria-current="page"] { color: var(--accent-ink); }
@media (max-width: 640px) { .nav .hide-sm { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font: 600 var(--step--1)/1 var(--font-body); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, background-color .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink); }
.nav .btn { min-height: 36px; padding: 0 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Sections */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 12px; margin-bottom: clamp(28px, 4vw, 48px); max-width: 44em; }

/* Hero */
.hero { padding-block: clamp(48px, 8vw, 112px) clamp(48px, 7vw, 96px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero-copy { display: grid; gap: 24px; min-width: 0; }
.hero h1 span { color: var(--accent); }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 24px; padding-top: 8px; border-top: 1px solid var(--line); }
.hero-facts div { display: grid; }
.hero-facts strong { font: 650 var(--step-2)/1.1 var(--font-display); }
.hero-facts span { font-size: var(--step--1); color: var(--muted); }
.icon-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 3vw, 32px); padding: clamp(20px, 3vw, 36px); border-radius: 36px; background: var(--surface); border: 1px solid var(--line); }
.icon-grid a { display: grid; gap: 8px; justify-items: center; text-decoration: none; color: var(--ink); font-size: 0.8rem; font-weight: 500; text-align: center; }
.icon-grid a:hover img { transform: translateY(-3px) scale(1.03); }
.icon-grid img { transition: transform .2s ease; }
@media (max-width: 820px) { .hero .wrap { grid-template-columns: 1fr; } .icon-grid { max-width: 420px; } }

.app-icon { border-radius: 22.5%; box-shadow: 0 1px 2px rgb(0 0 0 / .12), 0 8px 24px -8px rgb(0 0 0 / .25); background: var(--surface); width: 100%; aspect-ratio: 1; object-fit: cover; }

/* Capabilities */
.cap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cap { background: var(--surface); padding: 28px; display: grid; gap: 10px; align-content: start; }
.cap p { color: var(--muted); }
.proof { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; font-size: var(--step--1); color: var(--muted); }
.proof a { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); text-decoration: none; font-weight: 500; }
.proof a:hover { color: var(--accent); }
.proof img { width: 22px; height: 22px; border-radius: 22.5%; }

/* App cards */
.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr)); gap: 20px; }
.app-card { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 18px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: border-color .15s ease, transform .15s ease; }
.app-card:hover { border-color: color-mix(in srgb, var(--app) 60%, var(--line)); transform: translateY(-2px); }
.app-card .body { display: grid; gap: 6px; min-width: 0; align-content: start; }
.app-card p { color: var(--muted); font-size: var(--step--1); line-height: 1.5; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font: 500 0.72rem/1 var(--font-mono); letter-spacing: 0.03em; padding: 5px 8px; border-radius: 6px; background: var(--accent-soft); color: var(--ink); white-space: nowrap; }
.spec { font: 400 0.78rem/1.5 var(--font-mono); color: var(--muted); }
.note { margin-top: 24px; font-size: var(--step--1); color: var(--muted); }

/* Experience */
.split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 72px); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.roles { list-style: none; display: grid; }
.roles li { display: grid; grid-template-columns: minmax(7.5rem, 10rem) minmax(0, 1fr); gap: 4px 20px; padding-block: 16px; border-top: 1px solid var(--line); }
.roles li:last-child { border-bottom: 1px solid var(--line); }
.roles strong { font: 650 var(--step-1)/1.2 var(--font-display); letter-spacing: -0.01em; }
.roles .role { font-weight: 600; font-size: var(--step--1); }
.roles p { color: var(--muted); font-size: var(--step--1); line-height: 1.5; }
@media (max-width: 520px) { .roles li { grid-template-columns: 1fr; } }
.patents { list-style: none; display: grid; gap: 0; counter-reset: pat; }
.patents li { padding: 12px 0 12px 2.6rem; border-top: 1px solid var(--line); position: relative; font-size: var(--step--1); line-height: 1.45; }
.patents li::before { counter-increment: pat; content: counter(pat, decimal-leading-zero); position: absolute; left: 0; top: 13px; font: 500 0.75rem/1.4 var(--font-mono); color: var(--accent); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); display: grid; gap: 16px; align-content: start; }

/* Process */
.steps { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); gap: 28px 32px; counter-reset: step; }
.steps li { display: grid; gap: 8px; align-content: start; padding-top: 16px; border-top: 2px solid var(--ink); }
.steps li::before { counter-increment: step; content: "Step " counter(step); font: 500 0.75rem/1 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.steps p { color: var(--muted); font-size: var(--step--1); }

/* CTA */
.cta { background: var(--ink); color: var(--bg); border-radius: 28px; padding: clamp(32px, 6vw, 72px); display: grid; gap: 20px; justify-items: start; }
.cta p { color: color-mix(in srgb, var(--bg) 75%, var(--ink)); max-width: 36em; font-size: var(--step-1); }
.cta .btn { background: var(--bg); color: var(--ink); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 40px; font-size: var(--step--1); color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 40px; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

/* App page */
.app-hero { padding-block: clamp(40px, 6vw, 80px); background: linear-gradient(180deg, color-mix(in srgb, var(--app) 14%, var(--bg)), var(--bg)); }
.app-hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; }
.app-title { display: grid; grid-template-columns: clamp(88px, 14vw, 132px) minmax(0, 1fr); gap: clamp(18px, 3vw, 32px); align-items: center; }
.app-title .text { display: grid; gap: 10px; min-width: 0; }
.app-title h1 { font-size: clamp(2.2rem, 1.6rem + 3vw, 3.6rem); }
.app-hero .actions { margin-top: 8px; }
.subnav { display: flex; flex-wrap: wrap; gap: 6px; }
.subnav a { padding: 7px 14px; border-radius: 999px; font-size: var(--step--1); font-weight: 500; color: var(--ink); text-decoration: none; border: 1px solid var(--line); background: var(--surface); }
.subnav a[aria-current="page"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
@media (max-width: 760px) { .app-hero .wrap { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .app-title { grid-template-columns: 1fr; } .app-title > .app-icon { width: 88px; } }
.shots { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 230px); gap: 18px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x mandatory; }
.shots img { border-radius: 18px; border: 1px solid var(--line); scroll-snap-align: start; background: var(--surface); }
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); gap: 36px 40px; }
.feature { display: grid; gap: 10px; align-content: start; }
.feature ul { list-style: none; display: grid; gap: 8px; }
.feature li { padding-left: 18px; position: relative; color: var(--muted); font-size: var(--step--1); line-height: 1.5; }
.feature li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 7px; height: 7px; border-radius: 2px; background: var(--app); }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 10rem), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.facts div { background: var(--surface); padding: 16px 18px; display: grid; gap: 4px; }
.facts dt { font: 500 0.72rem/1 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }

/* Long-form pages: privacy, support */
.doc { display: grid; gap: 32px; max-width: 44rem; }
.doc section { display: grid; gap: 8px; }
.doc h2 { font-size: var(--step-1); letter-spacing: -0.01em; }
.doc p { color: var(--muted); }
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 32px 18px 0; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font: 400 1.5rem/1 var(--font-body); color: var(--muted); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding-bottom: 18px; color: var(--muted); max-width: 40em; }

/* Forms */
.form { display: grid; gap: 18px; max-width: 40rem; }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-weight: 600; font-size: var(--step--1); }
.field .hint { font-size: 0.8rem; color: var(--muted); font-weight: 400; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 18px; }
input[type="text"], input[type="email"], select, textarea { width: 100%; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
textarea { min-height: 9rem; resize: vertical; }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.checks label { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-weight: 500; font-size: var(--step--1); cursor: pointer; }
.checks label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.checks input { accent-color: var(--accent); margin: 0; }
.form-status { font-size: var(--step--1); color: var(--muted); }
.hp { position: absolute; left: -9999px; }
