/* ===========================================================================
   Landing Page — "Salon Editorial" (sibling of marketing.css / --mk-*)
   ---------------------------------------------------------------------------
   Spec: docs/DESIGN_MARKETING.md. Reference implementation: homepage.css.

   TOKEN DECISION: the --mk-* token VALUES from marketing.css are duplicated
   here as --lp-* (not @import'ed) because marketing.css also ships .site
   chrome overrides built for the design-system stack, while landing pages run
   standalone on the Bootstrap CDN. If a token changes in marketing.css,
   mirror it here. Values verified in sync 2026-08-19.

   Gold budget: thread under the hero H1 + thread reprise in the close card
   (max 2 per page) + the wordmark's gold dot. Gold is never text, never bg.
   One dark surface per page: the close CTA card.

   NOTE: landing_pages.primary_color exists in the DB but is intentionally
   ignored — brand is fixed (see "Brand — fixed" below).
   All selectors scoped to .lp-body / .lp-* so homepage + CMS are untouched.
   ========================================================================= */

:root {
    /* Brand — fixed, no per-page override (primary_color column is ignored) */
    --lp-primary:        #2F6BFF;
    --lp-primary-hover:  #1A4FD9;
    --lp-primary-soft:   rgba(47, 107, 255, 0.09);
    --lp-primary-ring:   rgba(47, 107, 255, 0.22);
    --lp-primary-ink:    #0B2D8B;

    /* The thread + wordmark dot only. Never text, never background. */
    --lp-gold:           #F5B301;

    /* Surfaces & ink */
    --lp-surface:        #ffffff;
    --lp-surface-tint:   #fbfbfc;      /* hero + footer; avoid elsewhere */
    --lp-surface-inverse:#0b0b12;
    --lp-ink:            #0a0a12;
    --lp-ink-2:          #1a1a24;
    --lp-ink-3:          #4a4a5c;
    --lp-ink-4:          #7a7a8c;
    --lp-ink-5:          #aaaab5;
    --lp-line:           rgba(10, 10, 18, 0.09);
    --lp-line-strong:    rgba(10, 10, 18, 0.16);
    --lp-on-inverse:     #ffffff;
    --lp-on-inverse-2:   rgba(255, 255, 255, 0.74);
    --lp-line-inverse:   rgba(255, 255, 255, 0.14);

    /* Fonts */
    --lp-font-sans:    'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --lp-font-display: 'Fraunces', 'Iowan Old Style', 'Times New Roman', serif;
    --lp-font-serif:   'Fraunces', 'Iowan Old Style', Georgia, serif;
    --lp-font-mono:    ui-monospace, SFMono-Regular, 'SF Mono', Menlo, monospace;

    /* Variable-font axis presets for Fraunces */
    --lp-fraunces-display: 'opsz' 144, 'SOFT' 30, 'WONK' 0;
    --lp-fraunces-soft:    'opsz' 72,  'SOFT' 50, 'WONK' 1;

    /* Type scale — fluid, aligned with --mk-t-* */
    --lp-t-kicker:     0.8125rem;
    --lp-t-eyebrow:    0.8125rem;
    --lp-t-meta:       0.875rem;
    --lp-t-small:      0.9375rem;
    --lp-t-body:       1.0625rem;
    --lp-t-lead:       clamp(1.125rem, 0.4vw + 1rem, 1.25rem);
    --lp-t-h3:         clamp(1.375rem, 0.8vw + 1.1rem, 1.75rem);
    --lp-t-h2:         clamp(1.875rem, 1.9vw + 1.1rem, 2.75rem);
    --lp-t-h1:         clamp(2.5rem,   3.6vw + 1.2rem, 4.25rem);
    --lp-t-display:    clamp(2.875rem, 4.6vw + 1.2rem, 5.25rem);

    --lp-track-tight:   -0.022em;
    --lp-track-tighter: -0.035em;
    --lp-track-wide:     0.14em;
    --lp-leading-display: 1.02;
    --lp-leading-heading: 1.12;
    --lp-leading-body:    1.6;

    --lp-measure:          64ch;
    --lp-measure-narrow:   44ch;

    /* Rhythm */
    --lp-container:         min(1200px, 92vw);
    --lp-container-narrow:  min(820px,  92vw);
    --lp-section-y:         clamp(4.5rem, 6vw + 1.5rem, 7.5rem);
    --lp-section-y-tight:   clamp(2.5rem, 4vw + 0.5rem, 4rem);
    --lp-gap-1: 0.5rem;
    --lp-gap-2: 0.875rem;
    --lp-gap-3: 1.25rem;
    --lp-gap-4: 1.75rem;
    --lp-gap-5: 2.5rem;
    --lp-gap-6: 3.5rem;
    --lp-gap-7: 5rem;

    /* Shape — nothing square: pills, arches, soft radii */
    --lp-radius-xs: 0.375rem;
    --lp-radius-sm: 0.625rem;
    --lp-radius:    1rem;
    --lp-radius-lg: 1.5rem;
    --lp-radius-xl: 2rem;
    --lp-radius-pill: 999px;
    /* the arch: salon-mirror silhouette for icon frames */
    --lp-radius-arch: 50% 50% 14px 14px / 42% 42% 14px 14px;

    /* Shadow — minimal, mostly rings + primary glows */
    --lp-shadow-sm:    0 1px 2px rgba(10, 10, 18, 0.04);
    --lp-shadow-ring:  0 0 0 1px var(--lp-line);
    --lp-shadow-primary: 0 10px 30px -14px var(--lp-primary-ring);
    --lp-shadow-primary-lg: 0 22px 48px -18px var(--lp-primary-ring);
    --lp-shadow-float:
        0 1px 0 rgba(10, 10, 18, 0.04),
        0 24px 48px -24px rgba(10, 10, 18, 0.22),
        0 40px 80px -32px var(--lp-primary-ring);

    /* Motion */
    --lp-ease: cubic-bezier(0.22, 0.61, 0.36, 1);

    /* Hero dot grid pattern */
    --lp-dot-color: rgba(10, 10, 18, 0.07);
    --lp-dot-size:  22px;
}

/* ===========================================================================
   Base
   ========================================================================= */

.lp-body {
    font-family: var(--lp-font-sans);
    font-size: var(--lp-t-body);
    line-height: var(--lp-leading-body);
    color: var(--lp-ink);
    background: var(--lp-surface);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.lp-body h1,
.lp-body h2,
.lp-body h3,
.lp-body h4 {
    font-family: var(--lp-font-display);
    margin: 0;
    font-weight: 600;
    letter-spacing: var(--lp-track-tight);
    line-height: var(--lp-leading-heading);
    font-variation-settings: var(--lp-fraunces-soft);
    /* colour is set per component to avoid specificity collisions on dark surfaces */
}

.lp-body p { margin: 0 0 1em; }
.lp-body p:last-child { margin-bottom: 0; }

.lp-body a {
    color: inherit;
    text-decoration: none;
    transition: color 180ms var(--lp-ease);
}

.lp-body a:hover { color: var(--lp-primary); }

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

.lp-body ::selection {
    background: var(--lp-primary-soft);
    color: var(--lp-primary-ink);
}

.lp-body .container,
.lp-body .container-lg {
    max-width: var(--lp-container);
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

/* Utilities (available inside rich text fields) */
.lp-eyebrow {
    display: inline-block;
    font-size: var(--lp-t-eyebrow);
    font-weight: 600;
    letter-spacing: var(--lp-track-wide);
    text-transform: uppercase;
    color: var(--lp-primary);
}

.lp-lead {
    font-size: var(--lp-t-lead);
    color: var(--lp-ink-3);
    line-height: 1.5;
    max-width: var(--lp-measure);
}

/* ===========================================================================
   Buttons
   ========================================================================= */

.lp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--lp-font-sans);
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1;
    padding: 0.875rem 1.35rem;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color 200ms var(--lp-ease),
                color 200ms var(--lp-ease),
                border-color 200ms var(--lp-ease),
                transform 200ms var(--lp-ease),
                box-shadow 240ms var(--lp-ease);
    white-space: nowrap;
}

.lp-btn .bi {
    font-size: 1em;
    transition: transform 200ms var(--lp-ease);
}

.lp-btn:hover .bi { transform: translateX(2px); }

.lp-btn-lg {
    padding: 1.15rem 1.85rem;
    font-size: 1.0625rem;
}

/* Compound selectors bump specificity past `.lp-body a` / `.lp-body h*` so
   button label + icon colours stay correct on every surface. */
.lp-btn.lp-btn-primary,
.lp-body a.lp-btn-primary {
    background: var(--lp-primary);
    color: #fff;
    border-color: var(--lp-primary);
    box-shadow: var(--lp-shadow-primary);
}

.lp-btn.lp-btn-primary:hover,
.lp-body a.lp-btn-primary:hover {
    background: var(--lp-primary-hover);
    border-color: var(--lp-primary-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--lp-shadow-primary-lg);
}

.lp-btn.lp-btn-primary:focus-visible,
.lp-body a.lp-btn-primary:focus-visible {
    outline: 2px solid var(--lp-primary);
    outline-offset: 3px;
}

.lp-btn.lp-btn-inverse,
.lp-body a.lp-btn-inverse {
    background: #fff;
    color: var(--lp-ink);
    border-color: #fff;
}

.lp-btn.lp-btn-inverse:hover,
.lp-body a.lp-btn-inverse:hover {
    background: var(--lp-primary);
    color: #fff;
    border-color: var(--lp-primary);
    transform: translateY(-1px);
}

/* Icon inside any button inherits the button's explicit colour */
.lp-btn .bi { color: currentColor; }

/* ===========================================================================
   Hero
   ========================================================================= */

.lp-hero {
    position: relative;
    background: var(--lp-surface-tint);
    padding: clamp(4rem, 8vw, 6.5rem) 0 clamp(3.5rem, 6vw, 5.5rem);
    overflow: hidden;
    isolation: isolate;
}

@media (min-width: 992px) {
    .lp-hero-split {
        min-height: 100svh;
        display: flex;
        align-items: center;
        padding-top: clamp(3.5rem, 5vw, 5rem);
        padding-bottom: clamp(3rem, 4vw, 4.5rem);
    }

    .lp-hero-split .container { max-width: min(1280px, 94vw); }
}

.lp-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 1px 1px, var(--lp-dot-color) 1px, transparent 1.5px);
    background-size: var(--lp-dot-size) var(--lp-dot-size);
    mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 40%, transparent 85%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 40%, transparent 85%);
    opacity: 0.9;
}

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

/* Split (default when hero image present) */
.lp-hero-split .lp-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.95fr);
    gap: clamp(2.5rem, 6vw, 6rem);
    align-items: center;
}

/* Centered (no image) */
.lp-hero-centered .lp-hero-grid {
    display: grid;
    place-items: center;
    text-align: center;
}

.lp-hero-centered .lp-hero-copy { max-width: 820px; margin: 0 auto; }

/* Storyteller: centered stack, image renders below */
.lp-hero-stack {
    max-width: 880px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--lp-gap-4);
}

/* Minimal: narrow */
.lp-hero-narrow {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--lp-gap-4);
}

.lp-hero-minimal {
    padding-top: clamp(7rem, 14vw, 12rem);
    padding-bottom: clamp(5rem, 10vw, 8rem);
}

.lp-hero-copy {
    display: flex;
    flex-direction: column;
    gap: var(--lp-gap-4);
}

/* Brand mark above the hero title — Fraunces "ylips" wordmark + gold dot
   (inline SVG in the templates, same treatment as the main site header) */
.lp-hero-brand {
    display: inline-flex;
    align-items: center;
    color: var(--lp-ink);
    margin: 0 0 var(--lp-gap-2);
    line-height: 1;
}

.lp-body a.lp-hero-brand:hover { color: var(--lp-ink); }

.lp-hero-brand:focus-visible {
    outline: 2px solid var(--lp-primary);
    outline-offset: 3px;
    border-radius: 2px;
}

.lp-hero-brand svg { display: block; height: 32px; width: auto; }

.lp-hero-stack .lp-hero-brand,
.lp-hero-narrow .lp-hero-brand,
.lp-hero-centered .lp-hero-copy .lp-hero-brand {
    margin-left: auto;
    margin-right: auto;
}

.lp-hero-title {
    font-family: var(--lp-font-display);
    font-size: var(--lp-t-display);
    font-weight: 700;
    color: var(--lp-ink);
    letter-spacing: -0.045em;
    line-height: var(--lp-leading-display);
    font-variation-settings: var(--lp-fraunces-display);
    text-wrap: balance;
    margin: 0;
}

/* Signature: the gold thread under the promise (1st of max 2 per page) */
.lp-hero-title::after {
    content: "";
    display: block;
    width: clamp(120px, 14vw, 170px);
    height: 13px;
    margin-top: clamp(0.9rem, 1.4vw, 1.3rem);
    background: url('../img/marketing/thread-gold.svg') no-repeat left center / contain;
}

/* Centered hero variants centre the thread too */
.lp-hero-centered .lp-hero-title::after,
.lp-hero-stack .lp-hero-title::after,
.lp-hero-narrow .lp-hero-title::after {
    margin-left: auto;
    margin-right: auto;
    background-position: center;
}

/* Editorial variant: italic Fraunces — softer axis, display optical size */
.lp-hero-title-editorial {
    font-style: italic;
    font-weight: 500;
    font-variation-settings: 'opsz' 144, 'SOFT' 60, 'WONK' 1;
}

.lp-hero-title-display {
    font-size: var(--lp-t-display);
    font-weight: 700;
    letter-spacing: -0.045em;
}

.lp-hero-subtitle {
    font-size: var(--lp-t-lead);
    color: var(--lp-ink-3);
    line-height: 1.5;
    max-width: 38ch;
    margin: 0;
    text-wrap: pretty;
}

.lp-hero-trust {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.875rem;
}

.lp-hero-free {
    font-size: var(--lp-t-meta);
    font-weight: 600;
    color: var(--lp-ink-2);
    white-space: nowrap;
}

.lp-hero-trust-text {
    font-size: var(--lp-t-meta);
    color: var(--lp-ink-4);
    padding-left: 0.875rem;
    border-left: 2px solid var(--lp-gold);
    max-width: 42ch;
}

.lp-hero-centered .lp-hero-subtitle,
.lp-hero-stack .lp-hero-subtitle,
.lp-hero-narrow .lp-hero-subtitle {
    margin-inline: auto;
}

.lp-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--lp-gap-2);
    margin-top: var(--lp-gap-1);
}

.lp-hero-centered .lp-hero-actions,
.lp-hero-stack .lp-hero-actions,
.lp-hero-narrow .lp-hero-actions { justify-content: center; }

.lp-hero-visual {
    position: relative;
}

/* Split hero: the salon-mirror arch rises behind the image frame */
.lp-hero-split .lp-hero-visual {
    padding: clamp(2.25rem, 3.5vw, 3rem) clamp(1.75rem, 3vw, 2.75rem) 0 0;
}

.lp-hero-split .lp-hero-visual::before {
    content: "";
    position: absolute;
    right: -1.5%;
    bottom: -9%;
    width: min(520px, 96%);
    height: 112%;
    background: url('../img/marketing/arch-duo.svg') no-repeat right bottom / contain;
    pointer-events: none;
}

.lp-hero-visual-below {
    margin-top: clamp(3rem, 6vw, 5rem);
}

.lp-hero-visual-frame {
    position: relative;
    background: transparent;
    border: none;
    box-shadow: none;
    overflow: visible;
}

.lp-hero-visual-frame img {
    width: 100%;
    height: auto;
    max-width: 560px;
    max-height: min(78vh, 760px);
    display: block;
    margin-inline: auto;
    object-fit: contain;
}

.lp-hero-visual-below .lp-hero-visual-frame img {
    max-width: min(640px, 100%);
    max-height: 480px;
    margin-inline: auto;
}

/* ===========================================================================
   Sections — shared rhythm
   ========================================================================= */

.lp-section {
    position: relative;
    padding: var(--lp-section-y) 0;
    background: var(--lp-surface);
}

/* Hairline divider between consecutive content sections */
.lp-section + .lp-section {
    border-top: 1px solid var(--lp-line);
}

/* First content section under the hero gets a hairline too for structural cue */
.lp-hero + .lp-section {
    border-top: 1px solid var(--lp-line);
}

/* Section header: numbered kicker + title */
.lp-section-header {
    display: flex;
    flex-direction: column;
    gap: var(--lp-gap-3);
    margin-bottom: var(--lp-gap-6);
    max-width: var(--lp-measure);
}

/* Section numeral — Fraunces italic, primary, hairline tail
   (same numeral language as the homepage step numbers) */
.lp-section-kicker {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: var(--lp-font-serif);
    font-style: italic;
    font-weight: 500;
    font-variation-settings: var(--lp-fraunces-soft);
    font-size: 1.75rem;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--lp-primary);
}

.lp-section-kicker::after {
    content: "";
    width: 1.75rem;
    height: 1px;
    background: var(--lp-line-strong);
}

.lp-section-title {
    font-family: var(--lp-font-display);
    font-size: var(--lp-t-h2);
    font-weight: 600;
    line-height: var(--lp-leading-heading);
    letter-spacing: var(--lp-track-tighter);
    color: var(--lp-ink);
    margin: 0;
    text-wrap: balance;
    font-variation-settings: var(--lp-fraunces-display);
}

/* Prose block (Text section + ImageText right column) */
.lp-prose { max-width: var(--lp-measure); }

.lp-section-text-content {
    font-size: var(--lp-t-body);
    line-height: var(--lp-leading-body);
    color: var(--lp-ink-3);
}

.lp-section-text-content p + p { margin-top: 1em; }
.lp-section-text-content ul { padding-left: 1.25rem; margin: 0 0 1em; }
.lp-section-text-content ul li::marker { color: var(--lp-primary); }
.lp-section-text-content li + li { margin-top: 0.45em; }

/* Ordered lists: Fraunces italic numerals, same language as section markers */
.lp-section-text-content ol {
    list-style: none;
    counter-reset: lp-ol;
    padding-left: 0;
    margin: 0 0 1em;
}

.lp-section-text-content ol > li {
    counter-increment: lp-ol;
    position: relative;
    padding-left: 2.5rem;
}

.lp-section-text-content ol > li::before {
    content: counter(lp-ol);
    position: absolute;
    left: 0;
    top: 0.05em;
    font-family: var(--lp-font-serif);
    font-style: italic;
    font-weight: 500;
    font-variation-settings: var(--lp-fraunces-soft);
    font-size: 1.375rem;
    line-height: 1.1;
    color: var(--lp-primary);
}

.lp-section-text-content a {
    color: var(--lp-ink);
    font-weight: 500;
    background-image: linear-gradient(currentColor, currentColor);
    background-size: 100% 1px;
    background-repeat: no-repeat;
    background-position: 0 100%;
    transition: color 180ms var(--lp-ease);
}
.lp-section-text-content a:hover { color: var(--lp-primary); }

.lp-section-text-content h3 {
    font-size: var(--lp-t-h3);
    font-weight: 600;
    color: var(--lp-ink);
    margin: 1.6em 0 0.5em;
    letter-spacing: var(--lp-track-tight);
    text-wrap: balance;
}

.lp-section-text-content h3:first-child { margin-top: 0; }

/* Blockquote — the "so-what" beat: ruled-off editorial pull-quote */
.lp-section-text-content blockquote {
    font-family: var(--lp-font-serif);
    font-style: italic;
    font-weight: 500;
    font-variation-settings: 'opsz' 144, 'SOFT' 60, 'WONK' 1;
    font-size: clamp(1.5rem, 1.2vw + 1.1rem, 2rem);
    line-height: 1.3;
    letter-spacing: -0.015em;
    color: var(--lp-ink);
    border: 0;
    border-top: 1px solid var(--lp-line);
    border-bottom: 1px solid var(--lp-line);
    padding: 1.1em 0;
    margin: 1.6em 0;
    text-wrap: balance;
}

.lp-section-text-content blockquote:last-child { margin-bottom: 0; }
.lp-section-text-content blockquote p { margin: 0; }

/* Text section alignment */
.lp-section-text.lp-align-center .lp-prose,
.lp-section-text.lp-align-center .lp-section-header { margin-left: auto; margin-right: auto; }
.lp-section-text.lp-align-center .lp-section-header { align-items: center; text-align: center; }
.lp-section-text.lp-align-center .lp-section-kicker::after { display: none; }
.lp-section-text.lp-align-end   .lp-prose { margin-left: auto; }

/* ===========================================================================
   Image + Text
   ========================================================================= */

.lp-section-image-text .lp-image-text-grid {
    --bs-gutter-x: clamp(2rem, 4vw, 4.5rem);
    --bs-gutter-y: 2.5rem;
}

/* Image sits in a salon-mirror arch frame — the brand's arch motif */
.lp-image-text-frame {
    position: relative;
    border-radius: 50% 50% var(--lp-radius-lg) var(--lp-radius-lg)
                   / 26% 26% var(--lp-radius-lg) var(--lp-radius-lg);
    overflow: hidden;
    border: 1px solid var(--lp-line);
    background: var(--lp-surface-tint);
}

.lp-section-image {
    width: 100%;
    display: block;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.lp-image-text-copy {
    display: flex;
    flex-direction: column;
    gap: var(--lp-gap-4);
}

.lp-image-text-copy .lp-section-header { margin-bottom: 0; }
.lp-image-text-copy .lp-section-text-content { max-width: none; }

/* ===========================================================================
   Features
   ========================================================================= */

.lp-section-features .lp-features-grid {
    --bs-gutter-x: 0;
    --bs-gutter-y: 0;
    border-top: 1px solid var(--lp-line);
    border-left: 1px solid var(--lp-line);
    border-radius: var(--lp-radius);
    overflow: hidden;
    background: var(--lp-surface);
}

.lp-section-features .lp-features-grid > [class*="col-"] {
    padding: 0;
    border-right: 1px solid var(--lp-line);
    border-bottom: 1px solid var(--lp-line);
    display: flex;
}

.lp-feature-card {
    position: relative;
    width: 100%;
    padding: clamp(1.75rem, 2vw + 1rem, 2.5rem);
    background: var(--lp-surface);
    display: flex;
    flex-direction: column;
    gap: var(--lp-gap-3);
    transition: background-color 240ms var(--lp-ease);
    overflow: hidden;
}

.lp-feature-card::before {
    content: "";
    position: absolute;
    left: 0; top: 0;
    width: 100%;
    height: 2px;
    background: var(--lp-primary);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 320ms var(--lp-ease);
}

.lp-feature-card:hover {
    background: var(--lp-surface-tint);
}

.lp-feature-card:hover::before { transform: scaleX(1); }

.lp-feature-mark {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: var(--lp-gap-1);
}

/* Arch icon frame — the salon-mirror shape (see DESIGN_MARKETING.md §4) */
.lp-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3.5rem;
    border-radius: var(--lp-radius-arch);
    background: var(--lp-primary-soft);
    color: var(--lp-primary);
    font-size: 1.25rem;
}

.lp-feature-index {
    font-family: var(--lp-font-serif);
    font-style: italic;
    font-size: 2rem;
    font-weight: 400;
    line-height: 1;
    color: var(--lp-primary);
    letter-spacing: -0.02em;
}

.lp-feature-title {
    font-family: var(--lp-font-display);
    font-size: var(--lp-t-h3);
    font-weight: 600;
    letter-spacing: var(--lp-track-tight);
    color: var(--lp-ink);
    margin: 0;
    font-variation-settings: var(--lp-fraunces-soft);
}

.lp-feature-text {
    font-size: var(--lp-t-small);
    line-height: 1.55;
    color: var(--lp-ink-3);
    margin: 0;
}

/* ===========================================================================
   Testimonials
   ========================================================================= */

.lp-section-testimonials .lp-section-header { max-width: var(--lp-measure); }

/* Spotlight: single large editorial quote */
.lp-testimonial-spotlight {
    max-width: 880px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--lp-gap-5);
    padding: clamp(1rem, 4vw, 2rem) 0;
}

.lp-testimonials-spotlight .lp-section-header {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    align-items: center;
}

.lp-testimonials-spotlight .lp-section-kicker { justify-content: center; }
.lp-testimonials-spotlight .lp-section-kicker::after { display: none; }

.lp-testimonial-mark {
    font-family: var(--lp-font-serif);
    font-style: italic;
    font-size: clamp(4rem, 8vw, 7rem);
    line-height: 0.8;
    color: var(--lp-primary);
    display: block;
}

.lp-testimonial-spotlight-text {
    font-family: var(--lp-font-serif);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(1.75rem, 2.5vw + 1rem, 2.875rem);
    line-height: 1.2;
    color: var(--lp-ink);
    letter-spacing: -0.01em;
    margin: 0;
    max-width: 22ch;
    text-wrap: balance;
}

/* Grid cards (2+ testimonials) */
.lp-testimonials-row {
    --bs-gutter-x: 1.25rem;
    --bs-gutter-y: 1.25rem;
}

.lp-testimonial-card {
    height: 100%;
    padding: clamp(1.75rem, 2vw + 1rem, 2.25rem);
    background: var(--lp-surface);
    border: 1px solid var(--lp-line);
    border-radius: var(--lp-radius);
    display: flex;
    flex-direction: column;
    gap: var(--lp-gap-4);
    transition: border-color 200ms var(--lp-ease),
                transform 200ms var(--lp-ease);
    margin: 0;
}

.lp-testimonial-card:hover {
    border-color: var(--lp-line-strong);
    transform: translateY(-2px);
}

.lp-testimonial-card .lp-testimonial-mark {
    font-size: 2.75rem;
    line-height: 0.6;
    margin-bottom: 0;
}

.lp-testimonial-text {
    font-family: var(--lp-font-sans);
    font-weight: 500;
    font-size: 1.0625rem;
    line-height: 1.5;
    color: var(--lp-ink);
    letter-spacing: var(--lp-track-tight);
    margin: 0;
    flex: 1 1 auto;
    text-wrap: pretty;
}

.lp-testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    padding-top: var(--lp-gap-3);
    border-top: 1px solid var(--lp-line);
}

.lp-testimonial-spotlight .lp-testimonial-author {
    border: none;
    padding: 0;
    align-items: center;
}

.lp-testimonial-name {
    font-size: var(--lp-t-small);
    font-weight: 600;
    color: var(--lp-ink);
}

.lp-testimonial-role {
    font-size: var(--lp-t-meta);
    color: var(--lp-ink-4);
}

/* ===========================================================================
   Monogram Avatar — styled placeholder when no face image exists
   ========================================================================= */

.lp-avatar {
    --lp-av-from: var(--lp-primary);
    --lp-av-to:   var(--lp-primary-hover);
    --lp-av-size: 2.75rem;
    position: relative;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width:  var(--lp-av-size);
    height: var(--lp-av-size);
    border-radius: 32%;                        /* soft squircle, not a circle */
    background-image:
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.32), transparent 55%),
        linear-gradient(135deg, var(--lp-av-from) 0%, var(--lp-av-to) 100%);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.18),
        inset 0 -6px 14px -6px rgba(0, 0, 0, 0.22),
        0 1px 2px rgba(10, 10, 18, 0.08),
        0 10px 22px -12px rgba(10, 10, 18, 0.22);
    overflow: hidden;
    isolation: isolate;
}

.lp-avatar::after {
    /* faint grain so the gradient doesn't look plasticky */
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.08) 1px, transparent 1.4px);
    background-size: 6px 6px;
    opacity: 0.55;
    pointer-events: none;
    mix-blend-mode: overlay;
}

.lp-avatar-letter {
    font-family: var(--lp-font-serif);
    font-style: italic;
    font-weight: 500;
    font-size: calc(var(--lp-av-size) * 0.55);
    line-height: 1;
    color: #fff;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    transform: translateY(-1px);               /* optical centering for italic */
    font-variation-settings: 'opsz' 72, 'SOFT' 100, 'WONK' 1;
    user-select: none;
}

.lp-avatar-lg  { --lp-av-size: 4rem; }
.lp-avatar-sm  { --lp-av-size: 2.25rem; }

/* Author rows that include an avatar become horizontal */
.lp-testimonial-card .lp-testimonial-author:has(.lp-avatar) {
    flex-direction: row;
    align-items: center;
    gap: 0.875rem;
}

/* Fallback for browsers without :has() — add a class from PHP when avatar present */
.lp-testimonial-card .lp-testimonial-author.has-avatar {
    flex-direction: row;
    align-items: center;
    gap: 0.875rem;
}

.lp-testimonial-card .lp-testimonial-author.has-avatar .lp-testimonial-meta {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.lp-testimonial-spotlight .lp-testimonial-author {
    align-items: center;
    gap: var(--lp-gap-2);
}

.lp-testimonial-spotlight .lp-avatar {
    margin-bottom: 0.25rem;
}

/* ===========================================================================
   CTA — dark-inverse card (the deliberate contrast anchor)
   ========================================================================= */

.lp-section-cta {
    padding: var(--lp-section-y-tight) 0;
}

.lp-section-cta + .lp-section,
.lp-section + .lp-section-cta { border-top: none; }

.lp-cta-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--lp-radius-xl);
    background: var(--lp-surface-inverse);
    color: var(--lp-on-inverse);
    padding: clamp(3rem, 6vw, 5.5rem) clamp(1.5rem, 4vw, 4rem);
    isolation: isolate;
}

.lp-cta-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 85% 15%, var(--lp-primary-ring), transparent 45%),
        radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.06) 1px, transparent 1.5px);
    background-size: auto, 28px 28px;
}

.lp-cta-inner {
    position: relative;
    z-index: 1;
    max-width: var(--lp-container-narrow);
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--lp-gap-4);
}

.lp-body .lp-cta-title,
h2.lp-cta-title {
    font-family: var(--lp-font-display);
    font-size: clamp(1.9rem, 2.6vw + 1rem, 3.25rem);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: var(--lp-track-tighter);
    color: #fff;
    margin: 0;
    text-wrap: balance;
    max-width: 24ch;
    font-variation-settings: var(--lp-fraunces-display);
}

/* Thread reprise — second and last gold moment on the page */
.lp-body .lp-cta-title::after,
h2.lp-cta-title::after {
    content: "";
    display: block;
    width: 130px;
    height: 12px;
    margin: 1rem auto 0;
    background: url('../img/marketing/thread-gold.svg') no-repeat center / contain;
}

.lp-cta-text {
    font-size: var(--lp-t-lead);
    color: var(--lp-on-inverse-2);
    line-height: 1.5;
    max-width: 52ch;
    margin: 0;
    text-wrap: pretty;
}

.lp-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--lp-gap-2);
    justify-content: center;
    margin-top: var(--lp-gap-1);
}

/* ===========================================================================
   Footer
   ========================================================================= */

.lp-footer {
    padding: 2rem 0;
    background: var(--lp-surface-tint);
    border-top: 1px solid var(--lp-line);
}

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

.lp-footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

/* Fraunces lowercase wordmark + gold dot — same as the main site footer */
.lp-footer-logo {
    font-family: var(--lp-font-display);
    font-variation-settings: var(--lp-fraunces-soft);
    font-weight: 600;
    font-size: 1.375rem;
    letter-spacing: -0.01em;
    text-transform: lowercase;
    color: var(--lp-ink);
    line-height: 1;
}

.lp-footer-logo::after {
    content: "";
    display: inline-block;
    width: 0.375rem;
    height: 0.375rem;
    margin-left: 0.2rem;
    border-radius: 50%;
    background: var(--lp-gold);
}

.lp-body .lp-footer-logo:hover { color: var(--lp-ink); }

.lp-footer-copyright {
    font-size: var(--lp-t-meta);
    color: var(--lp-ink-4);
}

/* ===========================================================================
   Responsive
   ========================================================================= */

@media (max-width: 991.98px) {
    .lp-hero-split .lp-hero-grid {
        grid-template-columns: 1fr;
        gap: clamp(2rem, 5vw, 3rem);
    }

    .lp-hero-split .lp-hero-visual {
        order: 2;
    }

    /* Stacked split hero reads centered, like the homepage hero on mobile */
    .lp-hero-split .lp-hero-copy {
        text-align: center;
        align-items: center;
    }

    .lp-hero-split .lp-hero-title::after {
        margin-left: auto;
        margin-right: auto;
        background-position: center;
    }

    .lp-hero-split .lp-hero-subtitle { margin-inline: auto; }
    .lp-hero-split .lp-hero-actions { justify-content: center; }
    .lp-hero-split .lp-hero-trust { justify-content: center; }
    .lp-hero-split .lp-hero-trust-text { text-align: left; }
}

@media (max-width: 767.98px) {
    :root {
        --lp-section-y: clamp(3.5rem, 10vw, 5rem);
    }

    .lp-hero {
        padding-top: clamp(4.5rem, 14vw, 6.5rem);
        padding-bottom: clamp(3.5rem, 10vw, 5rem);
    }

    .lp-hero-minimal {
        padding-top: clamp(5rem, 16vw, 8rem);
        padding-bottom: clamp(4rem, 12vw, 6rem);
    }

    .lp-section-header { margin-bottom: var(--lp-gap-5); }

    .lp-section-features .lp-features-grid {
        border-radius: var(--lp-radius-sm);
    }

    .lp-testimonial-card { padding: 1.5rem 1.25rem; }

    .lp-cta-card {
        padding: 2.5rem 1.25rem;
        border-radius: var(--lp-radius-lg);
    }

    .lp-footer-content {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lp-body *,
    .lp-body *::before,
    .lp-body *::after {
        transition-duration: 1ms !important;
        animation-duration: 1ms !important;
    }
    .lp-btn:hover,
    .lp-testimonial-card:hover { transform: none; }
}
