/* FlitsHenk - static marketing site.
   System font stack only: zero external requests, GDPR-safe by construction.
   Brand: blue gradient (icon), gold accent (the "Henk"). Red is reserved
   exclusively for the camera alert banner - never for routine UI. */

:root {
  --blue:        #1f6fe5;
  --blue-deep:   #1551b8;
  --blue-darker: #0f3c8f;
  --gold:        #ffc233;
  --gold-deep:   #f5a623;
  --alert-red:   #d32f2f;   /* reserved: camera alert only */
  --charcoal:    #2b3340;

  --ink:    #0f1b2d;
  --muted:  #5b6b80;
  --line:   #e4e9f2;
  --bg:     #ffffff;
  --bg-soft:#f4f7fc;

  --radius: 16px;
  --maxw:   1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --shadow: 0 12px 40px rgba(15, 27, 45, .10);
  --shadow-lg: 0 30px 80px rgba(10, 35, 90, .35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.18rem; font-weight: 700; }
p { margin: 0; }
a { color: var(--blue-deep); text-decoration: none; }

/* ---------- Wordmark ---------- */
.wordmark { font-weight: 800; letter-spacing: -0.02em; font-size: 1.18rem; }
.wordmark__flits { color: var(--ink); }
.wordmark__henk  { color: var(--gold-deep); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: .85rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: .6rem; }
.brand__mark { border-radius: 9px; display: block; }
.nav__links { display: flex; align-items: center; gap: 1.6rem; }
.nav__links a { color: var(--muted); font-weight: 600; font-size: .95rem; }
.nav__links a:hover { color: var(--ink); }
.nav__cta {
  background: var(--blue-deep); color: #fff !important;
  padding: .5rem 1.05rem; border-radius: 999px;
}
.nav__cta:hover { background: var(--blue-darker); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 90% at 12% 0%, #2f86ff 0%, transparent 55%),
    linear-gradient(160deg, var(--blue) 0%, var(--blue-deep) 45%, var(--blue-darker) 100%);
  color: #fff;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(80% 60% at 85% 100%, rgba(255, 194, 51, .18), transparent 60%);
}
.hero__inner {
  position: relative; z-index: 1;
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1rem, 4vw, 2.5rem) clamp(3.5rem, 7vw, 6rem);
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.eyebrow {
  text-transform: uppercase; letter-spacing: .14em; font-size: .78rem;
  font-weight: 700; color: var(--gold); margin-bottom: 1rem;
}
.eyebrow--dark { color: var(--gold-deep); }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800; }
.hero h1 .hl { color: var(--gold); }
.hero .lede {
  margin-top: 1.25rem; max-width: 34ch;
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  color: rgba(255, 255, 255, .9);
}
.hero__note { margin-top: 1.1rem; font-size: .9rem; color: rgba(255, 255, 255, .72); }

/* Store buttons */
.cta-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.cta-row--center { justify-content: center; }
.store-btn {
  display: inline-flex; flex-direction: column; line-height: 1.15;
  padding: .6rem 1.2rem; border-radius: 12px;
  background: #fff; color: var(--ink);
  border: 1px solid transparent;
  transition: transform .12s ease, box-shadow .12s ease;
}
.store-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.store-btn__sub  { font-size: .68rem; opacity: .7; font-weight: 600; }
.store-btn__main { font-size: 1.1rem; font-weight: 800; letter-spacing: -.01em; }
.store-btn--ghost {
  background: transparent; color: #fff; border-color: rgba(255,255,255,.45);
  cursor: default;
}
.store-btn--ghost:hover { transform: none; box-shadow: none; }

/* ---------- Phone mockup ---------- */
.hero__device { display: flex; justify-content: center; }
.phone {
  position: relative;
  width: 290px; aspect-ratio: 290 / 600;
  background: #0b1018;
  border-radius: 42px;
  padding: 12px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,.12);
}
.phone__notch {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 22px; background: #0b1018; border-radius: 0 0 14px 14px;
  z-index: 3;
}
.phone__screen {
  position: relative; height: 100%; width: 100%;
  background: #f7f8fb; border-radius: 32px; overflow: hidden;
  display: flex; flex-direction: column;
  color: var(--ink);
}
.app-statusbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 22px 4px; font-size: .68rem; font-weight: 700; color: #1c2530;
}
.app-header {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 16px 10px; border-bottom: 1px solid #eceff5;
}
.app-header__menu {
  width: 16px; height: 12px; margin-right: 2px;
  border-top: 2px solid #44505f; border-bottom: 2px solid #44505f;
  position: relative;
}
.app-header__menu::after {
  content: ""; position: absolute; top: 50%; left: 0; right: 0;
  transform: translateY(-50%); height: 2px; background: #44505f;
}
.app-header img { border-radius: 6px; }
.app-header__title { font-weight: 800; font-size: .95rem; letter-spacing: -.02em; }

/* The one place red is allowed: the camera alert banner. */
.alert-banner {
  background: var(--alert-red);
  color: #fff;
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 12px 16px;
}
.alert-banner__text strong { display: block; font-size: .92rem; }
.alert-banner__text span { font-size: .78rem; opacity: .92; }
.alert-banner__speed { text-align: center; line-height: .9; }
.alert-banner__speed .num {
  font-size: 2.6rem; font-weight: 900; font-variant-numeric: tabular-nums;
  display: block;
}
.alert-banner__speed .unit { font-size: .62rem; opacity: .9; }

.app-body {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 12px; padding: 16px;
}
.road-pill {
  background: #e7ebf2; color: #2b3340; font-weight: 700;
  padding: 5px 16px; border-radius: 999px; font-size: 1rem;
}
.speed-now { text-align: center; line-height: .92; }
.speed-now__num {
  display: block; font-size: 4.6rem; font-weight: 800;
  font-variant-numeric: tabular-nums; color: var(--ink);
}
.speed-now__unit { color: var(--muted); font-size: 1rem; }
.nearest-chip {
  background: #eef1f6; color: var(--muted); font-size: .76rem;
  padding: 7px 14px; border-radius: 999px;
}
.app-primary {
  margin-top: auto; width: 100%;
  background: var(--blue); color: #fff; border: 0;
  font-weight: 700; font-size: .95rem; font-family: inherit;
  padding: 13px; border-radius: 14px; cursor: default;
}

/* ---------- Bands ---------- */
.band { padding: clamp(3rem, 6vw, 5rem) clamp(1rem, 4vw, 2.5rem); }
.band--alt { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band__inner { max-width: 760px; margin: 0 auto; text-align: center; }
.band__inner--wide { max-width: 820px; }
.band__lede { margin-top: 1rem; color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.15rem); }

.section-head { max-width: 720px; margin: 0 auto clamp(2rem, 4vw, 3rem); text-align: center; }
.section-head p { margin-top: .8rem; color: var(--muted); font-size: 1.05rem; }

/* ---------- Features grid ---------- */
.features { padding: clamp(3.5rem, 7vw, 5.5rem) clamp(1rem, 4vw, 2.5rem); max-width: var(--maxw); margin: 0 auto; }
.grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem;
}
.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.5rem; transition: transform .14s ease, box-shadow .14s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card__icon {
  width: 48px; height: 48px; border-radius: 13px;
  display: grid; place-items: center; margin-bottom: 1.1rem;
  background: linear-gradient(150deg, var(--blue), var(--blue-deep));
  color: #fff;
}
.card__icon svg { fill: currentColor; }
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--muted); font-size: .96rem; }

/* ---------- Steps ---------- */
.steps {
  list-style: none; padding: 0; margin: 0 auto; max-width: var(--maxw);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.steps li { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem 1.6rem; }
.steps__n {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 999px;
  background: var(--gold); color: #3a2c00; font-weight: 800;
  margin-bottom: 1rem;
}
.steps h3 { margin-bottom: .4rem; }
.steps p { color: var(--muted); font-size: .96rem; }

/* ---------- Privacy ---------- */
.privacy {
  padding: clamp(3.5rem, 7vw, 5.5rem) clamp(1rem, 4vw, 2.5rem);
  background: linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%);
}
.privacy__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr .6fr; gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}
.privacy .lede { margin-top: 1rem; color: var(--muted); font-size: 1.1rem; max-width: 48ch; }
.ticklist { list-style: none; padding: 0; margin: 1.5rem 0 1.2rem; display: grid; gap: .7rem; }
.ticklist li { position: relative; padding-left: 1.9rem; color: var(--ink); }
.ticklist li::before {
  content: ""; position: absolute; left: 0; top: .35em;
  width: 16px; height: 9px; border-left: 2.5px solid var(--blue); border-bottom: 2.5px solid var(--blue);
  transform: rotate(-45deg);
}
.text-link { font-weight: 700; }
.privacy__card {
  background: linear-gradient(155deg, var(--blue), var(--blue-darker));
  color: #fff; border-radius: 20px; padding: 2.4rem 2rem; text-align: center;
  box-shadow: var(--shadow);
}
.privacy__big { font-size: 5.5rem; font-weight: 900; line-height: 1; color: var(--gold); }
.privacy__card p { margin-top: .6rem; color: rgba(255,255,255,.88); font-size: .95rem; }

/* ---------- Download ---------- */
.download {
  background:
    radial-gradient(100% 80% at 50% 0%, #2f86ff 0%, transparent 60%),
    linear-gradient(160deg, var(--blue) 0%, var(--blue-darker) 100%);
  color: #fff; text-align: center;
  padding: clamp(3.5rem, 7vw, 5.5rem) clamp(1rem, 4vw, 2.5rem);
}
.download__inner { max-width: 640px; margin: 0 auto; }
.download__icon { border-radius: 26px; box-shadow: var(--shadow-lg); margin-bottom: 1.4rem; }
.download h2 { color: #fff; }
.download p { margin-top: .9rem; color: rgba(255,255,255,.9); font-size: 1.1rem; }
.download .cta-row { margin-top: 1.8rem; }

/* ---------- Footer ---------- */
.footer { background: #0c1626; color: rgba(255,255,255,.7); padding: 2.5rem clamp(1rem, 4vw, 2.5rem); }
.footer__inner { max-width: var(--maxw); margin: 0 auto; display: grid; gap: 1.2rem; }
.footer__brand { display: flex; align-items: center; gap: .6rem; }
.footer__brand img { border-radius: 8px; }
.footer__brand .wordmark__flits { color: #fff; }
.footer__links { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.footer__links a { color: rgba(255,255,255,.72); font-weight: 600; font-size: .92rem; }
.footer__links a:hover { color: #fff; }
.footer__legal { font-size: .85rem; color: rgba(255,255,255,.5); max-width: 60ch; }

/* ---------- Legal page ---------- */
.legal { padding: clamp(2.5rem, 6vw, 4rem) clamp(1rem, 4vw, 2.5rem); }
.legal__inner { max-width: 720px; margin: 0 auto; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 800; margin-bottom: .4rem; }
.legal__updated { color: var(--muted); font-size: .9rem; margin-bottom: 1.6rem; }
.legal h2 { font-size: 1.3rem; margin-top: 2.2rem; margin-bottom: .6rem; }
.legal p { color: #29384b; margin-bottom: .9rem; }
.legal ul { color: #29384b; padding-left: 1.2rem; margin: 0 0 1rem; display: grid; gap: .5rem; }
.legal__note { margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero .lede { margin-left: auto; margin-right: auto; }
  .cta-row { justify-content: center; }
  .hero__device { order: -1; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .privacy__inner { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .nav__links { gap: .9rem; }
  .nav__links a:not(.nav__cta) { display: none; }
  .grid { grid-template-columns: 1fr; }
}

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