/* ==========================================================================
   Run Your Search — marketing site
   Tokens ➝ base ➝ layout primitives ➝ components ➝ sections
   ========================================================================== */

/* --- Tokens -------------------------------------------------------------- */

:root {
  /* Color */
  --paper:      #F5F2EC;
  --paper-tint: #EFEBE3;
  --surface:    #FFFCF7;
  --ink:        #17160F;
  --cream:      #FFF9F2;
  --accent:     #C3402B;
  --peach:      #E8836A;

  --ink-80: rgba(23, 22, 15, .8);
  --ink-75: rgba(23, 22, 15, .75);
  --ink-72: rgba(23, 22, 15, .72);
  --ink-70: rgba(23, 22, 15, .7);
  --ink-65: rgba(23, 22, 15, .65);
  --ink-60: rgba(23, 22, 15, .6);
  --ink-50: rgba(23, 22, 15, .5);

  --cream-78: rgba(255, 249, 242, .78);
  --cream-75: rgba(255, 249, 242, .75);
  --cream-70: rgba(255, 249, 242, .7);
  --cream-60: rgba(255, 249, 242, .6);

  --hairline:        rgba(23, 22, 15, .12);
  --hairline-strong: rgba(23, 22, 15, .14);
  --hairline-card:   rgba(23, 22, 15, .16);
  --hairline-pill:   rgba(23, 22, 15, .2);
  --hairline-cream:  rgba(255, 249, 242, .2);

  /* Type */
  --font-body:    Archivo, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: Anton, Impact, var(--font-body);

  /* Layout */
  --shell:    1120px;
  --gutter:   24px;
  --radius:   2px;
  --section-y: 80px;
}

/* --- Base ---------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  /* Keep anchored sections clear of the sticky header. */
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color .16s ease, background-color .16s ease;
}
a:hover { color: var(--ink); }

h1, h2, h3, p, blockquote, figure, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--cream);
  font: 700 13px/1 var(--font-body);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.skip-link:focus { left: 0; color: var(--cream); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; }
}

/* --- Layout primitives --------------------------------------------------- */

.shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.band > .shell {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}

.band-hairline { border-top: 1px solid var(--hairline); }

.band-tint {
  border-top: 1px solid var(--hairline);
  background: var(--paper-tint);
}

.band-ink {
  background: var(--ink);
  color: var(--cream);
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  align-items: start;
}
.split-wide { gap: 48px; }

/* 1px hairline grid: the wrapper's background shows through the gaps. */
.hairline-grid {
  display: grid;
  gap: 1px;
  background: var(--hairline-strong);
  border: 1px solid var(--hairline-strong);
}
.hairline-grid .cell { background: var(--surface); }
.hairline-grid .cell-ink { background: var(--ink); color: var(--cream); }

/* --- Type utilities ------------------------------------------------------ */

/* Anton is reserved for short, punchy display text — never full sentences. */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
}

.h1 {
  font-size: clamp(46px, 7vw, 88px);
  line-height: .92;
  letter-spacing: -.01em;
  text-wrap: balance;
}

.h2 {
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.04;
  letter-spacing: -.005em;
}

.h3 {
  font-size: 21px;
  line-height: 1.15;
  letter-spacing: .005em;
}

.balance { text-wrap: balance; }
.accent  { color: var(--accent); }

.eyebrow {
  margin-bottom: 16px;
  font: 800 11px/1 var(--font-body);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow-peach { color: var(--peach); }

.section-lede {
  max-width: 40em;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-72);
  text-wrap: pretty;
}

/* --- Buttons ------------------------------------------------------------- */

.btn {
  display: inline-block;
  padding: 16px 28px;
  background: var(--accent);
  color: var(--cream);
  border-radius: var(--radius);
  font: 700 15px/1 var(--font-body);
  letter-spacing: .05em;
  text-transform: uppercase;
}
.btn:hover,
.btn:focus-visible {
  background: var(--ink);
  color: var(--cream);
}

.btn-sm {
  padding: 11px 18px;
  font-size: 13px;
  letter-spacing: .04em;
}

/* --- Header -------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(245, 242, 236, .94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hairline);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 14px 20px;
}

.wordmark {
  min-width: 0;
  font: 800 15px/1.2 var(--font-body);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
}
.wordmark:hover { color: var(--accent); }

.header-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
}

/* --- Hero ---------------------------------------------------------------- */

.hero {
  position: relative;
  background-image:
    linear-gradient(180deg,
      rgba(245, 242, 236, .55) 0%,
      rgba(245, 242, 236, .88) 62%,
      var(--paper) 100%),
    url("assets/hero-background.png");
  background-size: cover;
  background-position: center;
}

.hero-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 56px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 80px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 26px;
  padding: 6px 12px;
  border: 1px solid var(--hairline-pill);
  border-radius: var(--radius);
  font: 600 11px/1.35 var(--font-body);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-70);
}

.h1 { margin-bottom: 22px; }

.lede {
  margin-bottom: 12px;
  max-width: 34em;
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.55;
  color: var(--ink-75);
  text-wrap: pretty;
}

.lede-strong {
  margin-bottom: 30px;
  font-weight: 600;
  color: var(--ink);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.price-inline {
  font: 500 15px/1.3 var(--font-body);
  color: var(--ink);
}
.price-inline strong { font-weight: 700; }

.fine-print {
  margin-top: 28px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-50);
}

.portrait { position: relative; }

.portrait-frame {
  aspect-ratio: 4 / 5;
  background: #E4DFD5;
  border: 1px solid var(--hairline-strong);
  overflow: hidden;
}
.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.92);
}

.portrait-chip {
  position: absolute;
  left: -8px;
  bottom: -16px;
  padding: 12px 16px;
  background: var(--ink);
  color: var(--cream);
  font: 600 12px/1.4 var(--font-body);
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* --- How it works -------------------------------------------------------- */

#how > .shell {
  padding-top: 84px;
  padding-bottom: 76px;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 36px;
}

.step-summary {
  font: 600 12px/1.5 var(--font-body);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-50);
}

/* Fixed column counts (rather than auto-fit) so the six cells always fill
   complete rows — a leftover slot would show the hairline backdrop as a
   large empty block. */
.steps { grid-template-columns: 1fr; }

@media (min-width: 560px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}

.step {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 24px 30px;
}

.step-num {
  font: 700 13px/1 var(--font-body);
  letter-spacing: .1em;
  color: var(--accent);
}
.cell-ink .step-num { color: var(--peach); }

.cell-body {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-72);
  text-wrap: pretty;
}
.cell-ink .cell-body { color: var(--cream-78); }

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

.rule-note {
  padding-left: 16px;
  border-left: 2px solid var(--accent);
  font: 500 16px/1.5 var(--font-body);
  color: var(--ink-80);
  text-wrap: pretty;
}

/* --- Why Dan ------------------------------------------------------------- */

.prose {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 36em;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-75);
}
.prose p { text-wrap: pretty; }
.prose-strong {
  font-weight: 600;
  color: var(--ink);
}

.h2 + .prose { margin-top: 20px; }

/* Four tiles, always 2x2 — same reason as .steps above. */
.stats { grid-template-columns: repeat(2, 1fr); }

.stat { padding: 26px 22px; }

.stat-num {
  font-size: 40px;
  line-height: 1;
  letter-spacing: .005em;
}

.stat-label {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-65);
}

/* --- Testimonials -------------------------------------------------------- */

.h2-quotes {
  margin-bottom: 40px;
  max-width: 24em;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.06;
}

/* Multi-column flow rather than a grid: quotes vary a lot in length, and a
   grid row stretches every card to match its tallest neighbor, wasting
   space next to short quotes. Columns pack each card under the shortest
   column instead, so a column of short quotes can hold more of them while
   a long quote gets its own space — and it keeps working as cards are
   added or removed. */
.quote-grid {
  column-width: 290px;
  column-gap: 28px;
}

.quote {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0 0 28px;
  padding: 26px;
  border: 1px solid var(--hairline-cream);
  break-inside: avoid;
}

.quote blockquote {
  font-size: 17px;
  line-height: 1.55;
  color: var(--cream);
  text-wrap: pretty;
}

.quote figcaption {
  font: 600 12px/1.4 var(--font-body);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--cream-60);
}

.card-label {
  margin-bottom: 10px;
  font: 600 11px/1 var(--font-body);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-50);
}

/* Checklist / bullet lists */
.list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 15px;
  line-height: 1.5;
}
.list li { display: flex; gap: 12px; }
.list .marker { font-weight: 700; }

.list-slash .marker { color: var(--accent); }

/* --- Pricing ------------------------------------------------------------- */

.price-block {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 12px 0 18px;
}

.price-num {
  font-size: clamp(48px, 6vw, 68px);
  line-height: 1;
  letter-spacing: 0;
}

.price-per {
  font: 500 18px/1 var(--font-body);
  color: var(--ink-60);
}

.price-note {
  margin-bottom: 26px;
  max-width: 32em;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-70);
}

.includes-card {
  padding: 30px 28px;
  background: var(--surface);
  border: 1px solid var(--hairline-card);
}

.card-label-lg {
  margin-bottom: 20px;
  font-size: 12px;
  letter-spacing: .12em;
  color: rgba(23, 22, 15, .55);
}

.includes-card .list {
  gap: 13px;
  font-size: 16px;
  line-height: 1.45;
}

.addon-row {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline-strong);
  font: 500 15px/1.4 var(--font-body);
  color: var(--ink-75);
}

/* --- Footer -------------------------------------------------------------- */

.site-footer {
  background: var(--ink);
  color: var(--cream-70);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 44px;
  padding-bottom: 44px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-wordmark {
  font-size: 16px;
  line-height: 1;
  letter-spacing: .06em;
  color: var(--cream);
}

.footer-tagline { font-size: 14px; line-height: 1; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font: 500 14px/1 var(--font-body);
}

.footer-link { color: var(--cream-75); }
.footer-link-peach { color: var(--peach); }
.footer-link:hover,
.footer-link:focus-visible { color: var(--cream); }

/* --- Narrow viewports ---------------------------------------------------- */

@media (max-width: 600px) {
  :root {
    --gutter: 20px;
    --section-y: 60px;
  }

  #how > .shell {
    padding-top: 64px;
    padding-bottom: 60px;
  }

  .hero-inner {
    gap: 44px;
    padding-top: 52px;
    padding-bottom: 64px;
  }

  /* The chip hangs off the frame's left edge; keep it inside the gutter. */
  .portrait-chip { left: 0; }

  .section-head { margin-bottom: 28px; }
}
