/* Fossick landing page
   Tokens: Navy #1B2A4A · Gold #E8B84B · Paper #F7F4EE · Ink-muted #4B5771
   Type: serif display (document register) + system sans (native app register) + mono (data/status) */

:root {
  --navy: #1B2A4A;
  --navy-2: #24365c;
  --gold: #E8B84B;
  --gold-deep: #C9962E;
  --gold-ink: #8A6512; /* text-safe gold: 4.8:1 on --paper, meets WCAG AA */
  --paper: #F7F4EE;
  --paper-raised: #FFFFFF;
  --ink: #1B2A4A;
  --ink-muted: #4B5771;
  --hairline: rgba(27, 42, 74, 0.14);
  --hairline-on-dark: rgba(247, 244, 238, 0.18);
  --good: #3F6C4E;

  --font-display: 'Iowan Old Style', 'Palatino Linotype', 'Book Antiqua', Georgia, serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', 'Cascadia Code', 'Roboto Mono', Menlo, Consolas, monospace;

  --max: 1120px;
  --radius: 10px;
  --dur: 0.55s;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

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

img, svg { max-width: 100%; display: block; }

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

a { color: inherit; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: var(--paper);
  padding: 12px 18px;
  z-index: 100;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 2.5px solid var(--navy);
  outline-offset: 3px;
  border-radius: 4px;
}
/* Dark sections need a light-on-dark ring — navy-on-navy would be invisible. */
.proof :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--gold);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.01em;
  margin: 0;
}

h1 { font-size: clamp(2.15rem, 4.4vw, 3.5rem); line-height: 1.12; }
h2 { font-size: clamp(1.65rem, 3.2vw, 2.35rem); line-height: 1.2; }
h3 { font-size: 1.15rem; line-height: 1.35; }

p { margin: 0; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin: 0 0 12px;
}
.eyebrow-on-dark { color: var(--gold); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 26px;
  border-radius: 8px;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 1px 0 rgba(27,42,74,0.08);
}
.btn-primary:hover { background: var(--gold-deep); }
.btn-primary:active { transform: translateY(1px); box-shadow: none; }

.btn-ghost {
  background: transparent;
  color: var(--navy);
  padding: 14px 4px;
  text-decoration: underline;
  text-decoration-color: var(--hairline);
  text-underline-offset: 4px;
}
.btn-ghost:hover { text-decoration-color: var(--navy); }

.btn-small { padding: 9px 18px; font-size: 0.9rem; }
.btn-full { width: 100%; }

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
  .btn-primary:active { transform: none; }
}

/* ---------- legal pages (terms.html / privacy.html) ---------- */
.legal-main {
  padding: 56px 0 88px;
}
.legal-main .wrap {
  max-width: 760px;
}
.legal-main h1 {
  margin-bottom: 8px;
}
.legal-meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-muted);
  margin-bottom: 36px;
}
.legal-main h2 {
  font-size: 1.25rem;
  margin: 36px 0 10px;
}
.legal-main p,
.legal-main li {
  line-height: 1.7;
}
.legal-main ul {
  margin: 10px 0;
  padding-left: 22px;
}
.legal-main li {
  margin: 6px 0;
}
.legal-main a {
  color: var(--gold-ink);
  text-underline-offset: 3px;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 244, 238, 0.88);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--hairline);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--navy);
}
.brand-word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.site-nav {
  display: none;
  gap: 28px;
  font-size: 0.94rem;
}
.site-nav a { text-decoration: none; color: var(--ink-muted); }
.site-nav a:hover { color: var(--navy); }
@media (min-width: 780px) {
  .site-nav { display: flex; }
}

/* ---------- reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--dur) ease-out, transform var(--dur) ease-out;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- hero ---------- */
.hero { padding: 64px 0 88px; }
.hero-row {
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 900px) {
  .hero-row { grid-template-columns: 1.05fr 0.95fr; gap: 56px; }
}

.hero-sub {
  margin-top: 20px;
  font-size: 1.09rem;
  line-height: 1.7;
  color: var(--ink-muted);
  max-width: 46ch;
}
.hero-actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}
.hero-fineprint {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.status-chip {
  margin-top: 28px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--paper-raised);
  border: 1px solid var(--hairline);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-muted);
}
.status-chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 0 3px rgba(63, 108, 78, 0.15);
  flex-shrink: 0;
}

/* hero search panel mock */
.panel-mock {
  background: var(--paper-raised);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  box-shadow: 0 24px 60px -20px rgba(27, 42, 74, 0.28);
  padding: 18px;
  max-width: 460px;
  margin-left: auto;
}
.panel-mock-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 8px;
  background: var(--paper);
  border: 1px solid var(--hairline);
  color: var(--navy);
  font-size: 0.92rem;
}
.panel-mock-results { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.panel-mock-results li {
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--hairline);
}
.panel-mock-results li:first-child { border-color: rgba(232, 184, 75, 0.55); background: rgba(232, 184, 75, 0.07); }
.result-row-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.result-name { font-size: 0.88rem; font-weight: 600; color: var(--navy); }
.result-score { font-size: 0.6rem; color: var(--gold-deep); letter-spacing: 1px; }
.result-snippet { margin: 6px 0 0; font-size: 0.82rem; color: var(--ink-muted); line-height: 1.5; }
.result-snippet mark { background: rgba(232, 184, 75, 0.35); color: var(--navy); padding: 0 2px; border-radius: 2px; }
.result-path { display: block; margin-top: 6px; font-family: var(--font-mono); font-size: 0.68rem; color: var(--ink-muted); opacity: 0.8; }
.panel-mock-hint {
  margin-top: 14px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-muted);
  opacity: 0.75;
}

/* ---------- proof / unplug demo (dark band, the one bold move) ---------- */
.proof {
  background: var(--navy);
  color: var(--paper);
  padding: 88px 0;
}
.proof-head { max-width: 62ch; }
.proof h2 { color: var(--paper); }
.proof-sub { margin-top: 16px; font-size: 1.05rem; line-height: 1.7; color: rgba(247, 244, 238, 0.78); }

.proof-body {
  margin-top: 48px;
  display: grid;
  gap: 32px;
}
@media (min-width: 860px) {
  .proof-body { grid-template-columns: 1.4fr 1fr; align-items: start; }
}

.video-frame { margin: 0; }
.video-frame-inner {
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--hairline-on-dark);
  background: linear-gradient(145deg, #223559, #16223d);
}
.video-placeholder {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: rgba(247, 244, 238, 0.85);
  font-size: 0.92rem;
}
.video-frame figcaption {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: rgba(247, 244, 238, 0.6);
}

.signature-widget {
  background: rgba(247, 244, 238, 0.05);
  border: 1px solid var(--hairline-on-dark);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}
.sig-caption { font-size: 0.78rem; color: rgba(247, 244, 238, 0.55); max-width: 30ch; }

.sig-svg .sig-wifi { animation: sigWifi 6s infinite; transform-origin: 78px 80px; }
.sig-svg .sig-strike {
  stroke-dasharray: 130;
  stroke-dashoffset: 130;
  animation: sigStrike 6s infinite;
}
.sig-svg .sig-result { opacity: 0; animation: sigResult 6s infinite; }

@keyframes sigWifi {
  0%, 20% { opacity: 1; }
  32%, 100% { opacity: 0.25; }
}
@keyframes sigStrike {
  0%, 18% { stroke-dashoffset: 130; opacity: 0; }
  30% { stroke-dashoffset: 0; opacity: 1; }
  42%, 100% { stroke-dashoffset: 0; opacity: 1; }
}
@keyframes sigResult {
  0%, 34% { opacity: 0; transform: translateY(6px); }
  46%, 92% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .sig-svg .sig-wifi, .sig-svg .sig-strike, .sig-svg .sig-result { animation: none; }
  .sig-svg .sig-wifi { opacity: 0.25; }
  .sig-svg .sig-strike { stroke-dashoffset: 0; opacity: 1; }
  .sig-svg .sig-result { opacity: 1; transform: none; }
}

/* ---------- screenshots ---------- */
.screens { padding: 92px 0; }
.screens h2 { margin-top: 4px; max-width: 26ch; }
.screens-grid {
  margin-top: 44px;
  display: grid;
  gap: 28px;
}
@media (min-width: 860px) {
  .screens-grid { grid-template-columns: repeat(3, 1fr); }
}
.screen-card { margin: 0; }
.screen-card figcaption {
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--ink-muted);
  line-height: 1.55;
}
.screen-card figcaption strong { color: var(--navy); }

.mockup {
  background: var(--paper-raised);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 16px 36px -18px rgba(27, 42, 74, 0.25);
  min-height: 230px;
  display: flex;
  flex-direction: column;
}
.mockup-search { justify-content: center; padding: 8px 0; }
.mockup-titlebar {
  padding: 10px 14px;
  border-bottom: 1px solid var(--hairline);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ink-muted);
}
.mockup-body { padding: 16px; }
.mockup-path { font-size: 0.82rem; color: var(--ink-muted); margin: 0 0 14px; }
.mockup-progress { height: 8px; border-radius: 999px; background: var(--paper); overflow: hidden; }
.mockup-progress-fill { width: 68%; height: 100%; background: var(--gold); }
.mockup-stats { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 0.82rem; color: var(--ink-muted); }
.mockup-stats strong { color: var(--navy); }
.mockup-stats span { opacity: 0.75; }

.mockup-search-input {
  margin: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 7px;
  background: var(--paper);
  border: 1px solid var(--hairline);
  color: var(--navy);
  font-size: 0.82rem;
}
.mockup-search-results { list-style: none; margin: 0 16px; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 0.82rem; }
.mockup-search-results li { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 7px; border: 1px solid var(--hairline); color: var(--navy); }
.mockup-search-results .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }
.mockup-search-results .dot.dim { background: var(--gold); opacity: 0.55; }
.mockup-search-results .dot.dim2 { background: var(--gold); opacity: 0.3; }

.mockup-folders { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.mockup-folders li { display: flex; flex-direction: column; gap: 3px; font-size: 0.85rem; color: var(--navy); padding-bottom: 10px; border-bottom: 1px solid var(--hairline); }
.mockup-folders li:last-child { border-bottom: none; padding-bottom: 0; }
.mockup-folders .muted { font-size: 0.72rem; color: var(--ink-muted); font-family: var(--font-mono); }
.mockup-btn { margin-top: 14px; font-family: var(--font-body); font-size: 0.78rem; font-weight: 600; color: var(--navy); background: var(--paper); border: 1px solid var(--hairline); border-radius: 6px; padding: 8px 12px; }

/* ---------- how it works ---------- */
.how { padding: 92px 0; }
.how h2 { max-width: 30ch; }
.how-steps {
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 36px;
}
@media (min-width: 780px) {
  .how-steps { grid-template-columns: repeat(3, 1fr); gap: 28px; }
}
.how-mark {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--gold-ink);
  margin-bottom: 10px;
}
.how-steps h3 { margin-bottom: 8px; }
.how-steps p { color: var(--ink-muted); font-size: 0.96rem; line-height: 1.65; }

/* ---------- pricing ---------- */
.pricing { padding: 92px 0; }
.pricing-sub { margin-top: 14px; color: var(--ink-muted); }
.price-card {
  margin-top: 40px;
  max-width: 420px;
  background: var(--paper-raised);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 36px;
  box-shadow: 0 20px 50px -24px rgba(27, 42, 74, 0.3);
}
.price-card-head { display: flex; flex-direction: column; gap: 10px; padding-bottom: 22px; border-bottom: 1px solid var(--hairline); }
.price-card-name { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.price-card-amount { font-family: var(--font-display); font-size: 2.6rem; color: var(--navy); }
.price-card-amount .currency { font-size: 1.4rem; vertical-align: top; margin-right: 2px; }
.price-card-amount .period { font-family: var(--font-body); font-size: 1rem; color: var(--ink-muted); font-weight: 400; }
.price-card-features { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; font-size: 0.94rem; }
.price-card-features li { padding-left: 22px; position: relative; color: var(--ink); }
.price-card-features li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
}
.price-card .btn-full { margin-top: 26px; }
.price-card-fine { margin-top: 16px; font-size: 0.82rem; color: var(--ink-muted); line-height: 1.55; }

/* ---------- faq ---------- */
.faq { padding: 92px 0 104px; }
.faq-list { margin-top: 40px; max-width: 74ch; }
.faq-list details {
  border-bottom: 1px solid var(--hairline);
  padding: 20px 0;
}
.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--navy);
  font-size: 1.02rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--gold-ink);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list p {
  margin-top: 14px;
  color: var(--ink-muted);
  font-size: 0.96rem;
  line-height: 1.7;
  max-width: 64ch;
}
.faq-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: var(--hairline);
  text-underline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  .faq-list summary::after { transition: none; }
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(247, 244, 238, 0.75);
  padding: 40px 0;
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand-footer { color: var(--paper); }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; font-size: 0.88rem; }
.footer-links a { text-decoration: none; color: rgba(247, 244, 238, 0.75); }
.footer-links a:hover { color: var(--paper); }
.footer-copy { font-size: 0.82rem; color: rgba(247, 244, 238, 0.62); width: 100%; }
@media (min-width: 780px) {
  .footer-copy { width: auto; }
}

/* ---------- download page ---------- */
.dl-hero { padding: 64px 0 32px; text-align: center; }
.dl-hero .eyebrow { justify-content: center; }
.dl-hero h1 { max-width: 20ch; margin: 0 auto; }
.dl-sub { margin-top: 14px; font-family: var(--font-mono); font-size: 0.9rem; color: var(--ink-muted); }

.dl-grid {
  margin: 44px auto 0;
  max-width: 720px;
  display: grid;
  gap: 24px;
  text-align: left;
}
@media (min-width: 640px) {
  .dl-grid { grid-template-columns: 1fr 1fr; }
}

.dl-card {
  position: relative;
  background: var(--paper-raised);
  border: 1.5px solid var(--hairline);
  border-radius: 14px;
  padding: 32px 28px;
  box-shadow: 0 20px 50px -28px rgba(27, 42, 74, 0.3);
}
.dl-card.is-recommended { border-color: var(--gold); }
.dl-card-recommended {
  /* visibility (not display) so the badge's row height reserves the same
     space on every card — otherwise the card without a badge has its icon,
     heading, and button sitting higher than the recommended card's. */
  visibility: hidden;
  display: inline-block;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-ink);
  background: rgba(232, 184, 75, 0.16);
  padding: 4px 10px;
  border-radius: 999px;
}
.dl-card-recommended.is-visible { visibility: visible; }
.dl-icon { margin-bottom: 14px; }
.dl-card h2 { margin-bottom: 6px; }
.dl-req { font-size: 0.85rem; color: var(--ink-muted); margin-bottom: 20px; min-height: 3.2em; }
.dl-meta { margin-top: 12px; font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-muted); text-align: center; }
.dl-fine { margin-top: 10px; font-size: 0.8rem; color: var(--ink-muted); }

.dl-fallback {
  margin: 28px auto 0;
  max-width: 480px;
  font-size: 0.88rem;
  color: var(--ink-muted);
}
.dl-fallback a { color: var(--navy); text-decoration: underline; text-decoration-color: var(--hairline); }

.dl-help { padding: 24px 0 96px; }
.dl-help-inner {
  max-width: 68ch;
  padding: 32px;
  background: var(--paper-raised);
  border: 1px solid var(--hairline);
  border-radius: 12px;
}
.dl-help-inner h2 { font-size: 1.3rem; margin-bottom: 14px; }
.dl-help-inner p { color: var(--ink-muted); line-height: 1.7; }
.dl-help-inner .faq-link { margin-top: 14px; }
