/* The app's own fonts (SIL OFL, licenses beside them), served from this site so no third party is contacted. */
@font-face { font-family: "Fraunces"; src: url(fonts/fraunces-600.ttf) format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url(fonts/jakarta-400.ttf) format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url(fonts/jakarta-600.ttf) format("truetype"); font-weight: 600; font-display: swap; }

/* Layout: a two-column hero (claim left, product right), then single-column sections on a cream page. Colors are the app's theme tokens. */
:root {
  color-scheme: light;
  --bg: #fdfbf7;
  --surface: #ffffff;
  --border: #e8e4dc;
  --text: #2d2a26;
  --muted: #6b6560;
  --green: #2d7a4f;
  --on-green: #ffffff;
  --violet: #7c4dff;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #111311;
    --surface: #1b1e1b;
    --border: #2a2e2a;
    --text: #ecedea;
    --muted: #a3a9a3;
    --green: #4caf7a;
    --on-green: #0d1a12;
    --violet: #a78bfa;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--sans);
}

a { color: var(--green); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

header.top { display: flex; align-items: center; justify-content: space-between; padding-block: 20px; }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font: 600 22px/1 var(--serif);
}

nav { display: flex; gap: 20px; }
nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
nav a:hover { color: var(--text); }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; text-wrap: balance; }

.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; padding-block: 48px 72px; }
.hero > div { min-width: 0; }
.hero h1 { font-size: clamp(38px, 5.6vw, 60px); margin: 16px 0; }
.hero p.lead { color: var(--muted); font-size: 19px; max-width: 34em; margin: 0; }

.pill {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--green);
  font-size: 14px;
}

.button {
  display: inline-block;
  margin-top: 24px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--green);
  color: var(--on-green);
  font-weight: 600;
  text-decoration: none;
}

/* A mailto button does nothing on a desktop without a mail app, so the address is also shown as text. */
.note { color: var(--muted); font-size: 15px; margin: 12px 0 0; }

.shots { display: flex; gap: 20px; justify-content: center; align-items: flex-start; }

/* The app draws a light band behind the status bar in dark mode (todos/320), so the frame crops it off the top. */
.shot {
  flex: 0 0 auto;
  width: min(240px, 44vw);
  max-width: 100%;
  aspect-ratio: 600 / 1190;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: #000;
  box-shadow: 0 18px 40px -24px rgb(45 42 38 / 0.45);
}
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: bottom; display: block; }
.hero .shot:nth-child(2) { margin-top: 48px; }

section { padding-block: 56px; border-top: 1px solid var(--border); }
section h2 { font-size: 34px; margin: 0 0 8px; }
section p.sub { color: var(--muted); margin: 0 0 32px; max-width: 40em; }

/* The two AI features get cards; the rest are a plain list, so the cards mean something. */
.ai-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 40px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 22px; }
.card h3 { font-size: 21px; margin: 0 0 6px; color: var(--violet); }
.card p { color: var(--muted); margin: 0; font-size: 16px; }

.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.facts li { border-top: 2px solid var(--green); padding-top: 12px; }
.facts h3 { font-size: 18px; margin: 0 0 4px; }
.facts p { color: var(--muted); margin: 0; font-size: 15px; }

.gallery { gap: 24px; }
.gallery .shot { width: min(260px, 80vw); }

.pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; }
.pair h2 { font-size: 28px; }
.pair p { color: var(--muted); margin: 0 0 12px; }

footer { border-top: 1px solid var(--border); padding-block: 28px 40px; color: var(--muted); font-size: 15px; }
footer a { color: var(--muted); }
footer .row { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }

/* Legal pages */
.doc { max-width: 720px; padding-bottom: 48px; }
.doc h1 { font-size: 42px; margin: 24px 0 4px; }
.doc h2 { font-size: 24px; margin: 36px 0 8px; }
.doc .updated { color: var(--muted); margin: 0 0 24px; }
.doc li { margin-bottom: 6px; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding-top: 24px; }
  .hero .shot { width: min(280px, 72vw); }
  .hero .shot:nth-child(2) { display: none; }
  .ai-pair { grid-template-columns: 1fr; }
  nav { gap: 14px; }
  /* The gallery scrolls sideways inside its own box; the page itself never does. */
  .gallery { justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; }
  .gallery .shot { width: 72vw; scroll-snap-align: center; }
}
