/*
Theme Name: AskWP Brutalist
Description: Swiss brutalism theme for AskWP. Refined grids, bold typography, premium startup energy.
Version: 1.0.0
Author: Justus August
Text Domain: askwp-brutalist
*/

/* ═══════════════════════════════════════════════════════════════
   VARIABLES
   ═══════════════════════════════════════════════════════════════ */

:root {
    --font-display: 'Bricolage Grotesque', sans-serif;
    --font-heading: 'Syne', sans-serif;
    --font-body: 'Hanken Grotesk', sans-serif;
    --font-mono: 'Azeret Mono', monospace;

    --c-bg: #EDE8DF;
    --c-text: #1C1510;
    --c-accent: #D4421E;
    --c-muted: #71706B;
    --c-border: #1C1510;
    --c-border-soft: #D6CFC5;
    --c-surface: #EAE5DD;
    --c-white: #FFFDF9;
    --c-dark: #1C1510;

    --space-1: 0.5rem;
    --space-2: 1rem;
    --space-3: 1.5rem;
    --space-4: 2rem;
    --space-5: 2.5rem;
    --space-6: 3rem;
    --space-8: 4rem;
    --space-10: 5rem;
    --space-12: 6rem;
    --space-16: 8rem;

    --container: 1280px;
    --gutter: 2rem;

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-pill: 100px;
}

/* ═══════════════════════════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════════════════════════ */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--c-text);
    background-color: var(--c-bg);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

::selection {
    background: var(--c-accent);
    color: var(--c-white);
}

/* ═══════════════════════════════════════════════════════════════
   TYPOGRAPHY
   ═══════════════════════════════════════════════════════════════ */

.t-display {
    font-family: var(--font-display);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.03em;
}

.t-display-hero {
    font-size: clamp(3rem, 8vw, 8rem);
}

.t-display-lg {
    font-size: clamp(2.25rem, 5vw, 5rem);
}

.t-display-md {
    font-size: clamp(1.75rem, 3.5vw, 3.5rem);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 4vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.75rem); }
h4 { font-size: 1.25rem; }

.label {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--c-muted);
}

.label-accent {
    color: var(--c-accent);
}

.mono {
    font-family: var(--font-mono);
}

p {
    max-width: 65ch;
}

/* ═══════════════════════════════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════════════════════════════ */

.container {
    max-width: var(--container);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}

.rule {
    border: none;
    border-top: 1px solid var(--c-border);
    margin: 0;
}

.rule-thick {
    border-top-width: 2px;
}

.rule-accent {
    border-top-color: var(--c-accent);
}

.section {
    padding-top: var(--space-16);
    padding-bottom: var(--space-16);
}

.section-border {
    border-top: 1px solid var(--c-border-soft);
}

/* Section numbering — Swiss style */
.section-label {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-6);
}

.section-label .label {
    white-space: nowrap;
}

.section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--c-border);
}

/* ═══════════════════════════════════════════════════════════════
   TOP BAR — red accent line
   ═══════════════════════════════════════════════════════════════ */

.top-accent {
    height: 3px;
    background: var(--c-accent);
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

/* ═══════════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════════ */

.site-header {
    position: sticky;
    top: 3px;
    z-index: 999;
    background: var(--c-bg);
    border-bottom: 1px solid var(--c-border-soft);
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.header-dark {
    background: var(--c-text);
    border-bottom-color: rgba(237, 232, 223, 0.1);
}

.site-header.header-dark .site-logo a {
    color: rgba(237, 232, 223, 0.6);
}

.top-accent.accent-dark {
    background: rgba(237, 232, 223, 0.15);
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4.5rem;
}

.site-logo {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.125rem;
    letter-spacing: -0.01em;
}

.site-logo a {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.site-logo .logo-mark {
    width: 1.625rem;
    height: 1.625rem;
    display: block;
    color: var(--c-accent);
}

.site-logo a:hover .logo-mark {
    animation: logoPulse 1.2s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.82); }
}

/* Navigation — see .site-nav-sheet below nav-toggle */

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    width: 2.75rem;
    height: 2.75rem;
    position: relative;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
    display: block;
    width: 1.25rem;
    height: 2px;
    background: var(--c-text);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-toggle span { top: 50%; }
.nav-toggle::before { content: ''; top: calc(50% - 6px); }
.nav-toggle::after { content: ''; top: calc(50% + 6px); }

/* Hamburger → X animation */
.nav-toggle.active span {
    opacity: 0;
    transform: translateX(-50%) scaleX(0);
}

.nav-toggle.active::before {
    top: 50%;
    transform: translateX(-50%) rotate(45deg);
}

.nav-toggle.active::after {
    top: 50%;
    transform: translateX(-50%) rotate(-45deg);
}

/* Dark header variant */
.site-header.header-dark .nav-toggle span,
.site-header.header-dark .nav-toggle::before,
.site-header.header-dark .nav-toggle::after {
    background: var(--c-bg);
}

/* Overlay */
.nav-overlay {
    display: none;
}

/* Bottom sheet nav */
.site-nav-sheet {
    display: none;
}

/* Desktop: render inline in header */
@media (min-width: 769px) {
    .site-nav-sheet {
        display: block;
    }

    .site-nav-sheet ul {
        list-style: none;
        display: flex;
        gap: 0;
    }

    .site-nav-sheet a {
        font-family: var(--font-body);
        font-size: 0.875rem;
        font-weight: 450;
        color: var(--c-muted);
        padding: 0.625rem 1rem;
        position: relative;
        transition: color 0.2s ease;
    }

    .site-nav-sheet a::after {
        content: '';
        position: absolute;
        left: 1rem;
        right: 1rem;
        bottom: 0.375rem;
        height: 1px;
        background: var(--c-accent);
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .site-nav-sheet a:hover::after,
    .site-nav-sheet .current-menu-item a::after {
        transform: scaleX(1);
    }

    .site-nav-sheet a:hover,
    .site-nav-sheet .current-menu-item a {
        color: var(--c-text);
    }

    .site-header.header-dark .site-nav-sheet a {
        color: rgba(237, 232, 223, 0.6);
    }

    .site-header.header-dark .site-nav-sheet a:hover,
    .site-header.header-dark .site-nav-sheet .current-menu-item a {
        color: var(--c-bg);
    }

    .site-header.header-dark .site-nav-sheet a::after {
        background: rgba(237, 232, 223, 0.15);
    }

    .nav-sheet-handle,
    .nav-sheet-cta {
        display: none;
    }
}

/* ═══════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════ */

.hero {
    min-height: calc(100vh - 4.5rem - 3px);
    min-height: calc(100dvh - 4.5rem - 3px);
    display: flex;
    align-items: center;
    padding: var(--space-8) 0;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-6);
    width: 100%;
}

.hero-content {
    max-width: 800px;
}

.hero-title {
    overflow: hidden;
}

.hero-title .line {
    display: block;
    overflow: hidden;
}

.hero-title .line-inner {
    display: block;
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-title .line:nth-child(2) .line-inner {
    animation-delay: 0.1s;
}

.hero-desc {
    margin-top: var(--space-4);
    font-size: 1.125rem;
    line-height: 1.6;
    max-width: 50ch;
    margin-left: auto;
    margin-right: auto;
    color: var(--c-muted);
    animation: fadeIn 0.6s ease 0.4s both;
}

.hero-cta {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeIn 0.6s ease 0.6s both;
}

/* ── Hero Conversation Block ── */

.hero-conversation {
    width: 100%;
    max-width: 620px;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    text-align: left;
    animation: fadeIn 0.6s ease 0.8s both;
    transition: opacity 0.4s ease;
}

.hero-conversation.transitioning {
    opacity: 0;
}

.hero-conv-header {
    padding: 0.625rem 1.25rem;
    border-bottom: 1px solid var(--c-border);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--c-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-conv-header::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--c-accent);
    border-radius: 50%;
    display: inline-block;
    animation: heroPulse 2s ease infinite;
}

.hero-conv-body {
    padding: var(--space-4) 1.25rem;
    height: 14rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.hero-conv-question-row {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--c-text);
}

.hero-conv-prompt {
    color: var(--c-accent);
    font-family: var(--font-mono);
    font-weight: 700;
    flex-shrink: 0;
}

.hero-conv-cursor {
    display: inline-block;
    width: 8px;
    height: 1.1em;
    background: var(--c-text);
    animation: heroBlink 0.7s step-end infinite;
    flex-shrink: 0;
}

.hero-conv-sources {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding: var(--space-1) 0;
    border-top: 1px dashed var(--c-border-soft);
    border-bottom: 1px dashed var(--c-border-soft);
    min-height: 2.25rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hero-conv-sources.visible {
    opacity: 1;
}

.hero-conv-sources.scanning::after {
    content: '';
    position: absolute;
    top: 0;
    left: -40%;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 66, 30, 0.1), transparent);
    animation: heroScan 0.8s ease-in-out forwards;
}

.hero-conv-sources.scanning-2::after {
    animation: heroScan 0.8s ease-in-out 0.3s forwards;
}

.hero-conv-searching {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--c-accent);
    animation: heroSearchPulse 0.4s ease infinite alternate;
}

@keyframes heroScan {
    from { left: -40%; }
    to { left: 100%; }
}

@keyframes heroSearchPulse {
    from { opacity: 0.5; }
    to { opacity: 1; }
}

.hero-conv-source {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--c-muted);
    background: var(--c-surface);
    padding: 0.2rem 0.5rem;
    border: 1px solid var(--c-border-soft);
    border-radius: var(--radius-pill);
    opacity: 0;
    transform: translateY(-10px) scale(1.15);
    filter: blur(6px);
    transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
}

.hero-conv-source.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

.hero-conv-answer {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--c-text);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-conv-answer.visible {
    opacity: 1;
}

.hero-conv-interactive {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    justify-content: center;
    flex: 1;
}

.hero-conv-turn-label {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--c-accent);
}

.hero-conv-input-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.9375rem;
}

.hero-conv-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-family: var(--font-mono);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--c-text);
}

.hero-conv-input::placeholder {
    color: var(--c-muted);
}

.hero-conv-kbd {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--c-muted);
    border: 1px solid var(--c-border-soft);
    border-radius: var(--radius-sm);
    padding: 0.125rem 0.5rem;
    flex-shrink: 0;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.hero-conv-kbd:hover {
    border-color: var(--c-accent);
    color: var(--c-accent);
}

@keyframes heroPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

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

/* ═══════════════════════════════════════════════════════════════
   BUTTONS / LINKS
   ═══════════════════════════════════════════════════════════════ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 1rem 2rem;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--c-text);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--c-text);
    transform: translateX(-101%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: -1;
}

.btn:hover {
    color: var(--c-bg);
    border-color: var(--c-text);
}

.btn:hover::before {
    transform: translateX(0);
}

.btn-accent {
    border-color: var(--c-accent);
    color: var(--c-accent);
}

.btn-accent::before {
    background: var(--c-accent);
}

.btn-accent:hover {
    color: var(--c-white);
}

.btn-filled {
    background: var(--c-text);
    color: var(--c-bg);
}

.btn-filled::before {
    background: var(--c-accent);
}

.btn .arrow {
    transition: transform 0.3s ease;
}

.btn:hover .arrow {
    transform: translateX(4px);
}

.link-arrow {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.link-arrow:hover {
    gap: 1rem;
    color: var(--c-accent);
}

/* ═══════════════════════════════════════════════════════════════
   SERVICES GRID
   ═══════════════════════════════════════════════════════════════ */

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid var(--c-border-soft);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.service-card {
    padding: var(--space-6);
    border-right: 1px solid var(--c-border-soft);
    border-bottom: 1px solid var(--c-border-soft);
    position: relative;
    overflow: hidden;
    transition: background 0.4s ease, color 0.4s ease, transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    min-height: 300px;
}

.service-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.service-card:nth-child(3n) {
    border-right: none;
}

.service-card:nth-child(n+4) {
    border-bottom: none;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--c-surface);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card > * {
    position: relative;
    z-index: 1;
}

.service-card:hover .label {
    color: var(--c-accent);
}

.service-card:hover .link-arrow {
    color: var(--c-accent);
}

.service-card .service-num {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    opacity: 0.12;
    position: absolute;
    top: var(--space-3);
    right: var(--space-3);
    transition: opacity 0.4s ease;
}

.service-card:hover .service-num {
    opacity: 0.18;
}

.service-card h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.375rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-top: var(--space-3);
    margin-bottom: var(--space-2);
}

.service-card p {
    font-size: 0.9375rem;
    color: var(--c-muted);
    flex: 1;
    transition: color 0.4s ease;
}

.service-card:hover p {
    color: var(--c-text);
}

.service-card .link-arrow {
    margin-top: var(--space-4);
}

/* ═══════════════════════════════════════════════════════════════
   STATS
   ═══════════════════════════════════════════════════════════════ */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 2px solid var(--c-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.stat-cell {
    padding: var(--space-6) var(--space-4);
    border-right: 1px solid var(--c-border);
    text-align: left;
}

.stat-cell:last-child {
    border-right: none;
}

.stat-value {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 0.95;
    letter-spacing: -0.02em;
}

.stat-value .accent {
    color: var(--c-accent);
}

.stat-label {
    margin-top: var(--space-2);
}

/* ═══════════════════════════════════════════════════════════════
   NEWS / BLOG LIST
   ═══════════════════════════════════════════════════════════════ */

.news-list {
    list-style: none;
}

.news-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: var(--space-4);
    align-items: baseline;
    padding: var(--space-4) 0;
    border-bottom: 1px solid var(--c-border-soft);
    transition: padding-left 0.3s ease;
}

.news-item:hover {
    padding-left: var(--space-2);
}

.news-item:first-child {
    border-top: 1px solid var(--c-border-soft);
}

.news-num {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--c-muted);
}

.news-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.125rem;
}

.news-item:hover .news-title {
    color: var(--c-accent);
}

.news-date {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--c-muted);
}

/* ═══════════════════════════════════════════════════════════════
   CTA SECTION
   ═══════════════════════════════════════════════════════════════ */

.cta-section {
    background: var(--c-text);
    color: var(--c-bg);
    padding: var(--space-6) 0 var(--space-1);
}

.cta-section .label {
    color: var(--c-accent);
}

/* ── Testimonial ── */

.cta-testimonial {
    text-align: center;
    padding-bottom: var(--space-6);
    margin-bottom: var(--space-6);
    border-bottom: 1px solid rgba(237, 232, 223, 0.1);
}

.cta-testimonial-mark {
    display: block;
    font-family: var(--font-display);
    font-size: 3rem;
    line-height: 1;
    color: var(--c-accent);
    margin-bottom: var(--space-1);
}

.cta-testimonial-quote {
    font-family: var(--font-body);
    font-size: 1.25rem;
    line-height: 1.5;
    color: rgba(237, 232, 223, 0.85);
    max-width: 600px;
    margin: 0 auto var(--space-2);
    font-style: normal;
}

.cta-testimonial-cite {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: rgba(237, 232, 223, 0.4);
    font-style: normal;
}

/* ── CTA grid: heading + pills ── */

.cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
    align-items: center;
    padding-bottom: var(--space-3);
    margin-bottom: var(--space-2);
}

.cta-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    align-content: center;
    align-self: center;
}

.cta-pill {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    line-height: 1;
    padding: 0.5rem 0.875rem;
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(237, 232, 223, 0.15);
    border-radius: 100px;
    color: rgba(237, 232, 223, 0.5);
    white-space: nowrap;
    opacity: 0;
    transform: translateY(-6px) scale(1.06);
    filter: blur(3px);
    transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), filter 0.35s ease, color 0.2s ease, border-color 0.2s ease;
}

.cta-pill.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

.cta-pill:hover {
    color: var(--c-accent);
    border-color: var(--c-accent);
}

/* Vary sizes for organic cloud feel */
.cta-pill:nth-child(1) { font-size: 0.8125rem; padding: 0.5rem 1rem; }
.cta-pill:nth-child(3) { font-size: 0.75rem; }
.cta-pill:nth-child(6) { font-size: 0.75rem; }
.cta-pill:nth-child(8) { font-size: 0.625rem; }

/* ── Install options ── */

.cta-install-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(237, 232, 223, 0.35);
    margin-bottom: var(--space-2);
}

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

.cta-install-card {
    border: 1px solid rgba(237, 232, 223, 0.1);
    border-radius: var(--radius-md);
    padding: var(--space-3);
}

.cta-install-card h4 {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--c-bg);
    margin-bottom: var(--space-1);
}

.cta-install-card p {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: rgba(237, 232, 223, 0.4);
    margin-bottom: var(--space-3);
}

.cta-install-card a {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--c-accent);
    transition: opacity 0.2s ease;
}

.cta-install-card a:hover {
    opacity: 0.7;
}

.cta-install-cmd {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: rgba(237, 232, 223, 0.6);
    background: rgba(0, 0, 0, 0.3);
    padding: 0.4em 0.7em;
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-2);
}

.cta-install-copy {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--c-accent);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.cta-install-copy:hover {
    opacity: 0.7;
}

.cta-install-copy.copied {
    color: #4ade80;
}

.cta-install-card--disabled {
    opacity: 0.4;
    pointer-events: none;
}

.cta-coming-soon {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(237, 232, 223, 0.35);
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */

.site-footer {
    background: var(--c-text);
    color: var(--c-bg);
    padding: var(--space-6) 0 var(--space-4);
}

.cta-section + .site-footer {
    padding-top: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
    border-top: 1px solid rgba(237, 232, 223, 0.12);
    padding-top: var(--space-2);
}

.footer-prompt {
    color: var(--c-accent);
    margin-right: 0.25em;
}

.footer-col h4 {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: var(--space-3);
    color: rgba(237, 232, 223, 0.45);
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: var(--space-1);
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    color: rgba(237, 232, 223, 0.6);
}

.footer-col a {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    color: rgba(237, 232, 223, 0.6);
    transition: color 0.2s ease;
}

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

.footer-bottom {
    margin-top: var(--space-4);
    padding-top: var(--space-3);
    border-top: 1px solid rgba(237, 232, 223, 0.12);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 0.75rem;
    font-family: var(--font-mono);
    color: rgba(237, 232, 223, 0.35);
}

.footer-bottom .label {
    color: rgba(237, 232, 223, 0.35);
}

/* ═══════════════════════════════════════════════════════════════
   INTERIOR: PAGE
   ═══════════════════════════════════════════════════════════════ */

.page-header {
    padding-top: var(--space-10);
    padding-bottom: var(--space-8);
    border-bottom: 2px solid var(--c-border);
}

.page-header h1 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2.25rem, 5vw, 4rem);
    line-height: 0.95;
    letter-spacing: -0.02em;
}

.page-content {
    padding-top: var(--space-8);
    padding-bottom: var(--space-12);
}

.page-content > .container {
    max-width: 800px;
}

/* WordPress block overrides — Swiss brutalist treatment */
.page-content h2 {
    font-family: var(--font-heading);
    margin-top: var(--space-8);
    margin-bottom: var(--space-3);
    padding-top: var(--space-4);
    border-top: 1px solid var(--c-border);
}

.page-content h3 {
    margin-top: var(--space-6);
    margin-bottom: var(--space-2);
}

.page-content p {
    margin-bottom: var(--space-3);
    font-size: 1.0625rem;
    line-height: 1.7;
}

.page-content ul,
.page-content ol {
    margin-bottom: var(--space-3);
    padding-left: var(--space-4);
}

.page-content li {
    margin-bottom: var(--space-1);
    line-height: 1.6;
}

.page-content blockquote {
    margin: var(--space-6) 0;
    padding: var(--space-4) var(--space-5);
    border-left: 3px solid var(--c-accent);
    border-radius: var(--radius-sm);
    background: var(--c-surface);
    font-size: 1.125rem;
    font-style: italic;
}

.page-content strong {
    font-weight: 700;
}

.page-content a {
    color: var(--c-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

.page-content a:hover {
    color: var(--c-text);
}

.page-content hr {
    border: none;
    border-top: 1px solid var(--c-border);
    margin: var(--space-6) 0;
}

.page-content table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-4) 0;
    font-size: 0.9375rem;
}

.page-content th,
.page-content td {
    text-align: left;
    padding: var(--space-2) var(--space-3);
    border: 1px solid var(--c-border);
}

.page-content th {
    background: var(--c-text);
    color: var(--c-bg);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════
   SINGLE POST
   ═══════════════════════════════════════════════════════════════ */

/* ── Post hero ── */

.post-hero {
    position: relative;
    padding: var(--space-16) 0 var(--space-8);
    overflow: hidden;
}

.post-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, var(--c-border-soft) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.6;
    pointer-events: none;
}

.post-hero .container {
    position: relative;
    z-index: 1;
}

.post-hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-6);
    animation: fadeIn 0.5s ease 0.1s both;
}

.post-back {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--c-muted);
    transition: color 0.2s ease;
}

.post-back:hover {
    color: var(--c-accent);
}

.post-hero-meta {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.post-meta-item {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--c-muted);
}

.post-hero-title {
    max-width: 18ch;
    animation: fadeIn 0.6s ease 0.2s both;
}

/* ── Article body ── */

.post-body {
    padding: var(--space-8) 0 var(--space-12);
}

.post-body > .container {
    max-width: 800px;
}

.post-body h2 {
    font-family: var(--font-heading);
    margin-top: var(--space-8);
    margin-bottom: var(--space-3);
    padding-top: var(--space-6);
    border-top: 1px solid var(--c-border);
}

.post-body h3 {
    margin-top: var(--space-6);
    margin-bottom: var(--space-2);
}

.post-body p {
    margin-bottom: var(--space-3);
    font-size: 1.0625rem;
    line-height: 1.7;
}

.post-body ul,
.post-body ol {
    margin-bottom: var(--space-3);
    padding-left: var(--space-4);
}

.post-body li {
    margin-bottom: var(--space-1);
    line-height: 1.6;
}

.post-body blockquote {
    margin: var(--space-6) 0;
    padding: var(--space-4) var(--space-5);
    border-left: 3px solid var(--c-accent);
    background: var(--c-surface);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
}

.post-body strong {
    font-weight: 700;
}

.post-body a {
    color: var(--c-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

.post-body a:hover {
    color: var(--c-text);
}

.post-body code {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--c-accent);
    background: rgba(212, 66, 30, 0.06);
    padding: 0.1em 0.4em;
    border-radius: 3px;
}

.post-body pre {
    margin: var(--space-4) 0;
    padding: var(--space-4);
    background: var(--c-dark);
    color: var(--c-bg);
    border-radius: var(--radius-sm);
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    line-height: 1.6;
}

.post-body pre code {
    color: inherit;
    background: none;
    padding: 0;
}

.post-body hr {
    border: none;
    border-top: 1px solid var(--c-border);
    margin: var(--space-6) 0;
}

.post-body img {
    border-radius: var(--radius-sm);
    margin: var(--space-4) 0;
}

/* ── Post navigation ── */

.post-nav-section {
    border-top: 2px solid var(--c-border);
    padding: var(--space-8) 0;
}

.post-nav-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}

.post-nav-card {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    padding: var(--space-5);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.post-nav-card:hover {
    background: var(--c-surface);
    border-color: var(--c-accent);
}

.post-nav-card--empty {
    border-color: transparent;
}

.post-nav-card--next {
    text-align: right;
}

.post-nav-dir {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--c-muted);
}

.post-nav-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.125rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

/* ═══════════════════════════════════════════════════════════════
   BLOG ARCHIVE
   ═══════════════════════════════════════════════════════════════ */

/* ── Blog card ── */

.blog-card {
    display: grid;
    grid-template-columns: 3.5rem 1fr;
    gap: var(--space-4);
    padding: var(--space-6) 0;
    border-bottom: 1px solid var(--c-border);
    align-items: start;
}

.blog-card:first-child {
    border-top: 2px solid var(--c-border);
}

/* ── Card number ── */

.blog-card-num {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 2rem;
    line-height: 1;
    opacity: 0.1;
    padding-top: 0.125rem;
}

/* ── Card body ── */

.blog-card-body {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

/* ── Meta row ── */

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.blog-card-cat {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--c-accent);
    background: rgba(212, 66, 30, 0.08);
    padding: 0.2em 0.6em;
    border-radius: 3px;
    font-weight: 500;
}

.blog-card-date {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--c-muted);
}

/* ── Title ── */

.blog-card-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.blog-card-title a {
    transition: color 0.2s ease;
}

.blog-card-title a:hover {
    color: var(--c-accent);
}

/* ── Excerpt ── */

.blog-card-excerpt {
    font-size: 1rem;
    line-height: 1.65;
    color: var(--c-muted);
    max-width: 60ch;
}

/* ── Read link ── */

.blog-card-link {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--c-text);
    transition: color 0.2s ease;
    margin-top: var(--space-1);
}

.blog-card-link:hover {
    color: var(--c-accent);
}

.blog-card-link .arrow {
    display: inline-block;
    transition: transform 0.2s ease;
}

.blog-card-link:hover .arrow {
    transform: translateX(4px);
}

/* ── Pagination ── */

.blog-pagination {
    padding: var(--space-6) 0;
    display: flex;
    gap: var(--space-1);
}

.blog-pagination a,
.blog-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    transition: all 0.2s ease;
}

.blog-pagination a:hover {
    background: var(--c-text);
    color: var(--c-bg);
}

.blog-pagination .current {
    background: var(--c-text);
    color: var(--c-bg);
}

/* ═══════════════════════════════════════════════════════════════
   404
   ═══════════════════════════════════════════════════════════════ */

.error-404 {
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding: var(--space-12) 0;
}

.error-404-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    align-items: center;
}

.error-404-left {
    border-right: 2px solid var(--c-border);
    padding-right: var(--space-8);
}

.error-404-code {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(6rem, 14vw, 12rem);
    line-height: 0.85;
    letter-spacing: -0.04em;
    color: var(--c-text);
    margin-top: var(--space-3);
}

.error-404-zero {
    color: var(--c-accent);
}

.error-404-right h1 {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
}

.error-404-right p {
    margin-top: var(--space-2);
    color: var(--c-muted);
    font-size: 1.0625rem;
    line-height: 1.7;
}

.error-404-suggestion {
    margin-top: var(--space-6);
    padding-top: var(--space-4);
    border-top: 1px solid var(--c-border-soft);
}

.error-404-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-top: var(--space-2);
}

.error-404-links li a {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.5rem 1rem;
    border: 1px solid var(--c-border-soft);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.error-404-links li a:hover {
    border-color: var(--c-accent);
    color: var(--c-accent);
}

.error-404 .btn {
    margin-top: var(--space-6);
}

@media (max-width: 768px) {
    .error-404-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
        text-align: center;
    }

    .error-404-left {
        border-right: none;
        border-bottom: 2px solid var(--c-border);
        padding-right: 0;
        padding-bottom: var(--space-4);
    }

    .error-404-code {
        font-size: clamp(5rem, 20vw, 8rem);
    }

    .error-404-links {
        justify-content: center;
    }
}

/* ═══════════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════════ */

@keyframes slideUp {
    from {
        transform: translateY(110%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll-triggered reveals */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .hero-title .line-inner {
        animation: none;
    }

    .hero-desc,
    .hero-cta,
    .hero-aside {
        animation: none;
    }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

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

    .service-card:nth-child(3n) {
        border-right: 1px solid var(--c-border);
    }

    .service-card:nth-child(2n) {
        border-right: none;
    }

    .service-card:nth-child(n+5) {
        border-bottom: none;
    }

    .service-card:nth-child(n+4) {
        border-bottom: 1px solid var(--c-border);
    }

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

    .stat-cell:nth-child(2) {
        border-right: none;
    }

    .stat-cell:nth-child(1),
    .stat-cell:nth-child(2) {
        border-bottom: 1px solid var(--c-border);
    }

    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-6);
    }
}

@media (max-width: 768px) {
    :root {
        --gutter: 1.25rem;
    }

    .nav-toggle {
        display: block;
    }

    /* Bottom sheet nav */
    .site-nav-sheet {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        background: var(--c-bg);
        border-top: 2px solid var(--c-text);
        border-radius: 1.25rem 1.25rem 0 0;
        padding: var(--space-2) var(--gutter) var(--space-6);
        transform: translateY(100%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.12);
        max-height: 85vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .site-nav-sheet.open {
        transform: translateY(0);
    }

    .nav-sheet-handle {
        display: block;
        width: 2.5rem;
        height: 4px;
        background: var(--c-border);
        border-radius: 2px;
        margin: 0 auto var(--space-4);
    }

    .site-nav-sheet ul {
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .site-nav-sheet li {
        border-bottom: 1px solid var(--c-border-soft);
    }

    .site-nav-sheet li:last-child {
        border-bottom: none;
    }

    .site-nav-sheet a:not(.nav-sheet-btn) {
        display: block;
        padding: var(--space-3) var(--space-1);
        font-family: var(--font-heading);
        font-size: 1.125rem;
        font-weight: 600;
        color: var(--c-text);
        transition: color 0.2s ease;
    }

    .site-nav-sheet .current-menu-item a {
        color: var(--c-accent);
    }

    .nav-sheet-cta {
        display: block;
        margin-top: var(--space-4);
        padding-top: var(--space-4);
        border-top: 2px solid var(--c-text);
    }

    .nav-sheet-btn {
        display: block;
        width: 100%;
        text-align: center;
        font-size: 1rem;
        padding: var(--space-3) var(--space-4);
    }

    /* Overlay */
    .nav-overlay {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 998;
        background: rgba(0, 0, 0, 0.4);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.35s ease, visibility 0.35s ease;
        -webkit-backdrop-filter: blur(2px);
        backdrop-filter: blur(2px);
    }

    .nav-overlay.open {
        opacity: 1;
        visibility: visible;
    }

    .hero-conv-body {
        padding: var(--space-3) var(--space-2);
        height: 14rem;
    }

    .hero-conv-question-row,
    .hero-conv-input-row,
    .hero-conv-input {
        font-size: 0.8125rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        border-right: none !important;
        border-bottom: 1px solid var(--c-border) !important;
        min-height: auto;
        padding: var(--space-4);
    }

    .service-card:last-child {
        border-bottom: none !important;
    }

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

    .cta-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    .cta-pills {
        justify-content: flex-start;
    }

    .cta-testimonial-quote {
        font-size: 1.125rem;
    }

    .cta-install {
        grid-template-columns: 1fr;
    }

    .news-item {
        grid-template-columns: auto 1fr;
    }

    .news-date {
        grid-column: 2;
        grid-row: 2;
        font-size: 0.625rem;
    }

    .blog-card {
        grid-template-columns: 1fr;
        gap: var(--space-2);
    }

    .blog-card-num {
        font-size: 1.25rem;
    }

    .post-hero-top {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-3);
    }

    .post-hero-title {
        max-width: none;
    }

    .post-nav-grid {
        grid-template-columns: 1fr;
    }

    .post-nav-card--next {
        text-align: left;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-2);
        align-items: flex-start;
    }

    .section {
        padding-top: var(--space-8);
        padding-bottom: var(--space-8);
    }
}

/* ═══════════════════════════════════════════════════════════════
   WP CHATBOT WIDGET OVERRIDE — match brutalist theme
   ═══════════════════════════════════════════════════════════════ */

.askwp-widget {
    font-family: var(--font-body) !important;
}

/* Launcher — rounded rectangle */
.askwp-launcher {
    background: var(--c-accent) !important;
    border: none !important;
    border-radius: var(--radius-md) !important;
    box-shadow: none !important;
    width: 48px !important;
    height: 48px !important;
}

.askwp-launcher:hover {
    transform: none !important;
    box-shadow: 4px 4px 0 var(--c-border) !important;
}

/* Panel */
.askwp-panel {
    border: 1px solid var(--c-border) !important;
    border-radius: 16px !important;
    box-shadow: 8px 8px 0 rgba(28, 21, 16, 0.08) !important;
    background: var(--c-bg) !important;
}

/* Panel header */
.askwp-panel-header {
    background: var(--c-text) !important;
    border-bottom: 1px solid var(--c-border) !important;
    border-radius: 16px 16px 0 0 !important;
    font-family: var(--font-heading) !important;
    font-size: 0.8125rem !important;
    letter-spacing: 0.02em !important;
    text-transform: uppercase !important;
    padding: 0.875rem 1rem !important;
}

.askwp-panel-close {
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 50% !important;
    width: 24px !important;
    height: 24px !important;
    font-size: 0.875rem !important;
}

.askwp-panel-close:hover {
    background: rgba(255, 255, 255, 0.15) !important;
}

/* Messages */
.askwp-msg {
    font-size: 0.8125rem !important;
    line-height: 1.55 !important;
}

.askwp-msg-assistant {
    background: var(--c-surface) !important;
    color: var(--c-text) !important;
    border-radius: 14px !important;
}

.askwp-msg-user {
    background: var(--c-text) !important;
    color: var(--c-bg) !important;
    border-radius: 14px !important;
}

/* Typing */
.askwp-typing {
    background: var(--c-surface) !important;
    border-radius: 14px !important;
}

.askwp-typing span {
    background: var(--c-muted) !important;
}

/* Footer & input */
.askwp-panel-footer {
    background: var(--c-bg) !important;
    border-top: 1px solid var(--c-border) !important;
    padding: 0.625rem !important;
}

.askwp-input-row {
    border: 1px solid var(--c-border) !important;
    border-radius: var(--radius-pill) !important;
    background: var(--c-white) !important;
    box-shadow: none !important;
    padding: 0.375rem 0.5rem 0.375rem 0.75rem !important;
}

.askwp-input-row:focus-within {
    border-color: var(--c-accent) !important;
    box-shadow: none !important;
}

.askwp-input {
    font-family: var(--font-body) !important;
    font-size: 0.8125rem !important;
}

.askwp-send {
    background: var(--c-text) !important;
    border-radius: 50% !important;
    width: 28px !important;
    height: 28px !important;
}

.askwp-send:hover:not(:disabled) {
    transform: none !important;
    background: var(--c-accent) !important;
}

/* Action buttons */
.askwp-action-btn {
    border: 1px solid var(--c-border) !important;
    border-radius: var(--radius-sm) !important;
    background: var(--c-bg) !important;
    font-family: var(--font-mono) !important;
    font-size: 0.6875rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

.askwp-action-btn:hover {
    background: var(--c-surface) !important;
}

/* Sources */
.askwp-msg-sources a {
    border: 1px solid var(--c-border-soft) !important;
    border-radius: var(--radius-pill) !important;
    background: var(--c-bg) !important;
    font-family: var(--font-mono) !important;
    font-size: 0.625rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
}

/* Links in messages */
.askwp-msg a,
.askwp-msg-assistant a {
    color: var(--c-accent) !important;
}


/* ═══════════════════════════════════════════════════════════════
   PROVIDERS (constellation)
   ═══════════════════════════════════════════════════════════════ */

.provider-section {
    padding: var(--space-8) 0;
}

.constellation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
}

.constellation-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.constellation-lines line {
    stroke: var(--c-border-soft);
    stroke-width: 1px;
}

.constellation-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.375rem;
    padding: var(--space-4) var(--space-3);
    position: relative;
    z-index: 1;
    transition: background 0.3s ease;
}

.constellation-node:hover {
    background: rgba(234, 229, 221, 0.85);
}

.constellation-logo {
    height: 36px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    margin-bottom: 0.25rem;
}

.constellation-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    background: var(--c-bg);
    padding: 0.375rem 0.75rem;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-pill);
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--c-muted);
    white-space: nowrap;
}

.provider-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.125rem;
    letter-spacing: -0.01em;
}

/* ── Constellation entrance animation ── */

.provider-section.reveal {
    opacity: 0;
    transform: none;
    transition: opacity 0.3s ease;
}

.provider-section.reveal.visible {
    opacity: 1;
}

@media (min-width: 769px) {
    .provider-section.reveal .constellation-center {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.85);
        transition: opacity 0.4s ease 0.1s, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
    }

    .provider-section.reveal.visible .constellation-center {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.provider-section.reveal .constellation-lines {
    opacity: 0;
    transition: opacity 0.6s ease 0.2s;
}

.provider-section.reveal.visible .constellation-lines {
    opacity: 1;
}

.provider-section.reveal .constellation-node {
    opacity: 0;
    filter: blur(5px);
    transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
}

.provider-section.reveal .constellation-node:nth-child(2) {
    transform: translate(20px, 20px);
    transition-delay: 0.25s;
}

.provider-section.reveal .constellation-node:nth-child(3) {
    transform: translate(-20px, 20px);
    transition-delay: 0.35s;
}

.provider-section.reveal .constellation-node:nth-child(4) {
    transform: translate(20px, -20px);
    transition-delay: 0.45s;
}

.provider-section.reveal .constellation-node:nth-child(5) {
    transform: translate(-20px, -20px);
    transition-delay: 0.55s;
}

.provider-section.reveal.visible .constellation-node {
    opacity: 1;
    transform: translate(0, 0);
    filter: blur(0);
}

/* ═══════════════════════════════════════════════════════════════
   STEPS (How it works)
   ═══════════════════════════════════════════════════════════════ */

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.step-card {
    padding: var(--space-6);
    border-right: 1px solid var(--c-border);
    position: relative;
}

.step-card:last-child {
    border-right: none;
}

.step-num {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 4rem;
    line-height: 0.85;
    color: var(--c-accent);
    opacity: 0.15;
    margin-bottom: var(--space-3);
}

.step-card h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.375rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: var(--space-2);
}

.step-card p {
    font-size: 0.9375rem;
    color: var(--c-muted);
    line-height: 1.65;
}

/* ═══════════════════════════════════════════════════════════════
   CODE SECTION (dark technical showcase)
   ═══════════════════════════════════════════════════════════════ */

.code-section {
    background: var(--c-dark);
    color: var(--c-bg);
    padding: var(--space-16) 0;
}

.code-section .section-label::after {
    background: rgba(255, 255, 255, 0.12);
}

.code-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    align-items: start;
}

.code-text h2 {
    font-family: var(--font-heading);
    color: var(--c-bg);
    margin-bottom: var(--space-4);
}

.code-text p {
    color: rgba(250, 249, 246, 0.6);
    font-size: 1.0625rem;
    line-height: 1.7;
    margin-bottom: var(--space-4);
}

.code-features {
    list-style: none;
    padding: 0;
}

.code-features li {
    padding: var(--space-2) 0;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    color: rgba(250, 249, 246, 0.75);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.code-features li::before {
    content: '→ ';
    color: var(--c-accent);
    margin-right: 0.25rem;
}

.code-features li:last-child {
    border-bottom: none;
}

.code-block-wrap {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.code-block-header {
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--c-accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.code-block-header::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--c-accent);
    border-radius: 50%;
    display: inline-block;
}

pre.code-block {
    padding: var(--space-4) 1.25rem;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    line-height: 1.75;
    color: rgba(250, 249, 246, 0.7);
    overflow-x: auto;
    white-space: pre;
    margin: 0;
    background: transparent;
}

pre.code-block .hl-key {
    color: var(--c-accent);
}

pre.code-block .hl-comment {
    color: rgba(250, 249, 246, 0.35);
}

pre.code-block .hl-bracket {
    color: rgba(250, 249, 246, 0.4);
}

/* ═══════════════════════════════════════════════════════════════
   FEATURE HIGHLIGHT (alternate feature presentation)
   ═══════════════════════════════════════════════════════════════ */

.feature-highlight-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    align-items: center;
}

.feature-highlight-grid.reverse {
    direction: rtl;
}

.feature-highlight-grid.reverse > * {
    direction: ltr;
}

.feature-highlight-text h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-3);
}

.feature-highlight-text p {
    color: var(--c-muted);
    font-size: 1.0625rem;
    line-height: 1.65;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — NEW COMPONENTS
   ═══════════════════════════════════════════════════════════════ */

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

    .feature-highlight-grid {
        grid-template-columns: 1fr;
    }

    .feature-highlight-grid.reverse {
        direction: ltr;
    }
}

@media (max-width: 768px) {
    .constellation {
        display: flex;
        flex-direction: column;
        gap: 0;
        border: none;
        border-radius: 0;
        overflow: visible;
        max-width: none;
    }

    .constellation-lines {
        display: none;
    }

    .constellation-center {
        position: static;
        transform: none;
        order: -1;
        display: flex;
        align-items: center;
        gap: var(--space-2);
        width: 100%;
        margin-bottom: var(--space-6);
        background: none;
        border: none;
        border-radius: 0;
        padding: 0;
        font-family: var(--font-mono);
        font-size: 0.6875rem;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 0.12em;
        color: var(--c-muted);
        white-space: nowrap;
    }

    .constellation-center::after {
        content: '';
        flex: 1;
        height: 1px;
        background: var(--c-border);
    }

    .constellation-node {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: var(--space-3);
        text-align: left;
        padding: var(--space-3) 0;
        border-bottom: 1px solid var(--c-border-soft);
    }

    .constellation-node:last-of-type {
        border-bottom: none;
    }

    .constellation-logo {
        height: 28px;
        margin-bottom: 0;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .step-card {
        border-right: none;
        border-bottom: 1px solid var(--c-border);
    }

    .step-card:last-child {
        border-bottom: none;
    }

    .code-section {
        padding: var(--space-8) 0;
    }

    pre.code-block {
        font-size: 0.75rem;
    }
}

/* ═══════════════════════════════════════════════════════════════
   FEATURES PAGE
   ═══════════════════════════════════════════════════════════════ */

/* ── Hero ── */

.feat-hero {
    position: relative;
    padding: var(--space-16) 0 var(--space-8);
    overflow: hidden;
}

.feat-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, var(--c-border-soft) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.6;
    pointer-events: none;
}

.feat-hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    animation: fadeIn 0.6s ease 0.2s both;
}

.feat-hero-content .label {
    display: inline-block;
    margin-bottom: var(--space-3);
}

.feat-hero-desc {
    margin-top: var(--space-4);
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--c-muted);
    max-width: 50ch;
}

/* ── Anchor nav ── */

.feat-nav {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 0;
    margin-top: var(--space-8);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.feat-nav-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: var(--space-3) var(--space-4);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--c-muted);
    border-right: 1px solid var(--c-border);
    transition: background 0.3s ease, color 0.3s ease;
}

.feat-nav-item:last-child {
    border-right: none;
}

.feat-nav-item:hover {
    background: var(--c-surface);
    color: var(--c-text);
}

.feat-nav-num {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.25rem;
    opacity: 0.2;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.feat-nav-item:hover .feat-nav-num {
    opacity: 0.5;
    color: var(--c-accent);
}

/* ── Split grid ── */

.feat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    align-items: start;
}

.feat-grid--reverse {
    direction: rtl;
}

.feat-grid--reverse > * {
    direction: ltr;
}

.feat-grid-text h2 {
    margin-bottom: var(--space-4);
}

.feat-grid-text p {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--c-muted);
    margin-bottom: var(--space-3);
}

/* ── Pipeline (RAG flow) ── */

.feat-pipeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
}

.feat-pipeline::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 2.5rem;
    bottom: 2.5rem;
    width: 1px;
    background: var(--c-border-soft);
    z-index: 0;
}

.feat-pipeline-step {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) 0;
    position: relative;
    z-index: 1;
}

.feat-pipeline-icon {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--c-muted);
    background: var(--c-bg);
    border: 1px solid var(--c-border-soft);
    border-radius: 50%;
}

.feat-pipeline-step--accent .feat-pipeline-icon {
    background: var(--c-accent);
    border-color: var(--c-accent);
    color: var(--c-white);
}

.feat-pipeline-card {
    flex: 1;
    padding: var(--space-3);
    border: 1px solid var(--c-border-soft);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--c-text);
    background: var(--c-white);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.feat-pipeline-step:hover .feat-pipeline-card {
    border-color: var(--c-border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.feat-pipeline-step--accent .feat-pipeline-card {
    border-color: var(--c-accent);
    background: rgba(212, 66, 30, 0.04);
}

.feat-pipeline-tag {
    display: block;
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--c-muted);
    margin-bottom: 0.375rem;
}

.feat-pipeline-step--accent .feat-pipeline-tag {
    color: var(--c-accent);
}

.feat-pipeline-card code {
    font-size: 0.75rem;
    color: var(--c-accent);
}

/* ── Provider cards ── */

.feat-providers {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.feat-provider-card {
    padding: var(--space-5);
    border-right: 1px solid var(--c-border);
    display: flex;
    flex-direction: column;
    transition: background 0.3s ease;
}

.feat-provider-card:last-child {
    border-right: none;
}

.feat-provider-card:hover {
    background: var(--c-surface);
}

.feat-provider-head {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--c-border-soft);
}

.feat-provider-logo {
    height: 28px;
    width: auto;
    object-fit: contain;
}

.feat-provider-logo--lg {
    height: 39px;
}

.feat-provider-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
}

.feat-provider-list {
    list-style: none;
    padding: 0;
    flex: 1;
}

.feat-provider-list li {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    color: var(--c-muted);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--c-border-soft);
    line-height: 1.4;
}

.feat-provider-list li:last-child {
    border-bottom: none;
}

.feat-provider-list li::before {
    content: '\2192\0020';
    color: var(--c-accent);
}

.feat-provider-list code {
    font-size: 0.75rem;
    color: var(--c-accent);
    background: rgba(212, 66, 30, 0.06);
    padding: 0.1em 0.3em;
    border-radius: 3px;
}


/* ── Dark sections (forms, architecture) ── */

.feat-dark-section {
    background: var(--c-dark);
    color: var(--c-bg);
    padding: var(--space-16) 0;
}

.feat-dark-section .section-label::after {
    background: rgba(255, 255, 255, 0.12);
}

.feat-dark-section .feat-grid-text h2 {
    color: var(--c-bg);
}

.feat-dark-section .feat-grid-text p {
    color: rgba(237, 232, 223, 0.65);
}

.feat-dark-section code {
    color: var(--c-accent);
}

.feat-dark-section + .site-footer {
    padding-top: 0;
}

/* ── Mock form widget ── */

.feat-mock-form {
    width: 100%;
    max-width: 320px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    overflow: hidden;
    font-family: var(--font-body);
    justify-self: center;
}

.feat-mock-header {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(237, 232, 223, 0.6);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feat-mock-dot {
    width: 6px;
    height: 6px;
    background: var(--c-accent);
    border-radius: 50%;
    display: inline-block;
}

.feat-mock-body {
    padding: var(--space-3);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.feat-mock-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.feat-mock-label {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(237, 232, 223, 0.45);
}

.feat-mock-input,
.feat-mock-select {
    height: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.04);
}

.feat-mock-select {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: rgba(237, 232, 223, 0.35);
}

.feat-mock-textarea {
    height: 3.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.04);
}

.feat-mock-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.625rem;
    color: rgba(237, 232, 223, 0.4);
}

.feat-mock-checkbox {
    width: 14px;
    height: 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    flex-shrink: 0;
}

.feat-mock-btn {
    padding: 0.625rem;
    background: var(--c-accent);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--c-white);
    text-align: center;
}

.feat-mock-footer {
    padding: 0.625rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.625rem;
    color: rgba(237, 232, 223, 0.35);
}

.feat-mock-dots {
    display: flex;
    gap: 4px;
}

.feat-mock-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
}

.feat-mock-dots span.active {
    background: var(--c-accent);
}

/* ── Security grid ── */

.feat-security {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.feat-security-card {
    padding: var(--space-6);
    border-right: 1px solid var(--c-border-soft);
    border-bottom: 1px solid var(--c-border-soft);
    position: relative;
    transition: background 0.3s ease;
}

.feat-security-card:nth-child(2n) {
    border-right: none;
}

.feat-security-card:nth-child(n+3) {
    border-bottom: none;
}

.feat-security-card:hover {
    background: var(--c-surface);
}

.feat-security-num {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 3rem;
    line-height: 1;
    opacity: 0.1;
    position: absolute;
    top: var(--space-3);
    right: var(--space-3);
}

.feat-security-card h3 {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: var(--space-2);
}

.feat-security-card p {
    font-size: 0.9375rem;
    color: var(--c-muted);
    line-height: 1.65;
    max-width: 40ch;
}

.feat-security-card:hover p {
    color: var(--c-text);
}

/* ── File tree (architecture) ── */

.feat-filetree-wrap {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.feat-filetree {
    padding: var(--space-3) 0;
}

.feat-file {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.375rem var(--space-4);
    transition: background 0.2s ease;
}

.feat-file:hover {
    background: rgba(255, 255, 255, 0.04);
}

.feat-fname {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    color: rgba(237, 232, 223, 0.8);
}

.feat-fdesc {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: rgba(237, 232, 223, 0.3);
}

.feat-file-dir .feat-fname {
    color: var(--c-accent);
    font-weight: 600;
}

.feat-file-dir .feat-fname::before {
    content: '\25B8\0020';
}

.feat-file-indent {
    padding-left: calc(var(--space-4) + 1rem);
}

.feat-arch-stats {
    list-style: none;
    padding: 0;
    margin-top: var(--space-4);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2);
}

.feat-arch-stats li {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    color: rgba(237, 232, 223, 0.5);
}

.feat-arch-stats strong {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--c-accent);
    display: block;
    line-height: 1;
    margin-bottom: 0.25rem;
}

/* ── Features responsive ── */

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

    .feat-grid--reverse {
        direction: ltr;
    }

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

    .feat-provider-card:nth-child(2n) {
        border-right: none;
    }

    .feat-provider-card {
        border-bottom: 1px solid var(--c-border);
    }

    .feat-provider-card:nth-child(n+3) {
        border-bottom: none;
    }

    .feat-nav {
        flex-wrap: wrap;
    }

    .feat-nav-item {
        flex: 1 1 auto;
        min-width: calc(33% - 1px);
    }
}

@media (max-width: 768px) {
    .feat-hero {
        padding: var(--space-10) 0 var(--space-6);
    }

    .feat-nav {
        flex-direction: column;
    }

    .feat-nav-item {
        border-right: none;
        border-bottom: 1px solid var(--c-border);
    }

    .feat-nav-item:last-child {
        border-bottom: none;
    }

    .feat-pipeline::before {
        display: none;
    }

    .feat-mock-form {
        max-width: 100%;
    }

    .feat-security {
        grid-template-columns: 1fr;
    }

    .feat-security-card {
        border-right: none !important;
        border-bottom: 1px solid var(--c-border-soft) !important;
    }

    .feat-security-card:last-child {
        border-bottom: none !important;
    }

    .feat-dark-section {
        padding: var(--space-8) 0;
    }
}

/* ═══════════════════════════════════════════════════════════════
   PROVIDERS PAGE
   ═══════════════════════════════════════════════════════════════ */

/* ── Logo strip ── */

.prov-logo-strip {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 0;
    margin-top: var(--space-8);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.prov-logo-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: var(--space-4) var(--space-3);
    border-right: 1px solid var(--c-border);
    transition: background 0.3s ease;
}

.prov-logo-item:last-child {
    border-right: none;
}

.prov-logo-item:hover {
    background: var(--c-surface);
}

.prov-logo-item img {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.prov-logo-item span {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--c-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ── Section headings with logo ── */

.prov-section-head {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.prov-section-logo {
    height: 36px;
    width: auto;
    object-fit: contain;
}

.prov-section-logo--lg {
    height: 50px;
}

/* ── Feature list in dark sections ── */

.prov-feature-list {
    list-style: none;
    padding: 0;
    margin-top: var(--space-3);
}

.prov-feature-list li {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    color: rgba(237, 232, 223, 0.6);
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    line-height: 1.4;
}

.prov-feature-list li:last-child {
    border-bottom: none;
}

.prov-feature-list li::before {
    content: '\2192\0020';
    color: var(--c-accent);
}

/* ── Light code blocks ── */

.prov-code-light {
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.prov-code-light .code-block-header {
    border-bottom-color: var(--c-border-soft);
}

.prov-code-light pre.code-block {
    color: var(--c-text);
    opacity: 0.85;
}

.prov-code-light .hl-comment {
    color: var(--c-muted);
}

.prov-code-light .hl-key {
    color: var(--c-accent);
}

.prov-code-light .hl-bracket {
    color: var(--c-muted);
}

/* ── Providers responsive ── */

@media (max-width: 768px) {
    .prov-logo-strip {
        flex-wrap: wrap;
    }

    .prov-logo-item {
        flex: 1 1 calc(50% - 1px);
        border-bottom: 1px solid var(--c-border);
    }

    .prov-logo-item:nth-child(2n) {
        border-right: none;
    }

    .prov-logo-item:nth-child(n+3) {
        border-bottom: none;
    }
}

/* ═══════════════════════════════════════════════════════════════
   CUSTOMIZATION PAGE
   ═══════════════════════════════════════════════════════════════ */

/* ── Live demo grid ── */

.cust-demo {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: var(--space-5);
    align-items: start;
}

/* ── Controls panel ── */

.cust-controls {
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.cust-control-group {
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--c-border-soft);
}

.cust-control-group:last-child {
    border-bottom: none;
}

/* Accordion body — always visible on desktop */
.cust-control-body {
    display: contents;
}

.cust-control-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--c-muted);
    margin-bottom: var(--space-2);
}

.cust-radius-val {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--c-accent);
    text-transform: none;
    letter-spacing: 0;
}

/* ── Presets ── */

.cust-presets {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.cust-preset {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--c-border-soft);
    border-radius: var(--radius-sm);
    background: none;
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--c-muted);
    transition: all 0.2s ease;
}

.cust-preset:hover {
    border-color: var(--c-border);
    color: var(--c-text);
}

.cust-preset--active {
    border-color: var(--c-text);
    color: var(--c-text);
    background: var(--c-surface);
}

.cust-preset-swatch {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

/* ── Color pickers ── */

.cust-color-row {
    display: flex;
    gap: var(--space-3);
}

.cust-color {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
    cursor: pointer;
    flex: 1;
}

.cust-color input[type="color"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 36px;
    border: 2px solid var(--c-border-soft);
    border-radius: var(--radius-sm);
    cursor: pointer;
    padding: 2px;
    background: none;
    transition: border-color 0.2s ease;
}

.cust-color input[type="color"]:hover {
    border-color: var(--c-border);
}

.cust-color input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

.cust-color input[type="color"]::-webkit-color-swatch {
    border: none;
    border-radius: 3px;
}

.cust-color input[type="color"]::-moz-color-swatch {
    border: none;
    border-radius: 3px;
}

.cust-color-name {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    color: var(--c-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ── Icon selector ── */

.cust-icons {
    display: flex;
    gap: 0.5rem;
}

.cust-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--c-border-soft);
    border-radius: var(--radius-sm);
    background: none;
    cursor: pointer;
    color: var(--c-muted);
    transition: all 0.2s ease;
}

.cust-icon svg {
    width: 20px;
    height: 20px;
}

.cust-icon:hover {
    border-color: var(--c-border);
    color: var(--c-text);
}

.cust-icon--active {
    border-color: var(--c-text);
    color: var(--c-text);
    background: var(--c-surface);
}

/* ── Range slider ── */

.cust-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    background: var(--c-border-soft);
    border-radius: 2px;
    outline: none;
    margin: 0.25rem 0;
}

.cust-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--c-accent);
    cursor: pointer;
    border: 3px solid var(--c-bg);
    box-shadow: 0 0 0 1px var(--c-border);
}

.cust-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--c-accent);
    cursor: pointer;
    border: 3px solid var(--c-bg);
    box-shadow: 0 0 0 1px var(--c-border);
}

.cust-slider-labels {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.5625rem;
    color: var(--c-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.6;
    margin-top: 0.25rem;
}

/* ── Preview area ── */

.cust-preview {
    position: relative;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #f4f1ec;
}

.cust-preview-bg {
    position: relative;
    min-height: 520px;
    padding: var(--space-4);
}

.cust-preview-site {
    opacity: 0.5;
}

.cust-preview-site-nav {
    height: 3px;
    width: 100px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 2px;
    margin-bottom: 2.5rem;
}

.cust-preview-site-block {
    height: 10px;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 3px;
    margin-bottom: 1.25rem;
}

.cust-preview-site-block--sm {
    height: 8px;
}

.cust-preview-site-line {
    height: 4px;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 2px;
    margin-bottom: 0.625rem;
}

/* ── Mock widget panel ── */

.cust-widget-panel {
    position: absolute;
    bottom: 80px;
    right: var(--space-4);
    width: 280px;
    border: 1px solid #e5e7eb;
    border-radius: var(--cust-radius, 0px);
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    font-family: var(--font-body);
    display: flex;
    flex-direction: column;
    transition: border-radius 0.4s ease;
}

.cust-widget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.625rem 0.75rem;
    background: var(--cust-secondary, #111111);
    color: #fff;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
    transition: background 0.4s ease;
}

.cust-widget-header strong {
    font-size: 0.75rem;
    font-weight: 600;
}

.cust-widget-close {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    line-height: 1;
    cursor: default;
    flex-shrink: 0;
}

.cust-widget-body {
    padding: 0.75rem;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    overflow-y: auto;
}

.cust-widget-msg {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.cust-widget-msg--user {
    align-items: flex-end;
}

.cust-widget-bubble {
    max-width: 85%;
    padding: 0.5rem 0.625rem;
    font-size: 0.6875rem;
    line-height: 1.5;
    word-break: break-word;
    transition: background 0.4s ease, color 0.4s ease;
}

.cust-widget-bubble strong {
    font-weight: 700;
}

.cust-widget-bubble--bot {
    background: #f3f4f6;
    color: var(--cust-text, #1C1510);
    border-radius: 14px 14px 14px 4px;
}

.cust-widget-bubble--user {
    background: var(--cust-primary, #E8220B);
    color: #fff;
    border-radius: 14px 14px 4px 14px;
    transition: background 0.4s ease;
}

.cust-widget-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem;
    padding: 0.125rem 0;
}

.cust-widget-tag {
    font-size: 0.5rem;
    font-weight: 600;
    padding: 0.15rem 0.4rem;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #f9fafb;
    color: var(--cust-text, #1C1510);
}

.cust-widget-time {
    font-size: 0.5rem;
    color: #6b7280;
    padding: 0 0.125rem;
}

.cust-widget-msg--user .cust-widget-time {
    color: rgba(255, 255, 255, 0.7);
}

.cust-widget-footer {
    background: #fff;
    padding: 0.375rem 0.5rem 0.5rem;
    border-top: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.cust-widget-input {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.375rem 0.25rem 0.5rem;
    border: 1px solid #e5e7eb;
    border-radius: calc(var(--cust-radius, 0px) * 0.6);
    background: #fafafa;
    font-size: 0.625rem;
    color: #9ca3af;
    transition: border-radius 0.4s ease;
}

.cust-widget-input-plus {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 500;
    color: #4b5563;
    flex-shrink: 0;
    line-height: 1;
}

.cust-widget-input-placeholder {
    flex: 1;
}

.cust-widget-send {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--cust-primary, #E8220B);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.4s ease;
}

.cust-widget-send svg {
    width: 11px;
    height: 11px;
    stroke: #fff;
    fill: none;
}

.cust-widget-reset {
    font-size: 0.5rem;
    font-weight: 600;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    padding: 0.2rem 0.5rem;
    color: var(--cust-text, #1C1510);
    cursor: default;
    margin-top: 0.25rem;
}

/* ── Mock launcher ── */

.cust-widget-launcher {
    position: absolute;
    bottom: var(--space-4);
    right: var(--space-4);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--cust-primary, #E8220B);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: background 0.4s ease;
}

.cust-launcher-svg {
    width: 22px;
    height: 22px;
    stroke: #fff;
    fill: none;
    transition: all 0.3s ease;
}

/* ── Layout settings grid ── */

.cust-layout-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.cust-layout-card {
    padding: var(--space-5);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.3s ease;
}

.cust-layout-card:nth-child(3n) {
    border-right: none;
}

.cust-layout-card:nth-child(n+4) {
    border-bottom: none;
}

.cust-layout-card:hover {
    background: rgba(255, 255, 255, 0.03);
}

.cust-layout-card:hover .cust-layout-icon {
    transform: scale(1.1);
    color: var(--c-accent);
}

.cust-layout-icon {
    width: 36px;
    height: 36px;
    margin-bottom: var(--space-3);
    color: rgba(237, 232, 223, 0.4);
    transition: all 0.3s ease;
}

.cust-layout-icon svg {
    width: 100%;
    height: 100%;
}

.cust-layout-card h3 {
    font-family: var(--font-heading);
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--c-bg);
    margin-bottom: var(--space-1);
}

.cust-layout-card p {
    font-size: 0.875rem;
    color: rgba(237, 232, 223, 0.5);
    line-height: 1.55;
    margin-bottom: var(--space-2);
}

.cust-layout-default {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--c-accent);
    opacity: 0.8;
}

/* ── Mobile stats ── */

.cust-mobile-stats {
    display: flex;
    gap: var(--space-5);
    margin-top: var(--space-5);
    padding-top: var(--space-4);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cust-mobile-stat strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--c-accent);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.cust-mobile-stat span {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: rgba(237, 232, 223, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ── Phone mockup ── */

.cust-phone-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cust-phone {
    width: 220px;
    background: #0a0a0a;
    border-radius: 28px;
    padding: 8px;
    position: relative;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.cust-phone-notch {
    width: 80px;
    height: 20px;
    background: #0a0a0a;
    border-radius: 0 0 14px 14px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.cust-phone-screen {
    background: #1a1a1a;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    min-height: 420px;
}

.cust-phone-statusbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1.25rem;
    font-size: 0.6875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    position: relative;
    z-index: 3;
}

.cust-phone-statusbar-icons {
    display: flex;
    align-items: center;
    gap: 4px;
    color: rgba(255, 255, 255, 0.6);
}

.cust-phone-content {
    padding: 1.5rem 1rem;
}

.cust-phone-line {
    height: 3px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 2px;
    margin-bottom: 0.375rem;
}

.cust-phone-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.cust-phone-sheet {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 0;
    z-index: 2;
    padding-bottom: 0.375rem;
}

.cust-phone-sheet-handle {
    width: 28px;
    height: 3px;
    background: rgba(0, 0, 0, 0.12);
    border-radius: 2px;
    margin: 0.375rem auto;
}

.cust-phone-sheet-msgs {
    padding: 0.5rem 0.625rem;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.cust-phone-sheet-bubble {
    padding: 0.3rem 0.5rem;
    font-size: 0.5rem;
    line-height: 1.4;
    max-width: 82%;
}

.cust-phone-sheet-bubble strong {
    font-weight: 700;
}

.cust-phone-sheet-bubble--bot {
    background: #f3f4f6;
    color: #1f2937;
    border-radius: 10px 10px 10px 3px;
    align-self: flex-start;
}

.cust-phone-sheet-bubble--user {
    background: #E8220B;
    color: #fff;
    border-radius: 10px 10px 3px 10px;
    align-self: flex-end;
}

.cust-phone-sheet-input {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin: 0 0.625rem 0.25rem;
    padding: 0.2rem 0.375rem;
    border: 1px solid #e5e7eb;
    border-radius: 0;
    background: #fafafa;
    font-size: 0.4375rem;
    color: #bbb;
}

.cust-phone-sheet-plus {
    font-size: 0.5rem;
    font-weight: 500;
    color: var(--c-muted);
    line-height: 1;
}

.cust-phone-sheet-send {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #E8220B;
    flex-shrink: 0;
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cust-phone-sheet-send svg {
    width: 8px;
    height: 8px;
}

.cust-phone-homebar {
    width: 60px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    margin: 8px auto 4px;
}

/* ── Customization responsive ── */

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

    .cust-controls {
        order: 2;
    }

    .cust-preview {
        order: 1;
    }

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

    .cust-layout-card:nth-child(3n) {
        border-right: 1px solid rgba(255, 255, 255, 0.06);
    }

    .cust-layout-card:nth-child(2n) {
        border-right: none;
    }

    .cust-layout-card:nth-child(n+4) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .cust-layout-card:nth-child(n+5) {
        border-bottom: none;
    }
}

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

    .cust-layout-card {
        border-right: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    }

    .cust-layout-card:last-child {
        border-bottom: none !important;
    }

    /* ── Mobile demo: compact card layout ── */
    .cust-demo {
        gap: var(--space-3);
        background: var(--c-surface);
        border-radius: var(--radius-md);
        padding: var(--space-3);
    }

    /* Minimal preview — widget only, no skeleton */
    .cust-preview {
        border: none;
        overflow: visible;
        background: none;
        order: 1;
    }

    .cust-preview-bg {
        min-height: auto;
        padding: 0;
    }

    .cust-preview-site {
        display: none;
    }

    .cust-widget-panel {
        position: static;
        width: 100%;
        max-width: none;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        border-radius: var(--radius-md);
    }

    .cust-widget-body {
        max-height: 6.5rem;
        min-height: auto;
    }

    .cust-widget-launcher {
        display: none;
    }

    /* Controls: card style with accordion */
    .cust-controls {
        order: 2;
        border: none;
        border-radius: 0;
        background: none;
    }

    .cust-control-group {
        background: var(--c-bg);
        border: none;
        border-radius: var(--radius-sm);
        padding: 0;
        margin-bottom: 0.375rem;
    }

    .cust-control-group:last-child {
        margin-bottom: 0;
    }

    .cust-control-label {
        padding: var(--space-2) var(--space-3);
        margin-bottom: 0;
        cursor: pointer;
        font-size: 0.75rem;
    }

    .cust-control-label::after {
        content: '+';
        font-family: var(--font-mono);
        font-size: 0.75rem;
        font-weight: 400;
        color: var(--c-muted);
    }

    .cust-control-group.cust-group--open .cust-control-label::after {
        content: '\2212';
    }

    .cust-control-body {
        display: block;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .cust-control-group.cust-group--open .cust-control-body {
        max-height: 12rem;
    }

    /* Inner content padding */
    .cust-presets,
    .cust-color-row,
    .cust-icons {
        padding: 0 var(--space-3) var(--space-3);
    }

    .cust-slider {
        margin: 0 var(--space-3) 0.25rem;
        width: calc(100% - var(--space-3) * 2);
    }

    .cust-slider-labels {
        padding: 0 var(--space-3) var(--space-2);
    }

    /* Presets as horizontal scroll strip */
    .cust-presets {
        display: flex;
        gap: 0.375rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .cust-presets::-webkit-scrollbar {
        display: none;
    }

    .cust-preset {
        flex: 0 0 auto;
        padding: 0.4rem 0.75rem;
        border-radius: var(--radius-pill);
        font-size: 0.625rem;
    }

    /* Color pickers: equal row */
    .cust-color input[type="color"] {
        height: 2.5rem;
        border-radius: var(--radius-sm);
    }

    /* Icons: bigger touch targets */
    .cust-icon {
        width: 3rem;
        height: 3rem;
        border-radius: var(--radius-sm);
    }

    .cust-mobile-stats {
        flex-direction: column;
        gap: var(--space-3);
    }

    .cust-phone {
        width: 190px;
    }

    .cust-phone-screen {
        min-height: 360px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   FAQ PAGE
   ═══════════════════════════════════════════════════════════════ */

/* ── FAQ group container ── */

.faq-group {
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.faq-group--dark {
    border-color: rgba(255, 255, 255, 0.12);
}

/* ── Individual FAQ item ── */

.faq-item {
    border-bottom: 1px solid var(--c-border-soft);
    position: relative;
}

.faq-group--dark .faq-item {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.faq-item:last-child {
    border-bottom: none;
}

/* ── Question row (summary) ── */

.faq-question {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-5);
    cursor: pointer;
    list-style: none;
    transition: background 0.25s ease;
    -webkit-user-select: none;
    user-select: none;
}

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

.faq-question::marker {
    display: none;
    content: '';
}

.faq-question:hover {
    background: var(--c-surface);
}

.faq-group--dark .faq-question:hover {
    background: rgba(255, 255, 255, 0.04);
}

/* ── Question number ── */

.faq-num {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.8125rem;
    opacity: 0.18;
    flex-shrink: 0;
    width: 1.75rem;
    letter-spacing: -0.02em;
}

/* ── Question text ── */

.faq-q-text {
    flex: 1;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.125rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

/* ── Toggle indicator ── */

.faq-toggle {
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-toggle::before,
.faq-toggle::after {
    content: '';
    position: absolute;
    background: var(--c-text);
    border-radius: 1px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.faq-group--dark .faq-toggle::before,
.faq-group--dark .faq-toggle::after {
    background: var(--c-bg);
}

.faq-toggle::before {
    width: 14px;
    height: 2px;
}

.faq-toggle::after {
    width: 2px;
    height: 14px;
}

/* Open state: rotate + into × */
.faq-item[open] .faq-toggle::after {
    transform: rotate(90deg);
    opacity: 0;
}

.faq-item[open] .faq-toggle::before {
    background: var(--c-accent);
}

.faq-item[open] .faq-question {
    background: var(--c-surface);
}

.faq-group--dark .faq-item[open] .faq-question {
    background: rgba(255, 255, 255, 0.04);
}

/* ── Answer panel ── */

.faq-answer {
    padding: 0 var(--space-5) var(--space-5);
    padding-left: calc(var(--space-5) + 1.75rem + var(--space-3));
}

.faq-answer p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--c-muted);
    max-width: 60ch;
}

.faq-group--dark .faq-answer p {
    color: rgba(237, 232, 223, 0.6);
}

.faq-answer code {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--c-accent);
    background: rgba(212, 66, 30, 0.06);
    padding: 0.1em 0.4em;
    border-radius: 3px;
}

.faq-group--dark .faq-answer code {
    background: rgba(212, 66, 30, 0.15);
}

/* ── Smooth open/close animation ── */

.faq-item .faq-answer {
    animation: faqSlideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes faqSlideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Dark section adjacent to footer ── */

.page-faq .feat-dark-section:last-of-type + .site-footer {
    padding-top: 0;
}

/* ── Responsive ── */

@media (max-width: 768px) {
    .faq-question {
        padding: var(--space-3) var(--space-3);
        gap: var(--space-2);
    }

    .faq-answer {
        padding: 0 var(--space-3) var(--space-3);
        padding-left: calc(var(--space-3) + 1.75rem + var(--space-2));
    }

    .faq-q-text {
        font-size: 1rem;
    }
}
