/* ============================================================================
   step-timeline.css
   ----------------------------------------------------------------------------
   Styles for the "Step Timeline" row (stepTimeline.vm): an eyebrow chip and
   heading above a vertical timeline of circled step numbers joined by a
   connecting rule. Each step can carry filled / outline buttons, a phone
   callout chip, a row of info cards, and a footnote. Reproduces the "Five
   Steps" section of Get Started - Desktop 1440.pdf.

   Colors, fonts, and spacing come ONLY from the variables declared in
   style.css (the per-site theme set through Global Setup), so the row
   re-themes with the site:
     --primary-template            green   headings, filled buttons, links
     --secondary-template          black   eyebrow chip, number circles
     --accent-template             lime    numerals, card accent border
     --body-text-template          body copy
     --body-bg-template            card / callout surface
     --primary-font-template       headings + body (with --primary-font-style)
     --secondary-font-template     eyebrow + buttons (with --secondary-font-style)
     --primary-relative-template   lighter primary, button hover
     --input-border-template       card / callout borders
     --input-text-muted-template   footnote
     --rounded-input, --shadow-control, --space-sm, --space-md
   White (#fff) on the filled button and number circles is a fixed contrast
   constant, same as --input-surface-template in style.css.

   The row background (the pale mint band) is NOT set here. It comes from the
   row's rowColor class, same as every other row format; this file never
   declares a background-color on .step-timeline-row.

   Structural chrome (.container / .row / .col-md-12 / .section-padding)
   comes from the site's existing stylesheets and is not duplicated.
   ============================================================================ */

.step-timeline-row,
.step-timeline-row * {
    box-sizing: border-box;
}

.step-timeline-row {
    --step-timeline-num-size: 40px;
    --step-timeline-num-gap: 24px;
    --step-timeline-rule: color-mix(in srgb, var(--body-text-template) 25%, transparent);
    --step-timeline-gap-lg: calc(var(--space-md) * 2.5);
}

.step-timeline {
    font-family: var(--primary-font-template), var(--primary-font-style);
    color: var(--body-text-template);
}

/* ── Eyebrow chip + heading + intro ── */
.step-timeline__kicker {
    display: inline-block;
    background: var(--secondary-template);
    color: #fff;
    font-family: var(--secondary-font-template), var(--secondary-font-style);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: var(--space-sm) calc(var(--space-sm) * 1.25);
}
.step-timeline__heading {
    margin: var(--space-md) 0 var(--space-sm);
    font-family: var(--primary-font-template), var(--primary-font-style);
    font-size: var(--ds-headline-size);
    font-weight: 700;
    line-height: 1.25;
    color: var(--primary-template);
}
.step-timeline__lead {
    margin: 0 0 var(--space-md);
    max-width: 640px;
    font-size: 19px;
    font-weight: 300;
    line-height: 1.7;
}

/* ── Step list ── */
.step-timeline__steps {
    counter-reset: step-timeline-step;
    list-style: none;
    margin: calc(var(--space-md) * 1.5) 0 0;
    padding: 0;
}
.step-timeline__step {
    counter-increment: step-timeline-step;
    display: grid;
    grid-template-columns: var(--step-timeline-num-size) minmax(0, 1fr);
    column-gap: var(--step-timeline-num-gap);
    margin: 0;
    padding: 0;
}

/* Number circle + connector rule (the rule stretches to the next circle) */
.step-timeline__num-col {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.step-timeline__num {
    flex: 0 0 auto;
    width: var(--step-timeline-num-size);
    height: var(--step-timeline-num-size);
    border-radius: 999px;
    background: var(--secondary-template);
    color: var(--accent-template);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--secondary-font-template), var(--secondary-font-style);
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
}
.step-timeline__num::before {
    content: counter(step-timeline-step);
}
.step-timeline__rule {
    flex: 1 1 auto;
    width: 2px;
    margin: var(--space-sm) 0;
    background: var(--step-timeline-rule);
}
.step-timeline__step:last-child .step-timeline__rule {
    display: none;
}

/* Step content */
.step-timeline__content {
    min-width: 0;
    padding-bottom: var(--step-timeline-gap-lg);
}
.step-timeline__step:last-child .step-timeline__content {
    padding-bottom: 0;
}
.step-timeline__title {
    /* sits on the number circle's vertical center */
    margin: 0 0 var(--space-sm);
    font-family: var(--primary-font-template), var(--primary-font-style);
    font-size: 22px;
    font-weight: 600;
    line-height: var(--step-timeline-num-size);
    color: var(--body-text-template);
}
.step-timeline__body {
    margin: 0 0 var(--space-md);
    max-width: 640px;
    font-size: 16px;
    line-height: 1.8;
}

/* ── Buttons + phone callout ── */
.step-timeline__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-md) calc(var(--space-sm) * 1.5);
    margin: 0 0 var(--space-md);
}
.step-timeline__button {
    display: inline-block;
    padding: calc(var(--space-sm) * 1.25) calc(var(--space-md) * 1.25);
    border: 2px solid var(--primary-template);
    border-radius: var(--rounded-input);
    background: var(--primary-template);
    box-shadow: var(--shadow-control);
    color: #fff;
    font-family: var(--secondary-font-template), var(--secondary-font-style);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    transition: var(--transition-medium, background-color 0.2s ease, color 0.2s ease);
}
.step-timeline__button:hover,
.step-timeline__button:focus {
    background: var(--primary-relative-template);
    border-color: var(--primary-relative-template);
    color: #fff;
    text-decoration: none;
}
.step-timeline__button--outline {
    background: rgba(255, 255, 255, 1.0);
    box-shadow: none;
    color: var(--primary-template);
}
.step-timeline__button--outline:hover,
.step-timeline__button--outline:focus {
    background: linear-gradient(180deg, var(--primary-template) 100%) oklch(from var(--primary-template) calc(l + 0.10) c h) 0%;
    border-color: var(--primary-template);
    color: #fff;
}
.step-timeline__button:focus-visible,
.step-timeline__callout a:focus-visible,
.step-timeline__card a:focus-visible {
    outline: 3px solid var(--accent-template);
    outline-offset: 2px;
}

.step-timeline__callout {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-sm);
    padding: calc(var(--space-sm) * 1.25) var(--space-md);
    border: 1px solid var(--input-border-template);
    border-radius: var(--rounded-input);
    background: var(--body-bg-template);
    font-size: 14px;
    line-height: 1.5;
}
.step-timeline__callout i {
    color: var(--primary-template);
}
.step-timeline__callout a {
    color: var(--primary-template);
    font-weight: 700;
    text-decoration: underline;
}
.step-timeline__callout a:hover {
    color: var(--primary-relative-template);
}

/* ── Info cards (three across, extra cards wrap) ── */
.step-timeline__cards {
    list-style: none;
    margin: var(--space-md) 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-md);
}
.step-timeline__card {
    margin: 0;
    padding: var(--space-md) calc(var(--space-md) * 1.25);
    border: 1px solid var(--input-border-template);
    border-radius: var(--rounded-input);
    background: var(--body-bg-template);
    box-shadow:0 2px 4px rgba(0, 0, 0, .3);
}
.step-timeline__card--accent {
    border-top: 3px solid var(--accent-template);
}
.step-timeline__card-title {
    margin: 0 0 var(--space-sm);
    font-family: var(--primary-font-template), var(--primary-font-style);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--primary-template);
}
.step-timeline__card-body {
    font-size: 14px;
    line-height: 1.6;
}
.step-timeline__card-body p {
    margin: 0 0 var(--space-sm);
}
.step-timeline__card-body p:last-child {
    margin-bottom: 0;
}
.step-timeline__card-body a {
    color: var(--primary-template);
    font-weight: 700;
    text-decoration: underline;
}
.step-timeline__card-body a:hover {
    color: var(--primary-relative-template);
}

/* ── Footnote ── */
.step-timeline__footnote {
    margin: var(--space-md) 0 0;
    font-size: 13px;
    line-height: 1.6;
    color: var(--input-text-muted-template);
}

/* ── Responsive ── */
@media (max-width: 991px) {
    .step-timeline__cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 575px) {
    .step-timeline-row {
        --step-timeline-num-size: 34px;
        --step-timeline-num-gap: var(--space-md);
    }
    .step-timeline__heading {
        font-size: 28px;
    }
    .step-timeline__title {
        font-size: 19px;
    }
    .step-timeline__cards {
        grid-template-columns: 1fr;
    }
    .step-timeline__button {
        flex: 1 1 100%;
        text-align: center;
    }
}
