/*
 * ReviewBase marketing site stylesheet.
 * Sections: fonts, tokens, base, layout, buttons, header, hero, product illustrations, sections,
 * FAQ, call to action, footer, legal and error pages, motion.
 */

/* Fonts ------------------------------------------------------------------ */

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
        U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
        U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Tokens ----------------------------------------------------------------- */

:root {
    --brand: #273251;
    --brand-hover: #1c2440;
    --accent: #4545ff;
    --accent-hover: #3434e8;
    --accent-soft: #eeefff;
    --accent-ring: rgba(69, 69, 255, 0.35);

    --bg: #f4f6fa;
    --bg-muted: #eceff5;
    --surface: #ffffff;
    --surface-muted: #f8f9fc;
    --border: #e2e6ee;
    --border-strong: #d3d9e4;

    --heading: #161d30;
    --text: #1f2738;
    --text-muted: #4f586e;
    --text-subtle: #636c81;

    --star: #f59e0b;
    --star-empty: #d9dee8;
    --success: #15803d;
    --success-soft: #e7f6ec;
    --warning: #a35d06;
    --warning-soft: #fdf2e0;
    --danger: #c0352b;
    --danger-soft: #fdeceb;

    --dark: #273251;
    --dark-deep: #1d2540;
    --on-dark: #ffffff;
    --on-dark-muted: rgba(255, 255, 255, 0.72);
    --on-dark-border: rgba(255, 255, 255, 0.12);

    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;

    --shadow-xs: 0 1px 2px rgba(22, 29, 48, 0.05);
    --shadow-sm: 0 1px 2px rgba(22, 29, 48, 0.04), 0 2px 6px -1px rgba(22, 29, 48, 0.06);
    --shadow: 0 1px 3px rgba(22, 29, 48, 0.05), 0 8px 24px -6px rgba(22, 29, 48, 0.1);
    --shadow-lg: 0 2px 6px rgba(22, 29, 48, 0.04), 0 30px 60px -18px rgba(22, 29, 48, 0.24);

    --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --container: 1180px;
    --gutter: 16px;
    --header-h: 64px;
}

@media (min-width: 640px) {
    :root { --gutter: 24px; }
}

@media (min-width: 1024px) {
    :root { --gutter: 32px; }
}

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

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

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

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    font-feature-settings: "cv11", "ss01";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

main {
    flex: 1 0 auto;
}

main:focus {
    outline: none;
}

h1, h2, h3, h4, p, ul, ol, figure, blockquote {
    margin: 0;
}

ul, ol {
    padding: 0;
    list-style: none;
}

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

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

strong {
    font-weight: 600;
}

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

::selection {
    background: rgba(69, 69, 255, 0.18);
}

.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: var(--gutter);
    top: -100px;
    z-index: 100;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    background: var(--brand);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
}

.skip-link:focus {
    top: 12px;
}

.container {
    width: 100%;
    max-width: calc(var(--container) + 2 * var(--gutter));
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent);
    font-weight: 500;
}

.text-link:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.text-link :is(i, svg) {
    font-size: 0.8em;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: 8px;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.btn :is(i, svg) {
    font-size: 0.875em;
}

.btn-lg {
    height: 48px;
    padding: 0 22px;
    border-radius: 10px;
    font-size: 1rem;
}

.btn-primary {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 1px 2px rgba(39, 50, 81, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    background: var(--brand-hover);
}

.btn-outline {
    background: var(--surface);
    border-color: var(--border-strong);
    color: var(--heading);
    box-shadow: var(--shadow-xs);
}

.btn-outline:hover {
    background: var(--surface-muted);
    border-color: #c4cbd8;
}

.btn-ghost {
    background: transparent;
    color: var(--text);
}

.btn-ghost:hover {
    background: rgba(39, 50, 81, 0.06);
}

.btn-light {
    background: #fff;
    color: var(--brand);
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-light:hover {
    background: #eef0f7;
}

.btn-ghost-light {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.28);
    color: #fff;
}

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

.cta :focus-visible,
.site-footer :focus-visible {
    outline-color: #fff;
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    background: var(--surface);
    color: var(--heading);
    cursor: pointer;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(244, 246, 250, 0.82);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid rgba(211, 217, 228, 0.6);
    transition: box-shadow 0.2s ease, background-color 0.2s ease;
}

.site-header.is-scrolled {
    background: rgba(244, 246, 250, 0.92);
    box-shadow: 0 1px 0 rgba(22, 29, 48, 0.02), 0 6px 20px -12px rgba(22, 29, 48, 0.18);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    height: var(--header-h);
}

.brand {
    flex: none;
    border-radius: 6px;
}

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

.nav-main {
    margin-inline: auto;
}

.nav-list {
    display: flex;
    gap: 2px;
}

.nav-list a {
    display: block;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.15s ease, background-color 0.15s ease;
}

.nav-list a:hover {
    color: var(--heading);
    background: rgba(39, 50, 81, 0.05);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Language switcher */

.lang-switch {
    position: relative;
}

.lang-switch summary {
    list-style: none;
    gap: 6px;
    padding: 0 10px;
    color: var(--text-muted);
}

.lang-switch summary::-webkit-details-marker,
.mobile-menu summary::-webkit-details-marker,
.faq-item summary::-webkit-details-marker {
    display: none;
}

.lang-switch summary:hover {
    color: var(--heading);
}

.lang-chevron {
    font-size: 0.65rem !important;
    transition: transform 0.15s ease;
}

.lang-switch[open] .lang-chevron {
    transform: rotate(180deg);
}

.lang-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    min-width: 168px;
    padding: 4px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.lang-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 0.875rem;
    color: var(--text);
}

.lang-menu a:hover {
    background: var(--bg);
}

.lang-menu a[aria-current] {
    font-weight: 600;
}

.lang-menu :is(i, svg) {
    color: var(--accent);
    font-size: 0.75rem;
}

/* Mobile menu */

.mobile-menu {
    display: none;
}

.mobile-menu summary {
    list-style: none;
}

.mobile-menu .icon-open,
.mobile-menu[open] .icon-closed {
    display: none;
}

.mobile-menu[open] .icon-open {
    display: inline-block;
}

.mobile-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    padding: 12px var(--gutter) 20px;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    box-shadow: 0 18px 30px -18px rgba(22, 29, 48, 0.3);
}

.mobile-nav a {
    display: block;
    padding: 12px 4px;
    border-bottom: 1px solid var(--border);
    font-weight: 500;
    color: var(--heading);
}

.mobile-langs {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.mobile-langs a {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.mobile-langs a[aria-current] {
    border-color: var(--brand);
    color: var(--heading);
    font-weight: 600;
}

.mobile-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 16px;
}

@media (max-width: 959px) {
    .nav-main,
    .header-actions .lang-switch,
    .header-signin {
        display: none;
    }

    .header-actions {
        margin-left: auto;
    }

    .mobile-menu {
        display: block;
    }
}

@media (max-width: 379px) {
    .header-cta {
        display: none;
    }
}

@media (max-width: 479px) {
    .pill {
        font-size: 0.75rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        max-width: 320px;
        margin-inline: auto;
    }
}

/* Shared section typography ---------------------------------------------- */

.section {
    padding-block: clamp(72px, 10vw, 120px);
}

.section-head {
    max-width: 680px;
    margin-bottom: clamp(40px, 5vw, 56px);
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--accent);
}

.eyebrow-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 7px;
    background: var(--accent-soft);
    font-size: 0.75rem;
}

h2 {
    font-size: clamp(1.75rem, 3.4vw, 2.625rem);
    line-height: 1.14;
    letter-spacing: -0.03em;
    font-weight: 700;
    color: var(--heading);
    text-wrap: balance;
}

h3 {
    font-size: 1.0625rem;
    line-height: 1.4;
    letter-spacing: -0.01em;
    font-weight: 600;
    color: var(--heading);
}

.lead {
    margin-top: 16px;
    font-size: clamp(1rem, 1.4vw, 1.125rem);
    line-height: 1.65;
    color: var(--text-muted);
    text-wrap: pretty;
}

/* Hero ------------------------------------------------------------------- */

.hero {
    position: relative;
    padding-top: clamp(48px, 8vw, 96px);
    padding-bottom: clamp(56px, 8vw, 96px);
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 760px;
    background-image:
        linear-gradient(to right, rgba(39, 50, 81, 0.055) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(39, 50, 81, 0.055) 1px, transparent 1px);
    background-size: 56px 56px;
    background-position: center top;
    -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 0%, #000 30%, transparent 100%);
    mask-image: radial-gradient(ellipse 60% 70% at 50% 0%, #000 30%, transparent 100%);
    pointer-events: none;
}

.hero-copy {
    position: relative;
    max-width: 1080px;
    margin-inline: auto;
    text-align: center;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 4px 14px 4px 4px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    box-shadow: var(--shadow-xs);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-muted);
}

.pill-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.6875rem;
}

.hero-title {
    margin-top: 24px;
    font-size: clamp(2.125rem, 5.6vw, 4.25rem);
    line-height: 1.04;
    letter-spacing: -0.045em;
    font-weight: 750;
    color: var(--heading);
    text-wrap: balance;
}

.nowrap {
    white-space: nowrap;
}

.hero-title .hl {
    display: block;
}

.hl {
    background: linear-gradient(92deg, #4545ff 10%, #2a7dff 90%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

.hero-lead {
    max-width: 660px;
    margin: 24px auto 0;
    font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
    line-height: 1.6;
    color: var(--text-muted);
    text-wrap: pretty;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 36px;
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 28px;
    margin-top: 28px;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.hero-points li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero-points :is(i, svg) {
    color: var(--accent);
}

.hero-visual {
    position: relative;
    max-width: 1120px;
    margin: clamp(48px, 7vw, 80px) auto 0;
}

.hero-visual::before {
    content: "";
    position: absolute;
    inset: -8% 8% 20%;
    background:
        radial-gradient(45% 55% at 35% 45%, rgba(69, 69, 255, 0.32), transparent 70%),
        radial-gradient(40% 50% at 70% 40%, rgba(10, 185, 255, 0.24), transparent 70%);
    filter: blur(48px);
    pointer-events: none;
}

/* Product illustrations: shared parts ------------------------------------ */

.mock,
.stage {
    font-size: 13px;
    line-height: 1.45;
    color: var(--text);
    text-align: left;
}

.mock p,
.stage p {
    margin: 0;
}

.stars {
    display: inline-flex;
    gap: 2px;
    color: var(--star);
    font-size: 10px;
    line-height: 1;
}

.stars .is-empty {
    color: var(--star-empty);
}

.pf {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 6px;
    background: var(--bg);
    border: 1px solid var(--border);
    font-size: 11px;
    color: var(--text-muted);
}

.pf-google { color: #3b6fe0; }
.pf-facebook { color: #1877f2; }
.pf-trustpilot { color: #00a26b; }
.pf-provenexpert { color: #b7791f; }
.pf-tripadvisor { color: #00875a; }
.pf-appstore { color: #0d84e3; }
.pf-googleplay { color: #01875f; }

.avatar {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    background: #8792aa;
}

.avatar-r1 { background: #6a74d9; }
.avatar-r2 { background: #3f9a85; }
.avatar-r3 { background: #c0843a; }
.avatar-r4 { background: #9aa3b5; }
.avatar-i1 { background: #4f8fd6; }

.status {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 5px;
    height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}

.status :is(i, svg) {
    font-size: 9px;
}

.status-open {
    background: var(--warning-soft);
    color: var(--warning);
}

.status-replied {
    background: var(--success-soft);
    color: var(--success);
}

.status-reported {
    background: var(--danger-soft);
    color: var(--danger);
}

.mock-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 30px;
    padding: 0 11px;
    border: 1px solid var(--border-strong);
    border-radius: 7px;
    background: var(--surface);
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    color: var(--heading);
}

.mock-btn :is(i, svg) {
    font-size: 11px;
}

.mock-btn-primary {
    border-color: var(--brand);
    background: var(--brand);
    color: #fff;
}

.mock-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-subtle);
}

.mock-muted {
    font-size: 11.5px;
    color: var(--text-subtle);
}

.mock-time {
    margin-left: auto;
    font-size: 11.5px;
    white-space: nowrap;
    color: var(--text-subtle);
}

.mock-review-top {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mock-review-top strong {
    font-weight: 600;
    color: var(--heading);
}

.mock-detail-meta {
    display: flex;
    white-space: nowrap;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: var(--text-subtle);
}

.mock-detail-meta .pf {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    font-size: 9px;
}

.mock-quote {
    margin-top: 12px;
    color: var(--text);
}

.composer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-subtle);
}

.ai-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.ai-tag :is(i, svg) {
    font-size: 10px;
}

.composer-text {
    margin-top: 10px !important;
    color: var(--heading);
}

.composer-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.caret {
    display: inline-block;
    width: 1.5px;
    height: 1.1em;
    margin-left: 2px;
    vertical-align: text-bottom;
    background: var(--accent);
    animation: blink 1.1s steps(2, start) infinite;
}

@keyframes blink {
    to { visibility: hidden; }
}

/* Dashboard miniature ---------------------------------------------------- */

.mock {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-lg), 0 0 0 6px rgba(255, 255, 255, 0.55);
}

.mock-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 40px;
    padding: 0 14px;
    border-bottom: 1px solid var(--border);
    background: var(--surface-muted);
}

.mock-dots {
    display: inline-flex;
    gap: 6px;
}

.mock-dots span {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #d9dee8;
}

.mock-url {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-inline: auto;
    padding: 3px 14px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface);
    font-size: 11.5px;
    color: var(--text-subtle);
    transform: translateX(-24px);
}

.mock-url :is(i, svg) {
    font-size: 9px;
}

.mock-body {
    display: grid;
    grid-template-columns: 196px minmax(0, 1fr);
}

.mock-side {
    padding: 14px 10px;
    border-right: 1px solid var(--border);
    background: var(--surface-muted);
}

.mock-ws {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px 14px;
    font-weight: 600;
    color: var(--heading);
}

.mock-ws img {
    width: 22px;
    height: 22px;
}

.mock-ws :is(i, svg) {
    margin-left: auto;
    font-size: 9px;
    color: var(--text-subtle);
}

.mock-nav li {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 32px;
    padding: 0 10px;
    margin-bottom: 2px;
    border: 1px solid transparent;
    border-radius: 7px;
    color: var(--text-muted);
}

.mock-nav :is(i, svg) {
    width: 14px;
    text-align: center;
    font-size: 12px;
    color: var(--text-subtle);
}

.mock-nav .is-active {
    border-color: var(--border);
    background: var(--surface);
    box-shadow: var(--shadow-xs);
    font-weight: 500;
    color: var(--heading);
}

.mock-nav .is-active :is(i, svg) {
    color: var(--accent);
}

.mock-count {
    margin-left: auto;
    padding: 0 7px;
    border-radius: 999px;
    background: var(--brand);
    font-size: 10.5px;
    font-weight: 600;
    line-height: 18px;
    color: #fff;
}

.mock-main {
    min-width: 0;
    padding: 20px;
    background: #f6f7fb;
}

.mock-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.mock-h {
    font-size: 16px;
    font-weight: 650;
    letter-spacing: -0.01em;
    color: var(--heading);
}

.mock-sub {
    font-size: 12px;
    color: var(--text-subtle);
}

.mock-card {
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-xs);
}

.mock-scores {
    display: grid;
    grid-template-columns: 1.3fr repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.mock-overall {
    background: linear-gradient(160deg, #ffffff 40%, #f1f2ff 100%);
}

.mock-big {
    margin: 6px 0 6px !important;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--heading);
    font-variant-numeric: tabular-nums;
}

.mock-big span {
    margin-left: 2px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0;
    color: var(--text-subtle);
}

.mock-overall .stars {
    font-size: 12px;
}

.mock-overall .mock-muted {
    margin-top: 8px;
}

.mock-pf {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
}

.mock-pf span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mock-mid {
    margin: 10px 0 4px !important;
    font-size: 20px;
    font-weight: 650;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--heading);
    font-variant-numeric: tabular-nums;
}

.mock-platform .mock-muted {
    margin-top: 6px;
}

/* Profile tracked via its public link */
.mock-platform.is-public {
    position: relative;
}

.mock-public {
    position: absolute;
    top: 10px;
    right: 10px;
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 9px;
}

.mock-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 12px;
    margin-top: 12px;
}

.mock-card-h {
    margin-bottom: 8px !important;
    font-size: 13px;
    font-weight: 600;
    color: var(--heading);
}

.mock-list {
    padding: 14px 8px 8px;
}

.mock-list .mock-card-h {
    padding-inline: 6px;
}

.mock-review {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
    gap: 10px;
    padding: 10px 8px;
    border-radius: 8px;
}

.mock-review + .mock-review {
    margin-top: 2px;
}

.mock-review.is-selected {
    background: #f3f4ff;
    box-shadow: inset 0 0 0 1px rgba(69, 69, 255, 0.18);
}

.mock-review-body {
    min-width: 0;
}

.mock-review-body .mock-review-top {
    gap: 6px;
    margin-bottom: 3px;
}

.mock-review-body .pf {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    font-size: 9px;
}

.mock-review-body .mock-time {
    margin-left: 0;
}

.mock-snippet {
    margin-top: 4px !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-muted);
}

.mock-review-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.mock-review-side .mock-time {
    margin-left: 0;
}

.mock-detail {
    display: flex;
    flex-direction: column;
    padding: 16px;
}

.mock-detail > .mock-review-top > div {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.mock-detail > .mock-review-top .stars {
    margin-left: auto;
    font-size: 11px;
}

.composer {
    margin-top: 14px;
    padding: 12px;
    border: 1px solid rgba(69, 69, 255, 0.45);
    border-radius: 9px;
    background: var(--surface);
    box-shadow: 0 0 0 3px rgba(69, 69, 255, 0.1);
}

.mock-detail .composer {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.composer .composer-actions {
    margin-top: auto;
    padding-top: 12px;
}

.toast {
    position: absolute;
    left: clamp(-24px, -2vw, 0px);
    bottom: -18px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px 10px 10px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: var(--shadow);
    font-size: 13px;
    font-weight: 500;
    color: var(--heading);
}

.toast-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: var(--success-soft);
    color: var(--success);
    font-size: 11px;
}

@media (max-width: 1099px) {
    .mock-body {
        grid-template-columns: minmax(0, 1fr);
    }

    .mock-side {
        display: none;
    }

    .toast {
        left: 16px;
    }
}

@media (max-width: 799px) {
    .mock-scores {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mock-overall {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: auto 1fr;
        align-items: center;
        column-gap: 16px;
    }

    .mock-overall .mock-label {
        grid-column: 1 / -1;
    }

    .mock-overall .mock-big {
        grid-row: 2 / span 2;
    }

    .mock-overall .mock-muted {
        margin-top: 4px;
    }

    .mock-split {
        grid-template-columns: minmax(0, 1fr);
    }

    .mock-list li:nth-child(n + 3) {
        display: none;
    }

    .toast {
        display: none;
    }
}

@media (max-width: 479px) {
    .mock-main {
        padding: 12px;
    }

    .mock-list {
        display: none;
    }

    .mock-head .mock-btn span {
        display: none;
    }

    .mock-url {
        transform: none;
    }

    .mock-review {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .mock-review-side {
        grid-column: 2;
        flex-direction: row;
        align-items: center;
        justify-self: start;
    }
}

/* Platform strip --------------------------------------------------------- */

.platforms {
    padding-block: 8px clamp(40px, 6vw, 64px);
}

.platforms-label {
    margin-bottom: 20px;
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0;
    text-align: center;
    color: var(--text-subtle);
}

.platform-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.platform-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 44px;
    padding: 0 18px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    box-shadow: var(--shadow-xs);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--heading);
}

.platform-chip :is(i, svg) {
    font-size: 1rem;
    color: var(--text-muted);
}

.platforms-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
    font-size: 0.875rem;
    color: var(--text-subtle);
}

.platforms-more :is(i, svg) {
    font-size: 0.75rem;
}

/* Feature grid ----------------------------------------------------------- */

.features {
    padding-top: clamp(24px, 4vw, 40px);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 16px;
}

.feature-card {
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-xs);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-sm);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: linear-gradient(180deg, #ffffff, var(--surface-muted));
    box-shadow: var(--shadow-xs);
    font-size: 1.0625rem;
    color: var(--accent);
}

.feature-card p {
    margin-top: 8px;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text-muted);
}

@media (min-width: 960px) {
    .feature-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Feature detail sections ------------------------------------------------ */

.detail {
    padding-block: clamp(56px, 8vw, 96px);
}

#inbox {
    border-top: 1px solid var(--border);
    background: var(--surface);
}

#replies {
    background: var(--surface);
}

#report {
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    align-items: center;
}

.detail-copy {
    max-width: 540px;
}

.detail h2 {
    font-size: clamp(1.75rem, 3vw, 2.375rem);
}

.check-list {
    display: grid;
    gap: 14px;
    margin-top: 28px;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text);
}

.check-list li > span:last-child {
    text-wrap: pretty;
}

.check-icon {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.6875rem;
}

.stage {
    position: relative;
    display: grid;
    gap: 14px;
    padding: clamp(20px, 4vw, 44px);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background:
        radial-gradient(70% 60% at 85% 0%, rgba(69, 69, 255, 0.09), transparent 70%),
        radial-gradient(60% 60% at 0% 100%, rgba(10, 185, 255, 0.08), transparent 70%),
        var(--bg);
    overflow: hidden;
}

.stage::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(39, 50, 81, 0.09) 1px, transparent 1px);
    background-size: 18px 18px;
    -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%);
    mask-image: linear-gradient(180deg, #000, transparent 85%);
    pointer-events: none;
}

.ill-card {
    position: relative;
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.ill-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--border);
}

.ill-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--heading);
}

.ill-title :is(i, svg) {
    color: var(--text-subtle);
}

.ill-select {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 28px;
    padding: 0 10px;
    border: 1px solid var(--border-strong);
    border-radius: 7px;
    font-size: 12px;
    color: var(--text-muted);
}

.ill-select :is(i, svg) {
    font-size: 9px;
}

/* Inbox illustration */

.ill-inbox {
    padding-bottom: 8px;
}

.ill-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
    gap: 12px;
    padding: 12px 4px;
}

.ill-row + .ill-row {
    border-top: 1px solid var(--border);
}

.ill-row .pf {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    font-size: 14px;
}

.ill-row-top {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ill-row-top strong {
    font-weight: 600;
    color: var(--heading);
}

.ill-row-top .mock-time {
    margin-left: 0;
}

.ill-text {
    margin-top: 3px !important;
    color: var(--text-muted);
}

.ill-row.is-open .ill-text {
    color: var(--text);
}

.ill-head-meta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.ill-open-count {
    font-size: 12px;
    font-weight: 500;
    color: var(--warning);
    white-space: nowrap;
}

.ill-scores {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.ill-mini {
    padding: 12px 14px;
    box-shadow: var(--shadow-sm);
}

.ill-mini.is-overall {
    background: linear-gradient(160deg, #ffffff 40%, #f1f2ff 100%);
}

.ill-mini-value {
    margin: 8px 0 4px !important;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--heading);
    font-variant-numeric: tabular-nums;
}

.ill-mini.is-overall .mock-label {
    line-height: 20px;
}

/* Reply illustration */

.ill-review {
    margin-right: clamp(0px, 10%, 88px);
}

.ill-review .mock-review-top > div {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.ill-review .mock-review-top > .stars {
    margin-left: auto;
    font-size: 11px;
}

.ill-draft {
    margin-left: clamp(0px, 10%, 88px);
    border-color: rgba(69, 69, 255, 0.4);
    box-shadow: var(--shadow), 0 0 0 4px rgba(69, 69, 255, 0.08);
}

.ill-draft-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.ill-draft-foot .composer-actions {
    flex-wrap: nowrap;
    margin-left: auto;
}

.ill-hint {
    flex-basis: 100%;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-subtle);
}

.ill-hint :is(i, svg) {
    color: var(--success);
}

/* Report illustration */

.ill-report {
    padding: 0;
    overflow: hidden;
}

.ill-report .ill-head {
    margin: 0;
    padding: 14px 16px;
}

.ill-report-body {
    padding: 16px;
}

.ill-reported {
    display: flex;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--surface-muted);
}

.ill-field-label {
    margin: 16px 0 8px !important;
    font-size: 12px;
    font-weight: 600;
    color: var(--heading);
}

.ill-options {
    display: grid;
    gap: 6px;
}

.ill-options li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-muted);
}

.ill-options .is-selected {
    border-color: rgba(69, 69, 255, 0.5);
    background: #f5f5ff;
    color: var(--heading);
    font-weight: 500;
}

.radio {
    flex: none;
    width: 14px;
    height: 14px;
    border: 1.5px solid var(--border-strong);
    border-radius: 999px;
    background: var(--surface);
}

.is-selected .radio {
    border: 4px solid var(--accent);
}

.ill-method {
    margin-top: 16px;
    padding: 14px;
    border: 1px dashed var(--border-strong);
    border-radius: 10px;
}

.ill-method-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--heading);
}

.ill-method-title :is(i, svg) {
    color: var(--accent);
}

.ill-method-hint {
    margin-top: 2px !important;
    font-size: 12px;
    color: var(--text-subtle);
}

.ill-method .ill-field-label {
    margin-top: 12px !important;
}

.ill-prepared {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ill-prepared li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--success-soft);
    font-size: 12px;
    font-weight: 500;
    color: var(--success);
}

.ill-prepared :is(i, svg) {
    font-size: 10px;
}

.ill-method .ill-tracking {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px !important;
}

.ill-tracking :is(i, svg) {
    flex: none;
    color: var(--accent);
}

.ill-foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    background: var(--surface-muted);
}

@media (min-width: 960px) {
    .detail-grid {
        grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
        gap: clamp(48px, 6vw, 88px);
    }

    .detail.is-reverse .detail-copy {
        order: 2;
    }
}

@media (max-width: 559px) {
    .ill-scores {
        gap: 8px;
    }

    .ill-mini {
        padding: 10px;
    }

    .ill-mini .mock-pf span:last-child {
        display: none;
    }

    .feature-card,
    .step {
        padding: 22px;
    }

    .faq-item summary {
        padding: 18px 20px;
    }

    .faq-answer {
        padding: 0 20px 20px;
    }

    .ill-open-count,
    .ill-select {
        display: none;
    }

    .ill-review .mock-review-top {
        flex-wrap: wrap;
    }

    .ill-review,
    .ill-draft {
        margin-inline: 0;
    }

    .ill-draft-foot .composer-actions {
        flex-wrap: wrap;
        justify-content: flex-start;
        margin-left: 0;
    }

    .ill-row {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .ill-row .status {
        grid-column: 2;
        justify-self: start;
    }

    .ill-row-top {
        flex-wrap: wrap;
        row-gap: 2px;
    }
}

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

.step-list {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    counter-reset: step;
}

.step {
    position: relative;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-xs);
}

.step-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.step-num {
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
}

.step-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    font-size: 1rem;
    box-shadow: 0 0 0 5px var(--surface-muted), 0 0 0 6px var(--border);
}

.step p {
    margin-top: 8px;
    font-size: 0.9375rem;
    color: var(--text-muted);
}

@media (min-width: 860px) {
    .step-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 20px;
    }
}

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

.faq {
    padding-top: 0;
}

.faq-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
}

.faq-head {
    margin-bottom: 32px;
}

.faq-contact {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-top: 24px;
    font-size: 0.9375rem;
    color: var(--text-muted);
}

.faq-contact a {
    color: var(--accent);
    font-weight: 500;
}

.faq-list {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-xs);
}

.faq-item + .faq-item {
    border-top: 1px solid var(--border);
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    list-style: none;
    cursor: pointer;
    font-weight: 600;
    color: var(--heading);
    border-radius: var(--radius-lg);
}

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

.faq-toggle {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.75rem;
    color: var(--text-muted);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.faq-item[open] .faq-toggle {
    transform: rotate(45deg);
    background: var(--bg);
}

.faq-answer {
    padding: 0 24px 22px;
    max-width: 680px;
    color: var(--text-muted);
}

.faq-answer p + p {
    margin-top: 12px;
}

@media (min-width: 960px) {
    .faq-grid {
        grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
        gap: 64px;
        align-items: start;
    }

    .faq-head {
        position: sticky;
        top: calc(var(--header-h) + 32px);
        margin-bottom: 0;
    }
}

/* Call to action --------------------------------------------------------- */

.cta {
    position: relative;
    overflow: hidden;
    padding-block: clamp(72px, 10vw, 120px);
    background: var(--dark);
    color: var(--on-dark);
    text-align: center;
}

.cta::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -260px;
    width: min(1000px, 140%);
    height: 520px;
    transform: translateX(-50%);
    background:
        radial-gradient(50% 50% at 40% 50%, rgba(69, 69, 255, 0.55), transparent 70%),
        radial-gradient(40% 45% at 65% 55%, rgba(10, 185, 255, 0.3), transparent 70%);
    filter: blur(40px);
    pointer-events: none;
}

.cta::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 56px 56px;
    background-position: center top;
    -webkit-mask-image: radial-gradient(ellipse 50% 70% at 50% 0%, #000 20%, transparent 100%);
    mask-image: radial-gradient(ellipse 50% 70% at 50% 0%, #000 20%, transparent 100%);
    pointer-events: none;
}

.cta-inner {
    position: relative;
    z-index: 1;
    max-width: 760px;
}

.cta-mark {
    width: 48px;
    height: 48px;
    margin: 0 auto 28px;
    filter: drop-shadow(0 8px 24px rgba(10, 185, 255, 0.35));
}

.cta h2 {
    color: #fff;
}

.cta-lead {
    max-width: 560px;
    margin: 16px auto 0;
    font-size: clamp(1rem, 1.4vw, 1.125rem);
    color: var(--on-dark-muted);
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 36px;
}

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

.site-footer {
    flex: none;
    padding-block: 56px 32px;
    border-top: 1px solid var(--on-dark-border);
    background: var(--dark-deep);
    color: var(--on-dark-muted);
    font-size: 0.875rem;
}

.footer-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
}

.footer-brand img {
    width: auto;
    height: 24px;
}

.footer-brand p {
    max-width: 280px;
    margin-top: 16px;
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 24px;
}

.footer-col h2 {
    margin-bottom: 14px;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.02em;
    color: #fff;
}

.footer-col li + li {
    margin-top: 10px;
}

.footer-col a {
    color: var(--on-dark-muted);
    transition: color 0.15s ease;
}

.footer-col a:hover,
.footer-col a[aria-current] {
    color: #fff;
}

.footer-bottom {
    display: grid;
    gap: 12px;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--on-dark-border);
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.6);
}

@media (min-width: 720px) {
    .footer-nav {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .footer-top {
        grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
        gap: 64px;
    }

}

/* Legal and error pages -------------------------------------------------- */

.legal {
    padding-block: clamp(40px, 6vw, 72px) clamp(72px, 10vw, 120px);
}

.legal-inner {
    max-width: calc(760px + 2 * var(--gutter));
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
}

.back-link:hover {
    color: var(--heading);
}

.back-link :is(i, svg) {
    font-size: 0.75rem;
}

.legal-head {
    margin: 32px 0 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
}

.legal h1,
.not-found h1 {
    font-size: clamp(2rem, 4.5vw, 3rem);
    line-height: 1.1;
    letter-spacing: -0.035em;
    font-weight: 700;
    color: var(--heading);
}

.notice {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-lg);
    background: var(--surface);
}

.notice-icon {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--accent-soft);
    color: var(--accent);
}

.notice h2 {
    font-size: 1.0625rem;
    letter-spacing: -0.01em;
}

.notice p {
    margin-top: 6px;
    color: var(--text-muted);
}

.prose {
    color: var(--text);
}

.prose h2 {
    margin: 40px 0 12px;
    font-size: 1.375rem;
    letter-spacing: -0.02em;
}

.prose h3 {
    margin: 28px 0 8px;
}

.prose p,
.prose ul,
.prose ol {
    margin-top: 12px;
}

.prose ul {
    padding-left: 1.25em;
    list-style: disc;
}

.prose ol {
    padding-left: 1.25em;
    list-style: decimal;
}

.prose a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.not-found {
    display: flex;
    align-items: center;
    min-height: 60vh;
    padding-block: 96px;
}

.not-found-inner {
    max-width: calc(640px + 2 * var(--gutter));
    text-align: center;
}

.not-found .lead {
    margin-bottom: 32px;
}

/* Motion ----------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

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

    .caret {
        animation: none;
    }
}
