/* GALLEY IQ website – one stylesheet, design tokens first. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/inter-latin-wght-normal.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("../fonts/inter-latin-ext-wght-normal.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; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("../fonts/manrope-latin-wght-normal.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: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("../fonts/manrope-latin-ext-wght-normal.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 {
  --midnight: #081421;
  --navy: #101D2E;
  --teal: #087F8C;
  --teal-dark: #066570;
  --aqua: #38D9C5;
  --light: #F5F7F8;
  --white: #FFFFFF;
  --ink: #182536;
  --ink-2: #475569;
  --muted: #64748B;
  --line: #E2E8F0;
  --line-strong: #CBD5E1;
  --on-dark: #C3CFDB;
  --on-dark-2: #9FB0C2;
  --on-dark-3: #7F93A8;
  --dark-line: #22364C;
  --dark-line-2: #3A4E64;
  --ok: #15803D; --ok-bg: #DCFCE7;
  --progress: #1D4ED8; --progress-bg: #DBEAFE;
  --planned: #475569; --planned-bg: #F1F5F9;
  --pending: #92400E; --pending-bg: #FEF3C7;
  --warn: #C2410C; --warn-bg: #FFEDD5;
  --crit: #B91C1C; --crit-bg: #FEE2E2;
  --radius: 6px;
  --radius-lg: 10px;
  --wrap: 1180px;
  --pad: clamp(20px, 4vw, 48px);
  --section: clamp(72px, 10vw, 128px);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Manrope", "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--white); line-height: 1.5; text-rendering: optimizeLegibility; }
img, svg, picture { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--aqua); outline-offset: 3px; }
.num { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--aqua); color: var(--midnight); padding: 10px 16px; border-radius: var(--radius); font-weight: 600; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--wrap); margin: 0 auto; }
.section { padding: var(--section) var(--pad); }
.dark { background: var(--navy); color: var(--white); }
.darker { background: var(--midnight); color: var(--white); }
.light { background: var(--light); }

/* Type */
.eyebrow { margin: 0 0 18px; font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal); }
.dark .eyebrow, .darker .eyebrow, .hero .eyebrow { color: var(--aqua); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; margin: 0; }
h2 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.08; color: var(--navy); }
.dark h2, .darker h2 { color: var(--white); }
.lead { margin: 28px 0 0; font-size: clamp(16px, 1.4vw, 18px); line-height: 1.65; color: var(--ink-2); }
.dark .lead, .darker .lead { color: var(--on-dark); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: var(--radius); font-size: 15px; font-weight: 600; border: 1px solid transparent; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.btn-primary { background: var(--aqua); color: var(--midnight); }
.btn-primary:hover { background: #5BE3D2; }
.btn-ghost { border-color: var(--dark-line-2); color: var(--white); background: transparent; }
.btn-ghost:hover { border-color: var(--aqua); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 14px; }

/* Header and navigation */
.hero { position: relative; overflow: hidden; background: var(--midnight); color: var(--white); }
.hero-media, .hero-media picture, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--midnight) 0%, rgba(8,20,33,.9) 38%, rgba(16,29,46,.5) 100%); }
.site-nav { position: relative; z-index: 3; max-width: 1280px; margin: 0 auto; padding: 22px var(--pad); display: flex; align-items: center; gap: 40px; }
.brand { display: flex; flex-direction: column; gap: 2px; }
.wordmark { font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: 0.06em; color: var(--white); }
.wordmark span { color: var(--aqua); }
.brand small { font-size: 11px; color: var(--on-dark-2); }
.nav-links { display: flex; gap: 32px; flex: 1; justify-content: center; list-style: none; margin: 0; padding: 0; font-size: 14px; font-weight: 500; }
.nav-links a { color: #D5DEE8; padding: 10px 0; }
.nav-links a:hover { color: var(--white); }
.nav-actions { display: flex; gap: 12px; align-items: center; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--dark-line-2); border-radius: var(--radius); background: none; align-items: center; justify-content: center; cursor: pointer; }
.hero-inner { position: relative; z-index: 2; max-width: 1280px; margin: 0 auto; padding: 72px var(--pad) 120px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(42px, 6vw, 72px); line-height: 1.03; letter-spacing: -0.025em; }
.hero .lead { color: var(--on-dark); max-width: 520px; font-size: clamp(16px, 1.5vw, 19px); }
.hero-ctas { display: flex; gap: 14px; margin-top: 40px; flex-wrap: wrap; }
.slogan { margin: 48px 0 0; font-size: 14px; color: var(--on-dark-2); font-style: italic; }

/* Photo placeholders (replaced by real photos at build time) */
.photo-slot { position: relative; background: linear-gradient(180deg, #13304A 0%, #0F2A42 55%, #0A1C2E 55.3%, var(--midnight) 100%); }
.photo-slot.pale { background: linear-gradient(180deg, #DDE5EB 0%, #C9D5DE 100%); }
.photo-slot > span { position: absolute; left: 24px; bottom: 20px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark-3); }
.photo-slot.pale > span { color: var(--ink-2); }
.photo-fill { position: relative; overflow: hidden; }
.photo-fill picture, .photo-fill img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* App screen frames */
.screen { background: #F4F6F8; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--dark-line); box-shadow: 0 40px 80px rgba(0,0,0,.45); color: var(--ink); }
.screen-bar { height: 30px; background: #0D1826; display: flex; align-items: center; gap: 6px; padding: 0 12px; font-size: 11px; color: var(--on-dark-3); }
.screen-bar i { width: 9px; height: 9px; border-radius: 50%; background: #2B3D52; }
.screen-bar em { margin-left: 14px; font-style: normal; }
.screen-body { display: flex; min-height: 380px; }
.screen-side { width: 150px; background: var(--navy); padding: 16px 12px; display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: #CBD5E1; }
.screen-side b { font-family: var(--display); font-weight: 800; color: var(--white); letter-spacing: .06em; margin-bottom: 14px; }
.screen-side b span { color: var(--aqua); }
.screen-side span { padding: 7px 9px; border-radius: 5px; }
.screen-side .on { background: var(--teal); color: var(--white); }
.screen-main { flex: 1; min-width: 0; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.screen-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 11px; color: var(--muted); }
.screen-head strong { font-size: 16px; color: var(--ink); }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.kpi { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; }
.kpi small { display: block; font-size: 10px; color: var(--muted); }
.kpi b { font-size: 18px; font-weight: 600; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; flex: 1; }
.panel h3 { font-family: var(--font); font-size: 12px; letter-spacing: 0; margin-bottom: 8px; }
.prow { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; font-size: 11px; padding: 6px 0; border-top: 1px solid #F1F5F9; }
.prow .num { color: var(--muted); }
figcaption { margin-top: 12px; font-size: 12px; color: var(--on-dark-3); }

/* Status badges: text + colour, never colour alone */
.badge { display: inline-block; font-size: 12px; line-height: 1.6; padding: 1px 10px; border-radius: 999px; white-space: nowrap; }
.screen .badge { font-size: 11px; padding: 0 8px; }
.b-ok { color: var(--ok); background: var(--ok-bg); }
.b-progress { color: var(--progress); background: var(--progress-bg); }
.b-planned { color: var(--planned); background: var(--planned-bg); }
.b-pending { color: var(--pending); background: var(--pending-bg); }
.b-warn { color: var(--warn); background: var(--warn-bg); }
.b-crit { color: var(--crit); background: var(--crit-bg); }

/* 02 Problem */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 80px; }
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); align-self: start; }
.compare > div { padding: 28px 28px 28px 0; }
.compare > div + div { padding: 28px 0 28px 28px; border-left: 1px solid var(--line-strong); }
.compare h3 { font-family: var(--font); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }
.compare .gi h3 { color: var(--teal); }
.compare ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; font-size: 16px; color: var(--ink-2); }
.compare .gi ul { color: var(--navy); font-weight: 500; }

/* 03 Demo */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; margin-bottom: 56px; }
.section-head h2 { max-width: 680px; }
.section-head p { margin: 0; max-width: 380px; color: var(--muted); font-size: 16px; line-height: 1.6; }
.demo { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.demo-main { padding: 36px; min-width: 0; }
.demo-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.demo-top small { font-size: 12px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.demo-top h3 { font-size: 28px; color: var(--navy); margin-top: 4px; }
.pills { display: flex; gap: 6px; flex-wrap: wrap; border: 0; padding: 0; margin: 0; }
.pill { min-height: 44px; padding: 0 16px; border-radius: var(--radius); font-size: 14px; font-weight: 600; background: var(--white); color: var(--ink); border: 1px solid var(--line-strong); cursor: pointer; }
.pill[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: var(--white); }
.table-box { overflow-x: auto; margin-top: 28px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { background: #F1F5F9; color: var(--muted); font-size: 12px; font-weight: 500; text-align: left; padding: 10px 12px; }
td { padding: 12px; border-bottom: 1px solid var(--line); }
th.r, td.r { text-align: right; }
td.name { font-weight: 500; }
td.req { font-weight: 600; }
td.stock { color: var(--muted); }
td.stock.done { color: var(--teal); font-weight: 600; }
td.stock.short { color: var(--crit); font-weight: 600; }
.note { margin: 14px 0 0; font-size: 12px; color: var(--muted); }
.demo-side { background: var(--navy); color: var(--white); padding: 36px; display: flex; flex-direction: column; gap: 22px; }
.demo-side small { font-size: 12px; color: var(--on-dark-2); letter-spacing: .08em; text-transform: uppercase; }
.demo-total { font-family: var(--display); font-size: 44px; font-weight: 700; margin-top: 6px; }
.demo-pp { font-size: 14px; color: var(--on-dark); margin-top: 4px; }
.demo-status { border-top: 1px solid var(--dark-line); padding-top: 22px; font-size: 14px; color: var(--on-dark); line-height: 1.6; min-height: 120px; }
.demo-status strong { display: block; color: var(--aqua); font-size: 16px; margin-bottom: 6px; }
.demo-side .btn { margin-top: auto; }

/* 04 Connected */
.flow { list-style: none; margin: 72px 0 0; padding: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); border-top: 1px solid #2A4058; }
.flow li { padding: 22px 16px 0; border-left: 1px solid var(--dark-line); }
.flow li:first-child { border-left: 0; padding-left: 0; }
.flow .num { font-size: 12px; color: var(--aqua); }
.flow b { display: block; margin-top: 10px; font-size: 15px; font-weight: 600; }
.flow span { display: block; margin-top: 6px; font-size: 13px; color: var(--on-dark-2); line-height: 1.45; }
.cols { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 60px; align-items: end; }
.cols > p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--on-dark); }

/* 05 Explore */
.tabs { display: flex; margin-top: 48px; border-bottom: 1px solid var(--line-strong); flex-wrap: wrap; }
.tab { background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 16px 22px; min-height: 48px; font-size: 15px; font-weight: 600; color: var(--muted); cursor: pointer; }
.tab[aria-selected="true"] { color: var(--navy); border-bottom-color: var(--teal); }
.tabpanel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 56px; margin-top: 48px; align-items: start; }
.tabpanel[hidden] { display: none; }
.tabpanel h3 { font-size: 28px; color: var(--navy); }
.tabpanel p { margin: 16px 0 0; font-size: 16px; line-height: 1.65; color: var(--ink-2); }
.tabpanel .who { margin-top: 20px; font-size: 14px; font-weight: 600; color: var(--teal); }
.app-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 24px 60px rgba(16,29,46,.12); min-width: 0; }
.app-card header { background: var(--navy); color: var(--white); padding: 14px 22px; display: flex; justify-content: space-between; font-size: 13px; }
.app-card header span:last-child { color: var(--on-dark-2); }
.app-card .table-box { margin: 0; padding: 22px; }

/* 06 Solutions */
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.duo .photo-slot, .duo .photo-fill { min-height: 560px; }
.duo-text { padding: 112px 64px; }
.duo-text h2 { font-size: clamp(32px, 4vw, 48px); }
.list2 { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; font-size: 17px; }
.list2 li { padding: 16px 0; border-top: 1px solid var(--dark-line); }
.list2 li:nth-last-child(-n+2) { border-bottom: 1px solid var(--dark-line); }

/* 07 Offline */
.offline { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 72px; align-items: center; }
.facts { list-style: none; margin: 36px 0 0; padding: 0; border-top: 1px solid var(--line); }
.facts li { display: grid; grid-template-columns: 200px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.facts b { color: var(--navy); }
.sync { background: var(--light); border-radius: var(--radius-lg); padding: 48px 40px; display: grid; gap: 28px; }
.sync-cloud { justify-self: center; background: var(--navy); color: var(--white); border-radius: 8px; padding: 18px 26px; text-align: center; min-width: 240px; }
.sync-cloud small { display: block; font-size: 13px; color: var(--on-dark-2); margin-top: 4px; }
.sync-arrows { display: flex; justify-content: space-around; color: var(--teal); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.sync-vessels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.sync-vessels div { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 18px; }
.sync-vessels b { color: var(--navy); }
.sync-vessels p { margin: 8px 0 12px; font-size: 13px; color: var(--muted); }

/* 08 ROI */
.roi { margin-top: 52px; display: grid; grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.roi form { padding: 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-content: start; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.field input, .field textarea { min-height: 48px; border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 0 14px; font-size: 17px; background: var(--white); color: var(--ink); width: 100%; }
.roi-out { background: var(--navy); color: var(--white); padding: 40px; display: flex; flex-direction: column; gap: 26px; }
.roi-out small { font-size: 13px; color: var(--on-dark-2); }
.roi-out output { display: block; font-family: var(--display); font-size: 40px; font-weight: 700; margin-top: 4px; }
.roi-out .save { color: var(--aqua); }
.roi-out p { margin: auto 0 0; font-size: 12px; line-height: 1.5; color: var(--on-dark-2); }

/* 09 Security */
.sec { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 80px; }
.sec h2 { font-size: clamp(32px, 4vw, 48px); }
.sec ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
.sec li { padding: 22px 0; border-top: 1px solid var(--dark-line); }
.sec li:nth-last-child(-n+2) { border-bottom: 1px solid var(--dark-line); }
.sec li b { display: block; font-size: 17px; }
.sec li span { display: block; margin-top: 8px; color: var(--on-dark-2); line-height: 1.55; }

/* 10 Story */
.story-text { padding: var(--section) 64px; }
.story-text > div { max-width: 540px; margin-left: auto; }
.story-text .lead + .lead { margin-top: 18px; }
.duo .photo-slot.pale, .duo .photo-fill.tall { min-height: 620px; }

/* 11 Demo request */
.request { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 80px; }
.request form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-content: start; }
.request .field { color: var(--on-dark); }
.request .field input, .request .field textarea { background: var(--midnight); border-color: #2A4058; color: var(--white); font-size: 15px; }
.request .field textarea { padding: 12px 14px; resize: vertical; min-height: 96px; }
.request .wide { grid-column: 1 / -1; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; line-height: 1.5; color: var(--on-dark-2); }
.consent input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--aqua); }
.consent a { color: var(--aqua); text-decoration: underline; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin: 0; font-size: 14px; min-height: 20px; }
.form-msg.ok { color: var(--aqua); }
.form-msg.err { color: #FCA5A5; }

/* 12 Footer */
.site-footer { background: var(--midnight); color: var(--on-dark-2); padding: 72px var(--pad) 40px; font-size: 14px; }
.foot-top { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; padding-bottom: 48px; border-bottom: 1px solid #1B2C40; }
.foot-top p { margin: 14px 0 0; line-height: 1.6; max-width: 320px; }
.foot-cols { display: flex; gap: 72px; flex-wrap: wrap; }
.foot-cols h2 { font-family: var(--font); font-size: 14px; letter-spacing: 0; color: var(--white); margin-bottom: 12px; }
.foot-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.foot-cols a, .foot-cols button { display: inline-block; padding: 6px 0; color: var(--on-dark-2); background: none; border: 0; cursor: pointer; font-size: 14px; }
.foot-cols a:hover, .foot-cols button:hover { color: var(--white); }
.foot-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 28px; font-size: 13px; }

/* Cookie consent */
.consent-bar { position: fixed; z-index: 50; left: 16px; right: 16px; bottom: 16px; max-width: 760px; margin: 0 auto; background: var(--navy); color: var(--on-dark); border: 1px solid var(--dark-line-2); border-radius: var(--radius-lg); padding: 20px 22px; display: flex; gap: 20px; align-items: center; flex-wrap: wrap; box-shadow: 0 20px 50px rgba(0,0,0,.35); font-size: 14px; line-height: 1.5; }
.consent-bar[hidden] { display: none; }
.consent-bar p { margin: 0; flex: 1 1 320px; }
.consent-bar a { color: var(--aqua); text-decoration: underline; }
.consent-bar div { display: flex; gap: 10px; }

/* Legal pages */
.legal { max-width: 760px; margin: 0 auto; padding: 80px var(--pad) 120px; }
.legal h1 { font-size: clamp(34px, 5vw, 48px); color: var(--navy); }
.legal h2 { font-size: 22px; margin-top: 40px; }
.legal p, .legal li { color: var(--ink-2); line-height: 1.7; }
.legal .todo { background: var(--pending-bg); color: var(--pending); padding: 2px 6px; border-radius: 4px; }
.simple-nav { background: var(--midnight); }

/* Subtle reveal on scroll (off when the visitor prefers reduced motion) */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Tablet */
@media (max-width: 1100px) {
  .hero-inner, .split, .offline, .request, .sec, .cols { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .flow { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 28px; }
  .flow li:nth-child(5) { border-left: 0; padding-left: 0; }
  .demo, .roi { grid-template-columns: minmax(0, 1fr); }
  .tabpanel { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .duo { grid-template-columns: minmax(0, 1fr); }
  .duo .photo-slot, .duo .photo-fill { min-height: 360px; }
  .duo-text, .story-text { padding: 72px var(--pad); }
  .story-text > div { margin-left: 0; }
  .story { display: flex; flex-direction: column-reverse; }
}

/* Phone */
@media (max-width: 760px) {
  .nav-links, .nav-actions .signin { display: none; }
  .menu-toggle { display: inline-flex; }
  .site-nav { gap: 12px; justify-content: space-between; }
  .brand small { display: none; }
  .site-nav.open .nav-links { display: flex; position: absolute; top: 88px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--navy); padding: 8px var(--pad) 20px; border-top: 1px solid var(--dark-line); }
  .site-nav.open .nav-links a { display: block; padding: 14px 0; border-bottom: 1px solid var(--dark-line); font-size: 16px; }
  .hero-inner { padding-top: 32px; padding-bottom: 64px; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .screen-side { display: none; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .compare { grid-template-columns: minmax(0, 1fr); }
  .compare > div, .compare > div + div { padding: 24px 0; border-left: 0; }
  .compare > div + div { border-top: 1px solid var(--line-strong); }
  .demo-main, .demo-side, .roi form, .roi-out { padding: 22px; }
  .demo-top h3 { font-size: 21px; }
  .demo-total, .roi-out output { font-size: 30px; }
  .flow { grid-template-columns: minmax(0, 1fr); border-top: 0; border-left: 1px solid #2A4058; margin-top: 32px; }
  .flow li, .flow li:first-child, .flow li:nth-child(5) { border-left: 0; padding: 0 0 18px 18px; }
  .roi form { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .roi form .field:last-child { grid-column: 1 / -1; }
  .list2, .sec ul, .request form, .sync-vessels { grid-template-columns: minmax(0, 1fr); }
  .list2 li:nth-last-child(2), .sec li:nth-last-child(2) { border-bottom: 0; }
  .facts li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .sync { padding: 28px 20px; }
  .section-head { margin-bottom: 28px; }
  .tab { padding: 12px 14px; font-size: 14px; }
  .consent-bar div { width: 100%; }
  .consent-bar .btn { flex: 1; }
}
.nav-links .m-only { display: none; }
@media (max-width: 760px) { .site-nav.open .nav-links .m-only { display: block; } }
.photo-fill.hero-media { position: absolute; }
.hero-media img { object-position: 42% 40%; }
.story-photo img { object-position: 50% 60%; }
.solutions-photo img { object-position: 68% 50%; }
