/* MEYZER360 V7.4 — design system
   Gold #FEBE10 · Near Black #111315 · Cloud Grey #F5F6F8 · White · Deep Gold #B48100 · Inter */

:root {
  --gold: #FEBE10;
  --gold-deep: #B48100;
  --ink: #111315;
  --ink-2: #1a1c1f;
  --ink-3: #27292B;
  --cloud: #F5F6F8;
  --white: #fff;
  --text: #111315;
  --text-2: #4a4d52;
  --text-3: #6b6f75;
  --line: #e3e5e9;
  --line-dark: #2e3135;
  --radius: 10px;
  --radius-lg: 16px;
  --container: 1320px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --header-h: 104px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.65; color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.12; letter-spacing: -0.02em; font-weight: 700; }
h1 { font-size: clamp(36px, 5.2vw, 68px); }
h2 { font-size: clamp(28px, 3.4vw, 44px); }
h3 { font-size: 20px; letter-spacing: -0.01em; font-weight: 600; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--gold); color: var(--ink); padding: 8px 14px; border-radius: 6px; z-index: 1000; font-weight: 600; }
.skip-link:focus { left: 8px; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 14px; }
.on-dark .eyebrow, .eyebrow.light { color: var(--gold); }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--text-2); }
.muted { color: var(--text-3); }
.gold { color: var(--gold); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 8px; font-weight: 600; font-size: 15px; line-height: 1.2; border: 1.5px solid transparent; transition: background .2s, color .2s, border-color .2s, transform .2s; cursor: pointer; font-family: inherit; }
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #ffcb3d; }
.btn-outline { border-color: #c9ccd1; color: var(--ink); background: transparent; }
.btn-outline:hover { border-color: var(--ink); }
.btn-outline-light { border-color: #55595e; color: #fff; }
.btn-outline-light:hover { border-color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.link-arrow { font-weight: 600; color: var(--gold-deep); display: inline-flex; align-items: center; gap: 6px; }
.link-arrow::after { content: "→"; transition: transform .2s; }
a:hover .link-arrow::after, .link-arrow:hover::after { transform: translateX(3px); }
.on-dark .link-arrow { color: var(--gold); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; }
.utility-bar { background: #0b0c0d; font-size: 13px; }
.utility-inner { display: flex; justify-content: flex-end; gap: 22px; height: 34px; align-items: center; }
.utility-inner a { color: #a9adb3; }
.utility-inner a:hover { color: #fff; }
.nav-bar { background: rgba(17, 19, 21, .97); backdrop-filter: saturate(140%) blur(8px); border-bottom: 1px solid var(--ink-3); }
.nav-inner { display: flex; align-items: center; gap: 28px; height: 70px; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand-logo { display: block; height: 58px; width: auto; }
.site-footer .brand-logo { height: 64px; }
@media (max-width: 1180px) { .brand-logo { height: 46px; } }
/* Keep each menu label on one line; tighten spacing just above the tablet breakpoint (menu wrapped at 1025px). */
.nav-trigger { white-space: nowrap; }
@media (min-width: 1025px) and (max-width: 1100px) { .nav-inner { gap: 16px; } .nav-trigger { padding: 10px 6px; font-size: 13.5px; } }
.wordmark { font-weight: 700; font-size: 22px; letter-spacing: .02em; color: #fff; }
.wordmark span { color: var(--gold); }
.wordmark.small { font-size: 14px; }
.main-nav { flex: 1; }
.nav-list { list-style: none; display: flex; gap: 4px; justify-content: center; }
.nav-trigger { background: none; border: 0; color: #d8dade; font: inherit; font-size: 15px; font-weight: 500; padding: 10px 14px; display: flex; align-items: center; gap: 6px; cursor: pointer; border-radius: 6px; }
.nav-trigger:hover, .nav-item.open .nav-trigger, .nav-item.is-current .nav-trigger { color: #fff; }
.nav-item.is-current .nav-trigger { box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }
.chev { width: 12px; height: 12px; transition: transform .2s; }
.nav-item.open .chev { transform: rotate(180deg); }
.mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--ink); border-top: 1px solid var(--ink-3); border-bottom: 1px solid var(--ink-3); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s, transform .18s, visibility .18s; box-shadow: 0 30px 60px rgba(0,0,0,.35); }
.nav-item.open .mega { opacity: 1; visibility: visible; transform: none; }
.mega-inner { display: grid; grid-template-columns: 320px 1fr; gap: 40px; padding-top: 32px; padding-bottom: 36px; }
.mega-intro { display: flex; flex-direction: column; gap: 8px; padding: 24px; border-radius: var(--radius); background: var(--ink-2); border: 1px solid var(--ink-3); color: #a9adb3; font-size: 14px; }
.mega-intro strong { color: #fff; font-size: 19px; line-height: 1.25; }
.mega-intro .eyebrow { margin: 0; color: var(--gold); }
.mega-intro .link-arrow { color: var(--gold); margin-top: auto; }
.mega-links { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px; align-content: start; }
.mega-links a { display: flex; flex-direction: column; padding: 14px 16px; border-radius: 8px; transition: background .15s; }
.mega-links a:hover, .mega-links a[aria-current] { background: var(--ink-2); }
.mega-links strong { color: #fff; font-weight: 600; font-size: 15px; }
.mega-links span { color: #8d9197; font-size: 13.5px; }
.nav-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.nav-toggle { display: none; width: 42px; height: 42px; background: none; border: 1px solid var(--ink-3); border-radius: 8px; cursor: pointer; padding: 11px 10px; flex-direction: column; justify-content: space-between; }
.nav-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-utility { display: none; }

/* Sections */
.section { padding: clamp(64px, 8vw, 112px) 0; }
.section.tight { padding: clamp(40px, 5vw, 64px) 0; }
.bg-cloud { background: var(--cloud); }
.bg-ink, .on-dark { background: var(--ink); color: #fff; }
.on-dark .lead, .on-dark p { color: #b5b9bf; }
.on-dark h1, .on-dark h2, .on-dark h3 { color: #fff; }
.section-head { max-width: 780px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p:last-child { margin-bottom: 0; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.split.reverse > :first-child { order: 2; }

/* Hero */
.hero { background: var(--ink); color: #fff; padding: clamp(64px, 8vw, 120px) 0 clamp(64px, 7vw, 100px); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 80% 20%, rgba(254,190,16,.10), transparent 45%), linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: auto, 56px 56px, 56px 56px; pointer-events: none; }
.hero .container { position: relative; }
.hero h1 { color: #fff; max-width: 15ch; }
.hero .lead { color: #c8cbd0; max-width: 40ch; }
.hero p { color: #9a9ea4; max-width: 56ch; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero.hero-photo .visual-photo img { aspect-ratio: 4/3; object-fit: cover; }
.breadcrumb { font-size: 13px; color: #8d9197; margin-bottom: 18px; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { margin: 0 8px; color: #55595e; }

.service-strip { background: var(--ink-2); color: #a9adb3; border-top: 1px solid var(--ink-3); font-size: 15px; }
.service-strip .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 16px; padding-bottom: 16px; flex-wrap: wrap; }
.service-strip strong { color: #fff; font-weight: 600; }
.service-strip .links { display: flex; gap: 22px; }
.service-strip a { color: var(--gold); font-weight: 600; }

/* Cards */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; transition: border-color .2s, transform .2s, box-shadow .2s; display: flex; flex-direction: column; }
.card p { color: var(--text-2); font-size: 16px; margin-bottom: 0; }
.card h3 { margin-bottom: 10px; }
a.card:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: 0 18px 40px rgba(17,19,21,.08); }
a.card .link-arrow { margin-top: auto; padding-top: 18px; }
.bg-cloud .card { border-color: transparent; }
.on-dark .card { background: var(--ink-2); border-color: var(--line-dark); }
.on-dark .card p { color: #9a9ea4; }
.card-icon { width: 44px; height: 44px; border-radius: 10px; background: rgba(254,190,16,.14); color: var(--gold-deep); display: grid; place-items: center; font-weight: 700; font-size: 15px; margin-bottom: 20px; }
.on-dark .card-icon { color: var(--gold); }
.card .verb { color: var(--gold-deep); font-size: 26px; font-weight: 700; letter-spacing: -0.02em; display: block; margin: 2px 0 10px; }
.on-dark .card .verb { color: var(--gold); }

.checklist { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 32px; }
.checklist li { position: relative; padding: 16px 18px 16px 50px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); font-weight: 500; }
.bg-cloud .checklist li { border-color: transparent; }
.checklist li::before { content: ""; position: absolute; left: 18px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%; background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23111315' stroke-width='2'/%3E%3C/svg%3E") center/14px no-repeat; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 500; font-size: 15px; }
.bg-cloud .chip { border-color: transparent; }
.on-dark .chip { background: var(--ink-2); border-color: var(--line-dark); color: #e2e4e7; }
.center .chips, .chips.center { justify-content: center; }

.steps { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; counter-reset: step; }
.steps li { counter-increment: step; padding: 26px 22px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); font-weight: 500; position: relative; }
.bg-cloud .steps li { border-color: transparent; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; color: var(--gold-deep); font-weight: 700; font-size: 14px; letter-spacing: .1em; margin-bottom: 12px; }
.on-dark .steps li { background: var(--ink-2); border-color: var(--line-dark); color: #e2e4e7; }
.on-dark .steps li::before { color: var(--gold); }

.data-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); font-size: 16px; }
.data-table th, .data-table td { text-align: left; padding: 16px 22px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table th { background: var(--ink); color: #fff; font-weight: 600; font-size: 14px; letter-spacing: .02em; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table td:first-child { font-weight: 600; }
.badge { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 5px; background: rgba(254,190,16,.18); color: var(--gold-deep); margin-left: 8px; vertical-align: 2px; }

.statement-band { text-align: center; }
.statement-band h2 { max-width: 20ch; margin-left: auto; margin-right: auto; }
.cta-band { text-align: center; }
.cta-band h2 { max-width: 22ch; margin: 0 auto .4em; }
.cta-band p { max-width: 60ch; margin-left: auto; margin-right: auto; }
.cta-band .btn-row { justify-content: center; }
.cta-band .motto { margin-top: 40px; font-size: 13px; letter-spacing: .25em; text-transform: uppercase; color: var(--gold); }

.note { font-size: 13px; color: var(--text-3); margin-top: 18px; }
.on-dark .note { color: #7c8086; }

/* Visuals */
.visual { width: 100%; }
.vcard { border-radius: var(--radius-lg); padding: 22px; font-size: 14px; }
.vcard.dark { background: var(--ink-2); border: 1px solid var(--line-dark); color: #d8dade; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.vcard.light { background: #fff; border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(17,19,21,.08); }
/* Light panels sit inside dark heroes: reset the inherited white text (QA #5, #6). */
.vcard.light, .flow-col { color: var(--text); }
.vcard.light .svc-foot { color: var(--text-2); }
.vcard-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; font-weight: 600; font-size: 13px; }
.tag { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; border: 1px solid #44484d; color: var(--gold); }
.tag.gold { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.kpis.small { grid-template-columns: repeat(2, 1fr); margin: 14px 0; }
.kpis div { background: var(--ink); border: 1px solid var(--line-dark); border-radius: 10px; padding: 12px 14px; }
.kpis small { display: block; color: #8d9197; font-size: 12px; }
.kpis b { color: #fff; font-size: 22px; letter-spacing: -0.02em; }
.chart { width: 100%; height: auto; }
.legend { display: flex; gap: 18px; margin-top: 12px; font-size: 12px; color: #8d9197; }
.dot { display: inline-block; width: 14px; height: 3px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.dot.gold { background: var(--gold); } .dot.grey { background: #777; } .dot.dashed { background: repeating-linear-gradient(90deg, var(--gold) 0 4px, transparent 4px 7px); }
.vnote { font-size: 12px; color: #7c8086; margin: 14px 0 0; }
.chat .bubble { border-radius: 14px; padding: 14px 16px; margin-bottom: 12px; font-size: 14.5px; line-height: 1.55; }
.chat .bubble p { color: inherit; margin: 0 0 8px; }
.bubble.user { background: var(--gold); color: var(--ink); margin-left: 15%; border-bottom-right-radius: 4px; font-weight: 500; }
.bubble.ai { background: var(--ink); border: 1px solid var(--line-dark); margin-right: 8%; border-bottom-left-radius: 4px; }
.bubble.ai ol { padding-left: 18px; margin: 0 0 6px; color: #d8dade; }
.bubble .muted { color: #8d9197 !important; font-size: 13px; }
.svg-t { fill: #d8dade; font: 600 12px var(--font); }
.svg-t.small { font-size: 11px; font-weight: 500; fill: #a9adb3; }
.svg-t.strong { fill: #fff; font-size: 13px; }
.svg-t.gold { fill: var(--gold); font-size: 14px; font-weight: 700; }
.bg-cloud .svg-t, .light-svg .svg-t { fill: var(--ink); }
.net, .globe { width: 100%; height: auto; }
.pulse { animation: pulse 3s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .55; transform: scale(1.35); } }
.layers { display: grid; gap: 12px; }
.layer { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "name verb" "sub verb"; align-items: center; padding: 22px 26px; border-radius: 14px; background: var(--ink-2); border: 1px solid var(--line-dark); }
.layer-0 { margin: 0 0 0 0; border-color: var(--gold); }
.layer-1 { margin: 0 4%; }
.layer-2 { margin: 0 8%; }
.layer-name { grid-area: name; color: #fff; font-weight: 600; }
.layer-sub { grid-area: sub; color: #8d9197; font-size: 13px; }
.layer-verb { grid-area: verb; color: var(--gold); font-weight: 700; font-size: 24px; }
/* The phone only overlaps the laptop frame padding, never its content (QA #15). */
.device-pair { position: relative; padding-right: 26%; margin-bottom: 24px; }
.mod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mod { background: var(--ink); border: 1px solid var(--line-dark); border-radius: 10px; padding: 16px 12px; font-size: 12.5px; color: #d8dade; }
.mod i { display: block; width: 22px; height: 22px; border-radius: 6px; background: #2c2f33; margin-bottom: 12px; }
.mod.hi { border-color: var(--gold); } .mod.hi i { background: var(--gold); }
.phone { position: absolute; right: 0; bottom: -24px; width: 28%; aspect-ratio: 9/18; background: #0b0c0d; border: 2px solid #33363a; border-radius: 26px; padding: 26px 12px 12px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 20px 50px rgba(0,0,0,.4); }
.phone-notch { position: absolute; top: 8px; left: 50%; width: 36%; height: 8px; border-radius: 6px; background: #222; transform: translateX(-50%); }
.phone-line { height: 8px; border-radius: 4px; background: #2c2f33; }
.phone-line.w60 { width: 60%; } .phone-line.w80 { width: 80%; } .phone-line.w40 { width: 40%; } .phone-line.gold { background: var(--gold); }
.phone-kpi { background: var(--ink-2); border-radius: 10px; padding: 10px; } .phone-kpi small { display: block; font-size: 10px; color: #8d9197; } .phone-kpi b { color: #fff; font-size: 14px; }
.flow-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.flow-col { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; }
.flow-col h3 { font-size: 15px; margin-bottom: 14px; }
.flow-col.new { background: var(--ink); border-color: var(--ink); color: #e2e4e7; } .flow-col.new h3 { color: var(--gold); }
.flow-step { padding: 12px 14px; border-radius: 8px; background: var(--cloud); margin-bottom: 10px; font-size: 14px; font-weight: 500; position: relative; }
.flow-col.new .flow-step { background: var(--ink-2); color: #e2e4e7; border-left: 3px solid var(--gold); }
.flow-step:last-child { margin-bottom: 0; }
.bar-row { display: grid; grid-template-columns: 170px 1fr; gap: 12px; align-items: center; margin-bottom: 12px; font-size: 13px; }
.bar { height: 10px; background: var(--ink); border-radius: 6px; overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-deep), var(--gold)); border-radius: 6px; }
.stack { display: grid; gap: 10px; }
.stack-row { padding: 18px 22px; background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: 12px; color: #fff; font-weight: 600; display: flex; gap: 16px; align-items: center; margin-left: calc(var(--i) * 5%); }
.stack-row .num { color: var(--gold); font-size: 13px; letter-spacing: .1em; }
/* Distribution diagram (QA #7). Connectors are pseudo-elements positioned from the same grid maths as the boxes,
   so they line up at any width. 4 columns: drop from the platform to a bus spanning the column centres, a drop into
   each box, and a drop from each box into the customers bar. Narrow (2x2): a central trunk with a branch to each box. */
.dist { --dist-line: 2px solid var(--gold-deep); --dist-gap: 12px; --dist-v: 22px; text-align: center; color: #fff; container-type: inline-size; }
.dist-top, .dist-bottom { position: relative; background: var(--ink-2); border: 1px solid var(--gold); border-radius: 12px; padding: 18px; font-weight: 700; }
.dist-top small { display: block; color: #a9adb3; font-weight: 500; font-size: 13px; margin-top: 4px; }
.dist-bottom { border-color: var(--line-dark); }
.dist-row { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--dist-gap); margin: calc(var(--dist-v) * 2) 0 var(--dist-v); }
.dist-row span { position: relative; display: flex; align-items: center; justify-content: center; min-height: 56px; background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: 10px; padding: 12px 6px; font-size: 13px; font-weight: 600; line-height: 1.3; }
.dist-row::before, .dist-row span::before, .dist-row span::after, .dist-row::after { content: ""; position: absolute; pointer-events: none; }
/* platform -> bus */
.dist-row::after { left: 50%; top: calc(var(--dist-v) * -2 - 1px); height: calc(var(--dist-v) + 1px); border-left: var(--dist-line); transform: translateX(-1px); }
/* bus from first to last column centre: centre of a column = (100% - 3 gaps) / 8 */
.dist-row::before { top: calc(var(--dist-v) * -1); left: calc((100% - 3 * var(--dist-gap)) / 8); right: calc((100% - 3 * var(--dist-gap)) / 8); border-top: var(--dist-line); }
/* bus -> each box, and each box -> customers bar */
.dist-row span::before { left: 50%; top: calc(var(--dist-v) * -1 - 1px); height: var(--dist-v); border-left: var(--dist-line); transform: translateX(-1px); }
.dist-row span::after { left: 50%; bottom: calc(var(--dist-v) * -1 - 1px); height: var(--dist-v); border-left: var(--dist-line); transform: translateX(-1px); }
@container (max-width: 520px) {
  .dist-row { --dist-gap: 28px; grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; }
  /* trunk: from the platform box, down the centre gutter, into the customers bar */
  .dist-row::after { top: calc(var(--dist-v) * -2 - 1px); bottom: calc(var(--dist-v) * -1 - 1px); height: auto; }
  .dist-row::before { display: none; }
  .dist-row span::after { display: none; }
  /* branch from each box to the trunk */
  .dist-row span::before { top: 50%; height: 0; width: calc(var(--dist-gap) / 2 + 1px); border-left: 0; border-top: var(--dist-line); transform: translateY(-1px); }
  .dist-row span:nth-child(odd)::before { left: 100%; }
  .dist-row span:nth-child(even)::before { left: auto; right: 100%; }
}
.svc-list { list-style: none; display: grid; gap: 10px; margin-bottom: 18px; }
.svc-list li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--cloud); border-radius: 8px; font-weight: 500; font-size: 15px; }
.tick { width: 18px; height: 18px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }
.svc-foot { display: flex; align-items: center; gap: 12px; color: var(--text-2); font-size: 13.5px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--gold); display: grid; place-items: center; font-weight: 700; }
.statement { display: flex; flex-direction: column; font-size: clamp(40px, 6vw, 80px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.02; color: #fff; }
.photo { margin: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--ink-2); }
.photo img { width: 100%; height: 100%; aspect-ratio: 3/2; object-fit: cover; }
.photo figcaption { font-size: 12px; color: var(--text-3); padding: 10px 2px 0; background: transparent; }
.hero .photo { box-shadow: 0 30px 80px rgba(0,0,0,.4); }
.city-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.city-grid figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; }
.city-grid img { width: 100%; aspect-ratio: 3/4; object-fit: cover; transition: transform .6s; }
.city-grid figure:hover img { transform: scale(1.05); }
.city-grid figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px; background: linear-gradient(transparent, rgba(0,0,0,.75)); color: #fff; font-weight: 600; }
.photo-band { position: relative; min-height: 420px; display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.photo-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(17,19,21,.92), rgba(17,19,21,.55) 55%, rgba(17,19,21,.2)); }
.photo-band .container { position: relative; z-index: 1; padding-top: 80px; padding-bottom: 80px; }
.photo-band h2 { color: #fff; max-width: 18ch; } .photo-band p { color: #c8cbd0; max-width: 52ch; }

/* Simulator */
.sim { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 44px); }
.sim label { display: block; font-size: 14px; color: #c8cbd0; margin-bottom: 20px; }
.sim label span { float: right; color: var(--gold); font-weight: 700; }
.sim input[type=range] { width: 100%; accent-color: var(--gold); margin-top: 8px; }
.sim-out { display: grid; gap: 12px; align-content: start; }
.sim-out div { background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: 12px; padding: 18px 20px; }
.sim-out small { display: block; color: #8d9197; font-size: 13px; }
.sim-out b { font-size: 30px; letter-spacing: -0.02em; }
.sim-out .delta b { color: var(--gold); }
.sim .vnote { grid-column: 1 / -1; }

/* Forms */
.form-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 44px); box-shadow: 0 24px 60px rgba(17,19,21,.06); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; }
.field label .opt { font-weight: 400; color: var(--text-3); }
.field input, .field select, .field textarea { font: inherit; font-size: 16px; padding: 12px 14px; border: 1.5px solid #d4d7dc; border-radius: 8px; background: #fff; color: var(--text); width: 100%; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(254,190,16,.35); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-2); }
.check input { margin-top: 4px; accent-color: var(--ink); width: 16px; height: 16px; flex-shrink: 0; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 16px 18px; border-radius: 10px; margin-bottom: 22px; font-size: 15px; }
.alert-error { background: #fdecec; color: #8a1c1c; border: 1px solid #f5c2c2; }
.alert-ok { background: #fff7dc; color: #5c4300; border: 1px solid #f6dd8a; }
.contact-aside dl { margin: 0; } .contact-aside dt { font-size: 13px; color: var(--text-3); margin-top: 18px; } .contact-aside dd { margin: 2px 0 0; font-weight: 600; }

/* Legal / prose */
.prose { max-width: 780px; }
.prose h2 { font-size: 26px; margin-top: 1.8em; }
.prose ul { padding-left: 22px; margin-bottom: 1em; }
.prose li { margin-bottom: .4em; }
.draft-banner { background: #fff7dc; border: 1px solid #f6dd8a; color: #5c4300; padding: 14px 18px; border-radius: 10px; font-size: 15px; margin-bottom: 32px; }

/* Footer */
.site-footer { background: #0b0c0d; color: #a9adb3; padding: 80px 0 32px; font-size: 15px; }
.footer-top { display: grid; grid-template-columns: 300px 1fr; gap: 60px; padding-bottom: 56px; border-bottom: 1px solid #222528; }
.footer-tag { color: #fff; font-weight: 600; margin: 18px 0 4px; font-size: 17px; }
.footer-sub { margin-bottom: 22px; font-size: 14px; }
.footer-cols { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; }
.footer-col h2 { color: #fff; font-size: 14px; font-weight: 600; letter-spacing: 0; margin-bottom: 16px; }
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { font-size: 14px; } .footer-col a:hover { color: var(--gold); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-top: 28px; font-size: 13px; }
.footer-bottom p { margin: 0; }
.legal-links { list-style: none; display: flex; gap: 22px; }
.legal-links a:hover { color: #fff; }
.footer-motto { color: var(--gold); letter-spacing: .2em; text-transform: uppercase; font-size: 12px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .pulse { animation: none; }
  * { transition-duration: 0s !important; }
}

/* Responsive */
@media (max-width: 1180px) {
  .nav-trigger { padding: 10px 9px; font-size: 14px; }
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 1024px) {
  .nav-toggle { display: flex; }
  .nav-bar { backdrop-filter: none; background: var(--ink); }
  .main-nav { position: fixed; inset: var(--header-h) 0 0 0; background: var(--ink); overflow-y: auto; padding: 12px 0 40px; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s ease, visibility .2s; }
  .main-nav.open { opacity: 1; visibility: visible; pointer-events: auto; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-item { border-bottom: 1px solid var(--ink-3); }
  .nav-trigger { width: 100%; justify-content: space-between; padding: 18px 24px; font-size: 17px; }
  .nav-item.is-current .nav-trigger { box-shadow: none; color: var(--gold); }
  .mega { position: static; opacity: 1; visibility: visible; transform: none; display: none; box-shadow: none; border: 0; background: #0d0e10; }
  .nav-item.open .mega { display: block; }
  .mega-inner { grid-template-columns: 1fr; gap: 0; padding: 4px 12px 16px; }
  .mega-intro { display: none; }
  .mega-links { grid-template-columns: 1fr; }
  .mobile-utility { display: flex; flex-direction: column; padding: 20px 24px; gap: 14px; }
  .mobile-utility a { color: #c8cbd0; }
  .hero-grid, .split { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sim { grid-template-columns: 1fr; }
  .city-grid { grid-template-columns: repeat(2, 1fr); }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .utility-bar { display: none; }
  :root { --header-h: 70px; }
  .nav-actions .btn { display: none; }
  .grid-2, .grid-3, .grid-4, .checklist, .form-grid, .flow-compare { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card { padding: 24px; }
  .bar-row { grid-template-columns: 1fr; gap: 6px; }
  .service-strip .container { flex-direction: column; align-items: flex-start; }
  .data-table th, .data-table td { padding: 12px 14px; font-size: 14px; }
  .device-pair { padding-right: 0; } .phone { display: none; }
  .kpis b { font-size: 18px; }
}
.center-btns .btn-row { justify-content: center; }
.card.feature h3 { font-size: 24px; letter-spacing: -0.02em; }
.card.feature p { font-size: 17px; margin-bottom: .6em; }
.card.feature p:last-of-type { margin-bottom: 0; }

/* WhatsApp Assistance (Contact page, QA #11) */
.whatsapp-card { display: flex; gap: 14px; align-items: flex-start; margin-top: 24px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.whatsapp-card .wa-icon { flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(254,190,16,.14); color: var(--gold-deep); }
.whatsapp-card h4 { margin: 0 0 4px; font-size: 17px; }
.whatsapp-card p { margin: 0 0 14px; font-size: 15px; color: var(--text-2); }
.whatsapp-card strong { white-space: nowrap; color: var(--text); }
/* Narrow screens: text spans the full photo width, so use an even overlay instead of the left-to-right fade (QA §5). */
@media (max-width: 860px) {
  .photo-band::after { background: linear-gradient(180deg, rgba(17,19,21,.62), rgba(17,19,21,.86)); }
}
