/* TransportCat — transportcat.app
   Design system v2: the widget's own backdrop recipe carried to the web —
   navy canvas (#0B1220), soft glows of the brand line colours, and the app
   icon's network motif drawn faint from the exact NetworkArt geometry.
   System typography, no webfonts, no framework, no build step. */

:root {
  --bg: #0b1220;          /* the widget's canvas */
  --bg-deep: #060a13;
  --hairline: rgba(255, 255, 255, 0.09);
  --text: #f2f4f8;
  --text-2: #9aa3b5;
  --live: #30d158;        /* the app's "En directe" green */
  --link: #20d5fd;        /* the icon's cyan route */
  --link-ink: #04121a;
  --radius-device: 44px;
  --radius-card: 22px;
  --max: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* The widget's four-corner glow, quiet and fixed. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(58vw 58vw at 88% -12%, rgba(30, 111, 217, 0.16), transparent 62%),
    radial-gradient(52vw 52vw at -12% 34%, rgba(227, 36, 43, 0.09), transparent 62%),
    radial-gradient(56vw 56vw at 52% 112%, rgba(32, 213, 253, 0.08), transparent 62%);
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  z-index: 100;
  background: #0e1524;
  padding: 10px 16px;
  border-radius: 10px;
}
.skip-link:focus { left: 12px; }

/* ---------- Navigation ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(6, 10, 19, 0.78);
  -webkit-backdrop-filter: saturate(160%) blur(20px);
  backdrop-filter: saturate(160%) blur(20px);
  border-bottom: 1px solid var(--hairline);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand svg { width: 24px; height: 24px; }

.nav-links {
  display: flex;
  gap: 24px;
  margin-left: auto;
  align-items: center;
}
.nav-links a {
  color: var(--text-2);
  font-size: 14px;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }

.lang {
  display: flex;
  gap: 2px;
  font-size: 13px;
}
.lang a {
  color: var(--text-2);
  padding: 4px 8px;
  border-radius: 8px;
}
.lang a[aria-current="true"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
}
.lang a:hover { color: var(--text); text-decoration: none; }

.btn {
  display: inline-block;
  background: var(--link);
  color: var(--link-ink);
  font-size: 15px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
}
.btn:hover { text-decoration: none; filter: brightness(1.08); }

.btn-lg {
  font-size: 18px;
  padding: 15px 32px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 168px 24px 40px;
  text-align: center;
  overflow: clip;
}

/* The icon's network motif, the way the widget draws it: faint and soft. */
.hero .motif {
  position: absolute;
  inset: -6% -14% auto;
  width: 128%;
  opacity: 0.14;
  filter: blur(1.5px);
  pointer-events: none;
  user-select: none;
  -webkit-mask-image: radial-gradient(75% 70% at 50% 38%, #000 55%, transparent 100%);
  mask-image: radial-gradient(75% 70% at 50% 38%, #000 55%, transparent 100%);
}

.hero > * { position: relative; }

.hero h1 {
  font-size: clamp(44px, 7.6vw, 104px);
  line-height: 1.04;
  letter-spacing: -0.024em;
  font-weight: 700;
  max-width: 24ch;
  margin: 0 auto 26px;
}

.hero .sub {
  font-size: clamp(19px, 2.3vw, 24px);
  color: var(--text-2);
  max-width: 46ch;
  margin: 0 auto 40px;
}

.hero .meta {
  color: var(--text-2);
  font-size: 14px;
  margin-top: 16px;
}

/* Two devices, the way a product page shows a pair. */
.hero-duo {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin-top: 84px;
}
.hero-duo .device { width: min(330px, 42vw); }
.hero-duo .device.back {
  width: min(292px, 37vw);
  transform: rotate(2.4deg) translateY(26px);
  margin-left: -34px;
  opacity: 0.96;
}
.hero-duo .device.front { transform: rotate(-1.6deg); z-index: 2; }

/* ---------- Device frame ---------- */

.device {
  border-radius: var(--radius-device);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.05), 0 48px 90px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  background: #101827;
}
.device img { width: 100%; }

/* ---------- Line badge strip ---------- */

.band {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 30px 24px;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 30px;
  padding: 0 10px;
  border-radius: 9px;
  background: var(--c, #6e6e73);
  color: var(--t, #fff);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* ---------- Full-bleed bands ---------- */

.band-deep { background: var(--bg-deep); }
.band-glow {
  background:
    radial-gradient(64vw 44vw at 78% 18%, rgba(30, 111, 217, 0.20), transparent 64%),
    radial-gradient(52vw 40vw at 8% 78%, rgba(227, 36, 43, 0.12), transparent 64%);
}

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

/* ---------- Chapters ---------- */

.chapter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(44px, 7vw, 110px);
  align-items: center;
  padding: clamp(84px, 11vw, 150px) 0;
}

.chapter.flip .chapter-text { order: 2; }
.chapter.flip .chapter-media { order: 1; }

.chapter h2 {
  font-size: clamp(34px, 4.6vw, 60px);
  line-height: 1.07;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin-bottom: 20px;
  max-width: 18ch;
}

.chapter .lead {
  font-size: 19px;
  color: var(--text-2);
  max-width: 46ch;
}

.points {
  list-style: none;
  margin-top: 28px;
  display: grid;
  gap: 14px;
}
.points li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  color: var(--text);
}
.points .dot {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--live);
  transform: translateY(-1px);
}

.chapter-media {
  display: flex;
  gap: 28px;
  justify-content: center;
  align-items: center;
}
.chapter-media .device {
  width: min(390px, 100%);
}
.chapter-media .device.small {
  width: min(348px, 92%);
}

/* Two devices under a centered heading */
.media-row {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 4vw, 56px);
  justify-content: center;
  align-items: flex-end;
  margin-top: 64px;
}
.media-row .device { width: min(340px, 42vw); }

/* Text-only chapter */
.chapter.solo {
  display: block;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.chapter.solo h2, .chapter.solo .lead { margin-left: auto; margin-right: auto; }

/* Sticky feature moment: device pinned, steps scroll past */
.pin {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(44px, 6vw, 96px);
  padding: clamp(84px, 11vw, 150px) 0;
}
.pin-media {
  position: sticky;
  top: 96px;
  align-self: start;
}
.pin-media .device { width: min(400px, 100%); }
.pin-steps { display: grid; align-content: center; }
.pin-steps .step { padding: min(15vh, 240px) 0; }
.pin-steps .step:first-child { padding-top: 0; }
.pin-steps .step:last-child { padding-bottom: 0; }
.pin-steps h3 {
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -0.018em;
  line-height: 1.12;
  margin-bottom: 12px;
}
.pin-steps p { color: var(--text-2); max-width: 42ch; }

/* Teaser (Rodalies) */
.teaser {
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  background: rgba(14, 21, 36, 0.85);
  padding: clamp(28px, 4vw, 48px);
  margin-top: 28px;
  text-align: left;
}
.teaser .status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--live);
  font-size: 15px;
  font-weight: 600;
}
.teaser .status .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--live);
}
.teaser p { color: var(--text-2); margin-top: 10px; }

/* ---------- Live Activity / notification cards ---------- */

.media-wide {
  max-width: 660px;
  width: 100%;
  display: grid;
  gap: 20px;
  margin-top: 64px;
}
.media-wide .card {
  border-radius: 18px;
  border: 1px solid var(--hairline);
  background: #101827;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.media-wide img { width: 100%; }

/* ---------- Closing CTA ---------- */

.closing {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(90px, 11vw, 150px) 24px;
  text-align: center;
  overflow: clip;
}
.closing .motif {
  position: absolute;
  inset: -20% -10% auto;
  width: 120%;
  opacity: 0.1;
  filter: blur(2px);
  pointer-events: none;
  -webkit-mask-image: radial-gradient(60% 75% at 50% 60%, #000 40%, transparent 100%);
  mask-image: radial-gradient(60% 75% at 50% 60%, #000 40%, transparent 100%);
}
.closing > * { position: relative; }
.closing h2 {
  font-size: clamp(38px, 5.4vw, 72px);
  letter-spacing: -0.022em;
  line-height: 1.06;
  margin-bottom: 16px;
}
.closing p { color: var(--text-2); font-size: 19px; margin-bottom: 36px; }

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--hairline);
  background: var(--bg-deep);
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px 24px;
  display: grid;
  gap: 20px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 14px;
}
.footer-nav a { color: var(--text-2); }
.footer-nav a:hover { color: var(--text); }
.footer small {
  color: #5d6879;
  font-size: 12.5px;
  line-height: 1.6;
}

/* ---------- Privacy / support pages ---------- */

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 150px 24px 90px;
}
.page h1 {
  font-size: clamp(34px, 4.5vw, 52px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 28px;
}
.page h2, .page h3 {
  margin: 36px 0 12px;
}
.page h2 { font-size: 21px; }
.page h3 { font-size: 18px; color: var(--text); }
.page p, .page li {
  color: var(--text-2);
  max-width: 62ch;
}
.page p + p { margin-top: 12px; }
.page ul { padding-left: 20px; margin-top: 10px; display: grid; gap: 8px; }
.page strong { color: var(--text); font-weight: 600; }
.page .updated { color: #5d6879; font-size: 14px; margin-bottom: 30px; }

.contact-card {
  margin-top: 40px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  background: rgba(14, 21, 36, 0.85);
  padding: 24px 28px;
}
.contact-card p { margin: 0; }
.contact-card a { font-weight: 600; }

/* ---------- Reveal (one orchestrated moment per section) ---------- */

@media (prefers-reduced-motion: no-preference) {
  html.js .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  html.js .reveal.in {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .chapter, .pin {
    grid-template-columns: 1fr;
    gap: 44px;
    padding: 64px 0;
  }
  .chapter.flip .chapter-text { order: 1; }
  .chapter.flip .chapter-media { order: 2; }
  .chapter-media { flex-wrap: wrap; }
  .pin-media { position: static; }
  .pin-steps .step { padding: 40px 0; }
  .pin-steps .step:first-child { padding-top: 0; }
  .nav-links a:not(.btn):not(.lang a) { display: none; }
  .nav-links { gap: 12px; }
}

@media (max-width: 560px) {
  .hero { padding-top: 130px; }
  .hero-duo { flex-direction: column; align-items: center; margin-top: 56px; }
  .hero-duo .device, .hero-duo .device.back { width: min(330px, 84vw); }
  .hero-duo .device.back { transform: rotate(2deg) translateY(0); margin: -70px 0 0 90px; }
  .lang a { padding: 4px 5px; }
  .brand svg { width: 22px; height: 22px; }
  .brand span { display: none; }
  .media-row .device { width: min(340px, 84vw); }
}
