/* ============================================================
   Webiant — site.css
   Palette derived from the logo red (#880015).
   ============================================================ */

:root {
    /* Render native UI (scrollbars, selects, autofill) in dark. */
    color-scheme: dark;

    --ink: #0B0B0C;
    --surface: #121214;
    --surface-2: #17171A;
    --line: #26262B;
    --line-soft: #1D1D21;

    --red: #880015;
    --red-hi: #C41230;
    --red-glow: rgba(196, 18, 48, 0.28);
    --red-wash: rgba(136, 0, 21, 0.14);

    --text: #EDEBE8;
    --muted: #9B9BA4;
    --dim: #6E6E77;
    --green: #56D68C;
    --amber: #E0A32E;

    --display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
    --body: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
    --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;

    --shell: 1200px;
    --pad: clamp(1.25rem, 4vw, 2.5rem);
    --radius: 4px;
    --header-h: 68px;
}

*,
*::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;
    background: var(--ink);
    color: var(--text);
    font-family: var(--body);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

a {
    color: inherit;
}

h1,
h2,
h3,
h4 {
    font-family: var(--display);
    font-variation-settings: 'wdth' 112;
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -0.015em;
    margin: 0;
    text-wrap: balance;
}

p {
    margin: 0 0 1.1em;
}

.shell {
    width: 100%;
    max-width: var(--shell);
    margin-inline: auto;
    padding-inline: var(--pad);
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--red);
    color: #fff;
    padding: .75rem 1rem;
    z-index: 200;
}

.skip-link:focus {
    left: 0;
}

:focus-visible {
    outline: 2px solid var(--red-hi);
    outline-offset: 3px;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
    --btn-bg: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    font-family: var(--body);
    font-size: .9rem;
    font-weight: 600;
    letter-spacing: .02em;
    padding: .8rem 1.4rem;
    border: 1px solid transparent;
    border-radius: var(--radius);
    background: var(--btn-bg);
    text-decoration: none;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.btn-primary {
    --btn-bg: var(--red);
    color: #fff;
    box-shadow: 0 0 0 0 var(--red-glow);
}

.btn-primary:hover {
    --btn-bg: var(--red-hi);
    box-shadow: 0 8px 30px -10px var(--red-glow);
    transform: translateY(-1px);
}

.btn-ghost {
    color: var(--text);
    border-color: var(--line);
}

.btn-ghost:hover {
    border-color: var(--muted);
    background: var(--surface-2);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: .98rem;
}

/* ── Header ──────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(11, 11, 12, .78);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line-soft);
    transition: border-color .3s ease;
}

.header-inner {
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: inline-flex;
    align-items: stretch;
    text-decoration: none;
    height: 30px;
}

.brand-mark {
    background: var(--red);
    color: #fff;
    display: grid;
    place-items: center;
    width: 30px;
    font-family: var(--mono);
    font-size: .95rem;
    line-height: 1;
}

.brand-caret {
    transform: translateX(-1px);
}

.brand-word {
    font-family: var(--display);
    font-variation-settings: 'wdth' 118;
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: .01rem;
    padding: 0 .2rem 0 .7rem;
    display: grid;
    place-items: center;
    color: var(--text);
    transition: color .2s ease;
}

.brand:hover .brand-word {
    color: #fff;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1.9rem;
}

.site-nav a {
    text-decoration: none;
    font-size: .88rem;
    font-weight: 500;
    color: var(--muted);
    letter-spacing: .01em;
    transition: color .18s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
    color: var(--text);
}

/* the Book a demo button keeps its own styling */
.site-nav a.nav-cta.is-active {
    color: #fff;
}

.nav-cta {
    color: #fff !important;
    padding: .58rem 1.1rem;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 36px;
    background: none;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    height: 1.5px;
    width: 18px;
    margin-inline: auto;
    background: var(--text);
    transition: transform .25s ease, opacity .2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
    position: relative;
    padding: clamp(3.5rem, 9vw, 7rem) 0 0;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: -20% 40% 40% -10%;
    background: radial-gradient(closest-side, var(--red-wash), transparent 70%);
    pointer-events: none;
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
}

.eyebrow {
    font-family: var(--mono);
    font-size: .74rem;
    text-transform: uppercase;
    letter-spacing: .17em;
    color: var(--red-hi);
    margin-bottom: 1.4rem;
}

.hero h1 {
    font-size: clamp(2.6rem, 5.4vw, 4.15rem);
    margin-bottom: 1.6rem;
}

.hero h1 em {
    font-style: normal;
    color: var(--muted);
}

.lede {
    color: var(--muted);
    font-size: 1.06rem;
    max-width: 48ch;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

/* ── Console (signature) ─────────────────────────────────── */
.console {
    position: relative;
    background: #0D0D10;
    border: 1px solid var(--line);
    border-radius: 6px;
    box-shadow: 0 40px 90px -50px rgba(0, 0, 0, .95), 0 0 0 1px rgba(255, 255, 255, .02) inset;
    overflow: hidden;
}

.console-bar {
    display: flex;
    align-items: center;
    gap: .45rem;
    padding: .7rem .9rem;
    background: var(--surface-2);
    border-bottom: 1px solid var(--line);
}

.console-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--line);
}

.console-dot:first-child {
    background: var(--red);
}

.console-title {
    font-family: var(--mono);
    font-size: .7rem;
    color: var(--dim);
    margin-left: .5rem;
    letter-spacing: .04em;
}

.console-body {
    font-family: var(--mono);
    font-size: clamp(.66rem, 1.05vw, .78rem);
    line-height: 1.85;
    color: #C7C7D0;
    margin: 0;
    padding: 1.1rem 1.15rem 1.5rem;
    min-height: 340px;
    white-space: pre-wrap;
    word-break: break-word;
}

.console-body .c-prompt {
    color: var(--red-hi);
}

.console-body .c-cmd {
    color: #EDEBE8;
}

.console-body .c-time {
    color: var(--dim);
}

.console-body .c-stage {
    color: #8FB8FF;
}

.console-body .c-ok {
    color: var(--green);
}

.console-body .c-warn {
    color: var(--amber);
}

.console-body .c-done {
    color: var(--green);
    font-weight: 500;
}

.console-body .caret {
    display: inline-block;
    width: 7px;
    height: 1em;
    background: var(--red-hi);
    vertical-align: -2px;
    animation: blink 1s steps(2, start) infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.console-replay {
    position: absolute;
    right: .7rem;
    bottom: .7rem;
    font-family: var(--mono);
    font-size: .68rem;
    color: var(--dim);
    background: transparent;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: .3rem .6rem;
    cursor: pointer;
    opacity: 0;
    transition: opacity .3s ease, color .2s ease, border-color .2s ease;
}

.console-replay.is-ready {
    opacity: 1;
}

.console-replay:hover {
    color: var(--text);
    border-color: var(--muted);
}

/* ── Marquee stats ───────────────────────────────────────── */
.marquee {
    list-style: none;
    margin: clamp(3rem, 7vw, 5.5rem) 0 0;
    padding: 1.6rem 0;
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.marquee li {
    display: flex;
    flex-direction: column;
    gap: .15rem;
}

.marquee strong {
    font-family: var(--display);
    font-variation-settings: 'wdth' 112;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -.01em;
}

.marquee span {
    font-family: var(--mono);
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .13em;
    color: var(--dim);
}

/* ── Sections ────────────────────────────────────────────── */
.section {
    padding: clamp(4.5rem, 10vw, 8rem) 0;
}

.section-tight {
    padding-block: clamp(3.5rem, 8vw, 6rem);
}

.section-label {
    font-family: var(--mono);
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .18em;
    color: var(--dim);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: .7rem;
}

.section-label::before {
    content: "";
    width: 22px;
    height: 1px;
    background: var(--red-hi);
}

.section-title {
    font-size: clamp(1.85rem, 3.6vw, 2.9rem);
    max-width: 20ch;
    margin-bottom: 1.2rem;
}

.section-intro {
    color: var(--muted);
    max-width: 52ch;
}

/* ── Products ────────────────────────────────────────────── */
.product {
    border-top: 1px solid var(--line-soft);
    padding-block: clamp(3rem, 7vw, 5rem);
    margin-top: clamp(2.5rem, 6vw, 4rem);
}

.product:first-of-type {
    margin-top: clamp(2rem, 5vw, 3rem);
}

.product-alt {
    background:
        linear-gradient(180deg, rgba(136, 0, 21, .08), transparent 45%);
}

.product-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: start;
}

.product-head {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
}

.product-kicker {
    font-family: var(--mono);
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .15em;
    color: var(--red-hi);
    margin-bottom: .9rem;
}

.product-name {
    font-size: clamp(2.1rem, 4.4vw, 3.3rem);
    margin-bottom: 1.2rem;
}

.product-summary {
    color: var(--muted);
    margin-bottom: 1.8rem;
    max-width: 42ch;
}

.pipeline-label {
    font-family: var(--mono);
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .15em;
    color: var(--dim);
    margin-bottom: .9rem;
}

.pipeline {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    padding: 0;
    margin: 0 0 2.6rem;
    counter-reset: stage;
}

.pipeline li {
    display: flex;
    align-items: center;
}

.pipeline li span {
    font-family: var(--mono);
    font-size: .74rem;
    padding: .4rem .7rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    white-space: nowrap;
}

.pipeline li:not(:last-child)::after {
    content: "";
    width: 14px;
    height: 1px;
    background: var(--line);
    margin: 0 .1rem;
}

.steps {
    margin: 0 0 2.6rem;
    padding: 0;
    list-style: none;
    counter-reset: s;
    border-top: 1px solid var(--line-soft);
}

.steps li {
    counter-increment: s;
    display: flex;
    gap: 1rem;
    align-items: baseline;
    padding: .7rem 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: .95rem;
}

.steps li::before {
    content: counter(s, decimal-leading-zero);
    font-family: var(--mono);
    font-size: .7rem;
    color: var(--red-hi);
    min-width: 1.8rem;
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.6rem 2rem;
}

.feature h4 {
    font-size: 1.02rem;
    font-weight: 600;
    letter-spacing: 0;
    margin-bottom: .45rem;
    padding-top: .9rem;
    border-top: 1px solid var(--line);
}

.feature p {
    color: var(--muted);
    font-size: .93rem;
    margin: 0;
}

/* ── Timer (signature) ───────────────────────────────────── */
.timer {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 1.4rem 1.5rem 1.6rem;
    margin-bottom: 2.6rem;
}

.timer-row {
    display: grid;
    grid-template-columns: 8.5rem 1fr 6rem;
    align-items: center;
    gap: 1rem;
    margin-top: .9rem;
}

.timer-who {
    font-size: .88rem;
    color: var(--muted);
}

.timer-track {
    height: 6px;
    background: var(--line-soft);
    border-radius: 999px;
    overflow: hidden;
}

.timer-fill {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 999px;
    transition: width 1.6s cubic-bezier(.2, .7, .3, 1);
}

.timer-fill-slow {
    background: linear-gradient(90deg, var(--red), var(--red-hi));
}

.timer-fill-fast {
    background: linear-gradient(90deg, var(--red), var(--red-hi));
}

.is-visible .timer-fill-slow {
    width: 100%;
}

.is-visible .timer-fill-fast {
    width: 4.2%;
}

.timer-value {
    font-family: var(--mono);
    font-size: .92rem;
    text-align: right;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

.timer-value-hot {
    color: var(--text);
}

/* ── Cards ───────────────────────────────────────────────── */
.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--line-soft);
    border: 1px solid var(--line-soft);
    margin-top: 3rem;
}

.card {
    background: var(--ink);
    padding: 2rem 1.6rem;
    transition: background .25s ease;
}

.card:hover {
    background: var(--surface);
}

.card h3 {
    font-size: 1.08rem;
    font-weight: 600;
    letter-spacing: 0;
    margin-bottom: .7rem;
}

.card p {
    color: var(--muted);
    font-size: .93rem;
    margin: 0;
}

/* ── About ───────────────────────────────────────────────── */
.about-grid,
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: start;
}

.about-body {
    color: var(--muted);
    font-size: 1.02rem;
}

.about-body p:last-child {
    margin-bottom: 0;
}

/* ── Contact ─────────────────────────────────────────────── */
.contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--line);
}

.contact-list li {
    display: grid;
    grid-template-columns: 7rem 1fr;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
    align-items: baseline;
}

.contact-label {
    font-family: var(--mono);
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--dim);
}

.contact-list a {
    text-decoration: none;
    border-bottom: 1px solid var(--line);
    transition: border-color .2s ease, color .2s ease;
    word-break: break-word;
}

.contact-list a:hover {
    color: var(--red-hi);
    border-color: var(--red-hi);
}

/* ── Booking ─────────────────────────────────────────────── */
.section-demo {
    background:
        linear-gradient(180deg, var(--surface) 0%, var(--ink) 100%);
    border-top: 1px solid var(--line-soft);
}

.booking {
    margin-top: 2.5rem;
}

.booking-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .78fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow: hidden;
}

.cal-panel,
.slot-panel {
    background: var(--ink);
    padding: 1.5rem;
}

.cal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.2rem;
}

.cal-month {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0;
    font-variation-settings: 'wdth' 105;
}

.cal-nav {
    width: 34px;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-size: .95rem;
    transition: border-color .2s ease, color .2s ease;
}

.cal-nav:hover:not(:disabled) {
    color: var(--text);
    border-color: var(--muted);
}

.cal-nav:disabled {
    opacity: .3;
    cursor: not-allowed;
}

.cal-dow,
.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.cal-dow {
    margin-bottom: 6px;
}

.cal-dow span {
    font-family: var(--mono);
    font-size: .64rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--dim);
    text-align: center;
}

.cal-day {
    aspect-ratio: 1 / 1;
    display: grid;
    place-items: center;
    font-family: var(--mono);
    font-size: .82rem;
    background: var(--surface);
    border: 1px solid transparent;
    border-radius: var(--radius);
    color: var(--text);
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.cal-day:hover:not(:disabled) {
    border-color: var(--red-hi);
}

.cal-day:disabled {
    background: transparent;
    color: #3A3A40;
    cursor: not-allowed;
}

.cal-day.is-empty {
    background: transparent;
    border: 0;
    cursor: default;
}

.cal-day.is-selected {
    background: var(--red);
    color: #fff;
    border-color: var(--red-hi);
}

.cal-note {
    margin: 1.1rem 0 0;
    font-size: .78rem;
    color: var(--dim);
}

.slot-title {
    font-size: .95rem;
    font-weight: 600;
    letter-spacing: 0;
    margin-bottom: 1.2rem;
    color: var(--muted);
}

.slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
    gap: 6px;
    align-content: start;
}

.slot {
    font-family: var(--mono);
    font-size: .78rem;
    padding: .6rem .3rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--text);
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease;
}

.slot:hover {
    border-color: var(--red-hi);
}

.slot.is-selected {
    background: var(--red);
    border-color: var(--red-hi);
    color: #fff;
}

.slots-empty {
    font-size: .85rem;
    color: var(--dim);
}

.fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem 1.4rem;
    margin-top: 2rem;
}

.field {
    display: flex;
    flex-direction: column;
    gap: .45rem;
}

.field-wide {
    grid-column: 1 / -1;
}

.field label {
    font-family: var(--mono);
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .13em;
    color: var(--dim);
}

.field .opt {
    text-transform: none;
    letter-spacing: 0;
    color: #4E4E56;
}

.field input,
.field select,
.field textarea {
    font-family: var(--body);
    font-size: .95rem;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: .75rem .85rem;
    width: 100%;
    transition: border-color .18s ease, background .18s ease;
}

.field textarea {
    resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--red-hi);
    outline: none;
    background: var(--surface-2);
}

.field input[aria-invalid="true"] {
    border-color: var(--red-hi);
}

.hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.booking-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.2rem;
    margin-top: 2rem;
}

.booking-legal {
    margin: 0;
    font-size: .82rem;
    color: var(--dim);
    max-width: 74ch;
}

.booking-legal a {
    color: var(--muted);
}

.form-msg {
    margin: 1.2rem 0 0;
    font-size: .92rem;
    min-height: 1.4em;
}

.form-msg.is-error {
    color: #FF7A8A;
}

.form-msg.is-ok {
    color: var(--green);
}

.booking-done {
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface);
    padding: clamp(2rem, 5vw, 3rem);
    margin-top: 2.5rem;
}

.booking-done h3 {
    font-size: 1.6rem;
    margin-bottom: .8rem;
}

.booking-done p {
    color: var(--muted);
    margin: 0;
    max-width: 52ch;
}

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
    border-top: 1px solid var(--line-soft);
    padding-top: clamp(2.5rem, 6vw, 4rem);
    background: var(--surface);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
    gap: 2.5rem;
    padding-bottom: 3rem;
}

.footer-word {
    background: transparent;
    border: 0;
    padding: 0;
    display: inline-block;
    font-size: 1rem;
    color: var(--text);
}

.footer-brand p {
    color: var(--dim);
    font-size: .9rem;
    margin-top: .7rem;
    max-width: 30ch;
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.footer-nav h4 {
    font-family: var(--mono);
    font-size: .68rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--dim);
    margin-bottom: .9rem;
}

.footer-nav a {
    display: block;
    text-decoration: none;
    font-size: .9rem;
    color: var(--muted);
    padding: .22rem 0;
    transition: color .18s ease;
}

.footer-nav a:hover {
    color: var(--text);
}

.footer-base {
    border-top: 1px solid var(--line-soft);
    padding-block: 1.4rem 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .8rem;
}

.footer-base p {
    margin: 0;
    font-size: .78rem;
    color: var(--dim);
}

.footer-fine {
    max-width: 60ch;
}

/* ── Legal page ──────────────────────────────────────────── */
.legal-hero {
    padding: clamp(3rem, 7vw, 5rem) 0 2rem;
    border-bottom: 1px solid var(--line-soft);
}

.legal-body {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 4rem);
    padding-block: clamp(2.5rem, 6vw, 4rem);
    align-items: start;
}

.legal-toc {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
}

.legal-toc a {
    display: block;
    font-family: var(--mono);
    font-size: .74rem;
    color: var(--dim);
    text-decoration: none;
    padding: .35rem 0;
    border-bottom: 1px solid var(--line-soft);
    transition: color .18s ease;
}

.legal-toc a:hover {
    color: var(--text);
}

.legal-doc h2 {
    font-size: clamp(1.4rem, 2.6vw, 1.9rem);
    margin: 2.6rem 0 1rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line-soft);
}

.legal-doc h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.legal-doc h3 {
    font-size: 1.02rem;
    font-weight: 600;
    letter-spacing: 0;
    margin: 1.6rem 0 .5rem;
}

.legal-doc p,
.legal-doc li {
    color: var(--muted);
    font-size: .96rem;
}

.legal-doc ul {
    padding-left: 1.1rem;
}

.legal-doc li {
    margin-bottom: .4rem;
}

.legal-updated {
    font-family: var(--mono);
    font-size: .72rem;
    color: var(--dim);
    text-transform: uppercase;
    letter-spacing: .12em;
}

/* ── Reveal on scroll ────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .3, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1000px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .console {
        order: 2;
    }

    .product-grid,
    .about-grid,
    .contact-grid,
    .footer-grid,
    .booking-grid,
    .legal-body {
        grid-template-columns: 1fr;
    }

    .product-head,
    .legal-toc {
        position: static;
    }

    .cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .marquee {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.4rem;
    }

    .legal-toc {
        display: flex;
        flex-wrap: wrap;
        gap: .4rem 1.2rem;
    }

    .legal-toc a {
        border: 0;
    }
}

@media (max-width: 780px) {
    body {
        font-size: 16px;
    }

    .nav-toggle {
        display: flex;
    }

    .site-nav {
        position: fixed;
        inset: var(--header-h) 0 auto 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--ink);
        border-bottom: 1px solid var(--line);
        padding: .5rem var(--pad) 1.5rem;
        transform: translateY(-120%);
        transition: transform .32s cubic-bezier(.2, .7, .3, 1);
        max-height: calc(100dvh - var(--header-h));
        overflow-y: auto;
    }

    .site-nav.is-open {
        transform: none;
    }

    .site-nav a {
        font-size: 1.05rem;
        padding: .9rem 0;
        border-bottom: 1px solid var(--line-soft);
        color: var(--muted);
    }

    .site-nav a.is-active {
        color: var(--text);
        border-bottom-color: var(--red);
    }

    .nav-cta {
        margin-top: 1rem;
        border-bottom: 0;
        text-align: center;
    }

    .feature-list,
    .fields {
        grid-template-columns: 1fr;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .timer-row {
        grid-template-columns: 6.5rem 1fr 5rem;
        gap: .6rem;
    }

    .footer-nav {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-list li {
        grid-template-columns: 1fr;
        gap: .2rem;
    }

    .console-body {
        min-height: 300px;
    }
}

@media (max-width: 460px) {
    .marquee {
        grid-template-columns: 1fr;
    }

    .pipeline li:not(:last-child)::after {
        display: none;
    }
}

/* ── Motion / contrast preferences ───────────────────────── */
@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

@media print {
    .site-header,
    .console-replay,
    .booking {
        display: none;
    }

    body {
        background: #fff;
        color: #000;
    }
}

/* ============================================================
   Product pages, FAQ, breadcrumbs, submenu
   ============================================================ */

/* ── Header submenu ──────────────────────────────────────── */
.has-sub {
    position: relative;
    display: flex;
    align-items: center;
    align-self: center;
}

.subnav {
    position: absolute;
    top: 100%;
    left: -1rem;
    margin-top: .9rem;
    min-width: 330px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 6px;
    box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .9);
    padding: .5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
}

.has-sub:hover .subnav,
.has-sub:focus-within .subnav,
.subnav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.subnav a {
    display: block;
    padding: .7rem .8rem;
    border-radius: var(--radius);
    text-decoration: none;
    transition: background .15s ease;
}

.subnav a:hover {
    background: var(--surface-2);
}

.subnav strong {
    display: block;
    font-size: .92rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: .12rem;
}

.subnav span {
    display: block;
    font-size: .8rem;
    color: var(--dim);
    line-height: 1.4;
}

.sub-trigger {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.sub-trigger::after {
    content: "";
    display: inline-block;
    width: 5px;
    height: 5px;
    margin-left: .45rem;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    opacity: .7;
}

/* ── Breadcrumbs ─────────────────────────────────────────── */
.crumbs {
    padding-top: 1.6rem;
    font-family: var(--mono);
    font-size: .72rem;
    color: var(--dim);
}

.crumbs .shell {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    align-items: center;
}

.crumbs a {
    color: var(--dim);
    text-decoration: none;
    transition: color .18s ease;
}

.crumbs a:hover {
    color: var(--text);
}

.crumbs [aria-current] {
    color: var(--muted);
}

/* ── Product page hero ───────────────────────────────────── */
.page-hero {
    position: relative;
    padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(1rem, 3vw, 2rem);
    overflow: hidden;
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: -30% 55% 30% -15%;
    background: radial-gradient(closest-side, var(--red-wash), transparent 70%);
    pointer-events: none;
}

.page-hero .shell {
    position: relative;
}

.page-hero h1 {
    font-size: clamp(2.15rem, 4.6vw, 3.5rem);
    max-width: 19ch;
    margin-bottom: 1.6rem;
}

.lede-wide {
    max-width: 68ch;
}

/* ── Numbered stage list ─────────────────────────────────── */
.stage-list {
    list-style: none;
    counter-reset: stage;
    padding: 0;
    margin: 2.5rem 0 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    background: var(--line-soft);
    border: 1px solid var(--line-soft);
}

.stage-list li {
    counter-increment: stage;
    background: var(--ink);
    padding: 1.8rem 1.6rem;
    transition: background .25s ease;
}

.stage-list li:hover {
    background: var(--surface);
}

.stage-list li::before {
    content: counter(stage, decimal-leading-zero);
    display: block;
    font-family: var(--mono);
    font-size: .72rem;
    color: var(--red-hi);
    margin-bottom: .8rem;
    letter-spacing: .1em;
}

.stage-list h3 {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0;
    margin-bottom: .55rem;
}

.stage-list p {
    color: var(--muted);
    font-size: .93rem;
    margin: 0;
}

/* ── FAQ ─────────────────────────────────────────────────── */
.faq {
    margin-top: 2.5rem;
    border-top: 1px solid var(--line);
}

.faq-item {
    border-bottom: 1px solid var(--line);
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.15rem 0;
    cursor: pointer;
    font-size: 1.02rem;
    font-weight: 600;
    list-style: none;
    transition: color .18s ease;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "";
    flex: none;
    width: 10px;
    height: 10px;
    border-right: 1.5px solid var(--red-hi);
    border-bottom: 1.5px solid var(--red-hi);
    transform: rotate(45deg) translateY(-3px);
    transition: transform .22s ease;
}

.faq-item[open] summary::after {
    transform: rotate(-135deg) translateY(-3px);
}

.faq-item summary:hover {
    color: var(--red-hi);
}

.faq-answer {
    color: var(--muted);
    font-size: .96rem;
    padding-bottom: 1.3rem;
    max-width: 74ch;
}

/* ── CTA band ────────────────────────────────────────────── */
.cta-band {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: clamp(2rem, 5vw, 3rem);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 6px;
}

.cta-band .section-title {
    margin-bottom: .6rem;
    font-size: clamp(1.5rem, 2.8vw, 2.1rem);
}

.cta-band .section-intro {
    margin: 0;
}

/* ── Product name links ──────────────────────────────────── */
.product-name a {
    text-decoration: none;
    transition: color .18s ease;
}

.product-name a:hover {
    color: var(--red-hi);
}

.product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
}

@media (max-width: 780px) {
    .stage-list {
        grid-template-columns: 1fr;
    }

    .has-sub {
        display: block;
        align-self: stretch;
        width: 100%;
    }

    .sub-trigger {
        display: block;
        width: 100%;
        line-height: inherit;
    }

    .subnav {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        min-width: 0;
        box-shadow: none;
        background: transparent;
        border: 0;
        padding: 0 0 .5rem 0;
        margin-top: 0;
    }

    .subnav a {
        padding: .7rem 0 .7rem 1rem;
        border-left: 1px solid var(--line);
        border-radius: 0;
    }

    .subnav span {
        display: none;
    }

    .sub-trigger::after {
        display: none;
    }

    .cta-band {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ── Field help / character counter ──────────────────────── */
.field-help {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem .8rem;
    align-items: baseline;
    margin: .5rem 0 0;
    font-size: .8rem;
    color: var(--dim);
}

.field-help .count {
    font-family: var(--mono);
    font-size: .72rem;
    color: var(--red-hi);
    white-space: nowrap;
    padding: .15rem .5rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    transition: color .2s ease, border-color .2s ease;
}

.field-help .count.is-ok {
    color: var(--green);
    border-color: rgba(86, 214, 140, .35);
}

.field textarea[aria-invalid="true"],
.field select[aria-invalid="true"] {
    border-color: var(--red-hi);
}

.field textarea::placeholder {
    color: #5A5A63;
    line-height: 1.6;
}

/* ── reCAPTCHA badge ─────────────────────────────────────────
   Hidden per Google's guidance. This is only permitted while the
   reCAPTCHA attribution text is displayed in the form — see the
   .booking-legal paragraph. Do not remove one without the other.
   visibility rather than display:none, so the widget still works. */
.grecaptcha-badge {
    visibility: hidden;
}

.booking-legal a {
    color: var(--muted);
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-color: var(--line);
    transition: color .18s ease, text-decoration-color .18s ease;
}

.booking-legal a:hover {
    color: var(--text);
    text-decoration-color: var(--muted);
}


/* ── Scrollbars ──────────────────────────────────────────────
   color-scheme: dark on :root handles the native styling; this
   just brings the textarea in line with the site palette. */
.field textarea,
.slots,
.subnav {
    scrollbar-width: thin;
    scrollbar-color: var(--line) transparent;
}

.field textarea::-webkit-scrollbar,
.slots::-webkit-scrollbar {
    width: 10px;
}

.field textarea::-webkit-scrollbar-track,
.slots::-webkit-scrollbar-track {
    background: var(--surface);
    border-radius: 999px;
}

.field textarea::-webkit-scrollbar-thumb,
.slots::-webkit-scrollbar-thumb {
    background: var(--line);
    border: 2px solid var(--surface);
    border-radius: 999px;
}

.field textarea::-webkit-scrollbar-thumb:hover,
.slots::-webkit-scrollbar-thumb:hover {
    background: #3D3D45;
}