/* Furlong — the site. Same paper and ink as the app.
   No webfonts, no trackers, no third-party anything: a site with analytics on it
   would contradict the product's central claim. */

:root {
  --paper:   #F4F0E4;
  --panel:   #EDE8DA;
  --ink:     #1F1C17;
  --second:  #6B655A;
  --faint:   #A8A094;
  --rule:    rgba(31, 28, 23, 0.14);
  --signal:  #E0331B;
  --measure: 34rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper:  #1A1814;
    --panel:  #221F1A;
    --ink:    #ECE5D5;
    --second: #A79F91;
    --faint:  #6F685C;
    --rule:   rgba(236, 229, 213, 0.16);
    --signal: #F0563E;
  }
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* The mark bleeds past both edges by design; the page itself must never
     scroll sideways. */
  overflow-x: hidden;
}

.wrap { max-width: 60rem; margin: 0 auto; padding: 0 1.5rem; }
.narrow { max-width: var(--measure); }

/* ---- type ---- */

h1, h2, h3 { font-weight: 500; letter-spacing: -0.02em; line-height: 1.12; margin: 0; }
/* The clamp minimum has to fit the longest line on a 360px phone, or the
   headline overflows the viewport instead of shrinking. */
h1 { font-size: clamp(1.95rem, 7.4vw, 4.8rem); }
h2 { font-size: clamp(1.45rem, 4.4vw, 2.4rem); margin-bottom: 1.2rem; }
h3 { font-size: 1.05rem; letter-spacing: 0; margin-bottom: 0.35rem; }
p  { margin: 0 0 1.15rem; }
a  { color: inherit; }

.kicker {
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 1.6rem;
}

.lede  { font-size: clamp(1.15rem, 2.4vw, 1.45rem); line-height: 1.45; color: var(--ink); }
.muted { color: var(--second); }
.small { font-size: 0.92rem; }

hr { border: 0; border-top: 1px solid var(--rule); margin: 0; }

/* ---- masthead ---- */

.masthead {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 0.5rem 1rem;
  padding: 1.5rem 0 1.2rem;
}
.wordmark {
  font-size: 0.8rem; letter-spacing: 0.34em; font-weight: 500; text-decoration: none;
}
.masthead nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.3rem; }
.masthead nav a {
  font-size: 0.86rem; color: var(--second); text-decoration: none;
}
.masthead nav a:hover { color: var(--ink); }

/* ---- the mark ---- */

/* Full-bleed band. Without the wrapper the bare <svg> contributes its 1000-unit
   viewBox as an intrinsic width and pushes the whole page wider than the phone. */
.markband { width: 100%; max-width: 100%; overflow: hidden; }
.mark { display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 1000 / 240; }
.mark path {
  fill: none; stroke-linecap: round; stroke-width: 1.8;
  /* Must exceed the true path length (~1250 user units), or the tail of each
     lane lands in the dash gap and never draws. */
  stroke-dasharray: 2000; stroke-dashoffset: 2000;
  animation: draw 1.1s cubic-bezier(.2,.7,.3,1) forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .mark path { animation: none; stroke-dashoffset: 0; }
}

/* ---- sections ---- */

section { padding: clamp(3.5rem, 9vw, 6.5rem) 0; }
.hero   { padding-top: clamp(1rem, 3vw, 2rem); }

.claim {
  font-size: clamp(1.6rem, 4.4vw, 2.6rem);
  line-height: 1.22; letter-spacing: -0.02em; max-width: 30rem;
}

/* ---- feature list ---- */

.rows { border-top: 1px solid var(--rule); }
.row {
  display: grid; grid-template-columns: 1fr; gap: 0.15rem;
  padding: 1.35rem 0; border-bottom: 1px solid var(--rule);
}
@media (min-width: 44rem) {
  .row { grid-template-columns: 15rem 1fr; gap: 2rem; align-items: baseline; }
}
.row p { margin: 0; color: var(--second); }

/* ---- screens ---- */

.screens {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  margin-top: 2.5rem;
}
.screens figure { margin: 0; }
.screens img {
  width: 100%; height: auto; display: block;
  border: 1px solid var(--rule); border-radius: 14px;
}
.screens figcaption {
  font-size: 0.85rem; color: var(--second); margin-top: 0.7rem; line-height: 1.4;
}

/* ---- privacy panel ---- */

.panel {
  background: var(--panel); border-radius: 4px;
  padding: clamp(1.6rem, 4vw, 2.6rem);
}
.panel ul { margin: 0; padding-left: 1.1rem; color: var(--second); }
.panel li { margin-bottom: 0.4rem; }

/* ---- doc pages ---- */

.doc h2 { margin-top: 2.6rem; font-size: 1.3rem; }
.doc h2:first-of-type { margin-top: 1.5rem; }
.doc ul { padding-left: 1.15rem; color: var(--second); }
.doc li { margin-bottom: 0.4rem; }
.doc strong { font-weight: 500; color: var(--ink); }
.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); padding: 1.1rem 0; }
.faq summary { cursor: pointer; font-size: 1.02rem; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+  "; color: var(--faint); }
.faq details[open] summary::before { content: "\2212  "; }
.faq details p { margin: 0.8rem 0 0; color: var(--second); max-width: var(--measure); }

/* ---- footer ---- */

footer { padding: 2.5rem 0 3.5rem; border-top: 1px solid var(--rule); }
footer .small { color: var(--faint); }
footer a { color: var(--second); text-decoration: none; margin-right: 1.3rem; }
footer a:hover { color: var(--ink); }

.disclaimer {
  font-size: 0.86rem; color: var(--faint); line-height: 1.55;
  max-width: var(--measure); margin-top: 1.6rem;
}
