:root {
    --navy: #1a1a2e;
    --blue: #0066cc;
    --blue-soft: #eaf1ff;
    --ink: #1a1917;
    --muted: #6b6862;
    --line: #e7e3da;
    --bg: #ffffff;
    --bg-warm: #faf8f4;
    --ambient: #e2017d;
    --template: #0311ed;
    --backstop: #c62828;
    --teal: #2d7d6f;
    --radius: 14px;
    --shadow: 0 4px 18px rgba(11, 42, 91, 0.10);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }

/* Mode words */
.ambient { color: var(--ambient); font-weight: 700; }
.template { color: var(--template); font-weight: 700; }
.backstop { color: var(--backstop); font-weight: 700; }

/* Navigation */
.nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font-weight: 700; font-size: 1.35rem; letter-spacing: -0.01em; }
.brand img { height: 34px; width: auto; }
.brand .brand-logo { height: 30px; width: 150px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; list-style: none; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 0.95rem; font-weight: 500; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { margin-left: 4px; }

.btn {
    display: inline-block; padding: 12px 24px; border-radius: 10px;
    font: inherit; font-weight: 600; font-size: 0.98rem; text-decoration: none;
    border: 2px solid transparent; cursor: pointer; transition: background 0.15s, border-color 0.15s;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #004d99; }
.btn-secondary { background: #fff; color: var(--navy); border-color: var(--navy); }
.btn-secondary:hover { background: var(--blue-soft); }
.btn-small { padding: 8px 16px; font-size: 0.9rem; }

/* Sections */
section { padding: 96px 0; }
.band-warm { background: var(--bg-warm); }
.eyebrow { text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.78rem; font-weight: 700; color: var(--muted); margin-bottom: 14px; }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.15; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-bottom: 14px; }
h3 { font-size: 1.3rem; margin-bottom: 8px; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 62ch; margin-bottom: 44px; }
.center { text-align: center; }
.lede.center { margin-left: auto; margin-right: auto; }

/* Hero */
.hero {
    padding: 140px 0 120px;
    min-height: 640px;
    background:
        linear-gradient(100deg, rgba(248, 249, 252, 0.96) 0%, rgba(255, 255, 255, 0.80) 45%, rgba(255, 255, 255, 0.30) 100%),
        url('../img/booth.png') no-repeat right center / cover;
}
.product-mark { display: flex; align-items: center; gap: 20px; margin-bottom: 26px; }
.product-mark img { height: 90px; width: auto; margin-right: -40px; transform: translateY(-22px); }
.product-mark span { font-size: 3.5rem; font-weight: 700; color: #0066cc; }
.foot-product { display: flex; align-items: center; gap: 10px; }
.foot-product img { height: 24px; width: auto; }
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 3.9rem); max-width: 16ch; margin-bottom: 22px; }
.hero p { font-size: 1.22rem; color: #3b3a36; max-width: 54ch; margin-bottom: 34px; }
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }

/* Figures */
.figure-card {
    background: #fff; border-radius: 18px; padding: 18px;
    box-shadow: var(--shadow); border: 1px solid var(--line);
}
.figure-card img { width: 100%; border-radius: 10px; }

.text-panel { margin-top: 28px; padding: 36px 40px; }
.text-panel h3 { font-size: 1.5rem; margin-bottom: 26px; max-width: 30ch; }
.howto { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.howto > div { border-top: 3px solid var(--blue); padding-top: 14px; }
.howto > .by-ambient { border-top-color: #a8015e; }
.howto > .by-template { border-top-color: var(--template); }
.howto.visit h4 { font-size: 1.12rem; }
.howto h4 { font-size: 1.02rem; margin-bottom: 8px; }
.howto p { font-size: 0.94rem; color: var(--muted); }

/* Pipeline steps */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin-top: 44px; }
.step { border-top: 3px solid var(--blue); padding-top: 14px; }
.step .tag { font-weight: 700; color: var(--blue); font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; }
.step h4 { font-size: 1.05rem; margin: 4px 0 6px; }
.step p { font-size: 0.92rem; color: var(--muted); }
.ai-note { margin-top: 30px; font-size: 0.95rem; color: var(--muted); max-width: 70ch; }

/* Two column */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.split-wide { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }

.card { background: #fff; border-radius: 16px; padding: 30px; border: 1px solid var(--line); }
.card-ambient { background: #fff0f7; border: 0; border-top: 5px solid var(--ambient); }
#capture .ambient, #capture .card-ambient .inner strong { color: #a8015e; }
#capture .card-ambient { border-top-color: #a8015e; }
.card-template { background: #f0f4ff; border: 0; border-top: 5px solid var(--template); }
.card .sub { color: var(--muted); margin-bottom: 20px; }
.inner { background: #fff; border-radius: 10px; padding: 16px 18px; margin-bottom: 12px; font-size: 0.95rem; }
.inner:last-child { margin-bottom: 0; }
.inner strong { display: block; margin-bottom: 4px; }
.card-ambient .inner strong { color: var(--ambient); }
.card-template .inner strong { color: var(--template); }

.devices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 56px; text-align: center; }
.devices h4 { font-size: 1.05rem; margin-bottom: 4px; }
.devices p { font-size: 0.92rem; color: var(--muted); }

/* Tiers */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 28px 0 8px; }
.tier { border-radius: 14px; padding: 20px 22px; font-weight: 700; font-size: 1.1rem; }
.tier small { display: block; font-weight: 500; font-size: 0.88rem; margin-top: 4px; color: #3b3a36; }
.tier-active { background: #e8f6e5; color: #1f6b2a; }
.tier-less { background: #e6effd; color: #1e4fa3; }
.tier-rare { background: #ece8fa; color: #5a2fb5; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 52px; text-align: center; }
.stat { background: #fff; border-radius: 12px; padding: 24px 14px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); }
.stat b { display: block; font-size: 2rem; color: var(--blue); line-height: 1.1; }
.stat span { font-size: 0.88rem; color: var(--muted); }

.rules { list-style: none; margin-top: 8px; }
.rules li { border-left: 4px solid var(--blue); padding: 2px 0 2px 16px; margin-bottom: 16px; }
.rules li.red { border-color: var(--backstop); }

.callout { display: grid; grid-template-columns: 1fr 1.4fr; gap: 36px; align-items: center; background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--blue); border-radius: 14px; padding: 30px 34px; }
.callout p { color: var(--muted); }

/* Differences */
.diff { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.diff-item { display: block; text-decoration: none; color: inherit; background: var(--bg-warm); border: 1px solid var(--line); border-radius: 14px; padding: 26px; transition: box-shadow 0.15s, border-color 0.15s; }
.diff-item.wide { grid-column: 1 / -1; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chips li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 0.88rem; color: var(--navy); }
.diff-item:hover { box-shadow: var(--shadow); border-color: var(--blue); }
.diff-item .num { display: inline-flex; width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; align-items: center; justify-content: center; margin-bottom: 14px; }
.diff-item h3 { font-size: 1.15rem; }
.diff-item p { font-size: 0.94rem; color: var(--muted); }

/* Backstop */
.example { background: var(--bg-warm); border-radius: 14px; padding: 28px; font-size: 0.96rem; }
.example p { margin-bottom: 8px; }
.example .eyebrow { margin-bottom: 12px; }
.pink { background: #fef5f5; border-radius: 14px; padding: 26px 28px; margin-bottom: 18px; }
.pink h4 { color: var(--backstop); font-size: 1.1rem; margin-bottom: 8px; }
.pink p { font-size: 0.96rem; }
.btn-backstop { background: var(--backstop); color: #fff; }
.btn-backstop:hover { background: #9d1f1f; }

dialog.popup {
    border: 0; border-radius: 14px; padding: 0; margin: auto; max-width: 640px; width: calc(100% - 32px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
dialog.popup::backdrop { background: rgba(15, 23, 42, 0.55); }
.dlg-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 22px; background: var(--navy); color: #fff; font-weight: 700; letter-spacing: 0.08em; font-size: 0.85rem; }
.dlg-head.counter { background: var(--backstop); }
.dlg-head .dlg-close { background: none; border: 0; color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.dlg-note { padding: 12px 22px 0; font-size: 0.82rem; color: var(--muted); font-style: italic; }
.dlg-body { padding: 16px 22px; font-size: 0.95rem; max-height: 52vh; overflow: auto; }
.dlg-body p { margin-bottom: 12px; }
.dlg-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px 20px; flex-wrap: wrap; }

.howto > .by-alert { border-top-color: var(--backstop); }
.band-warm .callout { border-left-color: var(--backstop); }
dialog.mdm-demo { max-width: 760px; border-radius: 8px; --mp-blue: #1e40af; font-size: 12px; line-height: 1.25; color: #333; }
.mp-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid #e5e7eb; font-weight: 600; color: var(--mp-blue); text-transform: uppercase; font-size: 0.95rem; }
.mp-close { border: 0; background: transparent; font-size: 1rem; cursor: pointer; color: #6b7280; }
.mp-tabs { display: flex; gap: 2px; padding: 4px 10px 0; border-bottom: 1px solid #e5e7eb; background: #f9fafb; }
.mp-tab { padding: 4px 12px; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; border: 1px solid transparent; border-bottom: 0; border-radius: 6px 6px 0 0; background: transparent; color: #6b7280; margin-bottom: -1px; }
.mp-tab[aria-selected="true"] { background: #fff; color: var(--mp-blue); border-color: #e5e7eb; }
.mp-tab.mp-tab-alert, .mp-tab.mp-tab-alert[aria-selected="true"] { color: #dc2626; }
.mp-body { padding: 4px 8px 10px; max-height: 56vh; overflow-y: auto; }
.mp-heading { padding: 8px 6px 2px; font-size: 17px; font-weight: 600; color: var(--mp-blue); }
.mp-instr { padding: 0 6px; font-size: 12px; color: #6b7280; line-height: 1.4; }
.mp-instr-strong { font-size: 14px; font-weight: 600; }
.mp-add { text-align: right; font-size: 11px; color: #9ca3af; padding: 6px 8px; }
.mp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; align-items: start; }
.mp-dx { margin: 0 0 4px; padding-top: 3px; border-top: 1px solid #e5e7eb; }
.mp-item { display: inline-block; padding: 1px 6px; border: 2px solid transparent; border-radius: 12px; margin-right: 1px; line-height: 1.2; }
.mp-item.circled { border-color: var(--mp-blue); background: rgba(30, 64, 175, 0.12); }
.mp-dx-name { font-weight: 700; color: var(--mp-blue); font-size: 15px; text-transform: uppercase; }
.mp-dx-name.struck { background-image: linear-gradient(45deg, transparent calc(50% - 1px), var(--mp-blue) calc(50% - 1px), var(--mp-blue) calc(50% + 1px), transparent calc(50% + 1px)); background-repeat: no-repeat; background-position: 2ch 0; background-size: 2ch 100%; }
.mp-verdicts { display: flex; flex-wrap: wrap; gap: 0 2px; }
.mp-verdicts .mp-item { color: #6b7280; font-weight: 600; letter-spacing: 0.03em; }
.mp-verdicts .mp-item.circled { color: var(--mp-blue); }
.mp-evidence { display: flex; align-items: flex-start; gap: 0 4px; margin-top: 4px; }
.mp-evidence + .mp-evidence { margin-top: 8px; }
.mp-col-label { padding-left: 6px; flex: 0 0 64px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--mp-blue); padding-top: 1px; }
.mp-evidence ul { flex: 1 1 0; min-width: 0; margin: 0; padding: 0 0 0 16px; list-style: disc outside; }
.mp-text { padding: 12px 14px; font-size: 13px; line-height: 1.45; }
.mp-text p { margin: 0 0 8px; }
.mp-suggest-head { margin-top: 12px; font-weight: 600; }
.mp-suggest { margin: 4px 0 0; padding-left: 20px; }
.mp-answer { margin-top: 12px; border: 1px solid #d1d5db; border-radius: 4px; padding: 8px; min-height: 76px; color: #9ca3af; }
.mp-disclaimer { font-size: 12px; font-style: italic; color: #6b7280; margin-bottom: 3px; }
.mp-alert-notice { margin: 0 0 10px; font-size: 13px; font-weight: 600; color: #dc2626; }
.mp-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 14px; border-top: 1px solid #e5e7eb; background: #f9fafb; }
.mp-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.mp-btn { padding: 6px 14px; font: inherit; font-size: 0.85rem; font-weight: 600; border-radius: 5px; cursor: pointer; background: #fff; color: var(--mp-blue); border: 1px solid rgba(30, 64, 175, 0.35); }
.mp-btn-done { background: var(--mp-blue); color: #fff; border-color: var(--mp-blue); }
.mp-btn[disabled] { opacity: 0.6; cursor: default; }
.mp-accept { display: flex; align-items: center; gap: 6px; font-size: 0.95rem; }
.dlg-demo-note { padding: 6px 14px 10px; font-size: 0.72rem; color: #6b7280; text-align: right; background: #f9fafb; }
@media (max-width: 640px) { .mp-grid { grid-template-columns: 1fr; } }
.btn[disabled] { opacity: 0.55; cursor: default; }

/* Document */
.doc-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.stack { display: grid; gap: 16px; align-content: start; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.panel-head { background: var(--bg-warm); padding: 10px 16px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); }
.panel-body { padding: 16px; font-size: 0.93rem; }
.panel-body p { margin-bottom: 10px; }
.draw { display: grid; grid-template-columns: 1fr 1.5fr; gap: 48px; align-items: center; background: var(--bg-warm); border-radius: 14px; padding: 44px 40px; }
.band-warm .draw { background: #fff; border: 1px solid var(--line); }
.draw img { max-width: 260px; margin: 0 auto; border-radius: 12px; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08); background: #fff; }

/* Coding */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.plain { background: #fff; border-radius: 12px; padding: 22px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06); border: 1px solid #efece5; }
.plain strong { display: block; color: var(--navy); margin-bottom: 6px; }
.plain p { font-size: 0.93rem; color: var(--muted); }

/* Why */
.big { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; text-align: center; margin-top: 12px; }
.big b { display: block; font-size: 3.6rem; line-height: 1; color: var(--ink); }
.big b.red { color: var(--backstop); }
.big b.teal { color: var(--teal); }
.big span { display: block; margin-top: 10px; font-size: 0.95rem; color: var(--muted); }
.cite { text-align: center; font-size: 0.84rem; font-style: italic; color: var(--muted); margin-top: 20px; }

/* Trial */
.tier-card { background: var(--bg-warm); border: 1px solid #efece5; border-radius: 14px; padding: 30px 24px; text-align: center; }
.tier-card p { color: var(--muted); font-size: 0.93rem; margin-bottom: 20px; }

/* Footer */
footer { background: var(--bg-warm); color: var(--muted); border-top: 1px solid var(--line); padding: 44px 0; font-size: 0.92rem; }
footer .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }


@media (max-width: 900px) {
    section { padding: 68px 0; }
    .nav-links { display: none; }
    .nav-cta { margin-left: auto; }
    .steps { grid-template-columns: 1fr 1fr; }
    .howto, .diff, .callout, .split, .split-wide, .doc-pair, .draw, .grid3, .grid2, .grid4, .big, .devices, .tiers { grid-template-columns: 1fr; }
    .stats { grid-template-columns: 1fr 1fr; }
    .draw { padding: 28px 22px; gap: 28px; }
}

@media (max-width: 520px) {
    .steps { grid-template-columns: 1fr; }
    .container { padding: 0 16px; }
}

/* ===== Frame in the live site's look: sticky navbar and tab bar, centred titles, dark footer ===== */
body { zoom: 0.9; }
.site-top { position: sticky; top: 0; z-index: 50; background: #fff; }
.navbar { border-bottom: 1px solid #e1e5eb; padding: 14px 0; }
.navbar-inner { display: flex; align-items: center; justify-content: space-between; }
.tabs-nav { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 2px; padding: 4px 16px 0; background: #fff; border-bottom: 1px solid #efece5; box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04); }
.tab-button { background: transparent; border: 0; padding: 12px 10px; font: inherit; font-size: 0.94rem; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; transition: color 0.18s ease, border-color 0.18s ease; }
.tab-button:hover { color: var(--ink); }
.tab-button.active { color: var(--ink); border-bottom-color: #0066cc; }
.tab-arrows { display: inline-flex; gap: 6px; margin-left: 8px; }
.tab-arrow { background: transparent; border: 2px solid var(--muted); border-radius: 6px; padding: 2px 12px; font: inherit; font-size: 1.1rem; font-weight: 900; line-height: 1; color: var(--ink); cursor: pointer; }
.tab-arrow:disabled { opacity: 0.3; cursor: not-allowed; }
[data-page] { display: none; }
[data-page].active { display: block; }
section > .container > .eyebrow, section > .container > h2, section > .container > .lede { text-align: center; margin-left: auto; margin-right: auto; }
section > .container > h2 { font-size: 2.25rem; margin-bottom: 16px; }
section > .container > .lede { font-size: 1.2rem; margin-bottom: 56px; }
.hero { text-align: center; padding: 90px 0 110px; min-height: 560px; }
.hero .product-mark, .hero .hero-buttons { justify-content: center; }
.hero p { margin-left: auto; margin-right: auto; }
.footer { background: #1a1a2e; color: #fff; padding: 56px 0 30px; border-top: 0; }
.footer .container { display: block; }
.footer-content { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.footer-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #0066cc; font-weight: 700; font-size: 1.6rem; }
.footer-brand img { height: 40px; width: auto; }
.footer-links { display: flex; gap: 32px; color: rgba(255, 255, 255, 0.8); }
.footer-links a { color: rgba(255, 255, 255, 0.8); text-decoration: none; }
.footer-bottom { padding-top: 28px; text-align: center; }
.footer-bottom p { color: rgba(255, 255, 255, 0.5); font-size: 0.9rem; }
@media (max-width: 900px) { .tab-button { padding: 10px 11px; font-size: 0.86rem; } .tab-arrows { display: none; } }

/* Demo link and its password box */
.nav-right { display: flex; align-items: center; gap: 18px; }
.demo-link { background: none; border: 0; cursor: pointer; font: inherit; font-size: 0.95rem; color: var(--muted); }
.demo-link:hover { color: var(--ink); }
dialog.demo-gate { width: min(340px, calc(100% - 32px)); padding: 26px 28px; }
dialog.demo-gate h3 { margin-bottom: 14px; }
dialog.demo-gate input { width: 100%; padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 6px; font: inherit; }
.demo-row { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.demo-wrong { color: var(--backstop); font-size: 0.9rem; margin-top: 8px; }
