/* Public website (landing, legal, contact). Builds on the tokens in /static/app.css. */
body.site { background: var(--bg); color: var(--ink); }
.wrap { width: min(1160px, 100%); margin: 0 auto; padding: 0 24px; }
.wrap.narrow { width: min(780px, 100%); }
.site code { font-family: var(--mono); font-size: .88em; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); padding: 0 5px; border-radius: 4px; }

/* nav */
.site-nav { position: sticky; top: 0; z-index: 20; background: var(--nav-bg); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-2); }
.nav-row { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 18px; }
.logo:hover { text-decoration: none; }
.logo img { width: 26px; height: 26px; }
.logo b { color: var(--ink); font-weight: 400; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a:not(.btn) { color: var(--ink-2); font-weight: 500; }
.nav-links a:not(.btn):hover { color: var(--ink); text-decoration: none; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; border-radius: 2px; }

/* hero */
.hero { padding: 88px 0 72px; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.eyebrow { color: var(--muted); font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 18px; }
.eyebrow::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); margin-right: 9px; vertical-align: 1px; }
.hero h1 { font-size: 48px; font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; }
.hero h1 em, .section-title em { font-style: normal; color: var(--brand); }
.lead { font-size: 18px; color: var(--ink-2); margin-top: 22px; line-height: 1.6; max-width: 540px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-note { margin-top: 16px; max-width: 520px; }
.hero-shot { margin: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-lg); background: var(--card); }
.hero-shot img { display: block; width: 100%; height: auto; }

.band { border-bottom: 1px solid var(--line); background: var(--card); }
.band-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding-top: 28px; padding-bottom: 28px; }
.band-grid div { display: flex; flex-direction: column; gap: 4px; padding-left: 16px; border-left: 2px solid var(--brand); }
.band-grid span { color: var(--muted); font-size: 14px; }

/* sections */
.section { padding: 80px 0; }
.section.alt { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-title { font-weight: 700; font-size: 32px; line-height: 1.15; text-align: center; letter-spacing: -0.02em; }
.section-title.left { text-align: left; }
.section-sub { text-align: center; color: var(--muted); max-width: 640px; margin: 12px auto 0; }
.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.steps li { background: transparent; border-top: 1px solid var(--ink); padding: 18px 0 0; }
.steps h3 { margin: 12px 0 6px; font-size: 16px; }
.steps p { color: var(--ink-2); font-size: 14px; }
.step-n { font: 400 15px var(--mono); color: var(--muted); }
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.features.three { grid-template-columns: repeat(3, 1fr); margin-bottom: 20px; }
.features article { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 24px; }
.features h3 { font-size: 16px; margin-bottom: 6px; }
.features p { color: var(--ink-2); font-size: 14px; }
.split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.split p { color: var(--ink-2); margin-top: 14px; line-height: 1.65; }
.limits-card .summary-line span:last-child { font-weight: 500; color: var(--ink-2); }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; align-items: stretch; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.plan.featured { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); position: relative; }
.plan .badge { position: absolute; top: -11px; left: 24px; background: var(--ink); color: var(--card); font-size: 12px; font-weight: 500;
  letter-spacing: .04em; padding: 3px 10px; border-radius: 999px; }
.plan h3 { font-size: 18px; }
.plan .tag { color: var(--muted); font-size: 14px; }
.price { font-size: 36px; font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.price small { font-size: 14px; font-weight: 500; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--ink-2); flex: 1; }
.plan li::before { content: "—"; color: var(--brand); margin-right: 8px; }
.plans-note { margin-top: 18px; }

/* faq */
.site details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.site details summary { cursor: pointer; font-weight: 600; font-size: 16px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.site details summary::after { content: "+"; color: var(--muted); font-size: 20px; line-height: 1; }
.site details[open] summary::after { content: "–"; }
.site details p { margin-top: 10px; color: var(--ink-2); line-height: 1.65; }
.site details summary::-webkit-details-marker { display: none; }
.cta-final { background: #1b1a17; color: #f6f5f1; }
.cta-final h2, .cta-final .section-title { color: #f6f5f1; font-weight: 700; font-size: 32px; line-height: 1.15; }
.cta-final .lead { color: #c9c6bd; margin: 14px auto 28px; }
.cta-final .btn-primary { background: #f6f5f1; color: #1b1a17; border-color: #f6f5f1; }
.cta-final .btn-primary:hover { background: #ffffff; border-color: #ffffff; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0 56px; background: var(--bg); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.3fr 1fr; gap: 24px; }
.footer-grid nav { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.footer-grid nav a { color: var(--ink-2); }
.footer-grid p { margin-top: 10px; }

/* legal / simple pages */
.doc { padding: 56px 0 80px; }
.doc h1 { font-size: 34px; }
.doc h2 { font-size: 20px; margin: 32px 0 10px; }
.doc p, .doc li { color: var(--ink-2); line-height: 1.7; }
.doc ul { padding-left: 22px; }
.draft-note { margin: 18px 0 8px; }
.form-card { width: min(440px, 100%); margin: 0 auto; }

@media (max-width: 1000px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .steps, .features { grid-template-columns: repeat(2, 1fr); }
  .plans, .features.three { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 40px 0 36px; }
  .hero h1 { font-size: 34px; }
  .lead { font-size: 17px; }
  .section { padding: 56px 0; }
  .section-title { font-size: 26px; }
  .steps, .features, .band-grid, .footer-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 0; background: var(--card); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 4px; }
  .nav-links .btn { margin-top: 8px; }
}

/* PLANS_ENABLED off: no pricing anywhere (rendered server-side, so nothing flashes) */
.plans-off .plan-only { display: none !important; }
.plans-on .plans-off-only { display: none !important; }
