/* ===================================================================
   HOSPIA — Design System v5
   Editorial luxury: warm paper, espresso ink, brass accents.
   Type: Fraunces (display serif) + Inter (text).
   =================================================================== */

:root {
    /* Core palette */
    --ink: #191410;
    --ink-soft: #2b241d;
    --ink-mute: #5d5347;
    --paper: #faf7f1;
    --paper-2: #f2ecdf;
    --white: #ffffff;
    --brass: #a1783d;
    --brass-bright: #cda06a;
    --brass-soft: rgba(161, 120, 61, 0.12);
    --line: rgba(25, 20, 16, 0.12);
    --line-light: rgba(255, 255, 255, 0.14);
    --green: #274434;

    /* Type */
    --font-display: 'Fraunces', Georgia, serif;
    --font-text: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Motion */
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --transition-fast: 0.25s var(--ease);

    /* Legacy aliases (legal pages & older markup) */
    --clr-primary-dark: var(--ink);
    --clr-accent: var(--brass);
    --clr-accent-light: var(--brass-bright);
    --clr-bg: var(--paper);
    --clr-bg-alt: var(--paper-2);
    --clr-text: var(--ink-soft);
    --clr-white: var(--white);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
    font-family: var(--font-text);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--ink-soft);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; background: none; border: none; cursor: pointer; }

h1, h2, h3, .display {
    font-family: var(--font-display);
    font-weight: 480;
    line-height: 1.12;
    color: var(--ink);
    letter-spacing: -0.015em;
}

h1 em, h2 em, h3 em, .display em {
    font-style: italic;
    font-weight: 430;
    color: var(--brass);
}

.container {
    width: min(1180px, 92%);
    margin-inline: auto;
}

.container-wide { width: min(1360px, 94%); margin-inline: auto; }

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

/* ------------------------------------------------------------------
   Shared atoms
   ------------------------------------------------------------------ */
.kicker, .section-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--brass);
    margin-bottom: 1.25rem;
}

.kicker::before {
    content: "";
    width: 28px;
    height: 1px;
    background: var(--brass);
}

.section-head { max-width: 720px; margin-bottom: 3.5rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .kicker::before { display: none; }
.section-head h2 { font-size: clamp(2.1rem, 4.2vw, 3.2rem); margin-bottom: 1.15rem; }
.section-head p { font-size: 1.1rem; color: var(--ink-mute); }

.section { padding: clamp(5rem, 9vw, 8.5rem) 0; }
.section-dark { background: var(--ink); }
.section-dark h2, .section-dark h3 { color: var(--paper); }
/* Light cards inside dark sections keep ink headings */
.section-dark .calc-card h3, .section-dark .price-card h3 { color: var(--ink); }
.section-dark .section-head p { color: rgba(250, 247, 241, 0.65); }
.section-alt { background: var(--paper-2); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 1rem 1.9rem;
    font-family: var(--font-text);
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: transform var(--transition-fast), background var(--transition-fast),
                color var(--transition-fast), border-color var(--transition-fast),
                box-shadow var(--transition-fast);
    cursor: pointer;
    white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); }
.btn .arr { transition: transform var(--transition-fast); }
.btn:hover .arr { transform: translateX(4px); }

.btn-solid {
    background: var(--brass);
    color: var(--white);
    box-shadow: 0 12px 28px rgba(161, 120, 61, 0.35);
}
.btn-solid:hover { background: #8f6a35; }

.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: var(--ink-soft); }

.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--ink); }

.btn-ghost-light {
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(6px);
}
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.18); }

/* Legacy alias so old markup keeps working */
.btn-primary { background: var(--brass); color: var(--white); }
.btn-primary:hover { background: #8f6a35; }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--brass);
    border-bottom: 1px solid transparent;
    transition: gap var(--transition-fast);
}
.link-arrow:hover { gap: 0.9rem; }

/* ------------------------------------------------------------------
   Navbar
   ------------------------------------------------------------------ */
.navbar {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    padding: 1.4rem 0;
    transition: padding var(--transition-fast), background var(--transition-fast),
                box-shadow var(--transition-fast);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.logo {
    position: relative;
    z-index: 110;
    font-family: var(--font-display);
    font-weight: 560;
    font-size: 1.55rem;
    letter-spacing: -0.01em;
    color: var(--white);
    transition: color var(--transition-fast);
    line-height: 1;
}
.logo .logo-dot { color: var(--brass-bright); }

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

.nav-links a {
    font-size: 0.88rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    transition: color var(--transition-fast);
    position: relative;
    padding: 0.25rem 0;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-fast);
}

.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-cta { padding: 0.8rem 1.5rem; font-size: 0.85rem; }

/* Scrolled state */
.navbar.scrolled {
    background: rgba(250, 247, 241, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 0.85rem 0;
    box-shadow: 0 1px 0 var(--line);
}
.navbar.scrolled .logo { color: var(--ink); }
.navbar.scrolled .logo .logo-dot { color: var(--brass); }
.navbar.scrolled .nav-links a { color: var(--ink-mute); }
.navbar.scrolled .nav-links a:hover { color: var(--ink); }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 8px 4px;
    z-index: 110;
}
.hamburger .line, .hamburger span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--white);
    transition: transform var(--transition-fast), opacity var(--transition-fast),
                background var(--transition-fast);
}
.navbar.scrolled .hamburger .line,
.navbar.scrolled .hamburger span { background: var(--ink); }

.navbar.nav-open .hamburger span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.navbar.nav-open .hamburger span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 900px) {
    .hamburger { display: flex; }
    .nav-cta { display: none; }

    .nav-links {
        position: fixed;
        inset: 0;
        background: var(--ink);
        flex-direction: column;
        justify-content: center;
        gap: 1.8rem;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.35s var(--ease);
    }
    .nav-links a { font-family: var(--font-display); font-size: 1.9rem; color: var(--paper); }
    .nav-links a::after { display: none; }

    .navbar.nav-open .nav-links { opacity: 1; pointer-events: auto; }
    .navbar.nav-open .hamburger span,
    .navbar.nav-open .hamburger .line { background: var(--paper); }
    .navbar.nav-open .logo { color: var(--paper); }
}

/* ------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------ */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: var(--white);
    isolation: isolate;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
}
.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: hero-zoom 14s var(--ease) forwards;
}
@keyframes hero-zoom {
    from { transform: scale(1.12); }
    to { transform: scale(1); }
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(to top, rgba(15, 12, 9, 0.92) 0%, rgba(15, 12, 9, 0.45) 45%, rgba(15, 12, 9, 0.35) 100%);
}

.hero-inner {
    padding-top: 9rem;
    padding-bottom: clamp(3rem, 6vh, 5rem);
}

.hero .kicker { color: var(--brass-bright); }
.hero .kicker::before { background: var(--brass-bright); }

.hero h1 {
    color: var(--white);
    font-size: clamp(2.9rem, 6.5vw, 5.4rem);
    max-width: 15ch;
    margin-bottom: 1.6rem;
}
.hero h1 em { color: var(--brass-bright); }

.hero-sub {
    font-size: clamp(1.05rem, 1.5vw, 1.25rem);
    color: rgba(255, 255, 255, 0.85);
    max-width: 54ch;
    margin-bottom: 2.4rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Hero stat bar */
.hero-stats {
    border-top: 1px solid var(--line-light);
    background: rgba(15, 12, 9, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.hero-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 1.9rem 0;
}

.hero-stat { border-left: 1px solid var(--line-light); padding-left: 1.5rem; }
.hero-stat:first-child { border-left: none; padding-left: 0; }

.hero-stat strong {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 2.6vw, 2.3rem);
    font-weight: 500;
    color: var(--white);
    line-height: 1.1;
}
.hero-stat strong sup { font-size: 0.5em; color: var(--brass-bright); }
.hero-stat > span {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 800px) {
    .hero-stats-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem 1rem; }
    .hero-stat:nth-child(3) { border-left: none; padding-left: 0; }
}

/* ------------------------------------------------------------------
   Channel marquee
   ------------------------------------------------------------------ */
.marquee {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 1.6rem 0;
    overflow: hidden;
    position: relative;
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 32s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }

.marquee-group {
    display: flex;
    align-items: center;
    gap: 3.5rem;
    padding-right: 3.5rem;
}

.marquee-item {
    display: flex;
    align-items: center;
    gap: 3.5rem;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--ink-mute);
    white-space: nowrap;
}
.marquee-item::after { content: "·"; color: var(--brass); font-size: 1.5rem; }

.marquee-label {
    font-family: var(--font-text);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--brass);
    white-space: nowrap;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ------------------------------------------------------------------
   Problem / lifestyle split
   ------------------------------------------------------------------ */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2.5rem, 6vw, 6rem);
    align-items: center;
}

.split-media { position: relative; }

.split-media img {
    width: 100%;
    aspect-ratio: 4 / 4.6;
    object-fit: cover;
    border-radius: 4px;
}

.split-media::after {
    content: "";
    position: absolute;
    inset: 1.25rem -1.25rem -1.25rem 1.25rem;
    border: 1px solid var(--brass);
    border-radius: 4px;
    z-index: -1;
    opacity: 0.5;
}

.media-caption {
    position: absolute;
    left: 1.25rem;
    bottom: 1.25rem;
    background: rgba(250, 247, 241, 0.92);
    backdrop-filter: blur(8px);
    border-radius: 4px;
    padding: 0.9rem 1.25rem;
    font-size: 0.85rem;
    color: var(--ink);
    box-shadow: 0 16px 40px rgba(25, 20, 16, 0.18);
}
.media-caption strong { display: block; font-family: var(--font-display); font-size: 1.05rem; }

.pain-list { display: flex; flex-direction: column; margin-top: 2.25rem; }

.pain-item {
    display: flex;
    gap: 1.4rem;
    padding: 1.4rem 0;
    border-top: 1px solid var(--line);
}
.pain-item:last-child { border-bottom: 1px solid var(--line); }

.pain-item .num {
    font-family: var(--font-display);
    font-style: italic;
    color: var(--brass);
    font-size: 1.1rem;
    line-height: 1.5;
    flex-shrink: 0;
}

.pain-item h3 { font-size: 1.15rem; margin-bottom: 0.25rem; font-family: var(--font-text); font-weight: 650; }
.pain-item p { font-size: 0.97rem; color: var(--ink-mute); }

@media (max-width: 900px) {
    .split { grid-template-columns: 1fr; }
    .split-media::after { display: none; }
}

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

.service-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 2.25rem 2rem;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast),
                border-color var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px rgba(25, 20, 16, 0.1);
    border-color: rgba(161, 120, 61, 0.4);
}

.service-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--brass-soft);
    color: var(--brass);
    display: grid;
    place-items: center;
    margin-bottom: 1.5rem;
}
.service-icon svg { width: 22px; height: 22px; }

.service-card h3 { font-size: 1.25rem; margin-bottom: 0.6rem; }
.service-card p { font-size: 0.94rem; color: var(--ink-mute); }

@media (max-width: 980px) { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .services-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------
   Calculator
   ------------------------------------------------------------------ */
.calc-section { position: relative; overflow: hidden; }

.calc-section::before {
    content: "";
    position: absolute;
    top: -220px; right: -220px;
    width: 560px; height: 560px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(205, 160, 106, 0.14), transparent 65%);
    pointer-events: none;
}

.calc-grid {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: clamp(2.5rem, 6vw, 5.5rem);
    align-items: center;
}

.calc-copy .kicker { color: var(--brass-bright); }
.calc-copy .kicker::before { background: var(--brass-bright); }
.calc-copy h2 { color: var(--paper); font-size: clamp(2.1rem, 4vw, 3.1rem); margin-bottom: 1.25rem; }
.calc-copy p { color: rgba(250, 247, 241, 0.7); font-size: 1.08rem; max-width: 46ch; }

.calc-points { margin-top: 2.25rem; display: flex; flex-direction: column; gap: 1rem; }
.calc-points li {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    color: rgba(250, 247, 241, 0.85);
    font-size: 0.98rem;
}
.calc-points .tick { color: var(--brass-bright); flex-shrink: 0; margin-top: 2px; }

.calc-card {
    background: var(--paper);
    border-radius: 10px;
    padding: clamp(2rem, 4vw, 3rem);
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.45);
}

.calc-card h3 { font-size: 1.5rem; margin-bottom: 0.4rem; }
.calc-card .calc-note { font-size: 0.9rem; color: var(--ink-mute); margin-bottom: 2.25rem; }

.input-group { margin-bottom: 1.75rem; }

.input-group label {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 0.7rem;
}
.input-group label output,
.input-group label span { font-family: var(--font-display); font-size: 1.15rem; color: var(--brass); font-weight: 560; }

.slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(to right, var(--brass) var(--fill, 30%), #e2dccd var(--fill, 30%));
    outline: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--paper);
    border: 2px solid var(--brass);
    box-shadow: 0 2px 8px rgba(25, 20, 16, 0.25);
    cursor: grab;
    transition: transform 0.15s ease;
}
.slider::-webkit-slider-thumb:hover { transform: scale(1.15); }
.slider::-moz-range-thumb {
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--paper);
    border: 2px solid var(--brass);
    box-shadow: 0 2px 8px rgba(25, 20, 16, 0.25);
    cursor: grab;
}

.calc-results {
    border-top: 1px solid var(--line);
    margin-top: 2rem;
    padding-top: 1.75rem;
}

.calc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}
.calc-row .lbl { font-size: 0.92rem; color: var(--ink-mute); font-weight: 500; }
.calc-row .val { font-family: var(--font-display); font-size: 1.25rem; color: var(--ink-mute); }

.calc-row.highlight {
    background: var(--ink);
    color: var(--paper);
    border-radius: 8px;
    padding: 1.2rem 1.4rem;
    margin: 1.25rem 0 0.75rem;
}
.calc-row.highlight .lbl { color: rgba(250, 247, 241, 0.75); font-weight: 600; }
.calc-row.highlight .val {
    font-size: clamp(1.7rem, 3vw, 2.2rem);
    color: var(--brass-bright);
    font-weight: 560;
}

.calc-delta {
    text-align: center;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--green);
    background: rgba(39, 68, 52, 0.08);
    border-radius: 6px;
    padding: 0.6rem;
    margin-top: 0.75rem;
}
.calc-delta strong { color: var(--green); }

.calc-fineprint { font-size: 0.76rem; color: #9a9081; text-align: center; margin-top: 1.25rem; }

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

/* ------------------------------------------------------------------
   Portfolio / results strip
   ------------------------------------------------------------------ */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.portfolio-card {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    aspect-ratio: 3 / 3.8;
    display: block;
}

.portfolio-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease);
}
.portfolio-card:hover img { transform: scale(1.06); }

.portfolio-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 12, 9, 0.85) 0%, transparent 55%);
}

.portfolio-info {
    position: absolute;
    left: 1.5rem; right: 1.5rem; bottom: 1.4rem;
    z-index: 1;
    color: var(--white);
}

.portfolio-info .result {
    font-family: var(--font-display);
    font-size: 1.7rem;
    font-weight: 500;
    color: var(--brass-bright);
    display: block;
    line-height: 1.2;
}
.portfolio-info .name { font-size: 0.95rem; font-weight: 600; display: block; margin-top: 0.2rem; }
.portfolio-info .meta { font-size: 0.78rem; color: rgba(255, 255, 255, 0.65); letter-spacing: 0.05em; text-transform: uppercase; }

@media (max-width: 900px) { .portfolio-grid { grid-template-columns: 1fr; } .portfolio-card { aspect-ratio: 16/10; } }

/* ------------------------------------------------------------------
   Process timeline
   ------------------------------------------------------------------ */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    counter-reset: step;
}

.process-step {
    position: relative;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
}

.process-step::before {
    content: "";
    position: absolute;
    top: -1px; left: 0;
    width: 48px; height: 2px;
    background: var(--brass);
}

.process-step .step-num {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 2.6rem;
    font-weight: 400;
    color: var(--brass);
    opacity: 0.55;
    line-height: 1;
    display: block;
    margin-bottom: 1rem;
}

.process-step h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.process-step p { font-size: 0.93rem; color: var(--ink-mute); }
.process-step .step-tag {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--brass);
}

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

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

.testimonial-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 2.25rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.testimonial-card .stars { color: var(--brass); letter-spacing: 3px; font-size: 0.95rem; }

.testimonial-card blockquote {
    font-family: var(--font-display);
    font-size: 1.18rem;
    font-weight: 430;
    line-height: 1.5;
    color: var(--ink);
    flex-grow: 1;
}

.testimonial-who { display: flex; align-items: center; gap: 0.9rem; }

.testimonial-who .avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--brass-bright);
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-size: 1rem;
    flex-shrink: 0;
}

.testimonial-who strong { display: block; font-size: 0.92rem; color: var(--ink); line-height: 1.3; }
.testimonial-who span { font-size: 0.8rem; color: var(--ink-mute); }

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

/* ------------------------------------------------------------------
   Pricing
   ------------------------------------------------------------------ */
.pricing-wrap {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: clamp(2.5rem, 5vw, 5rem);
    align-items: center;
}

.pricing-copy h2 { color: var(--paper); font-size: clamp(2.1rem, 4vw, 3.1rem); margin-bottom: 1.25rem; }
.pricing-copy p { color: rgba(250, 247, 241, 0.7); font-size: 1.08rem; }
.pricing-copy .kicker { color: var(--brass-bright); }
.pricing-copy .kicker::before { background: var(--brass-bright); }

.pricing-compare {
    margin-top: 2.5rem;
    border-top: 1px solid var(--line-light);
}
.pricing-compare .row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--line-light);
    font-size: 0.95rem;
    color: rgba(250, 247, 241, 0.75);
}
.pricing-compare .row strong { color: var(--paper); font-weight: 600; }
.pricing-compare .row .good { color: var(--brass-bright); font-weight: 700; }

.price-card {
    background: var(--paper);
    border-radius: 10px;
    padding: clamp(2.25rem, 4vw, 3.25rem);
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.45);
    position: relative;
    overflow: hidden;
}

.price-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brass), var(--brass-bright));
}

.price-badge {
    display: inline-block;
    background: var(--brass-soft);
    color: var(--brass);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    margin-bottom: 1.5rem;
}

.price-figure {
    font-family: var(--font-display);
    font-size: clamp(3.4rem, 6vw, 4.6rem);
    font-weight: 480;
    color: var(--ink);
    line-height: 1;
}
.price-figure small {
    font-family: var(--font-text);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--ink-mute);
    margin-left: 0.5rem;
}

.price-desc { font-size: 0.95rem; color: var(--ink-mute); margin: 0.9rem 0 1.9rem; }

.price-features { border-top: 1px solid var(--line); padding-top: 1.6rem; margin-bottom: 2rem; display: flex; flex-direction: column; gap: 0.85rem; }
.price-features li { display: flex; gap: 0.8rem; align-items: flex-start; font-size: 0.94rem; color: var(--ink-soft); }
.price-features .tick { color: var(--brass); flex-shrink: 0; margin-top: 3px; }
.price-features strong { color: var(--ink); }

.price-card .btn { width: 100%; }
.price-guarantee { text-align: center; font-size: 0.8rem; color: var(--ink-mute); margin-top: 1rem; }

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

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

.faq-item {
    border-bottom: 1px solid var(--line);
}

.faq-item summary {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    padding: 1.6rem 0;
    cursor: pointer;
    font-family: var(--font-display);
    font-size: 1.22rem;
    font-weight: 480;
    color: var(--ink);
    transition: color var(--transition-fast);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--brass); }

.faq-item summary .faq-icon {
    flex-shrink: 0;
    width: 32px; height: 32px;
    border: 1px solid var(--line);
    border-radius: 50%;
    display: grid;
    place-items: center;
    position: relative;
    transition: transform 0.35s var(--ease), background var(--transition-fast),
                border-color var(--transition-fast);
}
.faq-item summary .faq-icon::before,
.faq-item summary .faq-icon::after {
    content: "";
    position: absolute;
    background: currentColor;
    transition: transform 0.35s var(--ease);
}
.faq-item summary .faq-icon::before { width: 12px; height: 1.5px; }
.faq-item summary .faq-icon::after { width: 1.5px; height: 12px; }

.faq-item[open] summary .faq-icon { background: var(--brass); border-color: var(--brass); color: var(--white); }
.faq-item[open] summary .faq-icon::after { transform: rotate(90deg); }

.faq-body { padding: 0 3rem 1.75rem 0; font-size: 0.98rem; color: var(--ink-mute); max-width: 62ch; }

/* ------------------------------------------------------------------
   CTA band
   ------------------------------------------------------------------ */
.cta-band {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(6rem, 12vw, 10rem) 0;
    text-align: center;
    color: var(--white);
}

.cta-band .cta-bg { position: absolute; inset: 0; z-index: -2; }
.cta-band .cta-bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-band::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(15, 12, 9, 0.72);
}

.cta-band h2 { color: var(--white); font-size: clamp(2.4rem, 5vw, 4rem); max-width: 20ch; margin: 0 auto 1.4rem; }
.cta-band p { color: rgba(255, 255, 255, 0.8); font-size: 1.12rem; max-width: 52ch; margin: 0 auto 2.5rem; }
.cta-band .hero-actions { justify-content: center; }

/* ------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------ */
.footer {
    background: var(--ink);
    color: rgba(250, 247, 241, 0.7);
    padding: clamp(4rem, 8vw, 6.5rem) 0 2.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3.5rem;
    border-bottom: 1px solid var(--line-light);
}

.footer .logo { font-size: 1.8rem; color: var(--paper); display: inline-block; margin-bottom: 1.25rem; }
.footer-brand p { font-size: 0.95rem; max-width: 36ch; }

.footer h4 {
    font-family: var(--font-text);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--brass-bright);
    margin-bottom: 1.25rem;
}

.footer-col ul { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col a { font-size: 0.95rem; transition: color var(--transition-fast); }
.footer-col a:hover { color: var(--paper); }

.footer-contact a {
    display: block;
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--paper);
    margin-bottom: 0.4rem;
    transition: color var(--transition-fast);
}
.footer-contact a:hover { color: var(--brass-bright); }
.footer-contact .addr { font-size: 0.85rem; margin-top: 1.25rem; color: rgba(250, 247, 241, 0.5); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    padding-top: 2.25rem;
    font-size: 0.82rem;
    color: rgba(250, 247, 241, 0.45);
}

.legal-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.legal-links a {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(250, 247, 241, 0.45);
    transition: color var(--transition-fast);
}
.legal-links a:hover { color: var(--brass-bright); }

@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .legal-links { justify-content: center; }
}

/* ------------------------------------------------------------------
   Page hero (subpages: case studies, owner tech, legal)
   ------------------------------------------------------------------ */
.page-hero {
    padding: 11rem 0 5rem;
    background: var(--ink);
    color: var(--paper);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::after {
    content: "";
    position: absolute;
    bottom: -320px;
    left: 50%;
    transform: translateX(-50%);
    width: 720px; height: 480px;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(205, 160, 106, 0.16), transparent 65%);
    pointer-events: none;
}

.page-hero .section-tag,
.page-hero .kicker { color: var(--brass-bright); justify-content: center; }
.page-hero .kicker::before { display: none; }
.page-hero h1 { color: var(--paper); font-size: clamp(2.6rem, 5.5vw, 4.4rem); margin-bottom: 1.25rem; }
.page-hero h1 em { color: var(--brass-bright); }
.page-hero p { color: rgba(250, 247, 241, 0.75); max-width: 640px; margin: 0 auto; font-size: 1.12rem; }
.page-hero .updated {
    font-size: 0.75rem;
    color: rgba(250, 247, 241, 0.45);
    margin-top: 1.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 700;
}

/* ------------------------------------------------------------------
   Case studies
   ------------------------------------------------------------------ */
.case-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 3rem;
}
.case-card.flip .case-media { order: 2; }

.case-media { min-height: 420px; position: relative; }
.case-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.case-body { padding: clamp(2.25rem, 4vw, 3.75rem); display: flex; flex-direction: column; justify-content: center; }
.case-body h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 1.15rem; }
.case-body > p { font-size: 1rem; color: var(--ink-mute); margin-bottom: 2rem; }

.case-stats { display: flex; gap: 2.5rem; flex-wrap: wrap; }
.case-stats strong {
    font-family: var(--font-display);
    font-size: 1.9rem;
    font-weight: 500;
    color: var(--brass);
    display: block;
    line-height: 1.2;
}
.case-stats span { font-size: 0.8rem; color: var(--ink-mute); letter-spacing: 0.06em; text-transform: uppercase; }

@media (max-width: 860px) {
    .case-card { grid-template-columns: 1fr; }
    .case-card.flip .case-media { order: 0; }
    .case-media { min-height: 280px; }
}

/* ------------------------------------------------------------------
   Owner tech dashboard mock
   ------------------------------------------------------------------ */
.dash {
    background: var(--ink);
    border-radius: 12px;
    padding: clamp(1.75rem, 4vw, 3rem);
    color: var(--paper);
    box-shadow: 0 50px 110px rgba(25, 20, 16, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.dash-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--line-light);
}
.dash-top h3 { color: var(--paper); font-size: 1.35rem; }

.live-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(205, 160, 106, 0.15);
    color: var(--brass-bright);
    border: 1px solid rgba(205, 160, 106, 0.35);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.45rem 1rem;
    border-radius: 999px;
}
.live-pill::before {
    content: "";
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--brass-bright);
    animation: pulse-dot 1.8s ease-in-out infinite;
}
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.dash-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-bottom: 2rem; }
.dash-kpi p { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(250, 247, 241, 0.5); margin-bottom: 0.3rem; }
.dash-kpi strong { font-family: var(--font-display); font-size: clamp(1.7rem, 3.5vw, 2.5rem); font-weight: 500; color: var(--brass-bright); line-height: 1.15; }
.dash-kpi .kpi-trend { font-size: 0.8rem; color: #7fb598; font-weight: 600; margin-left: 0.5rem; }

.dash-chart {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 130px;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 8px;
    margin-bottom: 2rem;
}
.dash-chart .bar {
    flex: 1;
    background: linear-gradient(to top, rgba(161, 120, 61, 0.5), var(--brass-bright));
    border-radius: 3px 3px 0 0;
    min-height: 8%;
    transform-origin: bottom;
    animation: bar-grow 1s var(--ease) both;
}
.dash-chart .bar:nth-child(odd) { animation-delay: 0.15s; }
@keyframes bar-grow { from { transform: scaleY(0); } }

.tech-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.25rem; }
.tech-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 1.75rem;
    transition: border-color var(--transition-fast), background var(--transition-fast);
}
.tech-card:hover { border-color: rgba(205, 160, 106, 0.4); background: rgba(255, 255, 255, 0.06); }
.tech-card strong { display: block; margin-bottom: 0.5rem; font-size: 1.05rem; color: var(--brass-bright); font-family: var(--font-display); font-weight: 500; }
.tech-card p { font-size: 0.88rem; color: rgba(250, 247, 241, 0.65); }

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

/* ------------------------------------------------------------------
   Legal & consent pages
   ------------------------------------------------------------------ */
.legal { padding: 5rem 0; background: var(--paper); }
.legal-wrap { max-width: 820px; margin: 0 auto; }
.legal-wrap > .lead { font-size: 1.2rem; color: var(--ink-soft); margin-bottom: 2rem; }
.legal-wrap h2 { font-size: 1.6rem; margin: 3rem 0 1rem; }
.legal-wrap h2:first-of-type { margin-top: 0; }
.legal-wrap h3 { font-size: 1.15rem; margin: 2rem 0 0.75rem; color: var(--ink); }
.legal-wrap p, .legal-wrap li { color: var(--ink-mute); font-size: 1.02rem; }
.legal-wrap p { margin-bottom: 1rem; }
.legal-wrap ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1.5rem; }
.legal-wrap li { margin-bottom: 0.5rem; }
.legal-wrap a { color: var(--brass); font-weight: 600; }
.legal-wrap strong { color: var(--ink); }

.disclosure-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-left: 4px solid var(--brass);
    border-radius: 8px;
    padding: 2rem 2.25rem;
    margin: 2.5rem 0;
    box-shadow: 0 10px 30px rgba(25, 20, 16, 0.04);
}
.disclosure-card dl { display: grid; grid-template-columns: 190px 1fr; gap: 0.9rem 1.5rem; margin: 0; }
.disclosure-card dt { font-weight: 700; color: var(--ink); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; }
.disclosure-card dd { color: var(--ink-mute); margin: 0; }
@media (max-width: 600px) {
    .disclosure-card dl { grid-template-columns: 1fr; gap: 0.25rem; }
    .disclosure-card dd { margin-bottom: 1.25rem; }
    .disclosure-card dd:last-child { margin-bottom: 0; }
}

.consent-form {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 20px 50px rgba(25, 20, 16, 0.06);
    max-width: 560px;
}
.consent-form .field { margin-bottom: 1.5rem; }
.consent-form label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 0.5rem; font-size: 0.95rem; }
.consent-form input[type=text],
.consent-form input[type=tel] {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid #d8d0c0;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--ink-soft);
    background: var(--paper);
    transition: border-color var(--transition-fast);
}
.consent-form input[type=text]:focus,
.consent-form input[type=tel]:focus { outline: none; border-color: var(--brass); }

.consent-check {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    background: var(--paper-2);
    padding: 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}
.consent-check input[type=checkbox] { margin-top: 3px; width: 20px; height: 20px; flex-shrink: 0; accent-color: var(--brass); cursor: pointer; }
.consent-check label { font-weight: 500; font-size: 0.88rem; color: var(--ink-mute); line-height: 1.6; margin: 0; }
.consent-check a { color: var(--brass); font-weight: 700; }
.consent-form .btn-submit { width: 100%; }
.form-note { font-size: 0.85rem; color: #9a9081; margin-top: 1rem; }
.form-success {
    display: none;
    background: #eef5ef;
    border: 1px solid #b9d6bf;
    color: var(--green);
    padding: 1.25rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    margin-top: 1.5rem;
}
.form-success.show { display: block; }

/* ------------------------------------------------------------------
   Reveal animations
   ------------------------------------------------------------------ */
.scroll-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.scroll-reveal.visible { opacity: 1; transform: translateY(0); }

.scroll-reveal.d1 { transition-delay: 0.12s; }
.scroll-reveal.d2 { transition-delay: 0.24s; }
.scroll-reveal.d3 { transition-delay: 0.36s; }

/* Hero entrance */
.reveal-text {
    opacity: 0;
    transform: translateY(30px);
    animation: rise 1s var(--ease) forwards;
}
.reveal-text.delay-1 { animation-delay: 0.18s; }
.reveal-text.delay-2 { animation-delay: 0.36s; }
.reveal-text.delay-3 { animation-delay: 0.54s; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

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