html,
body {
    min-height: 100%;
    overscroll-behavior-y: none;
}

/* Grey page background (darker than the public home page) so the white product cards stand out.
   no-repeat: the glow must not tile when the page is taller than the body box. */
body {
    background-color: var(--sm-color-grey-04);
    background-image: radial-gradient(circle at 78% 12%, rgba(119, 95, 240, 0.08), transparent 30rem);
    background-repeat: no-repeat;
}

/* Feature slides: the product card sits directly on the page, as on the public home page.
   Only the visual frame of .card-page goes away; its padding stays because the sticky
   Continue wrapper's negative margins rely on it. */
[data-get-started-feature] > .card-page {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
}

#get-started-pages {
    min-height: 100vh;
    min-height: 100dvh;
}

.get-started-container {
    max-width: 580px;
}

.get-started-terms {
    margin: 0.25rem auto 1rem;
    color: var(--quiz-color-text-light);
    font-size: 0.72rem;
    line-height: 1.45;
    text-align: center;
}

.get-started-terms a {
    color: inherit;
}

.get-started-progress {
    display: flex;
    justify-content: center;
    gap: 9px;
    min-height: 7px;
    margin-bottom: 1.25rem;
}

.get-started-progress span {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #D6D7E0;
    transition: width 180ms ease, background 180ms ease;
}

.get-started-progress span.active {
    width: 40px;
    background: var(--sm-color-purple);
}

.get-started-copy {
    margin-bottom: 1rem;
    text-align: center;
}

.quiz-container .get-started-title {
    margin-bottom: 0.75rem;
    font-size: clamp(1.85rem, 6vw, 2.25rem);
    font-weight: 600;
    line-height: 1.13;
}

.get-started-accent {
    color: var(--sm-color-purple);
    background: var(--sm-color-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.get-started-subtitle {
    max-width: 440px;
    margin: 0 auto;
    color: var(--quiz-color-text-secondary);
    font-size: 1rem;
    line-height: 1.5;
}

.get-started-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    margin-bottom: 1.25rem;
    padding: 0.25rem 0;
}

.feature-dashboard-card,
.feature-focus-card,
.feature-plan-card {
    width: min(100%, 410px);
    border: 1px solid #E9EAF3;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 14px 42px rgba(76, 56, 143, 0.11);
}

.feature-product-header,
.feature-plan-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.feature-surface-label,
.feature-eyebrow,
.feature-plan-label {
    color: var(--sm-color-purple);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.feature-status,
.feature-period,
.feature-plan-heading > span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    color: var(--sm-color-purple);
    background: #EEE9FF;
    font-size: 0.66rem;
    font-weight: 600;
    white-space: nowrap;
    text-transform: uppercase;
}

.feature-status span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22B964;
    box-shadow: 0 0 0 3px rgba(34, 185, 100, 0.13);
}

/* Dashboard preview */

.feature-dashboard-card {
    padding: 1.25rem;
}

.feature-dashboard-title {
    margin-top: 0.25rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.feature-dashboard-widgets {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 1rem 0 0.8rem;
}

.feature-metric-card,
.feature-checkin-card {
    min-width: 0;
    padding: 0.85rem;
    border: 1px solid #F0EDF9;
    border-radius: 16px;
    background: #FBFAFE;
}

.feature-checkin-card {
    border-color: #F8EDDA;
    background: #FFFBF4;
}

.feature-widget-heading {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
}

.feature-icon {
    display: inline-flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 9px;
    font-size: 0.95rem;
}

.feature-icon-purple {
    color: var(--sm-color-purple);
    background: #EDE8FF;
}

.feature-icon-amber {
    color: #D97706;
    background: #FEF3C7;
}

.feature-label {
    overflow: hidden;
    color: #5D5967;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.4;
}

.feature-value {
    margin-top: 0.6rem;
    font-size: 1.65rem;
    font-weight: 600;
    line-height: 1.1;
}

.feature-value small {
    font-size: 0.75rem;
    font-weight: 600;
}

.feature-positive {
    margin-top: 0.25rem;
    color: #1E8A4C;
    font-size: 0.75rem;
    font-weight: 600;
}

.feature-checkin-value {
    margin-top: 0.65rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.feature-checkin-score {
    display: flex;
    justify-content: space-between;
    margin-top: 0.3rem;
    color: var(--quiz-color-text-secondary);
    font-size: 0.75rem;
}

.feature-checkin-score strong {
    color: #D97706;
}

.feature-priority-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.05rem;
    border: 1px solid rgba(119, 95, 240, 0.22);
    border-radius: 16px;
    background: linear-gradient(102deg, #FAF8FF 0%, #FFFFFF 78%);
    box-shadow: 0 8px 22px rgba(76, 56, 143, 0.08);
}

.feature-priority-icon {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 13px;
    color: #FFF;
    background: linear-gradient(135deg, #775FF0, #9D6DF4);
    box-shadow: 0 6px 14px rgba(119, 95, 240, 0.25);
    font-size: 1.1rem;
}

.feature-priority-title {
    margin: 0.2rem 0;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.4;
    text-wrap: balance;
}

.feature-priority-note {
    color: var(--quiz-color-text-secondary);
    font-size: 0.72rem;
}

/* Focus Area preview */

.feature-focus-card {
    position: relative;
    overflow: hidden;
    padding: 1.25rem;
}

.feature-focus-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: var(--sm-color-gradient);
}

.feature-focus-goal {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-top: 1.2rem;
}

.feature-focus-icon {
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 13px;
    color: #FFF;
    background: linear-gradient(135deg, #7C3AED, #6C5CE7);
    box-shadow: 0 6px 14px rgba(119, 95, 240, 0.23);
    font-size: 1.2rem;
}

.feature-focus-name {
    margin-bottom: 0.25rem;
    color: #1E1E2E;
    font-size: 1.2rem;
    font-weight: 600;
}

.feature-focus-description {
    color: var(--quiz-color-text-secondary);
    font-size: 0.76rem;
    line-height: 1.45;
}

.feature-focus-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.feature-focus-tags span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    border: 1px solid #E0E2E8;
    border-radius: 9px;
    color: #4B5060;
    background: #FFF;
    font-size: 0.72rem;
    font-weight: 600;
}

.feature-focus-tags i {
    color: var(--sm-color-purple);
}

.feature-focus-insight {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.9rem;
    border: 1px solid #EEE8FF;
    border-radius: 15px;
    background: linear-gradient(105deg, #F5F1FF 0%, #FBFAFF 100%);
}

.feature-insight-icon {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 11px;
    color: var(--sm-color-purple);
    background: #FFF;
    box-shadow: 0 4px 12px rgba(76, 56, 143, 0.09);
}

.feature-focus-insight > div:last-child {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.feature-focus-insight strong {
    margin: 0.2rem 0;
    color: #2B2933;
    font-size: 0.84rem;
}

.feature-focus-insight span {
    color: var(--quiz-color-text-secondary);
    font-size: 0.72rem;
}

/* Seven-day plan preview */

.feature-plan-card {
    position: relative;
    padding: 1.25rem 1.25rem 2.55rem;
    /* A background layer follows the card radius while overflow stays visible
       for the platform badge overlapping the bottom edge. */
    background-color: rgba(255, 255, 255, 0.98);
    background-image: var(--sm-color-gradient);
    background-position: top;
    background-repeat: no-repeat;
    background-size: 100% 4px;
}

.feature-plan-heading > span {
    color: #3D3F4C;
    background: var(--sm-color-grey-04);
    text-transform: none;
    font-size: 0.75rem;
}

.feature-plan-heading strong {
    display: block;
    margin-top: 0.2rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.feature-plan-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.4rem;
    margin: 1rem 0;
}

.feature-plan-days span {
    display: inline-flex;
    justify-self: center;
    width: 100%;
    max-width: 2.6rem;
    aspect-ratio: 1;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--sm-color-outline-grey);
    border-radius: 11px;
    color: #6B6D7A;
    background: var(--sm-color-grey-04);
    font-size: 0.8rem;
    font-weight: 600;
}

.feature-plan-days span.done {
    border-color: #EEE9FF;
    color: #5B45D6;
    background: #EEE9FF;
}

/* Today is the single solid accent of the card. */
.feature-plan-days span.today {
    border-color: var(--sm-color-purple);
    color: #FFF;
    background: var(--sm-color-purple);
    box-shadow: 0 4px 12px rgba(119, 95, 240, 0.3);
}

.feature-plan-targets {
    padding: 0.8rem;
    border: 1px solid #EFEDF6;
    border-radius: 15px;
    background: #F8F7FC;
}

.feature-plan-label {
    margin-bottom: 0.45rem;
    color: #5D5967;
}

.feature-plan-target {
    display: grid;
    grid-template-columns: 18px 1fr auto 16px;
    align-items: center;
    gap: 0.45rem;
    padding: 0.2rem 0;
    font-size: 0.75rem;
}

.feature-plan-target > i:first-child {
    color: var(--sm-color-purple);
}

.feature-plan-target > i:last-child {
    color: #22B964;
}

.feature-plan-tools {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    margin-top: 0.75rem;
}

.feature-plan-tools span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.65rem 0.35rem;
    border-radius: 13px;
    color: #3D3F4C;
    background: var(--sm-color-grey-04);
    font-size: 0.69rem;
    font-weight: 600;
}

.feature-plan-tools i {
    color: var(--sm-color-purple);
}

.feature-platforms {
    position: absolute;
    right: 1.25rem;
    bottom: -1rem;
    left: 1.25rem;
    display: flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 1px solid rgba(119, 95, 240, 0.28);
    border-radius: 999px;
    color: var(--sm-color-purple);
    background: #FFF;
    box-shadow: 0 10px 24px rgba(31, 31, 31, 0.08);
    font-size: 0.75rem;
    font-weight: 600;
}

.get-started-visual-plan {
    margin-bottom: 2.25rem;
}

/* Shared Get Started primary action, including email and confirmation screens. */

#get-started-pages .btn-get-started-primary {
    background-image: linear-gradient(92deg, #6B52EC 0%, #EE557E 62%, #F08A2E 112%);
    border: 0;
    border-radius: 999px;
    /* Not "all": the gradient image switches instantly, so a background-color fade would flash
       Bootstrap's solid button color underneath when the button is disabled. */
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

@media (any-hover: hover) and (any-pointer: fine) {
    #get-started-pages .btn-get-started-primary:not(:disabled):not(.disabled):hover {
        background-image: linear-gradient(92deg, #5E45DD 0%, #E04A73 62%, #E07D25 112%);
    }
}

#get-started-pages .btn-get-started-primary:not(:disabled):not(.disabled):active {
    background-image: linear-gradient(92deg, #5139C8 0%, #CC4268 62%, #CC7020 112%);
}

#get-started-pages .btn-get-started-primary:disabled,
#get-started-pages .btn-get-started-primary.disabled {
    color: var(--sm-color-grey-03);
    background-color: var(--sm-color-outline-grey);
    background-image: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    opacity: 1;
}

/* Loading (the flow's spinner while it works): keep the brand look instead of the grey
   "not available" state, so the click reads as progress rather than failure. */
#get-started-pages .btn-get-started-primary:disabled:has(.spinner-border) {
    color: #FFF;
    background-image: linear-gradient(92deg, #6B52EC 0%, #EE557E 62%, #F08A2E 112%);
    opacity: 0.85;
}

/* Larger screens: the slide's action matches the product card width, one even column. */
@media (min-width: 576px) {
    [data-get-started-feature] .btn-get-started-next {
        max-width: 410px;
    }
}

@media (max-width: 575.98px) {
    /* The slide frame is invisible, so its side padding only narrows the product card.
       Keep 0.25rem: the sticky Continue wrapper extends 1rem sideways and must stay
       inside the container's own 1rem padding (no horizontal scroll). */
    [data-get-started-feature] > .card-page {
        --bs-card-spacer-x: 0.25rem;
        --bs-card-spacer-y: 1rem;
    }

    .get-started-subtitle {
        font-size: 0.9rem;
    }

    .get-started-visual {
        min-height: 300px;
    }

    .feature-dashboard-card,
    .feature-focus-card,
    .feature-plan-card {
        padding: 1rem;
        border-radius: 19px;
    }

    .feature-plan-card {
        padding-bottom: 2.35rem;
    }

    .feature-dashboard-widgets {
        gap: 0.55rem;
    }

    .feature-metric-card,
    .feature-checkin-card {
        padding: 0.7rem;
    }

    .feature-priority-title,
    .feature-focus-insight strong {
        font-size: 0.8rem;
    }
}

@media (max-height: 720px) {
    .get-started-visual {
        min-height: 280px;
    }

    .get-started-copy {
        margin-bottom: 0.75rem;
    }
}
