/* Feeder Rater - marketing pages */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

html { font-size: 100%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { font-family: var(--font-sans); color: var(--text); background: var(--bg); line-height: 1.6; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Tokens ── */
:root {
  --bg:            #f4f7ff;
  --surface:       #ffffff;
  --line:          #ccd8f0;
  --text:          #0b1220;
  --muted:         #3a5278;
  --subtle:        #5a72a0;
  --accent:        #2d6a4f;
  --accent-hover:  #245a42;
  --accent-light:  #e8f5ee;
  --accent-border: rgba(45,106,79,0.28);
  --on-accent:     #ffffff;
  --font-sans:     'Sora', system-ui, -apple-system, sans-serif;
  --max:           48rem;
  --radius:        0.75rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg:            #090d1a;
    --surface:       #0f1628;
    --line:          rgba(255,255,255,0.08);
    --text:          #dde5f8;
    --muted:         #6888b8;
    --subtle:        #4a6090;
    --accent:        #5dbf86;
    --accent-hover:  #72c996;
    --accent-light:  rgba(93,191,134,0.14);
    --accent-border: rgba(93,191,134,0.35);
  }
}

/* ── Layout ── */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(244,247,255,0.92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: max(0.65rem, env(safe-area-inset-top)) 0 0.55rem;
}
@media (prefers-color-scheme: dark) { .site-header { background: rgba(9,13,26,0.92); } }

.header-row { display: flex; align-items: center; justify-content: space-between; max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }

.header-account {
  display: flex; align-items: center; flex-shrink: 0;
  min-height: 2.1rem;
}
.btn-nav-out {
  background: transparent; color: var(--muted);
  padding: 0.45rem 1rem; border-radius: 2rem; font-weight: 600;
  font: inherit; font-size: 0.8125rem; cursor: pointer;
  border: 1px solid var(--line); transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.btn-nav-out:hover { color: var(--text); border-color: var(--muted); background: var(--elevated-muted, transparent); text-decoration: none; }

.brand-lockup { display: flex; align-items: center; gap: 0.55rem; font-size: 0.9375rem; font-weight: 650; letter-spacing: -0.02em; color: var(--text); flex-shrink: 0; }
.brand-lockup:hover { text-decoration: none; color: var(--accent); }
.brand-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
  border-radius: 6px;
  /* Tile already carries brand color — no theme filter (same idea as Identity Swap). */
}
@media (prefers-color-scheme: dark) {
  /* Hairline so the green tile separates from near-black chrome */
  .brand-logo { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14); }
}
.brand-name {
  white-space: nowrap; font-family: var(--font-display); font-weight: 600; line-height: 1;
}

/* Desktop nav */
.nav-desktop { display: flex; align-items: center; gap: 1rem; font-size: 0.8125rem; font-weight: 500; flex-shrink: 0; }
.nav-desktop a { color: var(--subtle); transition: color 0.15s; white-space: nowrap; }
.nav-desktop a:hover { color: var(--text); text-decoration: none; }
.btn-nav { background: var(--accent); color: var(--on-accent) !important; padding: 0.45rem 1rem; border-radius: 2rem; font-weight: 600; font-size: 0.8125rem; border: 1px solid transparent; transition: opacity 0.15s; cursor: pointer; font-family: inherit; }
.btn-nav:hover { opacity: 0.88; text-decoration: none !important; }

/* Hamburger - hidden; nav always visible */
.nav-hamburger { display: none; }

/* Mobile nav drawer */
.nav-mobile { display: flex; flex-direction: column; background: var(--surface); overflow: hidden; max-height: 0; transition: max-height 0.25s ease; }
.nav-mobile[aria-hidden="false"] { max-height: 12rem; border-bottom: 1px solid var(--line); }
.nav-mobile a { font-size: 0.9375rem; font-weight: 500; color: var(--muted); padding: 0.875rem 1.5rem; border-bottom: 1px solid var(--line); display: block; }
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a:hover { color: var(--text); text-decoration: none; }
.nav-mobile-cta { color: var(--accent) !important; font-weight: 700 !important; }

/* ── Page hero ── */
.page-hero { padding: 3.5rem 1.5rem 2.5rem; text-align: center; max-width: 640px; margin: 0 auto; }
.page-hero h1 { font-family: var(--font-display); font-size: clamp(2rem, 6vw, 3rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; color: var(--text); margin-bottom: 0.875rem; }
.page-hero h1 em { color: var(--accent); font-style: normal; }
.page-hero p { font-size: 1.0625rem; color: var(--muted); line-height: 1.65; margin-bottom: 1.5rem; }
.hero-cta-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.75rem; }
.hero-free { font-size: 0.8125rem; color: var(--subtle); margin-top: 0.875rem; }

/* ── Buttons ── */
.btn-primary { display: inline-flex; align-items: center; gap: 0.4rem; background: var(--accent); color: var(--on-accent); font-size: 0.875rem; font-weight: 600; padding: 0.6rem 1.25rem; border-radius: 2rem; transition: opacity 0.15s; }
.btn-primary:hover { opacity: 0.88; text-decoration: none; color: var(--on-accent); }
.btn-secondary { display: inline-flex; align-items: center; gap: 0.4rem; background: transparent; color: var(--accent); font-size: 0.875rem; font-weight: 600; padding: 0.6rem 1.25rem; border-radius: 2rem; border: 1px solid var(--accent-border); transition: opacity 0.15s; }
.btn-secondary:hover { opacity: 0.78; text-decoration: none; }

/* ── Content sections ── */
.section { padding: 2rem 0; border-bottom: 1px solid var(--line); }
.section:last-child { border-bottom: none; }
.section-eyebrow { font-size: 0.625rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--subtle); margin-bottom: 0.5rem; }
.section-title { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; letter-spacing: -0.015em; color: var(--text); margin-bottom: 0.5rem; line-height: 1.25; }
.section-lead { font-size: 0.9375rem; color: var(--muted); line-height: 1.65; max-width: 38rem; margin-bottom: 1.5rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

/* ── Step cards ── */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0.75rem; margin-bottom: 1.5rem; }
.step-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.125rem 1rem; }
.step-num { font-size: 0.625rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.4rem; }
.step-title { font-size: 0.9375rem; font-weight: 650; color: var(--text); margin-bottom: 0.3rem; letter-spacing: -0.01em; }
.step-desc { font-size: 0.8125rem; color: var(--muted); line-height: 1.55; }

/* ── Aspect carousel ── */
.aspect-grid {
  display: flex; gap: 0.75rem; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  padding-bottom: 0.75rem; margin-bottom: 0.75rem; scrollbar-width: thin; scrollbar-color: var(--line) transparent;
  -webkit-mask-image: linear-gradient(to right, black calc(100% - 2.5rem), transparent 100%);
          mask-image: linear-gradient(to right, black calc(100% - 2.5rem), transparent 100%);
}
.aspect-grid::-webkit-scrollbar { height: 4px; }
.aspect-grid::-webkit-scrollbar-track { background: transparent; }
.aspect-grid::-webkit-scrollbar-thumb { background: var(--line); border-radius: 2px; }
.aspect-card { flex: 0 0 148px; scroll-snap-align: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.125rem 1rem; }
.aspect-icon { width: 2rem; height: 2rem; border-radius: 0.5rem; background: var(--accent-light); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 0.875rem; margin-bottom: 0.75rem; }
.aspect-name { font-size: 0.9375rem; font-weight: 650; color: var(--text); letter-spacing: -0.01em; margin-bottom: 0.3rem; }
.aspect-desc { font-size: 0.8125rem; color: var(--muted); line-height: 1.55; }

/* ── Score flow diagram ── */
.score-flow { display: flex; align-items: center; justify-content: center; gap: 0; margin: 1.75rem 0 0.5rem; flex-wrap: nowrap; }
.score-flow-step { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; flex: 1; max-width: 120px; }
.score-flow-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--accent-light); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 1.25rem; }
.score-flow-label { font-size: 0.75rem; font-weight: 600; color: var(--text); text-align: center; line-height: 1.3; }
.score-flow-sub { font-size: 0.6875rem; color: var(--muted); text-align: center; line-height: 1.3; }
.score-flow-arrow { color: var(--line); font-size: 1rem; flex-shrink: 0; margin: 0 0.25rem; padding-bottom: 1.5rem; }
@media (max-width: 480px) {
  .score-flow-step { max-width: 80px; }
  .score-flow-icon { width: 42px; height: 42px; font-size: 1rem; border-radius: 10px; }
  .score-flow-label { font-size: 0.6875rem; }
  .score-flow-sub { display: none; }
}

/* ── Plan cards ── */
.plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0.75rem; margin-bottom: 1.5rem; }
.plan-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1rem; display: flex; flex-direction: column; }
.plan-feats { flex: 1; }
.plan-card-pro { border-color: var(--accent-border); background: var(--accent-light); }
.plan-tier { font-size: 0.625rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--subtle); margin-bottom: 0.4rem; }
.plan-tier-pro { color: var(--accent); }
.plan-price { font-size: 1.75rem; font-weight: 900; letter-spacing: -0.04em; color: var(--text); margin-bottom: 1rem; }
.plan-feats { list-style: none; font-size: 0.8125rem; color: var(--muted); display: flex; flex-direction: column; gap: 0.45rem; margin-bottom: 1.25rem; }
.plan-feats li::before { content: '✓ '; color: var(--accent); font-weight: 700; }
.btn-plan { display: block; text-align: center; padding: 0.6rem 1rem; border-radius: 2rem; font-size: 0.875rem; font-weight: 600; transition: opacity 0.15s; }
.btn-plan:hover { opacity: 0.85; text-decoration: none; }
.btn-plan-free { background: var(--line); color: var(--text); }
.btn-plan-pro { background: var(--accent); color: var(--on-accent); }

/* ── Note ── */
.note { font-size: 0.8125rem; color: var(--muted); line-height: 1.6; padding: 0.875rem 1rem; background: var(--surface); border-left: 2px solid var(--line); }

/* ── Footer ── */
.site-footer { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: 0.8125rem; color: var(--subtle); padding-bottom: 2rem; text-align: center; }
.site-footer p { margin-bottom: 0.6rem; }
.site-footer p:last-child { margin-bottom: 0; }
.site-footer a { color: var(--subtle); transition: color 0.15s; }
.site-footer a:hover { color: var(--text); text-decoration: none; }
.footer-mg img { height: 16px; width: auto; vertical-align: middle; opacity: 0.45; transition: opacity 0.15s; }
.site-footer a:hover .footer-mg img { opacity: 0.8; }
.footer-copy { font-size: 0.75rem; margin-top: 0.75rem; }

/* ── Prose pages ── */
.main { padding: 2.5rem 0 4rem; }
.lead { font-size: 1.0625rem; color: var(--muted); margin-bottom: 2.5rem; }
.updated { font-size: 0.8125rem; color: var(--subtle); margin-bottom: 2rem; }
h1 { font-family: var(--font-display); font-size: clamp(1.75rem, 5vw, 2.5rem); font-weight: 600; letter-spacing: -0.015em; line-height: 1.15; margin-bottom: 0.75rem; }
h2 { font-size: 1.25rem; font-weight: 700; margin: 2rem 0 0.75rem; }
p { color: var(--muted); margin-bottom: 1rem; }
ul { padding-left: 1.25rem; margin-bottom: 0.75rem; }
li { font-size: 0.9375rem; color: var(--muted); margin-bottom: 0.4rem; }
.aspects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 0.75rem; margin: 1.5rem 0; }
.aspect { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.125rem; }
.aspect-name { font-weight: 700; font-size: 0.9375rem; margin-bottom: 0.25rem; }
.aspect-desc { font-size: 0.8125rem; color: var(--muted); }
.cta-box { background: var(--accent-light); border: 1px solid var(--accent-border); border-radius: var(--radius); padding: 1.5rem; text-align: center; margin-top: 2.5rem; }
.cta-box h2 { margin-top: 0; }
.cta-box p { margin-bottom: 1.25rem; }
