/* ==========================================================================
   SpinSight Analytics public website
   Structure: 1 tokens - 2 base - 3 layout - 4 components - 5 sections - 6 responsive
   No external fonts, frameworks or images are required.
   ========================================================================== */

/* 1. Design tokens --------------------------------------------------------- */
:root {
    --navy-950: #071426;
    --navy-900: #0a1b33;
    --navy-800: #0f2a4a;
    --navy-700: #163a63;
    --navy-100: #e6ecf4;
    --teal-700: #0b7a7d;   /* 5.1:1 on white - safe for text and buttons */
    --teal-600: #0e8a8c;
    --teal-400: #3cc3c6;   /* accent on navy */
    --teal-100: #def3f3;
    --ink: #14263d;
    --ink-soft: #4a5d75;
    --line: #dbe3ee;
    --surface: #ffffff;
    --surface-alt: #f4f7fb;

    --font-sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, "Noto Sans", sans-serif;

    --radius: 14px;
    --radius-sm: 8px;
    --shadow-sm: 0 1px 2px rgba(10, 27, 51, .06), 0 2px 8px rgba(10, 27, 51, .05);
    --shadow-md: 0 8px 28px rgba(10, 27, 51, .10);

    --space-1: .25rem;
    --space-2: .5rem;
    --space-3: .75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --space-7: 3rem;
    --space-8: 5rem;

    --header-h: 72px;
    --container: 1180px;
}

/* 2. Base ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 12px);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--ink);
    background: var(--surface);
    -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 var(--space-3); color: var(--navy-900); letter-spacing: -.01em; }
h3 { font-size: 1.2rem; line-height: 1.3; }
p { margin: 0 0 var(--space-4); }
ul { margin: 0; padding: 0; list-style: none; }
a { color: var(--teal-700); text-underline-offset: 3px; }
a:hover { color: var(--navy-800); }

:focus-visible { outline: 3px solid var(--teal-400); outline-offset: 3px; border-radius: 4px; }

.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute; left: var(--space-4); top: -60px; z-index: 100;
    background: var(--navy-900); color: #fff; padding: .6rem 1rem; border-radius: var(--radius-sm);
    text-decoration: none; transition: top .15s ease;
}
.skip-link:focus { top: var(--space-3); }

/* 3. Layout ----------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--space-5); }
.container.narrow { max-width: 760px; }

.section { padding-block: var(--space-8); }
.section-alt { background: var(--surface-alt); }
.section-navy { background: linear-gradient(180deg, var(--navy-900), var(--navy-950)); color: #d6e0ee; }

.grid { display: grid; gap: var(--space-5); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.section-heading { max-width: 720px; margin-bottom: var(--space-7); }
.eyebrow {
    margin: 0 0 var(--space-3); font-size: .8125rem; font-weight: 700; letter-spacing: .12em;
    text-transform: uppercase; color: var(--teal-700);
}
.eyebrow-light { color: var(--teal-400); }
.section-title { font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem); }
.section-lead { font-size: 1.125rem; color: var(--ink-soft); margin-bottom: 0; }
.section-heading-light .section-title { color: #fff; }
.section-heading-light .section-lead { color: #b9c7da; }

/* 4. Components ------------------------------------------------------------- */
/* Header */
.site-header {
    position: sticky; top: 0; z-index: 50; height: var(--header-h);
    background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid transparent; transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 18px rgba(10, 27, 51, .06); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); }

.brand { display: inline-flex; align-items: center; gap: var(--space-3); text-decoration: none; color: var(--navy-900); }
/* The circular emblem rotates exactly like the application's login logo (clockwise, 8s per turn, linear, continuous).
   Only the symbol turns; the wordmark and subtitle are separate elements and stay still. Transform-only: no layout cost. */
.brand-mark { width: 36px; height: 36px; flex: none; animation: brand-spin 8s linear infinite; }
@keyframes brand-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
/* Wordmark follows the application: bold "SpinSight" over a small, wide-spaced "ANALYTICS". On the white header the
   application's light blues (#42A5F5 / #90CAF9) lack contrast, so the symbol's own darker blues are used instead. */
.brand-name { font-weight: 700; font-size: 1.125rem; letter-spacing: 1px; color: #1565C0; line-height: 1.05; }
.brand-product { font-size: .5rem; font-weight: 600; letter-spacing: .3em; color: #1976D2; margin-top: 2px; }
.brand-sub { font-size: .75rem; color: var(--ink-soft); letter-spacing: .02em; margin-top: 4px; }
/* Header lockup (the footer keeps the stacked lockup above): bold dark-blue "SpinSight" with a smaller teal uppercase "ANALYTICS" on the
   same baseline, and the tagline beneath. The whole lockup stays inside the 72px bar (no overflow below the white header). */
.site-header .brand-text { display: grid; grid-template-columns: auto 1fr; justify-content: start; align-items: baseline; column-gap: .5rem; }
.site-header .brand-name { color: var(--navy-800); font-weight: 800; font-size: 1.5rem; letter-spacing: 0; line-height: 1; }
.site-header .brand-product { color: var(--teal-700); font-size: .65rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; margin-top: 0; line-height: 1; }
.site-header .brand-sub { grid-column: 1 / -1; max-width: 15.5rem; font-size: .7rem; line-height: 1.2; margin-top: 4px; text-wrap: balance; }
/* Wide screens: larger emblem; the lockup (about 250px) and the nine-link navigation fill the 1180px container. */
@media (min-width: 1200px) {
    .site-header .brand-mark { width: 44px; height: 44px; }
}
/* 1100px-1199px: the inline navigation leaves room for a compact stacked lockup only, without the tagline. */
@media (min-width: 1100px) and (max-width: 1199px) {
    .site-header .brand-text { display: flex; flex-direction: column; }
    .site-header .brand-name { font-size: 1.35rem; }
    .site-header .brand-product { font-size: .6rem; margin-top: 3px; }
}
/* The header tagline needs the full 1180px container beside the inline navigation. Below 1200px it is hidden,
   as it already is on narrow screens; it is shown from 1200px upwards. */
@media (min-width: 881px) and (max-width: 1199px) {
    .site-header .brand-sub { display: none; }
}
.brand-light { color: #fff; }
.brand-light .brand-name { color: #42A5F5; }
.brand-light .brand-product { color: #90CAF9; }
.brand-light .brand-sub { color: #9fb2cb; }

.primary-nav { display: flex; align-items: center; gap: var(--space-5); }
.nav-list { display: flex; align-items: center; gap: var(--space-1); }
.nav-list a {
    display: inline-block; padding: .5rem .8rem; border-radius: var(--radius-sm);
    color: var(--navy-800); font-weight: 600; font-size: .95rem; text-decoration: none;
    transition: background-color .15s ease, color .15s ease;
}
.nav-list a:hover, .nav-list a.is-active { background: var(--navy-100); color: var(--navy-900); }

.nav-toggle {
    display: none; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line);
    border-radius: var(--radius-sm); background: #fff; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 20px; height: 2px; background: var(--navy-900); border-radius: 2px; position: relative;
    transition: transform .2s ease, background-color .2s ease;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
    padding: .75rem 1.25rem; border-radius: 10px; border: 1px solid transparent;
    font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
    transition: transform .15s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn .icon { width: 18px; height: 18px; }
.btn-lg { padding: .95rem 1.6rem; font-size: 1.0625rem; }
.btn-sm { padding: .55rem 1rem; font-size: .9rem; }
.btn-primary { background: var(--teal-700); color: #fff; }
.btn-primary:hover { background: #096568; color: #fff; box-shadow: var(--shadow-sm); }
.btn-accent { background: var(--teal-400); color: var(--navy-950); }
.btn-accent:hover { background: #5fd3d6; color: var(--navy-950); box-shadow: 0 8px 24px rgba(60, 195, 198, .25); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .6); color: #fff; }

/* Cards */
.card, .feature {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: var(--space-6); box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover, .feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #c7d4e6; }
.card h3, .feature h3 { margin-bottom: var(--space-2); }
.card p, .feature p { margin: 0; color: var(--ink-soft); font-size: 1rem; }
.feature .feature-link { margin-top: var(--space-3); font-size: .95rem; font-weight: 600; }
.feature .feature-link a { color: var(--navy-800); }

.feature-icon {
    display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px;
    margin-bottom: var(--space-4); border-radius: 12px; background: var(--teal-100); color: var(--teal-700);
}
.feature-icon .icon { width: 24px; height: 24px; }
.feature-icon-navy { background: var(--navy-100); color: var(--navy-700); }
.feature-icon-light { background: rgba(60, 195, 198, .14); color: var(--teal-400); }

.card-dark { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .12); box-shadow: none; }
.card-dark:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .24); box-shadow: none; }
.card-dark h3 { color: #fff; }
.card-dark p { color: #b9c7da; }

/* Screenshot slots */
.shots { gap: var(--space-6); }
.shot { margin: 0; }
.shot-frame {
    aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden;
    border: 1px solid #cbd5e1; background: var(--surface-alt); box-shadow: 0 1px 3px rgba(15, 23, 42, .06);
}
.shot-frame img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.shot-empty {
    display: flex; align-items: center; justify-content: center; text-align: center; padding: var(--space-5);
    border: 2px dashed #b8c6da; background:
        repeating-linear-gradient(135deg, rgba(22, 58, 99, .035) 0 12px, transparent 12px 24px), var(--surface-alt);
    box-shadow: none;
}
.shot-empty-inner { display: grid; gap: var(--space-2); justify-items: center; }
.shot-badge {
    padding: .2rem .65rem; border-radius: 999px; background: var(--navy-100); color: var(--navy-700);
    font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.shot-name { color: var(--navy-900); font-size: 1.05rem; }
.shot-hint { color: var(--ink-soft); font-size: .9rem; }
.shot-file { font-size: .78rem; color: var(--ink-soft); background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: .15rem .5rem; word-break: break-all; }
.shot-caption { display: grid; gap: 2px; padding: var(--space-3) var(--space-1) 0; font-size: .95rem; color: var(--ink-soft); }
.shot-caption strong { color: var(--navy-900); }
.shot-link { display: block; border-radius: 12px; }
.shot-link:hover .shot-frame { box-shadow: var(--shadow-md); }
.shot-link:focus-visible { outline: 3px solid var(--navy-700); outline-offset: 3px; }
.shot-zoom-hint { font-size: .85rem; color: var(--teal-700); font-weight: 600; }

/* Featured Traveller section: screenshots beside a visible qualification */
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feature-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: var(--space-6); align-items: start; }
.feature-media { display: grid; gap: var(--space-6); }
.feature-note {
    position: sticky; top: calc(var(--header-h) + var(--space-5)); background: var(--surface); border: 1px solid var(--line);
    border-left: 4px solid var(--navy-700); border-radius: var(--radius); padding: var(--space-5); box-shadow: var(--shadow-sm);
}
.feature-note h3 { font-size: 1.15rem; color: var(--navy-900); margin-bottom: var(--space-3); }
.feature-note p { color: var(--ink-soft); font-size: .98rem; }
.feature-note p:last-child { margin-bottom: 0; }
.feature-sub { margin-top: var(--space-7); padding-top: var(--space-7); border-top: 1px solid var(--line); }
.feature-single { max-width: 760px; }

/* Enlarged logo viewer: application-style lockup (login-page colours) on the website's navy branding */
.logo-dialog { padding: 0; border: 0; margin: 0; width: 100%; height: 100%; max-width: none; max-height: none; background: transparent; color: #fff; }
.logo-dialog[open] { display: grid; place-items: center; }
.logo-dialog::backdrop { background: rgba(7, 20, 38, .84); backdrop-filter: blur(3px); }
.logo-panel {
    position: relative; width: min(92vw, 560px); padding: 3.5rem clamp(1.5rem, 5vw, 3rem) clamp(2rem, 6vw, 3rem);
    border-radius: 20px; border: 1px solid rgba(255, 255, 255, .14); text-align: center;
    background: radial-gradient(520px 260px at 80% -10%, rgba(60, 195, 198, .2), transparent 60%),
                linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 60%, var(--navy-700) 100%);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
}
.logo-close { position: absolute; top: .75rem; right: .75rem; }
.logo-lockup { display: flex; flex-direction: column; align-items: center; }
.logo-large-mark { width: clamp(110px, 32vw, 170px); height: auto; animation: brand-spin 8s linear infinite; }
.logo-large-name { margin: .5em 0 0; color: #42A5F5; font-size: clamp(2.2rem, 9vw, 3.6rem); font-weight: 700; letter-spacing: 2px; line-height: 1.05; }
.logo-large-product { margin-top: .4rem; padding-left: .5em; color: #90CAF9; font-size: clamp(.65rem, 2.4vw, .95rem); letter-spacing: .5em; }
.logo-large-tagline { margin: .9rem 0 0; color: #FFD54F; font-style: italic; font-size: clamp(1rem, 3.4vw, 1.35rem); }

/* Home: positioning headline and the data-control strip */
.hero-title-long { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.2rem); }
.control-strip { background: var(--surface); border-bottom: 1px solid var(--line); }
.control-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); padding-block: var(--space-6); }
.control-copy { border-left: 4px solid var(--teal-700); padding-left: var(--space-4); }
.control-title { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem); margin-bottom: var(--space-1); }
.control-lead { margin: 0; color: var(--ink-soft); font-size: 1.05rem; }
.section-more { margin: var(--space-6) 0 0; }

/* About page */
.page-header {
    position: relative; overflow: hidden; color: #fff;
    background: radial-gradient(1000px 420px at 85% -20%, rgba(60, 195, 198, .22), transparent 60%),
                linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 60%, var(--navy-700) 100%);
}
.page-header-inner { position: relative; padding-block: clamp(2.75rem, 6vw, 4.5rem); }
.page-title { color: #fff; font-size: clamp(2rem, 1.3rem + 2.6vw, 3.2rem); letter-spacing: -.02em; margin-bottom: var(--space-3); }
.page-lead { font-size: 1.2rem; color: #c6d4e7; margin: 0 0 var(--space-5); }
.jump-links { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.jump-links a {
    padding: .45rem .9rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .3); color: #e6eef9;
    font-size: .9rem; font-weight: 600; text-decoration: none;
}
.jump-links a:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .6); color: #fff; }

.term-list { margin: 0; display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.term-row { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.6fr); gap: var(--space-5); padding: var(--space-4) var(--space-5); border-top: 1px solid var(--line); }
.term-row:first-child { border-top: 0; }
.term-row dt { font-weight: 700; color: var(--navy-900); }
.term-row dd { margin: 0; color: var(--ink-soft); }

.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.check-list li { position: relative; padding-left: 1.6rem; color: var(--ink-soft); }
.check-list li::before {
    content: ""; position: absolute; left: .15rem; top: .5em; width: .45rem; height: .8rem;
    border: solid var(--teal-700); border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-45%);
}

.feature-spotlight {
    display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--space-7); align-items: start;
    padding: clamp(1.5rem, 4vw, 3rem); border-radius: 20px; border: 1px solid var(--line); border-left: 6px solid var(--teal-700);
    background: var(--surface); box-shadow: var(--shadow-md);
}
.spotlight-note { margin: var(--space-4) 0 var(--space-5); padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm); background: var(--surface-alt); color: var(--ink-soft); font-size: .95rem; }
.spotlight-list { padding-top: var(--space-3); }
.spotlight-list li { font-size: 1.05rem; color: var(--ink); }

.capability h3 { margin-bottom: var(--space-1); }
.capability-summary { margin-bottom: var(--space-4) !important; }
.capability-note { margin-top: var(--space-4) !important; padding: var(--space-3); border-radius: var(--radius-sm); background: var(--surface-alt); font-size: .9rem !important; }
.capability-link { margin-top: var(--space-4) !important; font-weight: 600; }

.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-4); counter-reset: step; }
.flow-step {
    position: relative; counter-increment: step; padding: var(--space-5) var(--space-4) var(--space-4);
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.flow-step::before {
    content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px;
    margin-bottom: var(--space-3); border-radius: 50%; background: var(--teal-700); color: #fff; font-weight: 700;
}
.flow-step:not(:last-child)::after {
    content: "\2192"; position: absolute; right: calc(-1 * var(--space-4) + 1px); top: 50%; transform: translate(50%, -50%);
    z-index: 1; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; background: var(--navy-100); color: var(--navy-700); font-weight: 700;
}
.flow-step h3 { font-size: 1.02rem; margin-bottom: var(--space-2); }
.flow-step p { margin: 0; color: var(--ink-soft); font-size: .92rem; }
.flow-note { max-width: 760px; margin: var(--space-6) 0 0; color: var(--ink-soft); font-size: 1.05rem; }

.control-list { list-style: none; margin: 0 0 var(--space-7); padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.control-list .card { padding: var(--space-5); }
.control-list h3, .option-card h3 { font-size: 1.05rem; }
.options-title { color: #fff; font-size: 1.35rem; margin-bottom: var(--space-4); }
.option-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.option-card { border-top: 4px solid var(--teal-400); }
.availability-note { max-width: 780px; margin: var(--space-6) 0 0; color: #b9c7da; }

.governance-card { padding: var(--space-5); }
.governance-card h3 { font-size: 1.05rem; }
.audience-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.audience-grid h3 { font-size: 1.05rem; margin-bottom: var(--space-3); }

/* Daily Management Snapshot: portrait report shown at natural proportions (no padding, crop or stretch) */
.snapshot-layout { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: var(--space-7); align-items: start; }
.snapshot-media { grid-column: 1; grid-row: 1; margin: 0; }
.snapshot-text { grid-column: 2; grid-row: 1; position: sticky; top: calc(var(--header-h) + var(--space-5)); }
.snapshot-media img {
    display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid #cbd5e1;
    background: #fff; box-shadow: 0 1px 3px rgba(15, 23, 42, .06);
}
.snapshot-caption { color: var(--ink-soft); font-size: 1.02rem; margin-bottom: var(--space-4); }
.snapshot-hint { color: var(--ink-soft); font-size: .85rem; margin: var(--space-3) 0 0; }

/* Report viewer (native <dialog>): full-viewport, scrollable, zoomable. The image keeps its natural pixels and proportions. */
html.viewer-open { overflow: hidden; }
.viewer { padding: 0; border: 0; margin: 0; max-width: none; max-height: none; width: 100%; height: 100%; background: var(--navy-950); color: #fff; }
.viewer[open] { display: flex; flex-direction: column; }
.viewer::backdrop { background: rgba(7, 20, 38, .92); }
.viewer-bar {
    display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); padding: .6rem var(--space-4);
    background: var(--navy-900); border-bottom: 1px solid rgba(255, 255, 255, .14);
}
.viewer-title { margin-right: auto; font-weight: 600; font-size: .95rem; }
.viewer-controls { display: flex; align-items: center; gap: .35rem; }
.viewer-btn {
    min-width: 44px; min-height: 44px; padding: 0 .8rem; border-radius: var(--radius-sm); border: 1px solid rgba(255, 255, 255, .35);
    background: rgba(255, 255, 255, .08); color: #fff; font: inherit; font-weight: 600; cursor: pointer;
}
.viewer-btn:hover { background: rgba(255, 255, 255, .2); }
.viewer-close { background: var(--teal-700); border-color: transparent; }
.viewer-close:hover { background: #096568; }
.viewer-level { min-width: 4.5ch; text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; }
.viewer-stage {
    flex: 1; min-height: 0; overflow: auto; padding: var(--space-4); background: #14263d; overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch; touch-action: pan-x pan-y pinch-zoom;
}
.viewer-stage img { max-width: none; height: auto; margin: 0 auto; background: #fff; box-shadow: 0 8px 28px rgba(0, 0, 0, .45); }
@media (max-width: 640px) {
    .viewer-bar { padding: .5rem var(--space-3); }
    .viewer-title { flex: 1 0 100%; margin-right: 0; font-size: .85rem; }
    .viewer-controls { flex: 1; justify-content: flex-start; }
    .viewer-stage { padding: var(--space-2); }
}

/* 5. Sections --------------------------------------------------------------- */
.hero {
    position: relative; overflow: hidden; color: #fff;
    background: radial-gradient(1200px 520px at 85% -10%, rgba(60, 195, 198, .22), transparent 60%),
                linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
}
.hero-bg {
    position: absolute; inset: 0; opacity: .5; pointer-events: none;
    background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%);
}
.hero-inner {
    position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    gap: var(--space-7); align-items: center; padding-block: clamp(3.5rem, 8vw, 6.5rem);
}
.hero-title { color: #fff; font-size: clamp(2.2rem, 1.4rem + 3.4vw, 3.9rem); letter-spacing: -.02em; margin-bottom: var(--space-4); }
.hero-lead { font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem); color: #c6d4e7; max-width: 38rem; margin-bottom: var(--space-6); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-bottom: var(--space-6); }
.hero-points { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); color: #b9c9de; font-size: .95rem; }
.hero-points li { display: inline-flex; align-items: center; gap: var(--space-2); }
.hero-points .icon { width: 18px; height: 18px; color: var(--teal-400); }
.hero-visual img { width: 100%; height: auto; margin-inline: auto; }

.cta-panel {
    display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr); gap: var(--space-7); align-items: center;
    padding: clamp(2rem, 5vw, 3.5rem); border-radius: 20px; border: 1px solid var(--line);
    background: linear-gradient(135deg, var(--surface-alt), #fff);
    box-shadow: var(--shadow-md);
}
.cta-copy .section-title { margin-bottom: var(--space-3); }
.cta-action { display: grid; gap: var(--space-3); justify-items: start; }
.cta-note { margin: 0; font-size: .95rem; color: var(--ink-soft); }
.cta-pending {
    margin: 0; padding: var(--space-4) var(--space-5); border-left: 4px solid var(--teal-400);
    background: var(--teal-100); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--navy-800); font-weight: 600;
}

/* Footer */
.site-footer { background: var(--navy-950); color: #9fb2cb; padding-top: var(--space-7); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--space-7); padding-bottom: var(--space-6); }
.footer-note { margin: var(--space-4) 0 0; max-width: 30rem; font-size: .95rem; }
.footer-heading { margin: 0 0 var(--space-3); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: #fff; }
.footer-nav ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2) var(--space-5); }
.footer-nav a { color: #b9c7da; text-decoration: none; font-size: .95rem; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }
.footer-base { border-top: 1px solid rgba(255, 255, 255, .1); padding-block: var(--space-5); font-size: .875rem; }
.footer-base p { margin: 0; }

/* 6. Responsive ------------------------------------------------------------- */
@media (max-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .feature-layout { grid-template-columns: 1fr; }
    .feature-note { position: static; }
    .feature-spotlight { grid-template-columns: 1fr; gap: var(--space-5); }
    .flow { grid-template-columns: 1fr; }
    .flow-step:not(:last-child)::after {
        content: "\2193"; right: auto; left: 50%; top: auto; bottom: calc(-1 * var(--space-4) + 1px); transform: translate(-50%, 50%);
    }
    .control-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .audience-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .control-inner { flex-direction: column; align-items: flex-start; }
    .snapshot-layout { grid-template-columns: 1fr; gap: var(--space-5); }
    .snapshot-media, .snapshot-text { grid-column: auto; grid-row: auto; position: static; }
    .snapshot-media { max-width: 560px; }
    .hero-inner { grid-template-columns: 1fr; gap: var(--space-6); }
    .hero-visual { max-width: 520px; }
    .cta-panel { grid-template-columns: 1fr; gap: var(--space-5); }
}

@media (max-width: 880px) {
    .grid-2 { grid-template-columns: 1fr; }
    .term-row { grid-template-columns: 1fr; gap: var(--space-1); }
    .option-grid { grid-template-columns: 1fr; }
    .nav-toggle { display: inline-flex; }
    .primary-nav {
        position: absolute; left: 0; right: 0; top: var(--header-h); display: none; flex-direction: column; align-items: stretch;
        gap: var(--space-3); padding: var(--space-4) var(--space-5) var(--space-5);
        background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 16px 32px rgba(10, 27, 51, .12);
    }
    .primary-nav.is-open { display: flex; }
    .nav-list { flex-direction: column; align-items: stretch; }
    .nav-list a { display: block; padding: .75rem .9rem; }
    .nav-cta { align-self: stretch; text-align: center; }
    .brand-sub { display: none; }
    /* Smaller increase on narrow screens (emblem 36px -> 40px, wordmark 18px -> 20px) to avoid crowding the menu button. */
    .site-header .brand-mark { width: 40px; height: 40px; }
    .site-header .brand-name { font-size: 1.4rem; }
    .site-header .brand-product { font-size: .62rem; }
}

@media (max-width: 640px) {
    :root { --header-h: 64px; }
    body { font-size: 1rem; }
    .section { padding-block: var(--space-7); }
    .grid-3 { grid-template-columns: 1fr; }
    .control-list, .audience-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: var(--space-5); }
    .hero-actions .btn { width: 100%; }
    .cta-action .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
    .btn:hover, .card:hover, .feature:hover { transform: none; }
    .brand-mark, .logo-large-mark { animation: none !important; }
}

@media print {
    .site-header, .hero-bg, .skip-link { display: none; }
    .section { padding-block: 1.5rem; }
}

/* Display the complete two-page Daily Production Report without cropping. */
.shot-frame-full { aspect-ratio: auto; }
.shot-frame-full img { display: block; width: 100%; height: auto; object-fit: contain; }

/* Contact / Request a Demo ------------------------------------------------------- */
.btn-demo { background: #fff; color: var(--navy-900); }
.btn-demo:hover { background: var(--teal-100); color: var(--navy-900); box-shadow: 0 8px 24px rgba(255, 255, 255, .18); }
.btn-outline { background: transparent; color: var(--teal-700); border-color: var(--teal-700); }
.btn-outline:hover { background: var(--teal-100); color: var(--navy-800); }
.btn-ghost-dark { background: transparent; color: var(--teal-700); border-color: var(--teal-700); }
.cta-note a, .contact-direct a:not(.btn) { color: var(--teal-700); font-weight: 600; }

.contact-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: var(--space-7); align-items: start; }
.contact-intro .section-title { margin-bottom: var(--space-3); }
.contact-direct { margin-top: var(--space-5); }
.contact-card {
    padding: clamp(1.25rem, 4vw, 2.25rem); border-radius: 20px; border: 1px solid var(--line);
    background: #fff; box-shadow: var(--shadow-md);
}
.contact-form { display: grid; gap: var(--space-4); }
.field { display: grid; gap: var(--space-1); min-width: 0; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.field label { font-weight: 600; color: var(--ink); font-size: .95rem; }
.field .req { color: #b3261e; }
.field .opt { font-weight: 400; color: var(--ink-soft); }
.field input, .field select, .field textarea {
    width: 100%; font: inherit; color: var(--ink); background: #fff;
    padding: .7rem .85rem; border: 1px solid #8fa1b8; border-radius: var(--radius-sm);
}
.field textarea { resize: vertical; min-height: 9rem; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
    outline: 3px solid var(--teal-400); outline-offset: 1px; border-color: var(--teal-700);
}
.field input.input-validation-error, .field textarea.input-validation-error, .field select.input-validation-error { border-color: #b3261e; }
.field-error { color: #b3261e; font-size: .9rem; }
.field-error:empty { display: none; }
.form-privacy { margin: 0; font-size: .875rem; color: var(--ink-soft); }
.contact-form .btn { justify-self: start; border: 0; cursor: pointer; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: var(--space-4) var(--space-5); border-radius: var(--radius-sm); margin-bottom: var(--space-5); border-left: 4px solid; }
.form-status h2 { font-size: 1.15rem; margin: 0 0 var(--space-2); }
.form-status p, .form-status ul { margin: 0; }
.form-status ul { padding-left: 1.2rem; }
.form-status-ok { background: #e8f6ee; border-color: #1b7a43; color: #123d26; }
.form-status-error { background: #fdecea; border-color: #b3261e; color: #5c130e; }
.form-status:focus { outline: 3px solid var(--teal-400); outline-offset: 2px; }
@media (max-width: 880px) {
    .contact-layout { grid-template-columns: minmax(0, 1fr); gap: var(--space-5); }
}
@media (max-width: 560px) {
    .field-row { grid-template-columns: minmax(0, 1fr); }
    .contact-form .btn { justify-self: stretch; }
}

/* Product demonstration ---------------------------------------------------------- */
.hero-watch { margin: calc(-1 * var(--space-4)) 0 var(--space-6); }
.hero-watch a { display: inline-flex; align-items: center; gap: var(--space-2); color: #fff; font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .35); padding-bottom: 2px; }
.hero-watch a:hover { border-bottom-color: var(--teal-400); color: var(--teal-400); }
.hero-watch-icon { color: var(--teal-400); font-size: .8em; }
.hero-watch-time { color: #b9c9de; font-weight: 400; }

.demo-layout { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: var(--space-6); align-items: start; }
.demo-player { margin: 0; min-width: 0; }
.demo-video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #0f172a; border: 1px solid #cbd5e1; border-radius: 12px; box-shadow: 0 6px 20px rgba(15, 23, 42, .14), 0 1px 3px rgba(15, 23, 42, .08); }
/* Native captions: smaller, compact, semi-transparent box so report KPIs and chart labels stay visible. Only ::cue properties browsers support. */
.demo-video::cue { font-size: 58%; line-height: 1.25; color: #fff; background: rgba(8, 16, 28, .66); }
.demo-disclosure { padding: var(--space-3) var(--space-1) 0; font-size: .875rem; color: var(--ink-soft); }
@media (min-width: 1024px) {
    .site-header .nav-list a { white-space: nowrap; } /* keeps "Product Video" on one line where there is room */
}
/* "Request a Live Demonstration" is longer than the previous label; trim button padding slightly so the three hero buttons stay on one row on wide screens. */
@media (min-width: 1100px) {
    .hero-actions { gap: var(--space-2); }
    .hero-actions .btn-lg { padding-inline: .9rem; font-size: 1rem; }
}
/* With the Traveller and WPS Energy links the inline navigation (nine links plus the call-to-action) needs about 1100px.
   From 881px to 1099px the same collapsed menu used below 880px is shown; from 1100px to 1439px spacing and text size are tightened. */
@media (min-width: 881px) and (max-width: 1099px) {
    .nav-toggle { display: inline-flex; }
    .primary-nav {
        position: absolute; left: 0; right: 0; top: var(--header-h); display: none; flex-direction: column; align-items: stretch;
        gap: var(--space-3); padding: var(--space-4) var(--space-5) var(--space-5);
        background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 16px 32px rgba(10, 27, 51, .12);
    }
    .primary-nav.is-open { display: flex; }
    .nav-list { flex-direction: column; align-items: stretch; }
    .nav-list a { display: block; padding: .75rem .9rem; }
    .nav-cta { align-self: stretch; text-align: center; }
}
@media (min-width: 1100px) {
    .site-header .header-inner { gap: var(--space-4); }
    .site-header .primary-nav { gap: var(--space-4); }
    .site-header .nav-list { gap: 0; }
    .site-header .nav-list a { padding-inline: .4rem; font-size: .9rem; }
    .site-header .nav-cta { padding-inline: .8rem; white-space: nowrap; }
}
.demo-chapters { display: grid; gap: var(--space-3); margin: 0 0 var(--space-4); padding: 0; list-style: none; }
.demo-chapter {
    display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
    padding: .8rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
    background: #fff; color: var(--navy-900); font-weight: 600; text-decoration: none;
}
.demo-chapter:hover { background: var(--teal-100); border-color: var(--teal-700); }
.demo-chapter:focus-visible, .hero-watch a:focus-visible { outline: 3px solid var(--teal-400); outline-offset: 2px; }
.demo-chapter-time { color: var(--teal-700); font-variant-numeric: tabular-nums; white-space: nowrap; }
.demo-hint { margin: 0; font-size: .85rem; color: var(--ink-soft); }
@media (max-width: 1024px) {
    .demo-layout { grid-template-columns: 1fr; gap: var(--space-5); }
}
@media (max-width: 640px) {
    .hero-watch { margin-top: calc(-1 * var(--space-3)); }
    /* At phone widths 58% of the default would be about 6px, so keep the browser default size there. */
    .demo-video::cue { font-size: 100%; }
}
@media print {
    .demo-player, .hero-watch { display: none; }
}

/* Contact page: WhatsApp option */
.contact-whatsapp { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.contact-wa-number { color: var(--ink-soft); font-size: .95rem; }
.contact-wa-number strong { color: var(--navy-900); font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 560px) {
    .contact-whatsapp .btn { width: 100%; justify-content: center; }
}

/* Homepage Contact section: WhatsApp number */
.cta-note strong { color: var(--navy-900); font-variant-numeric: tabular-nums; white-space: nowrap; }
