/* ============================================================
   Kalio — shared styles (landing + legal pages)
   ============================================================ */

:root {
  --blue: #5B8DEF;
  --blue-bright: #6B9AF5;
  --blue-dark: #3D6FD4;
  --blue-soft: #EEF4FF;
  --blue-tint: #D6E4FF;
  --blue-deep: #2C5BC0;

  --navy: #0F1B2D;
  --slate-800: #1A2740;
  --slate-700: #3D4A5C;
  --slate-600: #5A6578;
  --slate-500: #7B869A;
  --slate-400: #A8B2C2;

  --bg: #FCFDFE;
  --bg-soft: #F3F6FA;
  --bg-gray: #EBF0F6;
  --border: #E4E9F0;
  --border-strong: #D0D8E4;

  --amber-bg: #FFF4DF;
  --green-bg: #E5F7EC;
  --blue-bg: #E4EDFF;

  --shadow-sm: 0 1px 2px rgba(15, 27, 45, 0.04);
  --shadow-md: 0 10px 28px rgba(15, 27, 45, 0.07);
  --shadow-lg: 0 28px 64px rgba(15, 27, 45, 0.12);
  --shadow-glow: 0 24px 60px rgba(91, 141, 239, 0.22);

  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 28px;
  --radius-xl: 36px;

  --maxw: 1140px;
  --font: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

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

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

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

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

/* ---------------- Nav ---------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(252, 253, 254, 0.72);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid rgba(228, 233, 240, 0.7);
}
.nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 72px;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: baseline;
  justify-self: start;
  font-weight: 750;
  font-size: 22px;
  color: var(--navy);
  letter-spacing: -0.055em;
  line-height: 1;
  transition: opacity 0.2s ease;
}
.brand:hover { opacity: 0.78; }
.brand-dot {
  color: var(--blue);
  font-weight: 800;
  margin-left: 1px;
}
.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(238, 244, 255, 0.55);
  border: 1px solid rgba(214, 228, 255, 0.7);
}
.nav-links a {
  position: relative;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--slate-600);
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.nav-links a:hover {
  color: var(--navy);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 1px 2px rgba(15, 27, 45, 0.05);
}
.nav-cta {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-self: end;
}

/* ---------------- Store badges ---------------- */
.store {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--navy);
  color: #fff;
  border-radius: 14px;
  padding: 10px 16px;
  transition: transform 0.2s var(--ease), background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 6px 18px rgba(15, 27, 45, 0.16);
}
.store:hover {
  background: #08111F;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 27, 45, 0.2);
}
.store svg { width: 20px; height: 20px; flex: none; }
.store .st {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-align: left;
}
.store .st small {
  font-size: 9px;
  font-weight: 500;
  opacity: 0.82;
  letter-spacing: 0.2px;
}
.store .st span {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

/* Compact elegant buttons in navbar */
.nav-store {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -0.015em;
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(15, 27, 45, 0.04);
  transition: transform 0.2s var(--ease), border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.nav-store svg {
  width: 15px;
  height: 15px;
  flex: none;
}
.nav-store:hover {
  transform: translateY(-1px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}
.nav-store.primary {
  background: var(--navy);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(15, 27, 45, 0.14);
}
.nav-store.primary:hover {
  background: #08111F;
  box-shadow: 0 8px 20px rgba(15, 27, 45, 0.18);
}
.nav-store.ghost {
  background: transparent;
}
.nav-back {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 650;
  letter-spacing: -0.015em;
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--border);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s var(--ease);
}
.nav-back:hover {
  background: var(--blue-soft);
  border-color: var(--blue-tint);
  transform: translateY(-1px);
}

/* ---------------- Sections ---------------- */
.sec { padding: 96px 0; }
section { padding: 84px 0; }
.sec.band,
.band {
  background:
    linear-gradient(180deg, rgba(243, 246, 250, 0.95), rgba(243, 246, 250, 0.95)),
    radial-gradient(700px 280px at 12% 0%, rgba(91, 141, 239, 0.08), transparent 70%);
}

.section-head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 56px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-dark);
  background: var(--blue-soft);
  border: 1px solid var(--blue-tint);
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 16px;
}
.eyebrow.left {
  display: inline-flex;
  margin-bottom: 14px;
}
h2 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.12;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.04em;
}
.section-head p:not(.eyebrow) {
  margin-top: 14px;
  font-size: 17px;
  color: var(--slate-500);
  line-height: 1.55;
}

/* ---------------- Device frames ---------------- */
.device {
  position: relative;
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  padding: 7px;
  border-radius: 34px;
  background: linear-gradient(160deg, #1a2438 0%, #0d1422 100%);
  box-shadow:
    var(--shadow-lg),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.device::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 2;
  pointer-events: none;
}
.device img {
  display: block;
  width: 260px;
  max-width: 100%;
  height: auto;
  border-radius: 27px;
  background: transparent;
}
.device.sm {
  padding: 5px;
  border-radius: 26px;
}
.device.sm::before {
  top: 10px;
  width: 36px;
  height: 4px;
}
.device.sm img {
  width: 140px;
  border-radius: 21px;
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 56px;
  background:
    radial-gradient(900px 420px at 85% 10%, rgba(169, 217, 228, 0.45), transparent 60%),
    radial-gradient(700px 380px at 10% 80%, rgba(91, 141, 239, 0.12), transparent 55%),
    linear-gradient(180deg, #FFFFFF 0%, #F5F8FB 100%);
}
.hero-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  right: 8%;
  top: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91, 141, 239, 0.18), transparent 68%);
  filter: blur(10px);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.hero-kicker {
  display: none;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-dark);
  margin-bottom: 12px;
}
.hero h1 {
  font-size: clamp(40px, 5.4vw, 58px);
  line-height: 1.02;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.045em;
  margin: 0 0 20px;
  max-width: 11ch;
}
.hero h1 .accent {
  color: var(--blue);
  background: linear-gradient(120deg, #3D6FD4, #5B8DEF 50%, #7AB8E8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  font-size: 18px;
  color: var(--slate-500);
  max-width: 440px;
  margin-bottom: 28px;
  line-height: 1.55;
}
.hero .lead-short { display: none; }
.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  list-style: none;
}
.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--slate-600);
}
.hero-trust svg {
  width: 15px;
  height: 15px;
  color: var(--blue-dark);
  flex: none;
}
.hero-art {
  position: relative;
  display: grid;
  place-items: center;
}
.hero-art .device {
  box-shadow: var(--shadow-glow), var(--shadow-lg);
}

/* ---------------- Feature cards ---------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  position: relative;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px 26px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s ease;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-dark), var(--blue-bright));
  opacity: 0;
  transition: opacity 0.25s ease;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}
.card:hover::before { opacity: 1; }

.card .ico,
.support-card .ico {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: transparent;
  border-radius: 0;
  color: var(--navy);
}
.card .ico svg,
.support-card .ico svg {
  width: 26px;
  height: 26px;
  stroke-width: 1.6;
}
.ico.amber,
.ico.blue,
.ico.green {
  background: transparent;
  color: var(--navy);
}
.card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.card p {
  font-size: 15px;
  color: var(--slate-500);
  line-height: 1.55;
}

/* ---------------- Stats ---------------- */
.stats-sec { padding: 8px 0 88px; }
.stats {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(238, 244, 255, 0.9));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 36px 12px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.stat {
  position: relative;
  padding: 8px 16px;
}
.stat:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 18%;
  bottom: 18%;
  width: 1px;
  background: var(--border);
}
.stat .num {
  font-size: clamp(28px, 3.6vw, 36px);
  font-weight: 800;
  color: var(--blue-dark);
  letter-spacing: -0.03em;
}
.stat .lbl {
  font-size: 13.5px;
  color: var(--slate-500);
  margin-top: 6px;
  font-weight: 500;
}

/* ---------------- App tour ---------------- */
.tour {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.tour-item {
  text-align: center;
  padding: 8px 4px 4px;
}
.tour-item .device {
  margin: 0 auto 16px;
  transition: transform 0.3s var(--ease);
}
.tour-item:hover .device {
  transform: translateY(-6px);
}
.tour-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--blue-dark);
  margin-bottom: 6px;
}
.tour-item h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}
.tour-item p {
  font-size: 13px;
  color: var(--slate-500);
  line-height: 1.45;
  max-width: 16ch;
  margin: 0 auto;
}

/* ---------------- Metrics ---------------- */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.metric {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px 22px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.metric::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--blue);
}
.metric:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.metric .tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue-dark);
  background: var(--blue-soft);
  border-radius: 999px;
  padding: 4px 10px;
  margin-bottom: 14px;
}
.metric h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.metric p {
  font-size: 14px;
  color: var(--slate-500);
  line-height: 1.5;
}
.m-sanitaire::before { background: #22C55E; }
.m-sanitaire .tag { color: #15803D; background: #E8F8EE; }
.m-calcaire::before { background: #F59E0B; }
.m-calcaire .tag { color: #B45309; background: #FFF4DF; }
.m-peau::before { background: #EC4899; }
.m-peau .tag { color: #BE185D; background: #FCE7F3; }
.m-gout::before { background: #06B6D4; }
.m-gout .tag { color: #0E7490; background: #E0F7FA; }
.m-mineral::before { background: #8B5CF6; }
.m-mineral .tag { color: #6D28D9; background: #F3E8FF; }
.m-global::before { background: var(--blue); }

/* ---------------- Split layouts ---------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split .phone {
  display: grid;
  place-items: center;
}
.split h2 { text-align: left; }
.split .intro {
  font-size: 17px;
  color: var(--slate-500);
  margin: 14px 0 28px;
  max-width: 42ch;
  line-height: 1.55;
}
.split-copy .eyebrow.left { margin-bottom: 14px; }

.steps {
  display: grid;
  gap: 0;
  position: relative;
}
.step {
  display: flex;
  gap: 16px;
  position: relative;
  padding: 0 0 26px;
}
.step:last-child { padding-bottom: 0; }
.step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 34px;
  bottom: 4px;
  width: 2px;
  background: linear-gradient(180deg, var(--blue-tint), transparent);
}
.step .n {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--blue-bright), var(--blue-dark));
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 14px rgba(91, 141, 239, 0.35);
  position: relative;
  z-index: 1;
}
.step h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
  letter-spacing: -0.015em;
}
.step p {
  font-size: 14.5px;
  color: var(--slate-500);
  line-height: 1.5;
}

.checks { display: grid; gap: 14px; }
.check {
  display: flex;
  gap: 14px;
  padding: 16px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--border);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.check:hover {
  border-color: var(--blue-tint);
  box-shadow: var(--shadow-sm);
}
.check .tick {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: linear-gradient(145deg, var(--blue-bright), var(--blue-dark));
  color: #fff;
  display: grid;
  place-items: center;
  margin-top: 1px;
}
.check .tick svg { width: 14px; height: 14px; }
.check h4 {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 3px;
}
.check p {
  font-size: 14.5px;
  color: var(--slate-500);
  line-height: 1.45;
}

/* ---------------- Trust ---------------- */
.trust {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: stretch;
}
.trust-list {
  display: grid;
  gap: 12px;
}
.trust-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease), box-shadow 0.2s ease;
}
.trust-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.trust-ico {
  flex: none;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  background: transparent;
  color: var(--navy);
  margin-top: 2px;
}
.trust-ico svg { width: 24px; height: 24px; }
.trust-item h4 {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}
.trust-item p {
  font-size: 14px;
  color: var(--slate-500);
  line-height: 1.5;
}
.note {
  background: linear-gradient(160deg, #EEF4FF 0%, #E8F4F8 100%);
  border: 1px solid var(--blue-tint);
  border-radius: var(--radius);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}
.note-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-dark);
  margin-bottom: 10px;
}
.note p {
  font-size: 15px;
  color: var(--slate-700);
  line-height: 1.6;
}

/* ---------------- Testimonials ---------------- */
.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.quote {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease;
}
.quote:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.stars {
  display: flex;
  gap: 3px;
  margin-bottom: 16px;
  color: #F5A524;
}
.stars svg { width: 15px; height: 15px; }
.quote blockquote {
  flex: 1;
}
.quote p {
  font-size: 15.5px;
  color: var(--slate-700);
  line-height: 1.55;
  letter-spacing: -0.01em;
}
.who {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.who .av {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--blue-soft), var(--blue-tint));
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.who .nm { font-size: 14px; font-weight: 700; color: var(--navy); }
.who .rl { font-size: 13px; color: var(--slate-400); }

/* ---------------- CTA ---------------- */
.cta-sec { padding: 40px 0 100px; }
.cta {
  background:
    radial-gradient(600px 220px at 50% -10%, rgba(255, 255, 255, 0.28), transparent 70%),
    linear-gradient(135deg, #2C5BC0 0%, #5B8DEF 52%, #7AB8E8 100%);
  border-radius: var(--radius-xl);
  text-align: center;
  color: #fff;
  padding: 68px 28px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(91, 141, 239, 0.3);
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.35;
  pointer-events: none;
}
.cta-eyebrow {
  position: relative;
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 12px;
}
.cta h2 {
  color: #fff;
  position: relative;
}
.cta > p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 17px;
  margin: 14px auto 28px;
  max-width: 420px;
  position: relative;
}
.cta-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}
.cta .store {
  background: #fff;
  color: var(--navy);
  border: none;
  box-shadow: 0 10px 28px rgba(15, 27, 45, 0.18);
  backdrop-filter: none;
}
.cta .store:hover {
  background: #fff;
  color: var(--navy);
  box-shadow: 0 14px 32px rgba(15, 27, 45, 0.24);
}

/* ---------------- Footer ---------------- */
.footer {
  position: relative;
  z-index: 2;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  padding: 32px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-links {
  display: flex;
  gap: 24px;
  font-size: 14px;
  font-weight: 500;
}
.footer-links a {
  color: var(--slate-500);
  transition: color 0.2s ease;
  pointer-events: auto;
}
.footer-links a:hover { color: var(--navy); }
.footer .copy { font-size: 13px; color: var(--slate-400); }

/* ---------------- Legal / content pages ---------------- */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px 90px;
}
.legal .eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--blue);
  background: none;
  border: none;
  padding: 0;
  margin-bottom: 0;
}
.legal h1 {
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -1px;
  margin: 10px 0 8px;
}
.legal .updated { font-size: 14px; color: var(--slate-400); margin-bottom: 34px; }
.legal h2 {
  text-align: left;
  font-size: 22px;
  margin: 40px 0 12px;
  letter-spacing: -0.4px;
}
.legal h3 { font-size: 17px; color: var(--navy); margin: 22px 0 8px; }
.legal p { color: var(--slate-600); margin-bottom: 14px; font-size: 16px; }
.legal ul { margin: 0 0 16px 22px; color: var(--slate-600); }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--blue); text-decoration: underline; }
.legal-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 32px;
}
.legal-toc a {
  display: inline-flex;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-dark);
  background: var(--blue-soft);
  border: 1px solid var(--blue-tint);
  border-radius: 999px;
  padding: 6px 12px;
  transition: background 0.2s ease, transform 0.2s ease;
}
.legal-toc a:hover {
  background: var(--blue-tint);
  transform: translateY(-1px);
}
.legal-note {
  margin-top: 40px !important;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  font-size: 14px !important;
  color: var(--slate-500) !important;
}
.legal h2[id] {
  scroll-margin-top: 92px;
}

/* ---------------- Support page ---------------- */
.support-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin: 28px 0 8px;
}
.support-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s;
}
.support-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}
.support-card .ico {
  width: 26px;
  height: 26px;
  margin-bottom: 14px;
  background: transparent;
  color: var(--navy);
}
.support-card .ico svg {
  width: 24px;
  height: 24px;
}
.support-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}
.support-card p { font-size: 15px; color: var(--slate-500); margin: 0; }
.support-card a.link {
  display: inline-block;
  margin-top: 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
}
.support-card a.link:hover { text-decoration: underline; }

.faq { margin-top: 12px; }
.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  padding: 0 18px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 400;
  color: var(--blue);
  line-height: 1;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p {
  margin: 0;
  padding: 0 0 18px;
  font-size: 15px;
  color: var(--slate-600);
}

/* ---------------- Motion / reveal ---------------- */
.reveal {
  --reveal-delay: 0ms;
  opacity: 0;
  transition:
    opacity 0.75s var(--ease) var(--reveal-delay),
    transform 0.75s var(--ease) var(--reveal-delay);
  will-change: opacity, transform;
}
.reveal-up { transform: translateY(18px); }
.reveal-left { transform: translateX(-22px); }
.reveal-right { transform: translateX(22px); }
.reveal-scale { transform: translateY(14px) scale(0.97); }
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.hero-art.is-visible .device,
.split .phone.is-visible .device,
.tour-item.is-visible .device {
  animation: phone-float 7s ease-in-out infinite;
}

@keyframes phone-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ---------------- Back to top ---------------- */
.back-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  width: 46px;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(0.96);
  transition:
    opacity 0.28s ease,
    transform 0.28s var(--ease),
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}
.back-top svg { width: 20px; height: 20px; }
.back-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
.back-top:hover {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.back-top:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-up,
  .reveal-left,
  .reveal-right,
  .reveal-scale {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-art.is-visible .device,
  .split .phone.is-visible .device,
  .tour-item.is-visible .device {
    animation: none;
  }
  .back-top { transition: opacity 0.2s ease; }
}

/* ---------------- Responsive ---------------- */
@media (max-width: 1100px) {
  .tour { grid-template-columns: repeat(3, 1fr); }
  .hero h1 { max-width: none; }
  .device img { width: 240px; }
  .device.sm img { width: 130px; }
}

@media (max-width: 980px) {
  .nav-inner {
    grid-template-columns: 1fr auto;
  }
  .nav-links { display: none; }
}

@media (max-width: 900px) {
  .wrap { padding: 0 20px; }

  .hero {
    padding: 40px 0 48px;
    text-align: center;
    background:
      radial-gradient(520px 280px at 50% 0%, rgba(91, 141, 239, 0.14), transparent 70%),
      linear-gradient(180deg, #FFFFFF 0%, #F5F8FB 100%);
  }
  .hero-glow { display: none; }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .hero-art {
    display: none !important;
  }
  .hero-copy {
    max-width: 440px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero-kicker {
    display: inline-flex;
    order: 0;
    margin-bottom: 14px;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--blue-soft);
    border: 1px solid var(--blue-tint);
  }
  .hero h1 {
    order: 1;
    font-size: clamp(32px, 8.5vw, 42px);
    max-width: 14ch;
    margin: 0 0 14px;
    letter-spacing: -0.04em;
  }
  .hero .lead-full { display: none; }
  .hero .lead-short {
    display: block;
    order: 2;
    font-size: 15.5px;
    line-height: 1.5;
    max-width: 34ch;
    margin: 0 0 22px;
    color: var(--slate-500);
  }
  .hero-cta {
    order: 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
    max-width: 360px;
    margin: 0 0 20px;
  }
  .hero-cta .store {
    justify-content: center;
    width: 100%;
    min-height: 48px;
    padding: 10px 12px;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(15, 27, 45, 0.12);
  }
  .hero-cta .store .st small {
    font-size: 8px;
  }
  .hero-cta .store .st span {
    font-size: 12.5px;
  }
  .hero-trust {
    order: 4;
    justify-content: center;
    gap: 8px;
    width: 100%;
  }
  .hero-trust li {
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--border);
    font-size: 12.5px;
    font-weight: 650;
    color: var(--slate-700);
  }

  .split,
  .trust {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .split .phone {
    order: -1;
  }
  .split .phone .device img {
    width: min(220px, 56vw);
  }

  .cards,
  .quotes,
  .support-cards,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 8px;
    padding: 28px 12px;
  }
  .stat:nth-child(2)::after,
  .stat:nth-child(even)::after {
    display: none;
  }

  .sec { padding: 72px 0; }
  section { padding: 56px 0; }
  .section-head { margin-bottom: 36px; }
  .cta-sec { padding: 24px 0 72px; }
  .cta { padding: 48px 22px; border-radius: 24px; }
  .cta-btns {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 280px;
    margin-inline: auto;
  }
  .cta .store {
    justify-content: center;
    width: 100%;
  }

  .tour {
    display: flex;
    flex-direction: column;
    gap: 28px;
  }
  .tour-item {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "device label"
      "device title"
      "device desc";
    column-gap: 18px;
    row-gap: 2px;
    align-items: start;
    text-align: left;
    padding: 0;
  }
  .tour-item .device {
    grid-area: device;
    margin: 0;
  }
  .tour-item:hover .device {
    transform: none;
  }
  .tour-label {
    grid-area: label;
    align-self: end;
    margin-bottom: 0;
  }
  .tour-item h3 {
    grid-area: title;
    font-size: 17px;
    margin-bottom: 2px;
  }
  .tour-item p {
    grid-area: desc;
    max-width: none;
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
  }
  .device.sm img {
    width: 108px;
  }
}

@media (max-width: 640px) {
  .nav-inner { height: 62px; }
  .brand { font-size: 20px; }
  .nav-store {
    padding: 0 11px;
    height: 34px;
    font-size: 12px;
    gap: 6px;
  }
  .nav-store svg { width: 13px; height: 13px; }

  .hero {
    padding: 28px 0 40px;
    min-height: min(72vh, 560px);
    display: flex;
    align-items: center;
  }
  .hero-copy {
    width: 100%;
  }

  .split .phone { display: none; }
  .split-copy .intro { max-width: none; }

  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 6px 8px; }
  .stat .num { font-size: 26px; }
  .stat .lbl { font-size: 12.5px; }

  .card,
  .metric,
  .quote,
  .trust-item {
    padding: 20px 18px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .footer-links {
    flex-wrap: wrap;
    gap: 12px 18px;
  }

  .legal {
    padding: 40px 20px 72px;
  }
  .legal-toc { gap: 8px; }
  .support-cards { grid-template-columns: 1fr; }

  .back-top {
    right: 14px;
    bottom: 14px;
    width: 42px;
    height: 42px;
  }

  .tour {
    gap: 24px;
  }
  .tour-item {
    column-gap: 14px;
  }
  .device.sm img { width: 96px; }
}

@media (max-width: 400px) {
  .nav-cta { gap: 6px; }
  .nav-store:not(.primary) {
    padding: 0 10px;
  }
  .hero-cta {
    grid-template-columns: 1fr;
    max-width: 280px;
  }
  .hero-cta .store {
    min-height: 50px;
  }
}
