/* Signed-out landing page. In-app pages use base.html. */
:root {
  color-scheme: light dark;
  --bg: #ffffff; --soft: #f6f7f9; --card: #ffffff; --ink: #0b1220; --muted: #566072; --line: #e5e8ee;
  --accent: #2f5bd3; --accent-ink: #ffffff; --accent-soft: #eef2fd;
  --glow: rgba(47, 91, 211, .10);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0c11; --soft: #0f1218; --card: #12151c; --ink: #eef0f4; --muted: #9aa3b2; --line: #212631;
    --accent: #8aa6ff; --accent-ink: #0a1022; --accent-soft: #161d33;
    --glow: rgba(138, 166, 255, .12);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased;
  font: 17px/1.6 Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  overflow-wrap: break-word;
}
a { color: var(--accent); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
[id] { scroll-margin-top: 84px; }
h1, h2 { margin: 0; line-height: 1.12; letter-spacing: -.025em; font-weight: 650; }
p { margin: 0; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 20; background: var(--card); padding: 8px 12px; border-radius: 8px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { font-weight: 700; letter-spacing: -.02em; font-size: 18px; color: var(--ink); text-decoration: none; }
.brand span { color: var(--accent); }
.site-nav { display: flex; gap: 24px; flex: 1; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.header-actions .link { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; padding: 8px 10px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600;
  font-size: 15px; line-height: 1; padding: 12px 18px; border-radius: 10px; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background .15s, border-color .15s, transform .15s;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, var(--ink)); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--soft); border-color: color-mix(in srgb, var(--line) 60%, var(--muted)); }
.btn-lg { padding: 15px 22px; font-size: 16px; border-radius: 12px; }
.btn-sm { padding: 9px 14px; font-size: 14px; }

/* Landing page sections */
.section { padding: 104px 0; }
.section.soft { background: var(--soft); border-block: 1px solid var(--line); }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.section h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); max-width: 22ch; }
.section .lede { color: var(--muted); font-size: 1.125rem; max-width: 60ch; margin-top: 18px; }

/* Landing: hero */
.hero { position: relative; padding: 112px 0 88px; text-align: center; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 560px; z-index: -1;
  background: radial-gradient(ellipse 60% 70% at 50% 0, var(--glow), transparent 70%);
}
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 4.75rem); letter-spacing: -.035em; line-height: 1.04; max-width: 17ch; margin: 0 auto; }
.hero .lede { color: var(--muted); font-size: clamp(1.1rem, 1.9vw, 1.3rem); line-height: 1.55; max-width: 44em; margin: 26px auto 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 38px; }

/* Landing: problem */
.problem-list { list-style: none; padding: 0; margin: 52px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.problem-list li { padding-top: 22px; border-top: 1px solid var(--line); }
.problem-list b { display: block; font-size: 1.1rem; letter-spacing: -.01em; margin-bottom: 8px; }
.problem-list span { color: var(--muted); }

/* Landing: sample call to action */
.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 40px; align-items: start; }
.shots figure { margin: 0; }
.shots img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 12px; display: block; }
.shots figcaption, .shots-note { color: var(--muted); font-size: 14px; margin-top: 10px; }
.sample-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 28px; }
.sample-cta p { color: var(--muted); font-size: 15px; max-width: 46ch; }

/* Landing: fresh vs stale */
.compare { margin-top: 52px; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--card); }
.compare-row { display: grid; grid-template-columns: 1fr 1.2fr 1.2fr; gap: 28px; padding: 26px 28px; border-top: 1px solid var(--line); }
.compare-row:first-child { border-top: 0; }
.compare-row .what { font-weight: 650; letter-spacing: -.01em; }
.compare-row .gap { color: var(--muted); }
.compare-row .fix::before { content: "RepClose"; display: block; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.facts { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.facts li { border-left: 2px solid var(--accent); padding: 2px 0 2px 18px; }
.facts b { display: block; margin-bottom: 4px; }
.facts span { color: var(--muted); font-size: 16px; }

/* Landing: how it works */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 52px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 14px; margin-bottom: 16px;
}
.steps b { display: block; font-size: 1.1rem; letter-spacing: -.01em; margin-bottom: 8px; }
.steps span { color: var(--muted); }

/* Landing: teams band and closing call */
.band { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; border: 1px solid var(--line); border-radius: 20px; padding: 40px; background: var(--card); }
.band h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); max-width: none; }
.band p { color: var(--muted); margin-top: 10px; max-width: 58ch; }
.closing { text-align: center; padding: 112px 0; position: relative; overflow: hidden; }
.closing::before { content: ""; position: absolute; inset: auto -10% -30%; height: 480px; z-index: -1; background: radial-gradient(ellipse 60% 70% at 50% 100%, var(--glow), transparent 70%); }
.closing h2 { font-size: clamp(2rem, 4.4vw, 3.25rem); max-width: 18ch; margin: 0 auto; }
.closing p { color: var(--muted); font-size: 1.15rem; margin: 18px auto 0; max-width: 50ch; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--soft); padding: 64px 0 40px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.footer-grid .footer-h { margin: 0 0 14px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-grid a { color: var(--ink); text-decoration: none; }
.footer-grid a:hover { color: var(--accent); }
.footer-blurb { color: var(--muted); max-width: 32ch; margin-top: 12px; }
.footer-base { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }

@media (max-width: 900px) {
  .section { padding: 72px 0; }
  .problem-list, .steps, .facts, .shots { grid-template-columns: 1fr; gap: 28px; }
  .compare-row { grid-template-columns: 1fr; gap: 10px; padding: 22px; }
  .band { grid-template-columns: 1fr; padding: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .site-nav { display: none; }
  .site-header .wrap { height: 58px; gap: 12px; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .hero { padding: 72px 0 56px; }
  .hero-actions .btn { width: 100%; }
  .closing { padding: 80px 0; }
  .header-actions .btn-sm { padding: 9px 12px; }
}
