/* =========================================================================
   Pathbox — design system
   Display: Bricolage Grotesque · Body: Newsreader · Data: Spline Sans Mono
   Warm "they're OK" palette: paper, teal-ink, amber beacon, sage safe.
   ========================================================================= */

:root {
  --paper:    #FAF5EE;
  --paper-2:  #F3ECE0;
  --ink:      #1C3A3E;
  --ink-soft: #44615F;
  --beacon:   #F0A23A;
  --beacon-deep: #C9692E;
  --safe:     #6E9B7C;
  --line:     #E6DBCB;

  --font-display: 'Bricolage Grotesque', system-ui, -apple-system, sans-serif;
  --font-body: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-mono: 'Spline Sans Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --wrap: 1140px;
  --radius: 18px;
  --radius-sm: 11px;
  --shadow: 0 18px 50px -28px rgba(28, 58, 62, .45);
  --shadow-sm: 0 6px 20px -12px rgba(28, 58, 62, .4);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: -.01em; margin: 0; }

a { color: var(--beacon-deep); text-underline-offset: 3px; }
img, svg { max-width: 100%; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 1.4rem; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -999px; top: .5rem; z-index: 50;
  background: var(--ink); color: var(--paper); padding: .6rem 1rem; border-radius: 8px;
}
.skip-link:focus { left: .5rem; }

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

/* ---- shared bits -------------------------------------------------------- */

.eyebrow {
  font-family: var(--font-mono);
  font-size: .76rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--beacon-deep); margin: 0 0 1rem;
}
.eyebrow--light { color: var(--beacon); }

.section-title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); max-width: 18ch; }
.section-lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 60ch; margin: .9rem 0 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
  text-decoration: none; border: 0; border-radius: 999px;
  padding: .85em 1.6em; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease;
}
.btn--beacon { background: var(--beacon); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn--beacon:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(201,105,46,.65); }
.btn--lg { font-size: 1.18rem; padding: .95em 2em; }

.btn-note { font-family: var(--font-mono); font-size: .82rem; color: var(--ink-soft); }
.btn-note--center { display: block; margin-top: 1rem; }

/* coming-soon badge (hero) */
.badge {
  display: inline-flex; align-items: center; gap: .5rem; margin: 0 0 1.2rem;
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-soft); background: #fff; border: 1px solid var(--line);
  padding: .35rem .8rem; border-radius: 999px;
}
.badge__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--beacon); animation: pulse-beacon 2.6s ease-out infinite; }
@keyframes pulse-beacon { 0% { box-shadow: 0 0 0 0 rgba(240,162,58,.55); } 70%,100% { box-shadow: 0 0 0 6px rgba(240,162,58,0); } }

/* site-wide coming-soon announcement bar */
.announce { background: var(--ink); color: var(--paper); }
.announce__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .35rem .8rem;
  padding: .6rem 1rem; text-align: center;
  font-family: var(--font-mono); font-size: .8rem;
  color: color-mix(in srgb, var(--paper) 80%, transparent);
}
.announce__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--beacon); animation: pulse-beacon 2.6s ease-out infinite; }
.announce__link { color: var(--beacon); text-decoration: none; font-weight: 500; white-space: nowrap; }
.announce__link:hover { text-decoration: underline; }

/* ---- header / nav ------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; }

.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink); }
.brand__word { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; letter-spacing: -.02em; }

.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.site-nav__link { font-family: var(--font-display); font-weight: 500; color: var(--ink); text-decoration: none; font-size: 1rem; }
.site-nav__link:hover { color: var(--beacon-deep); }
.site-nav__cta {
  font-family: var(--font-display); font-weight: 600; text-decoration: none;
  background: var(--ink); color: var(--paper); padding: .55em 1.1em; border-radius: 999px; font-size: .95rem;
}
.site-nav__cta:hover { background: var(--beacon-deep); }

.nav-toggle__btn { display: none; }

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

.hero { padding: clamp(3rem, 7vw, 6rem) 0 clamp(2.5rem, 5vw, 4rem); }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero__title { font-size: clamp(2.3rem, 5.4vw, 4rem); font-weight: 700; }
.hero__lead { font-size: 1.3rem; color: var(--ink-soft); max-width: 40ch; margin: 1.3rem 0 0; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.1rem; margin-top: 2rem; }
.hero__ios { font-family: var(--font-mono); font-size: .82rem; color: var(--ink-soft); margin: 1rem 0 0; }

/* ---- reassurance card (signature) -------------------------------------- */

.reassure {
  position: relative; margin: 0; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--line); rotate: 1.4deg;
}
.reassure__map { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; }

.reassure__chip {
  position: absolute; left: 14px; bottom: 14px;
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.94); border: 1px solid var(--line);
  padding: .5rem .8rem; border-radius: 999px; box-shadow: var(--shadow-sm);
  font-family: var(--font-mono); font-size: .8rem; color: var(--ink);
}
.reassure__name { font-weight: 500; }
.reassure__meta { color: var(--ink-soft); }
.reassure__live { width: 9px; height: 9px; border-radius: 50%; background: var(--safe); box-shadow: 0 0 0 0 rgba(110,155,124,.6); animation: live 2.4s ease-out infinite; }

.reassure__ping { transform-box: fill-box; transform-origin: center; opacity: .35; animation: ping 2.8s ease-out infinite; }
.reassure__ping--2 { animation-delay: 1.4s; }

@keyframes ping { 0% { transform: scale(.5); opacity: .5; } 80%,100% { transform: scale(2.6); opacity: 0; } }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(110,155,124,.55); } 70%,100% { box-shadow: 0 0 0 7px rgba(110,155,124,0); } }

/* ---- trust strip -------------------------------------------------------- */

.trust { border-block: 1px solid var(--line); background: var(--paper-2); }
.trust__row { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; justify-content: center; padding: 1.5rem 0; }
.trust__item { display: flex; flex-direction: column; align-items: center; text-align: center; }
.trust__big { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--ink); }
.trust__small { font-family: var(--font-mono); font-size: .76rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); }

/* ---- section rhythm ----------------------------------------------------- */

.props, .steps, .compare, .prose-section, .faq { padding: clamp(3.5rem, 7vw, 6rem) 0; }

/* ---- props -------------------------------------------------------------- */

.props__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 1rem; }
.prop {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.7rem; box-shadow: var(--shadow-sm);
}
.prop__title { font-size: 1.3rem; margin-bottom: .6rem; }
.prop__title::before { content: ""; display: block; width: 30px; height: 4px; border-radius: 4px; background: var(--beacon); margin-bottom: 1rem; }
.prop__body { color: var(--ink-soft); margin: 0; font-size: 1.05rem; }

/* ---- steps (the breadcrumb sequence) ----------------------------------- */

.steps__list { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.step { position: relative; padding-top: 1rem; }
.step__pin {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--ink); color: var(--paper);
  font-family: var(--font-mono); font-size: 1.05rem; margin-bottom: 1rem;
}
.step__title { font-size: 1.25rem; margin-bottom: .5rem; }
.step__body { color: var(--ink-soft); margin: 0; }
/* dotted route connecting the steps */
.steps__list .step:not(:first-child)::before {
  content: ""; position: absolute; top: 22px; left: -.7rem; width: .7rem; height: 0;
  border-top: 3px dotted var(--beacon); transform: translateX(-50%);
}

/* ---- compare table ------------------------------------------------------ */

.compare__scroll { overflow-x: auto; margin-top: 2rem; -webkit-overflow-scrolling: touch; }
.compare__table { width: 100%; border-collapse: collapse; min-width: 540px; font-family: var(--font-body); }
.compare__table th, .compare__table td { text-align: left; padding: 1rem 1.1rem; border-bottom: 1px solid var(--line); }
.compare__table thead th { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.compare__table tbody th { font-weight: 500; color: var(--ink-soft); font-family: var(--font-body); }
.compare__table .is-ours { background: color-mix(in srgb, var(--beacon) 14%, var(--paper)); }
.compare__table thead .is-ours { border-radius: 12px 12px 0 0; color: var(--beacon-deep); }
.compare__table td.is-ours { font-weight: 500; color: var(--ink); }

/* ---- prose -------------------------------------------------------------- */

.prose { max-width: 68ch; }
.prose h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 2.4rem 0 .8rem; }
.prose h3 { font-size: 1.35rem; margin: 1.8rem 0 .5rem; }
.prose p, .prose ul, .prose ol { color: var(--ink-soft); }
.prose a { color: var(--beacon-deep); }
.prose ul, .prose ol { padding-left: 1.2rem; }
.prose li { margin: .4rem 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4rem 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 1rem; }
.prose th, .prose td { text-align: left; padding: .75rem .9rem; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.prose thead th { font-family: var(--font-display); color: var(--ink); }
.prose blockquote { margin: 1.5rem 0; padding: .4rem 0 .4rem 1.2rem; border-left: 3px solid var(--beacon); color: var(--ink-soft); font-style: italic; }
.prose code { font-family: var(--font-mono); font-size: .9em; background: var(--paper-2); padding: .12em .4em; border-radius: 5px; }

.prose-section .prose { margin-inline: auto; }

/* ---- honesty band ------------------------------------------------------- */

.honesty { background: var(--ink); color: var(--paper); }
.honesty__inner { padding: clamp(3rem, 6vw, 5rem) 0; max-width: 760px; }
.honesty__title { font-size: clamp(1.6rem, 3.2vw, 2.3rem); color: #fff; max-width: 24ch; }
.honesty__body { margin-top: 1.2rem; font-size: 1.15rem; color: color-mix(in srgb, var(--paper) 82%, transparent); }
.honesty__body a { color: var(--beacon); }
.honesty__body strong { color: #fff; }

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

.faq__list { margin-top: 2rem; max-width: 760px; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  cursor: pointer; list-style: none; padding: 1.3rem 2rem 1.3rem 0; position: relative;
  font-family: var(--font-display); font-weight: 600; font-size: 1.2rem;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after { content: "+"; position: absolute; right: .2rem; top: 1.1rem; font-size: 1.6rem; color: var(--beacon-deep); transition: transform .2s ease; }
.faq__item[open] .faq__q::after { transform: rotate(45deg); }
.faq__a { padding-bottom: 1.4rem; color: var(--ink-soft); }
.faq__a > :first-child { margin-top: 0; }

/* ---- final cta ---------------------------------------------------------- */

.final-cta { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.final-cta__inner {
  text-align: center; background: var(--paper-2); border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px); padding: clamp(2.5rem, 5vw, 4rem) 1.5rem;
}
.final-cta__title { font-size: clamp(1.8rem, 3.6vw, 2.6rem); max-width: 20ch; margin-inline: auto; }
.final-cta__lead { color: var(--ink-soft); font-size: 1.2rem; max-width: 48ch; margin: 1rem auto 2rem; }

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

.site-footer { background: var(--ink); color: var(--paper); padding: 3.5rem 0 2rem; margin-top: 2rem; }
.site-footer .brand__word { color: #fff; }
.site-footer__inner { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; }
.site-footer__tag { color: color-mix(in srgb, var(--paper) 70%, transparent); max-width: 32ch; margin: 1rem 0 0; font-size: 1rem; }
.site-footer__nav { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem 2.5rem; align-content: start; }
.site-footer__nav a { color: color-mix(in srgb, var(--paper) 85%, transparent); text-decoration: none; font-family: var(--font-display); font-weight: 500; font-size: 1rem; }
.site-footer__nav a:hover { color: var(--beacon); }
.site-footer__legal { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12); }
.site-footer__legal p { color: color-mix(in srgb, var(--paper) 55%, transparent); font-family: var(--font-mono); font-size: .78rem; margin: 0; }

/* ---- doc pages (faq/privacy) ------------------------------------------- */

.doc { padding: clamp(3rem, 6vw, 5rem) 0; }
.doc__inner { max-width: 760px; margin-inline: auto; }
.doc__title { font-size: clamp(2rem, 4.5vw, 3rem); }
.doc__lead { color: var(--ink-soft); font-size: 1.25rem; margin-top: .8rem; }
.doc .prose { margin-top: 2rem; max-width: none; }

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

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { order: -1; max-width: 460px; }
  .props__grid, .steps__list { grid-template-columns: 1fr; }
  .steps__list .step:not(:first-child)::before { display: none; }

  .nav-toggle__btn {
    display: flex; flex-direction: column; gap: 5px; justify-content: center;
    width: 44px; height: 44px; cursor: pointer; background: none; border: 0;
  }
  .nav-toggle__btn span { display: block; height: 2.5px; width: 24px; background: var(--ink); border-radius: 2px; transition: .2s; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 0; background: var(--paper); border-bottom: 1px solid var(--line);
    padding: .5rem 1.4rem 1.2rem; box-shadow: var(--shadow-sm);
    max-height: 0; overflow: hidden; visibility: hidden; transition: max-height .25s ease;
  }
  .nav-toggle:checked ~ .site-nav { max-height: 80vh; visibility: visible; }
  .site-nav__link { padding: .9rem 0; border-bottom: 1px solid var(--line); }
  .site-nav__cta { margin-top: 1rem; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto; }
}
