/* Public marketing site. Reuses the design tokens from app.css. */

body.public { background: var(--surface); }
body.public .site-main { display: block; }

.site-container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Buttons (extends app.css) */
.btn-lg { padding: 12px 22px; font-size: 15px; border-radius: 10px; }
.btn-outline { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn-outline:hover { background: rgba(14,79,99,.06); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.9); backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.site-brand { display: inline-flex; align-items: center; gap: 10px; }
.site-brand:hover { text-decoration: none; }
.site-header .brand-text { color: var(--ink); font-weight: 750; font-size: 16px; }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a { color: var(--ink); font-weight: 600; font-size: 14px; }
.site-nav a:hover { color: var(--primary); text-decoration: none; }
.site-nav a.active { color: var(--primary); }
/* Header CTA: outline so it reads cleanly on the light header instead of a
   heavy dark block that matches (and bleeds into) the hero below. */
.site-nav .btn-primary { background: transparent; border-color: var(--primary); color: var(--primary); }
.site-nav .btn-primary:hover { background: var(--primary); color: #fff; }
.nav-toggle, .nav-burger { display: none; }

/* Hero */
.hero { background: radial-gradient(1200px 500px at 80% -10%, rgba(24,194,156,.18), transparent 60%), linear-gradient(160deg, #0c1722 0%, #0e4f63 100%); color: #eaf2f5; }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding: 84px 24px; }
.eyebrow { display: inline-block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--accent); margin-bottom: 14px; }
.hero h1 { font-size: 44px; line-height: 1.1; color: #fff; margin-bottom: 18px; }
.lead { font-size: 18px; color: #c6d3da; max-width: 60ch; }
.hero .lead { color: #cfe0e6; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 26px 0 18px; }
.hero-points { list-style: none; padding: 0; margin: 10px 0 0; display: flex; gap: 22px; flex-wrap: wrap; }
.hero-points li { position: relative; padding-left: 22px; color: #d7e3e8; font-size: 14px; }
.hero-points li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }

.hero-card { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: 16px; padding: 22px; box-shadow: 0 30px 60px rgba(0,0,0,.3); }
.hero-card-head { display: flex; justify-content: space-between; align-items: center; color: #b9c8cf; font-size: 13px; }
.pill { background: var(--accent); color: #06231d; font-weight: 800; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; padding: 3px 8px; border-radius: 999px; }
.hero-metric { font-size: 40px; font-weight: 800; color: #fff; margin: 12px 0 16px; display: flex; align-items: baseline; gap: 10px; }
.hero-metric span { font-size: 14px; font-weight: 500; color: #b9c8cf; }
.hero-bars { display: flex; align-items: flex-end; gap: 8px; height: 90px; }
.hero-bars span { flex: 1; background: linear-gradient(var(--accent), rgba(24,194,156,.4)); border-radius: 4px 4px 0 0; }
.hero-card-foot { display: flex; gap: 16px; margin-top: 18px; border-top: 1px solid rgba(255,255,255,.12); padding-top: 14px; }
.hero-card-foot div { display: flex; flex-direction: column; }
.hero-card-foot strong { color: #fff; font-size: 18px; }
.hero-card-foot span { color: #9fb2ba; font-size: 12px; }

/* Bands & sections */
.band { background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section { padding: 64px 24px; }
.section.narrow { max-width: 820px; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 36px; }
.section-head h2 { font-size: 30px; }
.section-head h3 { font-size: 22px; }
.section-head p { color: var(--muted); font-size: 16px; }

.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 40px 24px; text-align: center; }
.stat-block strong { display: block; font-size: 40px; font-weight: 800; color: var(--primary); }
.stat-block span { color: var(--muted); }

/* Feature cards */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.feature-ic { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 11px; background: linear-gradient(135deg, var(--primary), var(--primary-700)); color: #fff; font-weight: 800; font-size: 14px; margin-bottom: 14px; }
.feature-card h3 { font-size: 17px; }
.feature-card p { color: var(--muted); margin: 0; }

/* Steps */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.step-no { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 999px; background: var(--accent); color: #06231d; font-weight: 800; margin-bottom: 12px; }
.steps h3 { font-size: 16px; }
.steps p { color: var(--muted); margin: 0; }

/* CTA panel */
.cta-panel { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; background: linear-gradient(135deg, var(--primary), var(--primary-700)); color: #fff; border-radius: 16px; padding: 32px 36px; }
.cta-panel h2 { color: #fff; margin-bottom: 4px; }
.cta-panel p { color: #cfe0e6; margin: 0; }

/* Page hero (sub pages) */
.page-hero { background: linear-gradient(160deg, #0c1722, #0e4f63); color: #fff; padding: 64px 0; }
.page-hero.compact { padding: 48px 0; }
.page-hero h1 { color: #fff; font-size: 34px; }
.page-hero .lead { color: #cfe0e6; }

/* Prose */
.prose h2 { font-size: 22px; margin-top: 28px; }
.prose p { color: #3a4751; }
.prose a { color: var(--primary); text-decoration: underline; }
.check-list { list-style: none; padding: 0; margin: 12px 0; }
.check-list li { position: relative; padding-left: 26px; margin-bottom: 10px; color: #3a4751; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }

.notice { padding: 12px 16px; border-radius: 10px; font-size: 13px; margin-bottom: 22px; }
.notice-todo { background: #fdf0d8; color: #8a5a00; border: 1px solid #f0d9a8; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 18px; }
.faq-item summary { cursor: pointer; font-weight: 650; padding: 14px 0; list-style: none; position: relative; padding-right: 28px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 2px; top: 12px; font-size: 20px; color: var(--primary); }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { color: var(--muted); margin: 0 0 16px; }

/* Contact */
.card-form { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px; box-shadow: var(--shadow); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form textarea { width: 100%; margin-top: 5px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: #fff; color: var(--ink); resize: vertical; }
.form textarea:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.field-err { display: block; color: var(--err); font-size: 12px; font-weight: 500; margin-top: 5px; }
.form-hint { color: var(--muted); font-size: 12px; margin: 4px 0 16px; }
.contact-done { text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 48px 28px; box-shadow: var(--shadow); }
.done-mark { width: 56px; height: 56px; border-radius: 999px; background: #def5ee; color: #0a7a5d; font-size: 28px; display: grid; place-items: center; margin: 0 auto 16px; }
.contact-aside { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 28px; }
.contact-aside h3 { font-size: 15px; }
.contact-aside p { color: var(--muted); margin: 0; }
.support-cta { text-align: center; margin-top: 40px; background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 36px; }
.support-cta p { color: var(--muted); }

/* Footer */
.site-footer { background: #0c1722; color: #aebccb; margin-top: 0; }
.site-footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding: 52px 24px 32px; }
.site-footer .brand-text { color: #fff; }
.footer-tagline { color: #8295a0; max-width: 34ch; }
.footer-col h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.footer-col a { display: block; color: #aebccb; margin-bottom: 9px; font-size: 14px; }
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(255,255,255,.08); padding: 18px 24px; font-size: 13px; color: #8295a0; }
.footer-bottom a { color: #aebccb; }

/* Responsive */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 32px; padding: 56px 24px; }
  .hero h1 { font-size: 34px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .site-footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-burger { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; cursor: pointer; }
  .nav-burger span { display: block; height: 2px; width: 22px; background: var(--ink); border-radius: 2px; }
  .site-nav {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px; display: none;
  }
  .site-nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin-top: 10px; justify-content: center; }
  .nav-toggle:checked ~ .site-nav { display: flex; }
  .stats-row { grid-template-columns: 1fr; }
  .feature-grid, .steps { grid-template-columns: 1fr; }
  .field-row, .contact-aside, .site-footer-inner { grid-template-columns: 1fr; }
  .section { padding: 48px 20px; }
  .cta-panel { padding: 26px; }
}
