/* The search and guide pages (scripts/seo/build.mjs). Same paper, ink, walnut and type as the home page
   (src/index.css, src/routes/landing.css), in plain CSS so the pages need no JavaScript. Light and dark follow the
   device. Everything straight: no tilted cards or labels. */
@font-face { font-family: 'Newsreader'; src: url('/seo/newsreader.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/seo/inter.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root { color-scheme: light dark; --paper: #f6f4ee; --surface: #ffffff; --ink: #1c1b18; --muted: #6b665c; --line: #e8e4da; --accent: #6e4428; --tint: #efe7dc; --band: #2b2118; --band-ink: #f3ece2; --band-muted: #cfc3b4; }
@media (prefers-color-scheme: dark) {
  :root { --paper: #121210; --surface: #1d1c19; --ink: #f3f0e9; --muted: #a8a296; --line: #2c2a26; --accent: #d9b896; --tint: #2a221b; --band: #1d1813; }
}
* { box-sizing: border-box; min-width: 0; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 Inter, -apple-system, system-ui, sans-serif; overflow-x: clip; }
a { color: var(--accent); }
img { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: Newsreader, Georgia, serif; font-weight: 500; letter-spacing: -0.015em; line-height: 1.12; margin: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(5vw, 16px, env(safe-area-inset-left, 0px)); padding-right: max(5vw, 16px, env(safe-area-inset-right, 0px)); }
.wrap.narrow { max-width: 820px; }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; }
.brand { display: flex; }
.brand img { height: 22px; width: auto; }
.top nav { display: flex; align-items: center; gap: 22px; font-size: 15px; font-weight: 600; }
.top nav a:not(.btn) { color: var(--ink); text-decoration: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; }
.btn.small { height: 36px; padding: 0 16px; font-size: 14px; }
.btn.primary { background: var(--accent); color: var(--paper); }
.btn.ghost { color: var(--ink); border: 1px solid var(--line); background: var(--surface); }
.btn.outline { color: var(--band-ink); border: 1px solid color-mix(in srgb, var(--band-ink) 35%, transparent); }
.store { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 18px 0 14px; border-radius: 12px; background: #000; color: #fff; text-decoration: none; }
.store span { display: grid; line-height: 1.05; text-align: left; }
.store small { font-size: 11px; }
.store b { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.store.light { background: var(--band-ink); color: var(--band); }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Breadcrumb */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); padding-top: 28px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }

/* Hero: the answer first, then the screen */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: clamp(32px, 6vw, 88px); align-items: center; padding: 24px 0 56px; }
.hero.solo { grid-template-columns: minmax(0, 1fr); padding-bottom: 32px; }
h1 { font-size: clamp(36px, 5vw, 56px); margin-bottom: 20px; max-width: 18ch; }
.hero.solo h1 { max-width: 22ch; }
.answer { font-size: 19px; line-height: 1.55; margin: 0 0 28px; max-width: 58ch; padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.meta { color: var(--muted); font-size: 15px; margin: -12px 0 0; }
.phone { margin: 0; justify-self: center; width: 100%; max-width: 280px; border-radius: 40px; overflow: hidden; background: #f4f1ea; box-shadow: 0 0 0 9px #1c1b18, 0 30px 60px rgba(40, 30, 10, 0.22); }
.phone img { display: block; width: 100%; }

/* Steps */
.steps { border-top: 1px solid var(--line); padding: 48px 0; }
.steps h2, .prose h2, .faq h2, .related h2, .compare h2 { font-size: clamp(28px, 3.4vw, 36px); margin-bottom: 20px; }
.steps ol { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
.steps li::before { content: counter(s); display: block; font: 500 32px/1 Newsreader, Georgia, serif; color: var(--accent); margin-bottom: 12px; }

/* Long-form sections */
.prose { border-top: 1px solid var(--line); padding: 44px 0; display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 16px 48px; }
.prose h2 { margin: 0; }
.prose > :not(h2) { grid-column: 2; }
.prose.wide { display: block; }
.prose.wide h2 { margin-bottom: 20px; }
.prose p { margin: 0 0 14px; max-width: 64ch; }
.prose ul { margin: 0; padding-left: 20px; max-width: 64ch; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--accent); }

/* Comparison table */
.compare { border-top: 1px solid var(--line); padding: 48px 0; }
.scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--line); }
tbody tr:last-child > * { border-bottom: 0; }
thead th { font-size: 14px; color: var(--muted); font-weight: 600; }
thead th:nth-child(2) { color: var(--accent); }
tbody th { font-weight: 600; width: 30%; }
td:nth-child(2) { background: color-mix(in srgb, var(--tint) 60%, transparent); }
.plans thead th:nth-child(2) { color: var(--muted); }
.plans thead th:nth-child(3) { color: var(--accent); }
.plans td:nth-child(2) { background: none; }
.plans td:nth-child(3) { background: color-mix(in srgb, var(--tint) 60%, transparent); }
.note { font-size: 14px; color: var(--muted); margin: 12px 0 0; }

/* FAQ */
.faq { border-top: 1px solid var(--line); padding: 48px 0; max-width: 820px; }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; font-weight: 600; font-size: 18px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--accent); font-size: 22px; line-height: 1; }
details[open] summary::after { content: '\2212'; }
details p { margin: 0 0 20px; color: var(--muted); max-width: 64ch; }

/* Related pages and the guides list */
.related { border-top: 1px solid var(--line); padding: 48px 0 64px; }
.related ul, .hub { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.related li, .hub li { border-top: 1px solid var(--line); }
.related a, .hub a { display: grid; gap: 4px; padding: 18px 0; text-decoration: none; color: var(--ink); }
.related b, .hub b { font: 500 21px/1.2 Newsreader, Georgia, serif; }
.related a:hover b, .hub a:hover b { color: var(--accent); }
.related span, .hub span { color: var(--muted); font-size: 15px; line-height: 1.5; }

/* Closing band and footer */
.cta { background: var(--band); color: var(--band-ink); padding: 56px 0; }
.cta .wrap { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between; }
.cta h2 { font-size: clamp(32px, 4vw, 44px); margin-bottom: 8px; }
.cta p { margin: 0; color: var(--band-muted); }
footer { padding: 48px 0 calc(48px + env(safe-area-inset-bottom, 0px)); font-size: 15px; color: var(--muted); }
footer .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 32px; }
footer img { height: 20px; width: auto; }
footer p { margin: 10px 0 0; max-width: 260px; }
footer .cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
footer h2 { font: 600 13px/1.4 Inter, system-ui, sans-serif; color: var(--ink); letter-spacing: 0; margin-bottom: 10px; }
footer h2.gap { margin-top: 20px; }
footer a { display: block; color: var(--muted); text-decoration: none; padding: 3px 0; }
footer a:hover { color: var(--accent); }

@media (max-width: 860px) {
  .prose { grid-template-columns: minmax(0, 1fr); }
  .prose > :not(h2) { grid-column: 1; }
  footer .wrap { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .hero { grid-template-columns: minmax(0, 1fr); padding-bottom: 40px; }
  .phone { max-width: 220px; }
  .answer { font-size: 17px; padding: 16px 18px; }
  .related ul, .hub { grid-template-columns: minmax(0, 1fr); }
  .top nav { gap: 14px; }
  th, td { padding: 12px 10px; font-size: 14px; }
  tbody th { width: 34%; }
}
@media (max-width: 420px) {
  footer .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .top nav a:not(.btn) { display: none; }
}
