/* Public homepage (views/home.php). Builds on Web Awesome tokens and the app's variables from app.css. */

.home { background: var(--surface); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 760px; }

/* Header and footer */
.site-head { position: sticky; top: 0; z-index: 10; background: var(--surface); border-bottom: 1px solid var(--line); }
.site-head-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.logo { font-weight: 700; font-size: 1.3rem; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.logo span { color: var(--brand); }
.site-nav { display: flex; align-items: center; gap: 18px; }
.site-nav > a:not(.btn) { color: var(--muted); text-decoration: none; font-weight: 700; }
.site-nav > a:not(.btn):hover { color: var(--ink); }
.site-foot { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); }
.site-foot-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Hero */
.hero { padding: 72px 0 64px; background: var(--paper); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.eyebrow { margin: 0 0 12px; color: var(--brand); font-weight: 700; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.02; text-transform: uppercase; letter-spacing: -0.02em; }
.lead { font-size: 1.2rem; line-height: 1.55; margin: 20px 0 28px; max-width: 34em; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.fine { margin: 16px 0 0; color: var(--muted); font-size: 0.92rem; }

.hero-visual { display: flex; flex-direction: column; gap: 16px; }
.mini-funnel { display: flex; gap: 3px; }
.mini-funnel span { flex: var(--grow) 1 0; min-width: 0; padding: 10px 10px 8px; background: var(--c); color: #fff;
  display: flex; flex-direction: column; font-size: 0.78rem; overflow: hidden; white-space: nowrap; }
.mini-funnel span:first-child { border-radius: var(--radius-m) 0 0 var(--radius-m); }
.mini-funnel span:last-child { border-radius: 0 var(--radius-m) var(--radius-m) 0; }
.mini-funnel b { font-size: 1.4rem; line-height: 1.1; }
.fit-cards { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; align-items: start; }
.fit-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--wa-border-radius-l);
  padding: 16px 18px; box-shadow: var(--wa-shadow-m); }
.fit-card ul { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 0.9rem; }
.fit-card li { padding-left: 20px; position: relative; }
.fit-card li::before { position: absolute; left: 0; font-weight: 700; }
.fit-card li.plus::before { content: "+"; color: var(--ok-ink); }
.fit-card li.minus::before { content: "-"; color: var(--bad-ink); }
.fit-role { margin: 0; font-weight: 700; }
.fit-role span { display: block; font-weight: 400; color: var(--muted); font-size: 0.88rem; }
.fit-score { margin: 10px 0 6px; color: var(--muted); }
.fit-score b { font-size: 2.4rem; line-height: 1; color: var(--ink); }
.fit-bar { height: 8px; border-radius: 4px; background: var(--paper); overflow: hidden; }
.fit-bar i { display: block; height: 100%; background: var(--s-offer); }
.fit-card.knockout { border-left: 4px solid var(--bad); margin-top: 28px; }
.knock { display: inline-block; margin: 10px 0 0; padding: 2px 10px; border-radius: var(--wa-border-radius-pill);
  background: var(--bad-bg); color: var(--bad-ink); font-weight: 700; font-size: 0.85rem; }

/* The pipeline colours as a section divider. */
.stripe { display: flex; height: 6px; }
.stripe i { flex: 1; background: var(--c); }

/* Sections */
.band { padding: 72px 0; }
.band.alt { background: var(--paper); }
.band h2, .cta h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.15; margin: 0 0 32px; max-width: 24em; }
.cards { display: grid; gap: 16px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.cards.features { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--wa-border-radius-l); padding: 22px 24px; }
.band.alt .card { box-shadow: var(--wa-shadow-s); }
.card h3 { margin: 0 0 8px; font-size: 1.1rem; }
.card p { margin: 0; color: var(--muted); line-height: 1.55; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 5px solid var(--c); padding-top: 14px; }
.steps h3 { margin: 0 0 8px; font-size: 1.15rem; }
.steps h3::before { content: counter(step) ". "; color: var(--muted); }
.steps p { margin: 0; color: var(--muted); line-height: 1.55; }

.principles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 32px; }
.principles li { padding-left: 16px; border-left: 3px solid var(--brand); line-height: 1.55; }
.principles strong { display: block; }

.founder { margin: 0; font-size: 1.12rem; line-height: 1.65; }
.founder p { margin: 0 0 16px; }
.founder footer { font-weight: 700; color: var(--muted); }

/* Web Awesome styles <details> as a panel with its own padding and chevron; only spacing and type here. */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq summary { font-weight: 700; }
.faq details p { margin: 0; color: var(--muted); line-height: 1.55; }

/* Final call to action and waitlist form */
.cta { padding: 80px 0; background: var(--wa-color-brand-fill-quiet); text-align: center; }
.cta h2 { margin: 0 auto 24px; }
.join-form { display: flex; gap: 10px; max-width: 520px; margin: 0 auto; }
.join-form input { flex: 1; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notice { max-width: 520px; margin: 0 auto 16px; padding: 10px 14px; border-radius: var(--radius-m); }
.notice.ok { background: var(--ok-bg); color: var(--ok-ink); }
.notice.bad { background: var(--bad-bg); color: var(--bad-ink); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .cards.three, .cards.features { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 48px 0; }
  .band { padding: 56px 0; }
  .site-nav > a:not(.btn) { display: none; }
  .site-nav { gap: 8px; }
  .site-nav .btn { padding: 0 10px; font-size: 0.9rem; }
  .cards.three, .cards.features, .steps, .principles, .fit-cards { grid-template-columns: 1fr; }
  .fit-card.knockout { margin-top: 0; }
  .mini-funnel span { font-size: 0; padding: 8px 6px; }
  .mini-funnel b { font-size: 1.1rem; }
  .join-form { flex-direction: column; }
}

/* Privacy policy and terms */
.legal { padding: 48px 0 72px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.6rem); margin: 0 0 6px; }
.legal h2 { font-size: 1.25rem; margin: 32px 0 10px; }
.legal p, .legal li { line-height: 1.6; }
.legal ul { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.legal table.mini { margin: 8px 0 12px; }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; }
.foot-links a { color: var(--muted); }
