/* Layout concept: a drafting sheet. A faint measuring grid runs behind everything, sections are
   labelled like dimension callouts, and readings use the app's own mono figures. Dark only: the
   app itself is a dark viewer, and the screenshots sit naturally on it. */
:root {
  --ink: #0e1217;          /* page */
  --sheet: #151b23;        /* raised panels */
  --rule: #263140;         /* grid lines, borders */
  --text: #e8edf3;
  --muted: #9aa6b5;
  --coral: #ff7a45;        /* the app's accent: actions and dimension marks */
  --glass: #7fd8ff;        /* the icon's cyan glass: highlights, sparingly */
  --font-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: 1.75rem;
  --step-3: clamp(2.1rem, 1.4rem + 3vw, 3.4rem);
  --step-4: clamp(2.6rem, 1.6rem + 4.6vw, 4.6rem);
  --radius: 14px;
  --max: 1120px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background-color: var(--ink);
  background-image:
    linear-gradient(var(--rule) 1px, transparent 1px),
    linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: -1px -1px;
  background-attachment: fixed;
  color: var(--text);
  font: 400 var(--step-0)/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
/* fade the grid so it reads as paper texture, not a pattern */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, transparent 0%, var(--ink) 75%);
  opacity: 0.86;
  pointer-events: none;
  z-index: -1;
}

img { max-width: 100%; display: block; }
a { color: var(--glass); text-underline-offset: 3px; }
a:focus-visible, .button:focus-visible { outline: 2px solid var(--glass); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: 20px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-stretch: 112%;
  line-height: 1.06;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: var(--step-4); font-weight: 800; }
h2 { font-size: var(--step-3); font-weight: 750; }
h3 { font-size: var(--step-1); font-weight: 700; font-stretch: 105%; }
p { margin: 0; max-width: 62ch; }

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ---- section labels drawn like dimension callouts: |—— label ——| ---- */
.callout {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 500 var(--step--1)/1 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--coral);
}
.callout::before, .callout::after {
  content: "";
  width: 28px;
  height: 9px;
  border-inline: 1.5px solid currentColor;
  background: linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat;
}

/* ---- header ---- */
.top {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 10;
  background: color-mix(in srgb, var(--ink) 82%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}
.top .wrap { display: flex; align-items: center; gap: 24px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 750 1.25rem/1 var(--font-display); font-stretch: 112%; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.top nav { display: flex; gap: 20px; margin-left: auto; }
.top nav a { color: var(--muted); text-decoration: none; font-size: var(--step--1); }
.top nav a:hover { color: var(--text); }
@media (max-width: 640px) { .top nav { display: none; } .top .button { margin-left: auto; } }

/* ---- buttons ---- */
.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 12px;
  background: var(--coral);
  color: #2a0e04;
  font: 650 1rem/1 var(--font-body);
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.button:hover { transform: translateY(-1px); box-shadow: 0 8px 24px -10px var(--coral); }
.button svg { width: 18px; height: 18px; flex: none; }
.button.small { padding: 9px 14px; font-size: var(--step--1); }
@media (prefers-reduced-motion: reduce) { .button { transition: none; } .button:hover { transform: none; } }

/* ---- hero ---- */
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 48px;
  align-items: center;
  padding-block: 72px 56px;
}
.hero h1 { margin-top: 18px; }
.hero .lede { color: var(--muted); font-size: var(--step-1); line-height: 1.5; margin-top: 22px; }
.hero .cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 30px; }
.hero .cta small { color: var(--muted); font-size: var(--step--1); }
.formats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; padding: 0; list-style: none; }
.formats li {
  font: 500 0.82rem/1 var(--font-mono);
  padding: 7px 10px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--sheet);
  color: var(--text);
}
.formats li.pro { border-color: color-mix(in srgb, var(--coral) 55%, var(--rule)); }
.formats li.pro::after { content: " PRO"; color: var(--coral); font-size: 0.7rem; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); padding-block: 44px 32px; }
}

/* the phone */
.device { position: relative; justify-self: center; width: min(320px, 78vw); margin: 0; }
.phone {
  aspect-ratio: 9 / 16;
  border-radius: 34px;
  padding: 10px;
  background: #0a0d11;
  border: 1px solid #3a4656;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7), 0 0 0 6px rgba(127, 216, 255, 0.05), 0 0 90px -20px rgba(127, 216, 255, 0.35);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 26px; }
/* ---- sections ---- */
section { padding-block: 72px; }
section > .wrap > header { display: grid; gap: 14px; margin-bottom: 40px; }
section > .wrap > header p { color: var(--muted); }

/* formats table */
.table-scroll { overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--sheet); }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--rule); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { font: 500 var(--step--1)/1.2 var(--font-mono); color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
td:first-child { font-weight: 600; white-space: nowrap; }
td.ext { font-family: var(--font-mono); color: var(--glass); white-space: nowrap; }
.tag { font: 600 0.7rem/1 var(--font-mono); color: var(--coral); border: 1px solid currentColor; border-radius: 5px; padding: 2px 5px; margin-left: 6px; vertical-align: 2px; }

/* feature rows: text beside screenshots */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  padding-block: 36px;
  border-top: 1px solid var(--rule);
}
.feature:first-of-type { border-top: 0; }
.feature .copy { display: grid; gap: 14px; }
.feature .copy p { color: var(--muted); }
.feature ul { margin: 4px 0 0; padding-left: 1.1em; color: var(--muted); display: grid; gap: 6px; }
.feature ul li::marker { color: var(--coral); }
.shots { display: flex; gap: 16px; justify-content: center; }
.shots img {
  width: min(220px, 44%);
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid #344052;
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.8);
}
.feature.flip .shots { order: -1; }
@media (max-width: 860px) {
  .feature { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .feature.flip .shots { order: 0; }
}

/* an inline reading, styled like the app's measure panel */
.reading {
  display: grid;
  grid-template-columns: auto auto;
  gap: 6px 22px;
  width: fit-content;
  max-width: 100%;
  padding: 14px 18px;
  border: 1px solid color-mix(in srgb, var(--coral) 60%, var(--rule));
  border-radius: 12px;
  background: var(--sheet);
  font: 400 0.92rem/1.3 var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.reading dt { color: var(--muted); }
.reading dd { margin: 0; color: var(--text); font-weight: 500; }

/* Pro */
.pro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
}
.pro-grid div { background: var(--sheet); padding: 20px 22px; display: grid; gap: 6px; align-content: start; }
.pro-grid h3 { font-size: 1.05rem; }
.pro-grid p { color: var(--muted); font-size: 0.95rem; }
.pro-note { margin-top: 20px; color: var(--muted); }

/* privacy statement */
.private { text-align: left; }
.private .facts { display: flex; flex-wrap: wrap; gap: 12px 40px; margin-top: 8px; padding: 0; list-style: none; }
.private .facts li { font: 750 var(--step-2)/1.1 var(--font-display); font-stretch: 112%; }
.private .facts li span { color: var(--coral); }

/* closing call to action */
.closing .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 36px 32px;
  border: 1px solid var(--rule);
  border-radius: 20px;
  background: linear-gradient(120deg, var(--sheet), color-mix(in srgb, var(--sheet) 70%, #1e3550));
}
.closing .icon { width: 72px; height: 72px; border-radius: 18px; }
.closing .who { display: flex; align-items: center; gap: 18px; }
.closing p { color: var(--muted); }

/* footer */
footer { border-top: 1px solid var(--rule); padding-block: 32px 40px; color: var(--muted); font-size: var(--step--1); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
footer a { color: var(--muted); }

/* ---- long-form pages (privacy) ---- */
.doc { padding-block: 56px 72px; }
.doc .wrap { max-width: 760px; display: grid; gap: 18px; }
.doc h1 { font-size: var(--step-3); margin-top: 6px; }
.doc h2 { font-size: var(--step-1); margin-top: 22px; }
.doc p, .doc li { color: #c9d2dd; }
.doc .meta { color: var(--muted); font: 400 var(--step--1)/1 var(--font-mono); }
.doc .summary { padding: 18px 20px; border: 1px solid var(--rule); border-radius: 12px; background: var(--sheet); }
