/*
   Addeo Labs site theme. Same brand as the Addeo.fi app and addeo.finance:
   navy background (#0F172A), slate surfaces, mint (#3EFFA3) and gold (#D4AF37) accents,
   Playfair Display headings, Inter body, JetBrains Mono for labels.
   Tuned for a company site: one static glow instead of animated ones, more whitespace,
   mint kept for actions and status, gold for eyebrows and hairlines.
*/

/* ---------- Fonts (self-hosted variable fonts, latin subset, same files as addeo.finance) ---------- */

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

@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('assets/fonts/playfair-display-latin.woff2') format('woff2');
}

@font-face {
    font-family: 'Playfair Display';
    font-style: italic;
    font-weight: 400 700;
    font-display: swap;
    src: url('assets/fonts/playfair-display-italic-latin.woff2') format('woff2');
}

@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 400 500;
    font-display: swap;
    src: url('assets/fonts/jetbrains-mono-latin.woff2') format('woff2');
}

:root {
    --bg: #0F172A;
    --bg-deep: #0B1222;
    --surface: #1E293B;
    --surface-soft: rgba(30, 41, 59, 0.5);
    --surface-highlight: #334155;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.14);

    --text: #F8FAFC;
    --text-2: #94A3B8;
    /* Muted text: 5.5:1 on the page background, 4.7:1 on cards (WCAG AA) */
    --text-3: #8190A5;

    --mint: #3EFFA3;
    --green: #2ECC71;
    --gold: #D4AF37;
    --danger: #F87171;

    --mint-tint: rgba(62, 255, 163, 0.08);
    --mint-line: rgba(62, 255, 163, 0.28);

    --grad-accent: linear-gradient(90deg, var(--gold), var(--mint));
    --grad-button: linear-gradient(135deg, var(--mint), var(--green));

    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, monospace;

    --radius-s: 10px;
    --radius-m: 14px;
    --radius-l: 20px;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --gutter: clamp(1rem, 4vw, 2rem);
    --header-h: 72px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.65;
    /* clip (not hidden) so the sticky header keeps working */
    overflow-x: clip;
}

img,
svg {
    display: block;
}

a {
    color: inherit;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

button {
    background: none;
    border: none;
    cursor: pointer;
}

ul,
ol {
    list-style: none;
}

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

strong {
    color: var(--text);
    font-weight: 600;
}

code {
    font-family: var(--font-mono);
    font-size: 0.9em;
    color: var(--text);
}

::selection {
    background: rgba(62, 255, 163, 0.25);
}

.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;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 100;
    padding: 0.75rem 1.25rem;
    border-radius: 999px;
    background: var(--mint);
    color: var(--bg);
    font-weight: 600;
    text-decoration: none;
    transform: translateY(-200%);
    transition: transform 0.2s;
}

.skip-link:focus {
    transform: none;
}

/* Feather icons from assets/icons.svg (the app uses Feather icons too) */
.i {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.i-sm {
    width: 16px;
    height: 16px;
}

.i-lg {
    width: 24px;
    height: 24px;
}

.brand {
    width: 20px;
    height: 20px;
    fill: currentColor;
    flex-shrink: 0;
}

/* ---------- Layout ---------- */

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.section {
    position: relative;
    padding: clamp(4rem, 8vw, 6.5rem) 0;
}

.section-tight {
    padding-top: 0;
}

/* A slightly deeper band to break up the page rhythm */
.band {
    background: rgba(11, 18, 34, 0.6);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

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

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

/* Heading on the left, a link on the right */
.section-head-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem 3rem;
    flex-wrap: wrap;
    margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.section-head-row .section-head {
    margin-bottom: 0;
}

.eyebrow {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
}

h1,
h2 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.01em;
    text-wrap: balance;
}

h1 {
    font-size: clamp(2.5rem, 5.4vw, 4.1rem);
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(1.9rem, 3.6vw, 2.7rem);
    margin-bottom: 1.1rem;
}

h3 {
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.005em;
}

p {
    text-wrap: pretty;
}

.lede {
    font-size: clamp(1.05rem, 1.6vw, 1.2rem);
    color: var(--text-2);
    max-width: 62ch;
}

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

.text-gradient {
    background: var(--grad-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.italic-accent {
    font-style: italic;
    font-weight: 400;
    color: var(--text-2);
}

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

.card {
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-l);
    padding: clamp(1.5rem, 3vw, 2rem);
}

/* Gold-to-mint hairline across the top, as on the app's cards. Used sparingly. */
.accent-top {
    position: relative;
    overflow: hidden;
}

.accent-top::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 2px;
    background: var(--grad-accent);
    opacity: 0.85;
}

/* ---------- Background ---------- */

.ambient {
    position: absolute;
    inset: 0 0 auto 0;
    height: 900px;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.ambient::before,
.ambient::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
}

.ambient::before {
    width: 820px;
    height: 820px;
    top: -460px;
    left: -220px;
    background: radial-gradient(circle, rgba(62, 255, 163, 0.16), transparent 65%);
}

.ambient::after {
    width: 640px;
    height: 640px;
    top: -320px;
    right: -260px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1), transparent 65%);
}

/* Faint grid behind the top of the page, fading out downwards */
.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(180deg, #000 0%, transparent 75%);
    -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 75%);
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid transparent;
    transition: background-color 0.3s, border-color 0.3s;
}

.site-header.is-scrolled,
.site-header.nav-open {
    background: rgba(15, 23, 42, 0.86);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom-color: var(--border);
}

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

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text);
}

.logo-mark {
    width: 40px;
    height: 32px;
    object-fit: contain;
}

.logo-text {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.08rem;
    letter-spacing: 0.14em;
    white-space: nowrap;
}

.logo-text span {
    font-weight: 400;
    color: var(--text-2);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-links a {
    color: var(--text-2);
    text-decoration: none;
    font-size: 0.92rem;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    transition: color 0.2s, background-color 0.2s;
}

.nav-links a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
}

.nav-links a[aria-current="page"] {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
}

/* The menu's own CTA only shows inside the mobile panel */
.nav-links .nav-panel-cta {
    display: none;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.icon-btn {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    color: var(--text-2);
    transition: color 0.2s, background-color 0.2s;
}

.icon-btn:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

/* `.site-header` adds specificity over `.icon-btn`, which sets display: grid */
.site-header .nav-toggle,
.nav-toggle .icon-close,
.site-header.nav-open .nav-toggle .icon-menu {
    display: none;
}

.site-header.nav-open .nav-toggle .icon-close {
    display: block;
}

/* ---------- Buttons and links ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 24px;
    border-radius: 999px;
    border: 1px solid transparent;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.2;
    white-space: nowrap;
    transition: transform 0.2s var(--ease-out), box-shadow 0.2s, border-color 0.2s, background-color 0.2s, opacity 0.2s;
}

.btn-sm {
    min-height: 40px;
    padding: 8px 18px;
    font-size: 0.875rem;
}

.btn-primary {
    background: var(--grad-button);
    color: var(--bg);
    box-shadow: 0 0 22px rgba(62, 255, 163, 0.22);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 30px rgba(62, 255, 163, 0.35);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border-strong);
    color: var(--text);
}

.btn-ghost:hover {
    transform: translateY(-1px);
    border-color: var(--mint-line);
    background: rgba(255, 255, 255, 0.06);
}

.btn:active {
    transform: scale(0.98);
}

.btn[disabled] {
    opacity: 0.6;
    cursor: progress;
    transform: none;
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.card-actions {
    margin-top: 1.75rem;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--mint);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    padding: 0.4rem 0;
}

.text-link svg {
    transition: transform 0.2s var(--ease-out);
}

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

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

.text-link.is-external:hover svg {
    transform: translate(2px, -2px);
}

.inline-link {
    color: var(--mint);
    text-decoration: underline;
    text-decoration-color: var(--mint-line);
    text-underline-offset: 3px;
    transition: text-decoration-color 0.2s;
}

.inline-link:hover {
    text-decoration-color: var(--mint);
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-2);
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    background: rgba(255, 255, 255, 0.03);
    white-space: nowrap;
}

.tag-mint {
    color: var(--mint);
    border-color: var(--mint-line);
    background: var(--mint-tint);
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.chip {
    font-size: 0.85rem;
    color: var(--text-2);
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.025);
}

.icon-badge {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 13px;
    color: var(--mint);
    background: var(--mint-tint);
    border: 1px solid rgba(62, 255, 163, 0.18);
    margin-bottom: 1.25rem;
}

.check-list {
    display: grid;
    gap: 0.65rem;
}

.check-list li {
    position: relative;
    padding-left: 1.75rem;
    color: var(--text-2);
}

.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.42em;
    width: 16px;
    height: 16px;
    /* Feather "check" in mint */
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233EFFA3' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / contain no-repeat;
}

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

.hero {
    position: relative;
    padding: clamp(3rem, 8vw, 6rem) 0 clamp(4rem, 8vw, 6.5rem);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    align-items: center;
    gap: clamp(2.5rem, 6vw, 5rem);
}

.hero-copy .lede {
    margin-bottom: 2.25rem;
}

.hero-note {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 2.5rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--border);
    color: var(--text-3);
    font-size: 0.9rem;
    max-width: 520px;
}

.hero-note img {
    width: 36px;
    height: 36px;
    border-radius: 9px;
}

.hero-note a {
    color: var(--text-2);
    text-decoration: underline;
    text-decoration-color: var(--border-strong);
    text-underline-offset: 3px;
}

.hero-note a:hover {
    color: var(--mint);
    text-decoration-color: var(--mint-line);
}

/* Release card: an illustrative release moving through review and rollout */
.release {
    position: relative;
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.85), rgba(22, 32, 51, 0.85));
    border: 1px solid var(--border-strong);
    border-radius: 22px;
    padding: 1.5rem;
    box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}

.release-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 1.25rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.release-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: linear-gradient(135deg, #1E3A5F, #0F2A3A);
    border: 1px solid var(--border-strong);
    color: var(--mint);
}

.release-title {
    flex: 1;
    min-width: 0;
}

.release-title strong {
    display: block;
    font-size: 1rem;
}

.release-title span {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-3);
}

.release-steps li {
    display: grid;
    grid-template-columns: 28px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 0.8rem 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
    font-size: 0.92rem;
}

.release-steps li:last-child {
    border-bottom: 0;
    padding-bottom: 0.25rem;
}

.step-state {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    color: var(--text-3);
}

.is-done .step-state {
    color: var(--bg);
    background: var(--mint);
    border-color: var(--mint);
}

.is-active .step-state {
    border-color: var(--gold);
}

.is-active .step-state::after {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
    animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
    50% {
        opacity: 0.35;
        transform: scale(0.8);
    }
}

.step-label {
    color: var(--text);
    min-width: 0;
}

.step-meta {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-3);
    white-space: nowrap;
}

.is-active .step-meta {
    color: var(--gold);
}

.is-rolling .step-state {
    color: var(--mint);
    border-color: var(--mint-line);
}

.is-rolling .step-meta {
    color: var(--mint);
}

.rollout {
    grid-column: 2 / -1;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
    margin-top: 2px;
}

.rollout span {
    display: block;
    height: 100%;
    width: var(--to, 20%);
    border-radius: inherit;
    background: var(--grad-accent);
    transform-origin: left;
}

.release-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.25rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--border);
}

.release-stores {
    display: flex;
    gap: 1rem;
    color: var(--text-2);
    font-size: 0.82rem;
}

.release-stores span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.release-stores .brand {
    width: 15px;
    height: 15px;
}

.release-caption {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-3);
}

/* With JS, the steps tick through once the card is in view */
.js .release-steps li {
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
    transition-delay: calc(var(--n) * 140ms + 150ms);
}

.js .release.play .release-steps li {
    opacity: 1;
    transform: none;
}

.js .rollout span {
    transform: scaleX(0);
    transition: transform 1.4s var(--ease-out) 1s;
}

.js .release.play .rollout span {
    transform: scaleX(1);
}

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

.page-hero {
    position: relative;
    padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3rem, 6vw, 4.5rem);
}

.page-hero h1 {
    max-width: 16ch;
}

.page-hero .lede {
    max-width: 60ch;
}

.page-hero .btn-row {
    margin-top: 2rem;
}

/* In-page section links (Services) */
.subnav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2.25rem;
}

.subnav a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-2);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s, border-color 0.2s;
}

.subnav a:hover {
    color: var(--text);
    border-color: var(--mint-line);
}

.subnav .i {
    color: var(--mint);
}

/* ---------- Grids and cards ---------- */

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

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

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
}

/* Service pillars on the home page */
.pillar {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.25s, transform 0.25s var(--ease-out), background-color 0.25s;
}

.pillar:hover {
    border-color: var(--mint-line);
    transform: translateY(-3px);
    background: rgba(30, 41, 59, 0.65);
}

.pillar h3 {
    font-family: var(--font-serif);
    font-size: 1.55rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
}

.pillar p {
    color: var(--text-2);
    margin-bottom: 1.5rem;
}

.pillar ul {
    display: grid;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
    font-size: 0.92rem;
    color: var(--text-2);
}

.pillar ul li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pillar ul li::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--mint);
    flex-shrink: 0;
}

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

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

/* Tech strip */
.stack {
    display: flex;
    align-items: center;
    gap: 1rem 2rem;
    flex-wrap: wrap;
    margin-top: clamp(2.5rem, 5vw, 3.5rem);
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.stack-label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-3);
}

.stack .chips {
    flex: 1;
}

/* Simple feature card */
.feature h3 {
    margin-bottom: 0.5rem;
}

.feature p {
    color: var(--text-2);
    font-size: 0.95rem;
}

/* ---------- Spotlight (Addeo.fi) ---------- */

.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(2.5rem, 6vw, 5rem);
}

.split-top {
    align-items: start;
}

.spotlight-copy .lede {
    margin-bottom: 1.75rem;
}

.spotlight-copy .check-list {
    margin-bottom: 2rem;
}

.app-card {
    max-width: 460px;
    margin-inline: auto;
    width: 100%;
}

.app-card-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 1.5rem;
}

.app-icon {
    width: 64px;
    height: 64px;
    border-radius: 15px;
    box-shadow: 0 10px 30px -10px rgba(62, 255, 163, 0.35);
}

.app-card-head strong {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    line-height: 1.2;
}

.app-card-head span {
    color: var(--text-3);
    font-size: 0.88rem;
}

.app-quote {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.2rem;
    color: var(--text-2);
    margin-bottom: 1.5rem;
}

.facts {
    display: grid;
    border-top: 1px solid var(--border);
}

.facts div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.92rem;
}

.facts dt {
    color: var(--text-3);
}

.facts dd {
    color: var(--text);
    text-align: right;
}

.app-card .text-link {
    margin-top: 1.25rem;
}

/* ---------- Process steps ---------- */

.steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
    counter-reset: step;
}

.step {
    position: relative;
    padding-top: 1.75rem;
    border-top: 1px solid var(--border-strong);
}

.step::before {
    counter-increment: step;
    content: "0" counter(step);
    position: absolute;
    top: -0.8rem;
    left: 0;
    padding-right: 0.75rem;
    background: var(--bg);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--gold);
}

.band .step::before {
    background: #0D1527;
}

.step h3 {
    margin-bottom: 0.5rem;
}

.step p {
    color: var(--text-2);
    font-size: 0.95rem;
}

/* ---------- Services page ---------- */

.service-block + .service-block {
    border-top: 1px solid var(--border);
}

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

.service-intro .icon-badge {
    width: 54px;
    height: 54px;
    border-radius: 15px;
}

.service-intro p.lede {
    margin-bottom: 1.5rem;
}

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

.service-cards {
    display: grid;
    gap: 1.25rem;
}

.service-card h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0.6rem;
}

.service-card h3 .i {
    color: var(--mint);
}

.service-card > p {
    color: var(--text-2);
    margin-bottom: 1.25rem;
}

.service-card .check-list {
    font-size: 0.95rem;
}

.service-card .deliverable {
    display: flex;
    gap: 10px;
    margin-top: 1.5rem;
    padding: 0.9rem 1rem;
    border-radius: var(--radius-m);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    color: var(--text-2);
    font-size: 0.92rem;
}

.deliverable .i {
    color: var(--gold);
    margin-top: 3px;
}

.service-card .tag {
    margin-bottom: 1rem;
}

.note {
    display: flex;
    gap: 12px;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-m);
    border: 1px solid rgba(212, 175, 55, 0.25);
    background: rgba(212, 175, 55, 0.05);
    color: var(--text-2);
    font-size: 0.92rem;
}

.note .i {
    color: var(--gold);
    margin-top: 3px;
}

/* ---------- Apps page ---------- */

.app-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.store-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* Store badges. `.is-soon` is the pre-launch state: not a link. */
.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 54px;
    padding: 8px 20px 8px 16px;
    border-radius: 14px;
    background: #05080F;
    border: 1px solid var(--border-strong);
    color: var(--text);
    text-decoration: none;
}

.store-btn .brand {
    width: 22px;
    height: 22px;
}

.store-text {
    display: flex;
    flex-direction: column;
    font-weight: 600;
    font-size: 1.02rem;
    line-height: 1.15;
}

.store-text small {
    font-size: 0.66rem;
    font-weight: 500;
    color: var(--text-2);
    letter-spacing: 0.02em;
}

.store-btn.is-soon {
    opacity: 0.85;
}

/* Phone mock of the app's home screen (static, illustrative numbers) */
.phone {
    position: relative;
    width: min(320px, 100%);
    margin-inline: auto;
    padding: 12px;
    border-radius: 46px;
    background: linear-gradient(160deg, #2A3650, #111A2C 60%);
    box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.phone-screen {
    position: relative;
    border-radius: 36px;
    background: var(--bg);
    padding: 44px 16px 20px;
    overflow: hidden;
}

.phone-screen::before {
    content: "";
    position: absolute;
    top: -80px;
    left: -60px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(62, 255, 163, 0.14), transparent 65%);
}

.phone-notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 92px;
    height: 24px;
    border-radius: 999px;
    background: #05080F;
}

.mock-card {
    position: relative;
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 14px;
    margin-bottom: 10px;
}

.mock-label {
    display: block;
    font-size: 0.68rem;
    color: var(--text-3);
    letter-spacing: 0.04em;
}

.mock-value {
    display: block;
    font-family: var(--font-mono);
    font-size: 1.6rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    margin: 2px 0 8px;
}

.mock-delta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    color: var(--mint);
    background: var(--mint-tint);
    padding: 2px 8px;
    border-radius: 999px;
}

.mock-delta .i {
    width: 11px;
    height: 11px;
}

.alloc-bar {
    display: flex;
    gap: 3px;
    height: 7px;
    margin-top: 12px;
}

.alloc-bar span {
    border-radius: 999px;
}

.mock-fire {
    display: flex;
    align-items: center;
    gap: 14px;
}

.mock-ring {
    position: relative;
    width: 64px;
    height: 64px;
    flex-shrink: 0;
}

.mock-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.mock-ring circle {
    fill: none;
    stroke-width: 7;
}

.mock-ring .track {
    stroke: rgba(255, 255, 255, 0.07);
}

.mock-ring .fill {
    stroke: url(#ringGradient);
    stroke-linecap: round;
    /* r = 26, circumference ~163.4; 64% filled */
    stroke-dasharray: 163.4;
    stroke-dashoffset: 58.8;
}

.mock-ring b {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 500;
}

.mock-fire strong {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 500;
}

.mock-rows li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 0;
    font-size: 0.8rem;
}

.mock-rows li + li {
    border-top: 1px solid var(--border);
}

.mock-dot {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 9px;
    color: var(--c);
    background: color-mix(in srgb, var(--c) 14%, transparent);
}

.mock-dot .i {
    width: 14px;
    height: 14px;
}

.mock-rows .name {
    flex: 1;
}

.mock-rows .val {
    font-family: var(--font-mono);
    font-size: 0.78rem;
}

.mock-caption {
    display: block;
    text-align: center;
    margin-top: 1rem;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-3);
}

/* Case study */
.case-intro {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.case-intro h3 {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.75rem;
}

.case-intro p {
    color: var(--text-2);
    font-size: 1.05rem;
}

.case-intro p strong {
    font-weight: 500;
}

/* ---------- About page ---------- */

.statement {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 2.8vw, 2.1rem);
    line-height: 1.35;
    color: var(--text);
    max-width: 30ch;
}

.statement em {
    color: var(--text-2);
}

.prose p {
    color: var(--text-2);
    font-size: 1.05rem;
}

.prose p + p {
    margin-top: 1.1rem;
}

.principle {
    display: flex;
    gap: 1.25rem;
}

.principle .icon-badge {
    margin-bottom: 0;
}

.principle h3 {
    margin-bottom: 0.4rem;
}

.principle p {
    color: var(--text-2);
    font-size: 0.95rem;
}

.company-facts {
    max-width: 760px;
}

.company-facts dd {
    text-align: right;
}

.company-facts a {
    color: var(--mint);
}

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

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}

.form-card {
    padding: clamp(1.5rem, 4vw, 2.5rem);
}

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

.field {
    display: grid;
    gap: 0.5rem;
    align-content: start;
}

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

.field > label,
.field legend {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
}

.field .optional {
    color: var(--text-3);
    font-weight: 400;
}

.field fieldset {
    border: 0;
    min-width: 0;
}

.field legend {
    margin-bottom: 0.6rem;
}

.input {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border-radius: var(--radius-s);
    background: rgba(11, 18, 34, 0.7);
    border: 1px solid var(--border-strong);
    color: var(--text);
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input::placeholder {
    color: var(--text-3);
    opacity: 1;
}

.input:hover {
    border-color: rgba(255, 255, 255, 0.22);
}

.input:focus {
    outline: none;
    border-color: var(--mint);
    box-shadow: 0 0 0 3px rgba(62, 255, 163, 0.15);
}

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

textarea.input {
    min-height: 168px;
    resize: vertical;
    line-height: 1.55;
}

select.input {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 42px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
}

select.input option {
    background: var(--surface);
    color: var(--text);
}

.field-hint {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-3);
}

.field-error {
    font-size: 0.85rem;
    color: var(--danger);
}

.field-error:empty {
    display: none;
}

/* Checkbox options shown as toggle pills */
.options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.option {
    position: relative;
}

.option input {
    position: absolute;
    opacity: 0;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: pointer;
}

.option span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-2);
    font-size: 0.92rem;
    transition: color 0.2s, border-color 0.2s, background-color 0.2s;
    pointer-events: none;
}

.option span::before {
    content: "";
    width: 14px;
    height: 14px;
    border-radius: 4px;
    border: 1.5px solid var(--text-3);
    transition: background-color 0.2s, border-color 0.2s;
}

.option input:hover + span {
    border-color: rgba(255, 255, 255, 0.24);
}

.option input:checked + span {
    color: var(--text);
    border-color: var(--mint-line);
    background: var(--mint-tint);
}

.option input:checked + span::before {
    border-color: var(--mint);
    background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F172A' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 10px no-repeat;
}

.option input:focus-visible + span {
    outline: 2px solid var(--mint);
    outline-offset: 3px;
}

/* Honeypot: hidden from people, left in the page for bots */
.hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    flex-wrap: wrap;
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.form-consent {
    font-size: 0.85rem;
    color: var(--text-3);
    max-width: 44ch;
}

.form-consent a {
    color: var(--text-2);
}

.form-status {
    margin-top: 1.25rem;
    padding: 0.9rem 1.1rem;
    border-radius: var(--radius-m);
    font-size: 0.92rem;
}

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

.form-status.is-error {
    color: #FECACA;
    background: rgba(248, 113, 113, 0.08);
    border: 1px solid rgba(248, 113, 113, 0.3);
}

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

.form-success {
    text-align: center;
    padding: clamp(2rem, 6vw, 3.5rem) 1rem;
}

.form-success:focus {
    outline: none;
}

.form-success .icon-badge {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
}

.form-success h2 {
    font-size: clamp(1.6rem, 3vw, 2rem);
}

.form-success p {
    color: var(--text-2);
    max-width: 44ch;
    margin: 0 auto;
}

.btn .spinner {
    display: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(15, 23, 42, 0.3);
    border-top-color: var(--bg);
    animation: spin 0.8s linear infinite;
}

.btn.is-sending .spinner {
    display: block;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.contact-aside {
    display: grid;
    gap: 1.25rem;
}

.contact-aside h2 {
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
}

.next-steps {
    display: grid;
    gap: 1.1rem;
    counter-reset: next;
}

.next-steps li {
    display: grid;
    grid-template-columns: 30px 1fr;
    gap: 12px;
    color: var(--text-2);
    font-size: 0.95rem;
}

.next-steps li::before {
    counter-increment: next;
    content: counter(next);
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--mint-line);
    color: var(--mint);
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

.next-steps strong {
    display: block;
    font-weight: 500;
}

.direct-email {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 0.5rem;
    color: var(--text);
    font-weight: 500;
    text-decoration: none;
    font-size: 1.05rem;
}

.direct-email .i {
    color: var(--mint);
}

.direct-email:hover {
    color: var(--mint);
}

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

.cta-panel {
    text-align: center;
    padding: clamp(2.5rem, 7vw, 4.5rem) clamp(1.25rem, 5vw, 3rem);
    background:
        radial-gradient(ellipse 60% 80% at 50% 0%, rgba(62, 255, 163, 0.09), transparent 70%),
        var(--surface-soft);
}

.cta-panel h2 {
    max-width: 20ch;
    margin-inline: auto;
}

.cta-panel .lede {
    margin: 0 auto 2rem;
}

.cta-panel .btn-row {
    justify-content: center;
}

.cta-panel .btn-row a.mail {
    color: var(--text-2);
    text-decoration: none;
    font-size: 0.95rem;
    padding: 0.75rem 0.5rem;
}

.cta-panel .btn-row a.mail:hover {
    color: var(--mint);
}

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

.site-footer {
    padding: clamp(3rem, 6vw, 4.5rem) 0 2.5rem;
    border-top: 1px solid var(--border);
    background: var(--bg-deep);
}

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

.footer-brand p {
    margin-top: 1rem;
    max-width: 34ch;
    color: var(--text-3);
    font-size: 0.92rem;
}

.footer-brand .direct-email {
    font-size: 0.95rem;
    margin-top: 1.25rem;
}

.footer-col h2 {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-3);
    margin-bottom: 0.9rem;
}

.footer-col a {
    display: inline-block;
    padding: 0.35rem 0;
    color: var(--text-2);
    text-decoration: none;
    font-size: 0.92rem;
    transition: color 0.2s;
}

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

.footer-bottom {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    gap: 0.75rem 2rem;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: var(--text-3);
}

/* ---------- Legal page ---------- */

.legal {
    max-width: 780px;
    margin: 0 auto;
    padding: clamp(3rem, 7vw, 5rem) var(--gutter) clamp(4rem, 8vw, 6rem);
    color: var(--text-2);
}

.legal h1 {
    color: var(--text);
    font-size: clamp(2.2rem, 5vw, 3rem);
    margin-bottom: 0.75rem;
}

.legal .updated {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-3);
    margin-bottom: 2.5rem;
}

.legal h2 {
    color: var(--text);
    font-size: 1.45rem;
    margin: 2.75rem 0 1rem;
}

.legal p,
.legal li {
    margin-bottom: 0.9rem;
}

.legal ul {
    list-style: disc;
    padding-left: 1.25rem;
}

.legal li::marker {
    color: var(--mint);
}

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

.legal .summary {
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-m);
    border: 1px solid var(--border);
    background: var(--surface-soft);
}

.legal .summary ul {
    margin-bottom: 0;
}

.legal .summary li:last-child {
    margin-bottom: 0;
}

.table-wrap {
    overflow-x: auto;
    margin: 1.25rem 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-m);
}

.legal table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.legal th,
.legal td {
    text-align: left;
    vertical-align: top;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border);
}

.legal tr:last-child td {
    border-bottom: 0;
}

.legal th {
    color: var(--text);
    font-weight: 600;
    background: rgba(255, 255, 255, 0.02);
}

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

.not-found {
    min-height: 60vh;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 5rem var(--gutter);
}

.not-found .code {
    font-family: var(--font-mono);
    color: var(--gold);
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
}

.not-found .lede {
    margin-inline: auto;
}

.not-found .btn-row {
    justify-content: center;
    margin-top: 2rem;
}

/* ---------- Scroll reveal (only with JS, see script.js) ---------- */

.js .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

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

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
    .grid-4,
    .steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 2.5rem;
    }

    .footer-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 920px) {
    .site-header .nav-toggle {
        display: grid;
    }

    .nav-actions .nav-cta {
        display: none;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
        padding: 0.75rem var(--gutter) 1.5rem;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        box-shadow: 0 24px 40px -20px rgba(0, 0, 0, 0.6);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity 0.2s, transform 0.25s var(--ease-out), visibility 0.2s;
    }

    /* Visible at once when opening, so script.js can move focus into the menu straight away */
    .site-header.nav-open .nav-links {
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: opacity 0.2s, transform 0.25s var(--ease-out), visibility 0s;
    }

    .nav-links a {
        padding: 0.85rem 1rem;
        font-size: 1.05rem;
        border-radius: 12px;
    }

    .nav-links .nav-panel-cta,
    .nav-links .nav-panel-cta:hover {
        display: inline-flex;
        justify-content: center;
        margin-top: 0.75rem;
        color: var(--bg);
        font-weight: 600;
        background: var(--grad-button);
    }

    .hero-grid,
    .split,
    .service-layout,
    .contact-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-visual {
        max-width: 520px;
    }

    .service-intro {
        position: static;
    }

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

    .split-reverse-mobile > :first-child {
        order: 2;
    }
}

@media (max-width: 640px) {
    :root {
        --header-h: 64px;
    }

    .grid-2,
    .grid-4,
    .steps,
    .case-intro,
    .form-grid {
        grid-template-columns: minmax(0, 1fr);
    }

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

    .logo-mark {
        width: 34px;
        height: 28px;
    }

    .logo-text {
        font-size: 0.98rem;
    }

    .btn-row .btn {
        flex: 1 1 auto;
    }

    .release {
        padding: 1.1rem;
    }

    .release-steps li {
        font-size: 0.86rem;
        gap: 10px;
    }

    .release-foot {
        flex-direction: column;
        align-items: flex-start;
    }

    .principle {
        flex-direction: column;
        gap: 1rem;
    }

    .facts div {
        flex-direction: column;
        gap: 0.1rem;
    }

    .facts dd,
    .company-facts dd {
        text-align: left;
    }

    .form-foot .btn {
        width: 100%;
    }

    /* Privacy table: one labelled block per row instead of sideways scrolling */
    .legal table {
        min-width: 0;
    }

    .legal thead {
        display: none;
    }

    .legal tr,
    .legal td {
        display: block;
    }

    .legal tr + tr {
        border-top: 1px solid var(--border-strong);
    }

    .legal td {
        padding: 0.4rem 1rem;
        border-bottom: 0;
    }

    .legal td:first-child {
        padding-top: 1rem;
        color: var(--text);
        font-weight: 600;
    }

    .legal td:last-child {
        padding-bottom: 1rem;
    }

    .legal td:not(:first-child)::before {
        content: attr(data-label);
        display: block;
        font-family: var(--font-mono);
        font-size: 0.7rem;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: var(--text-3);
    }
}

@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;
        transition-delay: 0s !important;
    }
}
