/* ---------------------------------------------------------------------------
   Nova HRM — marketing site
   Palette and component vocabulary sampled from the reference screenshots in
   ../.. (dark navy bands, #00c3ff accent, hairline-bordered cards).
   No framework, no icon font: every icon on these pages is inline SVG, so the
   only network request is the font link in each document's <head>. Remove it
   and the system stack below takes over.
--------------------------------------------------------------------------- */

:root {
    /* Bands, darkest to lightest. Sections alternate --bg / --bg-2, with
       --bg-3 for the occasional deeper inset band. */
    --bg:          #0d1c2b;
    --bg-2:        #0f1f30;
    --bg-3:        #0c2536;

    /* Raised things: cards, the footer, the CTA band. */
    --surface:     #132135;
    --surface-2:   #18293f;
    --surface-3:   #1b2f46;

    --line:        rgba(255, 255, 255, .07);
    --line-2:      #1f3b61;

    --accent:      #00c3ff;
    --accent-ink:  #04222e;
    --accent-2:    #0c2d41;
    --accent-soft: rgba(0, 195, 255, .10);

    --text:        #f5f5f5;
    --muted:       #93a7bd;
    /* #6f849b failed WCAG AA (3.82:1) on --surface-2. This is the
       darkest value that clears 4.5:1 on every surface it appears on
       while staying a visible step below --muted. */
    --muted-2:     #7d92aa;

    --ok:          #3ddc97;

    --radius:      14px;
    --radius-sm:   10px;
    --radius-pill: 999px;

    --shell:       1200px;
    --gut:         24px;

    --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --display: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
    font-family: var(--display);
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.12;
    margin: 0;
}

p { margin: 0; }

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

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--accent);
    color: var(--accent-ink);
    padding: 10px 16px;
    font-weight: 700;
    z-index: 200;
}
.skip-link:focus { left: 12px; top: 12px; }

/* --- layout ------------------------------------------------------------- */

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

.section { padding: 96px 0; }
.section--tight { padding: 72px 0; }
.section--alt { background: var(--bg-2); }
.section--deep { background: var(--bg-3); }
.section--surface { background: var(--surface); }

.section + .section--alt,
.section--alt + .section,
.section--deep + .section,
.section + .section--deep { border-top: 1px solid var(--line); }

.stack > * + * { margin-top: var(--s, 20px); }

/* --- type --------------------------------------------------------------- */

.eyebrow {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: .01em;
    margin: 0 0 14px;
}

.h1 { font-size: clamp(38px, 5vw, 56px); }
.h2 { font-size: clamp(28px, 3.4vw, 40px); }
.h3 { font-size: 21px; font-weight: 700; letter-spacing: -.01em; }

.lede {
    font-size: 17px;
    color: var(--muted);
    max-width: 56ch;
}

.muted { color: var(--muted); }
.small { font-size: 14px; }
.tiny  { font-size: 13px; }

.center { text-align: center; }
.center .lede { margin-inline: auto; }
.measure { max-width: 62ch; margin-inline: auto; }

/* --- buttons ------------------------------------------------------------ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 13px 26px;
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
    font-family: var(--display);
    font-weight: 700;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    transition: background-color .16s ease, border-color .16s ease, transform .16s ease, color .16s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: #35d2ff; }

.btn--ghost {
    background: transparent;
    border-color: var(--line-2);
    color: var(--text);
}
.btn--ghost:hover { background: var(--surface-2); border-color: var(--accent); }

.btn--quiet {
    background: var(--surface-2);
    color: var(--text);
    border-color: var(--line);
}
.btn--quiet:hover { background: var(--surface-3); }

.btn--block { width: 100%; justify-content: center; }
.btn--sm { padding: 10px 18px; font-size: 14px; }

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}
.center .btn-row { justify-content: center; }

.arrow { width: 15px; height: 15px; flex: none; }

/* --- header ------------------------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(13, 28, 43, .92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.site-header__inner {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 72px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--text);
    font-family: var(--display);
    font-weight: 800;
    font-size: 25px;
    letter-spacing: -.025em;
    flex: none;
}
.brand:hover { text-decoration: none; }
.brand__mark { width: 30px; height: 30px; flex: none; }
.brand--footer { font-size: 23px; }

.nav {
    display: flex;
    gap: 30px;
    margin-inline: auto;
}
.nav a {
    color: var(--muted);
    font-size: 15px;
    font-weight: 500;
}
.nav a:hover { color: var(--text); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--text); font-weight: 600; }

.nav-toggle {
    display: none;
    margin-left: auto;
    background: transparent;
    border: 1px solid var(--line-2);
    border-radius: var(--radius-sm);
    color: var(--text);
    padding: 8px 10px;
    cursor: pointer;
    line-height: 0;
}
/* Without an explicit size the sprite <use> inherits no intrinsic dimensions
   and the glyph fills the button. */
.nav-toggle svg { width: 20px; height: 20px; display: block; }

/* --- hero --------------------------------------------------------------- */

.hero {
    padding: 88px 0 96px;
    /* The reference pages carry a faint cyan wash behind the headline. */
    background:
        radial-gradient(90ch 46ch at 18% -10%, rgba(0, 195, 255, .07), transparent 62%),
        radial-gradient(70ch 40ch at 92% 4%, rgba(0, 195, 255, .05), transparent 60%);
}
.hero--center { text-align: center; }
.hero--center .lede { margin-inline: auto; }

.hero__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
}

/* --- chips -------------------------------------------------------------- */

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.center .chip-row { justify-content: center; }

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--line-2);
    background: var(--surface);
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
}
.chip:hover { text-decoration: none; border-color: var(--accent); }
.chip svg { width: 15px; height: 15px; color: var(--accent); flex: none; }

.tag {
    display: inline-block;
    padding: 5px 11px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--surface-2);
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.35;
}

.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }

/* --- feature rows ------------------------------------------------------- */

.frow {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.frow + .frow { margin-top: 0; }
.frow--flip .frow__body { order: 2; }
.frow--flip .frow__aside { order: 1; }

.badge-label {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 18px;
}
.badge-label__icon {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    background: var(--accent-2);
    border: 1px solid var(--line-2);
    display: grid;
    place-items: center;
    color: var(--accent);
    flex: none;
}
.badge-label__icon svg { width: 17px; height: 17px; }
.badge-label__text { color: var(--accent); font-size: 13px; font-weight: 700; }

/* --- check lists -------------------------------------------------------- */

.checks { list-style: none; margin: 0; padding: 0; }
.checks li {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 5px 0;
    font-size: 15px;
    color: var(--muted);
}
.checks svg {
    width: 16px;
    height: 16px;
    color: var(--accent);
    flex: none;
    margin-top: 4px;
}

/* --- fact chip (replaces the reference pages' outcome stats) ------------- */

.fact {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    border-radius: var(--radius);
    background: var(--accent-2);
    border: 1px solid var(--line-2);
}
.fact__num {
    font-family: var(--display);
    font-weight: 800;
    font-size: 27px;
    color: var(--accent);
    line-height: 1;
    letter-spacing: -.02em;
}
.fact__label { font-size: 13px; color: var(--muted); line-height: 1.35; max-width: 22ch; }

/* --- mock panels -------------------------------------------------------- */

.panel {
    border-radius: var(--radius);
    border: 1px solid var(--line-2);
    background: var(--surface);
    overflow: hidden;
}
.panel__head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    background: var(--surface-2);
    border-bottom: 1px solid var(--line);
}
.panel__icon {
    width: 32px; height: 32px;
    border-radius: 9px;
    background: var(--accent-2);
    display: grid; place-items: center;
    color: var(--accent);
    flex: none;
}
.panel__icon svg { width: 16px; height: 16px; }
.panel__title { font-weight: 700; font-size: 14.5px; line-height: 1.25; }
.panel__sub { font-size: 12px; color: var(--muted-2); }
.panel__flag {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .06em;
}
.panel__flag::before {
    content: "";
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--ok);
}
.panel__body { padding: 18px; }

.panel__inner {
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: var(--bg-3);
    padding: 14px 16px;
}
.panel__caption {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    font-size: 12.5px;
    color: var(--muted-2);
    margin-bottom: 10px;
}
.panel__caption b { color: var(--accent); font-size: 12.5px; }

.prow {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    font-size: 13.5px;
    border-bottom: 1px solid var(--line);
}
.prow:last-child { border-bottom: 0; }
.prow__name { color: var(--muted); }
.prow__val { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--text); }
.prow--total { border-top: 1px solid var(--line-2); border-bottom: 0; margin-top: 6px; padding-top: 12px; font-weight: 700; }
.prow--total .prow__name { color: var(--text); }

.pill-ok {
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    background: rgba(61, 220, 151, .12);
    color: var(--ok);
}
.pill-info {
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    background: var(--accent-soft);
    color: var(--accent);
}

/* --- card grids --------------------------------------------------------- */

.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
    border-radius: var(--radius);
    border: 1px solid var(--line-2);
    background: var(--surface);
    padding: 26px;
}
.card--flat { background: var(--bg-2); }
.card__icon {
    width: 38px; height: 38px;
    border-radius: var(--radius-sm);
    background: var(--accent-2);
    border: 1px solid var(--line-2);
    display: grid; place-items: center;
    color: var(--accent);
    margin-bottom: 16px;
}
.card__icon svg { width: 18px; height: 18px; }
.card h3 { margin-bottom: 9px; }
.card p { color: var(--muted); font-size: 14.5px; }

.card--link { display: block; color: inherit; transition: border-color .16s ease, transform .16s ease; }
.card--link:hover { text-decoration: none; border-color: var(--accent); transform: translateY(-2px); }

/* --- stat band ---------------------------------------------------------- */

.statband {
    background: var(--surface);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 44px 0;
}
.statband__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}
.stat__num {
    font-family: var(--display);
    font-weight: 800;
    font-size: 38px;
    color: var(--accent);
    line-height: 1.1;
    letter-spacing: -.02em;
}
.stat__label { font-size: 13.5px; color: var(--muted); }

/* --- module group cards ------------------------------------------------- */

.group__head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}
.group__dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.group__name { font-family: var(--display); font-weight: 700; font-size: 17px; }
.group__count {
    margin-left: auto;
    padding: 4px 11px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 700;
}

/* --- comparison / country cards ----------------------------------------- */

.mini {
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: var(--surface);
    padding: 16px 18px;
}
.mini__head { display: flex; align-items: center; gap: 10px; margin-bottom: 7px; }
.mini__name { font-family: var(--display); font-weight: 700; font-size: 16px; }
.mini__badge {
    margin-left: auto;
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 3px 9px;
    border-radius: 6px;
    letter-spacing: .04em;
}
.mini__note { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.mini__note svg { width: 14px; height: 14px; color: var(--accent); flex: none; }

/* --- accent-topped card (demo form, compliance card) -------------------- */

.topline { position: relative; }
.topline::before {
    content: "";
    position: absolute;
    inset: -1px -1px auto -1px;
    height: 2px;
    border-radius: var(--radius) var(--radius) 0 0;
    background: linear-gradient(90deg, var(--accent), #4f7bd8 55%, #d9534f);
}

/* --- numbered steps ----------------------------------------------------- */

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li {
    display: flex;
    gap: 13px;
    padding: 7px 0;
    font-size: 14.5px;
    color: var(--muted);
}
.steps li::before {
    counter-increment: step;
    content: counter(step);
    width: 22px; height: 22px;
    border-radius: 50%;
    border: 1px solid var(--line-2);
    background: var(--accent-2);
    color: var(--accent);
    font-size: 11.5px;
    font-weight: 700;
    display: grid; place-items: center;
    flex: none;
    margin-top: 2px;
}

/* --- form --------------------------------------------------------------- */

.field { margin-bottom: 16px; }
.field label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 7px;
}
.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line-2);
    background: var(--surface-3);
    color: var(--text);
    font-family: inherit;
    font-size: 14.5px;
}
.field textarea { min-height: 92px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 195, 255, .16);
}
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* --- accordion ---------------------------------------------------------- */

.acc { border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: var(--surface); }
.acc + .acc { margin-top: 12px; }
.acc summary {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    list-style: none;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after {
    content: "";
    margin-left: auto;
    width: 11px; height: 11px;
    border-right: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    transform: rotate(45deg) translateY(-2px);
    transition: transform .18s ease;
    flex: none;
}
.acc[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.acc__body { padding: 0 20px 18px; color: var(--muted); font-size: 14.5px; }

/* --- CTA band ----------------------------------------------------------- */

.cta {
    background: var(--surface);
    border-top: 1px solid var(--line);
    padding: 88px 0;
    text-align: center;
}

/* --- footer ------------------------------------------------------------- */

.site-footer {
    background: var(--surface);
    border-top: 1px solid var(--line);
    padding: 62px 0 30px;
}
.site-footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}
.site-footer p { color: var(--muted); font-size: 14px; max-width: 38ch; margin-top: 16px; }
.fcol .fcol__h {
    font-size: 11.5px;
    margin: 0;
    font-family: var(--sans);
    letter-spacing: .1em;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted-2);
    font-weight: 700;
    margin-bottom: 14px;
}
.fcol ul { list-style: none; margin: 0; padding: 0; }
.fcol li + li { margin-top: 9px; }
.fcol a { color: var(--muted); font-size: 14px; }
.fcol a:hover { color: var(--text); text-decoration: none; }

.site-footer__bar {
    margin-top: 46px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    font-size: 13px;
    color: var(--muted-2);
}
/* Not inside a sentence, so SC 2.5.8's inline exemption does not apply — it
   needs the 24px height on its own. */
.site-footer__bar a {
    color: var(--muted);
    display: inline-block;
    padding-block: 4px;
}

/* --- responsive --------------------------------------------------------- */

@media (max-width: 991px) {
    .section { padding: 72px 0; }
    .hero { padding: 64px 0 72px; }
    .hero__grid, .frow { grid-template-columns: 1fr; gap: 40px; }
    .frow--flip .frow__body, .frow--flip .frow__aside { order: 0; }
    .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
    .statband__grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
    .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }

    .nav-toggle { display: block; }
    .nav {
        display: none;
        position: absolute;
        left: 0; right: 0;
        top: 72px;
        flex-direction: column;
        gap: 0;
        margin: 0;
        padding: 8px var(--gut) 16px;
        background: var(--bg);
        border-bottom: 1px solid var(--line);
    }
    .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
    .site-header__inner.is-open .nav { display: flex; }
    .site-header__inner > .btn { display: none; }
    .site-header__inner.is-open .nav .btn--primary { display: inline-flex; margin-top: 14px; align-self: flex-start; }
}

@media (max-width: 640px) {
    .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
    .field-pair { grid-template-columns: 1fr; }
    .statband__grid { grid-template-columns: 1fr 1fr; }
    .section { padding: 58px 0; }
    .card { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------------------------------------------------------------------------
   Motion and progressive enhancement
   Everything here is gated on `.js-ready`, which site.js only adds once it
   knows it can reverse the effect. With JS off or broken, nothing below
   applies and the page renders in its finished state.
--------------------------------------------------------------------------- */

.js-ready [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s cubic-bezier(.22, .68, .3, 1),
                transform .6s cubic-bezier(.22, .68, .3, 1);
    will-change: opacity, transform;
}
.js-ready [data-reveal].is-revealed {
    opacity: 1;
    transform: none;
}
/* Once it has played, drop the hint so long pages do not hold dozens of
   promoted layers. */
.js-ready [data-reveal].is-revealed { will-change: auto; }

/* --- scroll progress ---------------------------------------------------- */

.scroll-progress {
    position: fixed;
    inset: 0 0 auto 0;
    height: 2px;
    z-index: 120;
    pointer-events: none;
    background: transparent;
}
.scroll-progress__bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #6ee7ff);
    transform: scaleX(0);
    transform-origin: 0 50%;
}

/* --- header, once scrolled ---------------------------------------------- */

.site-header { transition: background-color .2s ease, box-shadow .2s ease; }
.site-header.is-stuck {
    background: rgba(13, 28, 43, .97);
    box-shadow: 0 8px 28px rgba(0, 0, 0, .38);
}

/* --- back to top -------------------------------------------------------- */

.to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 110;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--line-2);
    background: var(--surface-2);
    color: var(--accent);
    display: grid;
    place-items: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .22s ease, transform .22s ease, visibility .22s ease, background-color .16s ease;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--accent); color: var(--accent-ink); }
.to-top svg { width: 17px; height: 17px; }

/* --- rotating tagline --------------------------------------------------- */

.rotator {
    display: inline-block;
    min-height: 1.4em;
    transition: opacity .3s ease, transform .3s ease;
}
.rotator.is-swapping { opacity: 0; transform: translateY(-6px); }

/* --- tilt --------------------------------------------------------------- */

[data-tilt] {
    transition: transform .35s cubic-bezier(.22, .68, .3, 1);
    transform-style: preserve-3d;
}

/* --- lazy media --------------------------------------------------------- */

img[loading="lazy"], [data-src], [data-bg] {
    opacity: 0;
    transition: opacity .45s ease;
}
img[loading="lazy"].is-loaded, [data-src].is-loaded, [data-bg].is-loaded { opacity: 1; }

/* No-JS safety: without the script nothing ever gets `is-loaded`, so the
   hidden state must not be the default outside `.js-ready`. */
html:not(.js-ready) img, html:not(.js-ready) [data-bg] { opacity: 1; }

/* --- section spy -------------------------------------------------------- */

.chip.is-active {
    border-color: var(--accent);
    background: var(--accent-2);
    color: var(--text);
}

/* --- interactive polish ------------------------------------------------- */

.card, .mini, .panel { transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.card:hover, .mini:hover { border-color: var(--line-2); }
.panel:hover { box-shadow: 0 18px 46px rgba(0, 0, 0, .34); }

.nav a { position: relative; }
.nav a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -6px;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: 0 50%;
    transition: transform .22s ease;
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }

.btn--primary { box-shadow: 0 0 0 0 rgba(0, 195, 255, .38); }
.btn--primary:hover { box-shadow: 0 10px 26px -8px rgba(0, 195, 255, .55); }

/* Sticky header offset for in-page anchors. */
[id] { scroll-margin-top: 96px; }

.form-note {
    margin-top: 14px;
    padding: 13px 15px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line-2);
    background: var(--accent-2);
    color: var(--muted);
    font-size: 13.5px;
}

@media (max-width: 991px) {
    .nav a::after { display: none; }
    .to-top { right: 14px; bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
    .js-ready [data-reveal] { opacity: 1; transform: none; transition: none; }
    .rotator { transition: none; }
}

/* ---------------------------------------------------------------------------
   Late additions
--------------------------------------------------------------------------- */

/* Panel illustrations arrive as <img>, so the frame is drawn inside the SVG
   itself — no border here, or it doubles up. */
.panel-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius);
}

/* The header CTA is duplicated: one for the desktop bar, one that folds into
   the mobile menu. Only ever show one of them. */
.nav .btn--primary { display: none; }
.nav a.btn::after { display: none; }

/* Native selects ignore most of the field styling, so the chevron is drawn in
   as a background image. */
.field select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 38px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2393a7bd' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px 16px;
}
.field select option { background: var(--surface); color: var(--text); }

.mini__head svg { width: 15px; height: 15px; color: var(--accent); flex: none; }

.form-note code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12.5px;
    background: rgba(0, 0, 0, .35);
    padding: 1px 5px;
    border-radius: 4px;
}

/* Keeps the two hero columns from fighting when the panel is the taller one. */
.hero__grid > .panel, .hero__grid > .card { align-self: start; }

/* ---------------------------------------------------------------------------
   Contact details
--------------------------------------------------------------------------- */

.muted-2 { color: var(--muted-2); }

.site-footer__addr {
    margin-top: 14px !important;
    color: var(--muted-2) !important;
    font-size: 13.5px;
}

.contact-card {
    border-radius: var(--radius);
    border: 1px solid var(--line-2);
    background: var(--surface);
    padding: 6px 18px;
}
.contact-row {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 13px 0;
    font-size: 14.5px;
    color: var(--muted);
}
.contact-row + .contact-row { border-top: 1px solid var(--line); }
.contact-row svg { width: 16px; height: 16px; color: var(--accent); flex: none; }
.contact-row a { color: var(--text); }
.contact-row a:hover { color: var(--accent); text-decoration: none; }
.contact-row__tag {
    margin-left: auto;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .04em;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 3px 9px;
    border-radius: 6px;
}
.contact-row__copy { margin-left: auto; padding: 6px 12px; }

/* Honeypot: out of sight for people, still in the DOM for bots. */
.hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Submission feedback. The neutral state is the accent-tinted box already
   defined by .form-note; these two are the outcomes. */
.form-note--ok {
    background: rgba(61, 220, 151, .10);
    border-color: rgba(61, 220, 151, .35);
    color: #b6f0d6;
}
.form-note--bad {
    background: rgba(227, 93, 91, .10);
    border-color: rgba(227, 93, 91, .38);
    color: #f3c2c1;
}
.btn[disabled] { opacity: .6; pointer-events: none; }

/* ---------------------------------------------------------------------------
   Cookie consent
   Shown only until a choice is stored. It is a bar rather than a modal: the
   analytics tag is not loaded until Accept is clicked, so there is nothing to
   block the page for.
--------------------------------------------------------------------------- */

.consent {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 130;
    background: rgba(19, 33, 53, .98);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--line-2);
    box-shadow: 0 -12px 34px rgba(0, 0, 0, .40);
}
.consent__inner {
    display: flex;
    align-items: center;
    gap: 26px;
    padding-block: 16px;
}
.consent__text {
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.5;
    max-width: 78ch;
}
.consent__text strong { color: var(--text); font-weight: 600; }
.consent__actions {
    display: flex;
    gap: 10px;
    margin-left: auto;
    flex: none;
}

/* A button that has to read as a footer link. */
.linkish {
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    color: var(--muted);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.linkish:hover { color: var(--text); }

/* Keep the back-to-top button clear of the bar while it is up. */
body.has-consent-bar .to-top { bottom: 108px; }

@media (max-width: 767px) {
    .consent__inner { flex-direction: column; align-items: stretch; gap: 14px; }
    .consent__actions { margin-left: 0; }
    .consent__actions .btn { flex: 1; justify-content: center; }
    body.has-consent-bar .to-top { bottom: 170px; }
}

/* ---------------------------------------------------------------------------
   Tap targets
   WCAG 2.2 SC 2.5.8 wants 24x24 minimum. Footer links, the contact rows and
   the consent re-open button were all 17-23px tall — text height with no
   padding. Padding is added rather than line-height so the visual rhythm of
   the lists does not change.
--------------------------------------------------------------------------- */

.fcol a { display: inline-block; padding-block: 4px; }
.fcol li + li { margin-top: 4px; }

.contact-row a { display: inline-block; padding-block: 2px; }

.linkish { display: inline-block; padding-block: 3px; }

/* ---------------------------------------------------------------------------
   Card links
   The whole card stays clickable, but the anchor now wraps only the heading,
   so the link's accessible name (and its anchor text, which search engines
   read as a description of the target) is a short phrase rather than the
   entire paragraph.
--------------------------------------------------------------------------- */

.card--link { position: relative; }
.card--link h3 { margin-bottom: 9px; }
.card--link a { color: inherit; }
.card--link a::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
}
.card--link a:hover { text-decoration: none; color: var(--accent); }
.card--link:focus-within {
    border-color: var(--accent);
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
.card--link a:focus-visible { outline: none; }

/* ---------------------------------------------------------------------------
   Long-form pages (privacy, guides)
   The rest of the site is short blocks in cards; these pages are the one place
   with sustained reading, so they get a measure, a vertical rhythm and a table.
--------------------------------------------------------------------------- */

.prose { max-width: 68ch; }
.prose > * + * { margin-top: 18px; }
.prose h2 {
    font-size: 25px;
    margin-top: 46px;
    padding-top: 26px;
    border-top: 1px solid var(--line);
}
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { font-size: 17.5px; margin-top: 30px; }
.prose p, .prose li { color: var(--muted); font-size: 15.5px; line-height: 1.68; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.prose ul, .prose ol { padding-left: 22px; margin-top: 14px; }
.prose li + li { margin-top: 8px; }
.prose li::marker { color: var(--accent); }
.prose code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13.5px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    padding: 1px 6px;
    border-radius: 5px;
    color: var(--text);
}

/* Wide tables scroll inside their own box rather than pushing the page. */
.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
    margin-top: 20px;
}
.table-wrap table { border-collapse: collapse; width: 100%; min-width: 560px; }
.table-wrap th, .table-wrap td {
    text-align: left;
    padding: 12px 16px;
    font-size: 14px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}
.table-wrap th {
    background: var(--surface-2);
    color: var(--text);
    font-weight: 600;
    font-size: 12.5px;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
}
.table-wrap td { color: var(--muted); }
.table-wrap tr:last-child td { border-bottom: 0; }

/* A standing aside — context, not a dismissible alert. */
.callout {
    border: 1px solid var(--line-2);
    border-left: 3px solid var(--accent);
    background: var(--surface);
    border-radius: var(--radius-sm);
    padding: 18px 20px;
    margin-top: 24px;
}
.callout p { margin: 0; font-size: 14.5px; }
.callout p + p { margin-top: 10px; }

.updated {
    font-size: 13px;
    color: var(--muted-2);
    margin-top: 14px;
}

/* Table of contents for the guides. */
.toc {
    border: 1px solid var(--line-2);
    background: var(--surface);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-top: 30px;
}
.toc h2 {
    font-size: 12px !important;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted-2);
    margin: 0 0 12px !important;
    padding: 0 !important;
    border: 0 !important;
    font-family: var(--sans);
}
.toc ol { margin: 0; padding-left: 20px; }
.toc li { font-size: 14.5px; }
.toc li + li { margin-top: 7px; }
