/* caterer.pro: the public website. Corporate and calm (CONSTITUTION C11): one accent, light and dark, real screens and photos. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/assets/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  color-scheme: light;
  --accent: #2457c5; --accent-2: #3b82f6; --accent-ink: #fff; --accent-soft: #eaf0fd;
  --bg: #ffffff; --bg-2: #f5f7fb; --surface: #ffffff; --text: #0f172a; --muted: #536079; --line: #e3e8f0;
  --night: #0b1530; --night-2: #111d3d; --night-text: #e8edf8; --night-muted: #a8b4cf;
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 8px 24px -8px rgba(15, 23, 42, .12);
  --shadow-lg: 0 2px 4px rgba(15, 23, 42, .04), 0 24px 60px -20px rgba(15, 23, 42, .28);
  --r: 14px; --r-lg: 22px;
  --wrap: 1200px; --gutter: clamp(16px, 4vw, 40px);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --accent: #6f9bff; --accent-2: #8fb3ff; --accent-ink: #081022; --accent-soft: #17244a;
    --bg: #0a1022; --bg-2: #0e1630; --surface: #121b36; --text: #e8edf8; --muted: #a3afc8; --line: #22305a;
    --night: #060b1a; --night-2: #0c1430;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px -8px rgba(0, 0, 0, .5);
    --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, .7);
  }
}
@view-transition { navigation: auto; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01"; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.025em; font-weight: 680; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 4.6vw, 4.1rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.6rem); }
h3 { font-size: 1.12rem; letter-spacing: -0.01em; font-weight: 640; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 3px; border-radius: 6px; }
.icon { width: 20px; height: 20px; flex: none; }
.eyebrow { font-size: .82rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.22rem); color: var(--muted); max-width: 680px; margin-top: 18px; }
.rounded img { border-radius: var(--r-lg); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: .98rem; text-decoration: none; border: 1px solid transparent; transition: transform .15s ease, background .15s ease, box-shadow .15s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 22px -8px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, #000); }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .06); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .14); }
.btn-light { background: #fff; color: #0b1530; }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: .9rem; }
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 1.04rem; }
.btn .icon { width: 18px; height: 18px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; margin-top: 24px; }
.link .icon { width: 18px; transition: transform .15s; }
.link:hover .icon { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-head { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, background .2s; }
.site-head.scrolled { border-bottom-color: var(--line); }
.head-row { display: flex; align-items: center; gap: 28px; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.12rem; letter-spacing: -0.02em; color: var(--text); text-decoration: none; }
.logo b { color: var(--accent); font-weight: 700; }
.logo-mark { width: 32px; height: 32px; color: var(--accent); }
.nav { display: flex; gap: 4px; margin-left: 12px; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 520; font-size: .95rem; padding: 8px 12px; border-radius: 999px; transition: color .15s, background .15s; }
.nav a:hover, .nav a[aria-current] { color: var(--text); background: var(--bg-2); }
.head-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.lang { font-weight: 650; font-size: .85rem; letter-spacing: .04em; color: var(--muted); text-decoration: none; padding: 8px 10px; border-radius: 8px; }
.lang:hover { color: var(--text); background: var(--bg-2); }
.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); position: relative; cursor: pointer; }
.menu-btn span:first-child, .menu-btn span:first-child::before, .menu-btn span:first-child::after { position: absolute; left: 12px; width: 18px; height: 2px; background: var(--text); border-radius: 2px; content: ""; transition: transform .2s, opacity .2s; }
.menu-btn span:first-child { top: 21px; }
.menu-btn span:first-child::before { left: 0; top: -6px; }
.menu-btn span:first-child::after { left: 0; top: 6px; }
.menu-btn[aria-expanded="true"] span:first-child { background: transparent; }
.menu-btn[aria-expanded="true"] span:first-child::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:first-child::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; color: #fff; min-height: min(92vh, 900px); display: flex; flex-direction: column; justify-content: flex-end; padding: 140px 0 40px; margin-top: -72px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; transform: scale(1.04); animation: hero-in 1.6s cubic-bezier(.2, .7, .2, 1) both; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, rgba(6, 11, 28, .92) 0%, rgba(6, 11, 28, .78) 38%, rgba(6, 11, 28, .25) 75%, rgba(6, 11, 28, .1) 100%),
  linear-gradient(0deg, rgba(6, 11, 28, .85) 0%, rgba(6, 11, 28, 0) 45%); }
.hero-inner { max-width: var(--wrap); }
.hero h1 { max-width: 15ch; font-size: clamp(2.3rem, 5.2vw, 4.6rem); }
.hero .eyebrow { color: #9cc0ff; }
.hero .lead { color: rgba(232, 237, 248, .86); max-width: 600px; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 64px; border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--r-lg); background: rgba(10, 18, 42, .45); backdrop-filter: blur(14px); overflow: hidden; }
.facts li { padding: 22px 24px; display: flex; flex-direction: column; gap: 4px; }
.facts li + li { border-left: 1px solid rgba(255, 255, 255, .12); }
.facts b { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em; }
.facts span { color: rgba(232, 237, 248, .72); font-size: .92rem; line-height: 1.35; }
@keyframes hero-in { from { transform: scale(1.12); filter: saturate(.8); } }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 9vw, 128px) 0; }
.section > .wrap > h2, .section > .wrap > .eyebrow + h2 { max-width: 22ch; }
.tint { background: var(--bg-2); }
.dark { background: radial-gradient(1200px 600px at 85% -10%, #1a3a8a55, transparent 60%), var(--night); color: var(--night-text); }
.dark .lead { color: var(--night-muted); }
.dark .eyebrow { color: #8fb3ff; }
.dark .link { color: #9cc0ff; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.ticks { display: grid; gap: 12px; margin-top: 28px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks .icon { color: var(--accent); margin-top: 3px; }
.dark .ticks .icon { color: #8fb3ff; }
.ticks.cols { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

/* The day's flow: a row of cards that scrolls sideways. */
.steps { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 320px); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 48px max(var(--gutter), calc((100vw - var(--wrap)) / 2)) 24px; scrollbar-width: thin; }
.step { scroll-snap-align: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.step img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.step > div { padding: 20px 22px 24px; }
.step-n { font-size: .8rem; font-weight: 700; color: var(--accent); letter-spacing: .08em; }
.step h3 { margin: 6px 0 8px; font-size: 1.25rem; }
.step p { color: var(--muted); font-size: .96rem; }

/* Modules */
.mods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 48px; }
.mod-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease, border-color .2s; overflow: hidden; }
.mod-card::after { content: ""; position: absolute; inset: auto -30% -60% auto; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 16%, transparent), transparent); opacity: 0; transition: opacity .3s; pointer-events: none; }
.mod-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.mod-card:hover::after { opacity: 1; }
.mod-wide { grid-column: span 2; }
.mod-icon { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.mod-card h3 { font-size: 1.2rem; margin-top: 8px; }
.mod-card p { color: var(--muted); font-size: .97rem; }
.mod-wide p { font-size: 1.08rem; max-width: 36ch; }
.more { margin-top: auto; padding-top: 12px; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--accent); font-size: .94rem; }
.more .icon { width: 16px; transition: transform .15s; }
.mod-card:hover .more .icon { transform: translateX(3px); }

/* Screens: tabs over a browser frame. */
.screens { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 40px 0 28px; }
.tabs button { font: inherit; font-size: .94rem; font-weight: 580; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer; transition: all .15s; }
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.js .tab-panel[data-hidden] { display: none; }
.tab-panel + .tab-panel { margin-top: 28px; }
.js .tab-panel + .tab-panel { margin-top: 0; }
.frame { margin: 0; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); overflow: hidden; }
.frame-bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.frame-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.frame-bar span { margin: 0 auto; font-size: .78rem; color: var(--muted); padding: 3px 14px; border-radius: 6px; background: var(--surface); border: 1px solid var(--line); transform: translateX(-20px); }
.frame figcaption, .phone figcaption { font-size: .9rem; color: var(--muted); padding: 14px 18px; border-top: 1px solid var(--line); }
.phone { margin: 0; width: 100%; max-width: 300px; }
.phone picture { border-radius: 38px; border: 10px solid #0d1426; overflow: hidden; box-shadow: var(--shadow-lg); background: #0d1426; aspect-ratio: 390 / 760; }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone figcaption { border: 0; text-align: center; }

/* The box section: the photo with the driver's phone over its corner. */
.box-visual { position: relative; padding-bottom: 40px; }
.box-visual .phone { position: absolute; right: -10px; bottom: -30px; width: 42%; max-width: 230px; }
.box-visual .phone picture { border-width: 7px; border-radius: 30px; }

/* Roles and trust */
.roles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; }
.role img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); margin-bottom: 14px; }
.role p { color: var(--muted); font-size: .95rem; margin-top: 6px; }
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.trust li { padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.trust .icon { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); margin-bottom: 14px; }
.trust p { color: var(--muted); font-size: .95rem; margin-top: 6px; }

/* CTA band */
.cta-band { padding: 0 0 clamp(72px, 9vw, 120px); }
.cta-inner { border-radius: 28px; padding: clamp(40px, 6vw, 72px); color: #fff; background: radial-gradient(800px 400px at 100% 0%, #3b82f6aa, transparent 60%), radial-gradient(600px 300px at 0% 100%, #1e3a8a, transparent 70%), linear-gradient(135deg, #0b1d4d, #12306f); display: grid; grid-template-columns: 1.4fr auto; align-items: center; gap: 32px; box-shadow: var(--shadow-lg); }
.cta-inner h2 { max-width: 20ch; }
.cta-inner .lead { color: rgba(232, 237, 248, .82); }

/* ---------- Inner pages ---------- */
.page-hero { padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 6vw, 72px); background: radial-gradient(900px 400px at 90% 0%, var(--accent-soft), transparent 70%); }
.page-hero h1 { font-size: clamp(2.1rem, 4.2vw, 3.6rem); }
.hero-photo img { aspect-ratio: 4 / 3; object-fit: cover; box-shadow: var(--shadow-lg); }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.module-body { display: grid; grid-template-columns: 220px 1fr; gap: 56px; padding: 48px 0 96px; }
.toc { position: sticky; top: 100px; align-self: start; font-size: .92rem; }
.toc p { font-weight: 650; text-transform: uppercase; letter-spacing: .1em; font-size: .75rem; color: var(--muted); margin-bottom: 12px; }
.toc ol { display: grid; gap: 4px; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 6px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; }
.toc a:hover, .toc a.on { color: var(--text); border-left-color: var(--accent); }
.group + .group, .shot-row + .group, .photo-band + .group { margin-top: 72px; }
.group h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: 28px; }
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.feature { display: flex; gap: 14px; padding: 22px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); transition: border-color .2s, box-shadow .2s; }
.feature:hover { border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); box-shadow: var(--shadow); }
.feature > .icon { width: 30px; height: 30px; padding: 6px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); }
.feature p { color: var(--muted); font-size: .95rem; margin-top: 4px; }
.badge { display: inline-block; vertical-align: 2px; margin-left: 6px; font-size: .7rem; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: color-mix(in srgb, #f59e0b 18%, transparent); color: #b45309; }
@media (prefers-color-scheme: dark) { .badge { color: #fbbf24; } }
.shot-row { margin-top: 56px; }
.photo-band { margin-top: 56px; }
.photo-band img { aspect-ratio: 21 / 9; object-fit: cover; }
.phone-row { margin-top: 56px; display: flex; justify-content: center; }
.note { margin-top: 48px; padding: 18px 20px; border-radius: var(--r); background: var(--bg-2); color: var(--muted); font-size: .92rem; border-left: 3px solid var(--accent); }
.next-mod { margin-top: 64px; display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 26px 30px; border-radius: var(--r-lg); border: 1px solid var(--line); text-decoration: none; color: var(--text); background: var(--surface); transition: box-shadow .2s, transform .2s; }
.next-mod span { font-size: .85rem; color: var(--muted); grid-column: 1; }
.next-mod b { font-size: 1.35rem; grid-column: 1; letter-spacing: -0.02em; }
.next-mod .icon { grid-column: 2; grid-row: 1 / 3; width: 28px; height: 28px; color: var(--accent); }
.next-mod:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.parts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.part img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-lg); margin-bottom: 20px; }
.part h2 { font-size: 1.5rem; margin: 6px 0 10px; }
.part p { color: var(--muted); }
.big-icon { width: 56px; height: 56px; color: #8fb3ff; margin: 0 auto 20px; }
.trust.four { grid-template-columns: repeat(4, 1fr); }
.role-rows { display: grid; gap: 40px; }
.role-row { display: grid; grid-template-columns: 420px 1fr; gap: 48px; align-items: center; }
.role-row:nth-child(even) { grid-template-columns: 1fr 420px; }
.role-row:nth-child(even) > picture { order: 2; }
.role-row img { aspect-ratio: 16 / 10; object-fit: cover; }
.role-row h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.role-row p { color: var(--muted); font-size: 1.08rem; margin-top: 10px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.plan { padding: 34px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px; }
.plan:nth-child(2) { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); box-shadow: var(--shadow-lg); }
.plan h2 { font-size: 1.6rem; }
.plan p { color: var(--muted); flex: 1; }
.plan .btn { align-self: flex-start; }
.included { margin-top: 56px; padding: 40px; border-radius: var(--r-lg); background: var(--bg-2); }
.included h2 { font-size: 1.5rem; }
.quote { margin-top: 32px; color: var(--muted); text-align: center; }
.mail-big { margin-top: 32px; }
.tips { margin-top: 44px; }
.tips h2 { font-size: 1.15rem; }
.prose h1 { margin-bottom: 18px; }
.prose h2 { font-size: 1.3rem; margin: 36px 0 10px; }
.prose p { color: var(--muted); }
.draft { padding: 12px 16px; border-radius: 10px; background: color-mix(in srgb, #f59e0b 14%, transparent); color: inherit !important; }

/* ---------- Footer ---------- */
.site-foot { background: var(--night); color: var(--night-muted); padding: 72px 0 32px; font-size: .95rem; }
.site-foot .logo { color: #fff; }
.site-foot .logo b { color: #8fb3ff; }
.site-foot .logo-mark { color: #3b6fe0; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 48px; }
.foot-brand p { margin: 16px 0; max-width: 34ch; }
.foot-mail { display: inline-flex; gap: 10px; align-items: center; color: #fff; text-decoration: none; font-weight: 600; }
.site-foot h2 { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: #fff; margin-bottom: 16px; }
.site-foot ul { display: grid; gap: 8px; }
.site-foot a { color: var(--night-muted); text-decoration: none; }
.site-foot a:hover { color: #fff; }
.foot-notes { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); display: grid; gap: 8px; font-size: .84rem; color: #7f8bab; }

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bg img { animation: none; transform: none; }
  @view-transition { navigation: none; }
}

/* ---------- Narrow screens ---------- */
@media (max-width: 1080px) {
  .mods { grid-template-columns: repeat(2, 1fr); }
  .roles, .trust, .trust.four { grid-template-columns: repeat(2, 1fr); }
  .module-body { grid-template-columns: 1fr; gap: 0; }
  .toc { display: none; }
}
@media (max-width: 900px) {
  .menu-btn { display: block; }
  .nav { position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 0; margin: 0; padding: 12px var(--gutter) 24px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .2s; }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 14px 4px; font-size: 1.05rem; border-radius: 0; border-bottom: 1px solid var(--line); }
  .head-actions .btn { display: none; }
  .split, .cta-inner, .role-row, .role-row:nth-child(even) { grid-template-columns: 1fr; }
  .role-row:nth-child(even) > picture { order: 0; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts li:nth-child(3) { border-left: 0; }
  .facts li:nth-child(n + 3) { border-top: 1px solid rgba(255, 255, 255, .12); }
  .parts, .plans { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .box-visual .phone { right: 0; }
  .hero { min-height: 0; padding-top: 160px; }
  .hero::before { background: linear-gradient(0deg, rgba(6, 11, 28, .95) 0%, rgba(6, 11, 28, .7) 60%, rgba(6, 11, 28, .45) 100%); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .mods, .roles, .trust, .trust.four { grid-template-columns: 1fr; }
  .mod-wide { grid-column: auto; }
  .facts b { font-size: 1.25rem; }
  .facts li { padding: 16px; }
  .btn-lg { width: 100%; }
  .foot-grid { grid-template-columns: 1fr; }
  .photo-band img { aspect-ratio: 4 / 3; }
}
