/* ============================================================
   iFleet — shared base (tokens · reset · nav · footer · buttons)
   Default accent: AMBER. Used by every public page.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:ital,wght@0,400;0,500;0,600;0,700;0,800&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  --font-sans: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --ink:        oklch(0.22 0.012 255);
  --ink-2:      oklch(0.38 0.012 255);
  --ink-3:      oklch(0.55 0.010 255);
  --ink-4:      oklch(0.70 0.008 255);
  --paper:      oklch(0.992 0.002 255);
  --paper-2:    oklch(0.972 0.003 255);
  --paper-3:    oklch(0.955 0.004 255);
  --line:       oklch(0.90 0.004 255);
  --line-2:     oklch(0.84 0.005 255);

  --maxw: 1200px;
  --gut: 40px;

  --r-sm: 4px;
  --r-md: 6px;

  --shadow-card: 0 1px 2px oklch(0.22 0.012 255 / 0.05);
  --shadow-pop: 0 16px 40px -12px oklch(0.22 0.012 255 / 0.18);

  /* AMBER accent (default) */
  --accent:        oklch(0.72 0.155 64);
  --accent-press:  oklch(0.66 0.155 60);
  --accent-ink:    oklch(0.52 0.13 56);
  --accent-soft:   oklch(0.965 0.035 75);
  --accent-line:   oklch(0.88 0.07 70);
  --on-accent:     oklch(0.20 0.03 60);
}

/* theme overrides (used by the comparison gallery) */
[data-theme="cobalt"] {
  --accent: oklch(0.55 0.17 256); --accent-press: oklch(0.48 0.17 256);
  --accent-ink: oklch(0.42 0.15 256); --accent-soft: oklch(0.965 0.028 256);
  --accent-line: oklch(0.86 0.06 256); --on-accent: oklch(0.99 0.005 256);
}
[data-theme="amber"] {
  --accent: oklch(0.72 0.155 64); --accent-press: oklch(0.66 0.155 60);
  --accent-ink: oklch(0.52 0.13 56); --accent-soft: oklch(0.965 0.035 75);
  --accent-line: oklch(0.88 0.07 70); --on-accent: oklch(0.20 0.03 60);
}
[data-theme="signal"] {
  --accent: oklch(0.62 0.14 156); --accent-press: oklch(0.55 0.14 156);
  --accent-ink: oklch(0.45 0.12 156); --accent-soft: oklch(0.965 0.03 160);
  --accent-line: oklch(0.86 0.06 160); --on-accent: oklch(0.99 0.01 160);
}

/* ---- reset / base ---- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3);
}
.eyebrow .idx { color: var(--accent-ink); }

h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.02em; line-height: 1.04; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.tnum { font-variant-numeric: tabular-nums; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-sans); font-size: 15px; font-weight: 600; line-height: 1;
  padding: 13px 20px; border-radius: var(--r-md);
  border: 1px solid transparent; cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .04s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(0.5px); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-press); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink-3); background: var(--paper-2); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: oklch(0.92 0.01 255); }
.btn .arr { font-family: var(--font-mono); font-weight: 500; }
.btn-block { width: 100%; justify-content: center; }

/* ============================================================
   NAV (with mobile menu)
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: oklch(0.992 0.002 255 / 0.85);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut);
  height: 64px; display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 44px; letter-spacing: -0.03em; }
.brand-mark { width: 33px; height: 33px; border-radius: 7px; background: var(--accent); position: relative; flex: none; }
.brand-mark::after {
  content: ""; position: absolute; inset: 0; background: var(--on-accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%3E%3Ccircle%20cx%3D%2712%27%20cy%3D%2712%27%20r%3D%278.5%27%2F%3E%3Ccircle%20cx%3D%2712%27%20cy%3D%2712%27%20r%3D%272.3%27%20fill%3D%27black%27%20stroke%3D%27none%27%2F%3E%3Cline%20x1%3D%2712%27%20y1%3D%2714.3%27%20x2%3D%2712%27%20y2%3D%2720.5%27%2F%3E%3Cline%20x1%3D%279.9%27%20y1%3D%2710.9%27%20x2%3D%273.7%27%20y2%3D%279%27%2F%3E%3Cline%20x1%3D%2714.1%27%20y1%3D%2710.9%27%20x2%3D%2720.3%27%20y2%3D%279%27%2F%3E%3C%2Fsvg%3E") center / 62% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%3E%3Ccircle%20cx%3D%2712%27%20cy%3D%2712%27%20r%3D%278.5%27%2F%3E%3Ccircle%20cx%3D%2712%27%20cy%3D%2712%27%20r%3D%272.3%27%20fill%3D%27black%27%20stroke%3D%27none%27%2F%3E%3Cline%20x1%3D%2712%27%20y1%3D%2714.3%27%20x2%3D%2712%27%20y2%3D%2720.5%27%2F%3E%3Cline%20x1%3D%279.9%27%20y1%3D%2710.9%27%20x2%3D%273.7%27%20y2%3D%279%27%2F%3E%3Cline%20x1%3D%2714.1%27%20y1%3D%2710.9%27%20x2%3D%2720.3%27%20y2%3D%279%27%2F%3E%3C%2Fsvg%3E") center / 62% no-repeat;
}
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 14.5px; color: var(--ink-2); transition: color .15s ease; white-space: nowrap; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); font-weight: 600; }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-login { font-size: 14.5px; color: var(--ink-2); }
.nav-login:hover { color: var(--ink); }
.nav .btn { padding: 9px 16px; font-size: 14px; }

.nav-burger {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border: 1px solid var(--line-2); border-radius: var(--r-md);
  background: transparent; cursor: pointer; flex: none;
}
.nav-burger span { position: relative; width: 17px; height: 1.6px; background: var(--ink); transition: .2s; }
.nav-burger span::before, .nav-burger span::after {
  content: ""; position: absolute; left: 0; width: 17px; height: 1.6px; background: var(--ink); transition: .2s;
}
.nav-burger span::before { top: -5.5px; }
.nav-burger span::after { top: 5.5px; }
.nav-burger.open span { background: transparent; }
.nav-burger.open span::before { top: 0; transform: rotate(45deg); }
.nav-burger.open span::after { top: 0; transform: rotate(-45deg); }

.mobile-menu { display: none; border-top: 1px solid var(--line); background: var(--paper); }
.mobile-menu.open { display: block; }
.mobile-menu .mm-inner { padding: 14px var(--gut) 22px; display: flex; flex-direction: column; gap: 2px; }
.mobile-menu a.mm-link {
  font-size: 16px; color: var(--ink-2); padding: 13px 2px;
  border-bottom: 1px solid var(--line);
}
.mobile-menu a.mm-link:last-of-type { border-bottom: none; }
.mobile-menu .mm-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }

/* ============================================================
   FOOTER
   ============================================================ */
.foot { padding: 56px 0 48px; border-top: 1px solid var(--line); }
.foot-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 44px; border-bottom: 1px solid var(--line);
}
.foot-brand .brand { margin-bottom: 14px; }
.foot-brand p { font-size: 14.5px; color: var(--ink-3); max-width: 32ch; margin: 0; }
.foot-col h5 {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-4); margin: 0 0 16px; font-weight: 500;
}
.foot-col a { display: block; font-size: 14.5px; color: var(--ink-2); padding: 6px 0; }
.foot-col a:hover { color: var(--ink); }
.foot-bot {
  display: flex; align-items: center; justify-content: space-between; padding-top: 26px;
  font-family: var(--font-mono); font-size: 12px; color: var(--ink-4); letter-spacing: 0.02em;
  flex-wrap: wrap; gap: 12px;
}

/* ============================================================
   SHARED SECTION HEADER
   ============================================================ */
.section { padding: 92px 0; border-bottom: 1px solid var(--line); }
.section.tint { background: var(--paper-2); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 56px; }
.sec-head .lhs { max-width: 56ch; }
.sec-head h2 { font-size: 38px; margin-top: 16px; }
.sec-head p { margin: 14px 0 0; font-size: 18px; color: var(--ink-2); text-wrap: pretty; }

/* ============================================================
   SHARED RESPONSIVE  (nav / footer / gutters / section heads)
   ============================================================ */
@media (max-width: 1000px) {
  .nav-links { display: none; }
  .nav-cta .nav-login, .nav-cta .btn { display: none; }
  .nav-burger { display: flex; }
}
@media (max-width: 720px) {
  :root { --gut: 22px; }
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 36px; }
  .sec-head h2 { font-size: 30px; }
  .sec-head p { font-size: 16.5px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px 24px; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
  .foot-grid { grid-template-columns: 1fr; }
}
