/* Recno site styles.
   Palette, radii AND typefaces are the app's own (src/theme/appTheme.ts):
   Bricolage Grotesque for display, Geist for body, Geist Mono for data.
   Fonts are self-hosted — a page whose argument is "nothing leaves your device"
   should not hand every visitor's IP to a font CDN before first paint.
   Both families are SIL Open Font License 1.1. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("assets/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist";
  src: url("assets/geist.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("assets/geist-mono.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --night: #0e0e11;
  --night-2: #17171b;
  --night-3: #1f1f24;
  --canvas: #f5f4f2;
  --paper: #ffffff;
  --paper-2: #eeece8;
  --ink: #16161a;
  --ink-2: #5b5a56;
  /* Darker than the app's #8e8c86 muted token: at the small sizes this text is
     set in, that value lands at 2.85-3.36:1 on these surfaces. This clears AA. */
  --ink-3: #6b6963;
  --safety: #c74312;
  /* Accent as TEXT needs more weight than accent as a fill. */
  --safety-ink: #a9360d;
  --safety-hi: #e4632f;
  --safety-tint: #fbe9e0;
  --line: #e2e0dc;
  --line-2: #d5d2cc;
  --line-dark: #2a2a31;
  --dark-text-2: #b8b6b0;
  --dark-text-3: #86847e;
  --ok: #1f6a3f;

  --display: "Bricolage Grotesque", "Trebuchet MS", ui-sans-serif, sans-serif;
  --body: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* One corner radius for every box, button and field. Phone screenshots
     keep the device's own corner so they read as the phone. */
  --r: 12px;
  --gut: clamp(20px, 5vw, 64px);
  --topbar-h: 68px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* height:auto is load-bearing: the width/height attributes on the images set a
   used height, and max-width alone would scale width only, stretching them. */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

a { color: var(--safety-ink); }

:focus-visible {
  outline: 3px solid var(--safety);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Anchor targets must clear the sticky header. */
[id] { scroll-margin-top: calc(var(--topbar-h) + 16px); }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 18px;
  z-index: 100;
}
.skip:focus { left: 8px; top: 8px; }

/* Visually hidden but always announced. Kept separate from .skip so a change to
   the skip link's focus behaviour can never reveal a form label mid-page. */
.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

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

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--safety-ink);
  margin: 0 0 clamp(18px, 2vw, 30px);
}

.eyebrow--dark { color: var(--safety-hi); }

/* The 0.95 line-height leaves the ink box slightly proud of the layout box;
   the padding/margin pair reserves that overhang so display type can never
   collide with the eyebrow above or the lead below. */
.display {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 0.95;
  margin: 0;
  padding-block-start: 0.1em;
  margin-block-start: -0.1em;
  text-wrap: balance;
}

h1.display {
  font-size: clamp(40px, 7.2vw, 84px);
  max-width: 13ch;
}

h2.display {
  font-size: clamp(32px, 4.6vw, 58px);
  max-width: 16ch;
}

.lead {
  font-size: clamp(17px, 2.1vw, 21px);
  color: var(--ink-2);
  max-width: 58ch;
  margin: 22px 0 0;
}

.band--dark .lead { color: var(--dark-text-2); }

.section-note {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 14px 0 0;
}

.band--dark .section-note { color: var(--dark-text-3); }
.band--dark .section-note a { color: var(--safety-hi); }

/* ---------- marketing shell ---------- */

.wrap {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding-inline: var(--gut);
}

.band { padding-block: clamp(72px, 11vw, 140px); }

.band--dark {
  background: var(--night);
  color: #f4f3f0;
}

/* A visible step from --canvas, unlike plain white. */
.band--paper { background: var(--paper-2); }

/* ---------- top bar (home) ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 244, 242, 0.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.topbar__in {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: var(--topbar-h);
  flex-wrap: wrap;
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 25px;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
}

.mark__icon {
  flex: none;
  display: block;
  width: 26px;
  height: 26px;
}

.foot .mark__icon { width: 24px; height: 24px; }

.topbar__links {
  display: flex;
  gap: 24px;
  margin-left: auto;
  font-size: 15px;
}

.topbar__links a {
  color: var(--ink-2);
  text-decoration: none;
  white-space: nowrap;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--r);
  padding: 13px 24px;
  font-family: var(--body);
  font-size: 17px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  background: var(--safety);
  color: #fff;
}

.btn--sm { padding: 10px 18px; font-size: 15px; }

/* ---------- hero ---------- */

.hero { padding-block: clamp(48px, 8vw, 104px) clamp(64px, 9vw, 120px); }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero h1 .accent { color: var(--safety); }

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 26px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.hero__meta span { display: inline-flex; align-items: center; gap: 7px; }

.hero__meta span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--safety);
}

/* ---------- phone + the stamp caption ---------- */

/* Real 1206x2622 captures, status bar and Dynamic Island included, so the
   image reads as the phone. A hairline edge is all the frame it needs. */
.phone {
  width: min(100%, 300px);
  margin-inline: auto;
}

.phone img {
  border-radius: 44px;
  border: 1px solid var(--line-2);
}

/* Set like the app's burned-in photo stamp: mono, uppercase, label in orange. */
.shot__cap {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.55;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-align: center;
  margin: 20px 0 0;
}

.shot__cap b {
  display: block;
  color: var(--safety-ink);
  font-weight: 500;
}

.band--dark .shot__cap { color: var(--dark-text-3); }
.band--dark .shot__cap b { color: var(--safety-hi); }

/* ---------- call to action ---------- */

.cta { max-width: 560px; }

.cta__hint {
  font-size: 15px;
  color: var(--ink-2);
  margin: 12px 0 0;
  max-width: 60ch;
}

.hero__cta { margin-top: 32px; }
.cta--inline { margin-top: clamp(40px, 5vw, 60px); }

/* ---------- counter strip ---------- */

.strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
  border-top: 1px solid var(--line);
  padding-block: clamp(36px, 5vw, 56px) clamp(48px, 7vw, 84px);
}

.stat__num {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(40px, 5vw, 60px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.stat__num span { color: var(--safety); }

.stat__label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 12px;
}

/* ---------- section head ---------- */

.head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }

/* ---------- split layout ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 68px);
  align-items: center;
}

.split--reverse .split__media { order: -1; }

/* ---------- point lists ---------- */

.points { margin: 28px 0 0; padding: 0; list-style: none; }

.points li {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.band--dark .points li { border-top-color: var(--line-dark); }
.points li:last-child { border-bottom: 1px solid var(--line); }
.band--dark .points li:last-child { border-bottom-color: var(--line-dark); }

.points strong { display: block; font-weight: 600; }
.points p { margin: 4px 0 0; color: var(--ink-2); font-size: 15px; }
.band--dark .points p { color: var(--dark-text-2); }

/* ---------- sifter scan demo ---------- */

.scan {
  background: var(--night-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--r);
  padding: clamp(20px, 3vw, 30px);
}

.scan__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.scan__title {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dark-text-3);
}

.scan__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.tile {
  position: relative;
  aspect-ratio: 1;
  min-height: 44px;
  border-radius: var(--r);
  border: 1px solid var(--line-dark);
  overflow: hidden;
  transition: opacity 0.35s ease, border-color 0.35s ease;
}

.tile__art {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.tile[data-kind="other"] .tile__art { filter: grayscale(1) brightness(0.55); }

.tile__tag {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 3px 5px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.85), transparent);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffd9c7;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.tile.is-matched {
  border-color: var(--safety-hi);
  outline: 2px solid var(--safety-hi);
  outline-offset: -2px;
}

.tile.is-matched .tile__tag { opacity: 1; transform: none; }
.tile.is-passed { opacity: 0.25; }

.tile.is-scanning::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(228, 99, 47, 0.6), transparent);
  animation: sweep 0.5s ease;
}

@keyframes sweep {
  from { transform: translateY(-100%); }
  to { transform: translateY(100%); }
}

.scan__out {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line-dark);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--dark-text-3);
  text-transform: uppercase;
}

.scan__count { color: var(--safety-hi); font-size: 22px; }

/* ---------- stamp builder ---------- */

.builder {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(20px, 3vw, 28px);
}

.plate {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--r);
  overflow: hidden;
  background-image: url("assets/plate.webp");
  background-size: cover;
  background-position: center;
}

.plate__stamp {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 30px 16px 14px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.8), transparent);
  font-family: var(--mono);
  font-size: clamp(10px, 1.4vw, 12px);
  line-height: 1.6;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff1e8;
}

.plate__stamp .is-off { display: none; }
.plate__stamp .k { color: var(--safety-hi); }

.chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }

.chip {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid var(--line-2);
  background: var(--canvas);
  color: var(--ink-2);
  border-radius: var(--r);
  padding: 10px 15px;
  cursor: pointer;
}

.chip[aria-pressed="true"] {
  background: var(--safety-tint);
  border-color: var(--safety);
  color: var(--safety-ink);
}


/* ---------- faq ---------- */

.faq { max-width: 70ch; border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); padding: 18px 0; }
.faq summary { font-weight: 600; cursor: pointer; }
.faq p { margin: 10px 0 0; color: var(--ink-2); }

/* ---------- feature cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
  gap: 18px;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 26px 24px;
}

.card h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 10px;
}

.card p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* ---------- privacy band ---------- */

.truths {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.truth {
  border: 1px solid var(--line-dark);
  border-radius: var(--r);
  padding: 22px;
  background: var(--night-2);
}

.truth h3 {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--safety-hi);
  margin: 0 0 10px;
  font-weight: 500;
}

.truth p { margin: 0; color: var(--dark-text-2); font-size: 15px; }

/* ---------- pricing line ---------- */

.plan {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 36px;
}

.plan__item {
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 20px 22px;
  background: var(--paper);
}

.plan__k {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--safety-ink);
  margin: 0 0 8px;
}

.plan__item p { margin: 0; font-size: 15px; color: var(--ink-2); }
.plan__item strong { color: var(--ink); }

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

.foot {
  border-top: 1px solid var(--line);
  padding-block: 44px 56px;
  font-size: 15px;
}

.foot__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 22px 44px;
  justify-content: space-between;
  align-items: flex-start;
}

.foot__links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot__links a { color: var(--ink-2); text-decoration: none; }

.foot__note {
  color: var(--ink-3);
  font-size: 15px;
  max-width: 62ch;
  margin: 22px 0 0;
}

/* ---------- legal pages ---------- */

.shell {
  width: min(100%, 860px);
  margin: 0 auto;
  padding: 26px var(--gut) 64px;
}

.nav {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 44px;
}

.brand {
  font-family: var(--display);
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
}

.nav-links { display: flex; gap: 20px; flex-wrap: wrap; font-size: 15px; }
.nav-links a { color: var(--ink-2); text-decoration: none; }

.legal h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(34px, 5.5vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 22px;
}

.legal h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(22px, 3.2vw, 29px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 42px 0 12px;
}

.legal p, .legal li { color: var(--ink-2); }
.legal li { margin-bottom: 8px; }
.legal strong { color: var(--ink); }

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

@media (max-width: 1024px) {
  .hero__grid,
  .split { grid-template-columns: minmax(0, 1fr); }
  .split--reverse .split__media { order: 0; }
  .hero__media { width: 100%; }
  .phone { width: min(100%, 260px); }
  .scan__grid { grid-template-columns: repeat(4, 1fr); }

  /* Section nav becomes a one-swipe rail rather than disappearing. */
  .topbar__in { padding-block: 10px; }
  .topbar__links {
    order: 3;
    width: 100%;
    margin-left: 0;
    gap: 18px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
  }
  .topbar__links::-webkit-scrollbar { display: none; }
}

@media (max-width: 560px) {
  .scan__grid { grid-template-columns: repeat(3, 1fr); }
  /* Logo and the one CTA; the section rail cost a second header row on phones. */
  .topbar__links { display: none; }
  .topbar__in { justify-content: space-between; }
  .hero { padding-block: 28px 56px; }
  .phone img { border-radius: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- print (the legal pages get saved as PDFs) ---------- */

@media print {
  .topbar, .nav, .foot, .cta, .scan, .builder { display: none; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .shell, .wrap { width: auto; max-width: none; padding: 0; }
  .legal a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 10pt; }
}
