/* zeniterp.com — one light theme. Zenit Indigo (docs/BRAND.md) on white, the app area hues for the
   app marks and tiles, the warm hand ink of the guided tours for the freehand highlights and arrows.
   Layout language after odoo.com (app grid on a curved band, one page per app, big rounded grey
   panels) with weoll.com touches (cycling product chip, coloured product cards).
   Solid surfaces, small shadows, no glass, no dark variant. */

@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url('/assets/fonts/Inter-Regular.ttf') format('truetype'); }
@font-face { font-family: 'Inter'; font-weight: 700; font-display: swap; src: url('/assets/fonts/Inter-Bold.ttf') format('truetype'); }

:root {
  --primary: #3949AB; --primary-strong: #303F9F; --primary-tint: #E8EAF6;
  --floor: #F4F5F8; --surface: #FFFFFF; --surface-2: #EEF0F4; --line: #E2E5EA;
  --ink: #1B2130; --ink-soft: #5B6675;
  --success: #2E7D32;
  --hand: #D84315; --hand-marker: rgba(255, 196, 0, .55);
  --dark: #151B2B;
  --acc-indigo: #3949AB; --acc-indigo-tint: #E8EAF6;
  --acc-teal: #00897B; --acc-teal-tint: #E0F2F1;
  --acc-orange: #EF6C00; --acc-orange-tint: #FFF3E0;
  --acc-violet: #7B1FA2; --acc-violet-tint: #F3E5F5;
  --acc-pink: #C2185B; --acc-pink-tint: #FCE4EC;
  --acc-cyan: #0097A7; --acc-cyan-tint: #E0F7FA;
  --acc-lime: #558B2F; --acc-lime-tint: #F1F8E9;
  --acc-blue: #1E88E5; --acc-blue-tint: #E3F2FD;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06);
  --shadow-md: 0 2px 4px rgba(16, 24, 40, .05), 0 6px 16px rgba(16, 24, 40, .08);
  --shadow-lg: 0 14px 36px rgba(16, 24, 40, .13), 0 2px 6px rgba(16, 24, 40, .06);
  --r-lg: 12px; --r-xl: 18px;
  --wrap: 1180px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--surface); color: var(--ink); font: 400 16px/1.6 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-strong); }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -.02em; font-weight: 700; color: var(--ink); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.wrap--narrow { width: min(820px, 100% - 40px); }
.center { text-align: center; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--primary); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- accents ---------- */
.accent-indigo { --acc: var(--acc-indigo); --acc-tint: var(--acc-indigo-tint); }
.accent-teal { --acc: var(--acc-teal); --acc-tint: var(--acc-teal-tint); }
.accent-orange { --acc: var(--acc-orange); --acc-tint: var(--acc-orange-tint); }
.accent-violet { --acc: var(--acc-violet); --acc-tint: var(--acc-violet-tint); }
.accent-pink { --acc: var(--acc-pink); --acc-tint: var(--acc-pink-tint); }
.accent-cyan { --acc: var(--acc-cyan); --acc-tint: var(--acc-cyan-tint); }
.accent-lime { --acc: var(--acc-lime); --acc-tint: var(--acc-lime-tint); }
.accent-blue { --acc: var(--acc-blue); --acc-tint: var(--acc-blue-tint); }
.tile-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: var(--acc-tint, var(--primary-tint)); color: var(--acc, var(--primary)); flex: none; }
.ico { width: 22px; height: 22px; flex: none; }
.ico--sm { width: 18px; height: 18px; }
.ico--xs { width: 14px; height: 14px; }

/* ---------- type ---------- */
.h-hero { font-size: clamp(38px, 5.4vw, 66px); line-height: 1.06; letter-spacing: -.03em; }
.h-display { font-size: clamp(30px, 3.8vw, 46px); letter-spacing: -.025em; }
.h-sec { font-size: 24px; margin-bottom: 12px; }
.eyebrow { color: var(--primary); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.eyebrow--acc { color: var(--acc, var(--primary)); }
.lede { color: var(--ink-soft); font-size: 18px; margin-top: 18px; max-width: 62ch; }
.lede--center { margin-inline: auto; }
.note { color: var(--ink-soft); font-size: 14px; margin-top: 14px; }

/* ---------- the hand-drawn art ---------- */
.hl { position: relative; display: inline-block; white-space: nowrap; }
.hl-text { position: relative; z-index: 1; }
.hl-svg { position: absolute; pointer-events: none; overflow: visible; }
.hl-ink path { fill: var(--hand); }
.hl-marker path { fill: var(--hand-marker); mix-blend-mode: multiply; }
.hl--underline .hl-svg { left: -2%; width: 104%; bottom: -.12em; height: .3em; }
.hl--circle .hl-svg { left: -3%; top: -40%; width: 108%; height: 180%; }
.hl--marker .hl-svg { left: -3%; top: 8%; width: 106%; height: 90%; z-index: 0; }
.hand-arrow { width: 72px; height: 48px; overflow: visible; }
.hand-arrow path { fill: none; stroke: var(--hand); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.demo-wrap { position: relative; display: inline-flex; }
/* the note sits below the demo button, its arrow drawn from the text up to the button */
.hand-note { position: absolute; left: 44%; top: calc(100% + 4px); display: flex; align-items: flex-start; gap: 4px; white-space: nowrap; color: var(--hand); font-size: 14px; font-weight: 700; }
.hand-note .hand-arrow--up { width: 46px; height: 34px; flex: none; }
.hand-note-text { margin-top: 22px; }
.curl { position: absolute; bottom: -64px; width: 64px; height: 100px; overflow: visible; z-index: 1; }
.curl--r { right: 18%; }
.curl--l { left: 18%; transform: scaleX(-1); }
.curl path { fill: none; stroke: #C3C8D2; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 10px; border: 1px solid transparent; font: inherit; font-weight: 700; font-size: 15px; line-height: 1.2; white-space: nowrap; transition: background .15s, color .15s, border-color .15s, transform .15s, box-shadow .15s; }
.btn--primary { background: var(--primary); color: #fff; box-shadow: 0 1px 2px rgba(57, 73, 171, .3); }
.btn--primary:hover { background: var(--primary-strong); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(57, 73, 171, .28); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn--ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn--lg { padding: 14px 24px; font-size: 16px; border-radius: 12px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; align-items: center; }
.actions--center { justify-content: center; }
.link-arrow { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--primary); transition: gap .15s; }
.link-arrow:hover { gap: 10px; }

/* ---------- app marks ---------- */
.app-icon { display: block; }
.app-tile { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; background: #fff; border-radius: 16px; box-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 4px 14px rgba(16, 24, 40, .09); flex: none; transition: transform .18s, box-shadow .18s; }
.app-tile--grid { width: 86px; height: 86px; border-radius: 20px; }
.app-tile--lg { width: 104px; height: 104px; border-radius: 26px; }
.app-tile--row { width: 64px; height: 64px; border-radius: 16px; }
.app-tile--sm { width: 52px; height: 52px; border-radius: 14px; }
.app-tile--xs { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 1px 2px rgba(16, 24, 40, .08), 0 2px 6px rgba(16, 24, 40, .07); }

/* ---------- header + mega menu ---------- */
.top { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .98); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 22px; height: 68px; }
.brand img { display: block; height: 36px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; flex: 1; align-self: stretch; }
.nav-link, .dd-btn { color: var(--ink); font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 8px; display: inline-flex; align-items: center; gap: 4px; }
.nav-link:hover, .dd-btn:hover, .dd:focus-within .dd-btn, .dd:hover .dd-btn { background: var(--surface-2); color: var(--ink); }
.nav-link[aria-current="page"], .dd-btn[aria-current="page"] { color: var(--primary); }
.dd { display: flex; align-items: center; align-self: stretch; }
.dd-panel { display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); width: min(1180px, 100vw - 32px); background: #fff; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 20px 20px; box-shadow: var(--shadow-lg); padding: 26px 28px 18px; }
.dd:hover .dd-panel, .dd:focus-within .dd-panel { display: block; }
.dd-cols { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.dd-cat { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 10px 8px; }
.dd-app { display: flex; gap: 10px; align-items: flex-start; padding: 8px; border-radius: 12px; color: var(--ink); }
.dd-app:hover { background: var(--floor); color: var(--ink); }
.dd-app:hover .app-tile { transform: translateY(-1px); }
.dd-app-txt { display: flex; flex-direction: column; min-width: 0; }
.dd-app-txt strong { font-size: 14px; line-height: 1.25; }
.dd-app-txt small { font-size: 12.5px; color: var(--ink-soft); line-height: 1.35; margin-top: 2px; }
.dd-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-top: 1px solid var(--line); margin-top: 16px; padding-top: 14px; font-size: 14px; }
.dd-all { font-weight: 700; }
.dd-erp { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.dd-erp span { color: var(--ink-soft); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.langs { display: flex; gap: 2px; }
.langs a { padding: 4px 8px; border-radius: 6px; font-size: 12px; font-weight: 700; color: var(--ink-soft); }
.langs a:hover { background: var(--surface-2); color: var(--ink); }
.langs a[aria-current="true"] { background: var(--primary-tint); color: var(--primary); }
.nav-toggle, .burger { display: none; }

/* ---------- home hero ---------- */
.hero { padding: 72px 0 56px; background: var(--surface); }
.hero--center .hero-in { text-align: center; max-width: 1000px; }
.hero--center .note { margin-top: 58px; }
/* the app dock above the hero title: every app's own tile, the one named beside it lifted */
.app-dock { display: inline-flex; align-items: center; gap: 14px; padding: 7px 18px 7px 9px; border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 28px -16px rgba(20, 24, 60, .35); margin: 0 0 26px; color: var(--ink); font-size: 14px; font-weight: 700; }
.dock-tiles { display: flex; gap: 3px; }
.dock-tile .app-tile { transition: transform .3s, opacity .3s, box-shadow .3s; opacity: .42; }
.dock-tile.is-on .app-tile { opacity: 1; transform: translateY(-3px) scale(1.14); box-shadow: 0 6px 12px -6px rgba(20, 24, 60, .45); }
.app-dock .chip-text { min-width: 11.5em; text-align: left; }
.chip-text { display: inline-block; transition: opacity .25s, transform .25s; }
.chip-text.is-out { opacity: 0; transform: translateY(-5px); }

/* ---------- the app grid on the curved band ---------- */
.apps-band { background: var(--floor); border-radius: 50% 50% 0 0 / 150px 150px 0 0; padding: 120px 0 72px; }
.app-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 36px 18px; max-width: 920px; margin: 0 auto; }
.app-link { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; color: var(--ink); }
.app-link:hover { color: var(--ink); }
.app-link:hover .app-tile { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(16, 24, 40, .06), 0 14px 28px rgba(16, 24, 40, .14); }
.app-name { font-size: 14px; font-weight: 700; line-height: 1.3; }
.apps-band-foot { max-width: 920px; margin: 48px auto 0; display: flex; justify-content: space-between; align-items: center; gap: 20px; color: var(--ink-soft); font-size: 17px; }
.apps-band-foot strong { color: var(--ink); }

/* ---------- sections ---------- */
.sec { padding: 96px 0; position: relative; }
.sec--tint { background: var(--floor); }
.sec--curve { border-radius: 72px; margin: 0 16px; }
.sec--dark { background: var(--dark); color: #E5E9F0; border-radius: 72px; margin: 0 16px; }
.sec--dark h2, .sec--dark h3 { color: #fff; }
.sec--dark .lede, .sec--dark .ticks li { color: #B7C0D0; }
.sec--dark .eyebrow { color: #9FA8DA; }
.sec--dark .hl-ink path { fill: #FFAB91; }
.sec-head { max-width: 780px; margin: 0 auto 48px; text-align: center; }
.sec-head .lede { margin-inline: auto; }
.ticks { margin-top: 22px; display: grid; gap: 11px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink); }
.ticks .ico { color: var(--success); flex: none; margin-top: 3px; }

/* screenshots */
.shot { margin: 0; position: relative; z-index: 1; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); overflow: hidden; }
.shot-bar { height: 30px; background: var(--surface-2); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 6px; padding: 0 12px; }
.shot-bar span { width: 10px; height: 10px; border-radius: 50%; background: #D5D9E0; }
.shot img { display: block; width: 100%; height: auto; }
.shot--wide { max-width: 1100px; margin: 0 auto; }

/* showcase */
.showcase-art { position: relative; }
.points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 52px; }
.point { display: flex; gap: 14px; align-items: flex-start; }
.point h3 { font-size: 17px; margin: 2px 0 6px; }
.point p { color: var(--ink-soft); font-size: 15px; line-height: 1.55; }

/* flows */
.flow-cards { display: grid; gap: 18px; }
.flow-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 26px 30px; display: grid; grid-template-columns: 190px minmax(0, 1fr); align-items: center; gap: 24px; box-shadow: var(--shadow-sm); }
.flow-card h3 { font-size: 20px; }
.flow { display: flex; align-items: flex-start; justify-content: space-between; gap: 4px; }
.flow-step { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; flex: 1 1 0; min-width: 0; }
.flow-ico { width: 62px; height: 62px; border-radius: 17px; background: #fff; box-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 4px 14px rgba(16, 24, 40, .09); display: grid; place-items: center; color: var(--acc, var(--primary)); }
.flow-ico .ico { width: 28px; height: 28px; }
.flow-label { font-weight: 700; font-size: 14.5px; line-height: 1.3; }
.flow-sub { font-size: 12.5px; color: var(--ink-soft); margin-top: -4px; }
.flow-arrow { width: 62px; flex: 0 0 62px; margin-top: 20px; overflow: visible; }
.flow-arrow path { fill: none; stroke: var(--primary); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* spotlights and feature blocks */
.spot-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 64px; align-items: center; }
.spot--flip .spot-in { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); }
.spot--flip .spot-copy { order: 2; }
.spot--flip .spot-art { order: 1; }
.spot-copy .link-arrow { margin-top: 26px; }
.app-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; margin-bottom: 16px; color: var(--ink); }
.media-panel { --primary: var(--acc, #3949AB); --primary-tint: var(--acc-tint, #E8EAF6); background: var(--floor); border-radius: 32px; padding: 48px 36px; display: grid; place-items: center; min-height: 320px; }
.media-panel .illo { width: 280px; height: auto; }
.media-panel--flow { padding: 56px 28px; }

/* paths */
.paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 36px; }
.path { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 30px; box-shadow: var(--shadow-sm); }
.path--erp { background: var(--primary); border-color: transparent; }

.path-icons { display: flex; align-items: center; min-height: 56px; margin-bottom: 20px; }
.path-icons .app-tile + .app-tile { margin-left: -12px; }
.path h3 { font-size: 21px; margin-bottom: 8px; }
.path p { color: var(--ink-soft); }
.path.path--erp h3, .path.path--erp p { color: #fff; }
.path.path--erp p { opacity: .9; }

/* mobile */
.mobile-in { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 56px; align-items: center; }
.stores { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.store { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 10px; background: #fff; color: var(--ink); font-weight: 700; font-size: 14px; }
.store svg { width: 20px; height: 20px; }
.store:hover { background: var(--primary-tint); color: var(--primary); }

/* feature cards */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat-grid--4 { grid-template-columns: repeat(4, 1fr); }
.feat-grid--3 { grid-template-columns: repeat(3, 1fr); }
.feat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 24px; box-shadow: var(--shadow-sm); }
.feat h3 { font-size: 17px; margin: 16px 0 8px; }
.feat p { color: var(--ink-soft); font-size: 14.5px; line-height: 1.55; }
.feat .btn { margin-top: 16px; }

/* faq + closing band */
.faq { display: grid; gap: 10px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 0 20px; }
.faq-item summary { cursor: pointer; padding: 17px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--primary); font-size: 20px; line-height: 1; flex: none; }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { color: var(--ink-soft); padding: 0 0 18px; }
.band { padding: 104px 0; text-align: center; }
.band-in .lede { margin-inline: auto; }
.band .actions { justify-content: center; }
.band--erp { background: var(--primary-tint); border-radius: 72px; margin: 0 16px 16px; }
.erp-icons { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 28px; }

/* ---------- apps index ---------- */
.page-head { padding: 64px 0 28px; background: var(--surface); }
.page-head--center { text-align: center; }
.page-head--legal { background: var(--floor); padding-bottom: 32px; }
.sec--apps { padding-top: 40px; }
.cat { margin-bottom: 46px; }
.cat-title { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 16px; }
.app-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.app-card { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 16px 18px; color: var(--ink); box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s, border-color .15s; }
.app-card:hover { color: var(--ink); border-color: var(--acc); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.app-card-body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.app-card-body strong { font-size: 17px; }
.app-card-body span { color: var(--ink-soft); font-size: 14px; line-height: 1.4; }
.app-card-go { color: var(--acc); }

/* ---------- app page ---------- */
.app-hero { padding: 40px 0 36px; text-align: center; }
.app-hero-in { max-width: 960px; display: flex; flex-direction: column; align-items: center; }
.crumb { font-size: 14px; font-weight: 600; color: var(--ink-soft); margin-bottom: 26px; }
.crumb:hover { color: var(--primary); }
.app-hero .app-tile--lg { margin-bottom: 22px; }
.app-shot { background: var(--floor); border-radius: 50% 50% 0 0 / 130px 130px 0 0; padding: 72px 0 96px; }
.rel-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.rel-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 26px; display: flex; flex-direction: column; gap: 10px; color: var(--ink); box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s, border-color .15s; }
.rel-card:hover { color: var(--ink); border-color: var(--acc); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.rel-card strong { font-size: 19px; margin-top: 6px; }
.rel-card p { color: var(--ink-soft); flex: 1; }



/* ---------- phone mockups (the prodexmes.com design): slim gradient bezel, pill camera, side key ---------- */
.phone { position: relative; width: 250px; max-width: 100%; margin: 0; padding: 10px; border-radius: 44px; background: linear-gradient(160deg, #232a3a, #0b0f1a 40%); border: 1px solid rgba(255, 255, 255, .16); box-shadow: 0 26px 70px rgba(15, 23, 42, .22), inset 0 0 0 2px rgba(255, 255, 255, .05); }
.phone::before { content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 78px; height: 22px; border-radius: 999px; background: #000; z-index: 2; }
.phone::after { content: ""; position: absolute; right: -2px; top: 130px; width: 3px; height: 64px; border-radius: 2px; background: rgba(255, 255, 255, .18); }
.phone-screen { border-radius: 34px; overflow: hidden; background: #0d1420; aspect-ratio: 390 / 844; }
.phone-screen img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.sec--dark .phone { box-shadow: 0 30px 80px rgba(0, 0, 0, .5), inset 0 0 0 2px rgba(255, 255, 255, .05); }
/* two phones: the back one tilted, the front one overlapping it */
.phone-stage { position: relative; display: flex; justify-content: center; align-items: flex-end; padding: 24px 0 34px; }
.phone-stage .phone { z-index: 1; }
.phone-stage .phone-front { width: 270px; z-index: 2; margin-left: -70px; margin-bottom: -34px; }
.phone-stage .phone-back { transform: rotate(-7deg) translateY(-18px); }
@keyframes floaty { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }
.floaty { animation: floaty 7s ease-in-out infinite; }
.floaty-slow { animation: floaty 10s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .floaty, .floaty-slow { animation: none; } }
/* `duo:` — a desktop capture with the phone standing in front of its lower right corner */
.duo { position: relative; min-height: 540px; }
.duo .duo-back { position: absolute; top: 36px; left: 0; width: calc(100% - 130px); }
.duo .phone { position: absolute; right: 12px; bottom: 0; width: 224px; z-index: 2; }
/* `phone:` — one phone on a soft panel */
.duo--solo { display: flex; justify-content: center; min-height: 0; padding: 32px 0 44px; background: var(--floor); border-radius: 32px; }
.duo--solo .phone { position: relative; right: auto; bottom: auto; }
@media (max-width: 900px) {
  .phone { width: 200px; }
  .phone-stage .phone-front { width: 220px; margin-left: -56px; }
  .duo { min-height: 400px; } .duo .duo-back { top: 0; width: calc(100% - 56px); }
  .duo .phone { width: 160px; padding: 7px; border-radius: 32px; right: 0; }
  .duo .phone .phone-screen { border-radius: 25px; }
  .duo .phone::before { width: 50px; height: 15px; top: 14px; }
  .duo .phone::after { top: 92px; height: 44px; }
}
@media (max-width: 480px) {
  .phone-stage .phone { width: 160px; padding: 7px; border-radius: 32px; }
  .phone-stage .phone-front { width: 180px; margin-left: -48px; }
  .phone-stage .phone .phone-screen { border-radius: 25px; }
  .phone-stage .phone::before { width: 52px; height: 15px; top: 14px; }
}

/* ---------- jump bar (apps with many feature blocks) ---------- */
.jump { position: sticky; top: 68px; z-index: 40; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); }
.jump-in { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 10px 0; }
.jump a { padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.jump a:hover { border-color: var(--acc, var(--primary)); color: var(--primary); }
.spot[id] { scroll-margin-top: 130px; }
@media (max-width: 900px) { .jump { position: static; } .jump-in { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding: 10px 4px; } }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 34px 26px 28px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.plan::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--acc); }
.plan--popular { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-tint), var(--shadow-lg); }
.plan-badge { position: absolute; top: 20px; right: 20px; background: var(--primary); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.plan-icons { display: flex; margin-bottom: 18px; }
.plan-icons .app-tile + .app-tile { margin-left: -12px; }
.plan h3 { font-size: 24px; }
.plan-tag { color: var(--ink-soft); font-size: 14px; margin-top: 4px; }
.plan-price { margin: 20px 0 6px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.plan-price strong { font-size: 36px; letter-spacing: -.02em; }
.plan-price span { color: var(--ink-soft); font-size: 14px; }
.plan-desc { color: var(--ink-soft); font-size: 15px; margin-top: 8px; }
.plan-list { margin-top: 18px; display: grid; gap: 9px; font-size: 15px; flex: 1; align-content: start; }
.plan-list li { display: flex; gap: 8px; align-items: center; }
.plan-list .ico { color: var(--success); }
.plan-cta { margin-top: 26px; }
.plan-note { text-align: center; color: var(--ink-soft); font-size: 14px; margin-top: 22px; }
.apps-row { margin-top: 80px; }
.app-grid--row { grid-template-columns: repeat(10, minmax(0, 1fr)); max-width: none; gap: 18px 10px; margin-top: 32px; }
.app-grid--row .app-name { font-size: 12.5px; }
.pay-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.pay-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 28px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.pay-logos img { height: 32px; width: auto; }
.trust-item { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-soft); font-size: 14px; }
.trust-item svg { width: 18px; height: 18px; fill: none; stroke: var(--success); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- about, contact, legal ---------- */
.about-in { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); gap: 48px; align-items: center; }
.about-art { display: grid; gap: 24px; justify-items: center; }
.about-art .illo { width: 200px; height: 160px; }
.prose p + p { margin-top: 14px; }
.prose p { font-size: 17px; }
.contact-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 30px; box-shadow: var(--shadow-sm); }
.card .illo { width: 140px; height: 112px; }
.card p { color: var(--ink-soft); margin-bottom: 20px; }
.tablewrap { overflow-x: auto; margin-top: 20px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--surface-2); font-size: 13px; }
.identity th, .kv th { width: 210px; color: var(--ink-soft); font-weight: 600; }
.legal { padding-top: 40px; }
.legal-in { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; align-items: start; }
.toc { position: sticky; top: 88px; font-size: 14px; }
.toc h2 { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 10px; }
.toc ol, .toc ul { display: grid; gap: 6px; margin-bottom: 28px; }
.toc a { color: var(--ink); }
.toc a:hover { color: var(--primary); }
.prose--legal { max-width: 760px; }
.prose--legal h2 { font-size: 22px; margin: 36px 0 12px; scroll-margin-top: 90px; }
.prose--legal h3 { font-size: 17px; margin: 24px 0 8px; }
.prose--legal p { font-size: 16px; }
.prose--legal ul, .prose--legal ol { margin: 10px 0 14px 22px; list-style: disc; display: grid; gap: 6px; }
.prose--legal ol { list-style: decimal; }

/* ---------- footer ---------- */
.foot { background: var(--dark); color: #B7C0D0; padding: 72px 0 28px; font-size: 14px; margin-top: 16px; }
.foot-grid { display: grid; grid-template-columns: 1.25fr 1.9fr 0.95fr 1.2fr; gap: 40px; align-items: start; }
.foot-brand img { height: 32px; width: auto; filter: brightness(0) invert(1); }
.foot-brand p { margin-top: 16px; max-width: 32ch; line-height: 1.6; }
.foot-cta { margin-top: 22px; }
.foot h3 { color: #fff; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; margin: 6px 0 18px; }
.foot ul { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; }
.foot .foot-apps { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: column; grid-template-rows: repeat(6, auto); column-gap: 28px; }
.foot li { line-height: 1.35; }
.foot a { color: #D5DBE6; }
.foot a:hover { color: #fff; }
.foot-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .09); display: flex; align-items: center; justify-content: space-between; gap: 18px 32px; flex-wrap: wrap; }
.foot-trust { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.foot .trust-item { color: #B7C0D0; font-size: 13px; }
.foot-pay { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 10px; padding: 7px 14px; }
.foot-pay-label { color: var(--ink-soft); font-weight: 700; font-size: 11px; letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; }
.foot-pay img { height: 22px; width: auto; }
.foot-copy { margin: 0; font-size: 13px; color: #8B95A8; }
@media (max-width: 600px) {
  .foot-bottom { flex-direction: column; align-items: stretch; }
  .foot-trust { flex-direction: column; align-items: flex-start; gap: 14px; }
  .foot-pay { flex-direction: column; align-items: flex-start; gap: 8px; width: 100%; box-sizing: border-box; padding: 10px 14px; }
  .foot-pay img { height: auto; width: 100%; max-width: 320px; }
}

/* ---------- motion (opacity/transform only) ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } .chip-text, .app-tile, .btn { transition: none; } }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .app-cards { grid-template-columns: repeat(2, 1fr); }
  .feat-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand, .foot-col--apps { grid-column: 1 / -1; }
  .app-grid--row { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .dd-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .spot-in, .spot--flip .spot-in, .mobile-in, .pay-in, .about-in, .contact-in { grid-template-columns: 1fr; gap: 36px; }
  .spot--flip .spot-copy { order: 1; } .spot--flip .spot-art { order: 2; }
  .app-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .apps-band { border-radius: 50% 50% 0 0 / 60px 60px 0 0; padding: 72px 0 56px; }
  .app-shot { border-radius: 50% 50% 0 0 / 50px 50px 0 0; padding: 48px 0 64px; }
  .apps-band-foot { flex-direction: column; text-align: center; }
  .points, .paths, .plans, .feat-grid, .feat-grid--3, .rel-cards { grid-template-columns: 1fr; }
  .flow-card { grid-template-columns: 1fr; }
  .flow { flex-direction: column; align-items: center; gap: 0; }
  .flow-arrow { transform: rotate(90deg); margin: 8px 0; }
  .curl { display: none; }
  .plan--popular { order: -1; }
  .legal-in { grid-template-columns: 1fr; }
  .toc { position: static; }
  .hand-note { display: none; }
  .dock-tile:nth-child(n+6) { display: none; }
  .app-dock .chip-text { min-width: 0; }
  .hero--center .note { margin-top: 16px; }
  .sec { padding: 64px 0; }
  .sec--curve, .sec--dark, .band--erp { border-radius: 32px; margin: 0 8px; }
  .nav-toggle:checked ~ .nav { display: flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; align-items: stretch; gap: 0; background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px 20px 16px; box-shadow: var(--shadow-lg); max-height: calc(100vh - 68px); overflow-y: auto; }
  .nav-link, .dd-btn { padding: 12px 0; border-bottom: 1px solid var(--line); border-radius: 0; }
  .dd { display: block; }
  .dd-panel, .dd:hover .dd-panel, .dd:focus-within .dd-panel { display: block; position: static; transform: none; width: auto; border: 0; box-shadow: none; padding: 10px 0; }
  .dd-cols { grid-template-columns: 1fr 1fr; gap: 6px; }
  .dd-cat { display: none; }
  .dd-app-txt small { display: none; }
  .dd-foot { display: none; }
  .nav-cta { margin: 14px 0 0; flex-wrap: wrap; }
  .burger { display: flex; flex-direction: column; gap: 5px; margin-left: auto; cursor: pointer; padding: 8px; }
  .burger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }
}
@media (max-width: 600px) {
  .app-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 8px; }
  .app-tile--grid { width: 72px; height: 72px; border-radius: 18px; }
  .app-cards { grid-template-columns: 1fr; }
  .app-grid--row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .h-hero { font-size: 36px; }
  .hl { white-space: normal; }
  .lede { font-size: 16px; }
  .foot-grid { grid-template-columns: 1fr; }
  .btn--lg { width: 100%; }
  .demo-wrap, .demo-wrap .btn { width: 100%; }
  .feat-grid--4 { grid-template-columns: 1fr; }
}
@media print {
  .top, .foot, .band, .toc, .skip { display: none !important; }
  .legal-in { grid-template-columns: 1fr; }
  body { font-size: 12pt; }
}

/* ---------- pricing calculator ---------- */
.plan-extra { color: var(--ink); font-size: 14px; font-weight: 600; margin-top: 2px; }
.note--price a { color: var(--primary); font-weight: 600; }
.calc { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; max-width: 1080px; margin: 0 auto; }
.calc [hidden] { display: none !important; }
.calc-form { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 26px; display: grid; gap: 22px; }
.calc-group { border: 0; padding: 0; margin: 0; min-width: 0; }
.calc-group legend { font-weight: 700; font-size: 15px; margin-bottom: 10px; padding: 0; }
.calc-apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.calc-app { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; font-size: 14.5px; font-weight: 600; background: #fff; }
.calc-app:has(input:checked) { border-color: var(--primary); background: var(--primary-tint); }
.calc-app input { accent-color: var(--primary); width: 16px; height: 16px; margin: 0; flex: none; }
.calc-qty { display: flex; gap: 18px; flex-wrap: wrap; }
.calc-qty label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.calc-qty small { color: var(--ink-soft); font-weight: 400; }
.calc-qty input { width: 150px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-weight: 600; background: #fff; color: var(--ink); }
.calc-period { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; }
.calc-seg { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--floor); }
.calc-seg label { position: relative; padding: 7px 16px; border-radius: 999px; cursor: pointer; }
.calc-seg label:has(input:checked) { background: #fff; box-shadow: 0 1px 3px rgba(20, 24, 60, .14); color: var(--primary); }
.calc-seg input { position: absolute; opacity: 0; pointer-events: none; }
.calc-sum { position: sticky; top: 96px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 24px; box-shadow: var(--shadow-lg); }
.calc-sum dl { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; font-size: 14.5px; margin: 0 0 14px; }
.calc-sum dt { color: var(--ink-soft); }
.calc-sum dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.calc-empty { color: var(--ink-soft); margin: 0 0 12px; }
.calc-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-top: 1px solid var(--line); padding-top: 14px; margin: 0; font-weight: 600; }
.calc-total strong { font-size: 30px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.calc-saving { color: #1e7b4f; font-size: 13.5px; font-weight: 600; margin: 6px 0 0; min-height: 1.2em; }
.calc-note { color: var(--ink-soft); font-size: 13px; margin: 6px 0 16px; }
.calc-sum .btn { width: 100%; justify-content: center; }
.sec--pricing + .sec--tint { margin-top: 0; }
@media (max-width: 900px) { .calc { grid-template-columns: 1fr; } .calc-sum { position: static; } .calc-qty input { width: 120px; } }

/* ---------- cookie consent (assets/consent.js, src/analytics.js) ---------- */
.consent { position: fixed; inset: auto 0 0 0; z-index: 200; padding: 16px; display: flex; justify-content: center; }
.consent[hidden], .consent-cats[hidden], .consent-actions [hidden] { display: none !important; }
.consent-panel { width: 100%; max-width: 980px; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 24px 60px -20px rgba(20, 24, 60, .35); padding: 22px 24px; display: grid; gap: 16px; }
.consent-title { font-size: 17px; font-weight: 700; margin: 0 0 6px; }
.consent-body { font-size: 14px; line-height: 1.6; color: var(--ink-soft); margin: 0; max-width: 80ch; }
.consent-body a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.consent-actions .btn { min-width: 160px; justify-content: center; }
.consent-cats { display: grid; gap: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.consent-cat { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; }
.consent-cat p { grid-column: 1 / -1; margin: 0; font-size: 13.5px; color: var(--ink-soft); }
.consent-switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; font-size: 14.5px; position: relative; }
.consent-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.consent-track { position: relative; width: 38px; height: 22px; border-radius: 999px; background: #CBD2DC; transition: background .2s; flex: none; }
.consent-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: transform .2s; }
.consent-switch input:checked + .consent-track { background: var(--primary); }
.consent-switch input:checked + .consent-track::after { transform: translateX(16px); }
.consent-switch input:focus-visible + .consent-track { outline: 2px solid var(--primary); outline-offset: 2px; }
.consent-switch input:disabled + .consent-track { opacity: .55; }
.consent-always { font-size: 12.5px; color: var(--ink-soft); font-weight: 600; }
.foot-linkbtn { background: none; border: 0; padding: 0; font: inherit; color: #D5DBE6; cursor: pointer; text-align: left; }
.foot-linkbtn:hover { color: #fff; }
@media (max-width: 600px) { .consent { padding: 10px; } .consent-panel { padding: 18px; } .consent-actions .btn { flex: 1 1 100%; } }
@media print { .consent { display: none !important; } }

/* ---------- legal pages from the app's pack (src/appLegal.js) ---------- */
.legal-draft { margin: 14px 0 0; padding: 10px 14px; border-radius: 10px; background: #FFF4E5; border: 1px solid #F5D7A8; color: #7A4300; font-size: 14px; line-height: 1.5; max-width: 72ch; }
.prose code { font-size: .9em; background: var(--floor); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; overflow-wrap: anywhere; }

/* ---------- contact channels (footer, contact page) ---------- */
.foot-contact { margin-top: 14px; line-height: 1.8; }
.foot-contact a { color: #D5DBE6; }
.contact-phone { margin-top: 10px; font-weight: 600; }
.contact-phone a { color: var(--primary); }
