/* ==========================================================================
   TaxItEasy Website v2 — Dark First, App-konsistent
   Design tokens mirror /CLAUDE-DESIGN.md from the main app.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
    /* Backgrounds — elevation by brightness, not shadow */
    --bg-base: #0B1120;
    --bg-surface-1: #111827;
    --bg-surface-2: #1E293B;
    --bg-surface-3: #283548;

    /* Brand violet */
    --violet-900: #2D1B69;
    --violet-800: #3B2380;
    --violet-700: #5B21B6;
    --violet-600: #7C3AED;
    --violet-500: #8B5CF6;
    --violet-400: #A78BFA;
    --violet-300: #C4B5FD;
    --primary: var(--violet-400);
    --primary-hover: var(--violet-500);
    --primary-pressed: var(--violet-600);
    --primary-text: #1E1B4B;

    /* Text hierarchy */
    --text-primary: #F1F5F9;
    --text-secondary: #CBD5E1;
    --text-tertiary: #94A3B8;
    --text-muted: #64748B;

    /* Borders */
    --border-subtle: #1E293B;
    --border-default: #334155;
    --border-emphasis: #475569;

    /* Semantic — transparent overlays on dark */
    --success: #10B981;
    --success-text: #34D399;
    --success-bg: rgba(16, 185, 129, 0.12);
    --success-border: rgba(16, 185, 129, 0.2);
    --warning: #F59E0B;
    --warning-text: #FBBF24;
    --warning-bg: rgba(245, 158, 11, 0.12);
    --warning-border: rgba(245, 158, 11, 0.2);
    --error: #EF4444;
    --error-text: #F87171;
    --error-bg: rgba(239, 68, 68, 0.12);
    --error-border: rgba(239, 68, 68, 0.2);
    --info: #3B82F6;
    --info-text: #60A5FA;
    --info-bg: rgba(59, 130, 246, 0.12);
    --info-border: rgba(59, 130, 246, 0.2);

    /* Spacing — 4px grid */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 12px;
    --space-lg: 16px;
    --space-xl: 24px;
    --space-2xl: 32px;
    --space-3xl: 48px;
    --space-4xl: 64px;
    --space-5xl: 96px;
    --space-6xl: 128px;

    /* Radius */
    --radius-xs: 4px;
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-full: 999px;

    /* Focus rings */
    --focus-violet: 0 0 0 3px rgba(167, 139, 250, 0.25);
    --focus-error: 0 0 0 3px rgba(239, 68, 68, 0.12);
    --modal-glow: 0 0 60px rgba(139, 92, 246, 0.08);

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Plus Jakarta Sans', 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

    /* Layout */
    --container-max: 1200px;
    --container-narrow: 880px;
    --header-h: 72px;
}

/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-secondary);
    background: var(--bg-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    overflow-x: hidden;
}

img,
picture,
video,
svg {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 150ms ease-out;
}

a:hover {
    color: var(--violet-300);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

ul,
ol {
    list-style: none;
}

::selection {
    background: var(--violet-700);
    color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--text-primary);
    line-height: 1.15;
    letter-spacing: -0.02em;
    font-weight: 700;
}

h1 {
    font-size: clamp(2.5rem, 5vw + 1rem, 4.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}

h2 {
    font-size: clamp(2rem, 3vw + 1rem, 3rem);
    font-weight: 700;
}

h3 {
    font-size: clamp(1.25rem, 1vw + 1rem, 1.625rem);
    font-weight: 700;
}

h4 {
    font-size: 1.125rem;
    font-weight: 600;
}

p {
    line-height: 1.6;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--violet-300);
    padding: 6px 12px;
    background: rgba(167, 139, 250, 0.08);
    border: 1px solid rgba(167, 139, 250, 0.18);
    border-radius: var(--radius-full);
}

.lead {
    font-size: clamp(1.0625rem, 0.5vw + 1rem, 1.25rem);
    color: var(--text-secondary);
    line-height: 1.55;
}

.mono {
    font-family: var(--font-mono);
    font-feature-settings: 'tnum' 1;
}

/* --------------------------------------------------------------------------
   4. Layout primitives
   -------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--space-xl);
}

.container-narrow {
    max-width: var(--container-narrow);
}

.section {
    padding-block: var(--space-5xl);
}

.section-tight {
    padding-block: var(--space-4xl);
}

.section-header {
    text-align: center;
    max-width: 720px;
    margin-inline: auto;
    margin-bottom: var(--space-4xl);
}

.section-header .eyebrow {
    margin-bottom: var(--space-lg);
}

.section-header h2 {
    margin-bottom: var(--space-lg);
}

.section-header p {
    color: var(--text-tertiary);
}

.grid {
    display: grid;
    gap: var(--space-xl);
}

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

@media (max-width: 900px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    padding: 14px 22px;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    transition: background 150ms ease-out, color 150ms ease-out,
                border-color 150ms ease-out, transform 100ms ease-out;
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
}

.btn:focus-visible {
    outline: none;
    box-shadow: var(--focus-violet);
}

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

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

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

.btn-secondary {
    background: transparent;
    color: var(--text-secondary);
    border-color: var(--border-default);
}

.btn-secondary:hover {
    background: var(--bg-surface-3);
    color: var(--text-primary);
    border-color: var(--border-emphasis);
}

.btn-ghost {
    background: transparent;
    color: var(--text-tertiary);
    padding-inline: var(--space-md);
}

.btn-ghost:hover {
    color: var(--text-primary);
}

.btn-lg {
    padding: 16px 28px;
    font-size: 16px;
}

.btn-sm {
    padding: 10px 16px;
    font-size: 13px;
}

.btn-arrow::after {
    content: '→';
    transition: transform 150ms ease-out;
    display: inline-block;
}

.btn-arrow:hover::after {
    transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   6. Header / Navigation
   -------------------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(11, 17, 32, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
}

.site-header .container {
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2xl);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 18px;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.brand-mark {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: inline-block;
    object-fit: contain;
    flex-shrink: 0;
}

.brand strong {
    font-weight: 800;
}

.brand span {
    font-weight: 400;
    color: var(--text-secondary);
}

.nav-primary {
    display: flex;
    align-items: center;
    gap: var(--space-2xl);
}

.nav-primary a {
    color: var(--text-tertiary);
    font-size: 14px;
    font-weight: 500;
    transition: color 150ms ease-out;
}

.nav-primary a:hover {
    color: var(--text-primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    align-items: center;
    justify-content: center;
}

@media (max-width: 960px) {
    .nav-primary {
        display: none;
    }
    .nav-toggle {
        display: inline-flex;
    }
    .nav-primary.open {
        display: flex;
        position: absolute;
        top: var(--header-h);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        padding: var(--space-xl);
        background: var(--bg-surface-1);
        border-bottom: 1px solid var(--border-default);
        gap: var(--space-lg);
    }
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    padding-block: var(--space-4xl) var(--space-5xl);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 0%, rgba(139, 92, 246, 0.15), transparent 50%),
        radial-gradient(circle at 80% 60%, rgba(124, 58, 237, 0.10), transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: var(--space-3xl);
    }
}

.hero-text .eyebrow {
    margin-bottom: var(--space-xl);
}

.hero-text h1 {
    margin-bottom: var(--space-xl);
}

.hero-text h1 .accent {
    color: var(--violet-400);
    display: block;
}

.hero-text .lead {
    margin-bottom: var(--space-2xl);
    max-width: 520px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
}

.trust-strip {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-lg) var(--space-xl);
    color: var(--text-muted);
    font-size: 13px;
    align-items: center;
}

.trust-strip span {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
}

.trust-strip span::before {
    content: '✓';
    color: var(--success-text);
    font-weight: 700;
}

/* Hero visual: photo + floating app card */
.hero-visual {
    position: relative;
    aspect-ratio: 16 / 11;
    border-radius: var(--radius-2xl);
    background: linear-gradient(135deg, #F5F1EB 0%, #E8DFD3 100%);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4),
                0 0 0 1px rgba(167, 139, 250, 0.08);
}

.hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 18%;
    border-radius: var(--radius-2xl);
}

.live-card {
    position: absolute;
    bottom: -6%;
    right: -8%;
    top: auto;
    width: min(320px, 70%);
    background: var(--bg-surface-2);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--modal-glow), 0 20px 40px rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.live-card .live-card-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--violet-300);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: var(--space-md);
}

.live-card .live-card-header::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success-text);
    box-shadow: 0 0 8px var(--success);
}

.live-card-row {
    margin-bottom: var(--space-md);
}

.live-card-row label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}

.live-card-row .value {
    color: var(--text-primary);
    font-weight: 600;
}

.live-card-row .amount {
    font-family: var(--font-mono);
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-primary);
}

.live-card .pill {
    display: inline-block;
    background: var(--violet-500);
    color: #fff;
    padding: 4px 10px;
    border-radius: var(--radius-xs);
    font-size: 13px;
    font-weight: 600;
}

.live-card .progress {
    margin-top: var(--space-md);
    height: 4px;
    border-radius: var(--radius-full);
    background: var(--bg-surface-3);
    overflow: hidden;
}

.live-card .progress-bar {
    height: 100%;
    width: 94%;
    background: linear-gradient(90deg, var(--violet-500), var(--violet-400));
    border-radius: inherit;
}

.live-card .meta {
    display: flex;
    justify-content: space-between;
    margin-top: var(--space-sm);
    font-size: 11px;
    color: var(--text-muted);
}

@media (max-width: 1024px) {
    .live-card {
        right: -4%;
        bottom: -4%;
    }
}

@media (max-width: 600px) {
    .hero-visual {
        aspect-ratio: 4 / 3;
    }
    .live-card {
        position: static;
        width: 100%;
        margin-top: var(--space-lg);
    }
}

/* --------------------------------------------------------------------------
   8. Pitch tiles ("Snap. Forward. Connect.")
   -------------------------------------------------------------------------- */
.pitch {
    background: var(--bg-surface-1);
    border-block: 1px solid var(--border-subtle);
}

.pitch-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

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

.pitch-tile {
    background: var(--bg-surface-2);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    transition: border-color 150ms ease-out, transform 150ms ease-out;
}

.pitch-tile:hover {
    border-color: var(--border-emphasis);
    transform: translateY(-2px);
}

.pitch-tile .icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: rgba(167, 139, 250, 0.12);
    color: var(--violet-400);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
}

.pitch-tile h3 {
    margin-bottom: var(--space-sm);
}

.pitch-tile p {
    color: var(--text-tertiary);
    font-size: 14px;
}

.pitch-footer {
    text-align: center;
    margin-top: var(--space-3xl);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-display);
}

/* --------------------------------------------------------------------------
   9. Before / After
   -------------------------------------------------------------------------- */
.ba-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    max-width: 880px;
    margin-inline: auto;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-surface-2);
}

.ba-row {
    display: grid;
    grid-template-columns: 1fr 60px 1fr;
    align-items: center;
    padding: var(--space-xl);
    border-bottom: 1px solid var(--border-subtle);
}

.ba-row:last-child {
    border-bottom: none;
}

.ba-before,
.ba-after {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

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

.ba-before .label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.ba-before .text {
    font-size: 15px;
    color: var(--text-tertiary);
    text-decoration: line-through;
    text-decoration-color: rgba(148, 163, 184, 0.4);
}

.ba-arrow {
    text-align: center;
    color: var(--violet-400);
    font-size: 1.5rem;
    font-weight: 700;
}

.ba-after .label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--success-text);
}

.ba-after .text {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

@media (max-width: 700px) {
    .ba-row {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    .ba-arrow {
        text-align: left;
        font-size: 1.25rem;
    }
}

/* --------------------------------------------------------------------------
  10. How it works
   -------------------------------------------------------------------------- */
.step {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
    padding-block: var(--space-3xl);
}

.step:nth-child(even) .step-visual {
    order: 2;
}

@media (max-width: 900px) {
    .step {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    .step:nth-child(even) .step-visual {
        order: unset;
    }
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: var(--violet-900);
    color: var(--violet-300);
    font-family: var(--font-mono);
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.step h3 {
    margin-bottom: var(--space-md);
    font-size: 1.875rem;
}

.step p {
    color: var(--text-tertiary);
    font-size: 1rem;
    margin-bottom: var(--space-lg);
}

.step .step-caption {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--violet-300);
    background: rgba(167, 139, 250, 0.08);
    border: 1px solid rgba(167, 139, 250, 0.18);
    border-radius: var(--radius-sm);
    padding: 6px 12px;
}

.step-visual {
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: linear-gradient(135deg, #F5F1EB 0%, #E8DFD3 100%);
    position: relative;
}

.step-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
}

/* --------------------------------------------------------------------------
  11. Persona tabs
   -------------------------------------------------------------------------- */
.persona-tabs {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-2xl);
    flex-wrap: wrap;
}

.persona-tab {
    background: var(--bg-surface-2);
    border: 1px solid var(--border-default);
    color: var(--text-tertiary);
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 500;
    transition: all 150ms ease-out;
}

.persona-tab:hover {
    color: var(--text-primary);
    border-color: var(--border-emphasis);
}

.persona-tab.active {
    background: var(--violet-400);
    border-color: var(--violet-400);
    color: var(--primary-text);
    font-weight: 600;
}

.persona-panel {
    display: none;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-3xl);
    align-items: center;
    background: var(--bg-surface-2);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-xl);
    padding: var(--space-3xl);
}

.persona-panel.active {
    display: grid;
}

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

.persona-portrait {
    aspect-ratio: 4 / 5;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: linear-gradient(135deg, #F5F1EB 0%, #E8DFD3 100%);
}

.persona-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
}

.persona-content h3 {
    margin-bottom: var(--space-md);
}

.persona-content p.lead {
    margin-bottom: var(--space-xl);
}

/* --------------------------------------------------------------------------
  12. Bento grid (What you get)
   -------------------------------------------------------------------------- */
.bento {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: minmax(200px, auto);
    gap: var(--space-lg);
}

.bento-tile {
    background: var(--bg-surface-2);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    transition: border-color 150ms ease-out;
    position: relative;
    overflow: hidden;
}

.bento-tile:hover {
    border-color: var(--border-emphasis);
}

.bento-tile.span-3 { grid-column: span 3; }
.bento-tile.span-2 { grid-column: span 2; }
.bento-tile.span-4 { grid-column: span 4; grid-row: span 2; }

.bento-tile h3 {
    font-size: 1.375rem;
    margin-bottom: var(--space-md);
}

.bento-tile p {
    color: var(--text-tertiary);
    font-size: 14px;
}

.bento-tile .icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: rgba(167, 139, 250, 0.12);
    color: var(--violet-400);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
}

@media (max-width: 1024px) {
    .bento { grid-template-columns: repeat(2, 1fr); }
    .bento-tile.span-3,
    .bento-tile.span-2,
    .bento-tile.span-4 { grid-column: span 1; grid-row: auto; }
}

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

/* --------------------------------------------------------------------------
  13. Testimonials
   -------------------------------------------------------------------------- */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

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

.testimonial {
    background: var(--bg-surface-2);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.testimonial blockquote {
    font-size: 1.0625rem;
    line-height: 1.55;
    color: var(--text-primary);
    flex: 1;
}

.testimonial blockquote::before {
    content: '"';
    color: var(--violet-400);
    font-family: var(--font-display);
    font-size: 2.5rem;
    line-height: 0.5;
    display: block;
    margin-bottom: var(--space-sm);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    border-top: 1px solid var(--border-subtle);
    padding-top: var(--space-lg);
}

.testimonial-author .avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-surface-3);
    flex-shrink: 0;
}

.testimonial-author .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
}

.testimonial-author .name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.testimonial-author .role {
    font-size: 13px;
    color: var(--text-muted);
}

/* --------------------------------------------------------------------------
  14. Pricing
   -------------------------------------------------------------------------- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

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

.pricing-tile {
    background: var(--bg-surface-2);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    position: relative;
}

.pricing-tile.popular {
    border-color: var(--violet-500);
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.06), var(--bg-surface-2) 50%);
}

.pricing-tile .popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--violet-500);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 12px;
    border-radius: var(--radius-full);
}

.pricing-tile h3 {
    font-size: 1.25rem;
}

.pricing-tile .price {
    display: flex;
    align-items: baseline;
    gap: var(--space-xs);
}

.pricing-tile .price .amount {
    font-family: var(--font-mono);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.pricing-tile .price .per {
    font-size: 14px;
    color: var(--text-muted);
}

.pricing-tile .pitch {
    color: var(--text-tertiary);
    background: none;
    border: none;
    padding: 0;
    font-size: 14px;
}

.pricing-tile ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-block: var(--space-md);
    flex: 1;
}

.pricing-tile ul li {
    display: flex;
    gap: var(--space-sm);
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.4;
}

.pricing-tile ul li::before {
    content: '✓';
    color: var(--success-text);
    font-weight: 700;
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
  15. Trust block (4-icon row)
   -------------------------------------------------------------------------- */
.trust-block {
    background: var(--bg-surface-1);
    border-block: 1px solid var(--border-subtle);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
    text-align: center;
}

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

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}

.trust-item .icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--bg-surface-2);
    border: 1px solid var(--border-default);
    color: var(--violet-300);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.trust-item .label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.trust-link {
    text-align: center;
    margin-top: var(--space-2xl);
}

/* --------------------------------------------------------------------------
  16. Final CTA
   -------------------------------------------------------------------------- */
.cta-final {
    position: relative;
    overflow: hidden;
    background: var(--bg-surface-1);
}

.cta-final::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 50%, rgba(139, 92, 246, 0.18), transparent 60%),
        radial-gradient(circle at 70% 50%, rgba(167, 139, 250, 0.10), transparent 60%);
    pointer-events: none;
}

.cta-final .container {
    position: relative;
    z-index: 1;
    text-align: center;
    padding-block: var(--space-5xl);
}

.cta-final h2 {
    margin-bottom: var(--space-lg);
    font-size: clamp(2.25rem, 4vw + 1rem, 3.75rem);
}

.cta-final p {
    color: var(--text-tertiary);
    margin-bottom: var(--space-2xl);
    font-size: 1.0625rem;
}

/* --------------------------------------------------------------------------
  17. Footer
   -------------------------------------------------------------------------- */
.site-footer {
    background: var(--bg-surface-1);
    border-top: 1px solid var(--border-subtle);
    padding-block: var(--space-4xl) var(--space-2xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(4, 1fr);
    gap: var(--space-2xl);
    margin-bottom: var(--space-3xl);
}

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

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

.footer-brand p {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: var(--space-md);
}

.footer-col h4 {
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: var(--space-md);
    font-family: var(--font-sans);
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-col a {
    color: var(--text-tertiary);
    font-size: 14px;
    transition: color 150ms ease-out;
}

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

.footer-bottom {
    border-top: 1px solid var(--border-subtle);
    padding-top: var(--space-xl);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--space-md);
    color: var(--text-muted);
    font-size: 13px;
}

.footer-bottom .legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-lg);
}

.footer-bottom .legal-links a {
    color: var(--text-muted);
}

.footer-bottom .legal-links a:hover {
    color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
  18. Utilities
   -------------------------------------------------------------------------- */
.center { text-align: center; }
.muted { color: var(--text-muted); }
.tertiary { color: var(--text-tertiary); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }

.skip-link {
    position: absolute;
    top: -40px;
    left: 8px;
    background: var(--violet-400);
    color: var(--primary-text);
    padding: 8px 16px;
    border-radius: var(--radius-md);
    z-index: 100;
}

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

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================================================================
   V4 — 7-section homepage components
   ========================================================================== */

/* Hero microcopy & trust strip mini ---------------------------------------- */
.hero-microcopy {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md) var(--space-lg);
    color: var(--text-tertiary);
    font-size: 13px;
    margin-top: var(--space-md);
    margin-bottom: var(--space-lg);
}

.hero-microcopy span {
    color: var(--text-secondary);
}

.trust-strip-mini {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md) var(--space-lg);
    align-items: center;
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-subtle);
    font-size: 13px;
    color: var(--text-tertiary);
}

.trust-strip-mini .ts-rating {
    color: var(--violet-300);
    font-weight: 600;
}

/* SECTION 2 — Demo block --------------------------------------------------- */
.demo-section {
    padding-block: var(--space-5xl);
    background: var(--bg-surface-1);
    border-block: 1px solid var(--border-subtle);
}

.demo-block {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: var(--space-xl);
    align-items: center;
    background: var(--bg-surface-2);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    max-width: 1080px;
    margin-inline: auto;
}

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

.demo-frame {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.demo-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--violet-300);
}

/* receipt mockup */
.demo-receipt {
    background: linear-gradient(180deg, #FBFAF7 0%, #F4F1EA 100%);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    color: #1F2937;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.6;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: rotate(-1deg);
}

.receipt-paper .r-vendor {
    font-weight: 700;
    font-size: 14px;
    text-align: center;
    margin-bottom: 4px;
}

.receipt-paper .r-meta {
    text-align: center;
    color: #6B7280;
    font-size: 11px;
    margin-bottom: var(--space-sm);
}

.receipt-paper .r-meta-bottom {
    margin-top: var(--space-sm);
    margin-bottom: 0;
}

.receipt-paper .r-line {
    border-top: 1px dashed #9CA3AF;
    margin-block: var(--space-sm);
}

.receipt-paper .r-row {
    display: flex;
    justify-content: space-between;
    gap: var(--space-md);
}

.receipt-paper .r-total {
    font-weight: 700;
    font-size: 14px;
    margin-top: 4px;
}

/* counter / pipe */
.demo-pipe {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    color: var(--violet-400);
}

.demo-counter {
    text-align: center;
    background: rgba(167, 139, 250, 0.1);
    border: 1px solid rgba(167, 139, 250, 0.25);
    border-radius: var(--radius-lg);
    padding: var(--space-md) var(--space-lg);
}

.counter-num {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    font-family: var(--font-mono);
}

.counter-num span {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--violet-300);
    line-height: 1;
}

.counter-num small {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.counter-label {
    font-size: 11px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 4px;
    font-weight: 600;
}

.pipe-arrow {
    color: var(--violet-400);
}

@media (max-width: 900px) {
    .demo-pipe {
        flex-direction: row;
    }
    .pipe-arrow {
        transform: rotate(90deg);
    }
}

/* app card */
.demo-app-card {
    background: var(--bg-surface-3);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.dac-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--violet-300);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--border-subtle);
}

.dac-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success-text);
    box-shadow: 0 0 8px var(--success);
}

.dac-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-md);
    padding-block: 6px;
    font-size: 13px;
}

.dac-key {
    color: var(--text-muted);
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.06em;
}

.dac-val {
    color: var(--text-primary);
    font-weight: 600;
    text-align: right;
}

.dac-row-success {
    margin-top: var(--space-sm);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-subtle);
}

.dac-success {
    color: var(--success-text);
}

.demo-app-card .pill {
    display: inline-block;
    background: var(--violet-500);
    color: #fff;
    padding: 2px 10px;
    border-radius: var(--radius-xs);
    font-size: 12px;
    font-weight: 600;
}

.demo-footnote {
    text-align: center;
    color: var(--text-tertiary);
    margin-top: var(--space-2xl);
    font-size: 15px;
}

.demo-footnote strong {
    color: var(--text-primary);
    font-weight: 700;
}

/* SECTION 3 — Persona static cards ---------------------------------------- */
.persona-static-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

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

.persona-card {
    background: var(--bg-surface-2);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 150ms ease-out, transform 150ms ease-out;
}

.persona-card:hover {
    border-color: var(--violet-500);
    transform: translateY(-4px);
}

.persona-photo {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #F5F1EB 0%, #E8DFD3 100%);
}

.persona-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
}

.persona-body {
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: var(--space-md);
}

.persona-body h3 {
    font-size: 1.5rem;
    margin-bottom: 0;
}

.persona-body ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    flex: 1;
}

.persona-body ul li {
    display: flex;
    gap: var(--space-sm);
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.4;
}

.persona-body ul li::before {
    content: '✓';
    color: var(--success-text);
    font-weight: 700;
    flex-shrink: 0;
}

.persona-link {
    color: var(--violet-400);
    font-weight: 600;
    font-size: 14px;
    margin-top: auto;
    transition: color 150ms ease-out, transform 150ms ease-out;
    display: inline-block;
}

.persona-link:hover {
    color: var(--violet-300);
    transform: translateX(2px);
}

/* SECTION 4 — Social Proof: hero quote + sub-quotes ----------------------- */
.social-proof {
    background: var(--bg-surface-1);
    border-block: 1px solid var(--border-subtle);
}

.testimonial-layout {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: var(--space-xl);
    align-items: stretch;
}

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

.testimonial-hero {
    background: var(--bg-surface-2);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: grid;
    grid-template-columns: 280px 1fr;
}

@media (max-width: 700px) {
    .testimonial-hero {
        grid-template-columns: 1fr;
    }
}

.th-photo {
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, #F5F1EB 0%, #E8DFD3 100%);
    overflow: hidden;
}

@media (max-width: 700px) {
    .th-photo {
        aspect-ratio: 16 / 10;
    }
}

.th-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 22%;
}

.th-content {
    padding: var(--space-2xl);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--space-lg);
}

.th-content blockquote {
    font-size: clamp(1.125rem, 0.6vw + 1rem, 1.375rem);
    line-height: 1.5;
    color: var(--text-primary);
    font-weight: 500;
}

.th-content blockquote::before {
    content: '"';
    color: var(--violet-400);
    font-family: var(--font-display);
    font-size: 3rem;
    line-height: 0.5;
    display: block;
    margin-bottom: var(--space-sm);
}

.th-author {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--border-subtle);
    padding-top: var(--space-md);
}

.th-author strong {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 15px;
}

.th-author span {
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 2px;
}

.testimonial-sub-stack {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.testimonial-sub {
    background: var(--bg-surface-2);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    display: flex;
    gap: var(--space-md);
    align-items: flex-start;
    flex: 1;
}

.ts-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-surface-3);
    flex-shrink: 0;
}

.ts-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
}

.testimonial-sub blockquote {
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.45;
    margin-bottom: var(--space-sm);
}

.testimonial-sub .ts-author {
    color: var(--text-muted);
    font-size: 12px;
}

.testimonial-sub .ts-author strong {
    color: var(--text-secondary);
    font-weight: 600;
}

/* SECTION 5 — Pricing block ----------------------------------------------- */
.pricing-section {
    background: var(--bg-base);
}

.pricing-toggle {
    display: inline-flex;
    background: var(--bg-surface-2);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-full);
    padding: 4px;
    margin: 0 auto var(--space-2xl);
    gap: 4px;
    width: max-content;
    margin-left: auto;
    margin-right: auto;
}

/* center the toggle as block */
.pricing-section .pricing-toggle {
    display: flex;
    width: max-content;
    margin-left: auto;
    margin-right: auto;
}

.pt-btn {
    padding: 8px 16px;
    border-radius: var(--radius-full);
    color: var(--text-tertiary);
    font-size: 13px;
    font-weight: 600;
    transition: all 150ms ease-out;
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
}

.pt-btn:hover {
    color: var(--text-primary);
}

.pt-btn.active {
    background: var(--violet-400);
    color: var(--primary-text);
}

.pt-save {
    font-size: 11px;
    background: rgba(255, 255, 255, 0.18);
    color: inherit;
    padding: 2px 6px;
    border-radius: var(--radius-xs);
    font-weight: 700;
}

.pt-btn:not(.active) .pt-save {
    background: var(--success-bg);
    color: var(--success-text);
    border: 1px solid var(--success-border);
}

.pricing-tile .pitch-line {
    color: var(--text-tertiary);
    font-size: 14px;
    margin-top: -6px;
}

.pricing-footer {
    text-align: center;
    margin-top: var(--space-2xl);
}

.pricing-microcopy {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-md) var(--space-xl);
    margin-top: var(--space-lg);
    color: var(--text-tertiary);
    font-size: 13px;
}

/* SECTION 6 — Compliance block -------------------------------------------- */
.compliance-section {
    padding-block: var(--space-5xl);
    background: var(--bg-surface-1);
    border-block: 1px solid var(--border-subtle);
}

.compliance-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto var(--space-3xl);
}

.compliance-header h2 {
    margin-bottom: var(--space-md);
}

.compliance-header p {
    color: var(--text-tertiary);
    font-size: 1.0625rem;
}

.compliance-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
    max-width: 1080px;
    margin: 0 auto;
}

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

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

.compliance-item {
    background: var(--bg-surface-2);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
    transition: border-color 150ms ease-out;
}

.compliance-item:hover {
    border-color: var(--violet-500);
}

.ci-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: rgba(167, 139, 250, 0.12);
    color: var(--violet-300);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ci-label {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 16px;
    line-height: 1.2;
}

.ci-detail {
    color: var(--text-tertiary);
    font-size: 14px;
    line-height: 1.4;
}

.compliance-link {
    text-align: center;
    margin-top: var(--space-2xl);
}

/* SECTION 7 — Final CTA --------------------------------------------------- */
.cta-final h2 {
    margin-bottom: var(--space-xl);
}

.cta-microcopy {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-md) var(--space-xl);
    margin-top: var(--space-lg);
    color: var(--text-tertiary);
    font-size: 13px;
}

.cta-microcopy span {
    color: var(--text-secondary);
}

.cta-secondary {
    color: var(--text-muted);
    margin-top: var(--space-2xl);
    font-size: 14px;
}

.cta-secondary a {
    color: var(--violet-300);
    font-weight: 600;
}

/* Footer trust strip ------------------------------------------------------ */
.footer-trust-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-lg) var(--space-2xl);
    padding-bottom: var(--space-2xl);
    margin-bottom: var(--space-2xl);
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-tertiary);
    font-size: 13px;
}

/* ==========================================================================
   V5 — Hero card NEXT TO image (no longer overlapping the face)
   ========================================================================== */

.hero-v5 .hero-grid-v5 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--space-3xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

@media (max-width: 1024px) {
    .hero-v5 .hero-grid-v5 {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
}

/* the visual wrap holds the image + the card sitting outside the image */
.hero-visual-wrap {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: var(--space-md);
}

@media (max-width: 700px) {
    .hero-visual-wrap {
        grid-template-columns: 1fr;
    }
}

.hero-v5 .hero-visual {
    position: relative;
    aspect-ratio: 5 / 4;
    border-radius: var(--radius-2xl);
    background: linear-gradient(135deg, #F5F1EB 0%, #E8DFD3 100%);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4),
                0 0 0 1px rgba(167, 139, 250, 0.08);
    overflow: hidden;
}

.hero-v5 .hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    border-radius: inherit;
}

.hero-card {
    background: var(--bg-surface-2);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45),
                0 0 0 1px rgba(167, 139, 250, 0.10),
                0 0 80px rgba(139, 92, 246, 0.06);
    align-self: center;
    z-index: 2;
}

.hero-card-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--violet-300);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 4px;
}

.hero-card-header::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success-text);
    box-shadow: 0 0 8px var(--success);
    flex-shrink: 0;
}

.hero-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-md);
    padding-block: 4px;
    font-size: 13px;
}

.hero-card-row .hc-label {
    color: var(--text-muted);
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.06em;
}

.hero-card-row .hc-value {
    color: var(--text-primary);
    font-weight: 600;
    text-align: right;
}

.hero-card-row .hc-amount {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.hero-card-row .pill {
    display: inline-block;
    background: var(--violet-500);
    color: #fff;
    padding: 2px 10px;
    border-radius: var(--radius-xs);
    font-size: 12px;
    font-weight: 600;
}

.hero-card-row-success {
    margin-top: 4px;
    padding-top: var(--space-sm);
    border-top: 1px solid var(--border-subtle);
}

.hero-card-row-success .hc-success {
    color: var(--success-text);
    font-weight: 600;
    font-size: 13px;
}

.hero-card-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
    padding-top: var(--space-sm);
    border-top: 1px solid var(--border-subtle);
    font-size: 11px;
    color: var(--text-muted);
}

@media (max-width: 700px) {
    .hero-card {
        margin-top: var(--space-md);
    }
}

/* override v2 hero behavior so the new wrap takes over */
.hero-v5 .hero-grid {
    display: none;
}

/* ==========================================================================
   V5 — Pricing 4-tile grid + plan-switch line
   ========================================================================== */

.pricing-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

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

@media (max-width: 600px) {
    .pricing-grid-4 {
        grid-template-columns: 1fr;
    }
}

.pricing-tile-free {
    background: var(--bg-surface-2);
    border-style: dashed;
    border-color: var(--border-default);
}

.pricing-tile-free .price .amount {
    color: var(--text-secondary);
}

.plan-switch-line {
    text-align: center;
    margin-top: var(--space-2xl);
    color: var(--text-secondary);
    font-size: 14px;
}

.plan-switch-line strong {
    color: var(--text-primary);
    font-weight: 700;
}

/* ==========================================================================
   V5 — Sub-page shared components
   ========================================================================== */

/* Page hero (smaller than homepage hero, used on all sub-pages) */
.page-hero {
    padding-block: var(--space-4xl) var(--space-3xl);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 0%, rgba(139, 92, 246, 0.12), transparent 50%);
    pointer-events: none;
}

.page-hero .container {
    position: relative;
    z-index: 1;
    max-width: 880px;
}

.page-hero h1 {
    font-size: clamp(2.25rem, 4vw + 1rem, 4rem);
    margin-bottom: var(--space-lg);
    line-height: 1.05;
}

.page-hero .lead {
    margin-bottom: var(--space-xl);
    color: var(--text-secondary);
    max-width: 640px;
    margin-inline: auto;
}

.page-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    justify-content: center;
}

/* --- page-hero with visual: 2-column layout, image on the right --- */
.page-hero.has-visual {
    text-align: left;
}

.page-hero.has-visual .container {
    max-width: var(--container-max);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.page-hero.has-visual .lead {
    margin-inline: 0;
}

.page-hero.has-visual .page-hero-actions {
    justify-content: flex-start;
}

.page-hero-visual {
    border-radius: var(--radius-xl);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, #F5F1EB 0%, #E8DFD3 100%);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4),
                0 0 0 1px rgba(167, 139, 250, 0.08);
}

.page-hero-visual.aspect-16-9 {
    aspect-ratio: 16 / 9;
}

.page-hero-visual.aspect-21-9 {
    aspect-ratio: 21 / 9;
}

.page-hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

@media (max-width: 1024px) {
    .page-hero.has-visual .container {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    .page-hero.has-visual {
        text-align: left;
    }
}

@media (max-width: 600px) {
    .page-hero.has-visual .page-hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
    .page-hero-visual {
        aspect-ratio: 4 / 3;
    }
}

/* Content prose blocks (used in security, how-it-works, features) */
.prose {
    max-width: 760px;
    margin-inline: auto;
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.7;
}

.prose h2 {
    margin-top: var(--space-3xl);
    margin-bottom: var(--space-md);
    font-size: 1.75rem;
}

.prose h2:first-child {
    margin-top: 0;
}

.prose h3 {
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-md);
    font-size: 1.25rem;
    color: var(--text-primary);
}

.prose p {
    margin-bottom: var(--space-md);
}

.prose ul,
.prose ol {
    margin-bottom: var(--space-md);
    padding-left: var(--space-xl);
}

.prose ul li,
.prose ol li {
    margin-bottom: 6px;
}

.prose ul li::marker { color: var(--violet-400); }
.prose ol li::marker { color: var(--violet-400); font-weight: 600; }

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

.prose blockquote {
    border-left: 3px solid var(--violet-400);
    padding-left: var(--space-lg);
    color: var(--text-tertiary);
    font-style: italic;
    margin-block: var(--space-lg);
}

.prose code {
    font-family: var(--font-mono);
    background: var(--bg-surface-2);
    padding: 2px 6px;
    border-radius: var(--radius-xs);
    font-size: 0.92em;
    color: var(--violet-300);
}

.prose hr {
    border: none;
    border-top: 1px solid var(--border-subtle);
    margin-block: var(--space-2xl);
}

/* Info card (used to highlight a fact or status) */
.info-card {
    background: var(--bg-surface-2);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: var(--space-lg);
    align-items: start;
    margin-block: var(--space-xl);
}

.info-card .ic-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: rgba(167, 139, 250, 0.12);
    color: var(--violet-300);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.info-card h3 {
    margin-bottom: var(--space-sm);
    font-size: 1.125rem;
}

.info-card p {
    color: var(--text-tertiary);
    font-size: 14px;
    line-height: 1.55;
    margin: 0;
}

.info-card .ic-status {
    display: inline-block;
    margin-top: var(--space-sm);
    background: var(--warning-bg);
    color: var(--warning-text);
    border: 1px solid var(--warning-border);
    border-radius: var(--radius-xs);
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.info-card .ic-status-shipped {
    background: var(--success-bg);
    color: var(--success-text);
    border-color: var(--success-border);
}

/* FAQ accordion */
.faq {
    max-width: 760px;
    margin-inline: auto;
}

.faq details {
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    background: var(--bg-surface-2);
    margin-bottom: var(--space-md);
    overflow: hidden;
    transition: border-color 150ms ease-out;
}

.faq details[open] {
    border-color: var(--violet-500);
}

.faq summary {
    cursor: pointer;
    list-style: none;
    padding: var(--space-lg) var(--space-xl);
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-md);
    font-size: 15px;
}

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

.faq summary::after {
    content: '+';
    color: var(--violet-400);
    font-size: 24px;
    line-height: 1;
    font-weight: 400;
    transition: transform 200ms ease-out;
}

.faq details[open] summary::after {
    content: '−';
}

.faq details > div {
    padding: 0 var(--space-xl) var(--space-xl);
    color: var(--text-tertiary);
    font-size: 14px;
    line-height: 1.6;
}

.faq details > div p { margin-bottom: var(--space-sm); }
.faq details > div p:last-child { margin-bottom: 0; }

/* Comparison table (pricing.html, features.html) */
.compare-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-surface-2);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    overflow: hidden;
    font-size: 14px;
}

.compare-table thead th {
    background: var(--bg-surface-3);
    padding: var(--space-md) var(--space-lg);
    text-align: left;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 13px;
    border-bottom: 1px solid var(--border-default);
}

.compare-table thead th.col-popular {
    background: rgba(139, 92, 246, 0.15);
    color: var(--violet-300);
}

.compare-table tbody td,
.compare-table tbody th {
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-secondary);
}

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

.compare-table tbody th {
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.02);
}

.compare-table tbody td.center { text-align: center; }
.compare-table .yes { color: var(--success-text); font-weight: 700; }
.compare-table .no { color: var(--text-muted); }
.compare-table .col-popular { background: rgba(139, 92, 246, 0.05); }

.compare-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-block: var(--space-2xl);
}

.compare-table-wrap.sticky-first th:first-child,
.compare-table-wrap.sticky-first td:first-child {
    position: sticky;
    left: 0;
    background: var(--bg-surface-2);
    z-index: 1;
}

/* Step list (how-it-works) */
.step-list {
    max-width: 880px;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-2xl);
}

.step-item {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: var(--space-xl);
    padding: var(--space-xl);
    background: var(--bg-surface-2);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
}

.step-item-number {
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 800;
    color: var(--violet-300);
    line-height: 1;
}

.step-item h3 {
    margin-bottom: var(--space-sm);
    font-size: 1.25rem;
}

.step-item p { color: var(--text-tertiary); font-size: 15px; }

/* Persona-page specific: a-week-in-your-life cards */
.week-grid {
    display: grid;
    grid-template-columns: 1fr 60px 1fr;
    gap: var(--space-lg);
    align-items: start;
    max-width: 1000px;
    margin-inline: auto;
    margin-bottom: var(--space-3xl);
}

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

.week-col {
    background: var(--bg-surface-2);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
}

.week-col h3 {
    margin-bottom: var(--space-md);
    font-size: 1.125rem;
}

.week-col-before h3 { color: var(--text-muted); }
.week-col-after h3 { color: var(--success-text); }

.week-col ul { display: flex; flex-direction: column; gap: var(--space-sm); }
.week-col li {
    color: var(--text-tertiary);
    font-size: 14px;
    padding-left: var(--space-md);
    position: relative;
}

.week-col-before li::before { content: '·'; color: var(--text-muted); position: absolute; left: 0; }
.week-col-after li::before { content: '✓'; color: var(--success-text); position: absolute; left: 0; }

.week-arrow {
    align-self: center;
    text-align: center;
    color: var(--violet-400);
    font-size: 2rem;
    font-weight: 700;
}

@media (max-width: 800px) {
    .week-arrow { transform: rotate(90deg); margin-block: var(--space-md); }
}

/* Outcome card grid (used on persona pages) */
.outcome-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

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

.outcome-card {
    background: var(--bg-surface-2);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
}

.outcome-card .oc-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: rgba(167, 139, 250, 0.12);
    color: var(--violet-400);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
}

.outcome-card h3 { font-size: 1.125rem; margin-bottom: var(--space-sm); }
.outcome-card p { color: var(--text-tertiary); font-size: 14px; line-height: 1.5; }

/* Bento grid v5 (features.html) */
.bento-v5 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    max-width: 1080px;
    margin-inline: auto;
}

@media (max-width: 900px) { .bento-v5 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .bento-v5 { grid-template-columns: 1fr; } }

.bento-v5-tile {
    background: var(--bg-surface-2);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: border-color 150ms ease-out;
}

.bento-v5-tile:hover { border-color: var(--violet-500); }
.bento-v5-tile.span-2 { grid-column: span 2; }

@media (max-width: 900px) { .bento-v5-tile.span-2 { grid-column: span 1; } }

.bento-v5-tile .icon {
    width: 40px; height: 40px; border-radius: var(--radius-md);
    background: rgba(167,139,250,0.12); color: var(--violet-400);
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: var(--space-md);
}

.bento-v5-tile h3 { font-size: 1.125rem; margin-bottom: var(--space-sm); }
.bento-v5-tile p { color: var(--text-tertiary); font-size: 14px; line-height: 1.5; }

/* Changelog list */
.changelog-list {
    max-width: 760px;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-2xl);
}

.changelog-entry {
    border-left: 2px solid var(--border-default);
    padding-left: var(--space-xl);
    position: relative;
}

.changelog-entry::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--violet-400);
    box-shadow: 0 0 0 4px var(--bg-base);
}

.changelog-entry .cl-date {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--violet-300);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: var(--space-sm);
}

.changelog-entry h3 { font-size: 1.0625rem; margin-bottom: var(--space-sm); }
.changelog-entry p { color: var(--text-tertiary); font-size: 14px; }

.changelog-entry .cl-tag {
    display: inline-block;
    margin-right: var(--space-sm);
    background: var(--violet-900);
    color: var(--violet-300);
    padding: 2px 8px;
    border-radius: var(--radius-xs);
    font-size: 11px;
    font-weight: 600;
}

/* ==========================================================================
   V6 — Mobile fixes (Phase 6, 2026-04-29)
   Based on real-device audit (iPhone Safari, ~390pt viewport)
   ========================================================================== */

/* Reduce container padding on mobile so content gets max breathing room */
@media (max-width: 600px) {
    .container {
        padding-inline: var(--space-lg); /* 16px instead of 24px */
    }
}

/* --- Header --- */
@media (max-width: 700px) {
    .site-header .container {
        gap: var(--space-md);
    }
    /* Hide "Sign in" on mobile — moves into burger drawer */
    .site-header .nav-actions .btn-ghost {
        display: none;
    }
    /* Shorter CTA text via aria-label hack: keep desktop text, but mobile rule */
    .site-header .nav-actions .btn-primary {
        padding: 10px 14px;
        font-size: 13px;
    }
}

/* When burger drawer is open, show Sign in inside it */
@media (max-width: 700px) {
    .nav-primary.open {
        display: flex !important;
        flex-direction: column;
        position: absolute;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: var(--bg-surface-1);
        border-bottom: 1px solid var(--border-default);
        padding: var(--space-lg);
        gap: var(--space-md);
        z-index: 49;
    }
    .nav-primary.open a {
        padding-block: var(--space-sm);
        font-size: 16px;
        color: var(--text-primary);
    }
}

/* --- Hero (V5) — Mobile: text-first, image below CTA, card in own block --- */
@media (max-width: 1024px) {
    .hero-v5 .hero-grid-v5 {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
}

@media (max-width: 700px) {
    .hero-v5 {
        padding-block: var(--space-2xl) var(--space-xl);
    }
    .hero-v5 h1 {
        font-size: clamp(2.5rem, 9vw, 3.5rem);
    }
    .hero-v5 .lead {
        font-size: 1rem;
    }
    /* Full-width primary CTA on mobile */
    .hero-v5 .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .hero-v5 .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
    /* Microcopy items wrap nicely */
    .hero-microcopy {
        gap: var(--space-sm) var(--space-md);
        font-size: 12px;
    }
    .trust-strip-mini {
        gap: var(--space-sm) var(--space-md);
        font-size: 12px;
    }

    /* Visual wrap collapses to stack: image, then card as separate block */
    .hero-visual-wrap {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    .hero-v5 .hero-visual {
        aspect-ratio: 4 / 3; /* shorter on mobile */
    }
    .hero-v5 .hero-visual img {
        object-position: center 25%;
    }
    /* Card: own block, full width, normal flow */
    .hero-card {
        align-self: stretch;
    }
}

/* --- Demo block --- */
@media (max-width: 900px) {
    .demo-block {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
        padding: var(--space-lg);
    }
    /* Receipt + app card max-width on mobile, centered */
    .demo-receipt,
    .demo-app-card {
        max-width: 360px;
        margin-inline: auto;
        width: 100%;
    }
    .demo-pipe {
        flex-direction: row;
        justify-content: center;
        gap: var(--space-md);
        margin-block: var(--space-sm);
    }
    .pipe-arrow {
        transform: rotate(90deg);
    }
    .demo-counter {
        padding: var(--space-sm) var(--space-md);
    }
    .counter-num span {
        font-size: 1.875rem;
    }
}

@media (max-width: 600px) {
    .demo-section {
        padding-block: var(--space-3xl);
    }
    .demo-receipt {
        padding: var(--space-md);
        font-size: 12px;
    }
    .receipt-paper .r-vendor {
        font-size: 13px;
    }
}

/* --- Persona static grid --- */
@media (max-width: 900px) {
    .persona-static-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    .persona-photo {
        aspect-ratio: 16 / 9;
    }
    .persona-body {
        padding: var(--space-lg);
    }
}

/* --- Testimonials --- */
@media (max-width: 900px) {
    .testimonial-layout {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
}

@media (max-width: 700px) {
    .testimonial-hero {
        grid-template-columns: 1fr;
    }
    .th-photo {
        aspect-ratio: 16 / 10;
    }
    .th-content {
        padding: var(--space-lg);
    }
    .th-content blockquote {
        font-size: 1rem;
    }
}

/* --- Pricing 4-tile grid --- */
@media (max-width: 1100px) {
    .pricing-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .pricing-grid-4 {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    .pricing-tile {
        padding: var(--space-lg);
    }
    .pricing-tile .price .amount {
        font-size: 2rem;
    }
    .pricing-toggle {
        margin-bottom: var(--space-lg);
    }
    .pricing-microcopy {
        gap: var(--space-sm) var(--space-md);
        font-size: 12px;
    }
}

/* --- Compliance grid --- */
@media (max-width: 600px) {
    .compliance-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    .compliance-section {
        padding-block: var(--space-3xl);
    }
    .compliance-item {
        padding: var(--space-lg);
    }
}

/* --- Final CTA --- */
@media (max-width: 600px) {
    .cta-final h2 {
        font-size: clamp(1.75rem, 7vw, 2.5rem);
    }
    .cta-final .container {
        padding-block: var(--space-3xl);
    }
    .cta-microcopy {
        gap: var(--space-sm) var(--space-md);
        font-size: 12px;
    }
}

/* --- Footer --- */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }
    .footer-brand {
        grid-column: 1 / -1; /* span full width on top */
        margin-bottom: var(--space-md);
    }
}

@media (max-width: 500px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr; /* still 2 cols even on small */
    }
    .footer-brand {
        grid-column: 1 / -1;
    }
    .footer-trust-strip {
        gap: var(--space-md);
        font-size: 12px;
        justify-content: center;
    }
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        font-size: 12px;
    }
}

/* --- Generic readability --- */
@media (max-width: 600px) {
    h1 { letter-spacing: -0.02em; }
    h2 { font-size: clamp(1.625rem, 6vw, 2.25rem); }
    .section, .section-tight {
        padding-block: var(--space-3xl);
    }
    .section-header {
        margin-bottom: var(--space-2xl);
    }
}

/* Page-hero sub-pages */
@media (max-width: 600px) {
    .page-hero {
        padding-block: var(--space-2xl) var(--space-xl);
    }
    .page-hero h1 {
        font-size: clamp(2rem, 8vw, 2.75rem);
    }
    .page-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .page-hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Comparison table — horizontal scroll on small screens */
@media (max-width: 700px) {
    .compare-table {
        font-size: 12px;
        min-width: 560px;
    }
    .compare-table thead th,
    .compare-table tbody td,
    .compare-table tbody th {
        padding: var(--space-sm) var(--space-md);
    }
}

/* Week-grid persona pages — stack vertically */
@media (max-width: 800px) {
    .week-arrow {
        font-size: 1.5rem;
    }
}

/* Step list how-it-works */
@media (max-width: 600px) {
    .step-item {
        grid-template-columns: 48px 1fr;
        gap: var(--space-md);
        padding: var(--space-lg);
    }
    .step-item-number {
        font-size: 1.5rem;
    }
}

/* Outcome grid */
@media (max-width: 900px) {
    .outcome-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
}

/* Bento v5 features */
@media (max-width: 900px) {
    .bento-v5 {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    .bento-v5-tile,
    .bento-v5-tile.span-2 {
        grid-column: span 1;
    }
}

/* FAQ */
@media (max-width: 600px) {
    .faq summary {
        padding: var(--space-md);
        font-size: 14px;
    }
    .faq details > div {
        padding: 0 var(--space-md) var(--space-md);
        font-size: 13px;
    }
}

/* ==========================================================================
   V8 — Security page restructure (laypeople-first sections)
   ========================================================================== */

/* SEE-GRID: "What we see / What we don't see" 2-column comparison */
.see-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    max-width: 1100px;
    margin: 0 auto;
}

@media (max-width: 800px) {
    .see-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
}

.see-col {
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    border: 1px solid;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.see-col-no {
    background: var(--error-bg);
    border-color: var(--error-border);
}

.see-col-yes {
    background: var(--success-bg);
    border-color: var(--success-border);
}

.see-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
}

.see-col-no .see-icon {
    background: rgba(239, 68, 68, 0.18);
    color: var(--error-text);
}

.see-col-yes .see-icon {
    background: rgba(16, 185, 129, 0.18);
    color: var(--success-text);
}

.see-col h3 {
    font-size: 1.25rem;
    margin: 0;
}

.see-col-no h3 { color: var(--error-text); }
.see-col-yes h3 { color: var(--success-text); }

.see-col ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    list-style: none;
    padding: 0;
}

.see-col ul li {
    padding-left: var(--space-md);
    position: relative;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
}

.see-col-no ul li::before {
    content: '✕';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--error-text);
    font-weight: 700;
}

.see-col-yes ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--success-text);
    font-weight: 700;
}

.see-col strong {
    color: var(--text-primary);
}

.see-footer {
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid currentColor;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-tertiary);
    border-color: var(--border-subtle);
}

/* FLOW-SECTION: 4-step receipt journey */
.flow-section {
    background: var(--bg-surface-1);
    border-block: 1px solid var(--border-subtle);
}

.flow-banner {
    background: var(--bg-surface-2);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    text-align: center;
    margin-inline: auto;
    max-width: 880px;
    margin-bottom: var(--space-3xl);
}

.flow-banner-graphic {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
    margin-bottom: var(--space-md);
}

.fb-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    background: var(--bg-surface-3);
    border: 1px solid var(--border-default);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    transition: transform 200ms ease-out;
}

.fb-lock {
    background: rgba(167, 139, 250, 0.18);
    border-color: rgba(167, 139, 250, 0.35);
    box-shadow: 0 0 24px rgba(167, 139, 250, 0.25);
}

.fb-arrow {
    color: var(--violet-400);
    font-size: 22px;
    font-weight: 700;
}

.flow-banner-caption {
    color: var(--text-secondary);
    font-size: 15px;
    max-width: 600px;
    margin-inline: auto;
    line-height: 1.55;
}

/* Image-banner variant: shows IMG-17 banner instead of emoji-graphic */
.flow-banner-image {
    padding: 0;
    overflow: hidden;
    background: var(--bg-surface-2);
    border: 1px solid var(--border-default);
    text-align: center;
}

.flow-banner-image img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 21 / 9;
    object-fit: cover;
}

.flow-banner-image .flow-banner-fallback-graphic {
    display: none;
}

.flow-banner-image .flow-banner-caption {
    padding: var(--space-lg) var(--space-xl);
    margin: 0;
}

/* If image fails to load, switch to fallback emoji graphic */
.flow-banner.flow-banner-fallback img {
    display: none;
}

.flow-banner.flow-banner-fallback .flow-banner-fallback-graphic {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
    padding: var(--space-2xl) var(--space-xl) var(--space-md);
}

@media (max-width: 600px) {
    .fb-icon {
        width: 48px;
        height: 48px;
        font-size: 22px;
    }
    .flow-banner {
        padding: var(--space-lg);
    }
}

.flow-steps {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    max-width: 760px;
    margin-inline: auto;
}

.flow-step {
    display: grid;
    grid-template-columns: 48px 56px 1fr;
    gap: var(--space-lg);
    background: var(--bg-surface-2);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    align-items: start;
}

.fs-num {
    font-family: var(--font-mono);
    font-size: 1.875rem;
    font-weight: 800;
    color: var(--violet-300);
    line-height: 1;
}

.fs-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: rgba(167, 139, 250, 0.12);
    color: var(--violet-400);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.fs-body h3 {
    font-size: 1.125rem;
    margin-bottom: var(--space-sm);
}

.fs-body p {
    color: var(--text-tertiary);
    font-size: 14px;
    line-height: 1.55;
    margin: 0;
}

@media (max-width: 600px) {
    .flow-step {
        grid-template-columns: 36px 1fr;
        gap: var(--space-md);
        padding: var(--space-lg);
    }
    .fs-icon { display: none; }
    .fs-num { font-size: 1.5rem; }
}

.flow-footer {
    text-align: center;
    color: var(--text-tertiary);
    font-size: 14px;
    margin-top: var(--space-2xl);
    max-width: 720px;
    margin-inline: auto;
    line-height: 1.55;
}

/* LAWFUL-CARD: V8.1 honest cooperation disclaimer below see-grid */
.lawful-card {
    margin-top: var(--space-xl);
    background: var(--bg-surface-2);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: var(--space-lg);
    max-width: 1100px;
    margin-inline: auto;
    align-items: start;
}

.lawful-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: rgba(167, 139, 250, 0.10);
    border: 1px solid rgba(167, 139, 250, 0.20);
    color: var(--violet-300);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.lawful-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 var(--space-sm) 0;
    font-family: var(--font-display);
}

.lawful-card p {
    color: var(--text-tertiary);
    font-size: 14px;
    line-height: 1.55;
    margin: 0 0 var(--space-sm) 0;
}

.lawful-card .lawful-footer {
    color: var(--text-muted);
    font-size: 13px;
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-subtle);
}

.lawful-card a {
    color: var(--violet-300);
    font-weight: 600;
}

@media (max-width: 600px) {
    .lawful-card {
        grid-template-columns: 1fr;
        gap: var(--space-md);
        padding: var(--space-lg);
    }
    .lawful-icon {
        width: 44px;
        height: 44px;
    }
}

/* ==========================================================================
   V10 — Affiliate page components
   ========================================================================== */

/* Tier-Tree: vertical pyramid showing the 4 commission levels */
.tier-tree {
    max-width: 720px;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-md);
}

.tier-row {
    background: var(--bg-surface-2);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    padding: var(--space-lg) var(--space-xl);
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: var(--space-lg);
    align-items: center;
    position: relative;
    transition: border-color 150ms ease-out, transform 150ms ease-out;
}

.tier-row:hover {
    border-color: var(--violet-500);
    transform: translateX(4px);
}

.tier-row::after {
    content: '↓';
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--violet-400);
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    z-index: 1;
}

.tier-row:last-child::after {
    display: none;
}

.tier-rate {
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 800;
    color: var(--violet-300);
    line-height: 1;
    text-align: center;
}

.tier-label {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 15px;
}

.tier-desc {
    color: var(--text-tertiary);
    font-size: 13px;
    margin-top: 2px;
}

.tier-example {
    font-family: var(--font-mono);
    color: var(--success-text);
    font-weight: 700;
    font-size: 14px;
    text-align: right;
    white-space: nowrap;
}

.tier-you {
    background: rgba(167, 139, 250, 0.10);
    border-color: rgba(167, 139, 250, 0.25);
    grid-template-columns: 1fr;
    text-align: center;
    padding: var(--space-md) var(--space-lg);
}

.tier-you-label {
    color: var(--violet-300);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 13px;
}

.tier-tree-footer {
    text-align: center;
    margin-top: var(--space-xl);
    color: var(--text-secondary);
    font-size: 15px;
}

.tier-tree-footer strong {
    color: var(--violet-300);
    font-family: var(--font-mono);
    font-size: 1.125rem;
}

@media (max-width: 600px) {
    .tier-row {
        grid-template-columns: 60px 1fr;
        gap: var(--space-md);
        padding: var(--space-md) var(--space-lg);
    }
    .tier-example {
        grid-column: 1 / -1;
        text-align: left;
        margin-top: 4px;
        font-size: 13px;
    }
    .tier-rate {
        font-size: 1.5rem;
    }
}

/* Calc-Block: live earnings calculator */
.calc-block {
    background: var(--bg-surface-2);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    max-width: 900px;
    margin-inline: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: start;
}

@media (max-width: 800px) {
    .calc-block {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
        padding: var(--space-lg);
    }
}

.calc-inputs {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.calc-inputs h3 {
    font-size: 1rem;
    margin-bottom: var(--space-sm);
    color: var(--violet-300);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 11px;
}

.calc-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.calc-field label {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
}

.calc-field input[type="number"] {
    background: var(--bg-surface-3);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 16px;
    padding: 10px 14px;
    width: 100%;
    transition: border-color 150ms ease-out;
}

.calc-field input[type="number"]:focus {
    outline: none;
    border-color: var(--violet-400);
    box-shadow: var(--focus-violet);
}

.calc-plan-picker {
    display: flex;
    gap: 6px;
    background: var(--bg-surface-3);
    padding: 4px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-default);
}

.calc-plan-picker label {
    flex: 1;
    cursor: pointer;
    text-align: center;
    padding: 8px 6px;
    border-radius: var(--radius-sm);
    color: var(--text-tertiary);
    font-size: 13px;
    font-weight: 600;
    transition: all 150ms ease-out;
}

.calc-plan-picker input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.calc-plan-picker input[type="radio"]:checked + label {
    background: var(--violet-400);
    color: var(--primary-text);
}

.calc-output {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.calc-output h3 {
    font-size: 11px;
    margin-bottom: var(--space-sm);
    color: var(--violet-300);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-family: var(--font-sans);
    font-weight: 700;
}

.calc-output-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--space-md);
    padding: 8px 0;
    border-bottom: 1px dashed var(--border-subtle);
    align-items: baseline;
}

.calc-output-row:last-of-type {
    border-bottom: none;
}

.calc-output-row .calc-key {
    color: var(--text-tertiary);
    font-size: 13px;
}

.calc-output-row .calc-key small {
    color: var(--text-muted);
    font-size: 11px;
    margin-left: 4px;
}

.calc-output-row .calc-val {
    font-family: var(--font-mono);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 15px;
    white-space: nowrap;
}

.calc-output-row.calc-row-network {
    background: rgba(167, 139, 250, 0.08);
    margin: 6px -8px 0;
    padding: 8px;
    border-radius: var(--radius-sm);
    border-bottom: none;
}

.calc-output-row.calc-row-network .calc-key {
    color: var(--violet-300);
    font-weight: 700;
}

.calc-output-row.calc-row-network .calc-val {
    color: var(--violet-300);
    font-weight: 800;
}

.calc-totals {
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 2px solid var(--violet-700);
}

.calc-total-monthly,
.calc-total-annual {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--space-md);
    align-items: baseline;
    padding: 6px 0;
}

.calc-total-monthly .calc-key,
.calc-total-annual .calc-key {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
}

.calc-total-monthly .calc-val {
    font-family: var(--font-mono);
    font-size: 1.875rem;
    font-weight: 800;
    color: var(--success-text);
    white-space: nowrap;
}

.calc-total-annual .calc-val {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
}

.calc-footnote {
    margin-top: var(--space-md);
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.5;
}

/* Example-Card: worked example stories */
.example-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    max-width: 1100px;
    margin-inline: auto;
}

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

.example-card {
    background: var(--bg-surface-2);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.example-card .ex-tag {
    display: inline-block;
    width: max-content;
    background: rgba(167, 139, 250, 0.10);
    border: 1px solid rgba(167, 139, 250, 0.25);
    color: var(--violet-300);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 10px;
    border-radius: var(--radius-xs);
}

.example-card h3 {
    font-size: 1.125rem;
    margin: 0;
}

.example-card p {
    color: var(--text-tertiary);
    font-size: 14px;
    line-height: 1.55;
    margin: 0;
}

.example-card strong {
    color: var(--text-primary);
}

.example-card .ex-math {
    background: var(--bg-surface-3);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.example-card .ex-result {
    color: var(--success-text);
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 800;
    margin-top: 4px;
}

/* Persona-Affiliate-Grid: 4 target audiences */
.persona-affiliate-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    max-width: 1100px;
    margin-inline: auto;
}

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

@media (max-width: 500px) {
    .persona-affiliate-grid {
        grid-template-columns: 1fr;
    }
}

.persona-aff-card {
    background: var(--bg-surface-2);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    transition: border-color 150ms ease-out;
}

.persona-aff-card:hover {
    border-color: var(--violet-500);
}

.persona-aff-card .pa-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: rgba(167, 139, 250, 0.12);
    color: var(--violet-400);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
}

.persona-aff-card h3 {
    font-size: 1rem;
    margin-bottom: var(--space-sm);
}

.persona-aff-card p {
    color: var(--text-tertiary);
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

/* Disclosure-Card: honest mechanics disclosure */
.disclosure-card {
    margin-top: var(--space-2xl);
    background: var(--bg-surface-2);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: var(--space-lg);
    align-items: start;
    max-width: 900px;
    margin-inline: auto;
}

.disclosure-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: rgba(167, 139, 250, 0.10);
    border: 1px solid rgba(167, 139, 250, 0.20);
    color: var(--violet-300);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.disclosure-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 var(--space-sm) 0;
    font-family: var(--font-display);
}

.disclosure-card p {
    color: var(--text-tertiary);
    font-size: 14px;
    line-height: 1.55;
    margin: 0;
}

@media (max-width: 600px) {
    .disclosure-card {
        grid-template-columns: 1fr;
        gap: var(--space-md);
        padding: var(--space-lg);
    }
}

/* Sub-hook line under hero CTA on affiliate */
.affiliate-sub-hook {
    margin-top: var(--space-md);
    color: var(--success-text);
    font-size: 14px;
    font-weight: 600;
}

/* RETENTION-CARD: V8.2 honest "what stays for compliance" disclosure */
.retention-card {
    margin-top: var(--space-2xl);
    background: var(--bg-surface-2);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: var(--space-lg);
    align-items: start;
}

.retention-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: rgba(167, 139, 250, 0.10);
    border: 1px solid rgba(167, 139, 250, 0.20);
    color: var(--violet-300);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.retention-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 var(--space-sm) 0;
    font-family: var(--font-display);
}

.retention-card p {
    color: var(--text-tertiary);
    font-size: 14px;
    line-height: 1.55;
    margin: 0 0 var(--space-md) 0;
}

.retention-table {
    width: 100%;
    border-collapse: collapse;
    margin-block: var(--space-md);
    font-size: 13px;
}

.retention-table th,
.retention-table td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-subtle);
    vertical-align: top;
}

.retention-table th {
    color: var(--text-secondary);
    font-weight: 500;
    width: 60%;
}

.retention-table td {
    color: var(--text-primary);
    font-weight: 600;
    font-family: var(--font-mono);
    font-size: 12px;
}

.retention-table tr:last-child th,
.retention-table tr:last-child td {
    border-bottom: none;
}

.retention-card .retention-footer {
    color: var(--text-muted);
    font-size: 13px;
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-subtle);
    margin-bottom: 0;
}

@media (max-width: 600px) {
    .retention-card {
        grid-template-columns: 1fr;
        gap: var(--space-md);
        padding: var(--space-lg);
    }
    .retention-icon { width: 44px; height: 44px; }
    .retention-table th { width: 55%; font-size: 12px; }
    .retention-table td { font-size: 11px; }
}

/* STEP-ITEM-IMG: how-it-works steps with photo + text */
.step-item-img {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-2xl);
    align-items: center;
    background: var(--bg-surface-2);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    margin-bottom: var(--space-xl);
    overflow: hidden;
}

.step-item-img-reverse .sii-photo {
    order: 2;
}

.sii-photo {
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: linear-gradient(135deg, #F5F1EB 0%, #E8DFD3 100%);
}

.sii-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
}

.sii-num {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    color: var(--violet-300);
    background: rgba(167, 139, 250, 0.10);
    border: 1px solid rgba(167, 139, 250, 0.20);
    padding: 4px 10px;
    border-radius: var(--radius-xs);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: var(--space-md);
}

.sii-body h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
}

.sii-body p {
    color: var(--text-tertiary);
    font-size: 15px;
    line-height: 1.55;
    margin-bottom: var(--space-md);
}

.sii-body ul {
    color: var(--text-tertiary);
    padding-left: var(--space-xl);
    margin-bottom: var(--space-md);
}

.sii-body ul li {
    margin-bottom: 6px;
    font-size: 14px;
    line-height: 1.5;
}

.sii-body ul li::marker {
    color: var(--violet-400);
}

.sii-body strong {
    color: var(--text-primary);
}

.sii-body code {
    font-family: var(--font-mono);
    background: var(--bg-surface-3);
    color: var(--violet-300);
    padding: 2px 6px;
    border-radius: var(--radius-xs);
    font-size: 0.92em;
}

@media (max-width: 900px) {
    .step-item-img {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
        padding: var(--space-lg);
    }
    .step-item-img-reverse .sii-photo {
        order: unset;
    }
    .sii-body h3 {
        font-size: 1.25rem;
    }
}

/* DELETE-STORY: 3-beat right-to-erase narrative */
.delete-section {
    background: var(--bg-base);
}

.delete-story {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    background: var(--bg-surface-2);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
}

.ds-step {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: var(--space-lg);
    align-items: start;
    padding-bottom: var(--space-lg);
    border-bottom: 1px dashed var(--border-subtle);
}

.ds-step:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.ds-num {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--violet-300);
    line-height: 1;
}

.ds-step p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.55;
    margin: 0;
}

.ds-step strong {
    color: var(--text-primary);
}

@media (max-width: 600px) {
    .delete-story {
        padding: var(--space-lg);
    }
    .ds-step {
        grid-template-columns: 32px 1fr;
        gap: var(--space-md);
    }
    .ds-num { font-size: 1.25rem; }
}

/* =====================================================================
   Legacy class shim — v1 legal pages migrated to v2 stylesheet
   (privacy / terms / imprint / dpa / subprocessors)
   These pages keep their content structure but pick up v2 tokens.
   ===================================================================== */

.funktionen-hero {
    padding: var(--space-5xl) 0 var(--space-3xl);
    text-align: center;
    background: linear-gradient(180deg, var(--bg-surface-1) 0%, var(--bg-base) 100%);
    border-bottom: 1px solid var(--border-subtle);
}

.funktionen-hero h1 {
    font-family: 'Plus Jakarta Sans', Inter, system-ui, sans-serif;
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-primary);
    margin: var(--space-lg) 0 var(--space-md);
    letter-spacing: -0.02em;
}

.funktionen-hero p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.6;
}

.section-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--violet-900);
    color: var(--violet-300);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.gradient-text {
    background: linear-gradient(135deg, var(--violet-400) 0%, var(--violet-300) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.feature-section {
    padding: var(--space-4xl) 0;
    background: var(--bg-base);
}

.handbuch-content {
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
}

.handbuch-content h2 {
    font-family: 'Plus Jakarta Sans', Inter, system-ui, sans-serif;
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin: var(--space-3xl) 0 var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--border-subtle);
}

.handbuch-content h2:first-child {
    margin-top: 0;
}

.handbuch-content h3 {
    color: var(--text-primary);
    font-size: 1.125rem;
    font-weight: 600;
    margin: var(--space-xl) 0 var(--space-sm);
}

.handbuch-content h4 {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    margin: var(--space-lg) 0 var(--space-xs);
}

.handbuch-content p,
.handbuch-content li {
    color: var(--text-secondary);
}

.handbuch-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

.handbuch-content a {
    color: var(--violet-400);
    text-decoration: underline;
    text-decoration-color: rgba(167, 139, 250, 0.3);
    text-underline-offset: 3px;
    transition: text-decoration-color 0.15s ease;
}

.handbuch-content a:hover {
    text-decoration-color: var(--violet-400);
}

.handbuch-content ul,
.handbuch-content ol {
    margin: var(--space-md) 0;
    padding-left: var(--space-xl);
}

.handbuch-content ul li,
.handbuch-content ol li {
    margin-bottom: var(--space-xs);
}

.handbuch-content code {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.875em;
    background: var(--bg-surface-2);
    color: var(--violet-300);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid var(--border-subtle);
}

.handbuch-content pre {
    background: var(--bg-surface-1);
    border: 1px solid var(--border-default);
    border-radius: 8px;
    padding: var(--space-lg);
    overflow-x: auto;
    margin: var(--space-lg) 0;
}

.handbuch-content pre code {
    background: transparent;
    border: none;
    padding: 0;
    color: var(--text-secondary);
}

.handbuch-content table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-lg) 0;
    background: var(--bg-surface-1);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
}

.handbuch-content th,
.handbuch-content td {
    padding: var(--space-md);
    text-align: left;
    border-bottom: 1px solid var(--border-subtle);
}

.handbuch-content th {
    background: var(--bg-surface-2);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.handbuch-content blockquote {
    border-left: 3px solid var(--violet-400);
    padding: var(--space-sm) var(--space-lg);
    margin: var(--space-lg) 0;
    background: var(--bg-surface-1);
    border-radius: 0 8px 8px 0;
    color: var(--text-secondary);
    font-style: italic;
}

/* =====================================================================
   Cookie consent banner — TTDSG § 25 / DSGVO Art. 7 compliant
   Per-category opt-in (Strictly Necessary | Preferences | Analytics)
   ===================================================================== */

#cookieConsent {
    position: fixed;
    bottom: 16px;
    right: 16px;
    left: 16px;
    max-width: 480px;
    margin-left: auto;
    background: var(--bg-surface-2);
    border: 1px solid var(--border-default);
    border-radius: 12px;
    padding: var(--space-lg);
    box-shadow: 0 0 60px rgba(139, 92, 246, 0.08);
    z-index: 9000;
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
}

#cookieConsent.is-settings {
    max-width: 560px;
}

#cookieConsent h3 {
    font-family: 'Plus Jakarta Sans', Inter, system-ui, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 var(--space-xs);
}

#cookieConsent p {
    margin: 0 0 var(--space-md);
}

#cookieConsent a {
    color: var(--violet-400);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    align-items: center;
}

.cookie-btn {
    flex: 1 1 auto;
    padding: 8px 14px;
    border: 1px solid var(--border-default);
    background: transparent;
    color: var(--text-secondary);
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    font-family: inherit;
}

.cookie-btn:hover {
    border-color: var(--border-emphasis);
    color: var(--text-primary);
    background: var(--bg-surface-3);
}

.cookie-btn.cookie-accept {
    background: var(--primary);
    color: var(--primary-text);
    border-color: var(--primary);
}

.cookie-btn.cookie-accept:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
}

.cookie-btn.cookie-link {
    background: transparent;
    border-color: transparent;
    color: var(--violet-400);
    text-decoration: underline;
    text-underline-offset: 3px;
    flex: 0 0 auto;
}

.cookie-btn.cookie-link:hover {
    background: transparent;
    color: var(--violet-300);
}

.cookie-categories {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin: var(--space-md) 0 var(--space-lg);
}

.cookie-category {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-surface-1);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
}

.cookie-category-info {
    flex: 1 1 auto;
    min-width: 0;
}

.cookie-category-info h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 2px;
}

.cookie-category-info small {
    color: var(--text-tertiary);
    font-size: 0.75rem;
    line-height: 1.4;
    display: block;
}

.cookie-toggle {
    flex: 0 0 auto;
    width: 36px;
    height: 20px;
    background: var(--bg-surface-3);
    border: 1px solid var(--border-default);
    border-radius: 999px;
    cursor: pointer;
    position: relative;
    padding: 0;
    transition: background 0.15s ease;
}

.cookie-toggle::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    background: var(--text-secondary);
    border-radius: 50%;
    transition: transform 0.15s ease, background 0.15s ease;
}

.cookie-toggle[aria-pressed="true"] {
    background: var(--violet-700);
    border-color: var(--violet-600);
}

.cookie-toggle[aria-pressed="true"]::after {
    transform: translateX(16px);
    background: var(--violet-300);
}

.cookie-toggle[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

.footer-cookie-link {
    background: none;
    border: none;
    padding: 0;
    color: inherit;
    cursor: pointer;
    font: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-cookie-link:hover {
    color: var(--violet-400);
}

@media (max-width: 600px) {
    #cookieConsent {
        right: 8px;
        left: 8px;
        bottom: 8px;
        padding: var(--space-md);
    }

    .cookie-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-btn {
        flex: 1 1 100%;
    }
}

/* =====================================================================
   Chat widget — js/chat.js?v=1
   Floating violet button bottom-right + slide-up panel.
   Dark-first, brightness-only elevation (no shadows on cards).
   ===================================================================== */

.chat-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--primary-text);
    border: none;
    cursor: pointer;
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 1px var(--violet-500), var(--shadow-modal-glow);
    transition: transform 0.15s ease, background 0.15s ease;
}

.chat-btn:hover {
    transform: scale(1.06);
    background: var(--primary-hover);
}

.chat-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.35), var(--shadow-modal-glow);
}

.chat-btn-hidden {
    display: none;
}

.chat-panel {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 380px;
    height: 560px;
    max-height: calc(100vh - 48px);
    background: var(--bg-surface-1);
    border: 1px solid var(--border-default);
    border-radius: 16px;
    z-index: 9999;
    display: none;
    flex-direction: column;
    overflow: hidden;
    color: var(--text-secondary);
    box-shadow: var(--shadow-modal-glow);
}

.chat-panel-open {
    display: flex;
    animation: chat-slide-up 0.2s ease-out;
}

@keyframes chat-slide-up {
    from { transform: translateY(16px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: var(--bg-surface-2);
    border-bottom: 1px solid var(--border-subtle);
    flex-shrink: 0;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.chat-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--violet-900);
    color: var(--violet-300);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.chat-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
}

.chat-subtitle {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    line-height: 1.3;
    margin-top: 2px;
}

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

.chat-reset,
.chat-close {
    background: transparent;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    color: var(--text-tertiary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    line-height: 1;
    transition: background 0.15s ease, color 0.15s ease;
    font-family: inherit;
}

.chat-reset:hover,
.chat-close:hover {
    background: var(--bg-surface-3);
    color: var(--text-primary);
}

.chat-close {
    font-size: 1.5rem;
    font-weight: 300;
}

.chat-messages {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--bg-base);
}

.chat-messages::-webkit-scrollbar {
    width: 8px;
}

.chat-messages::-webkit-scrollbar-track {
    background: var(--bg-base);
}

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--border-default);
    border-radius: 4px;
}

.chat-bubble {
    display: flex;
    max-width: 85%;
    animation: chat-bubble-in 0.18s ease-out;
}

@keyframes chat-bubble-in {
    from { transform: translateY(4px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.chat-bubble-user {
    align-self: flex-end;
}

.chat-bubble-assistant {
    align-self: flex-start;
}

.chat-bubble-content {
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 0.875rem;
    line-height: 1.5;
    word-wrap: break-word;
}

.chat-bubble-content p { margin: 0 0 8px 0; }
.chat-bubble-content p:last-child { margin-bottom: 0; }
.chat-bubble-content ul { margin: 4px 0 8px 0; padding-left: 18px; }
.chat-bubble-content li { margin-bottom: 3px; }
.chat-bubble-content strong { font-weight: 600; color: var(--text-primary); }
.chat-bubble-content a {
    color: var(--violet-400);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.chat-bubble-user .chat-bubble-content {
    background: var(--primary);
    color: var(--primary-text);
    border-bottom-right-radius: 4px;
}

.chat-bubble-user .chat-bubble-content a {
    color: var(--violet-900);
}

.chat-bubble-assistant .chat-bubble-content {
    background: var(--bg-surface-2);
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
    border-bottom-left-radius: 4px;
}

.chat-typing {
    display: inline-flex;
    gap: 4px;
    align-items: center;
}

.chat-typing span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-tertiary);
    animation: chat-typing-bounce 1.2s infinite;
}

.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes chat-typing-bounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
    30%           { transform: translateY(-4px); opacity: 1; }
}

.chat-feedback {
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.chat-feedback-label {
    color: var(--text-tertiary);
}

.chat-feedback-btn {
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-tertiary);
    width: 28px;
    height: 24px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.chat-feedback-btn:hover {
    background: var(--bg-surface-3);
    color: var(--text-primary);
    border-color: var(--border-default);
}

.chat-feedback-up.is-active {
    background: var(--success-bg);
    color: var(--success-text);
    border-color: var(--success-border);
}

.chat-feedback-down.is-active {
    background: var(--error-bg);
    color: var(--error-text);
    border-color: var(--error-border);
}

.chat-input-area {
    border-top: 1px solid var(--border-subtle);
    padding: 12px 14px;
    background: var(--bg-surface-2);
    flex-shrink: 0;
}

.chat-privacy {
    font-size: 0.6875rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    line-height: 1.3;
}

.chat-privacy a {
    color: var(--violet-400);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.chat-privacy a:hover {
    color: var(--violet-300);
}

.chat-input-row {
    display: flex;
    gap: 8px;
    align-items: flex-end;
}

.chat-input {
    flex: 1 1 auto;
    background: var(--bg-base);
    border: 1px solid var(--border-default);
    color: var(--text-primary);
    border-radius: 10px;
    padding: 9px 12px;
    font-size: 0.875rem;
    line-height: 1.4;
    resize: none;
    max-height: 120px;
    font-family: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

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

.chat-input:focus {
    outline: none;
    border-color: var(--violet-400);
    box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.18);
}

.chat-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.chat-send {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--primary);
    color: var(--primary-text);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, transform 0.1s ease;
}

.chat-send:hover {
    background: var(--primary-hover);
}

.chat-send:active {
    transform: scale(0.96);
}

.chat-send:disabled {
    background: var(--bg-surface-3);
    color: var(--text-muted);
    cursor: not-allowed;
}

.chat-details {
    background: var(--bg-base);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    margin-top: 8px;
    padding: 8px 10px;
}

.chat-details-summary {
    cursor: pointer;
    list-style: none;
    color: var(--text-tertiary);
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 6px;
    user-select: none;
}

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

.chat-details-arrow {
    transition: transform 0.15s ease;
}

.chat-details[open] .chat-details-arrow {
    transform: rotate(90deg);
}

.chat-details-content {
    border-top: 1px solid var(--border-subtle);
    padding-top: 8px;
    margin-top: 6px;
    color: var(--text-secondary);
    font-size: 0.75rem;
    line-height: 1.5;
}

.chat-details-content ul {
    margin: 4px 0;
    padding-left: 16px;
}

.chat-details-content li {
    margin-bottom: 4px;
}

@media (max-width: 768px) and (min-width: 481px) {
    .chat-panel {
        width: calc(100vw - 32px);
        max-width: 400px;
        height: 580px;
    }
}

@media (max-width: 480px) {
    .chat-panel {
        bottom: 0;
        right: 0;
        left: 0;
        width: 100%;
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
        border-left: none;
        border-right: none;
        border-bottom: none;
    }

    .chat-btn {
        bottom: 16px;
        right: 16px;
    }
}
