/* Shared marketing-site chrome: design tokens, nav, buttons, alpha bar, modal,
   footer, disclaimer, and generic components reused across pages (cards, grids,
   steps, stats, accordion, CTA bands, checklists). Page-specific sections live
   in each page's own {% block page_css %}. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink:      #0B2A24;
  --ink2:     #12332B;
  --green:    #1F7A54;
  --emerald:  #2DA97C;
  --sand:     #F2F8F5;
  --sand2:    #E7F2EC;
  --line:     #DCE7E1;
  --orange:   #B4571F;
  --orange-soft: #FFF3E9;
  --amber:    #E4823C;
  --slate:    #5A6A64;
  --muted:    #8A968F;
  --white:    #fff;
  --success:  #1F7A54;
  --radius:   16px;
  --radius-sm: 12px;
  --shadow:    0 10px 30px rgba(11,42,36,.10);
  --shadow-lg: 0 24px 60px rgba(11,42,36,.16);
  --maxw:     1160px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-size: 17px;
}

h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 .4em; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }
.section.tight { padding: 56px 0; }
.center { text-align: center; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--green); background: var(--sand2);
  padding: 7px 14px; border-radius: 999px; margin-bottom: 20px;
}
.lead { font-size: 1.2rem; color: var(--slate); max-width: 640px; }
.muted { color: var(--slate); }
.small { font-size: .9rem; }

/* ── buttons ─────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1rem;
  padding: 14px 26px; border-radius: 999px; cursor: pointer; border: 2px solid transparent;
  transition: .18s; text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #08201b; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--sand); }
.btn-lg { padding: 17px 34px; font-size: 1.08rem; }
.btn-accent { background: var(--ink); color: #fff; }
.btn-accent:hover { background: #08201b; }

/* ── alpha / seats bar ───────────────────────────── */
.alpha, .seats-bar {
  background: var(--ink); color: #dff3e9; font-size: .9rem; text-align: center;
  padding: 9px 16px;
}
.alpha b, .seats-bar b { color: #fff; }
.alpha a, .seats-bar a { color: #8fe3bd; font-weight: 700; margin-left: 8px; cursor: pointer; }
#seats-bar { display: none; }

/* ── nav ─────────────────────────────────────────── */
nav.nav, header.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px; max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
}
.brand {
  font-weight: 800; font-size: 1.4rem; letter-spacing: -.03em; color: var(--ink);
  display: flex; align-items: center; gap: 9px; text-decoration: none;
}
.brand .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--emerald); }
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink); font-weight: 600; font-size: .96rem; text-decoration: none; }
.nav-links a:hover { color: var(--green); text-decoration: none; }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-cta .link-account { font-weight: 700; font-size: .92rem; color: var(--ink); }
.burger, .hamburger {
  display: none; background: none; border: 0; cursor: pointer; font-size: 1.6rem; color: var(--ink);
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta .btn { display: none; }
  .burger, .hamburger { display: block; }
}

.mobile-nav {
  display: none; position: fixed; top: 70px; left: 0; right: 0; z-index: 39;
  background: #fff; flex-direction: column; gap: 0; padding: 8px 0 20px;
  border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  display: block; padding: 13px 24px; font-size: 15px; color: var(--ink); text-decoration: none;
}
.mobile-nav a.mobile-cta { margin-top: 8px; text-align: center; color: #fff; }

/* ── generic grids & cards ──────────────────────── */
.grid { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 820px) { .g2, .g3 { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card.sand { background: var(--sand); box-shadow: none; }
.check { list-style: none; margin: 14px 0 0; padding: 0; }
.check li { position: relative; padding-left: 30px; margin-bottom: 10px; color: var(--slate); }
.check li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--emerald); font-weight: 800; }

/* ── dark band / stats ──────────────────────────── */
.dark { background: var(--ink); color: #eafaf2; }
.dark h2, .dark h3 { color: #fff; }
.dark .lead { color: #bfe3d3; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; text-align: center; }
.stats .n { font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 800; color: #fff; letter-spacing: -.03em; }
.stats .c { color: #a9d7c4; font-size: .92rem; margin-top: 6px; }
@media (max-width: 820px) { .stats { grid-template-columns: repeat(2, 1fr); gap: 30px 18px; } }

/* ── steps ───────────────────────────────────────── */
.steps { counter-reset: s; display: grid; gap: 16px; }
.step {
  display: grid; grid-template-columns: 56px 1fr; gap: 20px; align-items: start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px;
}
.step .num {
  counter-increment: s; width: 44px; height: 44px; border-radius: 12px; background: var(--ink);
  color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.step .num::before { content: counter(s, decimal-leading-zero); }
.step .t { font-weight: 800; margin-bottom: 3px; }
.step .time { color: var(--emerald); font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; }

/* ── accordion ───────────────────────────────────── */
.acc-cat { margin-bottom: 14px; font-size: .85rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--green); }
.acc { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; overflow: hidden; background: #fff; }
.acc summary {
  cursor: pointer; padding: 18px 22px; font-weight: 700; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font-size: 1.5rem; color: var(--emerald); font-weight: 700; flex: none; }
.acc[open] summary::after { content: "–"; }
.acc .ans { padding: 0 22px 20px; color: var(--slate); }

/* ── CTA band ────────────────────────────────────── */
.ctaband { background: var(--ink); color: #fff; text-align: center; border-radius: 24px; padding: 56px 28px; margin: 0 auto; }
.ctaband h2 { color: #fff; }
.ctaband .lead { color: #bfe3d3; margin: 0 auto 26px; }

/* ── footnote ────────────────────────────────────── */
.footnote { color: var(--muted); font-size: .82rem; margin-top: 14px; }

/* ── product cards (used on landing + products pages) ─ */
.prod { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.prod .top { padding: 26px 28px; border-bottom: 1px solid var(--line); }
.prod .name { font-weight: 800; font-size: 1.3rem; }
.prod .tag { color: var(--slate); font-size: .88rem; margin-top: 2px; }
.prod .rate { font-size: 2.7rem; font-weight: 800; color: var(--green); margin: 10px 0 2px; }
.prod .apy { color: var(--orange); font-weight: 700; font-size: .95rem; }
.prod .body { padding: 22px 28px; }
.spec { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: .95rem; }
.spec:last-of-type { border-bottom: 0; }
.spec .k { color: var(--slate); }
.spec .v { font-weight: 700; }
.prod.feat { border: 2px solid var(--emerald); }

/* ── callout ─────────────────────────────────────── */
.callout { border-left: 5px solid var(--emerald); background: var(--sand); border-radius: 0 12px 12px 0; padding: 20px 24px; margin: 18px 0; }
.callout.warn { border-color: var(--amber); background: var(--orange-soft); }
.callout.warn b { color: var(--orange); }

/* ── modal ───────────────────────────────────────── */
.modal {
  position: fixed; inset: 0; background: rgba(7,30,25,.55); display: none;
  align-items: center; justify-content: center; z-index: 60; padding: 20px;
}
.modal.open { display: flex; }
.modal .panel { background: #fff; border-radius: 20px; max-width: 440px; width: 100%; padding: 30px; position: relative; box-shadow: var(--shadow-lg); }
.modal .x { position: absolute; top: 14px; right: 16px; border: 0; background: none; font-size: 1.6rem; cursor: pointer; color: var(--slate); }
.modal h3 { margin-bottom: 6px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; }
.field input, .field select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 10px; font-size: 1rem; font-family: inherit; color: var(--ink);
}
.field input:focus, .field select:focus { outline: 2px solid var(--emerald); border-color: transparent; }
.form-ok { background: var(--sand2); color: var(--green); font-weight: 700; padding: 14px; border-radius: 10px; margin-top: 8px; }

/* ── disclaimer ──────────────────────────────────── */
.disclaimer { border-top: 1px solid var(--line); padding: 24px 48px; font-size: 12px; color: var(--slate); max-width: var(--maxw); margin: 0 auto; }

/* ── footer ──────────────────────────────────────── */
.footer { background: #071e19; color: #9db8ad; padding: 56px 0 32px; font-size: .9rem; }
.footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; margin-bottom: 30px; }
.footer h4 { color: #fff; font-size: .95rem; margin-bottom: 12px; }
.footer a { color: #9db8ad; display: block; margin-bottom: 8px; text-decoration: none; }
.footer a:hover { color: #fff; }
.footer .disc { border-top: 1px solid #14352d; padding-top: 22px; color: #7fa093; font-size: .8rem; line-height: 1.55; }
.footer .disc p { margin-bottom: 10px; }
@media (max-width: 820px) { .footer .cols { grid-template-columns: 1fr; } }

/* legacy plain <footer> (legal pages) kept minimal-dark, matching brand */
footer:not(.footer) {
  background: var(--ink); color: #9db8ad; padding: 28px 48px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px; font-size: 13px;
}
footer:not(.footer) .footer-logo { font-weight: 800; font-size: 16px; color: #fff; letter-spacing: -0.02em; }
