/* =========================================================
   RADAR — Design System
   ========================================================= */

:root {
  /* Surfaces */
  --ink: oklch(0.18 0.012 260);
  --ink-2: oklch(0.32 0.010 260);
  --ink-3: oklch(0.50 0.008 260);
  --ink-4: oklch(0.68 0.006 260);
  --line: oklch(0.90 0.006 260);
  --line-2: oklch(0.94 0.005 260);
  --paper: oklch(0.985 0.004 85);
  --paper-2: oklch(0.97 0.006 85);
  --paper-3: oklch(0.95 0.007 85);
  --white: #fff;

  /* Dark */
  --ink-dark: oklch(0.14 0.014 260);
  --ink-dark-2: oklch(0.19 0.014 260);
  --ink-dark-3: oklch(0.26 0.014 260);

  /* Signal */
  --signal: oklch(0.64 0.19 30);           /* radar orange-red */
  --signal-soft: oklch(0.94 0.05 30);
  --signal-ink: oklch(0.38 0.15 30);

  --go: oklch(0.68 0.14 150);              /* success / market green */
  --go-soft: oklch(0.94 0.05 150);
  --go-ink: oklch(0.40 0.12 150);

  --warn: oklch(0.78 0.15 80);             /* amber */
  --warn-soft: oklch(0.95 0.05 80);
  --warn-ink: oklch(0.45 0.13 70);

  --info: oklch(0.60 0.14 250);            /* blue */
  --info-soft: oklch(0.94 0.04 250);

  /* Type */
  --sans: "Inter Tight", "Inter", ui-sans-serif, system-ui, sans-serif;
  --serif: "Fraunces", "Times New Roman", serif; /* used sparingly for numerals only if needed */
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Geom */
  --r-xs: 4px;
  --r-s: 8px;
  --r-m: 12px;
  --r-l: 18px;
  --r-xl: 28px;

  --shadow-1: 0 1px 0 rgba(20,22,30,0.04), 0 1px 2px rgba(20,22,30,0.04);
  --shadow-2: 0 1px 0 rgba(20,22,30,0.04), 0 6px 18px -6px rgba(20,22,30,0.10);
  --shadow-3: 0 2px 0 rgba(20,22,30,0.04), 0 18px 40px -18px rgba(20,22,30,0.18);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}

button { font-family: inherit; cursor: pointer; }
a { color: inherit; }

/* Headings */
.h-display {
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.98;
  font-size: clamp(48px, 7.2vw, 104px);
}
.h-display em {
  font-style: normal;
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.02em;
}
.h-1 { font-size: clamp(36px, 4.4vw, 60px); letter-spacing: -0.03em; font-weight: 500; line-height: 1.02; }
.h-2 { font-size: clamp(28px, 2.6vw, 38px); letter-spacing: -0.02em; font-weight: 500; line-height: 1.08; }
.h-3 { font-size: 22px; letter-spacing: -0.01em; font-weight: 500; line-height: 1.2; }
.h-4 { font-size: 17px; font-weight: 500; letter-spacing: -0.005em; }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}
.mono { font-family: var(--mono); font-feature-settings: "tnum"; }
.num  { font-variant-numeric: tabular-nums; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 14.5px; font-weight: 500;
  border: 1px solid transparent;
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { transform: translateY(-1px); background: #000; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--paper-2); border-color: var(--ink-4); }
.btn-signal { background: var(--signal); color: white; }
.btn-signal:hover { transform: translateY(-1px); filter: brightness(1.04); }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-lg { padding: 16px 22px; font-size: 15.5px; }

/* Chips / tags */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 24px; padding: 0 10px;
  border-radius: 999px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.04em;
  background: var(--paper-2);
  border: 1px solid var(--line);
  color: var(--ink-2);
}
.chip-live { color: var(--signal-ink); background: var(--signal-soft); border-color: transparent; }
.chip-live .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--signal); animation: pulse 1.6s ease-in-out infinite; }
.chip-go   { color: var(--go-ink); background: var(--go-soft); border-color: transparent; }
.chip-warn { color: var(--warn-ink); background: var(--warn-soft); border-color: transparent; }
.chip-ghost { background: transparent; }

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}
@keyframes radar-sweep {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes slide-in-up {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Cards */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
}
.hairline { border-top: 1px solid var(--line); }

/* Utility */
.container {
  width: min(1320px, 92vw);
  margin: 0 auto;
}
.grid { display: grid; }
.flex { display: flex; }
.center { align-items: center; justify-content: center; }
.between { align-items: center; justify-content: space-between; }

/* Top nav (shared across marketing + auth pages) */
.nav {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: saturate(140%) blur(14px);
  background: color-mix(in oklab, var(--paper) 80%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; letter-spacing: -0.015em; font-size: 17px;
}
/* Logo mark — minimal SVG location pin with pulse ring */
.logo-mark {
  width: 26px; height: 26px; position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 26px;
}
.logo-mark::before {
  /* pulse ring */
  content: "";
  position: absolute; inset: 2px;
  border-radius: 50%;
  border: 1.5px solid color-mix(in oklab, var(--signal) 40%, transparent);
  animation: logo-pulse 2.4s ease-out infinite;
}
@keyframes logo-pulse {
  0%   { transform: scale(0.7); opacity: 0; }
  40%  { opacity: 1; }
  100% { transform: scale(1.3); opacity: 0; }
}
.logo-mark::after {
  /* the pin */
  content: "";
  position: absolute; top: 50%; left: 50%;
  width: 14px; height: 14px;
  background: var(--ink-dark);
  border-radius: 50% 50% 50% 0;
  transform: translate(-50%, -55%) rotate(-45deg);
  box-shadow: inset 0 0 0 2px var(--paper), 0 1px 2px rgba(0,0,0,0.15);
}
.logo-mark > .dot {
  position: absolute; top: 50%; left: 50%;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--signal);
  transform: translate(-50%, -60%);
  z-index: 2;
}
.logo { font-family: var(--sans); font-weight: 600; letter-spacing: -0.02em; font-size: 17.5px; }
.logo-img {
  border-radius: 8px;
  animation: logo-breathe 3s ease-in-out infinite;
}
@keyframes logo-breathe {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.06); opacity: 0.85; }
}

/* Fields */
.field { display: flex; flex-direction: column; gap: 8px; }
.field > label {
  font-size: 12.5px;
  color: var(--ink-2);
  font-weight: 500;
}
.field > .hint {
  font-size: 12px;
  color: var(--ink-3);
}
.input, .select, .textarea {
  width: 100%;
  font: inherit;
  font-size: 15px;
  padding: 12px 14px;
  border-radius: var(--r-m);
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--ink) 10%, transparent);
}

/* Scroll-reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Noise to keep things from feeling flat */
.paper-grain {
  background-image:
    radial-gradient(circle at 1px 1px, rgba(30,30,40,0.035) 1px, transparent 0);
  background-size: 3px 3px;
}

/* =========================================================
   MOBILE — max 768px
   ========================================================= */
@media (max-width: 768px) {

  /* Nav */
  #nav-desktop { display: none !important; }
  .nav-inner { height: 56px; }
  .nav-inner > div:last-child { gap: 6px; }
  .nav-inner > div:last-child .btn-ghost:first-child { display: none; }
  .btn-sm { padding: 8px 12px; font-size: 12.5px; }

  /* Container */
  .container { width: 92vw; }

  /* Hero */
  .hero-grid { grid-template-columns: 1fr !important; }
  .hero-grid > div:last-child { display: none; }
  .h-display { font-size: clamp(36px, 10vw, 56px); }
  .hero-cta { flex-direction: column !important; gap: 10px !important; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .lede { font-size: 15px; }

  /* Sections */
  .section-head { flex-direction: column !important; gap: 16px !important; }
  .h-1 { font-size: clamp(28px, 8vw, 40px); }
  .h-2 { font-size: clamp(22px, 6vw, 30px); }

  /* Grids 2 colonnes → 1 */
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* Grids 3 colonnes pricing → 1 */
  .pricing-wrap { grid-template-columns: 1fr !important; }

  /* Pricing cards full width */
  .plan { width: 100% !important; }

  /* Tableaux comparatif → scroll horizontal */
  table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* Cacher le visuel RADAR device sur mobile */
  .radar-device { display: none !important; }

  /* Sections padding */
  section { padding-top: 60px !important; padding-bottom: 60px !important; }

  /* CTA section */
  .cta-wrap { flex-direction: column !important; gap: 10px !important; }
  .cta-wrap .btn { width: 100%; justify-content: center; }

  /* Footer */
  footer > .container > div { flex-direction: column !important; gap: 24px !important; }
}
