/* ============================================================
   CordIQ - sections.css
   Process · Work · Testimonials · Pricing · About · FAQ · Form
   Same Geist-derived token set as main.css.
   ============================================================ */

/* ---------- Shared section heading ---------- */
.sec-head { max-width: 46rem; margin-bottom: var(--s-12); }
.sec-title {
  font-size: var(--display-2);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin-bottom: var(--s-6);
}
.sec-sub { color: var(--fg-muted); max-width: 36rem; }

/* ============================================================
   PROCESS
   ============================================================ */
.process {
  padding: var(--section-y) 0;
  background: var(--bg-elev);
  border-block: 1px solid var(--border);
}
.process-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--s-6);
  counter-reset: step;
}
.process-step { position: relative; padding-top: var(--s-8); }
/* Connector rail across the top of the row */
.process-step::before {
  content: "";
  position: absolute;
  top: 5px; left: 0; right: calc(var(--s-6) * -1);
  height: 1px;
  background: var(--border);
}
.process-step:last-child::before { right: 0; }
.process-step::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--bg-elev);
  border: 1.5px solid var(--border-strong);
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
.process-step:hover::after {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 14px rgba(170, 180, 255, 0.55);
}
.process-num {
  display: block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--fg-faint);
  margin-bottom: var(--s-3);
}
.process-step h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: -0.012em;
  margin-bottom: var(--s-3);
}
.process-step p { font-size: var(--text-sm); color: var(--fg-muted); }
.process-note {
  margin-top: var(--s-12);
  padding: var(--s-6);
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent);
  border-radius: var(--radius);
  background: rgba(170, 180, 255, 0.04);
  font-size: var(--text-sm);
  color: var(--fg-muted);
  display: flex;
  align-items: center;
  gap: var(--s-6);
}
.process-note b { color: var(--fg); font-weight: 600; }
.process-note-icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: rgba(170, 180, 255, 0.1);
  border: 1px solid rgba(170, 180, 255, 0.2);
}
.process-note-icon svg { width: 20px; height: 20px; }
.process-note-body { flex: 1; }
.process-note-body p { margin: 0; }
.process-note-tags {
  flex-shrink: 0;
  display: flex;
  gap: var(--s-2);
  flex-wrap: wrap;
  justify-content: flex-end;
}
.process-note-tags span {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  white-space: nowrap;
}
.process-note-tags svg { width: 13px; height: 13px; color: var(--hue-teal); }
@media (max-width: 860px) {
  .process-note { flex-direction: column; align-items: flex-start; gap: var(--s-4); }
  .process-note-tags { justify-content: flex-start; }
}
@media (max-width: 1020px) {
  .process-list { grid-template-columns: repeat(2, 1fr); gap: var(--s-8) var(--s-6); }
  .process-step::before { right: 0; }
}
@media (max-width: 560px) { .process-list { grid-template-columns: 1fr; } }

/* ============================================================
   WORK / CASE STUDIES
   ============================================================ */
.work { padding: var(--section-y) 0; }
.work-grid { display: grid; gap: var(--s-4); }
.case {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: var(--s-12);
  align-items: center;
  padding: var(--s-12);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: linear-gradient(150deg, var(--surface) 0%, var(--bg-elev) 70%);
  transition: border-color 0.35s;
}
.case:hover { border-color: var(--border-strong); }
.case-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  margin-bottom: var(--s-6);
}
.case h3 {
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1.14;
  margin-bottom: var(--s-4);
}
.case-body p { color: var(--fg-muted); font-size: var(--text-sm); margin-bottom: var(--s-4); }
.case-body p:last-child { margin-bottom: 0; }
.case-body .label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: var(--s-2);
}
/* Right-hand column when a case has real media. Cases without a .case-side
   still work - .case is a 2-col grid and .case-metrics sits there directly. */
.case-side { display: grid; gap: var(--s-4); align-content: center; }
.case-shot {
  position: relative;
  display: block;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #0b0c12;
  cursor: pointer;
  transition: border-color 0.3s, transform 0.3s var(--ease-out);
}
.case-shot img { display: block; width: 100%; height: auto; }
.case-shot:hover { border-color: var(--accent); transform: translateY(-2px); }
.case-shot-badge {
  position: absolute;
  right: var(--s-3);
  bottom: var(--s-3);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--fg);
  background: rgba(10, 11, 16, 0.78);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  backdrop-filter: blur(6px);
}
.case-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-6);
  padding: var(--s-8);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(0, 0, 0, 0.22);
}
.case-metric b {
  display: block;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: var(--s-2);
  font-variant-numeric: tabular-nums;
}
.case-metric span { font-size: var(--text-xs); color: var(--fg-faint); }
.case-stack {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: var(--s-6);
  padding-top: var(--s-6);
  border-top: 1px solid var(--border);
}
.case-stack li {
  list-style: none;
  font-size: var(--text-xs);
  color: var(--fg-faint);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
}
.case-actions { margin-top: var(--s-6); }
/* Sits under a short case list so a single study doesn't read as a thin section */
.work-note {
  margin-top: var(--s-8);
  text-align: center;
  font-size: var(--text-sm);
  color: var(--fg-faint);
}
.work-note a { color: var(--fg-muted); text-decoration: underline; text-underline-offset: 3px; }
.work-note a:hover { color: var(--fg); }
.case-more {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--fg);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 0.6rem 1.2rem;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s, transform 0.25s var(--ease-out);
}
.case-more:hover { border-color: rgba(255, 255, 255, 0.4); background: rgba(255, 255, 255, 0.05); transform: translateY(-2px); }
.case-more svg { width: 15px; height: 15px; transition: transform 0.35s var(--ease-out); }
.case-more:hover svg { transform: translateX(3px); }
@media (max-width: 900px) {
  .case { grid-template-columns: 1fr; gap: var(--s-8); padding: var(--s-8); }
}

/* ============================================================
   CASE MODAL  (native <dialog>, driven by initCaseModals in main.js)
   ============================================================ */
.case-modal {
  width: min(980px, 92vw);
  max-height: 88vh;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--fg);
  overflow: visible;
  /* The global `* { margin: 0 }` reset kills the UA `margin: auto` that centers a
     modal <dialog>; restore it here or the dialog pins to the top-left corner. */
  margin: auto;
}
.case-modal::backdrop {
  background: rgba(6, 7, 12, 0.66);
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.case-modal.is-open::backdrop { opacity: 1; }

.cm-inner {
  position: relative;
  max-height: 88vh;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: scale(0.965) translateY(12px);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
  /* Slim themed scrollbar instead of the chunky default */
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}
.cm-inner::-webkit-scrollbar { width: 8px; }
.cm-inner::-webkit-scrollbar-track { background: transparent; }
.cm-inner::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
.cm-inner::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.28); background-clip: padding-box; }
.case-modal.is-open .cm-inner { opacity: 1; transform: none; }

/* Sits on the dialog (not the scrolling .cm-inner) so it stays put while the
   body scrolls. */
.cm-close {
  position: absolute;
  top: var(--s-4); right: var(--s-4);
  z-index: 4;
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--fg);
  background: rgba(13, 14, 21, 0.7);
  border: 1px solid var(--border-strong);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  cursor: pointer;
  opacity: 0;
  transition: background 0.25s, transform 0.25s var(--ease-out), opacity 0.4s var(--ease-out);
}
.case-modal.is-open .cm-close { opacity: 1; }
.cm-close:hover { background: rgba(13, 14, 21, 0.95); transform: rotate(90deg); }
.cm-close svg { width: 18px; height: 18px; }

.cm-header { padding: var(--s-12) var(--s-12) 0; }
.cm-tag {
  display: inline-flex;
  align-items: center;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  margin-bottom: var(--s-4);
}
.cm-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.cm-gallery { padding: var(--s-8) var(--s-12) 0; }
.cm-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #0b0c12;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
}
.cm-stage img, .cm-stage video { width: 100%; height: 100%; object-fit: contain; }
.cm-thumbs { display: flex; gap: var(--s-3); margin-top: var(--s-4); flex-wrap: wrap; }
.cm-thumb {
  width: 104px;
  aspect-ratio: 16 / 9;
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--fg-faint);
  transition: border-color 0.25s, transform 0.25s var(--ease-out);
}
.cm-thumb:hover { transform: translateY(-2px); }
.cm-thumb[aria-current="true"] { border-color: var(--accent); }
.cm-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cm-thumb-ph {
  display: grid;
  place-items: center;
  gap: 2px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.cm-thumb-ph svg { width: 16px; height: 16px; opacity: 0.6; }

/* Placeholder shown on the stage until real media is dropped in */
.cm-ph {
  display: grid;
  place-items: center;
  gap: var(--s-3);
  text-align: center;
  color: var(--fg-faint);
  padding: var(--s-8);
}
.cm-ph svg { width: 38px; height: 38px; opacity: 0.5; }
.cm-ph span { font-size: var(--text-sm); font-weight: 600; color: var(--fg-muted); }
.cm-ph small { font-size: var(--text-xs); }

/* Honesty note under a metrics block whose figures are product facts, not
   client-reported outcomes. */
.cm-note {
  margin-top: var(--s-4);
  font-size: var(--text-xs);
  line-height: 1.6;
  color: var(--fg-faint);
}
.cm-detail { padding: var(--s-8) var(--s-12) var(--s-12); }
.cm-cols { display: grid; grid-template-columns: 1.5fr 1fr; gap: var(--s-12); margin-bottom: var(--s-8); }
.cm-story > div { margin-bottom: var(--s-6); }
.cm-story > div:last-child { margin-bottom: 0; }
.cm-story .label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: var(--s-2);
}
.cm-story p { font-size: var(--text-sm); color: var(--fg-muted); line-height: 1.7; }
.cm-aside { display: flex; flex-direction: column; gap: var(--s-6); }
.cm-aside .case-metrics { grid-template-columns: 1fr 1fr; }
.cm-detail .btn { width: 100%; }

@media (max-width: 760px) {
  .cm-header { padding: var(--s-8) var(--s-6) 0; }
  .cm-gallery { padding: var(--s-6) var(--s-6) 0; }
  .cm-detail { padding: var(--s-6) var(--s-6) var(--s-8); }
  .cm-cols { grid-template-columns: 1fr; gap: var(--s-8); }
}
@media (prefers-reduced-motion: reduce) {
  .case-modal .cm-inner, .case-modal::backdrop, .case-modal .cm-close { transition: none; }
  .case-modal .cm-inner { opacity: 1; transform: none; }
  .case-modal .cm-close { opacity: 1; }
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.quotes {
  padding: var(--section-y) 0;
  background: var(--bg-elev);
  border-block: 1px solid var(--border);
}
/* Two rows drift in opposite directions (see initMarquee in main.js). Scales to
   any number of reviews and has no ragged bottom. Static wrapped grid is the
   no-JS / reduced-motion fallback. */
.reviews-marquee {
  position: relative;
  overflow: hidden;
}
/* Edge fades so cards dissolve in/out rather than hard-clip at the borders */
.reviews-marquee::before,
.reviews-marquee::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 11%;
  z-index: 2;
  pointer-events: none;
}
.reviews-marquee::before { left: 0; background: linear-gradient(to right, var(--bg-elev), transparent); }
.reviews-marquee::after { right: 0; background: linear-gradient(to left, var(--bg-elev), transparent); }

.marquee-row {
  display: flex;
  flex-wrap: wrap;              /* fallback: static centered grid when JS is off */
  justify-content: center;
  align-items: flex-start;
  gap: var(--s-4);
}
.marquee-row + .marquee-row { margin-top: var(--s-4); }
.marquee-row.is-marquee {
  flex-wrap: nowrap;
  justify-content: flex-start;
  width: max-content;
  animation: marqueeScroll var(--marquee-dur, 55s) linear infinite;
  will-change: transform;
}
.marquee-row.is-marquee.reverse { animation-direction: reverse; }
.reviews-marquee:hover .marquee-row.is-marquee { animation-play-state: paused; }
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-50% - var(--s-4) / 2)); }
}

.quote {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  width: min(340px, 82vw);
  padding: var(--s-8);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.015);
  transition: border-color 0.3s, transform 0.4s var(--ease-out);
}
.quote:hover { border-color: var(--border-strong); transform: translateY(-4px); }
/* Badge is the first child in badged cards; align-self keeps it top-right in
   normal flow so it can never overlap the stars at any card width. */
.quote-badge {
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(170, 180, 255, 0.2);
  border-radius: 999px;
  padding: 0.28rem 0.6rem;
  margin-bottom: var(--s-3);
}
.quote-badge svg { width: 11px; height: 11px; }
.quote-stars { display: flex; gap: 3px; margin-bottom: var(--s-6); color: var(--hue-amber); }
.quote-stars svg { width: 15px; height: 15px; }
.quote blockquote {
  font-size: var(--text-sm);
  line-height: 1.65;
  color: var(--fg);
  margin-bottom: var(--s-6);
}
/* Inline Twemoji SVGs - render identically on every OS (Win10 lacks newer emoji) */
.q-emoji {
  display: inline-block;
  width: 1.15em;
  height: 1.15em;
  vertical-align: -0.22em;
  margin: 0 0.03em;
}
.quote-by {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding-top: var(--s-4);
  border-top: 1px solid var(--border);
}
.quote-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--fg);
  background: linear-gradient(145deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border-strong);
  flex-shrink: 0;
}
.quote-by cite { font-style: normal; font-size: var(--text-sm); font-weight: 600; display: block; }
.quote-by small { font-size: var(--text-xs); color: var(--fg-faint); }
.quote-src {
  margin-top: var(--s-8);
  font-size: var(--text-sm);
  color: var(--fg-faint);
  text-align: center;
}
.quote-src a {
  color: var(--fg-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.25s;
}
.quote-src a:hover { color: var(--fg); }
.quote-verify {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
}
.quote-verify svg { width: 14px; height: 14px; color: var(--hue-teal); }
/* Respect reduced-motion: freeze the drift, fall back to the static wrapped grid */
@media (prefers-reduced-motion: reduce) {
  .marquee-row.is-marquee {
    flex-wrap: wrap;
    justify-content: center;
    width: auto;
    animation: none;
    transform: none;
  }
}

/* ============================================================
   PRICING
   ============================================================ */
.pricing { padding: var(--section-y) 0; }

/* Shared baseline - what every project includes, so the cards only carry diffs */
.incl-label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: var(--s-3);
}
.incl {
  list-style: none;
  display: grid;
  /* auto-fit so the row reflows 5→4→3→2→1 on its own; no hand-tuned breakpoints */
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--s-4) var(--s-6);
  margin-bottom: var(--s-8);
  padding: var(--s-6);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.015);
}
.incl li {
  display: flex;
  align-items: flex-start;
  gap: var(--s-2);
  font-size: var(--text-xs);
  line-height: 1.45;
  color: var(--fg-muted);
  min-width: 0;
}
.incl svg { width: 13px; height: 13px; color: var(--hue-teal); flex-shrink: 0; margin-top: 2px; }

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
  align-items: start;
}
.plan {
  display: flex;
  flex-direction: column;
  padding: var(--s-8);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--surface) 0%, var(--bg-elev) 100%);
  transition: border-color 0.3s;
}
.plan:hover { border-color: var(--border-strong); }
.plan-featured {
  border-color: rgba(170, 180, 255, 0.3);
  background: linear-gradient(160deg, rgba(170, 180, 255, 0.09) 0%, var(--bg-elev) 65%);
}
.plan-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  margin-bottom: var(--s-4);
}
.plan-top h3 { font-size: var(--text-lg); font-weight: 600; letter-spacing: -0.012em; }
.plan-badge {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--accent);
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
}
.plan-desc { font-size: var(--text-sm); color: var(--fg-muted); margin-bottom: var(--s-8); }
.plan-price {
  display: flex;
  align-items: baseline;
  gap: var(--s-2);
  margin-bottom: var(--s-8);
  padding-bottom: var(--s-8);
  border-bottom: 1px solid var(--border);
}
.plan-price b {
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}
.plan-price span { font-size: var(--text-sm); color: var(--fg-faint); }
.plan-feats { list-style: none; display: grid; gap: var(--s-3); margin-bottom: var(--s-8); flex: 1; }
.plan-feats li {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  font-size: var(--text-sm);
  color: var(--fg-muted);
}
.plan-feats svg { width: 15px; height: 15px; color: var(--hue-teal); flex-shrink: 0; margin-top: 4px; }
.plan .btn { width: 100%; }

.plans-note {
  margin-top: var(--s-6);
  text-align: center;
  font-size: var(--text-sm);
  color: var(--fg-faint);
}
.plans-note a { color: var(--fg-muted); text-decoration: underline; text-underline-offset: 3px; }
.plans-note a:hover { color: var(--fg); }

/* Cost drivers - makes the quote read as principled, not plucked */
.drivers {
  margin-top: var(--s-16);
  padding-top: var(--s-12);
  border-top: 1px solid var(--border);
}
.drivers-title {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: var(--s-8);
}
.drivers-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-8) var(--s-6);
}
.driver { position: relative; padding-left: var(--s-6); border-left: 1px solid var(--border); }
.driver-num {
  display: block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--hue-indigo);
  opacity: 0.7;
  margin-bottom: var(--s-3);
}
.driver h4 {
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: -0.012em;
  margin-bottom: var(--s-2);
}
.driver p { font-size: var(--text-sm); color: var(--fg-muted); }

/* ---- Optional add-on: post-warranty care plan ----
   Deliberately styled as secondary to .plan cards - smaller type, flat surface,
   no full-width CTA - so it reads as an add-on, not a fourth build tier. */
.upkeep {
  margin-top: var(--s-16);
  padding: var(--s-8);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.015);
}
.upkeep-head { max-width: 44rem; margin-bottom: var(--s-8); }
.upkeep-tag {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hue-indigo);
  opacity: 0.85;
  margin-bottom: var(--s-4);
}
.upkeep-head h3 {
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: var(--s-4);
}
.upkeep-head h3 em { font-style: normal; color: var(--accent); }
.upkeep-head > p { font-size: var(--text-sm); color: var(--fg-muted); }

.upkeep-plans {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-4);
}
.up-plan {
  padding: var(--s-6);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elev);
  transition: border-color 0.3s;
}
.up-plan:hover { border-color: var(--border-strong); }
.up-plan-featured {
  border-color: rgba(170, 180, 255, 0.28);
  background: linear-gradient(160deg, rgba(170, 180, 255, 0.07) 0%, var(--bg-elev) 70%);
}
.up-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-3);
  flex-wrap: wrap;
  margin-bottom: var(--s-2);
}
.up-top h4 { font-size: var(--text-lg); font-weight: 600; letter-spacing: -0.012em; }
.up-price { display: flex; align-items: baseline; gap: 0.2rem; }
.up-price b { font-size: var(--text-xl); font-weight: 700; letter-spacing: -0.03em; }
.up-price span { font-size: var(--text-xs); color: var(--fg-faint); }
.up-desc {
  font-size: var(--text-sm);
  color: var(--fg-muted);
  padding-bottom: var(--s-4);
  margin-bottom: var(--s-4);
  border-bottom: 1px solid var(--border);
}
.up-feats { list-style: none; display: grid; gap: var(--s-2); }
.up-feats li {
  position: relative;
  padding-left: var(--s-4);
  font-size: var(--text-sm);
  color: var(--fg-muted);
}
.up-feats li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--hue-teal);
  opacity: 0.75;
}
.upkeep-foot {
  margin-top: var(--s-6);
  font-size: var(--text-xs);
  line-height: 1.7;
  color: var(--fg-faint);
}
.upkeep-foot b { color: var(--fg-muted); font-weight: 600; }
.upkeep-foot a { color: var(--fg-muted); text-decoration: underline; text-underline-offset: 3px; }
.upkeep-foot a:hover { color: var(--fg); }
/* The 5-across pill needs a wide container; below that it wraps into a card */
@media (max-width: 1080px) {
  .drivers-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .plans { grid-template-columns: 1fr; }
  .upkeep-plans { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .upkeep { padding: var(--s-6); }
}
@media (max-width: 560px) {
  .drivers-list { grid-template-columns: 1fr; }
}

/* ============================================================
   ABOUT / TEAM
   ============================================================ */
.about {
  padding: var(--section-y) 0;
  background: var(--bg-elev);
  border-block: 1px solid var(--border);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
}
/* Identity chip: mark, name, role. No per-person bio by design - the two are
   equal partners with no role split, so anything written about one applies to
   the other, and the section heading already carries that message. */
.person {
  display: flex;
  align-items: center;
  gap: var(--s-6);
  padding: var(--s-8);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.015);
  transition: border-color 0.3s;
}
.person:hover { border-color: var(--border-strong); }
/* Founder marks are dark logos on white - the white bg becomes the tile so they
   stay legible against the dark card. */
.person-photo {
  width: 76px; height: 76px;
  border-radius: 18px;
  flex-shrink: 0;
  object-fit: cover;
  background: #fff;
  border: 1px solid var(--border-strong);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}
.person h3 { font-size: var(--text-lg); font-weight: 600; letter-spacing: -0.012em; }
.person-role {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: var(--s-1) 0 0;
}
/* Too wide for one line on a phone, so pin the job title together - otherwise it
   breaks as "Co-founder · Bot / developer". */
.person-role span { white-space: nowrap; }
@media (max-width: 760px) { .about-grid { grid-template-columns: 1fr; } }

/* ============================================================
   FAQ
   ============================================================ */
.faq { padding: var(--section-y) 0; }
.faq-layout { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: var(--s-12); align-items: start; }
.faq-list { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
/* Each question is an <h3> wrapping its <button> - real heading semantics for
   crawlers and for screen-reader heading navigation. The h3 is purely
   structural, so `font: inherit` strips the UA's larger size and bold before
   they can reach the button, which sets its own size and weight below. */
.faq-h { font: inherit; }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-6);
  text-align: left;
  padding: var(--s-6) 0;
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fg);
  transition: color 0.25s;
}
.faq-q:hover { color: var(--accent); }
.faq-icon {
  position: relative;
  width: 16px; height: 16px;
  flex-shrink: 0;
}
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto 0;
  height: 1.5px;
  background: var(--fg-muted);
  transition: transform 0.35s var(--ease-out);
}
.faq-icon::after { transform: rotate(90deg); }
.faq-item[data-open="true"] .faq-icon::after { transform: rotate(0deg); }
.faq-a {
  overflow: hidden;
  height: 0;
  transition: height 0.4s var(--ease-out);
}
.faq-a > div { padding-bottom: var(--s-6); }
.faq-a p { font-size: var(--text-sm); color: var(--fg-muted); max-width: 44rem; }
.faq-a p + p { margin-top: var(--s-3); }
.faq-a b { color: var(--fg); font-weight: 600; }
@media (max-width: 900px) { .faq-layout { grid-template-columns: 1fr; gap: var(--s-8); } }

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--s-12);
  align-items: start;
}
.form {
  padding: var(--s-8);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: rgba(13, 14, 21, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.field { margin-bottom: var(--s-4); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.field label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: var(--s-2);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: var(--text-sm);
  color: var(--fg);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.72rem 0.9rem;
  transition: border-color 0.25s, background 0.25s;
}
.field textarea { resize: vertical; min-height: 118px; }
.field select { appearance: none; cursor: pointer; padding-right: 2.2rem; }
.field-select { position: relative; }
.field-select::after {
  content: "";
  position: absolute;
  right: 0.95rem; bottom: 1.05rem;
  width: 7px; height: 7px;
  border-right: 1.5px solid var(--fg-faint);
  border-bottom: 1.5px solid var(--fg-faint);
  transform: rotate(45deg);
  pointer-events: none;
}
.field option { background: var(--surface); color: var(--fg); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--border-strong); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.05);
}
.field input::placeholder, .field textarea::placeholder { color: rgba(255, 255, 255, 0.3); }
.form .btn { width: 100%; margin-top: var(--s-2); }
.form-note { margin-top: var(--s-4); font-size: var(--text-xs); color: var(--fg-faint); text-align: center; }
.form-note.is-error { color: var(--hue-rose); }
.form-note.is-success { color: var(--hue-teal); }
/* Netlify honeypot - must stay in the DOM but never be seen or focusable */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* Success state swaps in after a submission goes through */
.form-sent { text-align: center; padding: var(--s-8) var(--s-4); }
.form-sent-icon {
  width: 56px; height: 56px;
  margin: 0 auto var(--s-6);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--hue-teal);
  background: rgba(127, 224, 207, 0.1);
  border: 1px solid rgba(127, 224, 207, 0.25);
}
.form-sent-icon svg { width: 26px; height: 26px; }
.form-sent h3 { font-size: var(--text-xl); font-weight: 600; letter-spacing: -0.015em; margin-bottom: var(--s-3); }
.form-sent p { font-size: var(--text-sm); color: var(--fg-muted); }
.form-note a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

.contact-aside ul { list-style: none; display: grid; gap: var(--s-4); margin-top: var(--s-8); }
.contact-aside li {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  font-size: var(--text-sm);
  color: var(--fg-muted);
}
.contact-aside svg { width: 17px; height: 17px; color: var(--hue-teal); flex-shrink: 0; margin-top: 3px; }
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: var(--s-8); }
  .field-row { grid-template-columns: 1fr; }
}

/* ============================================================
   LEGAL PAGES (privacy / terms / 404)
   ============================================================ */
.doc { padding: calc(var(--section-y) + 4rem) 0 var(--section-y); }
.doc-inner { max-width: 46rem; }
.doc h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin-bottom: var(--s-4);
}
.doc-meta { font-size: var(--text-sm); color: var(--fg-faint); margin-bottom: var(--s-12); }
.doc h2 {
  font-size: var(--text-xl);
  font-weight: 600;
  letter-spacing: -0.018em;
  margin: var(--s-12) 0 var(--s-4);
}
.doc h3 { font-size: var(--text-base); font-weight: 600; margin: var(--s-6) 0 var(--s-3); }
.doc p, .doc li { color: var(--fg-muted); font-size: var(--text-sm); line-height: 1.72; }
.doc p { margin-bottom: var(--s-4); }
.doc ul, .doc ol { padding-left: var(--s-6); margin-bottom: var(--s-4); display: grid; gap: var(--s-2); }
.doc a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.doc strong { color: var(--fg); font-weight: 600; }
.doc-callout {
  padding: var(--s-6);
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent);
  border-radius: var(--radius);
  background: rgba(170, 180, 255, 0.04);
  margin-bottom: var(--s-8);
}
.doc-callout p:last-child { margin-bottom: 0; }

/* 404 */
.nf { min-height: 78svh; display: grid; place-items: center; text-align: center; padding: var(--s-24) 0; }
.nf-code {
  font-size: clamp(5rem, 16vw, 12rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1;
  color: transparent;
  background: linear-gradient(to bottom, rgba(255,255,255,0.22), rgba(255,255,255,0.03));
  -webkit-background-clip: text;
  background-clip: text;
}
.nf h1 {
  font-size: var(--display-2);
  font-weight: 700;
  letter-spacing: -0.035em;
  margin: var(--s-4) 0 var(--s-4);
}
.nf p { color: var(--fg-muted); margin-bottom: var(--s-8); }
