/* Catch Vision
   Layout: 12-column left-aligned grid. Night bands frame Paper and Mist bands.
   One accent (magenta). The logo's tilted screen is the only special shape. */

:root {
  --night: #15112E;
  --night-raised: #1E1940;
  --indigo: #262262;
  --magenta: #EC008C;
  --magenta-ui: #D6007F;
  --magenta-ui-hover: #B5006B;
  --paper: #F8F6F3;
  --mist: #EEEBF0;
  --line: #DAD6DF;
  --muted: #5E5973;
  --silver: #D9D9D8;
  --white: #FFFFFF;
  --on-night: #F8F6F3;
  --on-night-muted: #B9B3CC;
  --control: #8C86A0;
  --control-hover: #5E5973;
  --on-night-line: #2E2757;
  --screen-black: #0E0B1F;
  --screen-panel: #1B1640;
  --alert: #B3261E;
  --ok: #137A4B;
  --ok-bg: #E3F2EA;
  --bad: #8A1C15;
  --bad-bg: #F8E3E1;

  --display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --body: "Instrument Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --arabic: "IBM Plex Sans Arabic", "Geeza Pro", Tahoma, sans-serif;

  --max: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --col-gap: 24px;
  --space-above: clamp(88px, 11vw, 152px);
  --space-end: clamp(72px, 9vw, 120px);
  --radius: 6px;
  --screen-radius: 30px 36px 32px 28px / 32px 28px 36px 30px;
  --glass-radius: 20px 25px 22px 18px / 22px 18px 25px 20px;
  --tilt: -1.6deg;

  color-scheme: light;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--night);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-stretch: 112%; text-wrap: balance; }
p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--magenta); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); color: var(--night); padding: 10px 14px; border-radius: var(--radius); z-index: 50; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Layout */
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); }
.grid > * { min-width: 0; }
.band { padding-block: var(--space-above) var(--space-end); }
.band--tight { padding-block: clamp(64px, 8vw, 104px); }
.band--mist { background: var(--mist); }
.band--night { background: var(--night); color: var(--on-night); }
.band--white { background: var(--white); }

.span-head { grid-column: 1 / 6; }
.span-body { grid-column: 7 / 13; }
.span-body-wide { grid-column: 6 / 13; }
.span-left { grid-column: 1 / 7; }
.span-right { grid-column: 7 / 13; }
.span-full { grid-column: 1 / -1; }
.span-intro { grid-column: 1 / 8; }
.span-side { grid-column: 9 / 13; }

/* Type */
.h1 { font-size: clamp(44px, 6.2vw, 82px); font-weight: 850; line-height: .96; letter-spacing: -0.02em; }
.h1 span { color: var(--magenta); display: block; }
.h1--page { font-size: clamp(40px, 5.2vw, 68px); }
.h2 { font-size: clamp(32px, 4vw, 46px); font-weight: 800; line-height: 1.04; letter-spacing: -0.012em; color: var(--indigo); }
.band--night .h2 { color: var(--on-night); }
.h3 { font-size: 22px; font-weight: 750; line-height: 1.2; color: var(--night); }
.band--night .h3 { color: var(--on-night); }
.lede { font-size: 19px; line-height: 1.55; color: var(--muted); max-width: 46ch; margin-top: 20px; }
.band--night .lede, .page-hero .lede { color: var(--on-night-muted); }
.prose { max-width: 62ch; color: var(--muted); }
.prose p + p { margin-top: 14px; }
.band--night .prose { color: var(--on-night-muted); }
.small { font-size: 15px; color: var(--muted); }
.mono { font-family: var(--mono); font-size: 13px; font-variant-numeric: tabular-nums; }
.accent { color: var(--magenta-ui); }
.band--night .accent { color: var(--magenta); }

/* Buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--body); font-size: 16px; font-weight: 600; line-height: 1;
  padding: 15px 20px; border-radius: var(--radius); border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn .arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.btn--primary { background: var(--magenta-ui); color: var(--white); }
.btn--primary:hover { background: var(--magenta-ui-hover); }
.btn--secondary { background: transparent; color: var(--indigo); border-color: var(--indigo); }
.btn--secondary:hover { background: var(--indigo); color: var(--paper); }
.on-night .btn--secondary, .band--night .btn--secondary { color: var(--on-night); border-color: var(--on-night-muted); }
.on-night .btn--secondary:hover, .band--night .btn--secondary:hover { background: var(--on-night); color: var(--night); border-color: var(--on-night); }
.btn--small { padding: 11px 14px; font-size: 15px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.link { color: var(--indigo); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; text-decoration-color: var(--line); transition: text-decoration-color .15s ease; }
.link:hover { text-decoration-color: var(--magenta-ui); }
.band--night .link { color: var(--on-night); text-decoration-color: var(--on-night-line); }
.band--night .link:hover { text-decoration-color: var(--magenta); }

/* Live status pills (only for live state) */
.status { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 12px; font-weight: 500; line-height: 1.2; padding: 5px 10px 5px 8px; border-radius: 999px; white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.status--online { color: var(--ok); background: var(--ok-bg); }
.status--offline { color: var(--bad); background: var(--bad-bg); }
.status--sync { color: var(--indigo); background: #E4E3F3; }
.on-night .status--online { color: #6EE0A6; background: rgba(110, 224, 166, .12); }

/* Header */
.site-header { background: var(--night); color: var(--on-night); position: relative; z-index: 20; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 22px; }
.nav .brand { display: block; flex: none; }
.nav .brand img { height: 58px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links ul { display: flex; gap: 28px; font-size: 15px; font-weight: 500; }
.nav-links ul a { text-decoration: none; color: var(--on-night-muted); padding-block: 6px; border-bottom: 2px solid transparent; transition: color .15s ease; }
.nav-links ul a:hover { color: var(--on-night); }
.nav-links ul a[aria-current="page"] { color: var(--on-night); border-bottom-color: var(--magenta); }
.menu-btn { display: none; background: transparent; border: 1.5px solid var(--on-night-line); color: var(--on-night); border-radius: var(--radius); padding: 10px 12px; font: 600 15px var(--body); cursor: pointer; }

/* Home hero */
.hero { background: var(--night); color: var(--on-night); --straddle: clamp(72px, 13vw, 210px); }
.hero-body { padding-block: clamp(48px, 7vw, 96px) clamp(40px, 5vw, 64px); align-items: end; }
.hero-title { grid-column: 1 / 8; }
.hero-side { grid-column: 8 / 13; }
.hero-side > p:first-child { color: var(--on-night-muted); font-size: 19px; max-width: 40ch; }
.after-hero { padding-top: calc(var(--space-above) + clamp(72px, 13vw, 210px)); }
.hero-note { margin-top: 22px; font-family: var(--mono); font-size: 13px; color: var(--on-night-muted); }
.hero-note strong { color: var(--on-night); font-weight: 500; }

.hero-photo { position: relative; z-index: 2; margin-bottom: calc(var(--straddle) * -1); }
.hero-photo .glass { aspect-ratio: 16 / 9; }
.hero-photo img, .figure-screen img { display: block; width: 100%; height: 100%; object-fit: cover; }
.figure-wide { margin-top: clamp(48px, 6vw, 72px); }.try { overflow: hidden; }
.demo-bar { margin-top: clamp(40px, 5vw, 56px); display: flex; flex-wrap: wrap; align-items: flex-end; gap: 20px 40px; }
.demo-control { display: grid; gap: 10px; align-content: end; }
.demo-bar .btn, .seg { height: 46px; }
.demo-bar .btn { justify-self: start; }
.stage--large #alert-display { text-align: left; }
.demo-bar .btn { padding-block: 0; }
.demo-control-name { font-size: 14px; font-weight: 600; color: var(--on-night); }
.seg { display: inline-flex; justify-self: start; align-items: stretch; padding: 3px; border: 1.5px solid var(--on-night-line); border-radius: var(--radius); background: var(--night); }
.seg button { display: inline-flex; align-items: center; justify-content: center; min-width: 92px; font: 600 15px/1 var(--body); color: var(--on-night-muted); background: transparent; border: 0; padding: 0 18px; border-radius: 4px; cursor: pointer; transition: background-color .15s ease, color .15s ease; }
.seg button:hover { color: var(--on-night); }
.seg button[aria-pressed="true"] { background: var(--magenta-ui); color: var(--white); }
.seg button[lang="ar"] { font-family: var(--arabic); }
.display[dir="rtl"] .zone-main, .display[dir="rtl"] .reading small { font-family: var(--arabic); }
.display[dir="rtl"] .slide-title { font-family: var(--arabic); font-weight: 600; }
.reading b { display: inline-block; direction: ltr; unicode-bidi: isolate; }
/* Large demo: full width, readable */
.screen-label { position: absolute; left: 6px; bottom: calc(100% + 12px); margin: 0; font-size: 17px; font-weight: 600; color: var(--on-night); white-space: nowrap; }
.stage.stage--large { display: flex; align-items: flex-start; gap: clamp(32px, 4vw, 56px); margin: 72px 0 24px; height: auto; min-height: 0; }
.stage.stage--large .screen { position: relative; inset: auto; }
.stage--large .screen--display { flex: 1 1 0; min-width: 0; width: auto; }
.stage--large .screen--kiosk { flex: 0 0 clamp(240px, 23vw, 310px); width: auto; left: auto; right: auto; bottom: auto; }
.stage--large .zone-main .where { font-size: 13px; }
.stage--large .zone-main .slide-title { font-size: clamp(24px, 3vw, 44px); }
.stage--large .zone-main .slide-text { font-size: clamp(14px, 1.3vw, 18px); max-width: 32ch; }
.stage--large .zone-data .clock { font-size: clamp(18px, 1.9vw, 26px); }
.stage--large .reading small { font-size: 12px; }
.stage--large .reading b { font-size: clamp(16px, 1.9vw, 26px); }
.stage--large .alert { font-size: clamp(13px, 1.3vw, 17px); padding: 12px 16px; }
.stage--large .kiosk { padding: 20px 16px 16px; }
.stage--large .kiosk-top { font-size: 12px; }
.stage--large .kiosk-title { font-size: clamp(22px, 2.1vw, 28px); margin: 22px 0 16px; }
.stage--large .tiles { gap: 10px; }
.stage--large .tile { font-size: clamp(13px, 1.15vw, 15px); padding: 14px 12px 34px; border-radius: 8px; }
.stage--large .kiosk-foot { font-size: 12px; gap: 12px; }
.stage--large .kiosk-foot canvas { width: 56px; height: 56px; }
.stage--large .kiosk-wrap .alert { font-size: 12px; }
.stage { grid-column: 7 / 13; position: relative; min-height: 640px; margin-right: calc(var(--gutter) * -1 - 40px); }
.screen {
  background: var(--silver);
  padding: 11px;
  border-radius: var(--screen-radius);
  box-shadow: 0 0 0 2px var(--magenta), 0 40px 70px -35px rgba(0, 0, 0, .75);
}
.stage .screen { position: absolute; }
.glass { border-radius: var(--glass-radius); overflow: hidden; position: relative; height: 100%; }
.screen--display { width: min(600px, 100%); aspect-ratio: 16 / 9; top: 0; right: 0; transform: rotate(var(--tilt)); }
.screen--kiosk { width: 224px; aspect-ratio: 9 / 15; left: -28px; bottom: 64px; transform: rotate(var(--tilt)); z-index: 2; }

.display { background: var(--screen-black); color: var(--white); display: grid; grid-template-columns: 1.55fr 1fr; height: 100%; }
.zone-main { padding: 7% 7% 6%; display: flex; flex-direction: column; justify-content: space-between; background: var(--screen-panel); }
.zone-main .where { font-family: var(--mono); font-size: 11px; color: #C9C3DE; }
.zone-main .slide-title { font-family: var(--display); font-stretch: 112%; font-size: clamp(18px, 2.3vw, 30px); font-weight: 800; line-height: 1.02; margin-top: 8px; }
.zone-main .slide-text { font-size: clamp(11px, 1vw, 13px); color: #C9C3DE; margin-top: 8px; line-height: 1.4; }
.slide { transition: opacity .4s ease; }
.slide.fade { opacity: 0; }
.playbar { height: 3px; background: rgba(255, 255, 255, .15); border-radius: 2px; overflow: hidden; }
.playbar i { display: block; height: 100%; width: 0; background: var(--white); }
.playbar i.run { animation: play 8s linear forwards; }
@keyframes play { to { width: 100%; } }
.zone-data { padding: 7% 8%; display: grid; align-content: space-between; gap: 6px; }
.zone-data .clock { font-family: var(--mono); font-size: clamp(14px, 1.5vw, 19px); }
.reading { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 6px; }
.reading small { display: block; font-size: 10px; color: #A9A3C2; line-height: 1.3; }
.reading b { font-family: var(--mono); font-weight: 500; font-size: clamp(13px, 1.4vw, 18px); font-variant-numeric: tabular-nums; }

.kiosk { background: var(--white); color: var(--night); height: 100%; display: flex; flex-direction: column; padding: 14px 12px 12px; }
.kiosk-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 10px; color: var(--muted); }
.kiosk-title { font-family: var(--display); font-stretch: 112%; font-size: 19px; font-weight: 800; line-height: 1.05; color: var(--indigo); margin: 16px 0 12px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.tile { background: var(--mist); border: 0; border-radius: 6px; padding: 10px 9px 24px; text-align: start; font: 600 11px/1.25 var(--body); color: var(--night); cursor: pointer; }
.tile:hover { background: #E2DEE8; }
.tile.picked { background: var(--indigo); color: var(--white); }
.kiosk-foot { margin-top: auto; display: flex; gap: 9px; align-items: center; font-size: 10px; color: var(--muted); line-height: 1.3; }
.kiosk-foot canvas { width: 40px; height: 40px; flex: none; image-rendering: pixelated; }
.kiosk[dir="rtl"], .kiosk[dir="rtl"] .kiosk-title, .kiosk[dir="rtl"] .tile { font-family: var(--arabic); }
.alert { position: absolute; inset: auto 0 0 0; background: var(--alert); color: var(--white); font: 600 12px/1.35 var(--body); padding: 9px 12px; transform: translateY(101%); transition: transform .35s ease; z-index: 3; }
.alert.show { transform: translateY(0); }
.kiosk-wrap .alert { font-size: 10px; }
.alert[dir="rtl"] { font-family: var(--arabic); }

.portal { position: absolute; right: calc(var(--gutter) + 40px); bottom: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; justify-content: flex-end; max-width: 60%; }
.stage-caption { position: absolute; left: 0; bottom: 0; font-family: var(--mono); font-size: 12px; color: var(--on-night-muted); max-width: 30%; line-height: 1.5; }

/* Inner page hero */
.page-hero { background: var(--night); color: var(--on-night); }
.page-hero .grid { padding-block: clamp(48px, 7vw, 96px) clamp(64px, 8vw, 104px); align-items: end; }
.page-hero .lede { font-size: 20px; max-width: 44ch; }
.page-hero-aside { grid-column: 8 / 13; color: var(--on-night-muted); font-size: 16px; border-top: 1px solid var(--on-night-line); padding-top: 18px; align-self: end; }

/* Product hero with photo */
.page-hero--photo .grid { align-items: center; }
.page-hero--photo .span-intro { grid-column: 1 / 6; }
.page-hero--photo .h1--page { font-size: clamp(40px, 4.4vw, 62px); }
.page-hero-photo { grid-column: 6 / 13; margin: 0 calc(var(--gutter) * -1) 0 0; padding-left: 16px; }
.page-hero-photo .screen { transform: rotate(var(--tilt)); }
.figure-screen.page-hero-photo .glass { aspect-ratio: 4 / 3; }
.page-hero-photo img { object-position: 60% 45%; }
.figure-screen.page-hero-photo--wide .glass { aspect-ratio: 16 / 9; }
.page-hero-photo--wide img { object-position: center; }
.page-hero-note { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--on-night-line); color: var(--on-night-muted); font-size: 16px; max-width: 46ch; }

/* Section icons: plain line drawings, no containers */
.sec-icon { display: block; width: 52px; height: 52px; margin-bottom: 22px; color: var(--indigo); fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.sec-icon--sm { width: 34px; height: 34px; margin: 0; flex: none; stroke-width: 2.4; }
.icon-head { display: flex; align-items: center; gap: 14px; }
.band--night .sec-icon { color: var(--on-night); }

/* Section heading block */
.sec-head .lede { margin-top: 18px; }
.sec-head + .sec-body { margin-top: 0; }
.rule-top { border-top: 1px solid var(--line); padding-top: 18px; }
.band--night .rule-top { border-top-color: var(--on-night-line); }

/* Typographic points (no icon cards) */
.points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px var(--col-gap); align-content: start; }
.points--one { grid-template-columns: minmax(0, 1fr); gap: 0; }
.point { border-top: 1px solid var(--line); padding-top: 18px; }
.points--one .point { padding-block: 22px; }
.point h3, .point b { display: block; font-family: var(--display); font-stretch: 112%; font-weight: 750; font-size: 21px; line-height: 1.2; color: var(--night); }
.point p { color: var(--muted); font-size: 16px; margin-top: 8px; max-width: 52ch; }
.band--night .point { border-top-color: var(--on-night-line); }
.band--night .point h3, .band--night .point b { color: var(--on-night); }
.band--night .point p { color: var(--on-night-muted); }

/* Pains list (home) */
.pains { display: grid; gap: 0; }
.pains li { font-family: var(--display); font-stretch: 112%; font-weight: 700; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.2; color: var(--night); padding-block: 22px; border-top: 1px solid var(--line); }
.pains li:last-child { border-bottom: 1px solid var(--line); }
.pains-after { margin-top: 28px; font-size: 19px; color: var(--muted); max-width: 46ch; }

/* Steps (a real sequence) */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--col-gap); counter-reset: step; margin-top: 56px; }
.step { border-top: 2px solid var(--indigo); padding-top: 18px; counter-increment: step; }
.step::before { content: "0" counter(step); display: block; font-family: var(--mono); font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.step h3 { font-size: 21px; font-weight: 750; line-height: 1.2; color: var(--night); }
.step p { color: var(--muted); font-size: 16px; margin-top: 8px; }
.step:last-child { border-top-color: var(--magenta-ui); }
.steps-note { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 15px; color: var(--muted); }
.steps-note span { border-left: 2px solid var(--line); padding-left: 12px; }

/* Two kinds of screen */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px var(--col-gap); margin-top: 56px; }
.split h3 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; line-height: 1.08; color: var(--indigo); }
.split p { color: var(--muted); margin-top: 12px; max-width: 46ch; }
.split ul { margin-top: 18px; display: grid; gap: 0; }
.split li { padding-block: 10px; border-top: 1px solid var(--line); font-size: 16px; }

/* Before and after (home) */
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px clamp(32px, 4vw, 56px); margin-top: clamp(40px, 5vw, 64px); }
.compare figure { margin: 0; }
.compare .h3 { margin-bottom: 24px; font-size: clamp(22px, 2vw, 26px); }
.compare .glass { aspect-ratio: 16 / 9; height: auto; }

/* Framed figure (screen shape) */
.figure-screen { position: relative; }
.figure-screen .screen { transform: rotate(var(--tilt)); }
.figure-screen .glass { aspect-ratio: 16 / 9; height: auto; }
.figure-screen .screen { box-shadow: 0 0 0 2px var(--magenta), 0 30px 60px -35px rgba(21, 17, 46, .45); }
.hero-photo .screen, .figure-wide .screen { transform: rotate(-0.7deg); }

/* Portal mock-ups (product page) */
.mock { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: 14px; }
.mock-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--mist); }
.mock-bar b { font-weight: 600; }
.mock-bar span { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.mock-scroll { overflow-x: auto; }
.mock table { width: 100%; border-collapse: collapse; min-width: 520px; }
.mock th { text-align: left; font-weight: 600; font-size: 12px; color: var(--muted); padding: 10px 16px; border-bottom: 1px solid var(--line); }
.mock td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.mock tr:last-child td { border-bottom: 0; }
.mock td.num { font-family: var(--mono); font-size: 13px; font-variant-numeric: tabular-nums; }
.mock-note { margin-top: 12px; font-size: 13px; color: var(--muted); }

.composer { display: grid; gap: 14px; padding: 18px 16px; }
.composer .row2 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.composer .fake-field { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 10px 12px; font-size: 14px; background: var(--white); }
.composer .fake-field small { display: block; font-size: 11px; color: var(--muted); }
.composer .preview { background: var(--alert); color: var(--white); font-weight: 600; font-size: 14px; padding: 10px 12px; border-radius: 4px; }

/* Feature groups (product page) */
.feature-group { margin-top: 64px; }
.feature-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--col-gap); }
.feature-list li { padding-block: 18px; border-top: 1px solid var(--line); }
.feature-list li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.feature-list b { display: block; font-weight: 600; font-size: 17px; }
.feature-list span { display: block; color: var(--muted); font-size: 16px; margin-top: 4px; }
.band--night .feature-list li { border-top-color: var(--on-night-line); }
.band--night .feature-list span { color: var(--on-night-muted); }
.subnav { position: sticky; top: 0; z-index: 10; background: var(--paper); border-bottom: 1px solid var(--line); }
.subnav ul { display: flex; gap: 28px; overflow-x: auto; padding-block: 14px; font-size: 15px; font-weight: 500; scrollbar-width: none; }
.subnav a { text-decoration: none; color: var(--muted); white-space: nowrap; }
.subnav a:hover { color: var(--night); }

/* Not doing list */
.not-list { display: grid; gap: 0; }
.not-list li { padding-block: 16px; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: var(--col-gap); }
.not-list b { font-weight: 600; }
.not-list span { color: var(--muted); }

/* Pricing */
.price-panel { background: var(--mist); border-radius: var(--screen-radius); padding: clamp(24px, 3.5vw, 40px); transform: rotate(-1deg); box-shadow: 0 0 0 1px var(--line); }
.price-panel > * { transform: rotate(1deg); }
.band--mist .price-panel { background: var(--white); }

/* Large calculator (Pricing page) */
.price-panel--large { margin-top: clamp(40px, 5vw, 56px); padding: clamp(28px, 4vw, 56px); transform: rotate(-0.6deg); }
.price-panel--large > * { transform: rotate(0.6deg); }
.price-calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px clamp(40px, 6vw, 96px); align-items: center; }
.price-panel--large .billing button { font-size: 16px; padding: 12px 20px; }
.price-panel--large .slider-label { margin-top: 40px; font-size: 20px; }
.price-panel--large .slider-label output { font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: clamp(24px, 2.4vw, 32px); color: var(--indigo); }
.price-panel--large .total { margin-top: 0; flex-wrap: nowrap; white-space: nowrap; }
.price-panel--large .total strong { font-size: clamp(56px, 7.4vw, 124px); }.price-panel--large .total span { font-size: 18px; }
.price-panel--large .price-foot { font-size: 16px; }
.range-scale { display: flex; justify-content: space-between; margin-top: 10px; font-family: var(--mono); font-size: 13px; color: var(--muted); }

input[type="range"].range-lg {
  -webkit-appearance: none; appearance: none; width: 100%; height: 12px; margin-top: 22px; border-radius: 999px; cursor: pointer;
  background: linear-gradient(to right, var(--magenta-ui) var(--fill, 18%), var(--line) var(--fill, 18%));
}
input[type="range"].range-lg::-webkit-slider-thumb {
  -webkit-appearance: none; width: 34px; height: 34px; border-radius: 50%; background: var(--white);
  border: 3px solid var(--magenta-ui); box-shadow: 0 3px 10px rgba(21, 17, 46, .25); transition: transform .15s ease;
}
input[type="range"].range-lg::-moz-range-thumb {
  width: 28px; height: 28px; border-radius: 50%; background: var(--white);
  border: 3px solid var(--magenta-ui); box-shadow: 0 3px 10px rgba(21, 17, 46, .25);
}
input[type="range"].range-lg::-moz-range-track { background: transparent; }
input[type="range"].range-lg:hover::-webkit-slider-thumb { transform: scale(1.08); }
input[type="range"].range-lg:focus-visible { outline: 3px solid var(--magenta); outline-offset: 8px; }
.billing { display: inline-flex; border: 1.5px solid var(--control); border-radius: var(--radius); padding: 3px; background: var(--white); }
.billing button { font: 600 14px var(--body); border: 0; background: transparent; color: var(--muted); padding: 9px 14px; border-radius: 4px; cursor: pointer; }
.billing button:hover { color: var(--night); }
.billing button[aria-pressed="true"] { background: var(--indigo); color: var(--paper); }
.slider-label { display: flex; justify-content: space-between; align-items: baseline; margin-top: 30px; font-weight: 600; }
.slider-label output { font-family: var(--mono); font-size: 15px; }
input[type="range"] { width: 100%; margin-top: 12px; accent-color: var(--magenta-ui); }
.total { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; }
.total strong { font-family: var(--display); font-stretch: 112%; font-weight: 850; font-size: clamp(40px, 5vw, 60px); line-height: 1; color: var(--indigo); font-variant-numeric: tabular-nums; }
.total span { color: var(--muted); }
.price-foot { margin-top: 10px; font-size: 15px; color: var(--muted); }
.price-big { font-family: var(--display); font-stretch: 112%; font-weight: 850; font-size: clamp(56px, 8vw, 104px); line-height: .95; letter-spacing: -0.02em; color: var(--indigo); }
.price-big small { font-size: .3em; font-weight: 700; letter-spacing: 0; color: var(--muted); display: block; margin-top: 10px; font-stretch: 100%; font-family: var(--body); }
.ways { display: grid; gap: 0; }
.ways > div { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr) minmax(0, 1.6fr); gap: 12px var(--col-gap); padding-block: 24px; border-top: 1px solid var(--line); align-items: baseline; }
.ways > div:last-child { border-bottom: 1px solid var(--line); }
.ways h3 { font-size: 22px; font-weight: 800; color: var(--indigo); }
.ways .price { font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: 22px; }
.ways .price small { display: block; font-family: var(--body); font-weight: 500; font-size: 14px; color: var(--muted); font-stretch: 100%; margin-top: 2px; }
.ways p { color: var(--muted); font-size: 16px; }
.ways .lead-way h3 { color: var(--magenta-ui); }
.included { columns: 2; column-gap: var(--col-gap); }
.included li { break-inside: avoid; padding-block: 12px; border-top: 1px solid var(--line); font-size: 16px; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: 22px; font-weight: 600; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 14px; height: 14px; flex: none; background: linear-gradient(var(--indigo), var(--indigo)) center / 14px 2px no-repeat, linear-gradient(var(--indigo), var(--indigo)) center / 2px 14px no-repeat; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--indigo); }
.faq .answer { padding-bottom: 24px; color: var(--muted); max-width: 64ch; }
.faq .answer p + p { margin-top: 10px; }

/* Forms */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px var(--col-gap); }
.field { display: grid; gap: 7px; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font-size: 15px; font-weight: 600; }
.field .hint { font-size: 14px; color: var(--muted); }
.field input, .field select, .field textarea {
  font: 16px var(--body); color: var(--night); background: var(--white);
  padding: 13px 14px; border: 1.5px solid var(--control); border-radius: var(--radius); width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.field select {
  -webkit-appearance: none; appearance: none; padding-right: 46px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23262262' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 18px center; background-size: 12px 8px;
}
.form-row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px var(--col-gap); }
.btn--block { width: 100%; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--control-hover); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(38, 34, 98, .15); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--bad); }
.field .error { font-size: 14px; color: var(--bad); }
.choice { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.choice label { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1.5px solid var(--control); border-radius: var(--radius); background: var(--white); font-weight: 500; cursor: pointer; }
.choice label:hover { border-color: var(--control-hover); }
.field .choice input { width: 18px; height: 18px; flex: none; margin: 0; padding: 0; border: 0; box-shadow: none; accent-color: var(--magenta-ui); }
.choice label { white-space: nowrap; }
.form-status { grid-column: 1 / -1; font-size: 15px; padding: 14px 16px; border-radius: var(--radius); background: var(--mist); }
.form-status[data-kind="ok"] { background: var(--ok-bg); color: var(--ok); }
.form-status[data-kind="error"] { background: var(--bad-bg); color: var(--bad); }
.hp { position: absolute; left: -9999px; }


/* Closing call to action */
.closing .h2 { font-size: clamp(34px, 4.6vw, 56px); max-width: 18ch; }

/* Legal pages */
.legal { max-width: 68ch; }
.legal h2 { font-size: 26px; font-weight: 800; color: var(--indigo); margin-top: 48px; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal ul { margin-top: 14px; color: var(--muted); }
.legal ul { list-style: disc; padding-left: 22px; }
.legal li + li { margin-top: 6px; }
.draft-note { background: var(--mist); border-left: 3px solid var(--indigo); padding: 14px 16px; font-size: 15px; color: var(--muted); margin-bottom: 40px; }

/* Footer */
.site-footer { background: var(--night); color: var(--on-night-muted); padding-block: 80px 40px; font-size: 15px; }
.site-footer .brand img { height: 46px; width: auto; display: block; }
.footer-brand { grid-column: 1 / 5; display: grid; gap: 16px; align-content: start; }
.footer-cols { grid-column: 6 / 13; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--col-gap); }
.site-footer .footer-heading { margin: 0 0 14px; color: var(--on-night); font: 600 15px var(--body); }
.site-footer ul { display: grid; gap: 9px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--on-night); }
.footer-base { margin-top: 64px; padding-top: 22px; border-top: 1px solid var(--on-night-line); font-size: 13px; display: flex; flex-wrap: wrap; gap: 8px 28px; }


/* Cookie choice: Accept and Reject are styled the same, so neither is nudged */
.consent {
  position: fixed; z-index: 60; left: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  width: min(420px, calc(100vw - 40px)); padding: 20px 22px;
  background: var(--night); color: var(--on-night); border: 1px solid var(--on-night-line); border-radius: var(--radius);
  box-shadow: 0 24px 48px -20px rgba(0, 0, 0, .55);
}
.consent-title { font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: 18px; }
.consent-text { margin-top: 8px; font-size: 15px; line-height: 1.5; color: var(--on-night-muted); }
.consent-text a { color: var(--on-night); text-underline-offset: 3px; }
.consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.consent .btn--secondary { color: var(--on-night); border-color: var(--on-night-muted); justify-content: center; }
.consent .btn--secondary:hover { background: var(--on-night); color: var(--night); border-color: var(--on-night); }
@media (max-width: 640px) { .consent { left: 12px; right: 12px; width: auto; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); } }

/* Not found */
.notfound { min-height: 50vh; }

/* Responsive */
@media (max-width: 1100px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .ways > div { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
  .ways > div p { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .menu-btn { display: inline-block; }
  .nav { flex-wrap: wrap; }
  .nav-links { display: none; width: 100%; flex-direction: column; align-items: flex-start; gap: 18px; padding-block: 8px 12px; }
  .nav-links.open { display: flex; }
  .nav-links ul { flex-direction: column; gap: 4px; font-size: 18px; }
  .hero-title, .hero-side, .page-hero-photo, .stage, .span-intro, .span-side, .span-head, .span-body, .span-body-wide, .span-left, .span-right, .footer-brand, .footer-cols, .page-hero-aside { grid-column: 1 / -1; }
  .span-body, .span-body-wide, .span-right, .span-side, .footer-cols, .page-hero-aside { margin-top: 40px; }
  .hero-side { margin-top: 28px; }
  .page-hero-photo { margin: 40px 0 0; padding-left: 0; }
  .page-hero--photo .span-intro { grid-column: 1 / -1; }
  .stage { margin-right: 0; margin-top: 56px; min-height: 0; display: grid; gap: 28px; }
  .stage.stage--large { flex-direction: column; align-items: stretch; gap: 64px; }
  .compare, .price-calc { grid-template-columns: minmax(0, 1fr); }
  .price-panel--large .total strong { font-size: clamp(40px, 13vw, 104px); }
  .stage--large .screen--display { flex: none; width: 100%; }
  .stage--large .screen--kiosk { flex: none; width: min(300px, 80%); margin: 0; }
  .stage .screen { position: relative; inset: auto; }
  .screen--display { width: 100%; }
  .screen--kiosk { width: min(224px, 70%); margin-top: -70px; margin-left: 4%; left: auto; bottom: auto; }
  .portal, .stage-caption { position: static; max-width: none; justify-content: flex-start; }
}
@media (max-width: 640px) {
  .nav .brand img { height: 46px; }
  .points, .split, .feature-list, .form, .steps, .form-row3, .choice { grid-template-columns: minmax(0, 1fr); }
  .not-list li, .ways > div { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .included { columns: 1; }
  .composer .row2 { grid-template-columns: minmax(0, 1fr); }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .zone-main .slide-text { display: none; }
  .faq summary { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
