/* style.css — Velocie Mobile design system */

/* ---------- Fonts ---------- */
@import url('https://api.fontshare.com/v2/css?f[]=cabinet-grotesk@700,500,400&f[]=satoshi@400,500,700,900&display=swap');

:root {
  --font-display: 'Cabinet Grotesk', 'Arial Black', sans-serif;
  --font-body: 'Satoshi', 'Helvetica Neue', sans-serif;

  /* ---------- Type scale ---------- */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);
  --text-hero: clamp(2.75rem, 0.5rem + 7vw, 7.5rem);

  /* ---------- Spacing (4px base) ---------- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  --radius-sm: 0.5rem;
  --radius-md: 0.875rem;
  --radius-lg: 1.25rem;
  --radius-xl: 1.75rem;
  --radius-full: 9999px;

  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  --content-narrow: 640px;
  --content-default: 980px;
  --content-wide: 1280px;
  --content-full: 100%;
}

/* ---------- Velocie palette — light ---------- */
:root,
[data-theme='light'] {
  --color-bg: #faf8f5;
  --color-surface: #ffffff;
  --color-surface-2: #f4f1ec;
  --color-surface-offset: #ede8e0;
  --color-border: #e3ddd2;
  --color-divider: #ece7de;
  --color-text: #191410;
  --color-text-muted: #6b6259;
  --color-text-faint: #a89e91;
  --color-text-inverse: #faf8f5;

  /* Primary — Velocie Orange (energy, speed) */
  --color-primary: #ff5a1f;
  --color-primary-hover: #e6470f;
  --color-primary-active: #c23a0c;
  --color-primary-highlight: #ffe1d0;

  /* Secondary — Signal Mint (savings / go) */
  --color-mint: #00c875;
  --color-mint-hover: #00a863;
  --color-mint-active: #00854e;
  --color-mint-highlight: #ccf5e3;

  --color-warning: #a85d00;
  --color-warning-highlight: #f2e0c4;
  --color-error: #c62148;
  --color-error-highlight: #f3d4dc;
  --color-success: #1c8a4f;
  --color-success-highlight: #cdeeda;

  --shadow-sm: 0 1px 2px rgba(25, 20, 16, 0.06);
  --shadow-md: 0 8px 24px rgba(25, 20, 16, 0.08);
  --shadow-lg: 0 20px 48px rgba(25, 20, 16, 0.14);
}

/* ---------- Velocie palette — dark ---------- */
[data-theme='dark'] {
  --color-bg: #14100c;
  --color-surface: #1c1712;
  --color-surface-2: #221c16;
  --color-surface-offset: #2a231b;
  --color-border: #372e23;
  --color-divider: #2a231c;
  --color-text: #f4efe8;
  --color-text-muted: #b0a698;
  --color-text-faint: #766c60;
  --color-text-inverse: #191410;

  --color-primary: #ff8248;
  --color-primary-hover: #ff9d6b;
  --color-primary-active: #ffb385;
  --color-primary-highlight: #47250f;

  --color-mint: #35e39a;
  --color-mint-hover: #5aedae;
  --color-mint-active: #7bf2c0;
  --color-mint-highlight: #113826;

  --color-warning: #e0a03d;
  --color-warning-highlight: #3a2c15;
  --color-error: #ea6a89;
  --color-error-highlight: #3a1e26;
  --color-success: #4fd889;
  --color-success-highlight: #123424;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.45);
}

/* ---------- Layout primitives ---------- */
.wrap {
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: clamp(var(--space-5), 4vw, var(--space-12));
}
.wrap--narrow {
  max-width: var(--content-narrow);
}
.wrap--default {
  max-width: var(--content-default);
}

section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-32));
}
section.tight {
  padding-block: clamp(var(--space-10), 5vw, var(--space-16));
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--color-bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-divider);
  transition:
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.site-header--hidden {
  transform: translateY(-100%);
}
.site-header--scrolled {
  box-shadow: var(--shadow-sm);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding-block: var(--space-4);
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand svg {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}
.nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  list-style: none;
}
.nav-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 500;
}
.nav-links a:hover,
.nav-links a[aria-current='page'] {
  color: var(--color-text);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.theme-toggle {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}
.theme-toggle:hover {
  color: var(--color-text);
  border-color: var(--color-text-faint);
}
.nav-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  place-items: center;
}

@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    inset: 64px var(--space-4) auto var(--space-4);
    flex-direction: column;
    align-items: stretch;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    box-shadow: var(--shadow-lg);
    gap: var(--space-1);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition:
      transform var(--transition-interactive),
      opacity var(--transition-interactive);
  }
  .nav-links[data-open='true'] {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links a {
    padding: var(--space-3) var(--space-3);
    border-radius: var(--radius-md);
  }
  .nav-links a:hover {
    background: var(--color-surface-2);
  }
  .nav-toggle {
    display: grid;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-sm);
  padding: 0.9rem 1.5rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--color-primary);
  color: #fff9f5;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn-ghost:hover {
  border-color: var(--color-text-faint);
  background: var(--color-surface-2);
}
.btn-mint {
  background: var(--color-mint);
  color: #06251a;
}
.btn-mint:hover {
  background: var(--color-mint-hover);
  transform: translateY(-1px);
}
.btn-lg {
  padding: 1.1rem 2rem;
  font-size: var(--text-base);
}
.btn-block {
  width: 100%;
}

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
}
.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
}
h1,
h2,
h3 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}
.h-hero {
  font-size: var(--text-hero);
  line-height: 0.98;
}
.h-1 {
  font-size: var(--text-2xl);
  line-height: 1.04;
}
.h-2 {
  font-size: var(--text-xl);
  line-height: 1.1;
}
.h-3 {
  font-size: var(--text-lg);
  font-family: var(--font-body);
  font-weight: 700;
}
.lede {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 52ch;
}
.muted {
  color: var(--color-text-muted);
}
.tabular {
  font-variant-numeric: tabular-nums lining-nums;
}

/* ---------- Cards ---------- */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
}

/* ---------- Badge ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-full);
  background: var(--color-mint-highlight);
  color: #08442d;
}
[data-theme='dark'] .badge {
  color: #b6f5d6;
}
.badge-primary {
  background: var(--color-primary-highlight);
  color: var(--color-primary-hover);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--color-divider);
  padding-block: var(--space-16) var(--space-10);
  background: var(--color-surface-2);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-10);
}
.footer-col h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  list-style: none;
}
.footer-col a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: var(--text-sm);
}
.footer-col a:hover {
  color: var(--color-text);
}
.footer-bottom {
  margin-top: var(--space-12);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-divider);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}
.footer-bottom a {
  color: var(--color-text-faint);
}
.draft-note {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  max-width: 60ch;
}

@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- Utility grid ---------- */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
  align-items: center;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
@media (max-width: 900px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

img.rounded {
  border-radius: var(--radius-xl);
}

/* ---------- Term toggle (segmented control) ---------- */
.term-toggle {
  display: inline-flex;
  gap: var(--space-1);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: var(--space-1);
}
.term-toggle button {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-sm);
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
}
.term-toggle button.is-active {
  background: var(--color-primary);
  color: #fff9f5;
}
.term-toggle button:not(.is-active):hover {
  color: var(--color-text);
}

/* ---------- Plan cards ---------- */
.plan-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  position: relative;
  display: flex;
  flex-direction: column;
}
.plan-card--featured {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}
.plan-price {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  letter-spacing: -0.02em;
  margin-top: var(--space-4);
}
.plan-price small {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text-muted);
  font-weight: 500;
}
.plan-savings {
  display: inline-block;
  margin-top: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-mint-hover);
}
[data-theme='dark'] .plan-savings {
  color: var(--color-mint);
}
.plan-upfront {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-top: var(--space-1);
}
.plan-features {
  list-style: none;
  margin-top: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
}
.plan-features li {
  display: flex;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.plan-features li svg {
  flex-shrink: 0;
  color: var(--color-mint-hover);
  margin-top: 3px;
}
[data-theme='dark'] .plan-features li svg {
  color: var(--color-mint);
}

/* ---------- Comparison table ---------- */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}
.compare-table th,
.compare-table td {
  padding: var(--space-4) var(--space-4);
  border-bottom: 1px solid var(--color-divider);
  text-align: left;
  vertical-align: top;
}
.compare-table th {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--color-text);
}
.compare-table td:first-child,
.compare-table th:first-child {
  color: var(--color-text-muted);
  font-weight: 500;
  white-space: nowrap;
}
.compare-table tbody tr:last-child td {
  border-bottom: none;
}
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
}
.table-scroll .compare-table {
  min-width: 640px;
}

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--color-divider);
}
.faq-item:first-child {
  border-top: 1px solid var(--color-divider);
}
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  padding-block: var(--space-5);
  text-align: left;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--color-text);
}
.faq-q svg {
  flex-shrink: 0;
  transition: transform var(--transition-interactive);
  color: var(--color-text-muted);
}
.faq-item[data-open='true'] .faq-q svg {
  transform: rotate(45deg);
}
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--transition-interactive);
}
.faq-a > div {
  overflow: hidden;
}
.faq-item[data-open='true'] .faq-a {
  grid-template-rows: 1fr;
}
.faq-a p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  padding-bottom: var(--space-5);
  max-width: 68ch;
}
