/* MIVELDA Landingpage – statisch, ohne Abhängigkeiten. Design-Tokens folgen der App (src/index.css). */

:root {
  --bg: #F4F7F8;
  --surface: #FFFFFF;
  --subtle: #EEF2F3;
  --primary: #173F4A;
  --primary-2: #1F6470;
  --interactive: #176675;
  --accent: #3A7D87;
  --petrol-bg: #E2EDEF;
  --petrol-border: #B9D0D5;
  --text: #172126;
  --text-2: #4A5A61;
  --muted: #66757C;
  --border: #DCE3E6;
  --green: #1D6A3A;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --shadow-1: 0 1px 2px rgba(23,33,38,.05), 0 1px 1px rgba(23,33,38,.03);
  --shadow-2: 0 10px 30px -12px rgba(23,63,74,.18), 0 2px 6px rgba(23,33,38,.05);
  --shadow-3: 0 40px 80px -32px rgba(23,63,74,.38), 0 12px 28px -12px rgba(23,33,38,.16);

  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --section-y: clamp(72px, 9vw, 128px);
  --header-h: 72px;

  --font: Inter, "Inter Variable", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--text); background: var(--surface); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--interactive); text-decoration: none; }
a:hover { color: var(--primary); }
button, input, select, textarea { font: inherit; color: inherit; }
address { font-style: normal; }
hr { border: 0; border-top: 1px solid var(--border); margin: 8px 0; }
:focus-visible { outline: 2px solid var(--interactive); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--petrol-bg); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--primary); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); transition: top .15s; }
.skip-link:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: calc(820px + 2 * var(--gutter)); }

.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 16px; height: 16px; }
.icon-xs { width: 12px; height: 12px; }

/* ---------- Typography ---------- */
h1 { font-size: clamp(2.5rem, 5.6vw, 4.25rem); line-height: 1.04; letter-spacing: -.035em; font-weight: 700; color: var(--primary); }
h1 .accent { color: var(--accent); }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.75rem); line-height: 1.12; letter-spacing: -.028em; font-weight: 700; color: var(--primary); text-wrap: balance; }
h3 { font-size: 1.125rem; line-height: 1.3; letter-spacing: -.01em; font-weight: 650; color: var(--text); }
.eyebrow { font-size: .8125rem; font-weight: 650; letter-spacing: .09em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.lead { font-size: clamp(1.0625rem, 1.5vw, 1.25rem); line-height: 1.6; color: var(--text-2); max-width: 62ch; text-wrap: pretty; }
.section-lead { font-size: clamp(1.0625rem, 1.3vw, 1.1875rem); color: var(--text-2); margin-top: 18px; max-width: 62ch; text-wrap: pretty; }
.fineprint { margin-top: 32px; font-size: .9375rem; color: var(--muted); text-align: center; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 10px; border: 1px solid transparent; font-weight: 600; font-size: 1rem; line-height: 1; white-space: nowrap; cursor: pointer; text-decoration: none; transition: background .2s, color .2s, border-color .2s, box-shadow .2s, transform .2s var(--ease); -webkit-tap-highlight-color: transparent; }
.btn .icon { transition: transform .2s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn-sm { height: 40px; padding: 0 14px; font-size: .9375rem; border-radius: 9px; }
.btn-lg { height: 54px; padding: 0 26px; font-size: 1.0625rem; border-radius: 12px; }
.btn-block { width: 100%; }
.btn-icon { width: 40px; padding: 0; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 1px 2px rgba(23,33,38,.2), 0 8px 20px -8px rgba(23,63,74,.55); }
.btn-primary:hover { background: var(--primary-2); color: #fff; transform: translateY(-1px); }
.btn-secondary { background: var(--surface); color: var(--primary); border-color: var(--border); box-shadow: var(--shadow-1); }
.btn-secondary:hover { border-color: var(--petrol-border); background: #F9FBFB; color: var(--primary); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { background: rgba(23,63,74,.07); color: var(--primary); }
.btn-ghost:hover .icon { transform: none; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.72); -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; transition: background .25s, border-color .25s, box-shadow .25s; }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); transition: height .25s var(--ease); }
.site-header.is-scrolled { background: rgba(255,255,255,.9); border-bottom-color: var(--border); box-shadow: 0 6px 24px -14px rgba(23,33,38,.25); }
.site-header.is-scrolled .header-inner { height: 60px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--primary); text-decoration: none; }
.brand-mark { width: 32px; height: 32px; border-radius: 8px; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 15px; letter-spacing: -.02em; }
.brand-name { font-weight: 700; font-size: 16px; letter-spacing: .08em; }
.brand-light { color: #fff; }
.brand-light:hover { color: #fff; }
.brand-light .brand-mark { background: #fff; color: var(--primary); }

.nav-desktop { display: flex; gap: 4px; margin-left: 16px; }
.nav-desktop a { padding: 8px 12px; border-radius: 8px; color: var(--text-2); font-size: .9375rem; font-weight: 500; transition: background .2s, color .2s; }
.nav-desktop a:hover, .nav-desktop a.is-current { color: var(--primary); background: rgba(23,63,74,.06); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
.login-menu, .nav-mobile { position: relative; }
.login-menu[open] > summary .icon { transform: rotate(180deg); }
.login-menu > summary .icon { transition: transform .2s; }
.login-pop, .nav-mobile-pop { position: absolute; right: 0; top: calc(100% + 10px); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: 0 24px 48px -16px rgba(23,33,38,.28), var(--shadow-1); padding: 8px; animation: pop .18s var(--ease); }
.login-pop { width: 300px; }
.login-pop a { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 10px; color: var(--text); }
.login-pop a:hover { background: var(--bg); }
.login-pop .icon { margin-top: 2px; color: var(--accent); }
.login-pop strong { display: block; font-size: .9375rem; font-weight: 600; line-height: 1.3; }
.login-pop small { display: block; font-size: .8125rem; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.nav-mobile { display: none; }
.nav-mobile-pop { width: min(300px, calc(100vw - 2 * var(--gutter))); display: grid; gap: 2px; }
.nav-mobile-pop a:not(.btn) { padding: 11px 12px; border-radius: 8px; color: var(--text); font-weight: 500; }
.nav-mobile-pop a:not(.btn):hover { background: var(--bg); }
.nav-mobile-pop .btn { margin-top: 8px; }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; margin-top: calc(-1 * var(--header-h)); padding-top: calc(var(--header-h) + clamp(48px, 7vw, 96px)); padding-bottom: clamp(56px, 7vw, 104px); overflow: hidden; isolation: isolate; background: linear-gradient(180deg, #F4F7F8 0%, #FFFFFF 100%); }
.hero-mesh { position: absolute; inset: 0; z-index: -1; background:
    radial-gradient(42% 46% at 14% 12%, rgba(58,125,135,.20), transparent 70%),
    radial-gradient(38% 42% at 88% 8%, rgba(31,100,112,.16), transparent 70%),
    radial-gradient(50% 40% at 60% 100%, rgba(185,208,213,.45), transparent 70%);
  animation: mesh 22s ease-in-out infinite alternate; }
.hero-mesh::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(23,63,74,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(23,63,74,.045) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 0%, transparent 100%); mask-image: radial-gradient(70% 60% at 50% 30%, #000 0%, transparent 100%); }
@keyframes mesh { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(0,-2%,0) scale(1.06); } }

.hero-copy { text-align: center; max-width: 900px; margin-inline: auto; }
.hero-copy .lead { margin: 26px auto 0; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.hero-note { margin-top: 22px; font-size: .9375rem; color: var(--muted); }

.hero-visual { position: relative; margin-top: clamp(48px, 6vw, 80px); perspective: 1600px; max-width: 1120px; margin-inline: auto; }
.glow { position: absolute; inset: 8% 4% -4%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(31,100,112,.42), rgba(58,125,135,.18) 55%, transparent 100%); filter: blur(48px); }

/* ---------- Browser / device frames ---------- */
.browser { position: relative; border-radius: var(--r-md); background: var(--surface); border: 1px solid rgba(23,63,74,.14); box-shadow: var(--shadow-3); overflow: hidden; transform-style: preserve-3d; will-change: transform; }
.hero .browser { transition: transform .5s var(--ease); }
.browser-bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; background: #EEF2F3; border-bottom: 1px solid var(--border); }
.browser-bar > span { width: 10px; height: 10px; border-radius: 50%; background: #CBD5D9; }
.browser-url { display: flex; align-items: center; gap: 6px; margin: 0 auto; transform: translateX(-24px); height: 24px; padding: 0 14px; min-width: min(320px, 50%); justify-content: center; border-radius: 6px; background: #fff; border: 1px solid var(--border); font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; }
.browser-url .icon { color: #8A979D; }

/* .shot reserves the aspect ratio (no layout shift). Its background is a neutral skeleton of the app that stays
   visible until / unless the real screenshot loads – a missing PNG therefore never looks broken. */
.shot { position: relative; overflow: hidden; background-color: var(--bg); }
.shot-desktop { aspect-ratio: 1440 / 900; }
.shot-phone { aspect-ratio: 390 / 844; }
.shot-tablet { aspect-ratio: 1024 / 768; }
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; color: transparent; font-size: 0; }
.shot img.is-missing { display: none; }

.shot-desktop { background-image:
    linear-gradient(#173F4A, #173F4A),
    linear-gradient(#fff, #fff),
    linear-gradient(#fff, #fff), linear-gradient(#fff, #fff), linear-gradient(#fff, #fff), linear-gradient(#fff, #fff),
    linear-gradient(#fff, #fff), linear-gradient(#fff, #fff);
  background-repeat: no-repeat;
  background-size: 15% 100%, 85% 7%, 19% 14%, 19% 14%, 19% 14%, 19% 14%, 52% 62%, 27% 62%;
  background-position: 0 0, 100% 0, 20.5% 12%, 45% 12%, 69.5% 12%, 94.2% 12%, 35% 86%, 96.5% 86%; }
.shot-desktop::before { content: ""; position: absolute; left: 2.2%; top: 4%; width: 10.6%; height: 70%; border-radius: 4px; opacity: .9;
  background: repeating-linear-gradient(180deg, rgba(255,255,255,.18) 0 3.2%, transparent 3.2% 8.5%); }
.shot-desktop::after { content: ""; position: absolute; left: 19.5%; top: 34%; width: 44%; height: 50%;
  background: repeating-linear-gradient(180deg, #E6ECEE 0 5%, transparent 5% 14%); -webkit-mask-image: linear-gradient(90deg, #000 70%, transparent); mask-image: linear-gradient(90deg, #000 70%, transparent); }
.shot-phone, .shot-tablet { background-image:
    linear-gradient(#173F4A, #173F4A),
    linear-gradient(#fff, #fff), linear-gradient(#fff, #fff), linear-gradient(#fff, #fff), linear-gradient(#E2EDEF, #E2EDEF);
  background-repeat: no-repeat;
  background-size: 100% 11%, 88% 16%, 88% 16%, 88% 16%, 88% 7%;
  background-position: 0 0, 50% 17%, 50% 38%, 50% 59%, 50% 84%; }

.phone { width: min(100%, 270px); margin-inline: auto; padding: 9px; border-radius: 38px; background: #12272E; box-shadow: var(--shadow-3), inset 0 0 0 1.5px rgba(255,255,255,.12); position: relative; }
.phone .shot { border-radius: 30px; }
.phone::before { content: ""; position: absolute; z-index: 2; top: 17px; left: 50%; width: 74px; height: 20px; margin-left: -37px; border-radius: 12px; background: #12272E; }
.tablet { width: min(100%, 560px); margin-inline: auto; padding: 14px; border-radius: 26px; background: #12272E; box-shadow: var(--shadow-3), inset 0 0 0 1.5px rgba(255,255,255,.12); }
.tablet .shot { border-radius: 14px; }

/* ---------- Trust strip ---------- */
.trust { border-block: 1px solid var(--border); background: var(--surface); }
.trust-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 36px; padding: 26px 0; font-size: .9375rem; font-weight: 550; color: var(--text-2); }
.trust-list li { display: inline-flex; align-items: center; gap: 9px; }
.trust-list .icon { color: var(--accent); width: 18px; height: 18px; }

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); position: relative; }
.section-tint { background: var(--bg); }
.section-head { max-width: 780px; margin: 0 auto clamp(40px, 5vw, 72px); text-align: center; }
.section-head .section-lead { margin-inline: auto; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--shadow-1); }

.ticks { display: grid; gap: 10px; margin-top: 22px; }
.ticks li { position: relative; padding-left: 30px; color: var(--text-2); font-size: 1rem; line-height: 1.5; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--petrol-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F6470' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.ticks li.plus { padding-left: 0; font-weight: 600; color: var(--text); }
.ticks li.plus::before { display: none; }
.ticks-light li { color: #C9DADD; }
.ticks-light li strong { color: #fff; font-weight: 600; }
.ticks-light li::before { background-color: rgba(255,255,255,.12); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A9D3D9' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }

/* ---------- Story (sticky scroll) ---------- */
.story-grid { padding-bottom: 8px; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.story-stage { position: sticky; top: calc(var(--header-h) + 32px); height: calc(100vh - var(--header-h) - 64px); min-height: 460px; display: flex; align-items: center; }
.story-stage-inner { position: relative; width: 100%; }
.story-stage .browser { box-shadow: var(--shadow-3); }
.story-shots img { opacity: 0; transform: scale(1.015); transition: opacity .6s var(--ease), transform .8s var(--ease); }
.story-shots img.is-active { opacity: 1; transform: none; }
.story-dots { display: flex; justify-content: space-between; gap: 6px; margin-top: 22px; counter-reset: d; }
.story-dots li { flex: 1; font-size: .75rem; font-weight: 600; letter-spacing: .02em; color: var(--muted); padding-top: 10px; border-top: 3px solid var(--border); transition: color .3s, border-color .3s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.story-dots li.is-active { color: var(--primary); border-top-color: var(--primary-2); }
.story-dots li.is-done { border-top-color: var(--petrol-border); }

.story-step { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; padding-block: 24px; opacity: .32; transition: opacity .45s var(--ease); }
.story-step.is-active { opacity: 1; }
.story-step:first-child { min-height: 60vh; justify-content: flex-start; padding-top: 12vh; }
.story-step:last-child { min-height: 0; padding-bottom: 0; justify-content: flex-start; padding-top: 6vh; }
.step-no { font-size: .875rem; font-weight: 700; letter-spacing: .08em; color: var(--accent); font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.step-no::after { content: ""; width: 40px; height: 1px; background: var(--petrol-border); }
.story-step h3 { font-size: clamp(1.5rem, 2.2vw, 1.875rem); letter-spacing: -.02em; color: var(--primary); font-weight: 700; margin-bottom: 14px; }
.story-step p { color: var(--text-2); }
.step-shot { display: none; }
html:not(.js) .story-step { opacity: 1; }

/* ---------- Feature grid ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.feature { padding: 26px 24px 28px; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--petrol-border); }
.feature-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--petrol-bg); color: var(--primary-2); margin-bottom: 18px; transition: background .3s, color .3s; }
.feature:hover .feature-icon { background: var(--primary); color: #fff; }
.feature-icon .icon { width: 22px; height: 22px; }
.feature h3 { margin-bottom: 8px; }
.feature p { font-size: .9375rem; line-height: 1.55; color: var(--muted); }

/* ---------- Roles ---------- */
.roles-tabs { display: flex; gap: 4px; padding: 5px; margin: 0 auto 40px; width: fit-content; max-width: 100%; overflow-x: auto; background: var(--bg); border: 1px solid var(--border); border-radius: 14px; scrollbar-width: none; }
.roles-tabs::-webkit-scrollbar { display: none; }
.roles-tabs button { border: 0; background: transparent; height: 42px; padding: 0 18px; border-radius: 10px; font-weight: 600; font-size: .9375rem; color: var(--text-2); cursor: pointer; white-space: nowrap; transition: background .2s, color .2s, box-shadow .2s; }
.roles-tabs button:hover { color: var(--primary); }
.roles-tabs button[aria-selected="true"] { background: var(--surface); color: var(--primary); box-shadow: var(--shadow-1), 0 0 0 1px var(--border); }
html:not(.js) .roles-tabs { display: none; }
.roles-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.roles-panel + .roles-panel { margin-top: 64px; }
.js .roles-panel { margin-top: 0; }
.js .roles-panel:not(.is-active) { display: none; }
.js .roles-panel.is-active { animation: fadeUp .5s var(--ease); }
.roles-copy h3 { font-size: clamp(1.375rem, 2vw, 1.75rem); letter-spacing: -.02em; color: var(--primary); font-weight: 700; line-height: 1.2; }
.roles-shot { box-shadow: var(--shadow-2); }
.timeline { margin-top: 28px; position: relative; display: grid; gap: 22px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 10px; bottom: 10px; width: 1px; background: var(--petrol-border); }
.timeline li { position: relative; padding-left: 30px; display: grid; gap: 2px; color: var(--text-2); font-size: 1rem; line-height: 1.5; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 6px; width: 11px; height: 11px; border-radius: 50%; background: var(--surface); border: 2.5px solid var(--accent); }
.timeline .t { font-size: .8125rem; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Split / Video ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.split-top { align-items: start; }
.section-dark { background: radial-gradient(80% 120% at 85% 10%, #1F6470 0%, #173F4A 48%, #112F38 100%); color: #D4E2E5; overflow: hidden; }
.section-dark h2 { color: #fff; }
.section-dark .eyebrow { color: #8CC3CB; }
.section-dark .section-lead { color: #C9DADD; }
.browser-dark { border-color: rgba(255,255,255,.14); background: #0E2830; box-shadow: 0 40px 90px -30px rgba(0,0,0,.6); }
.browser-dark .browser-bar { background: #163842; border-bottom-color: rgba(255,255,255,.08); }
.browser-dark .browser-bar > span { background: rgba(255,255,255,.22); }

/* ---------- Devices ---------- */
.devices { display: grid; grid-template-columns: 1fr 1fr 1.7fr; gap: 24px; align-items: stretch; }
.device-card { display: flex; flex-direction: column; padding: 36px 28px 30px; border-radius: var(--r-lg); background: linear-gradient(180deg, var(--bg) 0%, #fff 70%); border: 1px solid var(--border); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.device-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.device-card figure { margin-bottom: 32px; }
.device-card-wide figure { margin-block: auto; padding-bottom: 32px; }
.device-card h3 { display: flex; align-items: center; gap: 10px; margin-top: auto; font-size: 1.1875rem; color: var(--primary); }
.device-card-wide h3 { margin-top: 0; }
.device-card h3 .icon { color: var(--accent); }
.device-card p { margin-top: 8px; color: var(--muted); font-size: .9875rem; }

/* ---------- Security ---------- */
.security-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.sec { padding: 26px 24px; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.sec:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.sec > .icon { width: 24px; height: 24px; color: var(--primary-2); margin-bottom: 16px; }
.sec h3 { font-size: 1.0625rem; margin-bottom: 6px; }
.sec p { font-size: .9375rem; line-height: 1.55; color: var(--muted); }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.plan { position: relative; padding: 34px 30px 32px; border-radius: var(--r-lg); display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.plan h3 { font-size: 1.375rem; color: var(--primary); font-weight: 700; }
.plan-for { margin-top: 6px; color: var(--muted); font-size: .9375rem; min-height: 3em; }
.plan-featured { border: 2px solid var(--primary-2); box-shadow: var(--shadow-2); background: linear-gradient(180deg, #F3F8F9 0%, #fff 34%); padding-top: 33px; }
.plan-badge { position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%); background: var(--primary); color: #fff; font-size: .75rem; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; padding: 6px 14px; border-radius: 99px; white-space: nowrap; }
.price { display: flex; align-items: flex-end; gap: 10px; margin-top: 22px; }
.price-num { font-size: 3rem; font-weight: 700; letter-spacing: -.035em; line-height: 1; color: var(--text); font-variant-numeric: tabular-nums; }
.price-per { font-size: .8125rem; line-height: 1.35; color: var(--muted); padding-bottom: 4px; }
.price-alt { margin-top: 10px; font-size: .875rem; color: var(--muted); }
.plan-meta { margin: 22px 0 24px; padding: 16px 0; border-block: 1px solid var(--border); display: grid; gap: 6px; font-size: .9375rem; color: var(--text-2); }
.plan-meta strong { color: var(--text); }
.plan-features { margin-top: 26px; gap: 9px; }
.plan-features li { font-size: .9375rem; }

.compare { margin-top: 40px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); overflow: hidden; }
.compare > summary { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 18px 24px; font-weight: 600; color: var(--primary); transition: background .2s; }
.compare > summary:hover { background: var(--bg); }
.compare > summary .icon, .faq summary .icon { transition: transform .25s var(--ease); }
.compare[open] > summary .icon, .faq details[open] summary .icon { transform: rotate(180deg); }
.compare[open] > summary { border-bottom: 1px solid var(--border); }
.table-wrap { overflow-x: auto; }
.compare-table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: .9375rem; }
.compare-table th, .compare-table td { padding: 13px 20px; text-align: center; border-bottom: 1px solid var(--subtle); }
.compare-table thead th { font-size: .8125rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: #F9FAFB; font-weight: 650; }
.compare-table th:first-child { text-align: left; font-weight: 500; color: var(--text); width: 46%; }
.compare-table thead th:first-child { color: var(--muted); font-weight: 650; }
.compare-table td { color: var(--text); font-variant-numeric: tabular-nums; }
.compare-table tr.group th { text-align: left; background: var(--bg); font-size: .8125rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); padding-block: 10px; }
.compare-table tbody tr:last-child > * { border-bottom: 0; }
.compare-table td.y::before { content: ""; display: inline-block; width: 20px; height: 20px; vertical-align: middle; border-radius: 50%; background: var(--petrol-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F6470' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.compare-table td.n::before { content: ""; display: inline-block; width: 12px; height: 2px; vertical-align: middle; border-radius: 2px; background: #C3CED2; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); transition: box-shadow .25s, border-color .25s; }
.faq details[open] { box-shadow: var(--shadow-2); border-color: var(--petrol-border); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 24px; font-weight: 600; font-size: 1.0625rem; color: var(--text); border-radius: var(--r-md); }
.faq summary:hover { color: var(--primary-2); }
.faq summary .icon { color: var(--accent); }
.faq-body { padding: 0 24px 22px; color: var(--text-2); max-width: 70ch; }
.faq details[open] .faq-body { animation: fadeUp .35s var(--ease); }

/* ---------- Contact ---------- */
.contact { background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); }
.contact-direct { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--border); display: grid; gap: 8px; font-size: .9375rem; color: var(--muted); }
.contact-direct a { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.0625rem; color: var(--primary); width: fit-content; }
.contact-direct a:hover { color: var(--primary-2); }
.contact-form { padding: clamp(24px, 3vw, 36px); border-radius: var(--r-lg); box-shadow: var(--shadow-2); display: grid; gap: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field > span { font-size: .875rem; font-weight: 600; color: var(--text-2); }
.field input, .field select, .field textarea { width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid #C9D3D7; border-radius: 10px; background: #fff; font-size: 1rem; transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2366757C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.field input::placeholder, .field textarea::placeholder { color: #8A979D; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #9FB3B9; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--interactive); box-shadow: 0 0 0 3px rgba(23,102,117,.18); }
.form-note { display: flex; gap: 10px; align-items: flex-start; font-size: .8125rem; line-height: 1.5; color: var(--muted); }
.form-note .icon { color: var(--accent); margin-top: 2px; }
.form-status { font-size: .9375rem; color: var(--green); font-weight: 500; }

/* ---------- Footer ---------- */
.site-footer { background: #112F38; color: #A9C0C5; padding-top: 72px; font-size: .9375rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; padding-bottom: 56px; }
.footer-brand p { margin-top: 16px; max-width: 34ch; line-height: 1.6; }
.site-footer nav { display: grid; gap: 10px; align-content: start; }
.site-footer h2 { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: #6F959C; font-weight: 650; margin-bottom: 6px; }
.site-footer nav a { color: #D4E2E5; width: fit-content; }
.site-footer nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 24px; border-top: 1px solid rgba(255,255,255,.1); font-size: .875rem; color: #86A4AA; }
.site-footer :focus-visible { outline-color: #A9D3D9; }

/* ---------- Legal pages / 404 ---------- */
.legal { padding-block: clamp(48px, 6vw, 88px) var(--section-y); background: var(--bg); min-height: 70vh; }
.legal-card { padding: clamp(28px, 5vw, 64px); border-radius: var(--r-lg); }
.legal h1 { font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: 12px; }
.legal h2 { font-size: 1.375rem; letter-spacing: -.015em; margin: 44px 0 12px; }
.legal h3 { margin: 24px 0 8px; font-size: 1.0625rem; }
.legal p, .legal li { color: var(--text-2); max-width: 75ch; }
.legal p + p { margin-top: 12px; }
.legal ul { list-style: disc; padding-left: 22px; display: grid; gap: 6px; margin-top: 10px; }
.legal .ph { background: #FCF1DC; color: #8A5600; border-radius: 4px; padding: 1px 5px; font-weight: 500; }
.legal .notice { margin: 24px 0 0; padding: 16px 18px; border-radius: var(--r-sm); background: #FCF1DC; border: 1px solid #F0D9A8; color: #6B4300; font-size: .9375rem; }
.legal .back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 28px; font-weight: 600; font-size: .9375rem; }
.legal .back .icon { transform: rotate(180deg); }
.notfound { min-height: 72vh; display: grid; place-items: center; text-align: center; background: var(--bg); padding: 80px var(--gutter); }
.notfound .code { font-size: clamp(5rem, 16vw, 9rem); font-weight: 700; letter-spacing: -.05em; line-height: 1; color: var(--petrol-border); }
.notfound h1 { font-size: clamp(1.75rem, 3vw, 2.25rem); margin-top: 8px; }
.notfound p { color: var(--text-2); margin: 14px auto 28px; max-width: 46ch; }

/* ---------- Reveal on scroll (only when JS is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .card.reveal.is-in, .js .device-card.reveal.is-in { transition: opacity .7s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; transition-delay: 0ms; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .feature-grid, .security-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .devices { grid-template-columns: 1fr 1fr; }
  .device-card-wide { grid-column: 1 / -1; }
  .device-card-wide figure { padding-bottom: 0; margin-bottom: 32px; }
}
@media (max-width: 960px) {
  .nav-desktop, .login-menu { display: none; }
  .nav-mobile { display: block; }
  .story-grid { grid-template-columns: 1fr; }
  .story-stage { display: none; }
  .story-steps { display: grid; gap: 20px; }
  .story-step, .story-step:first-child, .story-step:last-child { min-height: 0; opacity: 1; padding: 28px 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-1); justify-content: flex-start; }
  .step-shot { display: block; margin-top: 26px; box-shadow: var(--shadow-2); border-radius: 10px; }
  .step-shot .browser-bar { height: 26px; padding: 0 10px; gap: 5px; }
  .step-shot .browser-bar > span { width: 7px; height: 7px; }
  .story { background: var(--bg); }
  .roles-panel, .split { grid-template-columns: 1fr; }
  .roles-tabs { margin-bottom: 32px; }
  .plans { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .plan-for { min-height: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  :root { --header-h: 64px; }
  .feature-grid, .security-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .feature, .sec { padding: 20px 18px 22px; }
  .browser-url { display: none; }
  .browser-bar { height: 28px; }
  .browser-bar > span { width: 8px; height: 8px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .trust-list { justify-content: flex-start; gap: 12px 24px; }
  .section-head { text-align: left; }
  .section-head .section-lead { margin-inline: 0; }
  .fineprint { text-align: left; }
  .roles-tabs { width: 100%; }
}
@media (max-width: 560px) {
  .devices { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .header-cta { display: none; }
  .phone { width: min(100%, 240px); }
}
@media (max-width: 420px) {
  .feature-grid, .security-grid { grid-template-columns: 1fr; }
  .feature { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; align-items: start; }
  .feature-icon { grid-row: span 2; margin-bottom: 0; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero .browser { transform: none !important; }
}

@media print {
  .site-header, .hero-mesh, .glow, .story-stage { display: none; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Slim footer of the legal pages */
.site-footer-slim { padding-top: 0; }
.site-footer-slim .footer-bottom { border-top: 0; align-items: center; }
.site-footer-slim nav { display: flex; gap: 20px; }
.notfound .hero-cta { margin-top: 0; }

/* ---------- Refinements ---------- */
.plan-for { min-height: 3.2em; }
.story-step { opacity: .5; }
.story-step:first-child { padding-top: 4vh; }
.footer-bottom { border-top: 0; position: relative; }
.footer-bottom::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: rgba(255,255,255,.1); }
.site-footer-slim .footer-bottom::before { display: none; }

/* Video placeholder: dark call canvas with avatar + self view */
.shot-video { background: radial-gradient(60% 70% at 50% 45%, #24505C, #12313A) center / 100% 100% no-repeat #12313A; }
.shot-video::before { display: block; left: 50%; top: 50%; width: 14%; height: auto; aspect-ratio: 1; margin: -7% 0 0 -7%; border-radius: 50%; background: rgba(255,255,255,.12); opacity: 1; }
.shot-video::after { display: block; left: auto; top: auto; right: 3%; bottom: 5%; width: 20%; height: auto; aspect-ratio: 4 / 3; border-radius: 8px; background: #2E606B; -webkit-mask-image: none; mask-image: none; box-shadow: 0 8px 24px rgba(0,0,0,.35); }

/* Device cards: copy on top, device at the bottom (keeps headings aligned across cards) */
.device-card h3 { order: 0; margin-top: 0; }
.device-card p { order: 1; }
.device-card figure { order: 2; margin: 32px auto 0; }
.device-card .phone { margin-top: auto; padding-top: 9px; }
.device-card-wide figure { margin-block: auto; padding-bottom: 14px; }
.device-card > p { min-height: 3.2em; margin-bottom: 32px; }
@media (max-width: 1100px) { .device-card > p { min-height: 0; } .device-card-wide figure { margin-block: 0; } }
.phone::before { display: none; } /* no notch: it would cover the app header in real screenshots */
@media (max-width: 420px) {
  .sec { display: grid; grid-template-columns: 24px 1fr; column-gap: 16px; align-items: start; }
  .sec > .icon { grid-row: span 2; margin: 2px 0 0; }
}
