/* ============================================================
   e-NABLE Atlanta — "Bold Blocks" design
   White ground, sky-blue accents, navy ink, big rounded blocks.
   Change the colors here and they apply site-wide.
   Contrast: white text only on --ink or --brand (both > 4.5:1);
   --sky is decoration / background for navy text.
   ============================================================ */
@font-face { font-family: "Bricolage Grotesque"; src: url("/fonts/bricolage-grotesque-latin-wght.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/fonts/figtree-latin-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/fonts/figtree-latin-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/fonts/figtree-latin-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --ink: #0B1730;          /* navy — text, dark buttons, dark blocks */
  --ink-2: #1E3A5F;        /* softer navy for lead text */
  --muted: #475569;
  --brand: #0369A1;        /* deep sky — links, Donate button */
  --brand-dark: #075985;
  --sky: #7DD3FC;          /* sky accent — decoration, number badges */
  --sky-tint: #E0F2FE;     /* light sky — hero and page-head panels */
  --sky-line: #BAE6FD;
  --soft: #F1F5F9;         /* light grey blocks */
  --line: #D6DEE8;
  --bg: #FFFFFF;
  --r-xl: 36px;
  --r-lg: 28px;
  --r-md: 20px;
  --max: 1220px;
  --font: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 1.125rem; line-height: 1.65; color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.05; color: var(--ink); margin: 0 0 .5em; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(2.6rem, 6.5vw, 5.5rem); letter-spacing: -.035em; line-height: .97; }
h2 { font-size: clamp(1.9rem, 4vw, 3.2rem); letter-spacing: -.03em; }
h3 { font-size: 1.5rem; }
p, ul, ol { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }
.narrow { max-width: 820px; }
.small { font-size: .95rem; }
.muted { color: var(--muted); }
.plain { list-style: none; padding: 0; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .75rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; top: 1rem; color: #fff; }
.prelaunch { background: var(--ink); color: var(--sky-tint); text-align: center; padding: .45rem 1rem; font-size: .9rem; }

/* Header */
.site-header { background: var(--bg); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink); font-family: var(--display); font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; }
.brand:hover { color: var(--ink); }
.brand-badge { width: 42px; height: 42px; border-radius: 999px; background: var(--sky); display: grid; place-items: center; flex: none; }
.brand-badge svg { width: 23px; height: 23px; }
.menu-toggle { display: none; font: inherit; font-weight: 700; background: var(--sky-tint); border: 0; color: var(--ink); border-radius: 999px; padding: .55rem 1.1rem; cursor: pointer; min-height: 44px; }
.site-nav { display: flex; align-items: center; gap: .5rem; }
.site-nav ul { display: flex; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.site-nav ul a { display: block; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 1rem; padding: .5rem .8rem; border-radius: 999px; }
.site-nav ul a:hover { background: var(--soft); color: var(--ink); }
.site-nav ul a[aria-current="page"] { background: var(--sky-tint); color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: .5rem; }
.lang-switch { font-weight: 700; font-size: 1rem; color: var(--brand-dark); text-decoration: none; padding: .5rem .8rem; border-radius: 999px; }
.lang-switch:hover { background: var(--soft); }

@media (max-width: 1120px) {
  .menu-toggle { display: inline-block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); flex-direction: column; align-items: stretch; padding: .75rem 1.5rem 1.5rem; box-shadow: 0 16px 32px rgba(11,23,48,.12); }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; }
  .site-nav ul a { padding: .8rem 1rem; }
  .nav-actions { justify-content: space-between; padding-top: .75rem; }
}

/* Buttons — pills */
.btn { display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.05rem; text-decoration: none; padding: .9rem 1.6rem; min-height: 48px; border-radius: 999px; border: 2px solid transparent; text-align: center; line-height: 1.2; transition: transform .12s ease, background-color .12s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #1B2B4A; color: #fff; }
.btn-accent { background: var(--brand); color: #fff; }
.btn-accent:hover { background: var(--brand-dark); color: #fff; }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--soft); color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--soft); color: var(--ink); }
.btn-disabled { background: var(--soft); color: var(--muted); border-color: var(--line); cursor: not-allowed; }
.btn-disabled:hover { transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

.pills { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.5rem; padding: 0; list-style: none; }
.pill { background: #fff; border-radius: 999px; padding: .35rem .9rem; font-size: .9rem; font-weight: 700; color: var(--brand-dark); }

/* Home hero panel */
.hero { padding: .5rem 0 0; }
.hero-panel { background: var(--sky-tint); border-radius: var(--r-xl); padding: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 4.5vw, 3.5rem); display: flex; flex-wrap: wrap; gap: 2.5rem; align-items: center; }
.hero-copy { flex: 1 1 520px; min-width: 0; }
.hero p.lead { font-size: 1.3rem; max-width: 600px; color: var(--ink-2); margin-bottom: 2rem; }
.hero-tiles { flex: 1 1 340px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.tile { border-radius: var(--r-lg); background: #fff; min-height: 160px; display: grid; place-items: center; overflow: hidden; }
.tile-tall { grid-row: span 2; min-height: 340px; }
.tile-sky { background: var(--sky); }
.tile-ink { background: var(--ink); }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile svg { width: 46%; max-width: 120px; height: auto; }

/* Stat blocks */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; list-style: none; padding: 0; margin: 1rem 0 0; }
.stats li { background: var(--soft); border-radius: var(--r-lg); padding: 1.6rem 1.75rem; }
.stats strong { display: block; font-family: var(--display); font-size: 3.6rem; line-height: 1; font-weight: 800; letter-spacing: -.03em; color: var(--ink); }
.stats span { display: block; margin-top: .5rem; color: #334155; font-size: 1rem; }
.stats li.stat-ink { background: var(--ink); }
.stats li.stat-ink strong { color: var(--sky); }
.stats li.stat-ink span { color: var(--sky-tint); }

/* Sections */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-soft { background: transparent; }
.section-tight { padding-top: 0; }
.page-head { padding: .5rem 0 0; margin-bottom: 3rem; }
.page-head .wrap > .panel, .page-head-panel { background: var(--sky-tint); border-radius: var(--r-xl); padding: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 4.5vw, 3.5rem); }
.page-head p { font-size: 1.25rem; color: var(--ink-2); max-width: 720px; margin: 0; }
.page-head h1 { font-size: clamp(2.3rem, 5.5vw, 4.4rem); }
main { padding-bottom: 3rem; }
main:focus { outline: none; }
main h2 { margin-top: 2.25rem; }
main h2:first-child { margin-top: 0; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; }
.card { background: #fff; border: 2px solid var(--ink); border-radius: var(--r-lg); padding: 1.75rem; }
.card h3 { margin-bottom: .4rem; }
.card p:last-child { margin-bottom: 0; }
.card-soft { background: var(--soft); border-color: transparent; }

/* Numbered steps: cards with sky number badges */
.steps { counter-reset: step; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; margin: 0 0 1.5rem; }
.steps li { counter-increment: step; border: 2px solid var(--ink); border-radius: var(--r-lg); padding: 1.6rem; }
.steps li::before { content: counter(step); width: 48px; height: 48px; border-radius: 999px; background: var(--sky); color: var(--ink); font-family: var(--display); font-weight: 800; font-size: 1.35rem; display: grid; place-items: center; margin-bottom: 1rem; }
.steps li strong { display: block; font-family: var(--display); font-size: 1.4rem; line-height: 1.15; letter-spacing: -.01em; margin-bottom: .35rem; }
.steps li:last-child { background: var(--ink); color: var(--sky-tint); }
.steps li:last-child strong { color: #fff; }
.steps li:last-child a { color: var(--sky); }

/* Split promo blocks (Home) */
.split { display: flex; flex-wrap: wrap; gap: 1rem; }
.block { flex: 1 1 460px; min-width: 0; border-radius: var(--r-xl); padding: clamp(1.75rem, 4vw, 2.75rem); display: flex; flex-direction: column; gap: 1.1rem; }
.block h2 { margin: 0; }
.block p { margin: 0; }
.block-soft { background: var(--soft); }
.block-sky { background: var(--sky); justify-content: space-between; }
.block-sky p { color: var(--ink); font-size: 1.15rem; }
.block-media { border-radius: var(--r-md); background: #fff; aspect-ratio: 2 / 1; display: grid; place-items: center; overflow: hidden; }
.block-media img { width: 100%; height: 100%; object-fit: cover; }
.block-media svg { width: 34%; max-width: 140px; height: auto; }

.notice { background: var(--sky-tint); border-radius: var(--r-md); padding: 1.1rem 1.4rem; color: var(--ink); }
.notice p:last-child { margin: 0; }
.callout { background: var(--sky-tint); border-radius: var(--r-xl); padding: clamp(1.5rem, 4vw, 2.5rem); }
.callout h2 { margin-top: 0; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 0 0 1.5rem; border: 2px solid var(--ink); border-radius: var(--r-lg); }
.table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.table th, .table td { text-align: left; vertical-align: top; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); }
.table tr:last-child td { border-bottom: 0; }
.table th { background: var(--sky-tint); color: var(--ink); font-family: var(--display); font-weight: 800; font-size: 1.05rem; }
@media (max-width: 700px) {
  .table-wrap { border: 0; border-radius: 0; }
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { border: 2px solid var(--ink); border-radius: var(--r-md); margin-bottom: 1rem; padding: .5rem 0; }
  .table td { border: 0; padding: .35rem 1.1rem; }
  .table td::before { content: attr(data-label); display: block; font-weight: 700; font-size: .85rem; color: var(--muted); }
}

/* Team */
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; list-style: none; padding: 0; }
.team img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin-bottom: .75rem; }

/* Device library */
.device-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem; }
.device-card { border: 2px solid var(--ink); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; background: #fff; }
.device-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--sky-tint); }
.device-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.device-body h2 { font-size: 1.6rem; margin-top: 0; }
.device-meta { margin: 0 0 1rem; font-size: .95rem; display: grid; gap: .2rem; }
.device-meta div { display: flex; gap: .4rem; }
.device-meta dt { font-weight: 700; }
.device-meta dt::after { content: ":"; }
.device-meta dd { margin: 0; }
.device-actions { margin-top: auto; display: grid; gap: .6rem; }
.order-row { display: grid; gap: .6rem; }
.device-actions .small { margin: 0; }

/* Forms */
.form-embed { background: #fff; border: 2px solid var(--ink); border-radius: var(--r-lg); padding: 1rem 1.25rem; }
.form-embed iframe { border: 0; min-height: 600px; display: block; }
.form-embed .small { margin: .5rem 0 0; }

/* Prose (policy pages) */
.prose h2 { margin-top: 2rem; font-size: 1.6rem; }
.prose li { margin-bottom: .4rem; }

/* Footer — rounded navy block */
.site-footer { padding: 0 0 1.5rem; color: #CBD5E1; }
.footer-card { background: var(--ink); border-radius: var(--r-xl); padding: clamp(2rem, 4.5vw, 3rem) clamp(1.5rem, 4.5vw, 3rem) 1.5rem; }
.site-footer a { color: var(--sky-tint); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.footer-brand { font-family: var(--display); font-size: 1.6rem; font-weight: 800; color: #fff; margin-bottom: .4rem; letter-spacing: -.02em; }
.footer-head { font-weight: 700; color: #fff; margin-bottom: .4rem; }
.footer-base { border-top: 1px solid #1E3A5F; margin-top: 2rem; padding-top: 1rem; font-size: .85rem; }
.footer-base p { margin: 0; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } .btn:hover { transform: none; } }

/* Spacing fixes */
.page-head-panel > :last-child { margin-bottom: 0; }
.wrap + .wrap.narrow, .wrap + .wrap.narrow.section { margin-top: 3rem; }
