/* ==========================================================================
   Hallo Marco - marketing site
   Design language mirrors the product app: Hanken Grotesk for body, Fraunces
   for display, a single gold accent on a neutral palette. Fonts are
   self-hosted (GDPR - no Google CDN). Dark mode follows the OS preference.
   ========================================================================== */

/* ---------- Fonts (self-hosted variable fonts) ---------- */

@font-face {
    font-family: 'Hanken Grotesk Variable';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/hanken-grotesk-latin-wght-normal.woff2') format('woff2-variations');
}

@font-face {
    font-family: 'Fraunces Variable';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/fraunces-latin-wght-normal.woff2') format('woff2-variations');
}

/* ---------- Design tokens (kept in sync with the app's app.css) ---------- */

:root {
    --font-sans: 'Hanken Grotesk Variable', ui-sans-serif, system-ui, sans-serif;
    --font-display: 'Fraunces Variable', Georgia, 'Times New Roman', serif;

    --gold-50: #fcf6ea;
    --gold-100: #f8e8c4;
    --gold-200: #f4d795;
    --gold-300: #f2c566;
    --gold-400: #f0ae3e;
    --gold-500: #e0961f;
    --gold-600: #d98a1e;
    --gold-700: #ad6a17;
    --gold-800: #804e18;
    --gold-950: #3f2705;

    --bg: #fafafa;
    --surface: #ffffff;
    --surface-2: #f5f5f5;
    --border: #e5e5e5;
    --border-strong: #d4d4d4;
    --text: #171717;
    --text-muted: #737373;
    --text-faint: #a3a3a3;
    --accent: #f0ae3e;
    --accent-hover: #e0961f;
    --accent-fg: #0a0a0a;
    --accent-text: #ad6a17;
    --accent-subtle: #fcf6ea;
    --ring: rgba(240, 174, 62, .45);
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, .04);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, .05);
    --shadow-md: 0 10px 28px -10px rgba(0, 0, 0, .12);
    --shadow-lg: 0 30px 70px -30px rgba(0, 0, 0, .2);
    --radius-card: 14px;
    --radius-control: 11px;
    --ease: cubic-bezier(.22, .61, .36, 1);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0a0a0a;
        --surface: #171717;
        --surface-2: #262626;
        --border: #262626;
        --border-strong: #404040;
        --text: #f5f5f5;
        --text-muted: #a3a3a3;
        --text-faint: #737373;
        --accent-hover: #f2c566;
        --accent-text: #f0ae3e;
        --accent-subtle: rgba(240, 174, 62, .12);
        --ring: rgba(240, 174, 62, .5);
        --shadow-xs: 0 1px 2px rgba(0, 0, 0, .4);
        --shadow-sm: 0 2px 8px rgba(0, 0, 0, .45);
        --shadow-md: 0 10px 28px -10px rgba(0, 0, 0, .6);
        --shadow-lg: 0 30px 70px -30px rgba(0, 0, 0, .7);
    }
}

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

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .font-display {
    font-family: var(--font-display);
    letter-spacing: -.01em;
    line-height: 1.15;
    margin: 0 0 .5em;
    font-weight: 560;
    text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 5.4vw, 3.9rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.25rem; font-weight: 600; }

p { margin: 0 0 1em; }

a {
    color: var(--accent-text);
    text-decoration: none;
}

a:hover { text-decoration: underline; }

img, svg { vertical-align: middle; }

:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--ring);
    border-radius: 6px;
}

::selection {
    background: var(--gold-200);
    color: var(--gold-950);
}

.container {
    width: min(72rem, 100% - 3rem);
    margin-inline: auto;
}

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

/* Bavarian "Raute" - the one brand ornament, ultra subtle. */
.raute {
    background-image:
        linear-gradient(135deg, currentColor 25%, transparent 25%),
        linear-gradient(225deg, currentColor 25%, transparent 25%),
        linear-gradient(45deg, currentColor 25%, transparent 25%),
        linear-gradient(315deg, currentColor 25%, transparent 25%);
    background-position: 11px 0, 11px 0, 0 0, 0 0;
    background-size: 22px 22px;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .72rem 1.35rem;
    border-radius: var(--radius-control);
    border: 1px solid transparent;
    font: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    transition: transform .15s ease, filter .15s ease, box-shadow .2s ease, background .15s ease;
}

.btn:hover { text-decoration: none; }

.btn-primary {
    background: var(--accent);
    color: var(--accent-fg);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    transform: translateY(-1px) scale(1.02);
    filter: brightness(1.04);
    box-shadow: 0 10px 24px -10px var(--ring);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text);
    border-color: var(--border-strong);
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent-text);
}

.btn-lg {
    padding: .95rem 1.8rem;
    font-size: 1.1rem;
}

/* Hero CTA gets the idle gloss sweep + glow pulse from the app. */
@keyframes cta-shine-sweep {
    0% { transform: translateX(-160%) skewX(-20deg); }
    60%, 100% { transform: translateX(360%) skewX(-20deg); }
}

@keyframes cta-shine-pulse {
    0%, 100% { box-shadow: 0 6px 18px -10px rgba(0, 0, 0, .55), 0 0 0 0 rgba(240, 174, 62, .35); }
    50% { box-shadow: 0 10px 26px -8px rgba(0, 0, 0, .65), 0 0 0 5px rgba(240, 174, 62, .14); }
}

.cta-shine {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    animation: cta-shine-pulse 2.8s ease-in-out infinite;
}

.cta-shine::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 35%;
    background: linear-gradient(100deg, transparent, rgba(10, 10, 10, .3), transparent);
    transform: translateX(-160%) skewX(-20deg);
    animation: cta-shine-sweep 3.4s ease-in-out infinite;
    pointer-events: none;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: blur(12px) saturate(1.3);
    -webkit-backdrop-filter: blur(12px) saturate(1.3);
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease;
}

.site-header.is-scrolled { border-bottom-color: var(--border); }

.site-header .container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    min-height: 4.25rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    color: var(--text);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -.01em;
    text-decoration: none;
}

.brand:hover { text-decoration: none; }

.brand img, .brand svg {
    width: 2rem;
    height: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow-xs);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    margin-left: auto;
}

.site-nav a {
    color: var(--text-muted);
    font-weight: 550;
    font-size: .98rem;
}

.site-nav a:hover {
    color: var(--text);
    text-decoration: none;
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: .15rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: .15rem;
    font-size: .82rem;
    font-weight: 600;
}

.lang-switch a, .lang-switch span {
    padding: .15rem .55rem;
    border-radius: 999px;
    color: var(--text-muted);
}

.lang-switch [aria-current] {
    background: var(--accent-subtle);
    color: var(--accent-text);
}

.lang-switch a:hover { text-decoration: none; color: var(--text); }

.nav-toggle {
    display: none;
    margin-left: auto;
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-control);
    padding: .45rem .6rem;
    color: var(--text);
    cursor: pointer;
}

@media (max-width: 820px) {
    .nav-toggle { display: inline-flex; }

    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: .25rem;
        padding: 1rem 1.5rem 1.25rem;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
    }

    .site-nav.is-open { display: flex; }

    .site-nav a { padding: .5rem 0; font-size: 1.05rem; }

    .site-nav .btn { margin-top: .5rem; }

    .lang-switch { align-self: flex-start; }
}

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

.hero {
    position: relative;
    padding: 5rem 0 4.5rem;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: -40% -20% auto;
    height: 80%;
    background: radial-gradient(55% 60% at 70% 30%, var(--accent-subtle), transparent 70%);
    pointer-events: none;
}

.hero .container {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 4rem;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .3rem .85rem;
    border-radius: 999px;
    background: var(--accent-subtle);
    color: var(--accent-text);
    font-size: .85rem;
    font-weight: 650;
    letter-spacing: .02em;
    margin-bottom: 1.25rem;
}

.eyebrow::before {
    content: "";
    width: .5rem;
    height: .5rem;
    border-radius: 999px;
    background: var(--accent);
    animation: pulse-dot 2.4s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 0 var(--ring); }
    50% { box-shadow: 0 0 0 5px transparent; }
}

.hero-lead {
    font-size: 1.22rem;
    color: var(--text-muted);
    max-width: 34rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .85rem;
    margin: 1.8rem 0 1.4rem;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem 1.4rem;
    padding: 0;
    margin: 0;
    list-style: none;
    color: var(--text-muted);
    font-size: .92rem;
}

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

.hero-trust svg {
    width: 1rem;
    height: 1rem;
    color: var(--accent-text);
    flex: none;
}

@media (max-width: 980px) {
    .hero .container { grid-template-columns: 1fr; gap: 3rem; }
    .hero { padding-top: 3.5rem; }
}

/* ---------- Phone mock (hero visual) ---------- */

.phone-mock {
    position: relative;
    max-width: 24.5rem;
    margin-inline: auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 26px;
    box-shadow: var(--shadow-lg);
    padding: 1.3rem 1.2rem 1.4rem;
}

.phone-mock-head {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding-bottom: .9rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1rem;
}

.phone-mock-avatar {
    display: grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 10px;
    background: linear-gradient(150deg, var(--gold-300), var(--gold-600));
    color: var(--gold-950);
    flex: none;
}

.phone-mock-avatar svg { width: 1.2rem; height: 1.2rem; }

.phone-mock-title { font-weight: 650; line-height: 1.2; }

.phone-mock-status {
    font-size: .8rem;
    color: var(--accent-text);
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

.phone-mock-status::before {
    content: "";
    width: .42rem;
    height: .42rem;
    border-radius: 999px;
    background: var(--accent);
}

.chat {
    display: flex;
    flex-direction: column;
    gap: .55rem;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: .93rem;
    line-height: 1.45;
}

.chat li {
    max-width: 88%;
    padding: .55rem .85rem;
    border-radius: 14px;
}

.chat .from-caller {
    align-self: flex-end;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-bottom-right-radius: 4px;
}

.chat .from-ai {
    align-self: flex-start;
    background: var(--accent-subtle);
    color: var(--text);
    border-bottom-left-radius: 4px;
}

/* Floating summary card next to the phone mock */
.summary-pop {
    position: absolute;
    right: -2.4rem;
    bottom: -1.9rem;
    width: 15.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-md);
    padding: .85rem 1rem;
    font-size: .82rem;
}

.summary-pop strong {
    display: block;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-faint);
    margin-bottom: .4rem;
}

.summary-pop ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: .3rem;
}

.summary-pop li {
    display: flex;
    justify-content: space-between;
    gap: .8rem;
}

.summary-pop li span:first-child { color: var(--text-muted); }

.badge {
    display: inline-block;
    padding: .05rem .5rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 650;
    background: var(--accent-subtle);
    color: var(--accent-text);
}

@media (max-width: 480px) {
    .summary-pop { position: static; width: auto; margin-top: 1rem; }
}

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

.section { padding: 5rem 0; }

.section-alt {
    background: var(--surface);
    border-block: 1px solid var(--border);
}

.section-head {
    max-width: 44rem;
    margin-bottom: 3rem;
}

.section-head .kicker {
    display: block;
    font-size: .88rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--accent-text);
    margin-bottom: .6rem;
}

.section-head p {
    color: var(--text-muted);
    font-size: 1.12rem;
}

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

/* ---------- Pain stats ---------- */

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

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-xs);
    padding: 1.6rem 1.5rem;
}

.stat-card .stat-num {
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 600;
    letter-spacing: -.01em;
    line-height: 1;
    color: var(--accent-text);
}

.stat-card p {
    margin: .6rem 0 0;
    color: var(--text-muted);
    font-size: .98rem;
}

@media (max-width: 820px) {
    .stats-row { grid-template-columns: 1fr; }
}

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

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    counter-reset: step;
}

.step {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 1.8rem 1.6rem;
    box-shadow: var(--shadow-xs);
}

.step::before {
    counter-increment: step;
    content: counter(step);
    display: grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    margin-bottom: 1rem;
    border-radius: 10px;
    background: linear-gradient(150deg, var(--gold-300), var(--gold-600));
    color: var(--gold-950);
    font-family: var(--font-display);
    font-weight: 650;
    font-size: 1.15rem;
}

.step p { margin: 0; color: var(--text-muted); font-size: .98rem; }

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

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

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

.feature {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 1.5rem 1.4rem;
    box-shadow: var(--shadow-xs);
    transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}

.feature:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    display: grid;
    place-items: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: var(--radius-control);
    background: var(--accent-subtle);
    color: var(--accent-text);
    margin-bottom: 1rem;
}

.feature-icon svg { width: 1.3rem; height: 1.3rem; }

.feature h3 { margin-bottom: .35rem; }

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

.feature .badge { margin-left: .4rem; vertical-align: 2px; }

@media (max-width: 980px) {
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

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

/* ---------- Transcript demo ---------- */

.demo-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 2.5rem;
    align-items: start;
}

.transcript {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-sm);
    padding: 1.6rem;
}

.transcript .chat { font-size: .98rem; gap: .7rem; }

.insight-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem 1.6rem;
}

.insight-card + .insight-card { margin-top: 1.25rem; }

.insight-card h3 {
    font-family: var(--font-sans);
    font-size: .82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--text-faint);
    margin-bottom: .8rem;
}

.kv {
    margin: 0;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: .45rem 1.2rem;
    font-size: .95rem;
}

.kv dt { color: var(--text-muted); }
.kv dd { margin: 0; font-weight: 550; text-align: right; }

.todo-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: .5rem;
    font-size: .95rem;
}

.todo-list li {
    display: flex;
    gap: .55rem;
    align-items: baseline;
}

.todo-list svg {
    width: .95rem;
    height: .95rem;
    color: var(--accent-text);
    flex: none;
    transform: translateY(2px);
}

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

/* ---------- Trust / GDPR ---------- */

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

.trust-item { text-align: left; }

.trust-item h3 { font-size: 1.08rem; margin-bottom: .3rem; }

.trust-item p { color: var(--text-muted); font-size: .94rem; margin: 0; }

@media (max-width: 980px) {
    .trust-grid { grid-template-columns: repeat(2, 1fr); }
}

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

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

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: stretch;
}

.plan {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-xs);
    padding: 2rem 1.8rem;
}

.plan.is-recommended {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent), var(--shadow-md);
}

.plan-flag {
    position: absolute;
    top: -.85rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: var(--accent-fg);
    font-size: .78rem;
    font-weight: 700;
    padding: .2rem .8rem;
    border-radius: 999px;
    white-space: nowrap;
}

.plan h3 { font-size: 1.45rem; margin-bottom: .1rem; }

.plan-tagline { color: var(--text-muted); font-size: .92rem; margin-bottom: 1.2rem; }

.plan-price {
    font-family: var(--font-display);
    font-size: 2.7rem;
    font-weight: 600;
    letter-spacing: -.01em;
    line-height: 1;
}

.plan-price small {
    font-family: var(--font-sans);
    font-size: .95rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0;
}

.plan-minutes {
    margin: .45rem 0 1.4rem;
    color: var(--accent-text);
    font-weight: 650;
    font-size: .95rem;
}

.plan ul {
    margin: 0 0 1.8rem;
    padding: 0;
    list-style: none;
    display: grid;
    gap: .55rem;
    font-size: .94rem;
    color: var(--text-muted);
}

.plan ul li {
    display: flex;
    gap: .55rem;
    align-items: baseline;
}

.plan ul svg {
    width: .95rem;
    height: .95rem;
    color: var(--accent-text);
    flex: none;
    transform: translateY(2px);
}

.plan .btn { margin-top: auto; }

.pricing-note {
    margin-top: 1.6rem;
    text-align: center;
    color: var(--text-muted);
    font-size: .92rem;
}

@media (max-width: 900px) {
    .pricing-grid { grid-template-columns: 1fr; max-width: 28rem; margin-inline: auto; }
}

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

.faq {
    max-width: 46rem;
    margin-inline: auto;
}

.faq details {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 0 1.4rem;
    margin-bottom: .8rem;
    transition: box-shadow .2s ease;
}

.faq details[open] { box-shadow: var(--shadow-sm); }

.faq summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 0;
    font-weight: 600;
    font-size: 1.05rem;
}

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

.faq summary::after {
    content: "+";
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--accent-text);
    line-height: 1;
    transition: transform .2s ease;
    flex: none;
}

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

.faq details p {
    color: var(--text-muted);
    margin: 0 0 1.2rem;
}

/* ---------- Final CTA ---------- */

.cta-final {
    position: relative;
    text-align: center;
    padding: 5.5rem 0;
    overflow: hidden;
}

.cta-final .raute {
    position: absolute;
    inset: 0;
    color: var(--text);
    opacity: .035;
    pointer-events: none;
}

.cta-final .container { position: relative; }

.cta-final p {
    color: var(--text-muted);
    font-size: 1.15rem;
    max-width: 36rem;
    margin-inline: auto;
}

.cta-final .hero-actions { justify-content: center; }

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

.site-footer {
    border-top: 1px solid var(--border);
    background: var(--surface);
    padding: 3.5rem 0 2.5rem;
    font-size: .94rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-grid h3 {
    font-family: var(--font-sans);
    font-size: .82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--text-faint);
    margin-bottom: .9rem;
}

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

.footer-grid a { color: var(--text-muted); }

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

.footer-brand p {
    color: var(--text-muted);
    max-width: 18rem;
    margin: .8rem 0 0;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1.6rem;
    border-top: 1px solid var(--border);
    color: var(--text-faint);
    font-size: .88rem;
}

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

/* ---------- Legal pages ---------- */

.legal {
    max-width: 46rem;
    padding: 4rem 0 5rem;
}

.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); }

.legal h2 { font-size: 1.4rem; margin-top: 2.2rem; }

.legal p, .legal li { color: var(--text-muted); }

/* ---------- Scroll reveal ----------
   The hidden state only applies once JS has confirmed it will reveal again
   (html.has-js, set in site.js) - without JS everything stays visible. */

.has-js .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .55s var(--ease), transform .55s var(--ease);
}

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

/* ---------- Reduced motion ---------- */

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

    .cta-shine, .cta-shine::after, .eyebrow::before { animation: none; }

    .feature, .btn { transition: none; }

    .feature:hover, .btn-primary:hover { transform: none; }

    .has-js .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
