/* =============================================================
   TheraLink — Public Homepage
   public/css/public-home.css

   Loads after:
     fonts/filament/filament/inter/index.css
     css/filament/public/home.css  (nav / footer / .tl-btn / --tl-* / --marketing-*)

   Covers (homepage-only scope):
     • Homepage layout tokens (non-color: radii, shadows, layout)
     • Hero — editorial warm-surface, thread motif, restrained CTA
     • Thread divider — reusable motif between sections
     • Content sections: problem→solution, testimonials, final CTA
     • Plan cards — billing-period toggle DOM contract PRESERVED exactly:
         #tl-public-plans, #tl-plans-payload
         [data-billing-months], [data-plan-id]
         [data-pricing-root], [data-discount-root]
         .tl-public-plans__* class names unchanged
     • Scroll-reveal progressive enhancement
     • Responsive breakpoints
   ============================================================= */

/* =====================================================
   1. HOMEPAGE LAYOUT TOKENS
      Color tokens live in home.css :root (--marketing-*).
      These are geometry / spacing / shadow tokens scoped to
      the homepage layout only.
   ===================================================== */
:root {
    --hp-content-max:    72rem;
    --hp-content-pad:    clamp(1.25rem, 5vw, 4rem);
    --hp-section-gap:    3.5rem;

    --hp-radius-sm:      0.5rem;
    --hp-radius:         1rem;
    --hp-radius-lg:      1.5rem;
    --hp-radius-xl:      2rem;
    --hp-radius-pill:    9999px;

    /* Hero connector — thin light blue per mockup */
    --tl-hero-connector-blue: #60A5FA;

    --hp-shadow-xs: 0 1px 2px rgba(0,0,0,.05);
    --hp-shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
    --hp-shadow:    0 4px 6px -1px rgba(0,0,0,.08), 0 2px 4px -2px rgba(0,0,0,.06);
    --hp-shadow-md: 0 10px 15px -3px rgba(0,0,0,.08), 0 4px 6px -4px rgba(0,0,0,.06);
    --hp-shadow-lg: 0 20px 25px -5px rgba(0,0,0,.08), 0 8px 10px -6px rgba(0,0,0,.04);
}

/* =====================================================
   2. SVG SPRITE HELPER
   ===================================================== */
.tl-icon-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    pointer-events: none;
}

.tl-icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    vertical-align: middle;
}

/* =====================================================
   3. SHARED CONTENT PRIMITIVES
   ===================================================== */

/* Kicker label */
.tl-kicker {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--tl-blue);
}

/* Main content wrapper */
.tl-ph-main {
    overflow-x: hidden;
}

/* Section scaffold */
.tl-section {
    padding-block: var(--hp-section-gap);
    padding-inline: var(--hp-content-pad);
}

.tl-section__heading {
    max-width: 42rem;
    margin-inline: auto;
    text-align: center;
    margin-bottom: 2rem;
}

.tl-section__heading .tl-kicker {
    display: block;
    margin-bottom: 0.75rem;
}

.tl-section__heading h2 {
    margin: 0;
    font-family: var(--tl-font);
    font-size: clamp(1.625rem, 3.5vw, 2.25rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.025em;
    color: var(--tl-blue);
}

.tl-section__lead {
    margin: 0.875rem auto 0;
    max-width: 44rem;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--marketing-muted, #94A3B8);
}

/*
 * Section rhythm: tinted surfaces for features/testimonials, white for bridge/plans.
 * Cards stay cream/white; only the section canvas changes.
 */
.tl-section--bridge {
    background: var(--tl-surface);
}

.tl-section--features {
    background: color-mix(in srgb, var(--tl-surface, #fff) 92%, var(--tl-blue) 8%);
}

.tl-section--trust {
    background: var(--tl-section-tint-blue);
}

.tl-section--plans {
    background: var(--tl-surface);
}

.tl-section--getting-started {
    background: var(--tl-section-tint-green);
}

.tl-section--cta {
    background: var(--tl-surface);
}

/* =====================================================
   4. SCROLL-REVEAL  (progressive enhancement)
      JS adds .js-reveal to <html>, then .tl-reveal--in
      or .is-revealed when elements enter the viewport.
   ===================================================== */
.js-reveal .tl-reveal {
    opacity: 0;
    transform: translateY(1.125rem);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.js-reveal .tl-reveal--in {
    opacity: 1;
    transform: none;
}

.js-reveal .tl-reveal.tl-reveal--stagger-2 { transition-delay: 0.1s; }
.js-reveal .tl-reveal.tl-reveal--stagger-3 { transition-delay: 0.2s; }

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

/* =====================================================
   4b. DATA-REVEAL — scroll-triggered stagger
       CSS gates on .js-ready (set synchronously by the
       inline <script> in <head>). JS adds .is-revealed
       via IntersectionObserver. The inline <script> also
       registers a 2 s timeout fallback.
       No-JS path: .js-ready never set → elements visible.
   ===================================================== */
@media (prefers-reduced-motion: no-preference) {
    .js-ready [data-reveal] {
        opacity: 0;
        transform: translateY(1rem);
        transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    }

    .js-ready [data-reveal].is-revealed {
        opacity: 1;
        transform: none;
    }

    .tl-public-plans__grid > [data-reveal]:nth-child(2) { transition-delay: 0.10s; }
    .tl-public-plans__grid > [data-reveal]:nth-child(3) { transition-delay: 0.20s; }
    .tl-public-plans__grid > [data-reveal]:nth-child(4) { transition-delay: 0.30s; }
    .tl-public-plans__grid > [data-reveal]:nth-child(n+5) { transition-delay: 0.40s; }

    .tl-start-step:nth-child(2) { transition-delay: 0.10s; }
    .tl-start-step:nth-child(3) { transition-delay: 0.20s; }
}

/* =====================================================
   5. HERO — Full-bleed photo with overlaid copy + cards
   ===================================================== */

.tl-ph-hero {
    position: relative;
    isolation: isolate;
    min-height: clamp(620px, 52vw, 720px);
    padding-top: calc(var(--tl-nav-clearance) + 2rem);
    padding-bottom: 2.5rem;
    padding-inline: 0;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: #FAFBFD;
}

/* Hero loading gate — keep copy/cards/connectors off-screen until .hero-ready. */
.js-ready .tl-ph-hero.hero-loading:not(.hero-ready) .tl-ph-hero__loader {
    display: flex;
}

.tl-ph-hero__loader {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(250, 251, 253, 0.94);
    pointer-events: none;
}

.js-ready .tl-ph-hero.hero-loading .tl-ph-hero__inner,
.js-ready .tl-ph-hero:not(.hero-ready) .tl-ph-hero__inner {
    visibility: hidden;
}

.js-ready .tl-ph-hero.hero-loading .tl-ph-hero__media,
.js-ready .tl-ph-hero:not(.hero-ready) .tl-ph-hero__media {
    opacity: 0;
    visibility: hidden;
}

.js-ready .tl-ph-hero.hero-loading .tl-ph-hero__scene,
.js-ready .tl-ph-hero:not(.hero-ready) .tl-ph-hero__scene {
    visibility: hidden;
    pointer-events: none;
}

.tl-ph-hero__media {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.tl-ph-hero__bg {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 72% center;
}

.tl-ph-hero__inner {
    position: relative;
    z-index: 1;
    max-width: min(97.5rem, 100vw);
    width: 100%;
    margin-inline: auto;
    padding-inline: var(--hp-content-pad);
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.35fr);
    gap: clamp(1rem, 2.5vw, 2.5rem);
    align-items: center;
    min-height: clamp(520px, 38vw, 600px);
}

/* --- Copy overlay (left side) --- */
.tl-ph-hero__copy {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    max-width: min(32rem, 100%);
    overflow-wrap: break-word;
}

.tl-ph-hero__eyebrow {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin: 0 0 1.35rem;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: break-word;
    font-family: var(--tl-font);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    line-height: 1.55;
}

.tl-ph-hero__eyebrow-line {
    color: var(--tl-green);
}

.tl-ph-hero__eyebrow-line--accent {
    color: var(--marketing-ink);
}

.tl-ph-hero__heading {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
    margin: 0 0 1.25rem;
    min-width: 0;
    font-family: var(--tl-font);
    font-size: clamp(1.75rem, 3.1vw, 2.625rem);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -0.02em;
    width: 100%;
    max-width: min(650px, 100%);
    overflow-wrap: break-word;
    text-wrap: balance;
}

.tl-ph-hero__heading-line {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: break-word;
    color: var(--marketing-ink);
}

.tl-ph-hero__heading-line--accent {
    color: var(--tl-green-dark);
}

.tl-ph-hero__support {
    margin: 0 0 2rem;
    min-width: 0;
    max-width: min(48ch, 100%);
    overflow-wrap: break-word;
    font-family: var(--tl-font);
    font-size: clamp(0.875rem, 1.4vw, 1rem);
    line-height: 1.65;
    color: color-mix(in srgb, var(--marketing-ink) 68%, var(--tl-text-secondary));
}

.tl-ph-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.875rem;
    margin-bottom: 2rem;
}

.tl-ph-hero__cta {
    min-height: 50px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
}

.tl-ph-hero__cta--primary {
    color: #FFFFFF;
    background: var(--tl-green);
    border: 1px solid var(--tl-green);
    box-shadow:
        0 10px 24px rgba(76, 175, 147, 0.28),
        0 2px 6px rgba(31, 42, 55, 0.06);
}

.tl-ph-hero__cta--primary:hover {
    background: var(--tl-green-dark);
    border-color: var(--tl-green-dark);
    transform: translateY(-1px);
    box-shadow:
        0 14px 28px rgba(76, 175, 147, 0.32),
        0 3px 8px rgba(31, 42, 55, 0.08);
}

.tl-ph-hero__cta--primary .tl-btn__arrow {
    display: inline-block;
    transition: transform 0.28s ease;
}

.tl-ph-hero__cta--primary:hover .tl-btn__arrow {
    transform: translateX(3px);
}

.tl-ph-hero__cta--ghost {
    color: var(--marketing-ink);
    background: rgba(255, 255, 255, 0.72);
    border: 1.5px solid color-mix(in srgb, var(--tl-green) 42%, transparent);
    box-shadow: 0 2px 8px rgba(31, 42, 55, 0.04);
}

.tl-ph-hero__cta--ghost:hover {
    background: #FFFFFF;
    border-color: var(--tl-green);
    color: var(--tl-green-dark);
    transform: translateY(-1px);
}

/* -------------------------------------------------------
   Hero stagger reveal
   ------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
    .js-ready [data-hero-animate] {
        opacity: 0;
        transform: translateY(14px);
        transition: opacity 0.65s ease-out, transform 0.65s ease-out;
    }

    .js-ready .hero-ready [data-hero-animate] {
        opacity: 1;
        transform: none;
    }

    .js-ready .hero-ready .tl-ph-hero__eyebrow  { transition-delay: 0.05s; }
    .js-ready .hero-ready .tl-ph-hero__heading  { transition-delay: 0.18s; }
    .js-ready .hero-ready .tl-ph-hero__support  { transition-delay: 0.32s; }
    .js-ready .hero-ready .tl-ph-hero__actions  { transition-delay: 0.46s; }

    /* --- Visual scene entrance: background photo, connector lines, floating cards --- */
    .js-ready .tl-ph-hero__media {
        opacity: 0;
        transform: scale(1.015);
        transition: opacity 0.9s ease-out, transform 0.9s ease-out;
        transition-delay: 0.1s;
    }

    .js-ready .hero-ready .tl-ph-hero__media {
        opacity: 1;
        transform: none;
    }

    /*
     * Hero feature cards: stagger in while the single thread draws top → bottom.
     */
    :root {
        --hp-hero-chain-start: 0.5s;
        --hp-hero-card-dur: 0.4s;
        --hp-hero-walk-dur: 2.8s;
        --hp-hero-walk-start: calc(var(--hp-hero-chain-start) + var(--hp-hero-card-dur));
    }

    .js-ready .tl-ph-hero__thread-path {
        opacity: 0;
    }

    .js-ready .hero-chain-walking .tl-ph-hero__thread-path {
        opacity: 1;
    }

    .js-ready .tl-ph-hero__fcard {
        opacity: 0;
        translate: 0 12px;
        scale: 0.98;
        transition:
            opacity var(--hp-hero-card-dur) ease-out,
            translate var(--hp-hero-card-dur) ease-out,
            scale var(--hp-hero-card-dur) ease-out;
    }

    .js-ready .hero-ready .tl-ph-hero__fcard {
        opacity: 1;
        translate: 0 0;
        scale: 1;
    }

    .js-ready .hero-ready .tl-ph-hero__fcard--appointments {
        transition-delay: var(--hp-hero-chain-start);
    }

    .js-ready .hero-ready .tl-ph-hero__fcard--whatsapp {
        transition-delay: calc(var(--hp-hero-walk-start) + var(--hp-hero-walk-dur) * 0.25);
    }

    .js-ready .hero-ready .tl-ph-hero__fcard--session-notes {
        transition-delay: calc(var(--hp-hero-walk-start) + var(--hp-hero-walk-dur) * 0.5);
    }

    .js-ready .hero-ready .tl-ph-hero__fcard--patient-records {
        transition-delay: calc(var(--hp-hero-walk-start) + var(--hp-hero-walk-dur) * 0.75);
    }

    .js-ready .hero-ready .tl-ph-hero__fcard--progress {
        transition-delay: calc(var(--hp-hero-walk-start) + var(--hp-hero-walk-dur));
    }
}

/* --- Cards + connectors (right side overlay) --- */
.tl-ph-hero__scene {
    position: relative;
    z-index: 1;
    min-width: 0;
    min-height: clamp(480px, 32vw, 560px);
    overflow: visible;
}

.tl-ph-hero__visual {
    position: relative;
    isolation: isolate;
    width: 100%;
    height: 100%;
    min-height: inherit;
}

.tl-ph-hero__thread {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
}

.tl-ph-hero__thread-path {
    fill: none;
    stroke: var(--tl-hero-connector-blue);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tl-ph-hero__fcard {
    --tl-hero-fcard-width: clamp(10.75rem, 12.5vw, 12rem);
    --tl-hero-fcard-min-height: 4.875rem;

    z-index: 2;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    width: var(--tl-hero-fcard-width);
    min-height: var(--tl-hero-fcard-min-height);
    padding: 0.5625rem 0.6875rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow:
        0 10px 28px rgba(20, 50, 80, 0.08),
        0 2px 6px rgba(20, 50, 80, 0.04);
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    transition:
        opacity 0.4s ease-out,
        translate 0.4s ease-out,
        scale 0.4s ease-out,
        box-shadow 0.3s ease;
}

.tl-ph-hero__fcard:hover {
    translate: 0 -4px;
    scale: 1.015;
    box-shadow:
        0 20px 46px rgba(20, 50, 80, 0.14),
        0 4px 12px rgba(20, 50, 80, 0.07);
}

.tl-ph-hero__fcard-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 1.625rem;
    height: 1.625rem;
    border-radius: 0.4375rem;
}

.tl-ph-hero__brand-icon {
    display: block;
    width: 0.9375rem;
    height: 0.9375rem;
}

.tl-ph-hero__fcard--blue .tl-ph-hero__fcard-icon {
    color: var(--tl-blue);
    background: color-mix(in srgb, var(--tl-blue) 14%, #ffffff);
}

.tl-ph-hero__fcard--green .tl-ph-hero__fcard-icon {
    color: var(--tl-green);
    background: color-mix(in srgb, var(--tl-green) 16%, #ffffff);
}

.tl-ph-hero__fcard-body {
    min-width: 0;
}

.tl-ph-hero__fcard-title {
    margin: 0 0 0.15rem;
    font-family: var(--tl-font);
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--marketing-ink);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.tl-ph-hero__fcard-copy {
    margin: 0;
    font-size: 0.625rem;
    line-height: 1.4;
    color: var(--tl-text-secondary);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.tl-swap__tag {
    display: none;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 0.24rem 0.55rem;
    border-radius: 999px;
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    line-height: 1;
    text-transform: uppercase;
}

.tl-swap__tag--from {
    color: var(--tl-swap-from);
    background: rgba(220, 38, 38, 0.08);
}

.tl-swap__tag--to {
    color: var(--tl-swap-to);
    background: rgba(76, 175, 147, 0.14);
}

/* Desktop-only floating layout — stacked flow below 961px (see §13). */
@media (min-width: 961px) {
    .tl-ph-hero__fcard {
        position: absolute;
    }

    /*
     * Staggered S-curve — each card edge meets one visible thread junction.
     * Float starts after entrance + walk so transform animation does not fight
     * the translate/scale reveal.
     */
    .tl-ph-hero__fcard--appointments {
        top: 2%;
        right: 2%;
    }

    .tl-ph-hero__fcard--whatsapp {
        top: 18%;
        right: 34%;
        border-color: rgba(76, 175, 147, 0.22);
    }

    .tl-ph-hero__fcard--session-notes {
        top: 36%;
        right: 3%;
    }

    .tl-ph-hero__fcard--patient-records {
        top: 55%;
        right: 30%;
    }

    .tl-ph-hero__fcard--progress {
        top: 78%;
        right: 2%;
    }

    .js-ready .hero-ready .tl-ph-hero__fcard--appointments {
        animation: tl-hero-float-appointments 6s ease-in-out infinite;
        animation-delay: calc(var(--hp-hero-chain-start) + var(--hp-hero-card-dur) + 0.15s);
    }

    .js-ready .hero-ready .tl-ph-hero__fcard--whatsapp {
        animation: tl-hero-float-whatsapp 6.8s ease-in-out infinite;
        animation-delay: calc(var(--hp-hero-walk-start) + var(--hp-hero-walk-dur) * 0.25 + var(--hp-hero-card-dur) + 0.15s);
    }

    .js-ready .hero-ready .tl-ph-hero__fcard--session-notes {
        animation: tl-hero-float-session-notes 7.5s ease-in-out infinite;
        animation-delay: calc(var(--hp-hero-walk-start) + var(--hp-hero-walk-dur) * 0.5 + var(--hp-hero-card-dur) + 0.15s);
    }

    .js-ready .hero-ready .tl-ph-hero__fcard--patient-records {
        animation: tl-hero-float-patient-records 8s ease-in-out infinite;
        animation-delay: calc(var(--hp-hero-walk-start) + var(--hp-hero-walk-dur) * 0.75 + var(--hp-hero-card-dur) + 0.15s);
    }

    .js-ready .hero-ready .tl-ph-hero__fcard--progress {
        animation: tl-hero-float-progress 7s ease-in-out infinite;
        animation-delay: calc(var(--hp-hero-walk-start) + var(--hp-hero-walk-dur) + var(--hp-hero-card-dur) + 0.15s);
    }
}

@keyframes tl-hero-float-appointments {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-7px); }
}

@keyframes tl-hero-float-session-notes {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-7px); }
}

@keyframes tl-hero-float-whatsapp {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-7px); }
}

@keyframes tl-hero-float-patient-records {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-7px); }
}

@keyframes tl-hero-float-progress {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-7px); }
}

@media (prefers-reduced-motion: reduce) {
    .tl-ph-hero__fcard {
        animation: none !important;
    }

    .js-ready .tl-ph-hero__thread-path {
        opacity: 1;
        stroke-dasharray: none;
        stroke-dashoffset: 0;
        transition: none;
    }
}

/* =====================================================
   5b. THREAD DIVIDER — reusable section separator
       Replaces plain <hr> between sections. Two endpoint
       dots (accent + accent-soft) connected by a thin
       gradient line — the brand thread motif in miniature.
   ===================================================== */
/* .tl-thread-divider lives in home.css (shared short filament). */

/* =====================================================
   6. PROBLEM → SOLUTION (paired swap rows)
   ===================================================== */
.tl-swap {
    --tl-swap-from: #B91C1C;
    --tl-swap-to: #2F8F78;
    max-width: min(58rem, var(--hp-content-max));
    margin-inline: auto;
}

.tl-swap__legend {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 2.5rem minmax(0, 1fr);
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-inline: 0.25rem;
}

.tl-swap__legend-from,
.tl-swap__legend-to {
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.tl-swap__legend-from {
    color: color-mix(in srgb, var(--tl-swap-from) 72%, #64748B);
}

.tl-swap__legend-to {
    color: var(--tl-green);
}

.tl-swap__legend-gap {
    display: block;
}

.tl-swap__list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.tl-swap__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 2.5rem minmax(0, 1fr);
    gap: 0.75rem;
    align-items: center;
    padding: 1.05rem 0.25rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.tl-swap__from,
.tl-swap__to {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    min-width: 0;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.45;
}

.tl-swap__from {
    color: color-mix(in srgb, var(--marketing-ink, #0F172A) 78%, #64748B);
}

.tl-swap__to {
    color: var(--marketing-ink, #0F172A);
}

.tl-swap__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 2rem;
    height: 2rem;
    border-radius: 0.625rem;
}

.tl-swap__icon .tl-home-icon {
    width: 1.05rem;
    height: 1.05rem;
}

.tl-swap__icon--from {
    background: rgba(220, 38, 38, 0.08);
    color: var(--tl-swap-from);
}

.tl-swap__icon--to {
    background: rgba(76, 175, 147, 0.16);
    color: var(--tl-swap-to);
}

.tl-swap__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--tl-blue);
    opacity: 0.7;
}

.tl-swap__arrow .tl-home-icon {
    width: 1rem;
    height: 1rem;
}

@media (prefers-reduced-motion: no-preference) {
    .tl-swap__row {
        transition: background-color 0.18s ease;
    }

    .tl-swap__row:hover {
        background:
            linear-gradient(90deg, rgba(185, 28, 28, 0.03), transparent 42%),
            linear-gradient(270deg, rgba(76, 175, 147, 0.06), transparent 42%);
    }

    .tl-swap__row:hover .tl-swap__arrow {
        opacity: 1;
        transform: translateX(2px);
        transition: opacity 0.18s ease, transform 0.18s ease;
    }
}

/* =====================================================
   6b. KEY FEATURES — circular wheel spinner + preview
   ===================================================== */
.tl-feature-showcase {
    --tl-wheel-size: min(22rem, 86vw);
    --tl-wheel-radius: 7.35rem;
    --tl-feature-stage-width: min(100%, 28rem);
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: clamp(4.5rem, 10vw, 8rem);
    width: 100%;
    max-width: var(--hp-content-max);
    margin-inline: auto;
}

.tl-wheel {
    position: relative;
    flex: 0 0 auto;
    width: var(--tl-wheel-size);
}

.tl-wheel__viewport {
    position: relative;
    width: var(--tl-wheel-size);
    height: var(--tl-wheel-size);
    border-radius: 50%;
    touch-action: none;
    user-select: none;
}

.tl-wheel__disc {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 42%, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.72) 38%, transparent 39%),
        conic-gradient(from 0deg, rgba(32, 127, 191, 0.14), rgba(76, 175, 147, 0.18), rgba(32, 127, 191, 0.14));
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 22px 48px rgba(10, 31, 46, 0.14),
        inset 0 0 0 10px rgba(255, 255, 255, 0.55);
    transform: rotate(0deg);
    will-change: transform;
    pointer-events: none;
}

.tl-wheel__ring,
.tl-wheel__ring--inner {
    position: absolute;
    inset: 12%;
    border-radius: 50%;
    border: 1px dashed rgba(32, 127, 191, 0.22);
    pointer-events: none;
}

.tl-wheel__ring--inner {
    inset: 28%;
    border-style: solid;
    border-color: rgba(76, 175, 147, 0.18);
}

.tl-wheel__pointer {
    position: absolute;
    top: 50%;
    right: -0.15rem;
    z-index: 6;
    width: 0;
    height: 0;
    border-top: 0.55rem solid transparent;
    border-bottom: 0.55rem solid transparent;
    border-inline-end: 0.85rem solid var(--tl-green);
    transform: translateY(-50%);
    filter: drop-shadow(0 2px 4px rgba(47, 143, 120, 0.35));
    pointer-events: none;
}

.tl-wheel__item {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    width: 4.75rem;
    min-height: 4.35rem;
    margin: 0;
    padding: 0.45rem 0.35rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 0.9rem;
    background: color-mix(in srgb, var(--tl-surface, #fff) 92%, #0F172A 4%);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
    color: inherit;
    cursor: pointer;
    appearance: none;
    font: inherit;
    transform: translate(-50%, -50%);
    transform-origin: center center;
    will-change: transform;
}

.tl-wheel__item-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 0.55rem;
    background: rgba(32, 127, 191, 0.12);
    color: var(--tl-blue);
    pointer-events: none;
}

.tl-wheel__item-icon .tl-home-icon {
    width: 1rem;
    height: 1rem;
}

.tl-wheel__item-label {
    display: block;
    max-width: 4.4rem;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.2;
    text-align: center;
    color: var(--marketing-ink, #0F172A);
    pointer-events: none;
}

.tl-wheel__item.is-active {
    border-color: rgba(76, 175, 147, 0.45);
    background:
        linear-gradient(160deg, rgba(76, 175, 147, 0.16), transparent 60%),
        var(--tl-surface, #fff);
    box-shadow:
        0 0 0 3px rgba(76, 175, 147, 0.14),
        0 10px 22px rgba(47, 143, 120, 0.18);
    z-index: 7;
}

.tl-wheel__item.is-active .tl-wheel__item-icon {
    background: rgba(76, 175, 147, 0.18);
    color: #2F8F78;
}

.tl-wheel__item:focus-visible {
    outline: 2px solid var(--tl-blue);
    outline-offset: 2px;
}

.tl-wheel__hub {
    position: absolute;
    inset: 34%;
    z-index: 4;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 30%, #fff 0%, #F8FAFC 55%, #E2E8F0 100%);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.9),
        0 10px 24px rgba(10, 31, 46, 0.12);
    pointer-events: none;
}

.tl-wheel__spin {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0.75rem;
    border: 0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    appearance: none;
    font: inherit;
    color: inherit;
    pointer-events: auto;
}

.tl-wheel__spin-kicker {
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--tl-blue);
}

.tl-wheel__spin-title {
    max-width: 7ch;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    color: var(--marketing-ink, #0F172A);
}

.tl-wheel__spin:focus-visible {
    outline: 2px solid var(--tl-blue);
    outline-offset: 3px;
}

.tl-wheel__hint {
    margin: 0.85rem 0 0;
    text-align: center;
    font-size: 0.75rem;
    color: var(--marketing-muted, #64748B);
}

.tl-wheel__mobile-caption {
    display: none;
    margin-top: 1rem;
    padding: 0.95rem 1rem 1rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 1rem;
    background:
        linear-gradient(165deg, rgba(76, 175, 147, 0.1), transparent 60%),
        rgba(255, 255, 255, 0.92);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

.tl-wheel__mobile-caption-kicker {
    margin: 0 0 0.45rem;
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--tl-blue);
}

.tl-wheel__mobile-caption-title {
    margin: 0 0 0.3rem;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--marketing-ink, #0F172A);
}

.tl-wheel__mobile-caption-copy {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--marketing-muted, #64748B);
}

.tl-feature-showcase__stage {
    position: relative;
    flex: 0 0 auto;
    width: var(--tl-feature-stage-width);
    min-width: 0;
    min-height: 20rem;
}

.tl-feature-showcase__panel {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    width: 100%;
    height: 100%;
}

.tl-feature-showcase__panel.is-active {
    display: flex;
}

.tl-feature-showcase__media {
    margin: 0;
    position: relative;
    flex: 0 0 auto;
    width: 100%;
    aspect-ratio: 16 / 10;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: var(--hp-radius-lg, 1rem);
    background:
        linear-gradient(160deg, rgba(32, 127, 191, 0.1) 0%, transparent 48%),
        linear-gradient(335deg, rgba(76, 175, 147, 0.1) 0%, transparent 50%),
        #F1F5F9;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 18px 40px rgba(10, 31, 46, 0.1);
    overflow: hidden;
}

.tl-feature-showcase__skeleton {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(
            110deg,
            #e8eef5 0%,
            #e8eef5 35%,
            #f4f7fb 50%,
            #e8eef5 65%,
            #e8eef5 100%
        );
    background-size: 200% 100%;
    animation: tl-feature-skeleton-shimmer 1.15s ease-in-out infinite;
    transition: opacity 0.2s ease;
}

.tl-feature-showcase__media.is-ready .tl-feature-showcase__skeleton {
    opacity: 0;
    pointer-events: none;
    animation: none;
}

.tl-feature-showcase__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    opacity: 0;
    transition: opacity 0.22s ease;
}

.tl-feature-showcase__media.is-ready .tl-feature-showcase__img {
    opacity: 1;
}

.tl-feature-showcase__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

@keyframes tl-feature-skeleton-shimmer {
    0% {
        background-position: 100% 0;
    }
    100% {
        background-position: -100% 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tl-feature-showcase__skeleton {
        animation: none;
    }

    .tl-feature-showcase__img {
        transition: none;
    }
}

.tl-feature-showcase__placeholder {
    position: absolute;
    inset: 0.85rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 1.25rem;
    text-align: center;
    border: 1.5px dashed rgba(32, 127, 191, 0.28);
    border-radius: 0.85rem;
    background: color-mix(in srgb, #fff 72%, transparent);
}

.tl-feature-showcase__placeholder-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 0.85rem;
    background: rgba(32, 127, 191, 0.12);
    color: var(--tl-blue);
}

.tl-feature-showcase__placeholder-icon .tl-home-icon {
    width: 1.5rem;
    height: 1.5rem;
}

.tl-feature-showcase__placeholder-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--tl-blue);
}

.tl-feature-showcase__placeholder-file {
    font-size: 0.8125rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    color: var(--marketing-muted, #64748B);
}

.tl-feature-showcase__caption {
    width: 100%;
}

.tl-feature-showcase__caption-title {
    margin: 0 0 0.35rem;
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--marketing-ink, #0F172A);
}

.tl-feature-showcase__caption-copy {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--marketing-muted, #64748B);
}

@media (prefers-reduced-motion: no-preference) {
    .tl-wheel.is-animating .tl-wheel__disc,
    .tl-wheel.is-animating .tl-wheel__item {
        transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .tl-feature-showcase__panel.is-active .tl-feature-showcase__media {
        animation: tl-feature-panel-in 0.28s ease-out;
    }
}

@keyframes tl-feature-panel-in {
    from {
        opacity: 0.35;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =====================================================
   7. TESTIMONIALS — infinite auto marquee
   ===================================================== */
.tl-testimonials {
    --tl-testimonial-gap: 1.25rem;
    --tl-testimonial-card-w: min(22rem, 78vw);
    --tl-testimonials-sign: -1;
    --tl-testimonials-mask-to: right;
    max-width: none;
    margin-inline: calc(-1 * var(--hp-content-pad));
}

[dir="rtl"] .tl-testimonials {
    --tl-testimonials-sign: 1;
    --tl-testimonials-mask-to: left;
}

.tl-testimonials__viewport {
    overflow: hidden;
    mask-image: linear-gradient(
        to var(--tl-testimonials-mask-to, right),
        transparent,
        #000 4%,
        #000 96%,
        transparent
    );
    -webkit-mask-image: linear-gradient(
        to var(--tl-testimonials-mask-to, right),
        transparent,
        #000 4%,
        #000 96%,
        transparent
    );
}

.tl-testimonials__track {
    display: flex;
    width: max-content;
    gap: var(--tl-testimonial-gap);
    padding-block: 0.25rem;
    direction: ltr;
    will-change: transform;
}

[dir="rtl"] .tl-testimonials__track {
    direction: rtl;
}

[dir="rtl"] .tl-testimonial-card {
    direction: rtl;
    text-align: start;
}

.tl-testimonials.is-animated .tl-testimonials__track {
    animation: tl-testimonials-marquee var(--tl-testimonials-duration, 48s) linear infinite;
}

.tl-testimonials.is-paused .tl-testimonials__track,
.tl-testimonials:hover .tl-testimonials__track,
.tl-testimonials:focus-within .tl-testimonials__track {
    animation-play-state: paused;
}

@keyframes tl-testimonials-marquee {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(calc(var(--tl-testimonials-sign, -1) * var(--tl-testimonials-loop, 50%)), 0, 0); }
}

.tl-testimonial-card {
    flex: 0 0 var(--tl-testimonial-card-w);
    margin: 0;
    padding: 1.5rem 1.5rem 1.375rem;
    border-radius: var(--hp-radius-lg);
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: var(--marketing-surface, #ffffff);
    box-shadow: var(--hp-shadow-xs);
}

.tl-testimonial-card__stars {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    margin-bottom: 0.875rem;
    color: #D4A017;
}

.tl-testimonial-card__star {
    flex-shrink: 0;
    display: block;
}

.tl-testimonial-card__quote {
    margin: 0;
    font-family: var(--tl-font);
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--marketing-muted, #4b5563);
}

@media (prefers-reduced-motion: reduce) {
    .tl-testimonials.is-animated .tl-testimonials__track {
        animation: none;
    }

    .tl-testimonials__track {
        flex-wrap: wrap;
        width: min(100%, var(--hp-content-max));
        margin-inline: auto;
        justify-content: center;
        padding-inline: var(--hp-content-pad);
        direction: inherit;
        will-change: auto;
    }

    .tl-testimonial-card[aria-hidden="true"] {
        display: none;
    }

    .tl-testimonials__viewport {
        mask-image: none;
        -webkit-mask-image: none;
        overflow: visible;
    }
}

/* =====================================================
   8. PLANS SECTION
      IMPORTANT: All .tl-public-plans__* class names,
      data-* attributes, and the #tl-public-plans /
      #tl-plans-payload IDs are referenced by
      public-home.js billing-period toggle. Do NOT rename
      any selector in this section without updating the JS.
   ===================================================== */

.tl-public-plans {
    max-width: var(--hp-content-max);
    margin-inline: auto;
}

/* Billing period toggle */
.tl-public-plans__billing-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.tl-public-plans__billing-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--marketing-muted);
    white-space: nowrap;
}

.tl-public-plans__billing-toggle {
    display: inline-flex;
    background: rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(15, 23, 42, 0.09);
    border-radius: var(--hp-radius-pill);
    padding: 0.25rem;
    gap: 0.25rem;
}

.tl-public-plans__billing-toggle-btn {
    appearance: none;
    border: none;
    background: transparent;
    padding: 0.375rem 1rem;
    border-radius: var(--hp-radius-pill);
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--marketing-muted);
    cursor: pointer;
    line-height: 1;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
    white-space: nowrap;
}

.tl-public-plans__billing-toggle-btn:hover {
    color: var(--marketing-ink);
}

.tl-public-plans__billing-toggle-btn--active {
    background: var(--tl-blue);
    color: var(--tl-surface);
    font-weight: 600;
    box-shadow: var(--hp-shadow-sm);
}

/* Plan card grid — wide enough for priced plans + the static Custom clinic card */
.tl-public-plans__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    align-items: stretch;
    max-width: 68rem;
    margin-inline: auto;
}

/* Individual plan card */
.tl-public-plans__card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1 1 18rem;
    max-width: 22rem;
    min-height: 100%;
    background: var(--tl-surface);
    border: 1px solid rgba(15, 23, 42, 0.09);
    border-radius: var(--hp-radius-lg);
    padding: 1.875rem;
    box-shadow: var(--hp-shadow-sm);
}

.tl-public-plans__card-header {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

@media (prefers-reduced-motion: no-preference) {
    .tl-public-plans__card {
        transition: box-shadow 0.22s ease, transform 0.22s ease;
    }

    .tl-public-plans__card:hover {
        box-shadow: var(--hp-shadow-md);
        transform: translateY(-3px);
    }

    .tl-public-plans__card--recommended:hover {
        box-shadow:
            0 0 0 2px var(--tl-blue),
            var(--hp-shadow-lg);
    }
}

.tl-public-plans__card--recommended {
    border-color: transparent;
    box-shadow:
        0 0 0 2px var(--tl-blue),
        var(--hp-shadow-md);
}

.tl-public-plans__card--unavailable {
    opacity: 0.62;
    pointer-events: none;
}

/* Custom clinic build — distinct from priced / recommended plan cards */
.tl-public-plans__card--custom {
    border-color: rgba(76, 175, 147, 0.32);
    background:
        linear-gradient(165deg, rgba(76, 175, 147, 0.08) 0%, transparent 42%),
        var(--tl-surface);
}

@media (prefers-reduced-motion: no-preference) {
    .tl-public-plans__card--custom:hover {
        box-shadow:
            0 0 0 1px rgba(76, 175, 147, 0.35),
            var(--hp-shadow-md);
    }
}

.tl-public-plans__clinic-label {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--tl-green);
    margin: 0 0 0.5rem;
}

.tl-public-plans__clinic-label::before {
    content: '';
    display: inline-block;
    width: 0.4375rem;
    height: 0.4375rem;
    border-radius: 50%;
    background: var(--tl-green);
}

.tl-public-plans__custom-lede {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--marketing-muted);
}

.tl-public-plans__recommendation {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--tl-blue);
    margin-bottom: 0.5rem;
}

.tl-public-plans__recommendation::before {
    content: '';
    display: inline-block;
    width: 0.4375rem;
    height: 0.4375rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--marketing-accent), var(--marketing-accent-soft));
}

.tl-public-plans__card-name {
    margin: 0;
    font-family: var(--tl-font);
    font-size: 1.1875rem;
    font-weight: 600;
    letter-spacing: -0.015em;
    color: var(--marketing-ink);
}

/* Pricing area */
.tl-public-plans__pricing {
    min-height: 3rem;
    display: flex;
    align-items: flex-start;
}

.tl-public-plans__contact-price {
    margin: 0;
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--marketing-ink);
}

.tl-public-plans__pricing-unavailable {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.tl-public-plans__pricing-unavailable-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--marketing-muted);
}

.tl-public-plans__pricing-unavailable-copy {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--marketing-muted);
    line-height: 1.5;
}

.tl-public-plans__price {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.25rem 0.5rem;
    line-height: 1;
}

.tl-public-plans__price-original {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--marketing-muted);
    text-decoration: line-through;
    align-self: center;
}

.tl-public-plans__price-amount {
    font-size: 1.875rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--marketing-ink);
}

.tl-public-plans__price-qualifier {
    font-size: 0.8125rem;
    color: var(--marketing-muted);
    align-self: flex-end;
    padding-bottom: 0.25rem;
}

.tl-public-plans__price-supporting {
    flex: 0 0 100%;
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.45;
    color: var(--marketing-muted);
}

/* Billing-period price crossfade — JS adds .is-fading before innerHTML swap */
@media (prefers-reduced-motion: no-preference) {
    [data-pricing-root],
    [data-discount-root] {
        transition: opacity 0.15s ease-out;
    }

    [data-pricing-root].is-fading,
    [data-discount-root].is-fading {
        opacity: 0;
    }
}

/* Discount badge */
.tl-public-plans__discount-badge {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(32, 127, 191, 0.06);
    border: 1px solid rgba(32, 127, 191, 0.2);
    border-radius: var(--hp-radius-sm);
}

.tl-public-plans__discount-icon {
    flex-shrink: 0;
    width: 0.875rem;
    height: 0.875rem;
    color: var(--tl-blue);
    margin-top: 0.1rem;
}

.tl-public-plans__discount-copy {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.tl-public-plans__discount-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--tl-blue);
}

.tl-public-plans__discount-expiry {
    font-size: 0.75rem;
    color: var(--marketing-muted);
    line-height: 1.4;
}

.tl-public-plans__details {
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    padding-block: 0.125rem;
}

.tl-public-plans__details-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding-block: 0.625rem;
    color: var(--tl-blue);
    cursor: pointer;
    list-style: none;
}

.tl-public-plans__details-summary::-webkit-details-marker {
    display: none;
}

.tl-public-plans__details-label {
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.tl-public-plans__details-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: rgba(32, 127, 191, 0.08);
    font-size: 0.8125rem;
    line-height: 1;
    transition: transform 0.18s ease, background 0.18s ease;
}

.tl-public-plans__details[open] .tl-public-plans__details-icon {
    transform: rotate(180deg);
    background: rgba(32, 127, 191, 0.14);
}

.tl-public-plans__details-copy {
    margin: 0;
    padding: 0 0 0.75rem;
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--marketing-muted);
}

/* Feature list */
.tl-public-plans__features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    flex: 1;
}

.tl-public-plans__features li {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--tl-text);
}

.tl-public-plans__feature-icon {
    flex-shrink: 0;
    width: 1rem;
    height: 1rem;
    color: var(--tl-green);
    margin-top: 0.15rem;
}

.tl-public-plans__limits {
    font-weight: 600;
    color: var(--marketing-ink) !important;
}

.tl-public-plans__features li.tl-public-plans__feature--unavailable {
    color: var(--tl-text-secondary);
}

.tl-public-plans__features li.tl-public-plans__feature--unavailable span {
    text-decoration: line-through;
    text-decoration-color: currentColor;
}

.tl-public-plans__features li.tl-public-plans__feature--unavailable .tl-public-plans__feature-icon {
    color: var(--tl-text-secondary);
}

.tl-public-plans__features li.tl-public-plans__feature--highlight {
    font-weight: 600;
    color: var(--tl-text);
}

.tl-public-plans__features li.tl-public-plans__feature--highlight .tl-public-plans__feature-icon {
    color: var(--tl-green-dark);
}

/* Plan CTA button */
.tl-public-plans__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 50px;
    margin-top: auto;
    padding: 0 22px;
    line-height: 1;
    text-align: center;
}

.tl-public-plans__cta > span {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.tl-public-plans__cta .tl-btn__arrow {
    margin-inline-start: 0.375rem;
    line-height: 1;
}

/* =====================================================
   9. GETTING STARTED SECTION — provisioned onboarding
   ===================================================== */
.tl-start-steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1rem, 2.5vw, 2rem);
    --tl-start-step-gap: clamp(1rem, 2.5vw, 2rem);
    max-width: var(--hp-content-max);
    margin-inline: auto;
    align-items: stretch;
}

.tl-start-step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    height: 100%;
    gap: 0.875rem;
    padding: clamp(1.35rem, 2vw, 1.75rem);
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: var(--hp-radius-lg);
    background: var(--tl-surface);
    box-shadow: var(--hp-shadow-sm);
    overflow: visible;
}

.tl-start-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 2.72rem;
    inset-inline-start: 100%;
    z-index: 2;
    width: calc(var(--tl-start-step-gap) * 0.72);
    height: 0.75rem;
    margin-inline-start: calc(var(--tl-start-step-gap) * 0.14);
    transform: translateY(-50%);
    background:
        center / 100% 0.625rem no-repeat
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 12' fill='none'%3E%3Cpath d='M2 6H24M19 2.5L27.5 6L19 9.5' stroke='%233E6AB3' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    pointer-events: none;
}

[dir="rtl"] .tl-start-step:not(:last-child)::after {
    transform: translateY(-50%) scaleX(-1);
}

.tl-start-step__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: var(--tl-blue);
    color: var(--tl-surface);
    font-size: 0.9375rem;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 10px 22px rgba(32, 127, 191, 0.22);
}

.tl-start-step__badge--green {
    background: var(--tl-green);
    box-shadow: 0 10px 22px rgba(76, 175, 147, 0.22);
}

.tl-start-step__copy {
    min-width: 0;
}

.tl-start-step__copy h3 {
    margin: 0 0 0.5rem;
    font-family: var(--tl-font);
    font-size: 1.1875rem;
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 1.22;
    color: var(--marketing-ink);
}

.tl-start-step__copy p {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--tl-text-secondary);
}

.tl-start-actions {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

@supports not (color: color-mix(in srgb, #000 50%, #fff)) {
    .tl-start-step:not(:last-child)::after {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 12' fill='none'%3E%3Cpath d='M2 6H24M19 2.5L27.5 6L19 9.5' stroke='%23207FBF' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    }
}

@media (prefers-reduced-motion: no-preference) {
    .tl-start-step {
        transition: box-shadow 0.22s ease, transform 0.22s ease, border-color 0.22s ease;
    }

    .tl-start-step:hover {
        transform: translateY(-3px);
        border-color: rgba(32, 127, 191, 0.16);
        box-shadow: var(--hp-shadow-md);
    }
}

/* =====================================================
   10. FINAL CTA SECTION — simple one-row card
   ===================================================== */
.tl-cta {
    --tl-cta-ink: var(--tl-blue-dark, #0B4F8A);
    --tl-cta-muted: color-mix(in srgb, var(--tl-text-secondary, #6B7280) 88%, var(--tl-text, #111827));
    max-width: var(--hp-content-max);
    margin-inline: auto;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1.5rem, 3.5vw, 2.5rem);
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: var(--hp-radius-xl);
    background:
        radial-gradient(circle at 92% 8%, rgba(76, 175, 147, 0.18), transparent 36%),
        radial-gradient(circle at 8% 100%, rgba(32, 127, 191, 0.14), transparent 40%),
        linear-gradient(135deg, #F7FBFF 0%, #F3FAF7 55%, #EEF8F4 100%);
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 18px 40px rgba(10, 31, 46, 0.1);
}

.tl-cta__row {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(1.5rem, 4vw, 3rem);
}

.tl-cta__copy {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 40rem;
}

.tl-cta__copy .tl-kicker {
    display: block;
    margin: 0 0 0.625rem;
    color: var(--tl-blue);
}

.tl-cta__copy h2 {
    margin: 0;
    font-family: var(--tl-font);
    font-size: clamp(1.375rem, 2.6vw, 1.875rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: var(--tl-cta-ink);
    text-wrap: balance;
}

.tl-cta__lead {
    margin: 0.625rem 0 0;
    max-width: 36rem;
    font-size: 0.975rem;
    line-height: 1.65;
    color: var(--tl-cta-muted);
}

.tl-cta__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    flex: 0 0 auto;
}

.tl-cta__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 1.25rem;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
}

.tl-cta__btn > span {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.tl-cta__btn .tl-btn__arrow {
    margin-inline-start: 0.375rem;
    line-height: 1;
}

.tl-cta__trust {
    position: relative;
    z-index: 1;
    margin: 0;
    padding-top: 1rem;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    font-size: 0.8125rem;
    letter-spacing: 0.01em;
    line-height: 1.5;
    color: color-mix(in srgb, var(--tl-cta-muted) 92%, var(--tl-cta-ink));
}

@media (prefers-reduced-motion: no-preference) {
    .tl-cta {
        transition: box-shadow 0.22s ease-out, transform 0.22s ease-out, border-color 0.22s ease-out;
    }

    .tl-cta:hover {
        transform: translateY(-2px);
        border-color: rgba(15, 23, 42, 0.12);
        box-shadow:
            0 1px 2px rgba(15, 23, 42, 0.04),
            0 22px 48px rgba(10, 31, 46, 0.14);
    }
}

/* =====================================================
   11. BTN ARROW HELPER
   ===================================================== */
.tl-btn__arrow {
    margin-inline-start: 0.375rem;
}

[x-cloak] {
    display: none !important;
}

html.tl-modal-open,
body.tl-modal-open {
    overflow: hidden;
}

.tl-ph-hero__mobile-photo {
    display: none;
}

.tl-ph-hero__mobile-photo-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tl-waiting-list__card {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.4rem 1.5rem;
    border: 1px solid rgba(32, 127, 191, 0.18);
    border-radius: 1.35rem;
    background:
        radial-gradient(circle at top left, rgba(32, 127, 191, 0.16), transparent 34%),
        linear-gradient(140deg, rgba(223, 242, 250, 0.92), rgba(255, 255, 255, 0.98) 50%, rgba(239, 249, 246, 0.92));
    box-shadow:
        0 22px 54px rgba(15, 23, 42, 0.1),
        0 4px 12px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

.tl-waiting-list__card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 0.42rem;
    background: linear-gradient(180deg, var(--tl-blue), var(--tl-green));
    transform: scaleY(1);
    transform-origin: top center;
}

.tl-waiting-list__card::after {
    content: none;
}

.tl-waiting-list__card .tl-waiting-list__copy {
    position: relative;
    z-index: 1;
    margin-bottom: 0;
}

.tl-waiting-list__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.tl-waiting-list__eyebrow-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.55rem;
    height: 1.55rem;
    border-radius: 999px;
    background: rgba(32, 127, 191, 0.12);
    color: var(--tl-blue);
    box-shadow: inset 0 0 0 1px rgba(32, 127, 191, 0.14);
}

.tl-waiting-list__trigger {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    flex: 0 0 auto;
    white-space: nowrap;
}

.tl-waiting-list__trigger-launch {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.22rem 0.48rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1;
}

@media (prefers-reduced-motion: no-preference) {
    .js-reveal .tl-waiting-list .tl-waiting-list__card {
        opacity: 0.01;
        transform: translateY(1.25rem) scale(0.96);
        box-shadow:
            0 12px 28px rgba(15, 23, 42, 0.06),
            0 2px 6px rgba(15, 23, 42, 0.03);
        transition:
            opacity 0.54s ease-out,
            transform 0.54s cubic-bezier(0.2, 0.82, 0.22, 1),
            box-shadow 0.54s ease-out;
    }

    .js-reveal .tl-waiting-list .tl-waiting-list__card::before {
        transform: scaleY(0);
        transition: transform 0.58s ease-out 0.1s;
    }

    .js-reveal .tl-waiting-list.tl-reveal--in .tl-waiting-list__card {
        opacity: 1;
        transform: translateY(0) scale(1);
        box-shadow:
            0 22px 54px rgba(15, 23, 42, 0.1),
            0 4px 12px rgba(15, 23, 42, 0.05);
    }

    .js-reveal .tl-waiting-list.tl-reveal--in .tl-waiting-list__card::before {
        transform: scaleY(1);
    }

    .js-reveal .tl-waiting-list.tl-reveal--in .tl-waiting-list__eyebrow-badge {
        animation: tl-waiting-list-bell-ring 0.4s ease-out 0.14s 1 both;
        transform-origin: 50% 12%;
    }

    .tl-waiting-list__card:hover {
        transform: translateY(-3px);
        box-shadow:
            0 28px 62px rgba(15, 23, 42, 0.12),
            0 6px 14px rgba(15, 23, 42, 0.06);
    }
}

@keyframes tl-waiting-list-bell-ring {
    0% {
        transform: rotate(0deg);
    }

    18% {
        transform: rotate(10deg);
    }

    34% {
        transform: rotate(-9deg);
    }

    52% {
        transform: rotate(6deg);
    }

    70% {
        transform: rotate(-4deg);
    }

    86% {
        transform: rotate(2deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

.tl-waiting-list__modal-shell {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.tl-waiting-list__modal-shell[hidden] {
    display: none !important;
}

.tl-waiting-list__modal-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    padding: 0;
    background: rgba(15, 23, 42, 0.48);
    cursor: pointer;
}

.tl-waiting-list__modal {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: min(42rem, 100%);
    max-height: min(calc(100vh - 2.5rem), 46rem);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 1.4rem;
    background: #ffffff;
    box-shadow:
        0 32px 80px rgba(15, 23, 42, 0.22),
        0 10px 28px rgba(15, 23, 42, 0.1);
    overflow-x: clip;
    overflow-y: visible;
}

.tl-waiting-list__modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.35rem 1.35rem 0;
}

.tl-waiting-list__copy--modal {
    margin-bottom: 0;
}

.tl-waiting-list__modal-body {
    overflow-x: clip;
    overflow-y: auto;
    padding: 1.2rem 1.35rem 1.35rem;
}

.tl-waiting-list__modal-body .tl-waiting-list__benefits {
    margin-bottom: 1.25rem;
}

.tl-waiting-list__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 999px;
    background: rgba(248, 250, 252, 0.92);
    color: var(--marketing-ink, #0f172a);
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.tl-waiting-list__close:hover {
    background: #ffffff;
    transform: translateY(-1px);
}

.tl-waiting-list__close span {
    font-size: 1.35rem;
    line-height: 1;
}

/* =====================================================
   12. RESPONSIVE — compact desktop (≤ 1120px)
   ===================================================== */
@media (max-width: 1120px) {
    .tl-ph-hero__inner {
        gap: clamp(1.25rem, 3vw, 2rem);
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    }

    .tl-ph-hero__heading {
        font-size: clamp(1.625rem, 3.2vw, 2.375rem);
    }

    .tl-ph-hero__bg {
        object-position: 74% center;
    }

    .tl-ph-hero__fcard {
        --tl-hero-fcard-width: clamp(10rem, 17vw, 11.25rem);
        --tl-hero-fcard-min-height: 4.625rem;
    }

    .tl-ph-hero__fcard-copy {
        font-size: 0.6rem;
    }
}

/* =====================================================
   13. RESPONSIVE — tablet (≤ 960px)
   ===================================================== */
@media (max-width: 960px) {
    :root {
        --hp-section-gap: 2.75rem;
    }

    .tl-ph-hero {
        min-height: auto;
        padding-top: calc(var(--tl-nav-clearance) + 1.75rem);
        padding-bottom: 2rem;
        align-items: stretch;
    }

    .tl-ph-hero__media {
        display: block;
    }

    .tl-ph-hero__bg {
        object-position: 68% 38%;
    }

    .tl-ph-hero__inner {
        position: relative;
        z-index: 2;
        display: block;
        min-height: clamp(42rem, 92vw, 50rem);
    }

    .tl-ph-hero__scene {
        position: absolute;
        inset: 0;
        width: 100%;
        max-width: none;
        min-height: 0;
        margin-inline: 0;
        pointer-events: none;
    }

    .tl-ph-hero__visual {
        position: absolute;
        inset: 0;
        min-height: 0;
        height: 100%;
        border-radius: 0;
        overflow: visible;
    }

    .tl-ph-hero__copy {
        isolation: isolate;
        align-items: center;
        text-align: center;
        max-width: min(42rem, 100%);
        margin-inline: auto;
        padding-bottom: 0;
        padding-top: clamp(0.4rem, 2vw, 1rem);
        color: var(--marketing-ink);
    }

    .tl-ph-hero__copy::before {
        content: "";
        position: absolute;
        inset: -1rem -1rem -1.15rem;
        z-index: -1;
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.72) 68%, rgba(255, 255, 255, 0));
        filter: blur(0.5px);
        pointer-events: none;
    }

    .tl-ph-hero__eyebrow {
        display: block;
        color: var(--tl-green-dark);
    }

    .tl-ph-hero__eyebrow-line {
        display: inline;
        color: inherit;
    }

    .tl-ph-hero__eyebrow-line + .tl-ph-hero__eyebrow-line::before {
        content: " ";
    }

    .tl-ph-hero__heading {
        align-items: center;
        max-width: 100%;
    }

    .tl-ph-hero__heading-line {
        color: var(--marketing-ink);
    }

    .tl-ph-hero__heading-line--accent {
        color: var(--tl-green-dark);
    }

    .tl-ph-hero__support {
        max-width: min(48ch, 100%);
        color: color-mix(in srgb, var(--marketing-ink) 78%, var(--tl-text-secondary));
    }

    .tl-ph-hero__actions {
        justify-content: center;
        margin-bottom: 0;
    }

    .tl-ph-hero__mobile-photo {
        display: none;
    }

    .tl-ph-hero__fcard {
        position: absolute;
        width: fit-content;
        max-width: min(calc(100% - 2rem), 16rem);
        min-height: 0;
        margin-inline: 0;
        padding: 0.52rem 0.72rem;
        gap: 0.45rem;
        --tl-hero-fcard-width: fit-content;
        --tl-hero-fcard-min-height: 0;
        align-items: center;
        top: auto;
        bottom: auto;
        left: clamp(0.9rem, 3.4vw, 2rem);
        right: auto;
    }

    .tl-ph-hero__fcard-body {
        display: flex;
        align-items: center;
        min-width: 0;
    }

    .tl-ph-hero__fcard-title {
        margin: 0;
        font-size: 0.72rem;
        line-height: 1.18;
        display: block;
        overflow: visible;
        white-space: nowrap;
        -webkit-line-clamp: unset;
    }

    .tl-ph-hero__fcard-copy {
        display: none;
    }

    .tl-ph-hero__fcard--appointments {
        top: 54.5%;
        left: 5.25%;
        animation: tl-hero-float-appointments 6s ease-in-out infinite;
    }

    .tl-ph-hero__fcard--whatsapp {
        top: 63.8%;
        left: 14.2%;
        border-color: rgba(76, 175, 147, 0.22);
        animation: tl-hero-float-whatsapp 6.8s ease-in-out infinite 1.2s;
    }

    .tl-ph-hero__fcard--session-notes {
        top: 73.1%;
        left: 8.1%;
        animation: tl-hero-float-session-notes 7.5s ease-in-out infinite 0.6s;
    }

    .tl-ph-hero__fcard--patient-records {
        top: 82.6%;
        left: 16.4%;
        animation: tl-hero-float-patient-records 8s ease-in-out infinite 0.3s;
    }

    .tl-ph-hero__fcard--progress {
        top: 92.1%;
        left: 10.1%;
        animation: tl-hero-float-progress 7s ease-in-out infinite 1.5s;
    }

    .tl-section__heading {
        margin-bottom: 1.75rem;
    }

    .tl-swap__legend {
        display: none;
    }

    .tl-swap__row {
        grid-template-columns: 1fr;
        gap: 0.55rem;
        padding-block: 1.15rem;
    }

    .tl-swap__arrow {
        display: none;
    }

    .tl-swap__to {
        padding: 0.7rem 0.8rem;
        border-radius: 0.75rem;
        border: 1px solid rgba(76, 175, 147, 0.22);
        background: color-mix(in srgb, var(--tl-surface, #fff) 90%, var(--tl-green) 10%);
    }

    .tl-swap__from,
    .tl-swap__to {
        flex-wrap: wrap;
        gap: 0.45rem 0.75rem;
        align-items: center;
    }

    .tl-swap__tag {
        display: inline-flex;
        flex: 0 0 auto;
    }

    .tl-feature-showcase {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .tl-wheel {
        width: min(100%, var(--tl-wheel-size));
    }

    .tl-feature-showcase__stage {
        width: var(--tl-feature-stage-width);
        min-height: 0;
    }

    .tl-feature-showcase__panel {
        width: 100%;
    }

    .tl-feature-showcase__media {
        width: 100%;
        min-height: 0;
        aspect-ratio: 16 / 10;
    }

    .tl-wheel__mobile-caption {
        display: block;
    }

    .tl-cta {
        border-radius: var(--hp-radius-lg);
        padding: 1.75rem 1.5rem;
    }

    .tl-cta__row {
        flex-direction: column;
        align-items: stretch;
        gap: 1.25rem;
    }

    .tl-cta__actions {
        justify-content: flex-start;
        width: 100%;
    }

    .tl-cta__btn {
        justify-content: center;
    }

    .tl-cta__trust {
        width: 100%;
    }

    .tl-public-plans__grid {
        max-width: none;
    }

    .tl-waiting-list__card {
        align-items: stretch;
        padding: 1.3rem 1.35rem;
    }

    .tl-waiting-list__modal-shell {
        padding: 1rem;
    }

    .tl-waiting-list__modal {
        width: min(40rem, 100%);
    }

}

@media (max-width: 768px) {
    .tl-ph-hero__fcard {
        max-width: min(calc(100% - 1.75rem), 14.5rem);
    }

    .tl-ph-hero__fcard--appointments {
        top: 57.8%;
        left: 3.6%;
    }

    .tl-ph-hero__fcard--whatsapp {
        top: 66.6%;
        left: 9.4%;
    }

    .tl-ph-hero__fcard--session-notes {
        top: 75.25%;
        left: 4.8%;
    }

    .tl-ph-hero__fcard--patient-records {
        top: 84%;
        left: 10.6%;
    }

    .tl-ph-hero__fcard--progress {
        top: 92.4%;
        left: 5.6%;
    }

    .tl-start-steps {
        grid-template-columns: 1fr;
        gap: 0.875rem;
        max-width: 44rem;
    }

    .tl-start-step {
        padding: 1.25rem;
    }

    .tl-start-step:not(:last-child)::after {
        display: none;
    }
}

/* =====================================================
   14. RESPONSIVE — mobile (≤ 600px)
   ===================================================== */
@media (max-width: 600px) {
    :root {
        --hp-section-gap: 2.25rem;
        --hp-content-pad: 1.25rem;
    }

    .tl-ph-hero {
        padding-top: calc(var(--tl-nav-clearance) + 1.25rem);
        padding-bottom: 1.25rem;
        min-height: auto;
    }

    .tl-ph-hero__inner {
        gap: 1.75rem;
    }

    .tl-ph-hero__eyebrow {
        font-size: 0.75rem;
        margin-bottom: 1rem;
    }

    .tl-ph-hero__heading {
        font-size: clamp(1.75rem, 7.5vw, 2.125rem);
        letter-spacing: -0.02em;
        margin-bottom: 1.125rem;
        max-width: 100%;
    }

    .tl-ph-hero__support {
        font-size: 0.9375rem;
        line-height: 1.7;
        margin-bottom: 1.5rem;
    }

    .tl-ph-hero__scene {
        min-height: 0;
    }

    .tl-ph-hero__fcard {
        width: fit-content;
        max-width: min(calc(100% - 1.7rem), 12.75rem);
        padding: 0.45rem 0.6rem;
        border-radius: 0.875rem;
    }

    .tl-ph-hero__fcard-icon {
        width: 1.3rem;
        height: 1.3rem;
    }

    .tl-ph-hero__fcard-title {
        font-size: 0.68rem;
    }

    .tl-ph-hero__actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-width: 22rem;
    }

    .tl-ph-hero__cta {
        width: 100%;
        justify-content: center;
    }

    .tl-ph-hero__bg {
        object-position: 62% 32%;
    }

    .tl-ph-hero__fcard--appointments {
        top: 60.3%;
        left: 2.8%;
    }

    .tl-ph-hero__fcard--whatsapp {
        top: 69%;
        left: 8%;
    }

    .tl-ph-hero__fcard--session-notes {
        top: 77.5%;
        left: 3.9%;
    }

    .tl-ph-hero__fcard--patient-records {
        top: 86.05%;
        left: 8.1%;
    }

    .tl-ph-hero__fcard--progress {
        top: 94%;
        left: 4.9%;
    }

    .tl-section__heading {
        margin-bottom: 1.5rem;
    }

    .tl-section__heading h2 {
        font-size: clamp(1.375rem, 5.5vw, 1.75rem);
    }

    .tl-swap__from,
    .tl-swap__to {
        font-size: 0.875rem;
    }

    .tl-feature-showcase {
        --tl-wheel-size: min(19.5rem, 92vw);
        --tl-wheel-radius: 6.35rem;
    }

    .tl-wheel__item {
        width: 4.2rem;
        min-height: 3.9rem;
    }

    .tl-feature-showcase__media {
        width: 100%;
        min-height: 0;
        aspect-ratio: 16 / 10;
    }

    .tl-testimonials {
        --tl-testimonial-gap: 1rem;
        --tl-testimonial-card-w: min(18.5rem, 84vw);
    }

    .tl-testimonial-card {
        padding: 1.25rem 1.2rem 1.15rem;
        border-radius: var(--hp-radius);
    }

    .tl-public-plans__billing-bar {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        margin-bottom: 1.75rem;
    }

    .tl-public-plans__billing-toggle {
        width: 100%;
        max-width: 22rem;
        justify-content: stretch;
    }

    .tl-public-plans__billing-toggle-btn {
        flex: 1 1 0;
        text-align: center;
        padding-inline: 0.5rem;
    }

    .tl-public-plans__grid {
        max-width: none;
        gap: 0.85rem;
    }

    .tl-public-plans__card {
        flex: 1 1 100%;
        max-width: none;
        gap: 0.85rem;
        padding: 1.25rem 1.1rem;
        border-radius: var(--hp-radius);
    }

    .tl-public-plans__card-header {
        gap: 0.15rem;
    }

    .tl-public-plans__recommendation,
    .tl-public-plans__clinic-label {
        margin-bottom: 0.3rem;
        font-size: 0.625rem;
        letter-spacing: 0.11em;
    }

    .tl-public-plans__card-name {
        font-size: 1.125rem;
    }

    .tl-public-plans__pricing {
        min-height: 2.5rem;
    }

    .tl-public-plans__features {
        gap: 0.55rem;
    }

    .tl-public-plans__details-summary {
        padding-block: 0.5rem;
    }

    .tl-start-step {
        gap: 0.75rem;
        padding: 1.125rem;
        border-radius: var(--hp-radius);
    }

    .tl-start-step__badge {
        width: 2.375rem;
        height: 2.375rem;
        font-size: 0.875rem;
    }

    .tl-start-step__copy h3 {
        font-size: 1.0625rem;
    }

    .tl-start-step__copy p {
        font-size: 0.875rem;
        line-height: 1.6;
    }

    .tl-start-actions {
        align-items: stretch;
        margin-top: 1.5rem;
    }

    .tl-start-actions .tl-btn {
        width: 100%;
        max-width: 22rem;
        justify-content: center;
    }

    .tl-cta {
        border-radius: var(--hp-radius);
        padding: 1.5rem 1.15rem 1.625rem;
        gap: 1rem;
    }

    .tl-cta__copy h2 {
        font-size: clamp(1.35rem, 5.5vw, 1.625rem);
    }

    .tl-cta__lead {
        font-size: 0.9375rem;
    }

    .tl-cta__actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .tl-cta__btn {
        width: 100%;
        min-width: 0;
        justify-content: center;
    }

    .tl-cta__trust {
        padding-top: 1rem;
        font-size: 0.75rem;
    }

    .tl-waiting-list__card {
        flex-direction: column;
        gap: 1rem;
    }

    .tl-waiting-list__trigger {
        width: 100%;
        justify-content: center;
    }

    .tl-waiting-list__modal-shell {
        padding: 0.75rem;
    }

    .tl-waiting-list__modal {
        width: 100%;
        max-height: calc(100vh - 1.5rem);
        border-radius: 1.2rem;
    }

    .tl-waiting-list__modal-head {
        padding: 1rem 1rem 0;
    }

    .tl-waiting-list__modal-body {
        padding: 1rem 1rem 1.1rem;
    }
}

@media (max-width: 430px) {
    .tl-ph-hero__fcard {
        max-width: min(calc(100% - 1.4rem), 11.75rem);
    }

    .tl-ph-hero__fcard--appointments {
        top: 61.8%;
        left: 2.4%;
    }

    .tl-ph-hero__fcard--whatsapp {
        top: 70.4%;
        left: 6.6%;
    }

    .tl-ph-hero__fcard--session-notes {
        top: 78.95%;
        left: 3%;
    }

    .tl-ph-hero__fcard--patient-records {
        top: 87.45%;
        left: 6.9%;
    }

    .tl-ph-hero__fcard--progress {
        top: 95.15%;
        left: 4%;
    }
}

/* =====================================================
   15. RESPONSIVE — narrow phones (≤ 380px)
   ===================================================== */
@media (max-width: 380px) {
    :root {
        --hp-content-pad: 1rem;
    }

    .tl-ph-hero__bg {
        object-position: 58% 28%;
    }

    .tl-ph-hero__fcard {
        padding: 0.42rem 0.52rem;
    }

    .tl-ph-hero__fcard-title {
        font-size: 0.63rem;
    }

    .tl-ph-hero__fcard--appointments {
        top: 62.9%;
        left: 1.8%;
    }

    .tl-ph-hero__fcard--session-notes {
        top: 79.35%;
        left: 2.7%;
    }

    .tl-ph-hero__fcard--patient-records {
        top: 87.85%;
        left: 6.1%;
    }

    .tl-ph-hero__fcard--whatsapp {
        top: 70.95%;
        left: 6.2%;
    }

    .tl-ph-hero__fcard--progress {
        top: 95.45%;
        left: 3.4%;
    }
}
