/* ═══════════════════════════════════════════════════════════════════════════
   Jeddy Wellness — Components
   Corporate-B2B language: flat off-white page, white 1px-bordered cards,
   8px radius, tracked uppercase eyebrows, orange reserved for the primary CTA.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Section furniture ─────────────────────────────────────────────────── */
.section-label {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    /* It is a <p>, so the global `p { max-width: 68ch }` would cap its box and
       leave justify-content:center centering inside a narrower, left-sitting
       box — which read as "the eyebrow is left-aligned, everything else isn't". */
    max-width: none;
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: var(--space-3);
}
.section-label::before {
    content: '';
    width: 24px;
    height: 2px;
    border-radius: 2px;
    background: var(--color-accent);
    flex-shrink: 0;
}
/* Centered contexts get the rule on both sides of the label */
.section-head--center .section-label,
.cta-banner .section-label,
.error-hero .section-label,
.section-label.label-center {
    justify-content: center;
}
.section-head--center .section-label::after,
.cta-banner .section-label::after,
.error-hero .section-label::after,
.section-label.label-center::after {
    content: '';
    width: 24px;
    height: 2px;
    border-radius: 2px;
    background: var(--color-accent);
    flex-shrink: 0;
}

.section-head { max-width: 720px; margin-bottom: var(--space-10); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center p { margin-inline: auto; }
.section-head p {
    margin-top: var(--space-4);
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
}

/* Inverse (dark band) variants */
.band-dark .section-label { color: var(--color-steel); }
.band-dark h2, .band-dark h3 { color: var(--color-text-inverse); }
.band-dark p { color: rgba(255, 255, 255, 0.82); }

/* ── Breadcrumbs ───────────────────────────────────────────────────────── */
.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-5);
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
}
.breadcrumbs a { color: var(--color-text-secondary); }
.breadcrumbs a:hover { color: var(--color-primary); }
.breadcrumbs li { display: inline-flex; align-items: center; gap: var(--space-2); }
.breadcrumbs li + li::before {
    content: '/';
    color: var(--color-steel);
}
.breadcrumbs [aria-current="page"] { color: var(--color-text); font-weight: var(--weight-medium); }

/* ── Buttons ───────────────────────────────────────────────────────────────
   TWO tiers only, used unchanged everywhere on the site:

     .btn--accent    the single action a screen is asking for
     .btn--outline   every secondary action; adapts to light and dark grounds

   There is deliberately no third filled variant. A blue fill previously sat
   alongside the orange, which produced three competing button styles and
   three different label colours across the pages.

   Colour rule: the button fill is --color-cta (#CC4610), deliberately deeper
   than the brand orange, because white on brand #FD703C is 2.78:1 and fails
   WCAG AA — on #CC4610 it is 4.72:1 and passes. Do not "correct" the fill back
   to #FD703C without also reverting the label to a near-black.
   Fills are flat; a gradient fill is what made these read as cheap. Shadows
   stay neutral rather than tinted with the button's own colour.
   ───────────────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 0.85rem 1.75rem;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    font-family: var(--font-display);
    font-size: var(--text-base);
    font-weight: var(--weight-semibold);
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    transition: background var(--transition-fast), color var(--transition-fast),
                border-color var(--transition-fast), transform var(--transition-fast),
                box-shadow var(--transition-fast);
}
.btn:active { transform: translateY(1px); }

.btn--accent {
    background: var(--color-cta);
    border-color: var(--color-cta);
    color: var(--color-on-cta);
    box-shadow: 0 1px 2px rgba(22, 41, 63, 0.16);
}
.btn--accent:hover {
    background: var(--color-cta-hover);
    border-color: var(--color-cta-hover);
    color: var(--color-on-cta);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px -4px rgba(22, 41, 63, 0.28);
}

.btn--outline {
    background: transparent;
    border-color: var(--color-steel);
    color: var(--color-primary);
}
.btn--outline:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px -4px rgba(22, 41, 63, 0.22);
}
.band-dark .btn--outline {
    border-color: rgba(255, 255, 255, 0.38);
    color: var(--color-text-inverse);
}
.band-dark .btn--outline:hover {
    background: var(--color-white);
    border-color: var(--color-white);
    color: var(--color-primary-deep);
}

.btn--sm { padding: 0.55rem 1.15rem; font-size: var(--text-sm); }
.btn--lg { padding: 1.05rem 2.1rem; font-size: var(--text-lg); }
.btn--block { width: 100%; }

.btn .btn-arrow { transition: transform var(--transition-fast); }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* Microcopy under a CTA */
.cta-microcopy {
    margin-top: var(--space-3);
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
}

/* ── Cards ─────────────────────────────────────────────────────────────── */
.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-6);
}

/* Program card (numbered) */
.program-card {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-6);
    color: var(--color-text);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast),
                transform var(--transition-fast);
}
a.program-card:hover {
    color: var(--color-text);
    border-color: var(--color-steel);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}
.program-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.program-card__icon {
    display: grid;
    place-items: center;
    width: 44px; height: 44px;
    border-radius: var(--radius-md);
    background: var(--color-primary-soft);
    color: var(--color-primary);
    transition: background var(--transition-fast), color var(--transition-fast);
}
a.program-card:hover .program-card__icon {
    background: var(--color-primary);
    color: var(--color-white);
}
.program-card__num {
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: var(--weight-bold);
    letter-spacing: 0.08em;
    color: var(--color-accent-text);
}
.program-card__name {
    font-size: var(--text-lg);
    font-weight: var(--weight-bold);
}
.program-card__short {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    flex-grow: 1;
}
.program-card__more {
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
}
/* Ghost card — "the library continues to grow" */
.program-card--ghost {
    border-style: dashed;
    background: transparent;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-text-secondary);
}
.program-card--ghost .program-card__name { color: var(--color-text-secondary); }
.program-card--ghost .program-card__icon {
    background: transparent;
    border: 1px dashed var(--color-steel);
    color: var(--color-text-secondary);
}

/* Conversion card closing the library grid */
.program-card--cta {
    align-items: center;
    justify-content: center;
    text-align: center;
    background:
        radial-gradient(ellipse 100% 70% at 50% 0%, var(--color-accent-soft) 0%, transparent 70%),
        var(--color-surface);
    border-color: var(--color-accent);
}
.program-card--cta .program-card__icon {
    background: var(--color-accent-soft);
    color: var(--color-accent-text);
}
.program-card--cta .program-card__more { color: var(--color-accent-text); }
a.program-card--cta:hover { border-color: var(--color-accent-dark); }

/* ── Chips ─────────────────────────────────────────────────────────────── */
.chip {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: 0.3rem 0.85rem;
    border-radius: var(--radius-full);
    background: var(--color-primary-soft);
    border: 1px solid transparent;
    color: var(--color-primary-dark);
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    white-space: nowrap;
}
.chip--outline {
    background: transparent;
    border-color: var(--color-steel);
    color: var(--color-text-secondary);
}
.band-dark .chip {
    background: rgba(255, 255, 255, 0.12);
    color: var(--color-text-inverse);
}
.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

/* ── Checklist (program includes) ──────────────────────────────────────── */
.checklist { display: grid; gap: var(--space-3); }
.checklist li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    font-weight: var(--weight-medium);
}
.checklist li svg {
    flex-shrink: 0;
    margin-top: 0.2em;
    color: var(--color-success);
}

/* ── Stepper (How it works) ────────────────────────────────────────────── */
.stepper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
    counter-reset: step;
}
.step { position: relative; }
.step__num {
    display: grid;
    place-items: center;
    width: 52px; height: 52px;
    border-radius: var(--radius-full);
    background: var(--color-surface);
    border: 2px solid var(--color-steel);
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: var(--weight-bold);
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: var(--space-4);
    position: relative;
    z-index: 1;
}
.step__title {
    font-size: var(--text-lg);
    margin-bottom: var(--space-2);
}
.step p { font-size: var(--text-sm); color: var(--color-text-secondary); }
/* Connecting rule between steps (desktop), aligned to the circle centers */
.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 26px;
    left: 52px;
    right: calc(-1 * var(--space-6));
    height: 2px;
    background: var(--color-border);
}

/* ── Research flow (Why Jeddy) ─────────────────────────────────────────── */
.flow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-3);
}
.flow__node {
    padding: var(--space-3) var(--space-5);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-family: var(--font-display);
    font-weight: var(--weight-semibold);
    font-size: var(--text-sm);
    color: var(--color-primary-dark);
}
.flow__arrow { color: var(--color-steel); flex-shrink: 0; }

/* ── Testimonials ──────────────────────────────────────────────────────── */
.testimonial-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-8);
    overflow: hidden;
}
.testimonial-card__quote-mark {
    position: absolute;
    top: var(--space-4);
    right: var(--space-5);
    color: var(--color-primary-soft);
}
.testimonial-card__quote-mark svg { width: 56px; height: 56px; }
.testimonial-card__text {
    font-size: var(--text-base);
    color: var(--color-text);
    flex-grow: 1;
    max-width: none;
    position: relative;
}
.testimonial-card__author {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-weight: var(--weight-semibold);
    font-size: var(--text-sm);
}
.testimonial-card__avatar {
    display: grid;
    place-items: center;
    width: 42px; height: 42px;
    border-radius: var(--radius-full);
    background: var(--color-primary-soft);
    color: var(--color-primary);
    font-family: var(--font-display);
    font-weight: var(--weight-bold);
    flex-shrink: 0;
}
.testimonial-card__org {
    display: block;
    font-weight: var(--weight-regular);
    color: var(--color-text-secondary);
}

/* Featured pull-quote layout: first quote large on the left, rest stacked */
.testimonials-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    grid-auto-flow: dense;
    gap: var(--space-5);
    align-items: stretch;
}
/* Fallback for one or two quotes — equal columns, no tall featured card */
.testimonials-grid--even {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
}
.testimonial-card--featured {
    grid-row: span 2;
    padding: var(--space-10);
    background:
        radial-gradient(ellipse 90% 55% at 8% 0%, var(--color-primary-soft) 0%, transparent 60%),
        var(--color-surface);
}
.testimonial-card--featured .testimonial-card__text {
    display: flex;
    align-items: center;
    font-size: clamp(var(--text-xl), 2vw, var(--text-2xl));
    line-height: var(--leading-snug);
    font-weight: var(--weight-medium);
}
.testimonial-card--featured .testimonial-card__quote-mark svg { width: 80px; height: 80px; }

/* ── Partner logo marquee ──────────────────────────────────────────────── */
.partners {
    padding: var(--space-10) 0;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-surface);
}
.partners__label {
    text-align: center;
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-8);
}
.partners__viewport {
    overflow: hidden;
    /* Soft fade at both edges of the loop */
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.partners__track {
    display: flex;
    width: max-content;
    animation: partners-marquee 42s linear infinite;
}
.partners__track:hover { animation-play-state: paused; }
.partners__set {
    display: flex;
    align-items: center;
    gap: clamp(var(--space-10), 6vw, var(--space-16));
    padding-right: clamp(var(--space-10), 6vw, var(--space-16));
}
.partners__set img {
    height: 44px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.6;
    transition: filter var(--transition-base), opacity var(--transition-base);
}
.partners__set img:hover { filter: grayscale(0); opacity: 1; }
@keyframes partners-marquee {
    to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
    .partners__track { animation: none; width: 100%; justify-content: center; }
    .partners__set { flex-wrap: wrap; justify-content: center; padding-right: 0; }
    .partners__set[aria-hidden] { display: none; }
}

/* ── Forms ─────────────────────────────────────────────────────────────── */
.pricing-form { display: grid; gap: var(--space-5); }
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5);
}
.form-field { display: grid; gap: var(--space-2); }
.form-field label {
    font-weight: var(--weight-semibold);
    font-size: var(--text-sm);
}
.form-field .optional {
    font-weight: var(--weight-regular);
    color: var(--color-text-secondary);
}
.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-soft);
}
.form-field textarea { resize: vertical; min-height: 5.5rem; }

/* Checkbox groups — pill-style multi-select */
.form-checks { border: none; display: grid; gap: var(--space-3); }
.form-checks legend {
    font-weight: var(--weight-semibold);
    font-size: var(--text-sm);
    margin-bottom: var(--space-1);
}
.form-checks__grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}
.check-pill { position: relative; display: inline-flex; }
.check-pill input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}
.check-pill span {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    background: var(--color-surface);
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    user-select: none;
}
.check-pill:hover span { border-color: var(--color-steel); }
.check-pill input:checked + span {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
    font-weight: var(--weight-medium);
}
.check-pill input:focus-visible + span {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
}

/* Honeypot — visually removed, still in the accessibility tree order */
.hp-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px; height: 1px;
    overflow: hidden;
}

.form-status { font-weight: var(--weight-medium); min-height: 1.2em; }
.form-status:empty { display: none; }
.form-status--error { color: var(--color-error); }
.form-status--success { color: var(--color-success); }

.form-disclaimer {
    font-size: var(--text-xs);
    color: var(--color-text-secondary);
    max-width: none;
}

/* ── Pricing modal ─────────────────────────────────────────────────────── */
.pricing-modal {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: var(--space-6) var(--space-4);
    overflow-y: auto;
}
.pricing-modal[hidden] { display: none; }
.pricing-modal__backdrop {
    position: fixed;
    inset: 0;
    background: rgba(22, 41, 63, 0.55);
    backdrop-filter: blur(2px);
}
.pricing-modal__dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 620px;
    margin: auto 0;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    animation: modal-in 250ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
@keyframes modal-in {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
}
.pricing-modal__close {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    display: grid;
    place-items: center;
    width: 40px; height: 40px;
    border-radius: var(--radius-full);
    color: var(--color-text-secondary);
    transition: background var(--transition-fast), color var(--transition-fast);
}
.pricing-modal__close:hover {
    background: var(--color-paper-alt);
    color: var(--color-text);
}
.pricing-modal__body { padding: var(--space-8); }
.pricing-modal__title { font-size: var(--text-2xl); margin-bottom: var(--space-2); }
.pricing-modal__text {
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    margin-bottom: var(--space-6);
    max-width: none;
}
body.modal-open { overflow: hidden; }

/* ── Scroll reveal (staggered inside grids) ────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 550ms ease, transform 550ms ease;
    transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-visible { opacity: 1; transform: none; }
.library-grid > .reveal:nth-child(3n+2),
.testimonials-grid > .reveal:nth-child(2),
.stepper > .reveal:nth-child(2),
.delivery-grid > .reveal:nth-child(2),
.package-grid > .reveal:nth-child(2),
.media-grid > .reveal:nth-child(3n+2) { --reveal-delay: 90ms; }
.library-grid > .reveal:nth-child(3n),
.testimonials-grid > .reveal:nth-child(3),
.stepper > .reveal:nth-child(3),
.delivery-grid > .reveal:nth-child(3),
.package-grid > .reveal:nth-child(3),
.media-grid > .reveal:nth-child(3n) { --reveal-delay: 180ms; }
.stepper > .reveal:nth-child(4),
.delivery-grid > .reveal:nth-child(4),
.package-grid > .reveal:nth-child(4) { --reveal-delay: 270ms; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; }
}
