/* ==========================================================================
   renderfox site. One sheet for every page: tokens from the brand kit
   (brand/kit/palette/renderfox-palette.css), the header, the footer, the
   buttons, the homepage and the reading column the privacy page uses.
   No build step. The header and footer markup is repeated on each page.
   ========================================================================== */

@font-face {
  font-family: 'Hanken Grotesk';
  src: url('/assets/fonts/hanken-grotesk-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/assets/fonts/plex-mono-latin-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

:root {
  --paper: #f6f4ef;
  --white: #ffffff;
  --ink: #100f0d;
  --body: #4a463f;
  --subtle: #6b665e;
  --line: #e4dfd5;
  --line-strong: #cfc8ba;
  --fox: #d46b2c;
  --fox-type: #c25a1f;
  --rust: #b4501c;
  --box: #d92d27;
  --ok: #197d44;
  --on-ink: #f6f4ef;
  --on-ink-soft: #bdb7aa;
  --on-ink-line: rgba(246, 244, 239, .16);
  --on-ink-accent: #e08a52;
  --sans: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --wrap: 1160px;
  --doc: 680px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; scrollbar-color: var(--line-strong) var(--paper); }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--fox); color: var(--white); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
/* Heading weights and tracking match fanoutfox.com: bold for h1 and h2, 600
   for h3. Same Hanken Grotesk file, so it's the same typeface on both sites. */
h1, h2, h3 { text-wrap: balance; }
h1, h2 { font-weight: 700; }
h3 { font-weight: 600; }
h2 { font-size: clamp(30px, 3.5vw, 44px); line-height: 1.12; letter-spacing: -.026em; }
h3 { font-size: 23px; line-height: 1.25; letter-spacing: -.012em; }
p { text-wrap: pretty; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--fox-type);
  outline-offset: 3px;
  border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 48px;
  padding: 0 22px;
  border-radius: 8px;
  font: 600 16px/1 var(--sans);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .15s ease-out, box-shadow .15s ease-out, color .15s ease-out;
}
.btn-sm { height: 40px; padding: 0 16px; font-size: 15px; }
.btn-primary { background: var(--ink); color: var(--paper); }
a.btn-primary:hover { background: #2c2925; }
.btn-ghost { box-shadow: inset 0 0 0 1.5px var(--line-strong); color: var(--ink); background: transparent; }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
/* The download button. Until the Web Store listing is live it's a span that
   says Coming soon to Chrome and can't be clicked. See site/README.md. */
.btn-store { cursor: default; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-sm svg { width: 15px; height: 15px; }

/* Header */
#hdr { position: sticky; top: 0; z-index: 20; background: var(--paper); transition: box-shadow .2s ease-out; }
#hdr.scrolled { box-shadow: 0 1px 0 var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 21px; font-weight: 600; letter-spacing: -.012em; }
.brand img { width: 34px; height: auto; }
.brand b { font-weight: 600; color: var(--fox-type); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a:not(.btn) { font-size: 15.5px; font-weight: 500; text-decoration: none; color: var(--body); }
.nav-links a:not(.btn):hover { color: var(--ink); }
.burger { display: none; background: none; border: 0; color: var(--ink); padding: 8px; cursor: pointer; }

/* Hero. The headline, the words and the buttons share one centre line, the
   same line the slider's handle starts on. */
.hero { padding: 64px 0 0; }
.hero-top { display: flex; flex-direction: column; align-items: center; text-align: center; }
h1 { font-size: clamp(42px, 5.9vw, 74px); line-height: 1.04; letter-spacing: -.032em; }
.hero-top h1 { max-width: 14em; }
.lede { font-size: 19px; line-height: 1.5; color: var(--body); max-width: 34em; }
.hero-top .lede { margin: 24px auto 0; max-width: 35em; text-wrap: balance; }
.hero-top .reassure { text-wrap: balance; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 22px; }
.hero-top .cta-row { justify-content: center; margin-top: 30px; }
.reassure { margin-top: 14px; font-size: 15px; color: var(--subtle); }

/* The slider. Without JavaScript the two pictures sit side by side, which
   is the whole point of this product, so script only upgrades it. */
.stage-wrap { padding-top: 56px; }
.stage {
  --split: 50%;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 0 0 1px var(--line), 0 28px 56px -32px rgba(16, 15, 13, .32);
}
.stage-views { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); }
.stage-view { position: relative; background: var(--white); }
.stage-view img { width: 100%; height: auto; }
.stage-bar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  font-size: 15.5px;
  font-weight: 600;
}
.stage-range, .stage-line { display: none; }

.stage.is-live .stage-views { display: block; position: relative; aspect-ratio: 8 / 5; background: var(--white); }
.stage.is-live .stage-view { position: absolute; inset: 0; }
.stage.is-live .stage-you { clip-path: inset(0 calc(100% - var(--split)) 0 0); z-index: 1; }
.stage.is-live .stage-line {
  display: block;
  position: absolute;
  top: 46px;
  bottom: 0;
  left: var(--split);
  z-index: 3;
  width: 2px;
  margin-left: -1px;
  background: var(--ink);
  pointer-events: none;
}
.stage-grip {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
}
.stage-grip svg { width: 22px; height: 22px; }
.stage.is-live .stage-range {
  display: block;
  position: absolute;
  inset: 46px 0 0;
  z-index: 4;
  width: 100%;
  height: calc(100% - 46px);
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  touch-action: pan-y;
  -webkit-appearance: none;
  appearance: none;
}
.stage-range::-webkit-slider-runnable-track { height: 100%; }
.stage-range::-webkit-slider-thumb { -webkit-appearance: none; width: 1px; height: 100%; }
.stage-range::-moz-range-track { height: 100%; }
.stage-range::-moz-range-thumb { width: 1px; height: 100%; border: 0; }
.stage-range:focus-visible ~ .stage-line .stage-grip { outline: 2px solid var(--fox-type); outline-offset: 3px; }
.stage-note { margin-top: 12px; font-size: 15px; color: var(--subtle); text-align: center; }

/* Sections */
.block { padding: 112px 0 0; }
.block-last { padding-bottom: 112px; }

/* Why it happens */
.why { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.why p { margin-top: 18px; color: var(--body); font-size: 18px; line-height: 1.55; max-width: 33em; }
.compare { width: 100%; border-collapse: collapse; background: var(--white); border-radius: 12px; box-shadow: 0 0 0 1px var(--line); overflow: hidden; font-size: 16px; }
.compare th, .compare td { padding: 17px 20px; text-align: left; border-bottom: 1px solid var(--line); }
.compare tr:last-child td, .compare tr:last-child th { border-bottom: 0; }
.compare thead th { font-size: 15px; font-weight: 600; color: var(--body); }
.compare tbody th { font-weight: 500; }
.compare .mark { width: 124px; white-space: nowrap; }
.compare td svg { width: 22px; height: 22px; }
.yes { color: var(--ok); }
.no { color: var(--box); }

/* How it works */
.how-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 48px; }
.step-n { font-size: 56px; line-height: 1; font-weight: 500; letter-spacing: -.03em; color: var(--fox-type); }
.step h3 { margin-top: 14px; }
.step p { margin-top: 8px; color: var(--body); }

/* What you get */
.feats { margin-top: 28px; }
.feat { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; padding: 48px 0; border-bottom: 1px solid var(--line); }
.feat-text p { margin-top: 12px; color: var(--body); }
.feat.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.feat.flip .feat-text { order: 2; }
.feat-wide { grid-template-columns: 1fr; gap: 28px; }
.feat-wide .feat-text { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: baseline; }
.feat-wide .feat-text p { margin-top: 0; }
.shot { border-radius: 12px; overflow: hidden; background: var(--white); box-shadow: 0 0 0 1px var(--line), 0 20px 40px -30px rgba(16, 15, 13, .3); }
.shot img { width: 100%; height: auto; }
/* The popup is narrow, so it sits on a panel rather than filling the column. */
.shot-popup { background: #ece7dd; box-shadow: none; display: flex; justify-content: center; padding: 34px 24px 0; }
.shot-popup img { width: min(340px, 86%); border-radius: 10px 10px 0 0; box-shadow: 0 0 0 1px var(--line-strong), 0 18px 36px -22px rgba(16, 15, 13, .4); }
.shot-popup.floating { padding: 34px 24px; }
.shot-popup.floating img { border-radius: 10px; }
.notes { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; padding-top: 48px; }
.notes p { margin-top: 8px; color: var(--body); }

/* Privacy */
.privacy { margin-top: 112px; padding: 96px 0; background: var(--ink); color: var(--on-ink); }
.privacy-top { max-width: 760px; }
.privacy .lede { color: var(--on-ink-soft); margin-top: 18px; font-size: 20px; max-width: none; }
.privacy-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 56px; }
.privacy-grid p { padding-top: 18px; border-top: 1px solid var(--on-ink-line); }
.privacy a { color: var(--on-ink-accent); text-underline-offset: 3px; }
.privacy-link { margin-top: 44px; font-weight: 500; }

/* Who made it */
.made { max-width: 760px; font-size: 20px; line-height: 1.5; color: var(--body); }
.made a { color: var(--rust); text-underline-offset: 3px; }

/* Final call */
.closer { margin-top: 112px; text-align: center; }
.closer .cta-row { justify-content: center; margin-top: 26px; }

/* FAQ */
.faq-list { max-width: 760px; margin-top: 32px; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  font-size: 19px;
  font-weight: 500;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary svg { width: 18px; height: 18px; flex: none; color: var(--subtle); transition: transform .18s ease-out; }
.faq-list details[open] summary svg { transform: rotate(45deg); }
.faq-list details p { padding: 0 0 22px; color: var(--body); max-width: 40em; }

/* Footer */
footer { margin-top: 112px; border-top: 1px solid var(--line); padding: 56px 0 36px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.foot-brand p { margin-top: 12px; font-size: 15.5px; color: var(--subtle); max-width: 25em; }
.foot-col h3 { font-size: 15px; font-weight: 600; letter-spacing: 0; }
.foot-col a { display: block; margin-top: 9px; font-size: 15.5px; color: var(--body); text-decoration: none; }
.foot-col a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.foot-bottom { margin-top: 44px; font-size: 14px; color: var(--subtle); }

/* Reading column: the privacy policy */
.doc { max-width: var(--doc); margin: 0 auto; padding: 56px 32px 0; }
.doc h1 { font-size: clamp(38px, 5vw, 52px); }
.doc .updated { margin-top: 12px; font-size: 15.5px; color: var(--subtle); }
.doc .intro { margin-top: 28px; font-size: 19px; line-height: 1.5; color: var(--ink); }
.doc h2 { margin-top: 44px; font-size: 25px; line-height: 1.25; letter-spacing: -.014em; }
.doc p, .doc ul { margin-top: 12px; color: var(--body); }
.doc ul { padding-left: 1.15em; }
.doc li { margin-top: 8px; padding-left: .25em; }
.doc li::marker { color: var(--fox-type); }
.doc a { color: var(--rust); text-underline-offset: 3px; }
.doc code { font-family: var(--mono); font-size: .9em; color: var(--ink); }

/* 404 */
.lost { min-height: 60vh; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.lost p { margin-top: 12px; color: var(--body); }
.lost .cta-row { margin-top: 24px; }

@media (max-width: 960px) {
  .why { grid-template-columns: 1fr; gap: 36px; }
  .how-grid, .privacy-grid { grid-template-columns: 1fr; gap: 28px; }
  .feat, .feat.flip, .feat-wide .feat-text { grid-template-columns: 1fr; gap: 24px; }
  .feat, .feat.flip { padding: 36px 0; }
  .feat-wide .feat-text { gap: 10px; }
  .feat.flip .feat-text { order: 0; }
  .notes { grid-template-columns: 1fr; gap: 28px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .block, .privacy, .closer, footer { margin-top: 0; }
  .block { padding-top: 76px; }
  .block-last { padding-bottom: 76px; }
  .privacy { margin-top: 76px; padding: 68px 0; }
  .closer { margin-top: 76px; }
  footer { margin-top: 76px; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 20px; }
  .doc { padding: 40px 20px 0; }
  .burger { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 14px 20px 22px;
    background: var(--paper);
    box-shadow: 0 1px 0 var(--line);
  }
  .nav-links.open { display: flex; }
  h1 { font-size: clamp(40px, 11.5vw, 56px); }
  .hero { padding-top: 40px; }
  .stage-wrap { padding-top: 40px; }
  .lede { font-size: 18px; }
  .cta-row .btn { flex: 1 1 100%; }
  .stage-bar { font-size: 14.5px; padding: 11px 12px; }
  .stage-grip { width: 40px; height: 40px; margin: -20px 0 0 -20px; }
  .compare .mark { width: 72px; white-space: normal; }
  .compare th, .compare td { padding: 14px 14px; }
}
