/* Avatarmatic 1.0.17 — living-frame identity */
:root {
    --primary: #ff5a3c;
    --primary-dark: #df3e25;
    --primary-light: #ff765f;
    --primary-glow: rgba(255, 90, 60, 0.18);
    --secondary: #171714;
    --accent: #ff5a3c;
    --dark: #f4f0e8;
    --dark-light: #ebe5da;
    --dark-lighter: #ded6c9;
    --white: #171714;
    --gray-light: #645f57;
    --gray: #7b756c;
    --gray-dark: #b8afa2;
    --gradient-primary: #ff5a3c;
    --gradient-secondary: #171714;
    --gradient-dark: #f4f0e8;
    --glass: rgba(255, 253, 248, 0.82);
    --glass-hover: #fffdf8;
    --border-glass: 1px solid rgba(23, 23, 20, 0.14);
    --shadow-glow: none;
    --shadow-small: 0 10px 24px rgba(38, 31, 24, 0.06);
    --shadow-medium: 0 18px 50px rgba(38, 31, 24, 0.09);
    --shadow-large: 0 28px 80px rgba(38, 31, 24, 0.13);
    --transition-fast: 160ms ease;
    --transition-medium: 260ms ease;
    --transition-slow: 420ms ease;
    --paper: #f4f0e8;
    --paper-light: #fffdf8;
    --paper-deep: #e7dfd3;
    --ink: #171714;
    --ink-soft: #645f57;
    --line: rgba(23, 23, 20, 0.14);
    --coral: #ff5a3c;
    --coral-dark: #d94127;
}

* {
    scrollbar-color: #aaa196 var(--paper);
}

html {
    background: var(--paper);
    color-scheme: light;
    scroll-padding-top: 84px;
}

body {
    background: var(--paper);
    color: var(--ink);
    font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.65;
}

body::selection {
    background: rgba(255, 90, 60, 0.2);
}

a,
button {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
}

:focus-visible {
    outline: 3px solid var(--coral);
    outline-offset: 4px;
}

.bg-animation,
.grid-pattern {
    display: none;
}

.noise-overlay {
    position: fixed;
    inset: 0;
    z-index: 0;
    opacity: 0.14;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
    mix-blend-mode: multiply;
    pointer-events: none;
}

main,
.footer {
    position: relative;
    z-index: 1;
}

.skip-link {
    top: 0.75rem;
    left: 0.75rem;
    border: 0;
    border-radius: 8px;
    background: var(--ink);
    color: var(--paper-light);
    box-shadow: var(--shadow-medium);
    font-weight: 700;
}

/* Navigation */
.nav {
    padding: 1rem clamp(1.25rem, 3.8vw, 4rem);
    background: rgba(244, 240, 232, 0.86);
    border-bottom: 1px solid transparent;
    backdrop-filter: blur(18px) saturate(120%);
    -webkit-backdrop-filter: blur(18px) saturate(120%);
}

.nav.scrolled {
    padding: 0.75rem clamp(1.25rem, 3.8vw, 4rem);
    background: rgba(244, 240, 232, 0.94);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 30px rgba(38, 31, 24, 0.04);
}

.nav-container {
    width: 100%;
    max-width: 1320px;
    gap: clamp(1rem, 2vw, 2.25rem);
}

.logo {
    color: var(--ink);
    flex: 0 0 auto;
}

.logo-icon {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

.logo-icon img {
    display: block;
    width: 42px;
    height: 42px;
}

.logo-icon::before {
    display: none;
}

.logo-text {
    background: none;
    color: var(--ink);
    -webkit-text-fill-color: currentColor;
    font-size: 1.18rem;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.brand-lockup {
    align-items: center;
    gap: 0.72rem;
}

.brand-wordmark {
    display: block;
    width: clamp(158px, 12vw, 185px);
    height: auto;
}

.footer .brand-wordmark {
    width: min(205px, 100%);
}

.nav-links {
    gap: clamp(0.9rem, 1.55vw, 1.5rem);
    min-width: 0;
    justify-content: center;
}

.nav-link {
    color: var(--ink-soft);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.nav-link::after {
    bottom: -6px;
    height: 1px;
    background: var(--ink);
}

.nav-link:hover,
.nav-link:focus-visible {
    color: var(--ink);
}

.nav-buttons {
    gap: 0.6rem;
    flex: 0 0 auto;
}

.mobile-menu-btn {
    display: none;
    min-width: 44px;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--paper-light);
    color: var(--ink);
    font-size: 1.05rem;
}

.mobile-menu-backdrop {
    background: rgba(23, 23, 20, 0.42);
    backdrop-filter: blur(5px);
}

.mobile-menu-panel {
    background: var(--paper-light);
    border-left: 1px solid var(--line);
    color: var(--ink);
    box-shadow: -30px 0 80px rgba(23, 23, 20, 0.16);
    padding: 1.2rem;
}

.mobile-menu-close {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--paper);
    color: var(--ink);
}

.mobile-menu-link {
    min-height: 58px;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    color: var(--ink);
    padding: 0.8rem 0.15rem;
}

.mobile-menu-link span,
.mobile-menu-footnote {
    color: var(--ink-soft);
}

.mobile-menu-link:hover {
    background: transparent;
    border-color: var(--ink);
    color: var(--coral-dark);
    transform: none;
}

.mobile-menu-cta {
    border-top-color: var(--line);
}

/* Buttons and links */
.btn {
    min-height: 44px;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 0.78rem 1.25rem;
    font-family: inherit;
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    box-shadow: none;
}

.btn::before {
    display: none;
}

.btn-primary {
    border-color: var(--ink);
    background: var(--ink);
    color: var(--paper-light);
    box-shadow: none;
}

.btn-primary:hover {
    border-color: var(--coral-dark);
    background: var(--coral);
    color: var(--ink);
    box-shadow: none;
    transform: translateY(-2px);
}

.btn-ghost {
    border-color: var(--line);
    background: rgba(255, 253, 248, 0.55);
    color: var(--ink);
    backdrop-filter: none;
}

.btn-ghost:hover {
    border-color: var(--ink);
    background: var(--paper-light);
    color: var(--ink);
    transform: translateY(-2px);
}

.btn-large {
    min-height: 52px;
    border-radius: 999px;
    padding: 0.95rem 1.55rem;
    font-size: 0.92rem;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 800;
    text-underline-offset: 5px;
}

.text-link:hover {
    color: var(--coral-dark);
}

/* Global section typography */
.section-header {
    max-width: 760px;
    margin-bottom: 3.5rem;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.15rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: transparent;
    color: var(--ink-soft);
    padding: 0.4rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.section-tag i {
    color: var(--coral);
}

.section-title {
    margin-bottom: 1rem;
    color: var(--ink);
    font-family: "Instrument Serif", Georgia, serif;
    font-size: clamp(2.8rem, 5vw, 4.7rem);
    font-weight: 400;
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.section-description {
    max-width: 650px;
    color: var(--ink-soft);
    font-size: clamp(1rem, 1.4vw, 1.12rem);
    line-height: 1.75;
}

.section-header .section-description {
    margin-inline: auto;
}

/* Hero */
.hero {
    min-height: 820px;
    padding: 10rem clamp(1.25rem, 5vw, 5rem) 6rem;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 78px 78px;
    opacity: 0.25;
    mask-image: linear-gradient(to bottom, black 0%, transparent 84%);
    pointer-events: none;
}

.hero-container {
    position: relative;
    width: 100%;
    max-width: 1280px;
    grid-template-columns: minmax(0, 1.12fr) minmax(420px, 0.88fr);
    gap: clamp(3rem, 6vw, 7rem);
}

.hero-content {
    animation: none;
}

.trust-badges {
    gap: 0.55rem;
    margin-bottom: 2.1rem;
}

.trust-badge {
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 253, 248, 0.64);
    color: var(--ink-soft);
    padding: 0.42rem 0.72rem;
    font-size: 0.7rem;
    font-weight: 700;
}

.trust-badge i {
    color: var(--coral);
    font-size: 0.68rem;
}

.hero-title {
    max-width: 790px;
    margin-bottom: 1.65rem;
    color: var(--ink);
    font-family: "Instrument Serif", Georgia, serif;
    font-size: clamp(4.3rem, 6.7vw, 7.35rem);
    font-weight: 400;
    line-height: 0.84;
    letter-spacing: -0.06em;
}

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

.hero-title .gradient {
    display: inline;
    background: none;
    color: var(--coral-dark);
    -webkit-text-fill-color: currentColor;
    font-style: italic;
}

.typewriter::after {
    display: none;
}

.hero-description {
    max-width: 610px;
    margin-bottom: 2rem;
    color: var(--ink-soft);
    font-size: clamp(1.05rem, 1.6vw, 1.28rem);
    line-height: 1.7;
}

.hero-buttons {
    gap: 0.7rem;
    margin-bottom: 2.2rem;
}

.hero-buttons .btn-primary {
    border-color: var(--coral-dark);
    background: var(--coral);
    color: var(--ink);
}

.hero-buttons .btn-primary:hover {
    border-color: var(--ink);
    background: var(--ink);
    color: var(--paper-light);
}

.social-proof {
    align-items: center;
    gap: 0.9rem;
    margin-top: 0;
}

.avatar-stack img {
    border: 2px solid var(--paper);
    filter: saturate(0.88);
}

.social-proof-text {
    color: var(--ink);
    font-size: 0.82rem;
}

.social-proof-caption {
    margin-top: 0.18rem;
    color: var(--ink-soft);
    font-size: 0.72rem;
}

.hero-visual {
    isolation: isolate;
}

.avatar-showcase {
    min-height: 520px;
    border: 1px solid var(--ink);
    border-radius: 240px 240px 24px 24px;
    background: var(--paper-deep);
    box-shadow: 18px 22px 0 var(--coral);
}

.avatar-showcase::before {
    content: "STUDIO / 01";
    position: absolute;
    top: 1.4rem;
    left: 50%;
    color: var(--ink-soft);
    font-size: 0.63rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    transform: translateX(-50%);
}

.avatar-card-3d {
    animation: none;
}

.avatar-card {
    border: 1px solid var(--ink);
    border-radius: 26px;
    background: var(--paper-light);
    box-shadow: var(--shadow-large);
    transform: none;
}

.avatar-card::before,
.avatar-card::after {
    display: none;
}

.avatar-preview {
    background: var(--ink);
}

.avatar-circle {
    border-color: var(--paper-light);
    box-shadow: none;
    animation: none;
}

.avatar-circle img {
    filter: saturate(0.9) contrast(1.03);
}

.avatar-ring {
    border-color: rgba(255, 90, 60, 0.55);
}

.voice-bar {
    background: var(--coral);
}

.chat-bubble {
    border-top-color: var(--line);
    background: var(--paper-light);
    color: var(--ink);
}

.floating-element {
    border: 1px solid var(--ink);
    border-radius: 999px;
    background: var(--paper-light);
    color: var(--ink);
    box-shadow: var(--shadow-small);
    backdrop-filter: none;
    animation: none;
    font-size: 0.76rem;
}

.floating-element i {
    color: var(--coral-dark);
}

/* Provider rail */
.logos-section {
    border-block: 1px solid var(--line);
    background: var(--paper-light);
    padding: 1.25rem clamp(1.25rem, 5vw, 5rem);
}

.logos-container {
    max-width: 1280px;
    display: grid;
    grid-template-columns: minmax(220px, 0.8fr) minmax(0, 2.2fr);
    align-items: center;
    gap: 2rem;
}

.logos-title {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    line-height: 1.45;
    text-align: left;
    text-transform: uppercase;
}

.logos-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
}

.logo-item {
    justify-content: center;
    gap: 0.55rem;
    border-left: 1px solid var(--line);
    color: var(--ink);
    font-size: 0.78rem;
    font-weight: 800;
    opacity: 1;
    filter: none;
}

.logo-item:hover {
    color: var(--coral-dark);
    opacity: 1;
    transform: none;
}

.provider-mark {
    display: inline-grid;
    width: 25px;
    height: 25px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--paper);
    color: var(--ink);
    font-size: 0.62rem;
}

/* Interactive demo */
.demo {
    padding: 8rem clamp(1.25rem, 5vw, 5rem);
    background: var(--ink);
    color: var(--paper-light);
}

.demo .section-tag {
    border-color: rgba(255, 253, 248, 0.24);
    color: rgba(255, 253, 248, 0.68);
}

.demo .section-title,
.demo .demo-title {
    color: var(--paper-light);
}

.demo .section-description,
.demo .demo-kicker {
    color: rgba(255, 253, 248, 0.66);
}

.demo-container {
    max-width: 1280px;
}

.demo-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(330px, 0.65fr);
    gap: clamp(2.5rem, 5vw, 5rem);
}

.demo-window {
    overflow: hidden;
    border: 1px solid rgba(255, 253, 248, 0.3);
    border-radius: 22px;
    background: #252520;
    box-shadow: none;
}

.demo-window::before {
    display: none;
}

.demo-window-top {
    position: relative;
    justify-content: flex-start;
    border-bottom-color: rgba(255, 253, 248, 0.12);
    background: #1d1d19;
}

.demo-window-title {
    position: absolute;
    left: 50%;
    color: rgba(255, 253, 248, 0.7);
    transform: translateX(-50%);
}

.demo-window-title i,
.demo-status-pill i,
.demo-caption i {
    color: var(--coral);
}

.demo-live {
    border-color: rgba(255, 90, 60, 0.48);
    background: rgba(255, 90, 60, 0.12);
    color: #ff8c77;
}

.demo-live-dot {
    background: var(--coral);
    box-shadow: none;
    animation: none;
}

.demo-dot.red,
.demo-dot.yellow,
.demo-dot.green {
    background: rgba(255, 253, 248, 0.32);
}

.demo-dot.red {
    background: var(--coral);
}

.demo-window-body {
    min-height: 440px;
}

.demo-video {
    border-right-color: rgba(255, 253, 248, 0.12);
    background: #1d1d19;
}

.demo-video-frame {
    border-color: rgba(255, 253, 248, 0.22);
    border-radius: 16px;
    box-shadow: none;
}

.demo-status-pill,
.demo-caption {
    border-color: rgba(255, 253, 248, 0.24);
    background: rgba(23, 23, 20, 0.7);
    color: var(--paper-light);
}

.demo-chat {
    background: #252520;
}

.demo-tab,
.demo-suggestion {
    min-height: 42px;
    border-color: rgba(255, 253, 248, 0.18);
    background: transparent;
    color: rgba(255, 253, 248, 0.72);
}

.demo-tab:hover,
.demo-suggestion:hover {
    border-color: rgba(255, 253, 248, 0.4);
    background: rgba(255, 253, 248, 0.06);
    color: var(--paper-light);
}

.demo-tab.active,
.demo-suggestion.active {
    border-color: var(--coral);
    background: var(--coral);
    color: var(--ink);
    box-shadow: none;
}

.demo-meta {
    color: rgba(255, 253, 248, 0.48);
}

.demo-bubble,
.demo-message.user .demo-bubble,
.demo-message.avatar .demo-bubble {
    border-color: rgba(255, 253, 248, 0.13);
    background: rgba(255, 253, 248, 0.055);
    color: rgba(255, 253, 248, 0.9);
}

.demo-message.avatar .demo-bubble {
    border-left: 3px solid var(--coral);
}

.demo-suggestions {
    border-top-color: rgba(255, 253, 248, 0.12);
}

.demo-avatar-strip {
    border-top-color: rgba(255, 253, 248, 0.12);
    background: #1d1d19;
}

.demo-avatar-btn {
    min-width: 52px;
    min-height: 52px;
    border-color: rgba(255, 253, 248, 0.18);
    background: transparent;
    border-radius: 50%;
}

.demo-avatar-btn.active {
    border-color: var(--coral);
    box-shadow: 0 0 0 3px #1d1d19, 0 0 0 4px var(--coral);
}

.demo-avatar-btn img {
    border-radius: 50%;
}

.demo-copy {
    color: var(--paper-light);
}

.demo-title {
    font-family: "Instrument Serif", Georgia, serif;
    font-size: clamp(2.7rem, 4.2vw, 4.2rem);
    font-weight: 400;
    line-height: 0.98;
    letter-spacing: -0.04em;
}

.demo-list-item {
    border-bottom: 1px solid rgba(255, 253, 248, 0.12);
    background: transparent;
    padding: 1.15rem 0;
}

.demo-list-item i {
    color: var(--coral);
}

.demo-list-item strong {
    color: var(--paper-light);
}

.demo-list-item p {
    color: rgba(255, 253, 248, 0.6);
}

.demo-actions .btn-primary {
    border-color: var(--coral);
    background: var(--coral);
    color: var(--ink);
}

.demo-actions .btn-primary:hover {
    border-color: var(--paper-light);
    background: var(--paper-light);
}

.demo-actions .btn-ghost {
    border-color: rgba(255, 253, 248, 0.28);
    background: transparent;
    color: var(--paper-light);
}

.demo-actions .btn-ghost:hover {
    border-color: var(--paper-light);
    background: rgba(255, 253, 248, 0.08);
}

/* Features */
.features,
.how-it-works,
.pricing,
.testimonials,
.faq,
.section {
    padding: 8rem clamp(1.25rem, 5vw, 5rem);
}

.features {
    background: var(--paper);
}

.features-grid,
.section .features-grid {
    max-width: 1280px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--line);
}

.feature-card,
.section a.feature-card {
    min-height: 270px;
    border: 0;
    border-radius: 0;
    background: var(--paper-light);
    color: var(--ink);
    box-shadow: none;
    padding: 2rem;
}

.feature-card::before {
    display: none;
}

.feature-card:hover,
.section a.feature-card:hover {
    border-color: transparent;
    background: #f9f4ec;
    box-shadow: none;
    transform: none;
}

.feature-icon {
    width: 48px;
    height: 48px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--paper);
    color: var(--coral-dark);
    box-shadow: none;
    font-size: 1rem;
}

.feature-card:hover .feature-icon {
    border-color: var(--coral);
    background: var(--coral);
    color: var(--ink);
    transform: rotate(-6deg);
}

.feature-title,
.feature-card h3 {
    color: var(--ink);
    font-family: "Instrument Serif", Georgia, serif;
    font-size: 1.85rem;
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.025em;
}

.feature-description,
.feature-card p {
    color: var(--ink-soft);
    font-size: 0.9rem;
    line-height: 1.65;
}

.avatar-mini-row img,
.avatar-mini-more {
    border-color: var(--paper-light);
}

.avatar-mini-more {
    background: var(--coral);
    color: var(--ink);
}

/* Steps */
.how-it-works {
    border-block: 1px solid var(--line);
    background: var(--paper-deep);
}

.steps-container {
    max-width: 1180px;
    gap: 0;
}

.steps-container::before {
    top: 31px;
    left: 16.5%;
    right: 16.5%;
    height: 1px;
    background: var(--ink);
}

.step {
    padding: 0 2rem;
}

.step-number {
    width: 62px;
    height: 62px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--ink);
    background: var(--paper-light);
    color: var(--ink);
    box-shadow: none;
    font-family: "Instrument Serif", Georgia, serif;
    font-size: 1.55rem;
    font-weight: 400;
}

.step:hover .step-number {
    background: var(--coral);
    transform: translateY(-4px);
}

.step-title {
    color: var(--ink);
    font-family: "Instrument Serif", Georgia, serif;
    font-size: 1.9rem;
    font-weight: 400;
    letter-spacing: -0.03em;
}

.step-description {
    color: var(--ink-soft);
    font-size: 0.9rem;
}

/* Capability strip */
.stats-section {
    padding: 0 clamp(1.25rem, 5vw, 5rem);
    border: 0;
    background: var(--coral);
}

.capability-strip {
    display: grid;
    max-width: 1280px;
    margin: 0 auto;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.capability-item {
    display: flex;
    min-height: 210px;
    flex-direction: column;
    justify-content: flex-end;
    border-left: 1px solid rgba(23, 23, 20, 0.26);
    padding: 1.7rem;
}

.capability-item:last-child {
    border-right: 1px solid rgba(23, 23, 20, 0.26);
}

.capability-index {
    margin-bottom: auto;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.capability-item strong {
    margin-bottom: 0.35rem;
    font-family: "Instrument Serif", Georgia, serif;
    font-size: 1.75rem;
    font-weight: 400;
    letter-spacing: -0.03em;
}

.capability-item > span:last-child {
    max-width: 220px;
    color: rgba(23, 23, 20, 0.7);
    font-size: 0.8rem;
    line-height: 1.5;
}

/* Onboarding */
.pricing {
    background: var(--paper-light);
}

.pricing-grid {
    max-width: 1180px;
    gap: 1rem;
}

.pricing-card,
.pricing-card.popular {
    min-height: 420px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--paper);
    color: var(--ink);
    box-shadow: none;
    padding: 2rem;
    transform: none;
}

.pricing-card.popular {
    border-color: var(--ink);
    background: var(--ink);
    color: var(--paper-light);
}

.pricing-card:hover,
.pricing-card.popular:hover {
    border-color: var(--coral-dark);
    box-shadow: none;
    transform: translateY(-5px);
}

.onboarding-number {
    display: inline-grid;
    width: 44px;
    height: 44px;
    margin-bottom: auto;
    place-items: center;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.onboarding-grid .pricing-card {
    display: flex;
    flex-direction: column;
}

.pricing-name {
    margin-top: 3.2rem;
    color: var(--ink);
    font-family: "Instrument Serif", Georgia, serif;
    font-size: 2.25rem;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.04em;
}

.pricing-card.popular .pricing-name {
    color: var(--paper-light);
}

.pricing-description {
    color: var(--ink-soft);
    line-height: 1.7;
}

.pricing-card.popular .pricing-description {
    color: rgba(255, 253, 248, 0.64);
}

.pricing-features {
    margin-top: auto;
    padding-top: 1.3rem;
    border-top: 1px solid var(--line);
}

.pricing-card.popular .pricing-features {
    border-top-color: rgba(255, 253, 248, 0.18);
}

.pricing-features li {
    border: 0;
    color: var(--ink-soft);
    font-size: 0.8rem;
}

.pricing-card.popular .pricing-features li {
    color: rgba(255, 253, 248, 0.72);
}

.pricing-features li i,
.pricing-card.popular .pricing-features li i {
    color: var(--coral);
}

.pricing-action {
    display: flex;
    max-width: 1180px;
    margin: 2rem auto 0;
    align-items: center;
    justify-content: center;
    gap: 1.4rem;
}

/* Use cases */
.testimonials {
    border-top: 1px solid var(--line);
    background: var(--paper);
}

.testimonials-grid {
    max-width: 1180px;
    gap: 1rem;
}

.testimonial-card,
.use-case-card {
    min-height: 410px;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: 180px 180px 18px 18px;
    background: var(--paper-light);
    color: var(--ink);
    box-shadow: none;
    padding: 2.2rem 2rem;
    text-align: center;
}

.testimonial-card:hover,
.use-case-card:hover {
    border-color: var(--ink);
    box-shadow: none;
    transform: translateY(-5px);
}

.use-case-icon {
    display: grid;
    width: 92px;
    height: 92px;
    margin: 0 auto 2.25rem;
    place-items: center;
    border: 1px solid var(--ink);
    border-radius: 50%;
    background: var(--coral);
    color: var(--ink);
    font-size: 1.4rem;
}

.use-case-label {
    color: var(--coral-dark);
    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.use-case-card h3 {
    margin: 0.8rem 0;
    color: var(--ink);
    font-family: "Instrument Serif", Georgia, serif;
    font-size: 2rem;
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.035em;
}

.use-case-card p {
    color: var(--ink-soft);
    font-size: 0.88rem;
}

.use-case-card a {
    display: inline-flex;
    margin: auto auto 0;
    align-items: center;
    gap: 0.45rem;
    color: var(--ink);
    font-size: 0.78rem;
    font-weight: 800;
    text-underline-offset: 4px;
}

.use-case-card a:hover {
    color: var(--coral-dark);
}

/* Editorial guide cluster */
.section {
    border-top: 1px solid var(--line);
    background: var(--paper-light);
}

.section .container {
    max-width: 1280px;
}

.section .features-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.section a.feature-card {
    min-height: 255px;
    padding: 1.5rem;
}

.section a.feature-card .feature-icon {
    width: 40px;
    height: 40px;
}

.section a.feature-card h3 {
    font-size: 1.45rem;
}

.section a.feature-card p {
    font-size: 0.8rem;
}

/* FAQ */
.faq {
    border-top: 1px solid var(--line);
    background: var(--paper-deep);
}

.faq-container {
    max-width: 900px;
}

.faq-item {
    border: 0;
    border-bottom: 1px solid var(--ink);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.faq-item:hover {
    border-color: var(--ink);
    transform: none;
}

.faq-question {
    min-height: 76px;
    color: var(--ink);
    font-family: "Instrument Serif", Georgia, serif;
    font-size: clamp(1.35rem, 2vw, 1.75rem);
    font-weight: 400;
    line-height: 1.2;
}

.faq-question i {
    width: 36px;
    height: 36px;
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--coral-dark);
    font-size: 0.72rem;
}

.faq-answer p {
    max-width: 760px;
    color: var(--ink-soft);
    font-size: 0.92rem;
    line-height: 1.8;
}

/* Closing CTA */
.cta {
    padding: 2rem clamp(1.25rem, 5vw, 5rem) 8rem;
    background: var(--paper-deep);
}

.cta-card {
    max-width: 1280px;
    border: 1px solid var(--ink);
    border-radius: 22px;
    background: var(--coral);
    color: var(--ink);
    box-shadow: 14px 14px 0 var(--ink);
    padding: clamp(3.5rem, 7vw, 7rem) clamp(1.5rem, 6vw, 6rem);
}

.cta-card::before {
    display: none;
}

.cta-eyebrow {
    display: block;
    margin-bottom: 1.2rem;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.cta-title {
    max-width: 900px;
    margin: 0 auto 1rem;
    color: var(--ink);
    font-family: "Instrument Serif", Georgia, serif;
    font-size: clamp(3rem, 6vw, 6rem);
    font-weight: 400;
    line-height: 0.92;
    letter-spacing: -0.055em;
}

.cta-description {
    max-width: 610px;
    margin: 0 auto 2rem;
    color: rgba(23, 23, 20, 0.7);
    font-size: 1rem;
}

.cta-card .btn {
    border-color: var(--ink);
    background: var(--ink);
    color: var(--paper-light);
}

.cta-card .btn:hover {
    background: var(--paper-light);
    color: var(--ink);
    transform: translateY(-3px);
}

/* Footer */
.footer {
    border-top: 0;
    background: var(--ink);
    color: var(--paper-light);
    padding: 5rem clamp(1.25rem, 5vw, 5rem) 2rem;
}

.footer-container {
    max-width: 1280px;
}

.footer-grid {
    grid-template-columns: 1.5fr repeat(3, 0.65fr);
    gap: clamp(2rem, 5vw, 5rem);
}

.footer .logo,
.footer .logo-text {
    color: var(--paper-light);
}

.footer .logo-icon {
    border-color: transparent;
}

.footer-brand p,
.footer-column a,
.footer-bottom p,
.footer-legal a {
    color: rgba(255, 253, 248, 0.6);
}

.footer-column h4 {
    color: var(--paper-light);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.footer-column a:hover,
.footer-legal a:hover {
    color: var(--coral);
}

.social-link {
    border-color: rgba(255, 253, 248, 0.18);
    background: transparent;
    color: var(--paper-light);
}

.social-link:hover {
    border-color: var(--coral);
    background: var(--coral);
    color: var(--ink);
}

.footer-bottom {
    border-top-color: rgba(255, 253, 248, 0.14);
}

::-webkit-scrollbar-track {
    background: var(--paper);
}

::-webkit-scrollbar-thumb {
    background: #aaa196;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--coral-dark);
}

/* Cookie choices stay visible without swallowing the product on first visit. */
.cookie-consent-banner {
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    width: min(1120px, calc(100% - 2rem));
    margin-inline: auto;
    border: 1px solid rgba(255, 253, 248, 0.2);
    border-radius: 16px;
    background: rgba(23, 23, 20, 0.97);
    box-shadow: 0 18px 55px rgba(23, 23, 20, 0.24);
    padding: 0.85rem 1rem;
}

.cookie-consent-container {
    max-width: none;
    flex-wrap: nowrap;
    gap: 1rem;
}

.cookie-consent-text {
    min-width: 0;
}

.cookie-consent-text p {
    color: rgba(255, 253, 248, 0.76);
    font-size: 0.78rem;
    line-height: 1.45;
}

.cookie-consent-text a {
    color: #ff8c77;
    text-underline-offset: 3px;
}

.cookie-consent-text a:hover {
    color: var(--paper-light);
}

.cookie-consent-buttons {
    flex: 0 0 auto;
    gap: 0.45rem;
}

.cookie-consent-buttons .btn {
    min-height: 42px;
    border-color: rgba(255, 253, 248, 0.2);
    background: transparent;
    color: var(--paper-light);
    padding: 0.6rem 0.9rem;
    font-size: 0.74rem;
}

.cookie-consent-buttons .btn:hover {
    border-color: var(--coral);
    background: var(--coral);
    color: var(--ink);
}

.cookie-settings-overlay {
    background: rgba(23, 23, 20, 0.58);
}

.wa-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 9998;
    display: flex;
    width: 56px;
    height: 56px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--ink);
    border-radius: 50%;
    background: var(--coral);
    box-shadow: 0 8px 24px rgba(23, 23, 20, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease, bottom 0.25s ease, opacity 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.wa-float:hover,
.wa-float:focus-visible {
    box-shadow: 0 12px 30px rgba(23, 23, 20, 0.24);
    transform: translateY(-3px);
}

.wa-float svg {
    display: block;
}

body.cookie-bar-open .wa-float {
    bottom: 100px;
}

body.menu-open .cookie-consent-banner {
    opacity: 0;
    pointer-events: none;
    transform: translateY(120%);
}

body.menu-open .wa-float {
    opacity: 0;
    pointer-events: none;
}

.cookie-settings-modal {
    border-color: var(--line);
    background: var(--paper-light);
    color: var(--ink);
}

.cookie-settings-header,
.cookie-settings-footer {
    border-color: var(--line);
}

.cookie-settings-header h2,
.cookie-category-title {
    color: var(--ink);
}

.cookie-category-desc {
    color: var(--ink-soft);
}

.cookie-settings-close {
    border: 1px solid var(--line);
    background: var(--paper);
    color: var(--ink);
}

.cookie-toggle-slider {
    border-color: var(--line);
    background: var(--paper-deep);
}

.cookie-toggle-slider::before {
    background: var(--paper-light);
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    border-color: var(--coral-dark);
    background: var(--coral);
}

@media (max-width: 1180px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex !important;
    }

    .nav-buttons .btn-ghost {
        display: none;
    }

    .hero-container {
        grid-template-columns: minmax(0, 1.06fr) minmax(360px, 0.94fr);
        gap: 3.5rem;
    }

    .hero-title {
        font-size: clamp(4rem, 7vw, 6rem);
    }

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

@media (max-width: 900px) {
    .hero {
        min-height: auto;
        padding-top: 8.5rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 4.5rem;
        text-align: center;
    }

    .hero-content {
        order: 0;
        display: flex;
        width: 100%;
        flex-direction: column;
        align-items: center;
    }

    .hero-visual {
        order: 1;
        width: min(560px, 90%);
        margin-inline: auto;
    }

    .hero-description {
        margin-inline: auto;
    }

    .hero-buttons,
    .social-proof {
        justify-content: center;
    }

    .logos-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .logos-title {
        text-align: center;
    }

    .logo-item:first-child {
        border-left: 0;
    }

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

    .demo-copy {
        max-width: 700px;
        margin-inline: auto;
        text-align: left;
    }

    .demo-actions {
        justify-content: flex-start;
    }

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

    .pricing-grid,
    .testimonials-grid {
        max-width: 660px;
        grid-template-columns: 1fr;
    }

    .pricing-card,
    .pricing-card.popular {
        min-height: 360px;
    }

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

    .capability-item:nth-child(3) {
        border-top: 1px solid rgba(23, 23, 20, 0.26);
    }

    .capability-item:nth-child(4) {
        border-top: 1px solid rgba(23, 23, 20, 0.26);
    }

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

@media (max-width: 640px) {
    .brand-lockup {
        gap: 0.55rem;
    }

    .brand-wordmark {
        width: 160px;
    }

    .nav-buttons {
        display: none;
    }

    .hero {
        padding: 7.5rem 1.15rem 4.5rem;
    }

    .hero::before {
        background-size: 48px 48px;
    }

    .hero-title {
        font-size: clamp(3.3rem, 16vw, 4.65rem);
        line-height: 0.88;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-buttons {
        display: grid;
        grid-template-columns: 1fr;
        width: min(100%, 420px);
    }

    .hero-buttons .btn-large {
        width: 100%;
    }

    .social-proof {
        align-items: center;
        text-align: left;
    }

    .avatar-stack {
        flex: 0 0 auto;
    }

    .avatar-showcase {
        min-height: 400px;
        border-radius: 190px 190px 18px 18px;
        box-shadow: 9px 11px 0 var(--coral);
    }

    .avatar-card-3d {
        width: 76%;
    }

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

    .logo-item {
        min-height: 42px;
        justify-content: flex-start;
        border-left: 0;
    }

    .demo,
    .features,
    .how-it-works,
    .pricing,
    .testimonials,
    .faq,
    .section {
        padding: 5.5rem 1.15rem;
    }

    .section-header {
        margin-bottom: 2.6rem;
        text-align: left;
    }

    .section-header .section-description {
        margin-inline: 0;
    }

    .section-title {
        font-size: clamp(2.7rem, 13vw, 3.65rem);
    }

    .demo-window-body {
        grid-template-columns: 1fr;
    }

    .demo-video {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 253, 248, 0.12);
        padding: 0.8rem;
    }

    .demo-window-top {
        justify-content: space-between;
    }

    .demo-window-title {
        display: none;
    }

    .demo-chat {
        padding: 1rem;
    }

    .demo-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .demo-actions .btn-large {
        width: 100%;
    }

    .features-grid,
    .section .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-card,
    .section a.feature-card {
        min-height: auto;
    }

    .steps-container {
        gap: 2.2rem;
    }

    .step {
        display: grid;
        grid-template-columns: 58px 1fr;
        column-gap: 1rem;
        padding: 0;
        text-align: left;
    }

    .step-number {
        width: 58px;
        height: 58px;
        grid-row: span 2;
        margin: 0;
    }

    .step-title,
    .step-description {
        text-align: left;
    }

    .capability-strip {
        grid-template-columns: 1fr;
    }

    .capability-item {
        min-height: 170px;
        border-right: 1px solid rgba(23, 23, 20, 0.26);
        border-top: 1px solid rgba(23, 23, 20, 0.26);
    }

    .capability-item:first-child {
        border-top: 0;
    }

    .pricing-action {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .testimonial-card,
    .use-case-card {
        min-height: 390px;
    }

    .cta {
        padding: 1.15rem 1.15rem 6rem;
    }

    .cta-card {
        border-radius: 16px;
        box-shadow: 7px 8px 0 var(--ink);
        padding: 3.5rem 1.3rem;
    }

    .cta-title {
        font-size: clamp(2.8rem, 14vw, 4rem);
    }

    .footer {
        padding: 4rem 1.15rem 2rem;
    }

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

    .cookie-consent-banner {
        right: 0.7rem;
        bottom: 0.7rem;
        left: 0.7rem;
        width: calc(100% - 1.4rem);
        padding: 0.75rem;
    }

    .cookie-consent-container {
        flex-direction: column;
        align-items: stretch;
        gap: 0.65rem;
        text-align: left;
    }

    .cookie-consent-text p {
        font-size: 0.72rem;
    }

    .cookie-consent-buttons {
        display: grid;
        width: 100%;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.4rem;
    }

    .cookie-consent-buttons .btn {
        width: 100%;
        min-height: 40px;
        padding: 0.45rem 0.3rem;
        font-size: 0.68rem;
    }

    .wa-float {
        right: 18px;
        bottom: 18px;
    }

    body.cookie-bar-open .wa-float {
        bottom: 132px;
    }
}

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