/* Raad Telematics — marketing site.
   Tokens are the business (green) side of the design canvas. The admin portal
   uses indigo; the two never mix. */

/* Self-hosted fonts — same files and approach as the app (web/src/styles.css).
   The latin subset covers English AND Somali (Somali is Latin-script). Each file
   is the variable weight axis (400–700), so ONE file per family serves every
   weight the page uses. No Google Fonts request: a prospect on a metered
   Mogadishu mobile network loads this page first, so a third-party font fetch is
   the worst possible first-paint cost and a privacy leak besides. */
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-latin.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;
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/space-grotesk-latin.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;
}

:root {
  --bg: #0E1216;
  --panel: #141B22;
  --border: rgba(255, 255, 255, .07);
  --primary: #12B76A;
  --accent: #3CE596;
  --warn: #F7B84B;
  --error: #F97066;
  --muted: #8A97A5;
  --text: #E8EDF2;

  --display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --ui: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;

  --wrap: 1120px;
  --radius: 14px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .amount { font-family: var(--display); font-weight: 700; letter-spacing: -.02em; }

a { color: inherit; text-decoration: none; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 1rem; top: 1rem; z-index: 100;
  background: var(--primary); color: #04120A;
  padding: .6rem 1rem; border-radius: 8px;
}

/* --- nav ---------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 1rem; }
.brand img { display: block; height: 28px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 1rem; }

/* Mobile-first nav. Base rules ARE the 360px layout: the in-page section links
   are hidden — the page is a single scroll and the hero CTAs already jump to
   pricing and contact — leaving brand + language toggle + Sign in, which fit a
   phone without the row overflowing. The section links are progressively added
   back on wider screens with a min-width query. This is scaling up from small,
   not a desktop row squeezed down with max-width. */
.nav-sections { display: none; }
.nav-sections a { color: var(--muted); font-size: .95rem; }
.nav-sections a:hover { color: var(--text); }
/* Persistent phone controls get a comfortable tap target (>=44px). */
.nav-links .lang, .nav-links .btn { min-height: 44px; }

@media (min-width: 680px) {
  .nav-links { gap: 1.5rem; }
  .nav-sections { display: flex; align-items: center; gap: 1.5rem; }
}

.lang {
  display: inline-flex; align-items: center;
  font: 600 .8rem/1 var(--ui);
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .4rem .9rem;
  cursor: pointer;
}
.lang:hover { color: var(--text); border-color: var(--primary); }

/* --- buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: .95rem;
  padding: .6rem 1.1rem;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: background .15s, border-color .15s, transform .05s;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: .85rem 1.6rem; font-size: 1rem; }
.btn-primary { background: var(--primary); color: #04120A; }
.btn-primary:hover { background: var(--accent); }
.btn-ghost { border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--primary); color: var(--accent); }

/* --- hero --------------------------------------------------------------- */
.hero {
  padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 6vw, 5rem);
  /* isolate so the glow's negative z-index stays inside the hero instead of
     sliding behind the page background */
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 520px;
  background: radial-gradient(60% 100% at 50% 0%, rgba(18, 183, 106, .16), transparent 70%);
  pointer-events: none; z-index: -1;
}
.eyebrow {
  font-family: var(--display); font-weight: 500; font-size: .8rem;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
}
.hero h1 { font-size: clamp(2.1rem, 5.6vw, 3.6rem); line-height: 1.1; margin: 0 0 1.2rem; max-width: 18ch; }
.lede { font-size: clamp(1.02rem, 1.9vw, 1.2rem); color: var(--muted); max-width: 58ch; margin: 0 0 2rem; }

.cta { display: flex; flex-wrap: wrap; gap: .8rem; }

.trust {
  display: flex; flex-wrap: wrap; gap: 1.4rem;
  list-style: none; padding: 0; margin: 2.5rem 0 0;
  font-size: .9rem; color: var(--muted);
}
.trust li::before { content: "✓"; color: var(--primary); margin-right: .45rem; font-weight: 700; }

/* --- sections ----------------------------------------------------------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(20, 27, 34, .55), transparent); }
.section h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin: 0 0 .6rem; }
.sub { color: var(--muted); margin: 0 0 2.2rem; }
.section > .wrap > h2 + .grid { margin-top: 2.2rem; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.1rem;
}
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.card h3 { font-size: 1.12rem; margin: 0 0 .55rem; }
.card p { color: var(--muted); margin: 0; font-size: .95rem; }

/* --- pricing ------------------------------------------------------------ */
.price { position: relative; display: flex; flex-direction: column; }
.price .amount { font-size: 2.1rem; margin: .3rem 0 1.1rem; color: var(--text); }
.price .amount span { font-size: .95rem; font-family: var(--ui); font-weight: 400; color: var(--muted); }
.price ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.price li { font-size: .93rem; color: var(--muted); padding-left: 1.4rem; position: relative; }
.price li::before { content: "✓"; position: absolute; left: 0; color: var(--primary); font-weight: 700; }
.featured { border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); }
.tag {
  position: absolute; top: -.7rem; right: 1.2rem;
  background: var(--primary); color: #04120A;
  font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: .25rem .6rem; border-radius: 999px;
}
.note { color: var(--muted); font-size: .9rem; margin-top: 1.8rem; }

/* --- contact + footer --------------------------------------------------- */
.contact { max-width: 60ch; }
.contact p { color: var(--muted); margin: 0 0 1.8rem; }

.footer { border-top: 1px solid var(--border); padding: 2rem 0; margin-top: 2rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; font-size: .88rem; }
.footer p { margin: 0; }
.muted { color: var(--muted); }

/* --- motion ------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
