/* findit — policy site
   Brand tokens lifted from the product (PROJECT.md §0a and the live app CSS).
   Light theme only, deliberately: the product pins color-scheme: light. */

:root {
  --paper: #f5f5f7;
  --surface: #ffffff;
  --surface-2: #efeff3;
  --ink: #14263a;
  --ink-2: #55677a;
  --ink-3: #8a97a6;
  --line: #e4e6eb;
  --line-strong: #d2d6de;
  --primary: #0c8b7d;
  --primary-hi: #0fa394;
  --primary-ink: #ffffff;
  --primary-soft: #dff5f1;
  --mint: #2dd4bf;
  --gold: #9a6b10;
  --gold-soft: #fdf3dc;
  --gold-line: #ebdcb4;
  --bad: #c0392b;

  --r: 13px;
  --r-lg: 20px;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;

  --shadow-sm: 0 1px 2px #14263a0f;
  --shadow: 0 6px 20px #14263a17;

  --wrap: 1060px;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.62;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }

/* ---------- wordmark ---------- */

.wordmark {
  font-family: var(--sans);
  letter-spacing: -0.035em;
  color: var(--ink);
  font-weight: 700;
  line-height: 1;
  font-size: 22px;
}
.wordmark i { color: var(--mint); font-style: normal; }

/* ---------- chrome ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #f5f5f7f2;
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .bar {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  gap: 22px;
}
.site-header a.brand { display: flex; align-items: center; text-decoration: none; }
.site-header a.brand:hover { text-decoration: none; }

nav.top { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; }
nav.top a {
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 999px;
  text-decoration: none;
}
nav.top a:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
nav.top a[aria-current="page"] { background: var(--primary-soft); color: var(--primary); }

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

/* ---------- download menu ---------- */

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.dl { position: relative; flex: none; }

.dl-btn {
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  color: var(--primary-ink);
  background: var(--primary);
  border: 0;
  border-radius: 999px;
  min-height: 38px;
  padding: 0 13px 0 17px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  transition: background 0.15s ease;
}
.dl-btn:hover { background: var(--primary-hi); }
.dl-btn .chev { width: 15px; height: 15px; transition: transform 0.18s ease; }
.dl-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }

.dl-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 30;
  width: 336px;
  max-width: calc(100vw - 28px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}
.dl-menu[hidden] { display: none; }
.dl-menu section { padding: 16px 16px 18px; }
.dl-menu section + section { border-top: 1px solid var(--line); }
.dl-menu h4 { margin: 0 0 3px; font-size: 15px; font-weight: 650; letter-spacing: -0.012em; }
.dl-menu h4 .wordmark { font-size: 15px; }
.dl-menu section > p { margin: 0 0 13px; font-size: 12.5px; color: var(--ink-2); line-height: 1.45; }

.stores { display: grid; gap: 8px; }
.store {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 15px;
  min-height: 46px;
  border: 1px solid var(--ink);
  border-radius: 11px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
}
.store:hover { text-decoration: none; background: #1d3450; }
.store .ic { flex: none; display: grid; place-items: center; width: 21px; }
.store .ic svg { width: 21px; height: 22px; display: block; }
.store .tx { display: flex; flex-direction: column; line-height: 1.16; min-width: 0; }
.store .tx small {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  opacity: 0.7;
}
.store .tx strong { font-size: 15px; font-weight: 600; letter-spacing: -0.015em; }
/* iPhone: the App Store build is not out, so this routes to the web app. */
.store.web {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--ink);
}
.store.web:hover { background: var(--primary-soft); border-color: var(--primary); }
.store.web .tx small { opacity: 1; color: var(--ink-3); }
.store.web .tx strong { color: var(--primary); }

/* ---------- landing page ---------- */

/* The mint gradient is the standing background, so the hero looks deliberate
   rather than blank while there is no photograph.
   TO ADD THE HERO IMAGE: drop the file at site/assets/hero.webp and uncomment
   the three `url(...)` lines below. The gradient stays underneath it. */
.lander-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background-color: var(--paper);
  background-image:
    /* url("/assets/hero.webp"), */
    radial-gradient(115% 95% at 84% 48%, #2dd4bf3d 0%, #2dd4bf14 40%, #f5f5f700 70%);
  background-repeat: /* no-repeat, */ no-repeat;
  background-position: /* right center, */ center;
  background-size: /* cover, */ cover;
}
/* Keeps the headline readable over whatever the right side of the photo does. */
.lander-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(100deg, var(--paper) 0%, #f5f5f7f7 34%, #f5f5f7cc 52%, #f5f5f700 72%);
}
.lander-hero > .wrap { position: relative; z-index: 1; }

.hero-copy { max-width: 33rem; padding: 96px 0 104px; }
.hero-copy h1 {
  margin: 0 0 14px;
  font-size: clamp(36px, 5.4vw, 54px);
  line-height: 1.06;
  letter-spacing: -0.033em;
  text-wrap: balance;
  font-weight: 700;
}
.hero-copy h1 .wordmark { font-size: inherit; letter-spacing: -0.045em; }
.hero-copy .lede {
  margin: 0 0 16px;
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.34;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.hero-copy .sub { margin: 0; font-size: 16px; color: var(--ink-2); max-width: 30rem; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.btn-primary, .btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 15.5px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: var(--primary-ink);
  border: 1px solid var(--primary);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--primary-hi); border-color: var(--primary-hi); text-decoration: none; }
.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.btn-primary svg, .btn-ghost svg { width: 17px; height: 17px; flex: none; }

/* ---------- get the app ---------- */

.section { padding: 66px 0 8px; }
.section > h2 {
  margin: 0 0 8px;
  font-size: clamp(24px, 3vw, 30px);
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.section > p.intro { margin: 0 0 28px; color: var(--ink-2); max-width: 56ch; font-size: 16px; }

.get-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.get-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: 26px 24px 24px;
  display: flex;
  flex-direction: column;
}
.get-card h3 { margin: 0 0 4px; font-size: 19px; letter-spacing: -0.018em; }
.get-card h3 .wordmark { font-size: 19px; }
.get-card .who {
  display: inline-block;
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 999px;
  padding: 4px 11px;
}
.get-card > p { margin: 0 0 18px; font-size: 14.5px; color: var(--ink-2); line-height: 1.55; }
.get-card .stores { margin-top: auto; }
.get-card .note {
  margin: 12px 0 0;
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.45;
}

/* ---------- how it works ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}
.steps li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 20px 20px 22px;
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 13px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--mint);
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.steps strong { display: block; font-size: 15.5px; margin-bottom: 5px; letter-spacing: -0.012em; }
.steps span { font-size: 14px; color: var(--ink-2); line-height: 1.5; }

/* ---------- policy strip ---------- */

.policy-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
a.policy-chip {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 16px 17px;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
a.policy-chip:hover { text-decoration: none; border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
a.policy-chip strong { display: block; font-size: 14.5px; color: var(--ink); margin-bottom: 3px; }
a.policy-chip span { font-size: 12.5px; color: var(--ink-2); line-height: 1.45; }

/* ---------- hub ---------- */

.hero { padding: 76px 0 44px; }
.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-3);
  margin: 0 0 14px;
}
.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5.2vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.032em;
  text-wrap: balance;
  font-weight: 700;
}
.hero p.lede {
  margin: 0;
  max-width: 62ch;
  font-size: 18px;
  color: var(--ink-2);
}
.hero .stamp {
  margin-top: 26px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-2);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
}
.dot-mint { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); flex: none; }

.doc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 12px 0 20px;
}
a.doc-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: 24px 22px 22px;
  text-decoration: none;
  color: var(--ink);
  transition: box-shadow 0.16s ease, transform 0.16s ease, border-color 0.16s ease;
}
a.doc-card:hover {
  text-decoration: none;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  border-color: var(--line-strong);
}
.doc-card .ic {
  width: 38px; height: 38px;
  border-radius: 11px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid; place-items: center;
  margin-bottom: 16px;
}
.doc-card .ic svg { width: 20px; height: 20px; }
.doc-card h3 { margin: 0 0 7px; font-size: 17.5px; letter-spacing: -0.012em; }
.doc-card p { margin: 0; font-size: 14.5px; color: var(--ink-2); line-height: 1.55; }
.doc-card .more {
  margin-top: 16px;
  font-size: 13.5px;
  font-weight: 650;
  color: var(--primary);
}

.principles { padding: 42px 0 8px; }
.principles h2 { font-size: 22px; letter-spacing: -0.02em; margin: 0 0 6px; }
.principles > p { color: var(--ink-2); margin: 0 0 22px; max-width: 60ch; }
.principle-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  list-style: none;
  margin: 0; padding: 0;
}
.principle-list li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px 18px;
}
.principle-list strong { display: block; font-size: 15px; margin-bottom: 5px; }
.principle-list span { font-size: 14px; color: var(--ink-2); }

/* ---------- document pages ---------- */

.doc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 232px;
  gap: 54px;
  align-items: start;
  padding: 52px 0 20px;
}

article.doc { max-width: 74ch; }
article.doc > header { border-bottom: 1px solid var(--line); padding-bottom: 26px; margin-bottom: 8px; }
article.doc h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4.4vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
article.doc header p.summary { margin: 0; color: var(--ink-2); font-size: 17px; max-width: 62ch; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.meta span {
  font-size: 12.5px;
  color: var(--ink-2);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 11px;
}

article.doc h2 {
  margin: 44px 0 12px;
  font-size: 22px;
  letter-spacing: -0.02em;
  scroll-margin-top: 90px;
}
article.doc h2 .num {
  color: var(--mint);
  font-variant-numeric: tabular-nums;
  margin-right: 10px;
  font-weight: 700;
}
article.doc h3 { margin: 28px 0 8px; font-size: 16.5px; letter-spacing: -0.01em; }
article.doc p { margin: 0 0 14px; }
article.doc ul, article.doc ol { margin: 0 0 16px; padding-left: 22px; }
article.doc li { margin-bottom: 7px; }
article.doc li::marker { color: var(--ink-3); }
article.doc strong { font-weight: 650; }
article.doc code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 5px;
}
article.doc hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
/* Cross-links at the foot of each document. A class rather than a style
   attribute — the CSP is style-src 'self', which blocks inline styles. */
article.doc p.related { color: var(--ink-2); font-size: 14.5px; }

.callout {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--mint);
  border-radius: var(--r);
  padding: 16px 18px;
  margin: 22px 0;
  box-shadow: var(--shadow-sm);
}
.callout p:last-child { margin-bottom: 0; }
.callout .k {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.callout.warn { border-left-color: var(--gold); background: var(--gold-soft); border-color: var(--gold-line); }

.table-scroll { overflow-x: auto; margin: 0 0 20px; -webkit-overflow-scrolling: touch; }
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 460px;
  font-size: 14.5px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  background: var(--surface-2);
  font-weight: 700;
}
tbody tr:last-child td { border-bottom: 0; }

/* ---------- table of contents ---------- */

aside.toc { position: sticky; top: 88px; }
aside.toc .k {
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-3);
  margin: 0 0 10px;
}
aside.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
aside.toc li { margin: 0; }
aside.toc a {
  display: block;
  padding: 5px 0 5px 14px;
  margin-left: -1px;
  border-left: 2px solid transparent;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--ink-2);
}
aside.toc a:hover { color: var(--ink); text-decoration: none; border-left-color: var(--line-strong); }
aside.toc a.active { color: var(--primary); border-left-color: var(--primary); font-weight: 600; }

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

.site-footer {
  margin-top: 70px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.site-footer .inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 34px 22px 44px;
  display: flex;
  flex-wrap: wrap;
  gap: 26px 44px;
  align-items: flex-start;
}
.site-footer .about { max-width: 34ch; }
.site-footer .about p { margin: 10px 0 0; font-size: 13.5px; color: var(--ink-2); }
.site-footer nav { display: flex; flex-direction: column; gap: 7px; }
.site-footer nav .k {
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-3);
  margin-bottom: 2px;
}
.site-footer nav a { font-size: 14px; color: var(--ink-2); }
.site-footer nav a:hover { color: var(--primary); }
.site-footer .legal {
  width: 100%;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  font-size: 12.5px;
  color: var(--ink-3);
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .doc-layout { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 34px; }
  aside.toc { display: none; }
}

@media (max-width: 860px) {
  .steps, .policy-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .doc-grid, .get-grid { grid-template-columns: minmax(0, 1fr); }
  /* On a narrow screen the photo sits behind the text rather than beside it,
     so the scrim has to run top-to-bottom instead of left-to-right. */
  .lander-hero { background-position: 72% center, center; }
  .lander-hero::before {
    background: linear-gradient(180deg, #f5f5f7fa 0%, #f5f5f7ee 46%, #f5f5f7c4 74%, #f5f5f78a 100%);
  }
  .hero-copy { padding: 56px 0 60px; max-width: none; }
  .hero-cta { gap: 10px; }
  .btn-primary, .btn-ghost { width: 100%; justify-content: center; }
}

@media (max-width: 560px) {
  .steps, .policy-strip { grid-template-columns: minmax(0, 1fr); }
  .section { padding: 44px 0 4px; }
}

@media (max-width: 620px) {
  body { font-size: 15.5px; }
  .hero { padding: 46px 0 30px; }
  .site-header .bar { padding: 12px 16px; gap: 12px; }
  .site-header .bar { flex-wrap: wrap; row-gap: 10px; }
  .site-header a.brand { order: 1; }
  .dl { order: 2; margin-left: auto; }
  nav.top {
    order: 3;
    width: 100%;
    margin-left: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  nav.top::-webkit-scrollbar { display: none; }
  nav.top a { flex: none; }
  .wrap { padding: 0 16px; }
  .site-footer .inner { padding: 28px 16px 36px; }
}

@media print {
  .site-header, aside.toc, .site-footer nav, .doc-card .more { display: none; }
  body { background: #fff; }
  .doc-layout { display: block; padding: 0; }
  article.doc { max-width: none; }
}
