/* Inter (self-hosted, OFL license) — no requests to Google */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
}

/* =========================================================
   Elovia · elovia.io
   Colors: Navy #1A3A5C · Accent #3F72AD · Light gray #F2F2F7 · White
   ========================================================= */

:root {
  --navy: #1A3A5C;
  --navy-deep: #122B45;
  --accent: #3F72AD;
  --accent-light: #9CC0E8;
  --gray: #F2F2F7;
  --white: #FFFFFF;
  --ink: #1A2B3C;
  --muted: #5A6B7D;
  --line: #E1E5EC;

  --font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(26, 58, 92, .06), 0 2px 8px rgba(26, 58, 92, .05);
  --shadow: 0 10px 30px -10px rgba(26, 58, 92, .25);
  --shadow-lg: 0 40px 80px -30px rgba(18, 43, 69, .45);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 72px;
  --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: var(--accent); }
h1, h2, h3 { color: var(--navy); line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.container.narrow { max-width: 920px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.section { padding: clamp(72px, 11vw, 140px) 0; position: relative; }
.section-title { font-size: clamp(30px, 4.4vw, 48px); font-weight: 700; margin-bottom: clamp(28px, 4vw, 48px); }
.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.eyebrow-light { color: var(--accent-light); }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.65; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; border-radius: 999px; padding: 12px 22px;
  transition: transform .25s var(--ease), background-color .25s, color .25s, box-shadow .25s, border-color .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 9px 18px; font-size: 15px; }
.btn-lg { padding: 16px 28px; font-size: 17px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 24px -8px rgba(63, 114, 173, .7); }
.btn-primary:hover { background: #3566A0; box-shadow: 0 14px 30px -10px rgba(63, 114, 173, .8); }
.btn-ghost { color: #fff; border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.06); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255,255,255,.16); border-color: #fff; }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { box-shadow: 0 14px 30px -12px rgba(0,0,0,.45); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  transition: background-color .35s, box-shadow .35s, backdrop-filter .35s;
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { position: relative; display: block; width: 112px; height: 34px; flex-shrink: 0; }
.brand .logo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .35s; }
.logo-navy { opacity: 0; }
.main-nav { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.main-nav a:not(.btn) { color: rgba(255,255,255,.88); text-decoration: none; font-weight: 500; font-size: 15px; transition: color .2s; position: relative; }
.main-nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.main-nav a:not(.btn):hover::after { transform: scaleX(1); }
.main-nav a:not(.btn):hover { color: #fff; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-toggle { display: flex; align-items: center; gap: 2px; color: rgba(255,255,255,.5); font-size: 14px; }
.lang-toggle button {
  font: inherit; font-weight: 600; background: none; border: 0; cursor: pointer;
  color: rgba(255,255,255,.6); padding: 6px 6px; border-radius: 6px; transition: color .2s;
}
.lang-toggle button[aria-pressed="true"] { color: #fff; }
.menu-toggle { display: none; }

.site-header.scrolled {
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px);
  box-shadow: 0 1px 0 rgba(26,58,92,.08);
}
.site-header.scrolled .logo-white { opacity: 0; }
.site-header.scrolled .logo-navy { opacity: 1; }
.site-header.scrolled .main-nav a:not(.btn) { color: var(--navy); }
.site-header.scrolled .lang-toggle { color: rgba(26,58,92,.35); }
.site-header.scrolled .lang-toggle button { color: rgba(26,58,92,.5); }
.site-header.scrolled .lang-toggle button[aria-pressed="true"] { color: var(--navy); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; overflow: hidden; color: #fff;
  background: var(--navy-deep);
  padding: calc(var(--header-h) + 40px) 0 100px;
}
.hero-media { position: absolute; inset: -10% 0 -10% 0; will-change: transform; }
.hero-fallback { position: absolute; inset: 0; overflow: hidden; background: linear-gradient(180deg, #0E2238 0%, #1A3A5C 55%, #2D5585 100%); }
.hero-fallback-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: kenburns 28s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1.04) translate(0, 0); } to { transform: scale(1.14) translate(-2%, -1.5%); } }

.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s ease; }
.hero-video.is-ready { opacity: 1; }
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(14,34,56,.82) 0%, rgba(14,34,56,.55) 45%, rgba(14,34,56,.15) 100%),
    linear-gradient(0deg, rgba(14,34,56,.55) 0%, rgba(14,34,56,0) 35%);
}
.hero-content { position: relative; z-index: 2; will-change: transform; }
.hero-title { color: #fff; font-size: clamp(40px, 7vw, 84px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.04; max-width: 15ch; }
.hero-title > span { display: block; }
.hero-accent { color: var(--accent-light); margin-top: .12em; }
.hero-sub { margin-top: 28px; font-size: clamp(18px, 1.8vw, 22px); line-height: 1.55; color: rgba(255,255,255,.82); max-width: 40ch; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

.scroll-cue { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 2; width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.55); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.d1 { transition-delay: .1s; }
.reveal.d2 { transition-delay: .2s; }
.reveal.d3 { transition-delay: .3s; }
.reveal.d4 { transition-delay: .4s; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- In plain words ---------- */
.plain { padding-bottom: clamp(40px, 6vw, 70px); }
.plain-card {
  position: relative; background: var(--gray); border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 64px); overflow: hidden;
}
.plain-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--accent); }
.plain-card h2 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 700; margin-bottom: 20px; }
.plain-card .lead { color: var(--ink); opacity: .82; font-size: clamp(18px, 1.75vw, 22px); line-height: 1.7; }

/* ---------- Problems ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(18px, 2.4vw, 28px); }
.problem {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 32px 34px; transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.problem:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.problem-num { display: inline-block; font-size: 14px; font-weight: 700; color: var(--accent); letter-spacing: .08em; margin-bottom: 18px; padding: 4px 10px; background: rgba(63,114,173,.1); border-radius: 999px; }
.problem h3 { font-size: 21px; font-weight: 700; margin-bottom: 10px; }
.problem p { color: var(--muted); }

/* ---------- Chat section ---------- */
.chat-section { background: var(--gray); overflow: hidden; }
.chat-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.chat-intro .section-title { margin-bottom: 18px; }
.deco-ring { position: absolute; width: 620px; height: 620px; right: -120px; top: 50%; margin-top: -310px; border-radius: 50%; border: 1px solid rgba(63,114,173,.18); box-shadow: 0 0 0 80px rgba(63,114,173,.04), 0 0 0 160px rgba(63,114,173,.03); pointer-events: none; }

.phone-wrap { position: relative; justify-self: center; width: min(360px, 88vw); }
.phone {
  position: relative; aspect-ratio: 9 / 19; width: 100%;
  background: #0E1A28; border-radius: 52px; padding: 12px;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px #2A3B4F, inset 0 0 0 5px #0B1520;
  z-index: 1;
}
.phone-notch { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); width: 96px; height: 28px; border-radius: 20px; background: #05090F; z-index: 3; }
.phone-screen { position: relative; height: 100%; border-radius: 41px; overflow: hidden; background: #F5F6FA; display: flex; flex-direction: column; }
.phone-shadow { position: absolute; left: 10%; right: 10%; bottom: -30px; height: 40px; background: radial-gradient(ellipse at center, rgba(18,43,69,.35), transparent 70%); filter: blur(8px); }
.app-bar { background: var(--navy); padding: 62px 20px 16px; display: flex; align-items: center; justify-content: space-between; }
.app-logo { height: 22px; width: auto; }
.app-status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: rgba(255,255,255,.8); }
.app-status i { width: 7px; height: 7px; border-radius: 50%; background: #5BD18B; box-shadow: 0 0 0 3px rgba(91,209,139,.25); }
.chat-body { flex: 1; scroll-behavior: smooth; padding: 18px 14px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; justify-content: flex-start; }
.msg { max-width: 86%; font-size: 13.5px; line-height: 1.5; border-radius: 18px; padding: 11px 14px; opacity: 0; transform: translateY(10px) scale(.98); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.msg.show { opacity: 1; transform: none; }
.msg-user { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 6px; }
.msg-bot { align-self: flex-start; background: #fff; color: var(--ink); border-bottom-left-radius: 6px; box-shadow: var(--shadow-sm); }
.bot-text .w { opacity: 0; transition: opacity .25s ease; }
.bot-text .w.on { opacity: 1; }
.bot-source { display: flex; align-items: center; gap: 6px; margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--line); font-size: 11.5px; font-weight: 600; color: var(--accent); opacity: 0; transition: opacity .5s ease; }
.bot-source.on { opacity: 1; }
.bot-source svg { flex-shrink: 0; }
.typing { align-self: flex-start; display: none; gap: 4px; padding: 13px 16px; background: #fff; border-radius: 18px; border-bottom-left-radius: 6px; box-shadow: var(--shadow-sm); }
.typing.show { display: flex; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: #9AA8B8; animation: dot 1.2s infinite ease-in-out; }
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.chat-input { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px 26px; background: #fff; border-top: 1px solid var(--line); }
.chat-field { flex: 1; min-height: 38px; max-height: 96px; overflow: hidden; border: 1px solid var(--line); border-radius: 19px; padding: 9px 14px; font-size: 13px; line-height: 1.45; color: var(--ink); background: #F8F9FB; }
.caret { display: inline-block; width: 1.5px; height: 15px; background: var(--accent); vertical-align: -3px; margin-left: 1px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.chat-send { width: 38px; height: 38px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: #D7DEE8; color: #fff; transition: background .25s, transform .2s; }
.chat-send.active { background: var(--accent); }
.chat-send.pulse { transform: scale(.88); }

/* ---------- How it works ---------- */
.how .section-title { max-width: 22ch; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 28px); counter-reset: s; position: relative; }
.step { position: relative; background: var(--gray); border-radius: var(--radius); padding: 34px 30px 36px; }
.step-num { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: #fff; color: var(--accent); font-size: 24px; font-weight: 800; margin-bottom: 22px; box-shadow: var(--shadow-sm); }
.step h3 { font-size: 21px; font-weight: 700; margin-bottom: 10px; }
.step p { color: var(--muted); }
.steps::before { content: ""; position: absolute; top: 61px; left: 6%; right: 6%; height: 2px; background: linear-gradient(90deg, var(--accent), rgba(63,114,173,.15)); transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease) .3s; z-index: 0; }
.steps.in::before { transform: scaleX(1); }
.step { z-index: 1; }


/* ---------- Split sections ---------- */
.alt-bg { background: var(--gray); }
.split-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.split-reverse .split-media { order: 2; }
.media-frame { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--navy); }
.media-frame img { position: absolute; left: 0; top: -10%; width: 100%; height: 120%; object-fit: cover; will-change: transform; }
.split-text .section-title { margin-bottom: 18px; }
.checklist { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 14px; }
.checklist li { position: relative; padding-left: 38px; font-weight: 500; color: var(--ink); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%;
  background: rgba(63,114,173,.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3.2 3.2L17 8.8' fill='none' stroke='%233F72AD' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}

/* ---------- Security ---------- */
.security { background: var(--navy); color: #fff; overflow: hidden; }
.security .section-title { color: #fff; margin: 0; }
.sec-glow { position: absolute; width: 700px; height: 700px; left: -200px; top: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(63,114,173,.45), transparent 65%); pointer-events: none; }
.sec-head { display: flex; align-items: center; gap: 18px; margin-bottom: clamp(32px, 4vw, 52px); position: relative; }
.sec-icon { display: grid; place-items: center; width: 60px; height: 60px; flex-shrink: 0; border-radius: 18px; background: rgba(255,255,255,.08); color: var(--accent-light); border: 1px solid rgba(255,255,255,.12); }
.sec-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; position: relative; }
.sec-grid li {
  position: relative; padding: 24px 24px 24px 62px; border-radius: var(--radius);
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); font-weight: 500; color: rgba(255,255,255,.92);
  transition: background .3s, border-color .3s, transform .4s var(--ease);
}
.sec-grid li:hover { background: rgba(255,255,255,.09); border-color: rgba(156,192,232,.35); }
.sec-grid li::before {
  content: ""; position: absolute; left: 22px; top: 24px; width: 26px; height: 26px; border-radius: 50%;
  background: rgba(156,192,232,.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3.2 3.2L17 8.8' fill='none' stroke='%239CC0E8' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}

/* ---------- What changes ---------- */
.change-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.change { border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; background: #fff; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.change:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.change-icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: rgba(63,114,173,.1); margin-bottom: 20px; }
.change-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.change h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.change p { color: var(--muted); font-size: 16px; }

/* ---------- Pilot ---------- */
.pilot-section { padding-top: 0; }
.pilot-card {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--navy) 0%, #23497A 60%, var(--accent) 140%);
  color: #fff; padding: clamp(40px, 6vw, 80px);
}
.pilot-card h2 { color: #fff; font-size: clamp(30px, 4.2vw, 46px); font-weight: 700; margin-bottom: 20px; max-width: 20ch; }
.pilot-text { color: rgba(255,255,255,.82); font-size: clamp(17px, 1.6vw, 20px); line-height: 1.65; max-width: 62ch; margin-bottom: 34px; }
.pilot-shine { position: absolute; right: -15%; top: -60%; width: 70%; height: 220%; background: radial-gradient(ellipse at center, rgba(156,192,232,.35), transparent 60%); transform: rotate(20deg); animation: shine 12s ease-in-out infinite alternate; pointer-events: none; }
@keyframes shine { from { transform: rotate(20deg) translateX(0); } to { transform: rotate(20deg) translateX(-18%); } }
.pilot-card > *:not(.pilot-shine) { position: relative; }

/* ---------- Contact ---------- */
.contact { background: var(--gray); }
.contact-layout { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.contact-intro .section-title { margin-bottom: 18px; }
.contact-alt { margin-top: 28px; color: var(--muted); }
.contact-alt a { font-weight: 600; text-decoration: none; border-bottom: 1.5px solid rgba(63,114,173,.35); }
.contact-alt a:hover { border-color: var(--accent); }
.contact-form { background: #fff; border-radius: var(--radius-lg); padding: clamp(26px, 4vw, 44px); box-shadow: var(--shadow); display: grid; gap: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-size: 14px; font-weight: 600; color: var(--navy); padding: 0; margin-bottom: 0; }
fieldset.field legend { margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 12px; background: #FAFBFC; padding: 13px 14px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px rgba(63,114,173,.14); }
.field.invalid input, .field.invalid textarea, .field.invalid .segmented { border-color: #C2453D; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; border: 1.5px solid var(--line); border-radius: 14px; background: #FAFBFC; }
.segmented label { position: relative; cursor: pointer; margin: 0; }
.segmented input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.segmented span { display: block; text-align: center; padding: 10px 8px; border-radius: 10px; font-weight: 600; font-size: 15px; color: var(--muted); transition: background .25s, color .25s, box-shadow .25s; }
.segmented input:checked + span { background: var(--navy); color: #fff; box-shadow: var(--shadow-sm); }
.segmented input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; }
.form-success { display: flex; align-items: center; gap: 10px; color: #2F7A4F; font-weight: 600; background: #EAF6EF; padding: 14px 16px; border-radius: 12px; }
.form-success[hidden] { display: none; }
.form-success svg { color: #34A065; flex-shrink: 0; }
.contact-form.sent .field, .contact-form.sent .field-row, .contact-form.sent button { display: none; }
.contact-form button[disabled] { opacity: .7; pointer-events: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.65); padding: 40px 0; font-size: 14px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-brand img { width: 96px; height: auto; }
.footer-brand span { padding-left: 16px; border-left: 1px solid rgba(255,255,255,.2); }
.footer-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-meta a { color: rgba(255,255,255,.8); text-decoration: none; }
.footer-meta a:hover { color: #fff; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1020px) {
  .change-grid { grid-template-columns: repeat(2, 1fr); }
  .sec-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .menu-toggle {
    display: grid; align-content: center; gap: 6px; width: 44px; height: 44px; padding: 0 11px;
    background: none; border: 0; cursor: pointer; border-radius: 10px;
  }
  .menu-toggle span { display: block; height: 2px; border-radius: 2px; background: #fff; transition: transform .3s var(--ease), background .3s; }
  .site-header.scrolled .menu-toggle span, .site-header.menu-open .menu-toggle span { background: var(--navy); }
  .site-header.menu-open .menu-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
  .site-header.menu-open .menu-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }

  .main-nav {
    position: fixed; left: 0; right: 0; top: var(--header-h); margin: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: 8px var(--gutter) 24px;
    box-shadow: 0 20px 40px -20px rgba(18,43,69,.35);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: opacity .3s, transform .3s var(--ease), visibility .3s;
  }
  .main-nav a:not(.btn) { color: var(--navy) !important; font-size: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .main-nav a:not(.btn)::after { display: none; }
  .main-nav .nav-cta { margin-top: 20px; padding: 15px; font-size: 17px; }
  .site-header.menu-open { background: #fff; box-shadow: 0 1px 0 rgba(26,58,92,.08); }
  .site-header.menu-open .main-nav { opacity: 1; transform: none; visibility: visible; }
  .site-header.menu-open .logo-white { opacity: 0; }
  .site-header.menu-open .logo-navy { opacity: 1; }
  .site-header.menu-open .lang-toggle button { color: rgba(26,58,92,.5); }
  .site-header.menu-open .lang-toggle button[aria-pressed="true"] { color: var(--navy); }
  .site-header.menu-open .lang-toggle { color: rgba(26,58,92,.35); }
  .header-actions { margin-left: auto; }

  .chat-layout, .split-inner, .contact-layout { grid-template-columns: 1fr; }
  .split-reverse .split-media { order: 0; }
  .media-frame { aspect-ratio: 16 / 11; }
  .steps { grid-template-columns: 1fr; }
  .steps::before { top: 6%; bottom: 6%; left: 56px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--accent), rgba(63,114,173,.15)); transform: scaleY(0); transform-origin: top; }
  .steps.in::before { transform: scaleY(1); }
  .deco-ring { display: none; }
  .chat-intro { text-align: left; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .grid-2, .change-grid, .sec-grid, .field-row { grid-template-columns: 1fr; }
  .hero { align-items: flex-end; padding-bottom: 96px; }
  .hero-overlay { background: linear-gradient(0deg, rgba(14,34,56,.92) 0%, rgba(14,34,56,.6) 50%, rgba(14,34,56,.35) 100%); }
  .hero-buttons .btn { flex: 1 1 100%; }
  .problem { padding: 26px 24px 28px; }
  .step { padding: 28px 24px; }
  .sec-head { align-items: flex-start; flex-direction: column; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .phone { border-radius: 46px; }
  .phone-screen { border-radius: 36px; }
}

/* =========================================================
   Reduced motion: no parallax, no animations, instant content
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .reveal { opacity: 1; transform: none; }
  [data-parallax] { transform: none !important; }
  .hero-video { display: none; }
  .steps::before { transform: none; }
}

/* =========================================================
   PREMIUM LAYER: cinematic hero exit, word reveals,
   scroll-scrubbed cinema scene, spotlight cards, grain
   ========================================================= */

/* Film grain on dark/media areas */
.grain {
  position: absolute; inset: -50%; z-index: 1; pointer-events: none; opacity: .09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}
.security .container { position: relative; z-index: 2; }

/* Hero: clip opens into a rounded card while scrolling away */
.hero { --p: 0; clip-path: inset(calc(var(--p) * 4%) calc(var(--p) * 3%) 0 round calc(var(--p) * 40px)); }
.hero-content { opacity: calc(1 - var(--p) * 1.4); }
.hero-media { transform-origin: center top; }

/* Word-by-word masked reveal */
[data-split] .wm { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
[data-split] .wi { display: inline-block; transform: translateY(110%); transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 45ms + var(--d, 0s)); }
[data-split].in .wi, .in [data-split] .wi, [data-split].split-in .wi { transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }

/* Cinema scene: sticky full screen, opens from a card to full bleed */
.cinema { --c: 0; position: relative; height: 240vh; background: #fff; }
.cinema-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; place-items: center; overflow: hidden; }
.cinema-frame {
  position: relative; width: 100%; height: 100%; overflow: hidden; background: var(--navy-deep);
  clip-path: inset(calc((1 - var(--c)) * 14%) calc((1 - var(--c)) * 18%) round calc((1 - var(--c)) * 36px));
  will-change: clip-path;
}
.cinema-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.25 - var(--c) * .25)); will-change: transform; }

/* Spotlight that follows the cursor on cards */
[data-spot] { --mx: 50%; --my: 50%; isolation: isolate; }
[data-spot]::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(63,114,173,.13), transparent 45%);
  opacity: 0; transition: opacity .4s;
}
[data-spot]:hover::after { opacity: 1; }
.sec-grid li[data-spot]::after { background: radial-gradient(380px circle at var(--mx) var(--my), rgba(156,192,232,.18), transparent 45%); }
.sec-grid li { overflow: hidden; }

/* Magnetic buttons */
[data-magnetic] { will-change: transform; }

/* Media slots that became videos */
video.slot-video { position: absolute; left: 0; width: 100%; object-fit: cover; }
.media-frame video.slot-video { top: -10%; height: 120%; }

@media (max-width: 900px) {
  .cinema { height: 180vh; }
  .cinema-frame { clip-path: inset(calc((1 - var(--c)) * 10%) calc((1 - var(--c)) * 6%) round calc((1 - var(--c)) * 28px)); }
}

@media (prefers-reduced-motion: reduce) {
  .hero { clip-path: none; }
  .hero-content { opacity: 1; }
  [data-split] .wi { transform: none; }
  .cinema { height: auto; }
  .cinema-sticky { position: relative; height: clamp(260px, 50vw, 560px); }
  .cinema-frame { clip-path: none; }
  .cinema-media { transform: none; }
  .grain { display: none; }
}

/* 3D night city (js/city.js). Hidden as soon as a real photo/video is in the slot. */
.city { position: absolute; inset: 0; }
.city-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.6s ease; }
.city-canvas.on { opacity: 1; }
.has-media > .city { display: none; }
.cinema-frame .city { z-index: 0; }
.cinema-frame .slot-video, .cinema-frame .cinema-media { z-index: 0; }
.cinema-frame.has-media .cinema-media { z-index: 1; }

/* =========================================================
   CALMER LAYOUT (v3): fewer boxes, one idea per screen
   ========================================================= */

/* Problems: editorial list, thin rules instead of cards */
.pain-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.pain { display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1fr); gap: 12px 40px; align-items: baseline; padding: 30px 0; border-bottom: 1px solid var(--line); }
.pain-num { font-size: 14px; font-weight: 600; color: var(--accent); letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.pain h3 { font-size: clamp(20px, 2vw, 25px); font-weight: 650; letter-spacing: -0.015em; }
.pain p { color: var(--muted); font-size: 17px; }

/* How it works lives inside the cinema scene */
.cinema { height: 420vh; background: #fff; }
.cinema-shade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(8,19,33,.94) 0%, rgba(8,19,33,.86) 30%, rgba(8,19,33,.45) 52%, rgba(8,19,33,0) 75%);
  opacity: calc(var(--c) * 1.2);
}
.cinema-text { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; color: #fff; pointer-events: none; }
.cine-intro, .cine-step {
  position: absolute; max-width: 560px; opacity: 0; transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .9s var(--ease);
}
.cine-intro.active, .cine-step.active { opacity: 1; transform: none; }
.cine-intro.past, .cine-step.past { opacity: 0; transform: translateY(-24px); }
.cine-intro h2 { color: #fff; font-size: clamp(34px, 4.6vw, 60px); font-weight: 750; letter-spacing: -0.03em; line-height: 1.06; }
.cine-num { display: block; font-size: clamp(64px, 9vw, 120px); font-weight: 200; line-height: 1; color: var(--accent-light); margin-bottom: 18px; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.cine-step h3 { color: #fff; font-size: clamp(28px, 3.4vw, 44px); font-weight: 700; letter-spacing: -0.025em; margin-bottom: 14px; }
.cine-step p { font-size: clamp(17px, 1.6vw, 21px); line-height: 1.6; color: rgba(255,255,255,.82); }
.cine-progress { position: absolute; left: var(--gutter); bottom: 48px; display: flex; gap: 8px; opacity: calc(var(--c) * 1.2); }
.cine-progress span { width: 28px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.22); transition: background .5s; }
.cine-progress span.on { background: #fff; }

/* Brokerages / developers: one section, a typographic toggle */
.anchor { position: absolute; top: 0; }
.audiences { position: relative; }
.aud-tabs { display: flex; flex-wrap: wrap; gap: 6px 36px; margin-bottom: clamp(28px, 4vw, 48px); }
.aud-tabs button {
  font: inherit; font-size: clamp(30px, 4.4vw, 52px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1;
  background: none; border: 0; padding: 0 0 8px; cursor: pointer; color: #C3CCD8;
  border-bottom: 3px solid transparent; transition: color .3s, border-color .3s;
}
.aud-tabs button:hover { color: #8C9AAD; }
.aud-tabs button[aria-selected="true"] { color: var(--navy); border-bottom-color: var(--accent); }
.aud-panel { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 90px); align-items: start; animation: panelIn .6s var(--ease); }
.aud-panel[hidden] { display: none; }
@keyframes panelIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.aud-lead { font-size: clamp(21px, 2.2vw, 28px); line-height: 1.45; color: var(--ink); letter-spacing: -0.01em; }
.aud-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.aud-list li { padding: 15px 0 15px 30px; border-bottom: 1px solid var(--line); position: relative; font-weight: 500; }
.aud-list li::before { content: ""; position: absolute; left: 2px; top: 25px; width: 12px; height: 2px; background: var(--accent); }

/* Security: plain two-column list on navy */
.sec-layout { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 6vw, 90px); align-items: start; }
.sec-layout .section-title { color: #fff; margin: 0; }
.sec-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.sec-list li { padding: 16px 0 16px 28px; border-top: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.88); position: relative; }
.sec-list li::before { content: ""; position: absolute; left: 0; top: 22px; width: 14px; height: 8px; border-left: 2px solid var(--accent-light); border-bottom: 2px solid var(--accent-light); transform: rotate(-45deg); }

/* What changes: four quiet columns */
.gain-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.gain { border-top: 2px solid var(--navy); padding-top: 20px; }
.gain h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.gain p { color: var(--muted); font-size: 16px; }

@media (max-width: 900px) {
  .pain { grid-template-columns: 44px 1fr; }
  .pain p { grid-column: 2; }
  .cinema { height: 380vh; }
  .cinema-shade { background: linear-gradient(0deg, rgba(8,19,33,.96) 0%, rgba(8,19,33,.85) 42%, rgba(8,19,33,.2) 72%); }
  .cinema-text { align-items: flex-end; padding-bottom: 96px; }
  .cine-progress { bottom: 44px; }
  .aud-panel, .sec-layout { grid-template-columns: 1fr; }
  .gain-row { grid-template-columns: 1fr 1fr; gap: 28px 24px; }
}
@media (max-width: 640px) {
  .sec-list { grid-template-columns: 1fr; }
  .gain-row { grid-template-columns: 1fr; }
  .aud-tabs { gap: 4px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .cinema { height: auto; }
  .cinema-sticky { position: relative; height: auto; }
  .cinema-frame { min-height: 100vh; padding: 120px 0; }
  .cinema-shade { opacity: 1; }
  .cinema-text { position: relative; display: grid; gap: 40px; }
  .cine-intro, .cine-step { position: static; opacity: 1; transform: none; }
  .cine-progress { display: none; }
}

/* =========================================================
   STORY HERO (v4): hero + How it works as one pinned scroll scene
   ========================================================= */
.hero.story {
  display: block; height: 820vh; min-height: 0; padding: 0; overflow: visible;
  clip-path: none; background: #0f2339; position: relative;
}
.story-anchor { position: absolute; left: 0; }
.story-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; overflow: clip; }
.story-media { position: absolute; inset: 0; }
.story-shade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(8,19,33,.9) 0%, rgba(8,19,33,.78) 30%, rgba(8,19,33,.38) 55%, rgba(8,19,33,0) 78%);
}
.story .grain { z-index: 1; }
.story-text { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; color: #fff; padding-top: var(--header-h); }
.story-phase {
  position: absolute; max-width: 620px; opacity: 0; transform: translateY(28px); pointer-events: none;
  transition: opacity .7s var(--ease), transform .9s var(--ease);
}
.story-phase.active { opacity: 1; transform: none; pointer-events: auto; }
.story-phase.past { opacity: 0; transform: translateY(-28px); }
.story .hero-content { max-width: 760px; opacity: 0; }
.story .hero-content.active { opacity: 1; }
.story .cine-progress { opacity: 0; transition: opacity .5s; }
.story:not([data-phase="0"]):not([data-phase="1"]) .cine-progress { opacity: 1; }
.story .scroll-cue { z-index: 3; transition: opacity .4s; }
.story:not([data-phase="0"]) .scroll-cue { opacity: 0; pointer-events: none; }

@media (max-width: 900px) {
  .hero.story { height: 760vh; }
  .story-shade { background: linear-gradient(0deg, rgba(8,19,33,.96) 0%, rgba(8,19,33,.85) 45%, rgba(8,19,33,.25) 75%); }
  .story-text { align-items: flex-end; padding-bottom: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero.story { height: auto; }
  .story-sticky { position: relative; height: auto; overflow: visible; }
  .story-text { position: relative; display: grid; gap: 56px; padding: calc(var(--header-h) + 60px) var(--gutter) 100px; }
  .story-phase, .story .hero-content { position: static; opacity: 1; transform: none; pointer-events: auto; }
  .story .cine-progress, .story .scroll-cue { display: none; }
}

/* =========================================================
   v5: SALES STRUCTURE
   ========================================================= */

/* Scroll show: "what is Elovia" stop + context line above each step */
.cine-intro.what h2 { font-size: clamp(30px, 4vw, 52px); }
.what-text { margin-top: 20px; font-size: clamp(18px, 1.7vw, 22px); line-height: 1.6; color: rgba(255,255,255,.82); max-width: 52ch; }
.step-context { margin-bottom: 10px; }
.scroll-hint {
  position: absolute; left: 50%; bottom: 76px; transform: translateX(-50%); z-index: 3; margin: 0;
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.6); transition: opacity .4s;
}
.story:not([data-phase="0"]) .scroll-hint { opacity: 0; }

/* Day to day: before / after */
.day .day-title { max-width: 18ch; margin-bottom: 18px; }
.day-lead { max-width: 56ch; }
.day-compare { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); margin-top: clamp(48px, 7vw, 90px); align-items: start; }
.day-col { margin: 0; display: grid; justify-items: center; gap: 22px; }
.day-label { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #B4483F; }
.day-label-good { color: var(--accent); }
.day-caption { max-width: 34ch; text-align: center; color: var(--muted); font-size: 17px; }
.day .phone-wrap { width: min(300px, 86vw); }

.lockphone {
  position: relative; width: min(300px, 86vw); aspect-ratio: 9 / 19; border-radius: 48px; padding: 11px;
  background: #0E1A28; box-shadow: var(--shadow-lg), inset 0 0 0 2px #2A3B4F, inset 0 0 0 5px #0B1520;
}
.lock-screen {
  position: relative; height: 100%; border-radius: 41px; overflow: hidden; padding: 70px 14px 20px;
  background: linear-gradient(180deg, #1B2B40 0%, #24364D 45%, #3A3340 100%); color: #fff;
}
.lock-screen::before { content: ""; position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 96px; height: 28px; border-radius: 20px; background: #05090F; }
.lock-day { text-align: center; font-size: 15px; font-weight: 500; opacity: .85; }
.lock-time { text-align: center; font-size: 74px; font-weight: 300; line-height: 1.05; letter-spacing: -0.03em; margin-bottom: 28px; }
.notifs { display: grid; gap: 8px; }
.notif {
  display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; padding: 11px 12px; border-radius: 18px;
  background: rgba(255,255,255,.16); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  font-size: 13px; line-height: 1.35;
  opacity: 0; transform: translateY(-14px) scale(.97);
  transition: opacity .45s var(--ease), transform .55s var(--ease);
  transition-delay: calc(var(--n) * 0.9s + .3s);
}
.ring .notif { opacity: 1; transform: none; }
.ring .notif:nth-child(4) { animation: buzz .5s ease calc(3 * 0.9s + .85s) 1; }
@keyframes buzz { 0%,100% { translate: 0 0; } 20% { translate: -4px 0; } 40% { translate: 4px 0; } 60% { translate: -3px 0; } 80% { translate: 2px 0; } }
.notif-app { width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(180deg, #5FD27A, #2FB24F); position: relative; }
.notif-app::after { content: ""; position: absolute; inset: 8px 7px 9px; border-radius: 7px 7px 7px 2px; background: #fff; }
.notif-head { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 2px; }
.notif-head b { font-weight: 600; }
.notif-head span { opacity: .6; font-size: 12px; white-space: nowrap; }

/* Qualification */
.fit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 32px); }
.fit-col { border-radius: var(--radius-lg); padding: clamp(26px, 3.5vw, 40px); }
.fit-yes { background: var(--navy); color: #fff; }
.fit-no { background: var(--gray); }
.fit-col h3 { font-size: 22px; margin-bottom: 18px; }
.fit-yes h3 { color: #fff; }
.fit-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.fit-col li { position: relative; padding-left: 30px; line-height: 1.5; }
.fit-yes li { color: rgba(255,255,255,.9); }
.fit-no li { color: var(--muted); }
.fit-yes li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 13px; height: 7px; border-left: 2px solid var(--accent-light); border-bottom: 2px solid var(--accent-light); transform: rotate(-45deg); }
.fit-no li::before, .fit-no li::after { content: ""; position: absolute; left: 1px; top: 11px; width: 14px; height: 2px; background: #B4483F; transform: rotate(45deg); }
.fit-no li::after { transform: rotate(-45deg); }

/* Pilot offer */
.pilot-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.pilot-head h2 { margin-bottom: 0; }
.seats { display: grid; grid-template-columns: repeat(3, 34px); gap: 8px; justify-items: center; }
.seat { width: 34px; height: 34px; border-radius: 50%; border: 2px solid rgba(255,255,255,.75); }
.seats p { grid-column: 1 / -1; margin: 4px 0 0; font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--accent-light); white-space: nowrap; }
.pilot-card .pilot-text { margin-top: 24px; }
.pilot-cols { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; margin-bottom: 36px; }
.pilot-cols h3 { color: #fff; font-size: 17px; margin-bottom: 14px; letter-spacing: 0; }
.pilot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pilot-list li { position: relative; padding-left: 28px; color: rgba(255,255,255,.9); }
.pilot-list li::before { content: ""; position: absolute; left: 1px; top: 6px; width: 13px; height: 7px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }
.pilot-list-light li::before { width: 8px; height: 8px; border: 0; border-radius: 50%; background: var(--accent-light); transform: none; top: 8px; left: 3px; }
.pilot-cta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.pilot-note { color: rgba(255,255,255,.7); font-size: 15px; }

/* Application form: 4-way choice */
.segmented-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .day-compare, .fit-grid, .pilot-cols { grid-template-columns: 1fr; }
  .scroll-hint { display: none; }
}
@media (max-width: 420px) {
  .segmented-4 { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .notif { opacity: 1; transform: none; }
}
.seats p { justify-self: end; }
@media (max-width: 900px) { .seats p { justify-self: start; } }

/* =========================================================
   v6: DAY TO DAY as a pinned scroll scene
   ========================================================= */
.day { position: relative; height: 340vh; background: #fff; }
.day-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; overflow: clip; display: flex; align-items: center; padding-top: var(--header-h); }
.day-stage { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(24px, 5vw, 72px); align-items: center; }

.day-copy { display: grid; }
.day-copy > div { grid-area: 1 / 1; transition: opacity .6s var(--ease), transform .7s var(--ease); }
.day-copy-c { opacity: 0; transform: translateY(20px); }
.day[data-stage="c"] .day-copy-a { opacity: 0; transform: translateY(-20px); }
.day[data-stage="c"] .day-copy-c { opacity: 1; transform: none; }
.day-h { font-size: clamp(30px, 3.8vw, 50px); font-weight: 750; letter-spacing: -0.03em; line-height: 1.08; color: var(--navy); margin: 0 0 18px; }
.day-copy .lead { max-width: 40ch; }

/* phones: alone first, then side by side */
.day-phones { --pw: min(260px, 32vw); --gap: 36px; position: relative; display: flex; justify-content: center; gap: var(--gap); }
.day-col { margin: 0; display: grid; justify-items: center; gap: 16px; transition: transform .9s var(--ease), opacity .7s var(--ease); }
.day .lockphone, .day .phone-wrap { width: var(--pw); }
.day .phone-shadow { display: none; }
.day-before { transform: translateX(calc((var(--pw) + var(--gap)) / 2)); }
.day-after { opacity: 0; transform: translateX(80px); pointer-events: none; }
.day:not([data-stage="a"]) .day-before { transform: none; }
.day:not([data-stage="a"]) .day-after { opacity: 1; transform: none; }
.day[data-stage="c"] .day-before { opacity: .55; }

/* lock screen: one notification per scroll step, then silence */
.day .notif { transition-delay: 0s; }
.day .notif.show { opacity: 1; transform: none; }
.lockphone.buzz { animation: buzz .45s ease; }
.lock-screen { position: relative; }
.lock-quiet { position: absolute; left: 0; right: 0; top: 46%; text-align: center; font-size: 14px; color: rgba(255,255,255,.75); opacity: 0; transition: opacity .6s ease .3s; }
.day[data-stage="c"] .notif { opacity: 0; transform: translateY(-10px) scale(.97); transition-delay: 0s; }
.day[data-stage="c"] .notif:nth-child(2) { transition-delay: .08s; }
.day[data-stage="c"] .notif:nth-child(3) { transition-delay: .16s; }
.day[data-stage="c"] .notif:nth-child(4) { transition-delay: .24s; }
.day[data-stage="c"] .lock-quiet { opacity: 1; }

/* hints that invite the next scroll */
.day-hint {
  position: absolute; left: 50%; bottom: 26px; transform: translate(-50%, 8px); margin: 0; z-index: 3;
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  padding: 10px 18px; border-radius: 999px; background: var(--navy); color: #fff; font-size: 14px; font-weight: 600;
  box-shadow: var(--shadow); opacity: 0; transition: opacity .5s ease, transform .6s var(--ease); pointer-events: none;
}
.day-hint i { width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); animation: hintArrow 1.4s ease-in-out infinite; }
@keyframes hintArrow { 0%, 100% { translate: 0 0; } 50% { translate: 0 3px; } }
.day[data-stage="a"] .day-hint-a, .day[data-stage="b"] .day-hint-b { opacity: 1; transform: translate(-50%, 0); }
.day-hint-b { background: var(--accent); }

/* scroll-show hint, a bit more inviting */
.scroll-hint { font-size: 13px; letter-spacing: .08em; text-transform: none; font-weight: 500; color: rgba(255,255,255,.8); }

@media (max-width: 900px) {
  .day { height: 380vh; }
  .day-stage { grid-template-columns: 1fr; gap: 18px; align-content: center; }
  .day-h { font-size: clamp(26px, 7vw, 34px); margin-bottom: 10px; }
  .day-copy .lead { font-size: 16px; }
  .day-phones { --pw: min(210px, 56vw); height: calc(var(--pw) * 19 / 9 + 34px); }
  .day-col { position: absolute; top: 0; left: 50%; }
  .day-before { transform: translateX(-50%); }
  .day-after { transform: translateX(10%); }
  .day:not([data-stage="a"]) .day-before { transform: translateX(-160%); opacity: 0; }
  .day:not([data-stage="a"]) .day-after { transform: translateX(-50%); }
  .day-label { font-size: 11px; }
  .day-hint { bottom: 16px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .day { height: auto; }
  .day-sticky { position: relative; height: auto; padding: calc(var(--header-h) + 60px) 0 80px; }
  .day-copy-c { display: none; }
  .day-before, .day-after { transform: none !important; opacity: 1 !important; position: static; }
  .day-phones { flex-wrap: wrap; height: auto; }
  .day .notif { opacity: 1; transform: none; }
  .day-hint { display: none; }
}
@media (max-width: 900px) {
  .day-phones { --pw: 260px; height: calc(260px * 19 / 9 * .62 + 30px); }
  .day .lockphone, .day .phone-wrap { zoom: .62; }
  .day-copy .lead { font-size: 15px; line-height: 1.5; }
  .day-sticky { align-items: flex-start; padding-top: calc(var(--header-h) + 20px); }
}
@media (max-width: 900px) and (max-height: 700px) {
  .day .lockphone, .day .phone-wrap { zoom: .52; }
  .day-phones { height: calc(260px * 19 / 9 * .52 + 30px); }
}

/* =========================================================
   v7: two questions, double buzz, wait for the answer
   ========================================================= */
.lockphone.buzz { animation: buzz2 1s ease; }
@keyframes buzz2 {
  0%, 30%, 45%, 75%, 100% { translate: 0 0; }
  5%, 15%, 50%, 60% { translate: -6px 0; }
  10%, 20%, 55%, 65% { translate: 6px 0; }
  25%, 70% { translate: -2px 0; }
}
/* vibration marks next to the phone */
.lockphone::before, .lockphone::after {
  content: ""; position: absolute; top: 34%; width: 16px; height: 70px; border-radius: 50%;
  border: 3px solid rgba(26,58,92,.38); border-top-color: transparent; border-bottom-color: transparent;
  opacity: 0; pointer-events: none;
}
.lockphone::before { left: -30px; border-right-color: transparent; }
.lockphone::after { right: -30px; border-left-color: transparent; }
.lockphone.buzz::before, .lockphone.buzz::after { animation: vib 1s ease; }
@keyframes vib { 0%, 30%, 45%, 75%, 100% { opacity: 0; } 5%, 25%, 50%, 70% { opacity: 1; } }

/* a fresh notification lands a little bigger */
.day .notif.show { animation: notifIn .6s var(--ease); }
@keyframes notifIn { from { transform: translateY(-18px) scale(.94); } 60% { transform: translateY(2px) scale(1.02); } to { transform: none; } }

/* hints: one per step */
.day .day-hint { opacity: 0; transform: translate(-50%, 8px); }
.day[data-stage="a"][data-n="0"] .day-hint-a,
.day[data-stage="a"][data-n="1"] .day-hint-a,
.day[data-stage="a"][data-n="2"] .day-hint-b,
.day[data-stage="b"] .day-hint-b,
.day[data-stage="c"]:not(.answered) .day-hint-c,
.day[data-stage="c"].answered .day-hint-d { opacity: 1; transform: translate(-50%, 0); }
.day-hint-c { background: #fff; color: var(--navy); border: 1px solid var(--line); }
.day-hint-d { background: var(--navy); }
.dots { display: inline-flex; gap: 4px; }
.dots b { width: 5px; height: 5px; border-radius: 50%; background: currentColor; animation: dot 1.2s infinite ease-in-out; }
.dots b:nth-child(2) { animation-delay: .15s; }
.dots b:nth-child(3) { animation-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  .day .notif.show { animation: none; }
  .lockphone::before, .lockphone::after { display: none; }
}

/* v8: one spot taken */
.seat-taken { background: #34C068; border-color: #34C068; position: relative; box-shadow: 0 0 0 4px rgba(52,192,104,.22); }
.seat-taken::after { content: ""; position: absolute; left: 10px; top: 8px; width: 9px; height: 5px; border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: rotate(-45deg); }

/* v9: security as one slim band */
.security-band { background: var(--navy); color: #fff; padding: clamp(28px, 4vw, 40px) 0; }
.sec-band { display: flex; align-items: center; justify-content: space-between; gap: 20px 40px; flex-wrap: wrap; }
.sec-band h2 { color: #fff; font-size: clamp(20px, 2vw, 24px); font-weight: 700; letter-spacing: -0.015em; margin: 0; white-space: nowrap; }
.sec-band ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 32px; }
.sec-band li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: rgba(255,255,255,.88); }
.sec-band svg { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: var(--accent-light); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 900px) {
  .sec-band { flex-direction: column; align-items: flex-start; }
  .sec-band h2 { white-space: normal; }
  .sec-band ul { flex-direction: column; gap: 12px; }
}
/* centered check in the taken spot */
.seat-taken::after { content: none; }
.seat-taken {
  background: #34C068 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 12.5l3.5 3.5 7.5-8' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px 20px no-repeat;
}

/* form privacy note */
.form-privacy { font-size: 13px; color: var(--muted); margin: -6px 0 0; text-align: center; }
.form-privacy a { color: var(--muted); }
.contact-form.sent .form-privacy { display: none; }

/* Skip buttons for the scroll scenes (keyboard / screen reader friendly) */
.scene-skip {
  position: absolute; right: var(--gutter); bottom: 26px; z-index: 4;
  font-size: 13px; font-weight: 600; text-decoration: none; letter-spacing: .02em;
  color: rgba(255,255,255,.75); padding: 8px 14px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25); background: rgba(8,19,33,.35);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: color .2s, border-color .2s;
}
.scene-skip:hover, .scene-skip:focus-visible { color: #fff; border-color: #fff; }
.scene-skip-light { color: var(--muted); border-color: var(--line); background: rgba(255,255,255,.8); }
.scene-skip-light:hover, .scene-skip-light:focus-visible { color: var(--navy); border-color: var(--navy); }
@media (max-width: 900px) { .scene-skip { bottom: auto; top: calc(var(--header-h) + 12px); } }
@media (prefers-reduced-motion: reduce) { .scene-skip { display: none; } }
