/*
 * Copyright (c) 2026 Silk Road Merchants LLC. All Rights Reserved
 * Filename: site.css
 * Author: Michael Taciroglu
 * Date Created: October 2, 2026
 * Description: All styles for the marketing site. Colours, type and spacing are tokens at the top.
 */

@font-face {
    font-family: "Outfit";
    src: url("/assets/fonts/outfit-latin.woff2") format("woff2");
    font-weight: 400 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("/assets/fonts/inter-latin.woff2") format("woff2");
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Black and crimson come from the logo. */
    --ink: #0f1114;
    --ink-2: #171a1f;
    --ink-3: #23272e;
    --paper: #f6f5f2;
    --white: #ffffff;
    --text: #16181d;
    --muted: #555c68;
    --on-dark: #e9ebef;
    --muted-dark: #a7adb8;
    --line: #e3e1dc;
    --line-dark: rgba(255, 255, 255, 0.1);
    --red: #d0121b;
    --red-hover: #b00e16;
    --red-bright: #ff4d55;
    --red-soft: #fbe8e9;

    /* Belt colours, white to black, for the rank-bar motif. */
    --belts: linear-gradient(90deg,
        #f2f2f2 0 11.1%, #f6c431 11.1% 22.2%, #f08a24 22.2% 33.3%, #2f9e55 33.3% 44.4%,
        #2563eb 44.4% 55.5%, #7c3aed 55.5% 66.6%, #7b4a2b 66.6% 77.7%, #d0121b 77.7% 88.8%,
        #000000 88.8% 100%);

    --font-display: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 22px;
    --shadow: 0 1px 2px rgba(16, 18, 22, 0.05), 0 10px 30px rgba(16, 18, 22, 0.07);
    --shadow-lg: 0 30px 70px rgba(0, 0, 0, 0.35);
    --header-h: 68px;
    --gutter: clamp(1rem, 4vw, 2rem);
}

/* ----- Base ------------------------------------------------------------------------ */

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: calc(var(--header-h) + 1rem);
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

body {
    margin: 0;
    background: var(--white);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

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

img {
    height: auto;
}

h1,
h2,
h3,
h4 {
    margin: 0 0 0.6em;
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.015em;
    text-wrap: balance;
}

h1 {
    font-size: clamp(2.4rem, 5.2vw, 4.1rem);
    font-weight: 800;
    letter-spacing: -0.025em;
}

h2 {
    font-size: clamp(1.85rem, 3.4vw, 2.75rem);
}

h3 {
    font-size: 1.3rem;
    letter-spacing: -0.005em;
}

p {
    margin: 0 0 1em;
    text-wrap: pretty;
}

a {
    color: var(--red);
    text-underline-offset: 0.18em;
}

a:hover {
    color: var(--red-hover);
}

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

ul,
ol {
    padding-left: 1.25em;
}

.sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

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

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 100;
    padding: 0.6rem 1rem;
    background: var(--white);
    color: var(--ink);
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.skip-link:focus {
    top: 0.75rem;
}

.icon {
    width: 1.25em;
    height: 1.25em;
    flex: none;
}

.container {
    width: min(100% - 2 * var(--gutter), 76rem);
    margin-inline: auto;
}

.container-narrow {
    width: min(100% - 2 * var(--gutter), 48rem);
    margin-inline: auto;
}

/* ----- Buttons ---------------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.35rem;
    border: 2px solid transparent;
    border-radius: 999px;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s,
        box-shadow 0.2s;
}

.btn .icon {
    width: 1.1em;
    height: 1.1em;
    transition: transform 0.2s;
}

.btn:hover .icon {
    transform: translateX(3px);
}

.btn-primary {
    background: var(--red);
    color: var(--white);
    box-shadow: 0 8px 24px rgba(208, 18, 27, 0.28);
}

.btn-primary:hover {
    background: var(--red-hover);
    color: var(--white);
    transform: translateY(-1px);
}

.btn-outline {
    border-color: var(--ink);
    color: var(--ink);
}

.btn-outline:hover {
    background: var(--ink);
    color: var(--white);
}

.btn-ghost {
    border-color: rgba(255, 255, 255, 0.35);
    color: var(--white);
}

.btn-ghost:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
}

.btn-lg {
    padding: 0.95rem 1.6rem;
    font-size: 1.06rem;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: var(--font-display);
    font-weight: 600;
    text-decoration: none;
}

.text-link .icon {
    width: 1em;
    height: 1em;
    transition: transform 0.2s;
}

.text-link:hover .icon {
    transform: translateX(3px);
}

/* ----- Header ----------------------------------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    /* Nearly opaque: the header sits over white sections once the page scrolls. */
    background: rgba(15, 17, 20, 0.94);
    border-bottom: 1px solid var(--line-dark);
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
    backdrop-filter: saturate(1.4) blur(14px);
    color: var(--on-dark);
}

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

.brand img {
    height: 40px;
    width: auto;
}

.menu-button,
.menu-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--line-dark);
    border-radius: 12px;
    background: transparent;
    color: var(--white);
    cursor: pointer;
}

.menu-button .icon,
.menu-close .icon {
    width: 22px;
    height: 22px;
}

/* Small screens: the menu is a native popover sheet, so it needs no script. */
.site-menu {
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    margin: 0;
    padding: 1.25rem var(--gutter) 2rem;
    border: 0;
    background: var(--ink);
    color: var(--on-dark);
    flex-direction: column;
    gap: 1.5rem;
}

.site-menu:popover-open {
    display: flex;
}

.menu-close {
    align-self: flex-end;
}

.main-nav ul {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-nav a {
    display: block;
    padding: 0.6rem 0;
    color: var(--on-dark);
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 600;
    text-decoration: none;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
    color: var(--white);
}

.main-nav a[aria-current="page"] {
    text-decoration: underline;
    text-decoration-color: var(--red);
    text-decoration-thickness: 3px;
    text-underline-offset: 0.45em;
}

.header-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    margin-top: auto;
}

.login-link {
    color: var(--on-dark);
    font-family: var(--font-display);
    font-weight: 600;
    text-decoration: none;
}

.login-link:hover {
    color: var(--white);
}

@media (min-width: 60rem) {
    .menu-button,
    .menu-close {
        display: none;
    }

    /* Author styles outrank the UA's [popover] display:none, so on wide screens the
       popover is just an inline flex row that is never opened. */
    .site-menu {
        display: flex;
        position: static;
        flex-direction: row;
        align-items: center;
        flex: 1;
        justify-content: space-between;
        width: auto;
        height: auto;
        padding: 0;
        background: none;
        overflow: visible;
    }

    .main-nav {
        margin-left: 1.5rem;
    }

    .main-nav ul {
        flex-direction: row;
        gap: 2rem;
    }

    .main-nav a {
        padding: 0.5rem 0;
        font-size: 1rem;
        font-weight: 500;
    }

    .main-nav a[aria-current="page"] {
        text-underline-offset: 0.6em;
    }

    .header-actions {
        flex-direction: row;
        align-items: center;
        gap: 1.4rem;
        margin: 0;
    }
}

/* ----- Rank bar --------------------------------------------------------------------- */

.rankbar {
    height: 5px;
    background: var(--belts);
}

/* ----- Sections --------------------------------------------------------------------- */

.section {
    padding-block: clamp(4rem, 9vw, 7.5rem);
}

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

.section-paper {
    background: var(--paper);
}

.section-dark {
    background: var(--ink);
    color: var(--on-dark);
}

.section-dark h2,
.section-dark h3 {
    color: var(--white);
}

.section-head {
    max-width: 46rem;
    margin-bottom: clamp(2.5rem, 5vw, 3.75rem);
}

.section-head.center {
    margin-inline: auto;
    text-align: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
    color: var(--red);
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 1.75rem;
    height: 3px;
    border-radius: 2px;
    background: currentColor;
}

.section-dark .eyebrow,
.photo-band .eyebrow,
.hero .eyebrow,
.page-hero .eyebrow {
    color: var(--red-bright);
}

.lead {
    color: var(--muted);
    font-size: clamp(1.1rem, 1.6vw, 1.25rem);
    line-height: 1.6;
}

.section-dark .lead {
    color: var(--muted-dark);
}

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

.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--ink);
    color: var(--on-dark);
}

.hero::before {
    content: "";
    position: absolute;
    inset: -20% auto auto -10%;
    z-index: -1;
    width: 55rem;
    height: 55rem;
    background: radial-gradient(closest-side, rgba(208, 18, 27, 0.22), transparent);
}

.hero-grid {
    display: grid;
    gap: 2.5rem;
    padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(3rem, 6vw, 5rem);
}

.hero h1 {
    color: var(--white);
}

.hero h1 .accent {
    color: var(--red-bright);
}

.hero .lead {
    max-width: 36rem;
    color: var(--muted-dark);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 2rem;
}

.hero-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    margin: 2.25rem 0 0;
    padding: 0;
    list-style: none;
    color: var(--muted-dark);
    font-size: 0.95rem;
}

.hero-proof li {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-proof .icon {
    width: 1.1rem;
    height: 1.1rem;
    color: var(--red-bright);
}

.hero-visual {
    position: relative;
    min-height: 22rem;
}

.hero-visual > img {
    width: 100%;
    max-width: 38rem;
    margin-left: auto;
    /* The source photo is cut flat at the top; fade it into the hero. */
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 24%);
    mask-image: linear-gradient(180deg, transparent 0, #000 24%);
}

.float-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius);
    background: rgba(23, 26, 31, 0.72);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-lg);
    color: var(--white);
    font-size: 0.9rem;
    line-height: 1.3;
}

.float-card small {
    display: block;
    color: var(--muted-dark);
    font-size: 0.78rem;
}

.float-card .badge-icon {
    display: grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 10px;
    background: rgba(208, 18, 27, 0.18);
    color: var(--red-bright);
}

.float-card .grade {
    display: grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 10px;
    background: #2f9e55;
    color: var(--white);
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 800;
}

.fc-1 {
    top: 12%;
    left: 0;
}

.fc-2 {
    top: 46%;
    right: 4%;
}

.fc-3 {
    bottom: 8%;
    left: 8%;
}

@media (prefers-reduced-motion: no-preference) {
    .float-card {
        animation: float 7s ease-in-out infinite;
    }

    .fc-2 {
        animation-delay: -2.3s;
    }

    .fc-3 {
        animation-delay: -4.6s;
    }
}

@keyframes float {
    50% {
        transform: translateY(-8px);
    }
}

@media (min-width: 60rem) {
    .hero-grid {
        grid-template-columns: 1.05fr 1fr;
        align-items: center;
        min-height: min(44rem, calc(100vh - var(--header-h)));
    }

    .hero-visual {
        min-height: 34rem;
    }

    /* Let the scene run to the right edge of the viewport. */
    .hero-visual > img {
        position: absolute;
        top: 50%;
        right: calc(-1 * max(var(--gutter), (100vw - 76rem) / 2));
        width: auto;
        height: 118%;
        max-width: none;
        transform: translateY(-50%);
    }

    .fc-1 {
        left: -6%;
    }
}

/* ----- Style strip ------------------------------------------------------------------ */

.styles-strip {
    padding-block: 1.75rem;
    border-bottom: 1px solid var(--line);
    background: var(--white);
}

.styles-strip .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.5rem;
}

.styles-strip p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.chips li {
    padding: 0.35rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--paper);
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;
}

.chips a {
    color: inherit;
    text-decoration: none;
}

.chips a:hover {
    color: var(--red);
}

/* ----- Cards ------------------------------------------------------------------------ */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
    gap: 1.25rem;
}

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1.75rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow);
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.card:hover {
    transform: translateY(-3px);
    border-color: #d6d3cc;
    box-shadow: 0 1px 2px rgba(16, 18, 22, 0.05), 0 18px 40px rgba(16, 18, 22, 0.1);
}

.card p {
    color: var(--muted);
}

.card .text-link {
    margin-top: auto;
}

/* A link that covers the card makes the whole card clickable. */
.card .text-link::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
}

.icon-badge {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    margin-bottom: 1.25rem;
    border-radius: 14px;
    background: var(--red-soft);
    color: var(--red);
}

.icon-badge .icon {
    width: 1.5rem;
    height: 1.5rem;
}

.section-dark .card {
    border-color: var(--line-dark);
    background: var(--ink-2);
    box-shadow: none;
}

.section-dark .card p {
    color: var(--muted-dark);
}

.section-dark .icon-badge {
    background: rgba(208, 18, 27, 0.16);
    color: var(--red-bright);
}

/* ----- Split rows: image beside text ------------------------------------------------- */

.split {
    display: grid;
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
}

.split + .split {
    margin-top: clamp(4rem, 9vw, 7rem);
}

.split-media {
    position: relative;
}

/* A soft blob of brand red behind each photo ties the stock images to the palette. */
.split-media::before {
    content: "";
    position: absolute;
    inset: 12% 8% -6% 14%;
    z-index: 0;
    border-radius: 40% 60% 55% 45%;
    background: radial-gradient(closest-side, rgba(208, 18, 27, 0.2), transparent);
    filter: blur(10px);
}

.split-media > img {
    position: relative;
    z-index: 1;
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* Photos feather into the page on all four edges instead of sitting in hard boxes. */
.split-media.fade > img {
    border-radius: 0;
    box-shadow: none;
    -webkit-mask-image:
        linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent),
        linear-gradient(180deg, transparent, #000 16%, #000 84%, transparent);
    -webkit-mask-composite: source-in;
    mask-image:
        linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent),
        linear-gradient(180deg, transparent, #000 16%, #000 84%, transparent);
    mask-composite: intersect;
}

.split-media.duotone > img {
    filter: grayscale(1) contrast(1.08);
}

.split-media.duotone::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(208, 18, 27, 0.35), rgba(15, 17, 20, 0.15));
    mix-blend-mode: multiply;
    pointer-events: none;
}

.split-copy p:not(.eyebrow) {
    color: var(--muted);
}

.section-dark .split-copy p:not(.eyebrow) {
    color: var(--muted-dark);
}

.ticks {
    display: grid;
    gap: 0.65rem;
    margin: 1.5rem 0 0;
    padding: 0;
    list-style: none;
}

.ticks + p {
    margin-top: 1.5rem;
}

.ticks li {
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
}

.ticks .icon {
    width: 1.35rem;
    height: 1.35rem;
    margin-top: 0.15rem;
    padding: 0.2rem;
    border-radius: 50%;
    background: var(--red);
    color: var(--white);
    stroke-width: 3;
}

@media (min-width: 56rem) {
    .split {
        grid-template-columns: 1fr 1fr;
    }

    .split.flip .split-media {
        order: 2;
    }
}

/* ----- Kiosk illustration ----------------------------------------------------------- */

/* A drawn tablet that mirrors the real check-in kiosk: phone or ID on a numpad. */
.kiosk {
    position: relative;
    max-width: 25rem;
    margin-inline: auto;
    padding: 1rem;
    border-radius: 2rem;
    background: linear-gradient(145deg, #2a2e36, #0f1114);
    box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.kiosk-screen {
    padding: 1.6rem 1.4rem 1.4rem;
    border-radius: 1.2rem;
    background: radial-gradient(ellipse at 50% 0%, #2b1215, #14161a 60%);
    color: var(--white);
    text-align: center;
}

.kiosk-logo {
    width: 2.6rem;
    margin: 0 auto 0.75rem;
}

.kiosk-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
}

.kiosk-sub {
    margin: 0.2rem 0 1rem;
    color: var(--muted-dark);
    font-size: 0.85rem;
}

.kiosk-display {
    margin-bottom: 1rem;
    padding: 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.35);
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.12em;
}

.kiosk-display .caret {
    display: inline-block;
    width: 2px;
    height: 1.2em;
    margin-left: 2px;
    background: var(--red-bright);
    vertical-align: -0.2em;
}

@media (prefers-reduced-motion: no-preference) {
    .kiosk-display .caret {
        animation: blink 1.1s steps(1) infinite;
    }
}

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

.kiosk-pad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.55rem;
}

.kiosk-pad span {
    display: grid;
    place-items: center;
    height: 3rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.07);
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
}

.kiosk-pad .key-muted {
    color: var(--muted-dark);
    font-size: 0.85rem;
}

.kiosk-pad .key-go {
    background: var(--red);
    font-size: 0.85rem;
}

.kiosk-alert {
    position: absolute;
    right: -1rem;
    bottom: 18%;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    max-width: 15rem;
    padding: 0.7rem 0.9rem;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-lg);
    color: var(--text);
    font-size: 0.82rem;
    line-height: 1.3;
    text-align: left;
}

.kiosk-alert .icon {
    color: var(--red);
}

.kiosk-alert small {
    display: block;
    color: var(--muted);
}

@media (max-width: 30rem) {
    .kiosk-alert {
        right: 0.5rem;
        bottom: -1.5rem;
    }
}

/* ----- Full-bleed photo band -------------------------------------------------------- */

.photo-band {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--ink);
    color: var(--on-dark);
}

.photo-band > img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1) contrast(1.05) brightness(0.8);
}

.photo-band::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(15, 17, 20, 0.97) 0%, rgba(15, 17, 20, 0.86) 45%,
            rgba(15, 17, 20, 0.35) 100%),
        linear-gradient(0deg, rgba(208, 18, 27, 0.28), rgba(208, 18, 27, 0) 60%);
}

.photo-band .container {
    padding-block: clamp(5rem, 11vw, 9rem);
}

.photo-band-copy {
    max-width: 38rem;
}

.photo-band h2 {
    color: var(--white);
}

.photo-band p:not(.eyebrow) {
    color: var(--muted-dark);
    font-size: 1.1rem;
}

/* ----- Stats ------------------------------------------------------------------------ */

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
    gap: 1px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--line);
    list-style: none;
}

.stats li {
    padding: 1.75rem 1.5rem;
    background: var(--white);
}

.stats strong {
    display: block;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
}

.stats strong em {
    color: var(--red);
    font-style: normal;
}

.stats span {
    display: block;
    margin-top: 0.5rem;
    color: var(--muted);
    font-size: 0.95rem;
}

/* ----- Inner page hero -------------------------------------------------------------- */

.page-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--ink);
    color: var(--on-dark);
}

.page-hero-texture {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.page-hero-texture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2;
    -webkit-mask-image: linear-gradient(90deg, transparent 25%, #000 80%);
    mask-image: linear-gradient(90deg, transparent 25%, #000 80%);
}

.page-hero::after {
    content: "";
    position: absolute;
    inset: auto -10% -60% auto;
    z-index: -1;
    width: 40rem;
    height: 40rem;
    background: radial-gradient(closest-side, rgba(208, 18, 27, 0.25), transparent);
}

.page-hero .container {
    padding-block: clamp(3rem, 7vw, 5.5rem);
}

.page-hero h1 {
    max-width: 50rem;
    color: var(--white);
    font-size: clamp(2.2rem, 4.6vw, 3.5rem);
}

.page-hero .lead {
    max-width: 44rem;
    margin-bottom: 0;
    color: var(--muted-dark);
}

.page-hero .hero-actions {
    margin-top: 1.75rem;
}

.crumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0 0 1.5rem;
    padding: 0;
    list-style: none;
    color: var(--muted-dark);
    font-size: 0.88rem;
}

.crumbs li + li::before {
    content: "/";
    margin-right: 0.4rem;
    opacity: 0.5;
}

.crumbs a {
    color: var(--muted-dark);
    text-decoration: none;
}

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

/* ----- Sub-navigation on the features page ------------------------------------------ */

.subnav {
    position: sticky;
    top: var(--header-h);
    z-index: 40;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.subnav ul {
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0.9rem 0;
    overflow-x: auto;
    list-style: none;
    scrollbar-width: none;
}

.subnav a {
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.subnav a:hover {
    color: var(--red);
}

/* ----- Feature detail blocks --------------------------------------------------------- */

.feature-block {
    padding-block: clamp(3.5rem, 7vw, 5.5rem);
    border-bottom: 1px solid var(--line);
}

.feature-block:last-child {
    border-bottom: 0;
}

.mini-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
    gap: 1.5rem 2rem;
    margin-top: 2.25rem;
}

.mini {
    display: flex;
    gap: 0.9rem;
}

.mini .icon {
    width: 1.4rem;
    height: 1.4rem;
    margin-top: 0.15rem;
    color: var(--red);
}

.mini h3 {
    margin-bottom: 0.3rem;
    font-size: 1.05rem;
}

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

.section-dark .mini p {
    color: var(--muted-dark);
}

.section-dark .mini .icon {
    color: var(--red-bright);
}

.report-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
    gap: 0.75rem;
    margin: 2rem 0 0;
    padding: 0;
    list-style: none;
}

.report-list li {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    padding: 0.9rem 1.1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    font-weight: 500;
}

.report-list .icon {
    color: var(--red);
}

.note {
    display: flex;
    gap: 0.9rem;
    margin-top: 2rem;
    padding: 1.1rem 1.25rem;
    border-left: 4px solid var(--red);
    border-radius: 0 var(--radius) var(--radius) 0;
    background: var(--paper);
    color: var(--muted);
    font-size: 0.97rem;
}

.note .icon {
    margin-top: 0.15rem;
    color: var(--red);
}

.note p {
    margin: 0;
}

.soon {
    display: inline-block;
    margin-left: 0.4rem;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    background: var(--ink);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    vertical-align: middle;
}

/* ----- Steps ------------------------------------------------------------------------ */

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
    gap: 1.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.steps li {
    position: relative;
    padding: 1.75rem 1.5rem 1.5rem;
    border-top: 3px solid var(--red);
    border-radius: 0 0 var(--radius) var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
    counter-increment: step;
}

.steps li::before {
    content: counter(step, decimal-leading-zero);
    display: block;
    margin-bottom: 0.75rem;
    color: var(--red);
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.steps h3 {
    font-size: 1.1rem;
}

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

/* ----- Pricing ---------------------------------------------------------------------- */

.plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
    gap: 1.25rem;
    align-items: stretch;
}

.plan {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 2rem 1.75rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow);
}

.plan-featured {
    border: 2px solid var(--red);
    box-shadow: 0 24px 60px rgba(208, 18, 27, 0.16);
}

.plan-badge {
    position: absolute;
    top: -0.85rem;
    left: 1.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: var(--red);
    color: var(--white);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.plan-name {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    margin-bottom: 0.4rem;
    font-size: 1.5rem;
}

.plan-tier {
    color: var(--muted);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
}

.plan-blurb {
    min-height: 3.2em;
    color: var(--muted);
}

.plan-price {
    display: flex;
    align-items: baseline;
    gap: 0.15rem;
    margin: 0.5rem 0 0.25rem;
    color: var(--ink);
    font-family: var(--font-display);
}

.plan-currency {
    font-size: 1.6rem;
    font-weight: 700;
}

.plan-amount {
    font-size: 3.4rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
}

.plan-per {
    margin-left: 0.4rem;
    color: var(--muted);
    font-family: var(--font-body);
    font-size: 0.95rem;
}

.plan-billing {
    margin-bottom: 1.5rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.plan .btn {
    width: 100%;
}

.plan-list {
    display: grid;
    gap: 0.6rem;
    margin: 1.75rem 0 0;
    padding: 1.5rem 0 0;
    border-top: 1px solid var(--line);
    list-style: none;
    font-size: 0.97rem;
}

.plan-list li {
    display: flex;
    gap: 0.6rem;
}

.plan-list .icon {
    width: 1.15rem;
    height: 1.15rem;
    margin-top: 0.2rem;
    color: var(--red);
    stroke-width: 3;
}

.plans-note {
    margin-top: 1.75rem;
    color: var(--muted);
    text-align: center;
}

/* Positioned so the absolutely positioned .sr-only labels inside the table stay inside
   the scroll box instead of widening the page on phones. */
.table-scroll {
    position: relative;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--white);
}

.compare {
    width: 100%;
    min-width: 36rem;
    border-collapse: collapse;
    font-size: 0.97rem;
}

.compare th,
.compare td {
    padding: 0.95rem 1.25rem;
    border-bottom: 1px solid var(--line);
    text-align: center;
}

.compare tbody tr:last-child th,
.compare tbody tr:last-child td {
    border-bottom: 0;
}

.compare thead th {
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 1.1rem;
}

.compare thead th span {
    display: block;
    color: var(--muted);
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 500;
}

.compare tbody th {
    font-weight: 500;
    text-align: left;
}

.compare .icon {
    margin: 0 auto;
}

.compare .yes {
    color: var(--red);
    stroke-width: 3;
}

.compare .no {
    color: #b9bdc5;
}

.compare-wrap {
    margin-top: clamp(3rem, 6vw, 4.5rem);
}

/* ----- Callout ---------------------------------------------------------------------- */

.callout {
    position: relative;
    display: grid;
    gap: 1.5rem;
    align-items: center;
    overflow: hidden;
    padding: clamp(1.75rem, 4vw, 3rem);
    border-radius: var(--radius-lg);
    background: var(--ink);
    color: var(--on-dark);
}

.callout::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: var(--belts);
}

.callout h2,
.callout h3 {
    color: var(--white);
}

.callout p {
    margin: 0;
    color: var(--muted-dark);
}

@media (min-width: 52rem) {
    .callout {
        grid-template-columns: 1fr auto;
    }
}

/* ----- FAQ -------------------------------------------------------------------------- */

.faq {
    display: grid;
    gap: 0.75rem;
}

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

.faq-item summary {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.35rem;
    font-family: var(--font-display);
    font-size: 1.08rem;
    font-weight: 600;
    list-style: none;
    cursor: pointer;
}

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

.faq-item summary::after {
    content: "+";
    flex: none;
    color: var(--red);
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1;
    transition: transform 0.2s;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 1.35rem 1.2rem;
    color: var(--muted);
}

.faq-answer p {
    margin: 0;
}

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

.cta-band {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--ink);
    color: var(--on-dark);
    text-align: center;
}

.cta-photo {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.cta-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1) brightness(0.55);
}

.cta-band::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse 60% 80% at 50% 120%, rgba(208, 18, 27, 0.55), transparent),
        linear-gradient(rgba(15, 17, 20, 0.82), rgba(15, 17, 20, 0.9));
}

.cta-inner {
    padding-block: clamp(4.5rem, 10vw, 7.5rem);
}

.cta-band h2 {
    max-width: 40rem;
    margin-inline: auto;
    color: var(--white);
}

.cta-band p {
    max-width: 36rem;
    margin-inline: auto;
    color: var(--muted-dark);
    font-size: 1.1rem;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.9rem;
    margin-top: 2rem;
}

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

.contact-grid {
    display: grid;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}

@media (min-width: 60rem) {
    .contact-grid {
        grid-template-columns: 1.35fr 1fr;
    }
}

.form-card {
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow);
}

.contact-form {
    display: grid;
    gap: 1.1rem;
}

.field-row {
    display: grid;
    gap: 1.1rem;
}

@media (min-width: 40rem) {
    .field-row {
        grid-template-columns: 1fr 1fr;
    }
}

.field {
    display: grid;
    gap: 0.4rem;
}

.field label {
    font-size: 0.93rem;
    font-weight: 600;
}

.req {
    color: var(--red);
}

.opt {
    color: var(--muted);
    font-weight: 400;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border: 1px solid #cfccc5;
    border-radius: 10px;
    background: var(--white);
    color: var(--text);
    font: inherit;
    font-size: 1rem;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.field textarea {
    resize: vertical;
    min-height: 9rem;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 4px rgba(208, 18, 27, 0.15);
}

.honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-privacy {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.contact-form .btn {
    justify-self: start;
}

.form-status {
    margin: 0;
    font-weight: 500;
}

.form-status:empty {
    display: none;
}

.form-status.is-ok {
    padding: 0.9rem 1rem;
    border-radius: 10px;
    background: #e9f6ee;
    color: #1d6b3a;
}

.form-status.is-error {
    padding: 0.9rem 1rem;
    border-radius: 10px;
    background: var(--red-soft);
    color: var(--red-hover);
}

.aside-block + .aside-block {
    margin-top: 2.25rem;
}

.aside-block h2 {
    font-size: 1.35rem;
}

.aside-block ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.aside-block li {
    display: flex;
    gap: 0.7rem;
    padding: 0.45rem 0;
    color: var(--muted);
}

.aside-block li .icon {
    width: 1.15rem;
    height: 1.15rem;
    margin-top: 0.25rem;
    color: var(--red);
}

/* ----- Prose (legal pages, About) --------------------------------------------------- */

.prose {
    font-size: 1.03rem;
}

.prose h2 {
    margin-top: 2.5em;
    font-size: 1.6rem;
}

.prose h3 {
    margin-top: 1.8em;
    font-size: 1.2rem;
}

.prose p,
.prose li {
    color: #353a43;
}

.prose li + li {
    margin-top: 0.4em;
}

.prose .updated {
    color: var(--muted);
    font-size: 0.95rem;
}

.toc {
    margin: 2rem 0 0;
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
}

.toc h2 {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.toc ol {
    margin: 0;
    columns: 2 16rem;
}

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

/* ----- Footer ----------------------------------------------------------------------- */

.site-footer {
    background: var(--ink);
    color: var(--muted-dark);
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
    gap: 2.5rem;
    padding-block: 4rem 3rem;
}

.footer-brand {
    grid-column: 1 / -1;
    max-width: 22rem;
}

@media (min-width: 60rem) {
    .footer-grid {
        grid-template-columns: 1.6fr repeat(3, 1fr);
    }

    .footer-brand {
        grid-column: auto;
    }
}

.footer-brand .brand {
    display: inline-block;
    margin-bottom: 1rem;
}

.footer-place {
    color: #7d8490;
}

.footer-col h2 {
    margin-bottom: 1rem;
    color: var(--white);
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.footer-col ul {
    display: grid;
    gap: 0.55rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer a {
    color: var(--muted-dark);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--white);
}

.footer-base {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    padding-block: 1.5rem 2.5rem;
    border-top: 1px solid var(--line-dark);
    font-size: 0.88rem;
}

.footer-base p {
    margin: 0;
}

.footer-base ul {
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* ----- 404 -------------------------------------------------------------------------- */

.not-found {
    min-height: 60vh;
    display: grid;
    place-items: center;
    text-align: center;
}

.not-found .code {
    color: var(--red-bright);
    font-family: var(--font-display);
    font-size: clamp(5rem, 16vw, 9rem);
    font-weight: 800;
    line-height: 1;
}

/* ----- Scroll reveal ---------------------------------------------------------------- */

/* Scroll-driven animation needs no script; browsers without it simply show the content. */
@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        .reveal {
            animation: reveal linear both;
            animation-timeline: view();
            animation-range: entry 0% entry 40%;
        }
    }
}

@keyframes reveal {
    from {
        opacity: 0;
        transform: translateY(28px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@media print {
    .site-header,
    .site-footer,
    .cta-band,
    .subnav {
        display: none;
    }
}

.callout-spaced {
    margin-top: 2.5rem;
}

.report-list + h3 {
    margin-top: 2.5rem;
}

/* Keep the feature names in view while the plan columns scroll on phones. */
.compare tbody th,
.compare thead td {
    position: sticky;
    left: 0;
    z-index: 1;
    background: var(--white);
}
