/* One stylesheet, no framework, system fonts only. Mobile-first; light and dark follow the device setting.
   Palette carried over from the previous holding page: ink #171717, amber #8F5606 (5.2:1 on the hero tint, 5.7:1 on the page;
   #A16207 was 4.3:1 on the hero tint, below WCAG AA). Semantic tokens only; components never use raw colours. */
:root {
  --bg: #FAFAF7; --surface: #FFFFFF; --ink: #171717; --muted: #4A4A4A; --line: #E4E2DC;
  --accent: #8F5606; --on-accent: #FFFFFF; --focus: #8F5606; --hero: #F2EFE7;
  --r: 16px; --wrap: 68rem;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Avenir Next", Avenir, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #121212; --surface: #1C1C1C; --ink: #EDEDED; --muted: #B5B5B5; --line: #2E2E2E;
    --accent: #E3A54A; --on-accent: #121212; --focus: #E3A54A; --hero: #181818; }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 7vw, 3.6rem); font-weight: 650; }
h2 { font-size: clamp(1.5rem, 4.2vw, 2rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; max-width: 40rem; }
a { color: var(--accent); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.skip { position: absolute; left: -999px; top: .5rem; background: var(--ink); color: var(--bg); padding: .6rem 1rem; border-radius: 8px; z-index: 2; }
.skip:focus { left: .5rem; }

/* header */
.top { border-bottom: 1px solid var(--line); background: var(--bg); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem;
  padding-top: env(safe-area-inset-top); }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); text-decoration: none;
  font: 600 1.05rem/1 var(--display); letter-spacing: .16em; text-transform: uppercase; min-height: 44px; }

nav { display: flex; gap: .25rem; }
nav a { color: var(--ink); text-decoration: none; font-weight: 500; padding: .6rem .7rem; border-radius: 10px; min-height: 44px; display: inline-flex; align-items: center; }
nav a:hover { background: var(--hero); }
nav a[aria-current="page"] { color: var(--accent); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .45em; }

/* sections */
.hero { background: var(--hero); border-bottom: 1px solid var(--line); padding: 3.5rem 0 3rem; }
.eyebrow { color: var(--accent); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .85rem; margin-bottom: .9rem; }
.lead { font-size: clamp(1.1rem, 2.6vw, 1.3rem); color: var(--muted); max-width: 38rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 1.4rem; border-radius: 999px;
  background: var(--ink); color: var(--bg); text-decoration: none; font-weight: 600; margin: .5rem .5rem 0 0; }
.btn:hover { background: var(--accent); color: var(--on-accent); }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); }
.section { padding: 3rem 0; }
.section + .section { border-top: 1px solid var(--line); }
.note { color: var(--muted); }

/* app card: real screenshot of the live app + text */
.app { display: grid; gap: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 1.5rem 1.25rem; margin: 1.5rem 0 1rem; }
.shot { margin: 0 auto; width: 100%; max-width: 15rem; }
.shot img { width: 100%; border-radius: 22px; border: 1px solid var(--line); box-shadow: 0 12px 32px rgba(0,0,0,.12); }
.app-name { display: flex; align-items: center; gap: .65rem; margin: 0 0 .25rem; }
.app-name img { width: 30px; height: 42px; }
.app-name h2, .app-name h3 { margin: 0; font-size: 1.5rem; }
.live { display: inline-block; font-size: .85rem; font-weight: 600; color: var(--accent); margin-bottom: .8rem; }
.app-text p:not(.app-name):not(.live) { color: var(--muted); }

/* facts table */
.facts { display: grid; grid-template-columns: 1fr; gap: 0; margin: 1.5rem 0; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--surface); overflow: hidden; max-width: 44rem; }
.facts div { padding: .9rem 1.1rem; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { font-size: .85rem; color: var(--muted); }
.facts dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.prose h2 { margin-top: 2rem; font-size: 1.35rem; }
.prose ul { padding-left: 1.2rem; max-width: 40rem; }
.prose li { margin-bottom: .4rem; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 2rem 0 calc(2rem + env(safe-area-inset-bottom)); color: var(--muted); font-size: .9rem; }
.foot p { margin: 0 0 .4rem; max-width: none; }
.foot strong { color: var(--ink); }

@media (min-width: 48rem) {
  .hero { padding: 5.5rem 0 4.5rem; }
  .section { padding: 4.5rem 0; }
  .app { grid-template-columns: 17rem 1fr; gap: 3rem; align-items: center; padding: 2.5rem; }
  .shot { max-width: none; }
  .facts div { display: grid; grid-template-columns: 12rem 1fr; gap: 1rem; }
  .facts dt { font-size: .95rem; }
}
@media (prefers-reduced-motion: no-preference) { .btn, nav a { transition: background-color .2s ease, color .2s ease, border-color .2s ease; } }
