/* NEMT Trip Solutions website. Style "E · Stone", the same palette and typeface as the app (public/css/app.css).
   Light is the default; dark follows the visitor's own setting. No scripts, no tracking, nothing loads from another host.
   Layout: one centred column, text on the left, and a single indigo "sidebar" panel as the only picture (it shows the
   app's real section names). Every colour comes from the tokens below. */

:root {
  --bg: #E7E3DC;
  --panel: #DCD6CC;
  --text: #1C1917;
  --muted: #57534E;
  --border: #C4BCAE;
  --border-strong: #78716C;
  --accent: #4338CA;
  --focus: #4338CA;
  --side: #312E81;
  --side-text: #FFFFFF;
  --side-muted: #C7D2FE;
  --side-active: #4338CA;
  --btn-bg: #1C1917;
  --btn-text: #F5F5F4;
  --btn-hover: #44403C;
  --light-btn-bg: #F5F5F4;
  --light-btn-text: #1C1917;
  --light-btn-hover: #E7E3DC;
  --logo-light-display: block;
  --logo-dark-display: none;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1C1A17;
    --panel: #292621;
    --text: #F5F5F4;
    --muted: #A8A29E;
    --border: #3D3832;
    --border-strong: #8A8378;
    --accent: #818CF8;
    --focus: #A5B4FC;
    --side: #2E2A6B;
    --side-active: #4F46E5;
    --btn-bg: #E7E3DC;
    --btn-text: #1C1917;
    --btn-hover: #F5F5F4;
    --logo-light-display: none;
    --logo-dark-display: block;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #1C1A17;
  --panel: #292621;
  --text: #F5F5F4;
  --muted: #A8A29E;
  --border: #3D3832;
  --border-strong: #8A8378;
  --accent: #818CF8;
  --focus: #A5B4FC;
  --side: #2E2A6B;
  --side-active: #4F46E5;
  --btn-bg: #E7E3DC;
  --btn-text: #1C1917;
  --btn-hover: #F5F5F4;
  --logo-light-display: none;
  --logo-dark-display: block;
  color-scheme: dark;
}

/* ========== FONT (our own copy of Manrope, SIL Open Font License, see fonts/OFL.txt) ========== */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/manrope-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ========== BASE ========== */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; }

a { color: var(--accent); text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { line-height: 1.15; margin: 0; text-wrap: balance; }
p { margin: 0; }

.wrap {
  max-width: 70rem;
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  padding: 0.6rem 1rem;
  background: var(--btn-bg);
  color: var(--btn-text);
  font-weight: 700;
  border-radius: 8px;
  transform: translateY(-300%);
}
.skip:focus { transform: none; }

/* ========== BUTTONS ========== */
.btn {
  display: inline-block;
  padding: 0.8rem 1.3rem;
  border: 2px solid var(--btn-bg);
  border-radius: 8px;
  background: var(--btn-bg);
  color: var(--btn-text);
  font-weight: 700;
  text-decoration: none;
  line-height: 1.2;
}
.btn:hover { background: var(--btn-hover); border-color: var(--btn-hover); }
.btn-plain { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-plain:hover { background: var(--panel); border-color: var(--border-strong); }
.btn-small { padding: 0.6rem 1rem; font-size: 0.95rem; }
.btn-light { background: var(--light-btn-bg); color: var(--light-btn-text); border-color: var(--light-btn-bg); }
.btn-light:hover { background: var(--light-btn-hover); border-color: var(--light-btn-hover); }

/* ========== HEADER ========== */
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding-block: 1.1rem;
}

.logo { height: 44px; width: auto; }
.logo-light { display: var(--logo-light-display); }
.logo-dark { display: var(--logo-dark-display); }

.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.site-nav a:not(.btn) { color: var(--text); font-weight: 600; text-decoration: none; }
.site-nav a:not(.btn):hover { text-decoration: underline; text-underline-offset: 0.25em; }

/* ========== HERO ========== */
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 3.5rem;
  align-items: center;
  padding-block: 3.5rem 4.5rem;
}

.eyebrow {
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2rem, 5.2vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.lead { margin-top: 1.25rem; max-width: 36rem; font-size: 1.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2rem; }
.hero-note { margin-top: 1.1rem; color: var(--muted); font-size: 0.95rem; }

/* The sidebar panel: the app's own section names, in the app's own colours. */
.app-panel {
  background: var(--side);
  color: var(--side-text);
  border-radius: 12px;
  padding: 1.4rem 1.2rem 1.2rem;
}
.app-panel img { display: block; height: 38px; width: auto; margin: 0 0.4rem 1.4rem; }
.app-panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.2rem; }
.app-panel li { padding: 0.6rem 0.8rem; border-radius: 6px; font-weight: 600; }
.app-panel li[aria-current="true"] { background: var(--side-active); }
.app-panel p { margin: 1.1rem 0.4rem 0; color: var(--side-muted); font-size: 0.85rem; }

/* ========== SECTIONS ========== */
.section .wrap { padding-block: 4rem; }
.section h2 { font-size: clamp(1.6rem, 3.4vw, 2.1rem); font-weight: 800; letter-spacing: -0.01em; }
.section-intro { margin-top: 0.75rem; max-width: 38rem; color: var(--muted); font-size: 1.1rem; }

.features {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 2.25rem 2.75rem;
}
.features li { border-top: 2px solid var(--border-strong); padding-top: 1rem; min-width: 0; }
.features h3 { font-size: 1.15rem; font-weight: 800; }
.features p { margin-top: 0.5rem; }

.band { background: var(--panel); }
.band .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
}
.band p { margin-top: 0.9rem; }
.facts { list-style: none; margin: 0; padding: 0; }
.facts li { padding: 0.9rem 0; border-top: 1px solid var(--border-strong); font-weight: 600; }
.facts li:last-child { border-bottom: 1px solid var(--border-strong); }

.steps {
  list-style: none;
  counter-reset: step;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 2.25rem 2.75rem;
}
.steps li { counter-increment: step; min-width: 0; }
.steps li::before {
  content: counter(step);
  display: block;
  margin-bottom: 0.4rem;
  color: var(--accent);
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
}
.steps h3 { font-size: 1.15rem; font-weight: 800; }
.steps p { margin-top: 0.5rem; }

.contact { background: var(--side); color: var(--side-text); }
.contact .wrap { padding-block: 4rem; }
.contact h2 { font-size: clamp(1.6rem, 3.4vw, 2.1rem); font-weight: 800; }
.contact p { margin-top: 0.9rem; max-width: 36rem; color: var(--side-muted); font-size: 1.1rem; }
.contact .address { margin-top: 1.5rem; color: var(--side-text); font-size: 1.25rem; font-weight: 800; overflow-wrap: anywhere; }
.contact .btn { margin-top: 1.5rem; }

/* ========== FOOTER ========== */
.site-footer { border-top: 1px solid var(--border-strong); }
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 1.75rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.site-footer a { color: var(--text); }

/* ========== TEXT PAGES (privacy, terms, 404) ========== */
.prose .wrap { padding-block: 3rem 5rem; }
.prose-body { max-width: 42rem; }
.prose h1 { font-size: clamp(1.9rem, 4.4vw, 2.6rem); font-weight: 800; letter-spacing: -0.015em; }
.prose h2 { margin-top: 2.25rem; font-size: 1.3rem; font-weight: 800; }
.prose p, .prose ul { margin-top: 0.8rem; }
.prose ul { padding-left: 1.3rem; }
.prose li + li { margin-top: 0.4rem; }
.prose .updated { margin-top: 0.6rem; color: var(--muted); }
.draft {
  margin-top: 1.5rem;
  padding: 1rem 1.2rem;
  background: var(--panel);
  border: 2px solid var(--border-strong);
  border-radius: 8px;
  font-weight: 600;
}

/* ========== NARROW SCREENS ========== */
@media (max-width: 52rem) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; padding-block: 2rem 3rem; }
  .band .wrap { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
  .site-nav a:not(.btn) { display: none; }
  .section .wrap, .contact .wrap { padding-block: 3rem; }
}

@media (max-width: 26rem) {
  .logo { height: 36px; }
  .hero-actions .btn { width: 100%; text-align: center; }
}
