/*
  righthook website stylesheet.
  - One file. No JavaScript and no external requests anywhere on the site (see ../README.md).
  - Palette and rules: docs/brand/BRAND.md section 9 (the colour pairs below were checked against WCAG 2.x AA there).
  - Display face: Instrument Serif (SIL OFL 1.1), self-hosted; licence in fonts/OFL.txt. Large sizes only.
  - Body face: the visitor's own system font stack. We never serve Apple's SF fonts (their licence does not cover websites).
*/

@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/instrument-serif-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/instrument-serif-latin-400-italic.woff2") format("woff2");
}

/* ---------- Tokens (light first, dark below) ---------- */
:root {
  color-scheme: light dark;

  --bg: #F6F4EE;            /* Chalk */
  --surface: #FFFFFF;       /* Paper */
  --hairline: #E3DFD5;      /* Mist: decorative dividers only */
  --text: #14171C;          /* Ink */
  --text-2: #565C67;        /* Slate */
  --stroke: #6B7280;        /* Steel: icons, outlines, chevrons */
  --accent: #FFB627;        /* Ringlight: fills and glow, never text on light */
  --accent-300: #FFD27A;
  --accent-text: #8A5300;   /* Bronze: accent as text or link on light */
  --on-accent: #14171C;     /* Ink on a Ringlight fill */
  --focus: #8A5300;
  --mark-bg: #FFD27A;       /* placeholder notes: loud on purpose */
  --mark-text: #14171C;

  --font-display: "Instrument Serif", "New York", ui-serif, Georgia, serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --gutter: clamp(1rem, 4vw, 2rem);
  --radius: 1.125rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B0D11;          /* Arena */
    --surface: #14181F;     /* Deck */
    --hairline: #262B35;    /* Mat */
    --text: #F6F4EE;        /* Chalk */
    --text-2: #A3A9B4;      /* Haze */
    --stroke: #8B93A1;      /* Steel (dark) */
    --accent-text: #FFB627; /* Ringlight is the accent text on dark */
    --focus: #FFB627;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; }
img { height: auto; }

p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.4rem; }
li { margin: 0.35em 0; }

a {
  color: var(--accent-text);
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}
a:hover { text-decoration-thickness: 0.14em; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

h1, h2, h3 {
  margin: 0 0 0.5em;
  line-height: 1.08;
  text-wrap: balance;
}
h1, h2 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.012em;
}
h1 { font-size: clamp(3rem, 2.2rem + 5.2vw, 5.75rem); line-height: 0.98; }
h2 { font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.5rem); }
h3 { font-family: var(--font-body); font-weight: 650; font-size: 1.25rem; letter-spacing: -0.005em; }

.ital { font-style: italic; }
.line { display: inline-block; }

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 0.35em;
  padding: 0.08em 0.35em;
  overflow-wrap: anywhere;
}

kbd {
  font-family: var(--font-body);
  font-size: 0.92em;
  display: inline-block;
  min-width: 1.9em;
  padding: 0.05em 0.45em;
  margin-inline: 0.1em;
  text-align: center;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-bottom-width: 3px;
  border-radius: 0.45em;
}

a[href^="mailto:"] { overflow-wrap: anywhere; }

mark.placeholder {
  display: inline-block;
  padding: 0.1em 0.5em;
  margin-inline-start: 0.35em;
  background: var(--mark-bg);
  color: var(--mark-text);
  border-radius: 0.4em;
  font-size: 0.82em;
  font-weight: 650;
  line-height: 1.4;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 650;
  border-radius: 0 0 0.5rem 0;
}
.skip:focus { left: 0; }

/* ---------- Layout ---------- */
.wrap { width: min(calc(100% - 2 * var(--gutter)), 70rem); margin-inline: auto; }
.wrap.narrow { width: min(calc(100% - 2 * var(--gutter)), 46rem); }
.section { padding-block: clamp(2.5rem, 7vw, 5rem); }
.band {
  padding-block: clamp(2.5rem, 7vw, 5rem);
  background: var(--surface);
  border-block: 1px solid var(--hairline);
}
.center { text-align: center; }
.mx-auto { margin-inline: auto; }

/* ---------- Header and footer ---------- */
.site-header { border-bottom: 1px solid var(--hairline); }
.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 0.85rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand img { width: 36px; height: 36px; }
.nav ul { display: flex; flex-wrap: wrap; gap: 0.1rem 0.8rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 40rem) { .nav ul { column-gap: 1.25rem; } .nav a { font-size: 1rem; } }
.nav li { margin: 0; }
.nav a { display: inline-block; padding: 0.4rem 0; color: var(--text-2); font-size: 0.95rem; text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); text-decoration: underline; text-underline-offset: 0.3em; }

.site-footer {
  margin-top: clamp(3rem, 8vw, 5rem);
  padding-block: 2rem 3rem;
  border-top: 1px solid var(--hairline);
  color: var(--text-2);
  font-size: 0.9rem;
}
.site-footer p { max-width: 48rem; }
.site-footer a { color: var(--text-2); }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.footer-links li { margin: 0; }

/* ---------- Buttons, chips, status ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.7rem 1.4rem;
  background: var(--accent);
  color: var(--on-accent);
  border: 1px solid var(--accent-text);
  border-radius: 999px;
  font-weight: 650;
  text-decoration: none;
}
.btn:hover { background: var(--accent-300); }
.btn.secondary { background: transparent; color: var(--text); border-color: var(--stroke); }
.btn.secondary:hover { background: var(--surface); }

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  padding: 0.55rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 999px;
}

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.chips li {
  margin: 0;
  padding: 0.3rem 0.85rem;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  color: var(--text-2);
  font-size: 0.9rem;
}

.dot {
  display: inline-block;
  flex: none;
  width: 0.9rem;
  height: 0.9rem;
  border: 2px solid var(--stroke);
  border-radius: 50%;
  vertical-align: -0.1em;
}
.dot.lit {
  background: var(--accent);
  border-color: var(--accent-text);
  box-shadow: 0 0 0 0.3rem rgba(255, 182, 39, 0.22);
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(2rem, 6vw, 5rem); }
.hero-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 52rem) {
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
}
.app-icon { display: block; width: 112px; height: 112px; margin-bottom: 1.25rem; filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.28)); }
.eyebrow { margin: 0 0 0.5rem; color: var(--text-2); font-weight: 600; letter-spacing: 0.01em; }
.lede { max-width: 36rem; font-size: clamp(1.125rem, 1.05rem + 0.45vw, 1.375rem); }
.fine { color: var(--text-2); font-size: 0.95rem; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; margin: 1.5rem 0 1rem; }

.stage-fig { margin: 0; }
.stage { display: block; width: 100%; height: auto; border: 1px solid var(--hairline); border-radius: 1.75rem; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.45); }
.stage-fig figcaption { margin-top: 0.75rem; color: var(--text-2); font-size: 0.875rem; }

/* The illustration: the final frame is the static state (built-in dark, external lit). */
.stage .bg-top { stop-color: #0B0D11; }
.stage .bg-bottom { stop-color: #14181F; }
.stage .glow-a { stop-color: #FFB627; stop-opacity: 0.4; }
.stage .glow-b { stop-color: #FFB627; stop-opacity: 0; }
.stage .ext-a { stop-color: #FFD27A; }
.stage .ext-b { stop-color: #FFB627; }
.stage .ext-off, .stage .built-off { fill: #171B23; stroke: #2F3541; stroke-width: 3; }
.stage .built-on { fill: #C9CFD9; opacity: 0; }
.stage .arc { fill: none; stroke: #8B93A1; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.stage .dot-lit { fill: #FFB627; }

/* One short sequence on load (about 2 seconds, plays once), skipped when the visitor prefers reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .stage .arc { animation: rh-draw 0.8s ease-in-out 0.5s 1 backwards; }
  .stage .built-on { animation: rh-lights-out 0.7s ease-in-out 1.3s 1 backwards; }
  .stage .ext-on, .stage .glow { animation: rh-fade-in 0.8s ease-out 1.4s 1 backwards; }
  .stage .dot-lit { animation: rh-fade-in 0.4s ease-out 1.2s 1 backwards; }
}
@keyframes rh-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes rh-lights-out { from { opacity: 0.95; } to { opacity: 0; } }
@keyframes rh-fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Four beats ---------- */
.band > .wrap > h2, .section > .wrap > h2 { max-width: 22ch; }
.beats {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr);
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}
/* 1 column, then 2, then 4: never an orphaned 3 + 1 */
@media (min-width: 36rem) { .beats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .beats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.beats li {
  margin: 0;
  padding: 1.25rem 1.25rem 1.5rem;
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}
.beats h3 { margin: 0.9rem 0 0.5rem; font-family: var(--font-display); font-weight: 400; font-size: 2.5rem; line-height: 1; }
.beats p { margin: 0; color: var(--text-2); }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr); max-width: 40rem; margin-top: 2rem; }
@media (min-width: 64rem) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: none; } }
.card { padding: clamp(1.25rem, 3vw, 2rem); background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); }
.card h3 { font-size: 1.4rem; margin-bottom: 0.25em; }
.card .sub { font-weight: 650; }
.card .proof { margin: 1rem 0 0; padding-top: 0.75rem; border-top: 1px solid var(--hairline); color: var(--text-2); font-size: 0.95rem; }

/* ---------- Real screens ---------- */
.section-lede { margin-top: -0.25rem; color: var(--text-2); }
.shots { display: grid; gap: clamp(1.5rem, 4vw, 3rem); grid-template-columns: minmax(0, 1fr); justify-items: center; align-items: start; margin-top: 2rem; }
@media (min-width: 52rem) {
  .shots { grid-template-columns: minmax(0, 300px) minmax(0, 504px); justify-content: center; }
}
.shots figure { margin: 0; max-width: 100%; }
.shots img { display: block; border: 1px solid var(--hairline); border-radius: 14px; box-shadow: 0 24px 48px -28px rgba(0, 0, 0, 0.5); }
.shots figcaption { max-width: 32rem; margin-top: 0.75rem; color: var(--text-2); font-size: 0.95rem; }

/* ---------- FAQ ---------- */
.faq { margin-top: 1.5rem; border-top: 1px solid var(--hairline); }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary {
  position: relative;
  padding: 1rem 2.5rem 1rem 0;
  font-weight: 650;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 0.5rem;
  top: 50%;
  width: 0.6rem;
  height: 0.6rem;
  border-right: 2px solid var(--stroke);
  border-bottom: 2px solid var(--stroke);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .answer { padding: 0 0 1.25rem; }
.faq .answer > :last-child { margin-bottom: 0; }

/* ---------- Prose pages (privacy, support, 404) ---------- */
.prose { width: min(calc(100% - 2 * var(--gutter)), 46rem); margin-inline: auto; padding-block: clamp(2rem, 6vw, 4rem); }
.prose h1 { font-size: clamp(2.75rem, 2rem + 4.5vw, 4.75rem); margin-bottom: 0.25em; }
.prose h2 { margin: 2.2em 0 0.5em; font-size: clamp(2.25rem, 1.6rem + 2vw, 2.75rem); }
.prose .lede { max-width: none; font-size: 1.25rem; }
.meta { color: var(--text-2); font-size: 0.95rem; }

.glance {
  display: grid;
  gap: 0;
  margin: 1.5rem 0 0;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
}
.glance div { display: grid; gap: 0.1rem 1.5rem; grid-template-columns: minmax(0, 1fr); padding: 0.8rem 1.25rem; border-top: 1px solid var(--hairline); }
.glance div:first-child { border-top: 0; }
.glance dt { font-weight: 650; }
.glance dd { margin: 0; color: var(--text-2); }
@media (min-width: 40rem) {
  .glance div { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
}

.callout {
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-inline-start: 6px solid var(--accent-text);
  border-radius: var(--radius);
}
.callout h2 { margin-top: 0; font-size: clamp(2rem, 1.5rem + 2vw, 2.5rem); }
.callout ol { margin-bottom: 0; }
.callout li { margin: 0.7em 0; }

.shortcut { white-space: nowrap; }

/* ---------- Landing page: photography, comparison, features, trust ---------- */
.kicker { margin: 0 0 0.6rem; color: var(--accent-text); font-weight: 650; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; }
.section-lede.wide { max-width: 44rem; font-size: 1.125rem; }

.photo-fig { margin: 0; }
.photo-fig img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1.5rem;
  border: 1px solid var(--hairline);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 182, 39, 0.05);
}
.photo-fig figcaption { margin-top: 0.75rem; color: var(--text-2); font-size: 0.875rem; }
.hero-fig img { box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.6), 0 0 120px -40px rgba(255, 182, 39, 0.45); }

.compare-scroll { margin-top: 2rem; overflow-x: auto; border: 1px solid var(--hairline); border-radius: var(--radius); background: var(--bg); }
.compare { width: 100%; min-width: 40rem; border-collapse: collapse; font-size: 0.95rem; }
.compare th, .compare td { padding: 0.85rem 1rem; text-align: left; vertical-align: top; border-top: 1px solid var(--hairline); }
.compare thead th { border-top: 0; font-weight: 650; color: var(--text-2); font-size: 0.85rem; }
.compare tbody th { font-weight: 600; width: 30%; }
.compare td.yes::before, .compare td.no::before, .compare td.part::before {
  content: ""; display: inline-block; width: 0.6rem; height: 0.6rem; margin-right: 0.5rem; border-radius: 50%; vertical-align: 0.05em;
}
.compare td.yes::before { background: var(--accent); }
.compare td.part::before { border: 2px solid var(--stroke); }
.compare td.no { color: var(--text-2); }
.compare td.no::before { background: var(--hairline); }
.compare .us { background: rgba(255, 182, 39, 0.10); font-weight: 650; }
.compare thead .us { color: var(--accent-text); }

.feature { display: grid; gap: clamp(1.25rem, 4vw, 3.5rem); grid-template-columns: minmax(0, 1fr); align-items: center; margin-top: clamp(2rem, 6vw, 4rem); }
@media (min-width: 52rem) {
  .feature { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
  .feature.flip .photo-fig { order: 2; }
}
.feature-copy h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.6rem); line-height: 1.05; }
.feature-copy p { color: var(--text-2); }
.feature-copy .proof { margin-top: 1rem; padding-top: 0.75rem; border-top: 1px solid var(--hairline); color: var(--text); font-weight: 600; font-size: 0.95rem; }

.grid-3 { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr); margin-top: 2rem; }
@media (min-width: 40rem) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.grid-3 .card h3 { display: flex; align-items: center; gap: 0.6rem; }
.grid-3 .card h3::before { content: ""; flex: none; width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0.3rem rgba(255, 182, 39, 0.2); }
.grid-3 .card p { margin: 0; color: var(--text-2); }

.trust { padding: clamp(1.5rem, 4vw, 2.75rem); background: var(--surface); border: 1px solid var(--hairline); border-radius: 1.5rem; }
.trust h2 { max-width: 20ch; }
.trust-list { display: grid; gap: 1rem 2rem; grid-template-columns: minmax(0, 1fr); margin: 1.5rem 0 0; padding: 0; list-style: none; }
@media (min-width: 40rem) { .trust-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .trust-list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.trust-list li { margin: 0; padding-top: 0.75rem; border-top: 2px solid var(--accent); }
.trust-list strong { display: block; font-size: 1.05rem; }
.trust-list span { color: var(--text-2); font-size: 0.95rem; }

/* The closing band is always the dark arena, with one light on. */
.closing {
  padding-block: clamp(3.5rem, 10vw, 7rem);
  background: #0B0D11 url("img/ambient-texture.jpg") center / cover no-repeat;
  color: #F6F4EE;
  border-top: 1px solid var(--hairline);
}
.closing h2 { font-size: clamp(2.75rem, 2rem + 4vw, 5rem); }
.closing .closing-lede { max-width: 32rem; color: #A3A9B4; font-size: 1.15rem; }
.closing .fine { color: #A3A9B4; }
.closing a { color: #FFB627; }
.closing .status { margin-block: 1rem; background: #14181F; border-color: #262B35; }
.closing .dot.lit { border-color: #FFB627; }
.landing .site-footer { margin-top: 0; }

/* ---------- Print ---------- */
@media print {
  :root { --bg: #fff; --surface: #fff; --hairline: #ccc; --text: #000; --text-2: #333; --accent-text: #000; }
  .site-header nav, .btn, .stage-fig, .skip, .shots, .photo-fig { display: none; }
  .closing { background: #fff; color: #000; }
  a { text-decoration: underline; }
}
