/* The homepage only (views/home.ts). It sits on app.css, which still styles
   the search card, the hits list, Turnstile and buttons. */

.home { background: var(--wash); }
.home h1, .home h2, .home h3, .home-brand, .tier .big { font-family: "Archivo", system-ui, sans-serif; }
.home h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.15; letter-spacing: -0.025em; margin: 0 0 24px; }
.home h3 { font-size: 1.08rem; line-height: 1.3; letter-spacing: -0.01em; }
.home [id] { scroll-margin-top: 76px; }
@media (prefers-reduced-motion: no-preference) { html:has(body.home) { scroll-behavior: smooth; } }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 24px; } }
.home .home-main { max-width: none; margin: 0; padding: 0; }

.tag { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.4; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header: the brand and three section links; a phone keeps only Prices. */
.home-top { position: sticky; top: 0; z-index: 10; background: var(--paper); border-bottom: 1px solid var(--line); }
.home-top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; }
.home-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.logo { width: 28px; height: 28px; flex: none; }
.home-nav { display: flex; gap: 24px; }
.home-nav a { color: var(--ink); font-weight: 600; font-size: 0.95rem; text-decoration: none; }
.home-nav a:hover { color: var(--brand-dark); }
@media (max-width: 560px) { .home-nav a:not([href="#prices"]) { display: none; } }

/* Hero: the words and the search on the left, three sample flyers on the right. */
.hero { background: #fbf5ef; padding: 48px 0 64px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 5.2vw, 3.7rem); line-height: 1.04; letter-spacing: -0.035em; margin: 0; }
.hero .hl { color: var(--brand); }
.hero .lede { font-size: 1.2rem; color: var(--muted); margin: 14px 0 24px; }
.hero .find { border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 20px; }
.hero .find label { margin-top: 0; font-weight: 700; }
.hero .find button { width: 100%; padding: 14px 20px; font-size: 1.05rem; }
.hero-alt { color: var(--muted); margin: 16px 0 6px; }
.hero-price { margin: 0; }
.hero-price a { font-weight: 700; }

/* Three cards side by side with a small gap, so no flyer covers another's
   words; the middle one sits higher. */
.fan { position: relative; width: 100%; max-width: 580px; aspect-ratio: 10 / 7.4; justify-self: center; }
.fan-card { position: absolute; top: 7%; width: 31.5%; background: var(--paper); border-radius: 6px; overflow: hidden; box-shadow: 0 18px 40px rgba(22, 32, 42, 0.18), 0 2px 6px rgba(22, 32, 42, 0.08); }
.fan-card svg { display: block; width: 100%; height: auto; }
.fan-1 { left: 0; transform: rotate(-3deg); }
.fan-2 { left: 34.25%; top: 0; z-index: 2; }
.fan-3 { right: 0; transform: rotate(3deg); }
.fan-tag { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); z-index: 3; }

@media (max-width: 900px) {
  .hero { padding: 32px 0 48px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}

/* Bands alternate white and the page wash. */
.band { padding: 64px 0; }
.band-white { background: var(--paper); }
@media (max-width: 560px) { .band { padding: 48px 0; } }

.steps4 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.steps4 li { background: var(--wash); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; }
.steps4 .num { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; font-size: 0.9rem; }
.steps4 h3 { margin: 12px 0 6px; }
.steps4 p { margin: 0; color: var(--muted); }
@media (max-width: 900px) { .steps4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps4 { grid-template-columns: minmax(0, 1fr); } }

.split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 48px; align-items: center; }
.split-flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 900px) {
  .split, .split-flip { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .split > .features { order: -1; }
}
.features h2 { margin-bottom: 8px; }
.feature { display: flex; gap: 14px; margin-top: 20px; }
.feature h3 { margin: 0 0 4px; }
.feature p { margin: 0; color: var(--muted); }
.ic { width: 24px; height: 24px; flex: none; margin-top: 1px; color: var(--brand); }

.shot { position: relative; margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.shot img { display: block; width: 100%; height: auto; }
/* Bottom right: the empty corner under the screenshot's panel. */
.shot .tag { position: absolute; right: 12px; bottom: 12px; }

/* Prices: Saver's ladder and Max's card, the same height side by side. */
.section-lede { color: var(--muted); font-size: 1.05rem; margin: -14px 0 24px; }
.tiers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 880px; }
@media (max-width: 700px) { .tiers { grid-template-columns: minmax(0, 1fr); } }
.tier { background: var(--wash); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.tier h3 { font-size: 1.5rem; margin: 0; }
.tier-line { color: var(--muted); margin: 4px 0 18px; }
.tier-from { margin: 0; color: var(--muted); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.tier-price { margin: 0; }
.tier-price strong { font-size: 1.25rem; }
.tier-price .big { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.02em; }
.tier-for { color: var(--muted); margin: 2px 0 16px; }
.home .ladder { width: 100%; background: none; }
.home .ladder th, .home .ladder td { padding: 9px 0; border-top: 1px solid var(--line); border-bottom: 0; font-weight: 400; }
.home .ladder td { text-align: right; font-weight: 700; }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.ticks .ic { width: 18px; height: 18px; margin: 0; color: var(--ok); }
.prices-go { margin: 28px 0 0; }
.prices-go .button { margin-top: 0; }

/* A sample of the results page's chart. */
.scans { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 24px; }
.scans .tag { position: absolute; top: 16px; right: 16px; }
.scans-title { font-weight: 700; margin: 0 0 20px; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 170px; border-bottom: 1px solid var(--line); }
.bars span { flex: 1; background: var(--brand); border-radius: 4px 4px 0 0; }
.scans-axis { display: grid; grid-template-columns: 1fr 1fr; margin-top: 8px; color: var(--muted); font-size: 0.85rem; }

.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--wash); font-weight: 600; }

.faq { max-width: 780px; }
.faq h2 { margin-bottom: 8px; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { display: flex; justify-content: space-between; gap: 16px; cursor: pointer; list-style: none; font-weight: 700; font-size: 1.05rem; text-wrap: balance; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; color: var(--brand); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 10px 0 0; color: var(--muted); }

.closing { padding: 0 0 64px; }
.closing-box { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 40px; border-radius: 24px; background: var(--brand); color: #fff; }
.closing-box h2 { margin: 0; color: #fff; font-size: clamp(1.5rem, 3vw, 2rem); }
.button.button-light { margin-top: 0; background: var(--paper); color: var(--brand-dark); white-space: nowrap; }
.button.button-light:hover { background: #fff3ee; }
@media (max-width: 700px) { .closing-box { flex-direction: column; align-items: flex-start; padding: 28px 24px; } }

.home-foot { padding: 28px 0; background: var(--ink); color: #c8d0d8; font-size: 0.95rem; text-align: left; }
.home-foot-row { display: flex; align-items: center; gap: 12px 24px; flex-wrap: wrap; }
.home-foot p { flex: 1; margin: 0; }
.home-foot a { color: #fff; }
.home-brand-light { color: #fff; }
