/* Fonts are self-hosted (from @fontsource, SIL OFL 1.1). No network fetch at build or runtime.
   One family, Jost: the brand's banner face. */
@font-face { font-family: "Jost"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/jost-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/jost-latin-500-normal.woff2") format("woff2"); }

/* Two colours that serve as each other's ink: the brand's dark ground and its gold.
   Text on dark is a low-chroma bone, not gold: gold is for whole fields, the Δ and the action. */
:root {
  --bg: #1a1612;
  --surface: #241e18;        /* one tone step up: the card, the panel */
  --ink: #e8e6e1;            /* a low-chroma bone: all running text on dark */
  --muted: #b3a794;          /* secondary text on dark surfaces only, never on gold */
  --gold: #f2b134;           /* the brand gold: fields, the Δ, the action */
  --gold-tone: #dfa02c;      /* one tone off the gold field */
  --gold-ink: #1a1612;       /* ink on gold */

  --font: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;

  /* Five steps, far apart */
  --step-small: 0.875rem;
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.375rem, 1.15rem + 0.8vw, 2rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-display: clamp(4.25rem, 1.2rem + 12vw, 13rem);

  --margin: clamp(0.75rem, 1.6vw, 1.5rem);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-reveal: 800ms;

  /* Δ, Delta's mark: the triangle beside the product name */
  --delta: polygon(50% 0, 100% 100%, 0 100%);
  /* The button takes Δ's slope on its right edge */
  --slope: polygon(0 0, calc(100% - 1.25rem) 0, 100% 100%, 0 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--step-body)/1.5 var(--font);
  letter-spacing: 0.005em;          /* light on dark reads heavy: a hair of tracking */
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 500; text-wrap: balance; hyphens: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
::selection { background: var(--gold); color: var(--gold-ink); }

.skip { position: absolute; left: var(--margin); top: -5rem; z-index: 20; padding: 0.75rem 1rem; background: var(--gold); color: var(--gold-ink); text-decoration: none; font-weight: 500; }
.skip:focus { top: var(--margin); }

/* The one action: flat, the Δ's slope on its right edge */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.25rem; padding: 0.875rem 2.5rem 0.875rem 1.5rem;
  clip-path: var(--slope);
  background: var(--gold); color: var(--gold-ink);
  font: 500 var(--step-body)/1.1 var(--font); letter-spacing: 0;
  text-decoration: none;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
}
.button:hover { background: #f6c055; }
.button:active { transform: scale(0.97); }

/* ── 1. The company: the dominant thing on the page ─────────────────────── */
.company {
  min-height: 74svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(3rem, 8vh, 6rem) clamp(1.25rem, 6vw, 6rem) clamp(2.5rem, 6vh, 4.5rem);
}
.falcon { width: clamp(4.5rem, 3rem + 5vw, 8rem); margin-bottom: clamp(1.25rem, 3vh, 2rem); }
.wordmark {
  font-size: var(--step-display); line-height: 0.88;
  letter-spacing: 0.06em;            /* capitals want open tracking, even this large */
  margin-left: -0.04em;              /* optical alignment with the falcon and the line below */
}
.tagline {
  margin-top: clamp(1.25rem, 3vh, 2rem);
  font-size: var(--step-lead); line-height: 1.25; letter-spacing: -0.01em;
  max-width: 30ch; text-wrap: balance;
}

/* ── 2. The product: secondary, but clear ───────────────────────────────── */
.product { padding: 0 clamp(1.25rem, 6vw, 6rem); }
.product-panel {
  max-width: 52rem;
  background: var(--surface);
  padding: clamp(2rem, 5vw, 3.5rem);
}
.introducing { font-size: var(--step-small); color: var(--muted); }
.product-name {
  display: flex; align-items: baseline; gap: 0.3em;
  margin-top: 0.75rem;
  font-size: var(--step-head); line-height: 1; letter-spacing: -0.03em;
}
.product-name .tri { width: 0.5em; height: 0.43em; background: var(--gold); clip-path: var(--delta); flex: none; }
.product-sub { margin-top: 1rem; font-size: var(--step-lead); line-height: 1.3; letter-spacing: -0.01em; max-width: 32ch; text-wrap: pretty; }
.product .button { margin-top: clamp(1.75rem, 4vw, 2.5rem); }
.review { margin-top: 1.5rem; max-width: 52ch; color: var(--muted); text-wrap: pretty; }

/* ── 3. Footer ──────────────────────────────────────────────────────────── */
.foot {
  margin-top: clamp(5rem, 12vw, 9rem);
  padding: 1.5rem clamp(1.25rem, 6vw, 6rem) 3rem;
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2.5rem;
  background: var(--surface);
}
.foot-home { display: inline-block; padding: 0.25rem 0; }
.foot-mark { width: 3rem; }
.foot-contact { font-size: var(--step-small); color: var(--muted); }
.foot-name { color: var(--ink); }
.foot-contact a, .foot-links a {
  color: var(--ink); text-decoration-color: var(--muted); text-decoration-thickness: 0.07em; text-underline-offset: 0.25em;
  overflow-wrap: anywhere; transition: text-decoration-color var(--t-hover) ease;
}
.foot-contact a:hover, .foot-links a:hover { text-decoration-color: var(--gold); }
.foot-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; }
.foot-links a { font-size: var(--step-small); padding: 0.5rem 0; }

/* ── Legal pages (built from legal/*.md) ──────────────────────────────────── */
.legal-head { padding: 1.5rem clamp(1.25rem, 6vw, 6rem) 0; }
.back {
  display: inline-flex; align-items: center; gap: 0.75rem; min-height: 2.75rem;
  color: var(--ink); text-decoration: none; font-size: var(--step-small);
}
.back img { width: 2.5rem; }
.back:hover > span { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 0.07em; text-underline-offset: 0.25em; }
.legal {
  max-width: calc(65ch + 2 * clamp(1.25rem, 6vw, 6rem));   /* about 65 characters a line */
  padding: clamp(2.5rem, 7vw, 5rem) clamp(1.25rem, 6vw, 6rem) 0;
}
.legal h1 { font-size: var(--step-head); line-height: 1.02; letter-spacing: -0.03em; margin-bottom: 1.5rem; }
.legal h2 { font-size: var(--step-lead); line-height: 1.2; letter-spacing: -0.01em; margin: 3rem 0 1rem; }
.legal h3 { font-size: var(--step-body); font-weight: 500; line-height: 1.3; margin: 2rem 0 0.75rem; }
.legal p, .legal li { font-size: var(--step-body); line-height: 1.6; color: var(--ink); overflow-wrap: break-word; }
.legal p + p { margin-top: 1em; }
.legal ul { margin: 0.75rem 0 1rem; padding-left: 1.25em; }
.legal li + li { margin-top: 0.375rem; }
.legal li::marker { color: var(--gold); }
.legal strong { font-weight: 500; color: var(--ink); }
.legal h1 + p { color: var(--muted); }   /* the "Last updated" line */
.legal h1 + p strong { color: var(--muted); }

/* ── Phone ──────────────────────────────────────────────────────────────── */
@media (max-width: 47.999rem) {
  .company { min-height: 64svh; }
  .product { padding: 0 0.75rem; }
  .product-panel { padding: 1.75rem 1.25rem 2rem; }
  .review { padding: 0 0.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .button:active { transform: none; }
}

@media (prefers-contrast: more) {
  :root { --muted: #ddd2c0; }
}

@media print {
  .skip { display: none; }
  body, .product-panel, .foot { background: #fff !important; color: #000 !important; }
}
