@keyframes bdPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(74, 125, 112, 0.5);
    }

    70% {
        box-shadow: 0 0 0 18px rgba(74, 125, 112, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(74, 125, 112, 0);
    }
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #18181A;
    --sage: #4A7D70;
    --sage-dark: #3A6459;
    --sage-glow: rgba(74, 125, 112, 0.25);
    --text: #E5E5E7;
    --muted: rgba(229, 229, 231, 0.5);
    --card: #252527;
    --card-hover: #2E2E31;
    --border: rgba(255, 255, 255, 0.08);
    --progress-bg: #2C2C2E;
    --terracotta: #D8A48F;
    --terracotta-bg: rgba(216, 164, 143, 0.15);
    --orange: #FB923C;
    --orange-bg: rgba(251, 146, 60, 0.15);
    --blue: #60A5FA;
    --blue-bg: rgba(96, 165, 250, 0.15);
    --green-light: #4ADE80;
    --green-bg: rgba(74, 222, 128, 0.15);
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 4px 24px rgba(0, 0, 0, 0.4);
    --radius: 16px;
    --transition: 0.2s ease;
}

html,
body {
    background-color: var(--bg);
    background-image:
        linear-gradient(rgba(74, 125, 112, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(74, 125, 112, 0.06) 1px, transparent 1px);
    background-size: 32px 32px;
    color: var(--text);
    font-family: 'Nunito', sans-serif;
    min-height: 100dvh;
    overflow-x: hidden;
}

.page {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ── Sticky header: [back] [progress] full-width ── */
.header {
    width: 100%;
    padding: 10px 2% 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: sticky;
    top: 0;
    background: var(--bg);
    z-index: 10;
}

.header.hidden {
    visibility: hidden;
}

.back-btn {
    width: clamp(32px, 8vw, 48px);
    height: clamp(32px, 8vw, 48px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text);
    border-radius: 50%;
    flex-shrink: 0;
    transition: background var(--transition);
    padding: 0;
}

.back-btn svg {
    width: clamp(16px, 4vw, 22px);
    height: clamp(16px, 4vw, 22px);
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.07);
}

.back-btn.hidden {
    visibility: hidden;
    pointer-events: none;
}

.progress-track {
    flex: 1;
    position: relative;
    height: 6px;
    background: var(--progress-bg);
    border-radius: 99px;
    overflow: hidden;
}

.progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: var(--sage);
    width: 0%;
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 10px var(--sage-glow);
    z-index: 1;
}

.progress-break {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 6px;
    background: var(--bg);
    z-index: 2;
}

/* ── Screen container ── */
.screen-wrap {
    position: fixed;
    top: 56px;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 100%;
    max-width: 580px;
    display: flex;
    flex-direction: column;
    padding: 24px 24px 130px;
    /* Space for footer and top breathing room */
    overflow-y: auto;
}

.screen {
    display: none;
    flex-direction: column;
    flex: 1;
    min-height: 100%;
    animation: fadeUp 0.32s ease both;
}

.screen.active {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-left: 5%;
    padding-right: 5%;
}

.screen.top-start {
    justify-content: flex-start !important;
    padding-top: 5dvh !important;
    padding-left: 5% !important;
    padding-right: 5% !important;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fingerBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

/* ── Illustration area ── */
.illus-wrap {
    width: 100%;
    height: clamp(180px, 32dvh, 280px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 0;
    overflow: hidden;
    flex-shrink: 0;
}

.illus-img {
    width: 100%;
    max-width: 320px;
    height: 220px;
    object-fit: contain;
    border-radius: 20px;
}

.illus-img-tall {
    width: 100%;
    max-width: 280px;
    height: 260px;
    object-fit: contain;
}

/* ── Aaron avatar bubble ── */
.aaron-wrap {
    display: flex;
    justify-content: center;
    margin: 0 0 16px 0;
}

.aaron-bubble {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: rgba(74, 125, 112, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0;
}

.aaron-bubble-dark {
    background: rgba(255, 255, 255, 0.03);
}

.aaron-bubble img {
    width: 170px;
    height: 170px;
    object-fit: contain;
    object-position: center center;
    margin-top: 12px;
}

/* ── Typography ── */
.screen-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(1.45rem, 5vw, 1.85rem);
    font-weight: 800;
    line-height: 1.25;
    color: var(--text);
    margin-bottom: 8px;
    text-align: center;
    max-width: 428px;
    margin-left: auto;
    margin-right: auto;
}

.screen-subtitle {
    font-size: 1rem;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 28px;
    text-align: center;
    max-width: 428px;
    margin-left: auto;
    margin-right: auto;
}

/* Standardized heights only for intro screens where consistency is key */
.consistent-intro .screen-title {
    margin-top: 56px;
    min-height: unset;
}

.consistent-intro .screen-subtitle {
    min-height: unset;
}

.question {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(1.15rem, 4vw, 1.45rem);
    font-weight: 700;
    color: var(--text);
    line-height: 1.35;
    text-align: center;
    margin-bottom: 64px;
    max-width: 428px;
    margin-left: auto;
    margin-right: auto;
}

.question .name-hl {
    color: var(--sage);
}

.eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--sage);
    margin-bottom: 10px;
}

/* ── Slide dots ── */
.slide-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 12px 0 20px;
}

.slide-dot {
    width: 8px;
    height: 8px;
    border-radius: 99px;
    background: rgba(44, 74, 66, 0.2);
    transition: all 0.3s;
}

.slide-dot.active {
    background: var(--sage);
    width: 24px;
}

/* ── Quiz option pills ── */
.options {
    width: 100%;
    max-width: 428px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
}

.option {
    height: 60px;
    background: var(--card);
    border: 1.5px solid transparent;
    border-radius: 30px;
    padding: 0 24px;
    cursor: pointer;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow);
    transition: border-color var(--transition), background var(--transition), transform var(--transition);
    user-select: none;
}

.option:hover {
    background: var(--card-hover);
    transform: translateY(-1px);
}

.option.selected {
    border-color: var(--sage);
    font-weight: 700;
    color: var(--sage);
}

.option-check {
    display: none;
    color: var(--sage);
    flex-shrink: 0;
}

.option.selected .option-check {
    display: block;
}

/* ── 2×2 peak grid ── */
.options-grid {
    width: 100%;
    max-width: 428px;
    margin-left: auto;
    margin-right: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 16px;
}

.option-tile {
    background: var(--card);
    border: 1.5px solid transparent;
    border-radius: 20px;
    padding: 16px 12px;
    cursor: pointer;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all var(--transition);
    user-select: none;
}

.option-tile:hover {
    background: var(--card-hover);
    transform: translateY(-1px);
}

.option-tile.selected {
    background: var(--sage);
    border-color: var(--sage);
    box-shadow: 0 4px 16px var(--sage-glow);
}

.tile-icon {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.tile-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 3px;
    transition: color var(--transition);
}

.tile-sub {
    font-size: 0.75rem;
    color: var(--muted);
    transition: color var(--transition);
}

.option-tile.selected .tile-label,
.option-tile.selected .tile-sub {
    color: rgba(255, 255, 255, 0.9);
}

/* ── Text input ── */
.input-field {
    width: 100%;
    max-width: 428px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    background: var(--card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
    font-size: 1rem;
    font-family: 'Nunito', sans-serif;
    font-weight: 500;
    color: var(--text);
    outline: none;
    box-shadow: var(--shadow);
    transition: border-color var(--transition), box-shadow var(--transition);
    margin-bottom: 24px;
}

.input-field::placeholder {
    color: var(--muted);
}

.input-field:focus {
    border-color: var(--sage);
    box-shadow: 0 0 0 3px var(--sage-glow);
}

.hint-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(74, 125, 112, 0.7);
    margin-bottom: 36px;
}

/* ── Continue button ── */
.btn {
    width: 100%;
    height: 56px;
    border-radius: 30px;
    border: none;
    font-family: 'Nunito', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
}

.btn-primary {
    background: var(--sage);
    color: #fff;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--sage-glow);
}

.btn-primary:disabled {
    background: rgba(74, 125, 112, 0.3);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ── Archetype cards ── */
.archetype-grid {
    width: 100%;
    max-width: 428px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 14px;
}

.archetype-card {
    background: var(--card);
    border: 2px solid transparent;
    border-radius: var(--radius);
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow);
    transition: border-color var(--transition), transform var(--transition);
}

.archetype-card:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.archetype-card.selected.sprinter {
    border-color: var(--orange);
}

.archetype-card.selected.wanderer {
    border-color: var(--green-light);
}

.archetype-card.selected.freezer {
    border-color: var(--blue);
}

.arch-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.arch-icon-wrap.sprinter {
    background: var(--orange-bg);
}

.arch-icon-wrap.wanderer {
    background: var(--green-bg);
}

.arch-icon-wrap.freezer {
    background: var(--blue-bg);
}

.archetype-info {
    flex: 1;
}

.archetype-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 2px;
}

.archetype-desc {
    font-size: 0.83rem;
    color: var(--muted);
}

.archetype-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid var(--border);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.archetype-card.selected .archetype-check {
    border-color: var(--sage);
    background: var(--sage);
}

.archetype-card.selected.sprinter .archetype-check {
    border-color: var(--orange);
    background: var(--orange);
}

.archetype-card.selected.freezer .archetype-check {
    border-color: var(--blue);
    background: var(--blue);
}

.archetype-check-inner {
    display: none;
    width: 5px;
    height: 8px;
    border: 2px solid white;
    border-top: none;
    border-left: none;
    transform: rotate(45deg) translateY(-1px);
}

.archetype-card.selected .archetype-check-inner {
    display: block;
}

.mix-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    padding: 10px 0;
    width: 100%;
    max-width: 428px;
    margin: 0 auto 12px auto;
    user-select: none;
}

.mix-box {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 2px solid var(--border);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    flex-shrink: 0;
}

.mix-box.checked {
    background: var(--sage);
    border-color: var(--sage);
}

/* ── Insight screen ── */
.insight-page {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.insight-label-pill {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 99px;
    margin-bottom: 20px;
}

.insight-label-pill.bad {
    background: var(--terracotta-bg);
    color: var(--terracotta);
}

.insight-label-pill.good {
    background: rgba(44, 74, 66, 0.12);
    color: var(--sage);
}

.insight-stat {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(1.35rem, 4vw, 1.7rem);
    font-weight: 700;
    line-height: 1.35;
    color: var(--text);
    margin-bottom: 16px;
    text-align: center;
}

.insight-stat .hl-bad {
    color: var(--terracotta);
    font-weight: 800;
}

.insight-stat .hl-green {
    color: var(--sage);
    font-weight: 800;
}

.insight-source {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.2);
    text-align: center;
    margin-top: 12px;
}

/* ── Analyzing screen (Plan Building) ── */
.analyzing-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.analyzing-pct {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 4.4rem;
    /* 20% smaller than 5.5rem */
    font-weight: 800;
    color: var(--text);
    line-height: 1.1;
    letter-spacing: -2px;
}

.analyzing-title {
    font-size: 1.25rem;
    font-weight: 700;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text);
    margin: 16px 0 32px;
    max-width: 250px;
    line-height: 1.4;
}

.analyzing-track {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 24px;
}

.analyzing-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(to right, #F4A5AE, #82A2E6);
    border-radius: 4px;
    transition: width 0.1s linear;
}

.analyzing-status {
    font-size: 0.95rem;
    color: var(--muted);
    margin-bottom: 40px;
}

.analyzing-card {
    background: #252528;
    border-radius: 20px;
    padding: 24px;
    width: 110%;
    /* increased by 10% */
    margin-left: -5%;
    margin-right: -5%;
    text-align: left;
}

.analyzing-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text);
    margin: 0 0 24px 0;
}

.analyzing-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.analyzing-list li {
    display: flex;
    align-items: center;
    font-size: 1.05rem;
    color: var(--muted);
    transition: color 0.3s ease;
}

.analyzing-list li .li-dot {
    margin-right: 12px;
    font-weight: bold;
    opacity: 0.5;
}

.analyzing-list li .li-check {
    margin-left: auto;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.analyzing-list li .li-check svg {
    width: 12px;
    height: 12px;
    stroke: #252528;
    stroke-width: 3px;
}

.analyzing-list li.done {
    color: var(--text);
}

.analyzing-list li.done .li-check {
    opacity: 1;
    transform: scale(1);
}

/* ── Summary card ── */
.summary-card {
    background: #252528;
    border-radius: 20px;
    box-sizing: border-box;
    margin: 0 0 28px 0;
    border: none;
    overflow: hidden;
}

.summary-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-orange {
    background: rgba(239, 137, 67, 0.1);
    color: #EF8943;
}

.icon-green {
    background: rgba(74, 125, 112, 0.15);
    color: #4A7D70;
}

.summary-text-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.summary-key {
    font-size: 0.72rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}

.summary-val {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* ── Save Your Progress screen ── */
.save-progress-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    padding: 0 28px;
}

.sp-logo-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.sp-logo-crop {
    width: clamp(280px, 62vw, 340px);
    height: clamp(168px, 37vw, 204px);
    /* ~60% of image height — tighter crop */
    overflow: hidden;
}

.sp-logo-img {
    width: 100%;
    height: clamp(280px, 62vw, 340px);
    object-fit: contain;
    object-position: top center;
    filter: invert(44%) sepia(30%) saturate(500%) hue-rotate(120deg) brightness(90%) contrast(90%);
}

.sp-wordmark {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(1.6rem, 5vw, 2.2rem);
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
    margin-top: -10%;
}

.sp-tagline {
    font-size: 0.95rem;
    color: var(--muted);
    font-weight: 500;
}

.sp-heading-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 17.6px;
}

.sp-heading {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(1.35rem, 4.5vw, 1.7rem);
    font-weight: 800;
    color: var(--text);
    line-height: 1.25;
}

.sp-sub {
    font-size: 0.92rem;
    color: var(--muted);
    line-height: 1.5;
    max-width: 360px;
    margin-bottom: 24px;
}

/* Email Input Styles */
.sp-email-section {
    width: 100%;
    text-align: left;
    margin-bottom: 24px;
}

.sp-email-label {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--muted);
    letter-spacing: 0.05em;
    margin-bottom: 12px;
    display: block;
}

.sp-input-container {
    width: 100%;
    height: 64px;
    background: #1C1C1E;
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    transition: border-color var(--transition);
}

.sp-input-container:focus-within {
    border-color: var(--sage);
}

.sp-input-container.invalid {
    border-color: #e05c5c;
    animation: shake 0.3s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25%       { transform: translateX(-6px); }
    75%       { transform: translateX(6px); }
}

.sp-input-container,
.sp-input-container:focus,
.sp-input-container:focus-within {
    outline: none !important;
    box-shadow: none !important;
}

.sp-email-input,
.sp-email-input:-webkit-autofill,
.sp-email-input:-webkit-autofill:hover,
.sp-email-input:-webkit-autofill:focus {
    outline: none !important;
    box-shadow: none !important;
    -webkit-box-shadow: 0 0 0px 1000px #1C1C1E inset !important;
    -webkit-text-fill-color: #E5E5E7 !important;
    -webkit-appearance: none;
    appearance: none;
}

.sp-cta-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.sp-input-icon {
    color: var(--muted);
    margin-right: 14px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.sp-email-input {
    width: 100%;
    background: transparent;
    border: none;
    color: #E5E5E7;
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    outline: none;
}

.sp-email-input::placeholder,
.sp-email-input::-webkit-input-placeholder,
.sp-email-input::-moz-placeholder {
    color: rgba(255, 255, 255, 0.18) !important;
    opacity: 1;
    font-style: italic;
}

.sp-cta-btn {
    width: 100%;
    height: 56px;
    border-radius: 14px;
    border: none;
    background: #2C3E37;
    /* Dark Sage tone from screenshot */
    color: var(--text);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.1s;
}

.sp-cta-btn:active {
    transform: scale(0.98);
}

.sp-cta-btn:hover {
    filter: brightness(1.1);
}

.sp-sent-msg {
    font-size: 0.88rem;
    color: var(--sage);
    line-height: 1.5;
    margin-top: 4px;
}

/* ── Commitment screen ── */
.commitment-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 60px;
    /* More space before hold button */
    padding: 0 8px;
    width: 100%;
    max-width: 400px;
}

.commitment-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(74, 125, 112, 0.08);
    border: 1px solid rgba(74, 125, 112, 0.2);
    border-radius: 14px;
    padding: 14px 16px;
}

.commitment-check {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--sage);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.commitment-check svg {
    width: 14px;
    height: 14px;
}

.commitment-text {
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(229, 229, 231, 0.9);
    font-weight: 600;
}

/* ── Hold-to-agree button ── */
.hold-btn-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}

.commitment-footnote {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.3);
    text-align: center;
    margin-top: -8px;
    line-height: 1.5;
}

.hold-btn-circle {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: rgba(74, 125, 112, 0.12);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hold-btn-circle svg.progress-ring {
    position: absolute;
    inset: -3px;
    width: 94px;
    height: 94px;
    transform: rotate(-90deg);
}

.hold-btn-circle svg.progress-ring circle {
    fill: none;
    stroke: var(--sage);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    transition: stroke-dashoffset 0.05s linear;
}

.hold-btn-icon {
    color: var(--sage);
    /* Coloring SVG */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.hold-btn-label {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    text-align: center;
}

.hold-btn-label.committed {
    color: var(--sage);
    font-size: 1.25rem;
}

/* ── Brain dump chat ── */
.chat-area {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 16px;
    min-height: 0;
    scrollbar-width: none;
    /* Firefox */
}

.chat-area::-webkit-scrollbar {
    display: none;
}

/* Chrome/Safari */

/* Brain dump screen uses a proper full-height chat layout */
#screen-brain-dump {
    overflow: hidden;
    max-height: calc(100dvh - 56px - 24px - 130px);
}

/* Breakdown screen: sticky header + scrollable cards */
#screen-breakdown {
    overflow: hidden;
    max-height: calc(100dvh - 56px - 24px - 130px);
}

#screen-breakdown.active {
    flex-direction: column;
}

#screen-breakdown .task-cards,
#screen-breakdown #breakdown-loading {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    scrollbar-width: none;
}

#screen-breakdown .task-cards::-webkit-scrollbar,
#screen-breakdown #breakdown-loading::-webkit-scrollbar {
    display: none;
}

.chat-bubble {
    max-width: 85%;
    padding: 12px 16px;
    font-size: 0.95rem;
    line-height: 1.4;
    animation: fadeUp 0.2s ease both;
}

.chat-bubble.aaron {
    background: var(--card);
    border-radius: 20px 20px 20px 4px;
    align-self: flex-start;
    color: var(--text);
    box-shadow: var(--shadow);
}

.chat-bubble.user {
    background: var(--sage);
    color: #fff;
    border-radius: 20px 20px 4px 20px;
    align-self: flex-end;
}

.typing-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 14px 16px;
    background: var(--card);
    border: 1.5px solid var(--border);
    border-radius: 18px;
    border-bottom-left-radius: 4px;
    align-self: flex-start;
    width: fit-content;
    box-shadow: var(--shadow);
}

.typing-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--muted);
    animation: typingBounce 1.2s infinite ease-in-out;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingBounce {

    0%,
    60%,
    100% {
        transform: translateY(0);
        opacity: 0.4;
    }

    30% {
        transform: translateY(-5px);
        opacity: 1;
    }
}

.chat-input-row {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    padding: 12px 0 4px;
    border-top: 1px solid rgba(229, 229, 231, 0.05);
    width: 100%;
}

.chat-input {
    flex: 1;
    background: var(--card);
    border: 1.5px solid var(--border);
    border-radius: 24px;
    padding: 13px 20px;
    font-size: 0.95rem;
    font-family: 'Nunito', sans-serif;
    color: var(--text);
    outline: none;
    resize: none;
    min-height: 48px;
    max-height: 120px;
    box-shadow: var(--shadow);
    transition: border-color var(--transition);
    line-height: 1.5;
}

.chat-input::placeholder {
    color: var(--muted);
}

.chat-input:focus {
    border-color: var(--sage);
}

.send-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--sage);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform var(--transition), opacity var(--transition);
}

.send-btn:hover:not(:disabled) {
    transform: scale(1.08);
}

.send-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* ── Magic breakdown ── */
.breakdown-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 40px 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.breakdown-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--sage);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}

.task-cards {
    display: block;
    margin-bottom: 24px;
}

/* Flutter-style task section (flat header + individual step cards) */
.task-section {
    margin-bottom: 8px;
}

.task-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    cursor: pointer;
    user-select: none;
}

.task-section-title {
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.063em;
    text-transform: uppercase;
    color: rgba(229, 229, 231, 0.6);
    flex: 1;
}

.task-section-chevron {
    color: rgba(229, 229, 231, 0.3);
    flex-shrink: 0;
    transition: transform 0.2s;
}

.task-section.open .task-section-chevron {
    transform: rotate(180deg);
}

.task-section-steps {
    display: none;
    padding-top: 8px;
}

.task-section.open .task-section-steps {
    display: block;
}

/* Individual step card */
.step-card {
    background: var(--card);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: var(--shadow);
}

.step-card-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.step-num-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(74, 125, 112, 0.1);
    color: var(--sage);
    font-size: 0.875rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-card-content {
    flex: 1;
}

.step-card-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
    line-height: 1.35;
}

.step-card-duration {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: rgba(229, 229, 231, 0.4);
}

.slide-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 20px;
}

.consistent-intro {
    position: relative;
}

.consistent-intro .slide-dots {
    position: absolute;
    bottom: 10dvh;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 0;
}

.step-card-tip {
    margin-top: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    display: flex;
    gap: 8px;
    align-items: flex-start;
    font-size: 0.75rem;
    font-style: italic;
    color: var(--text);
    line-height: 1.4;
}

.step-tip-icon {
    color: var(--sage);
    flex-shrink: 0;
    margin-top: 1px;
}

/* ── Body doubling preview ── */
.bd-benefits {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    text-align: left;
    margin-top: 8px;
    margin-bottom: 28px;
}

.bd-benefit {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--card);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    padding: 13px 16px;
    font-size: 0.9rem;
    color: var(--text);
    box-shadow: var(--shadow);
}

.bd-benefit-icon {
    font-size: 1.1rem;
    width: 34px;
    height: 34px;
    background: rgba(74, 125, 112, 0.15);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ── Info (landing) screen ── */
.info-headline {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(1.6rem, 6vw, 2rem);
    font-weight: 800;
    color: var(--text);
    line-height: 1.2;
    text-align: center;
    margin: 0 0 24px;
}

.info-preview-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    overflow: hidden;
    margin-top: auto;
    margin-bottom: auto;
}

@media (max-width: 600px) {
    .info-preview-wrap {
        transform: translateY(-10dvh);
    }
}

.intro-content {
    transform: translateY(-10dvh);
}

.info-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    width: 100%;
    max-width: 320px;
    animation: infoPulse 4s ease-in-out infinite;
}

@keyframes infoPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.018);
    }
}

.preview-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(74, 125, 112, 0.7);
    margin-bottom: 8px;
    animation: fadeUpIn 0.4s ease both;
}

.preview-input-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--card);
    border-radius: 20px;
    padding: 12px 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(229, 229, 231, 0.6);
    animation: slideDownIn 0.6s ease both;
    animation-delay: 0.2s;
    opacity: 0;
    animation-fill-mode: forwards;
}

.preview-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 8px 0;
    animation: fadeUpIn 0.5s ease both;
    animation-delay: 0.6s;
    opacity: 0;
    animation-fill-mode: forwards;
}

.preview-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(74, 125, 112, 0.5);
}

.preview-connector svg {
    color: rgba(74, 125, 112, 0.5);
    margin-top: 2px;
}

.preview-cards {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    animation: slideUpIn 0.6s ease both;
    animation-delay: 0.9s;
    opacity: 0;
    animation-fill-mode: forwards;
}

.preview-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--card);
    border-radius: 16px;
    padding: 12px 16px;
    box-shadow: 0 2px 10px rgba(45, 36, 32, 0.05);
}

.preview-step-num {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(74, 125, 112, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--sage);
    flex-shrink: 0;
}

.preview-step-num.done {
    background: var(--sage);
    color: #fff;
    font-size: 0.75rem;
}

.preview-step-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
}

.preview-step-title.done {
    text-decoration: line-through;
    color: rgba(229, 229, 231, 0.3);
}

.preview-step-time {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--muted);
    margin-top: 2px;
}

.info-terms {
    font-size: 0.75rem;
    color: rgba(229, 229, 231, 0.3);
    text-align: center;
    margin-top: 10px;
    margin-bottom: 4px;
    line-height: 1.6;
}

.info-terms a {
    color: rgba(229, 229, 231, 0.4);
}

/* ── Paywall screen ── */
.paywall-hero {
    text-align: center;
    padding: 12px 0 8px;
}

.paywall-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(1.5rem, 5vw, 2rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--text);
    margin-bottom: 8px;
}

.paywall-sub {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 0 auto 16px;
    padding: 0 12px;
    width: 100%;
    max-width: 360px;
}

.feature-row {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.feature-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon-wrap.blue {
    background: rgba(108, 99, 255, 0.15);
}

.feature-icon-wrap.teal {
    background: rgba(33, 150, 243, 0.15);
}

.feature-icon-wrap.orange {
    background: rgba(255, 107, 0, 0.15);
}

.feature-icon-wrap.brown {
    background: rgba(150, 100, 60, 0.15);
}

.feature-text {
    flex: 1;
}

.feature-badge {
    display: inline-block;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(239, 137, 67, 0.15);
    color: #EF8943;
    border-radius: 4px;
    padding: 2px 6px;
    margin-bottom: 4px;
}

.feature-text h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 3px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.feature-text p {
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.45;
}

.urgency-banner {
    background: #8B1A1A;
    border: none;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin-bottom: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.plan-card {
    background: #2D5A4E;
    border: 1.5px solid rgba(74, 125, 112, 0.5);
    border-radius: 16px;
    padding: 18px 20px;
    margin-bottom: 12px;
    width: 100%;
}

.plan-label {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 12px;
}

.plan-main-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.plan-radio {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.7);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.plan-radio::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: white;
}

.plan-info {
    flex: 1;
}

.plan-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.plan-sub {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 2px;
}

.plan-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
}

.no-commitment {
    text-align: center;
    margin-bottom: 14px;
}

/* ── Paywall plan cards ── */
.pw-plans {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-top: 24px;
    margin-bottom: 14px;
}

.pw-plan-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid rgba(255, 255, 255, 0.09);
    border-radius: 14px;
    padding: 16px 18px;
    cursor: pointer;
    position: relative;
    transition: border-color 0.2s, background 0.2s;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#plan-weekly, #plan-annual {
    min-height: 80px;
}

.pw-plan-card.pw-plan-selected {
    background: rgba(74, 125, 112, 0.1);
    border-color: var(--sage);
}

.pw-plan-badge {
    position: absolute;
    top: -10px;
    left: 18px;
    background: #EF4444;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 3px 12px;
    border-radius: 6px;
    white-space: nowrap;
    z-index: 1;
}

.pw-plan-top {
    display: flex;
    align-items: center;
    gap: 14px;
}

.pw-plan-radio {
    width: 18px;
    height: 18px;
    min-width: 18px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.25);
}

.pw-plan-radio-checked {
    border-color: var(--sage);
    background: radial-gradient(circle, var(--sage) 45%, transparent 46%);
}

.pw-plan-info {
    flex: 1;
}

.pw-plan-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

.pw-plan-sub {
    font-size: 12px;
    color: rgba(229,229,231,0.5);
    margin-top: 2px;
}

.pw-plan-price-col {
    text-align: right;
}

.pw-plan-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
}

.pw-currency {
    font-size: 13px;
    font-weight: 600;
    vertical-align: super;
}

.pw-plan-period {
    font-size: 11px;
    color: rgba(229,229,231,0.5);
    margin-top: 2px;
}

/* ── Paywall guarantee ── */
.pw-guarantee {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 16px;
    background: rgba(74,125,112,0.06);
    border: 1px solid rgba(74,125,112,0.15);
    border-radius: 12px;
    margin-bottom: 14px;
    width: 100%;
}

.pw-guarantee svg {
    width: 18px;
    height: 18px;
    min-width: 18px;
    color: var(--sage);
}

.pw-guarantee p {
    font-size: 13px;
    color: rgba(229,229,231,0.65);
    line-height: 1.4;
}

.pw-guarantee strong {
    color: var(--text);
    font-weight: 600;
}

/* ── Paywall social proof + feature cards ── */
.pw-social-proof {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 6px 0 4px;
    margin-bottom: 2px;
}

.pw-proof-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: rgba(229,229,231,0.55);
}

.pw-stars {
    display: flex;
    gap: 1px;
}

.pw-stars svg {
    width: 12px;
    height: 12px;
    fill: #D4A853;
    color: #D4A853;
}

.pw-proof-divider {
    width: 1px;
    height: 14px;
    background: rgba(255,255,255,0.1);
}

.pw-pulse-dot {
    width: 7px;
    height: 7px;
    background: #7BC47B;
    border-radius: 50%;
    display: inline-block;
    margin-right: 3px;
    vertical-align: middle;
    animation: pwPulse 2s ease-in-out infinite;
}

@keyframes pwPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.45; transform: scale(0.82); }
}

.pw-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
    width: 100%;
}

.pw-feature-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 14px;
    padding: 12px 14px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.pw-feature-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pw-icon-bd {
    background: linear-gradient(135deg, rgba(42,60,42,0.9), rgba(76,175,80,0.12));
    border: 1px solid rgba(76,175,80,0.18);
}

.pw-icon-aaron {
    background: linear-gradient(135deg, rgba(42,42,60,0.9), rgba(212,168,83,0.12));
    border: 1px solid rgba(212,168,83,0.18);
}

.pw-feature-icon svg {
    width: 20px;
    height: 20px;
}

.pw-feature-content h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 3px;
    color: var(--text);
}

.pw-feature-content p {
    font-size: 12.5px;
    color: rgba(229,229,231,0.55);
    line-height: 1.45;
}

.pw-feature-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    padding: 3px 7px;
    border-radius: 5px;
    margin-top: 7px;
}

.pw-tag-green {
    background: rgba(76,175,80,0.1);
    color: #7BC47B;
    border: 1px solid rgba(76,175,80,0.15);
}

.pw-tag-gold {
    background: rgba(212,168,83,0.1);
    color: #D4A853;
    border: 1px solid rgba(212,168,83,0.15);
}

.timeline-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 20px;
    padding: 0 8px;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    position: relative;
    padding-bottom: 0;
}

.timeline-item:not(:last-child) {
    margin-bottom: 0;
}

.timeline-icon-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.timeline-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #1a1a1a;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
}

.timeline-connector {
    width: 2px;
    height: 24px;
    background: rgba(255, 255, 255, 0.12);
    margin: 4px 0;
}

.timeline-body {
    padding-top: 10px;
    padding-bottom: 10px;
    flex: 1;
}

.timeline-text h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 3px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.timeline-text p {
    font-size: 0.78rem;
    color: var(--muted);
    line-height: 1.4;
}

.paywall-terms {
    font-size: 0.72rem;
    color: rgba(229, 229, 231, 0.25);
    text-align: center;
}

/* ── Global Footer ── */
.footer-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 0 40px;
    background: linear-gradient(to top, var(--bg) 85%, transparent);
    z-index: 1000;
    /* Higher z-index */
    display: flex;
    justify-content: center;
    pointer-events: none;
    /* Let clicks pass through the gradient area */
}

.hidden {
    display: none !important;
}

.footer-cta-inner {
    width: 100%;
    max-width: 580px;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: center;
    pointer-events: auto;
    /* Capture clicks on the button area */
}

.footer-terms {
    font-size: 0.75rem;
    color: var(--muted);
    margin: 0;
}

.footer-terms a {
    color: var(--muted);
    text-decoration: underline;
}

/* Welcome to premium */
.confetti-wrap {
    position: absolute;
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    font-size: 2rem;
    z-index: 2;
    animation: popIn 0.5s ease both;
    pointer-events: none;
}

@keyframes popIn {
    from {
        transform: scale(0.3);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.welcome-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(1.7rem, 6vw, 2.2rem);
    font-weight: 800;
    text-align: center;
    color: var(--text);
    margin-bottom: 8px;
}

.welcome-sub {
    font-size: 0.9rem;
    color: var(--muted);
    text-align: center;
    line-height: 1.6;
    margin-bottom: 14px;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.receipt-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 7px 16px;
    background: rgba(74, 125, 112, 0.08);
    border: 1px solid rgba(74, 125, 112, 0.18);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 22px;
    width: fit-content;
    align-self: center;
}

@keyframes fadeUpIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDownIn {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUpIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Spacer ── */
.spacer {
    flex: 1;
    min-height: 16px;
}

/* ── Responsive ── */
@media (max-width: 480px) {
    .header {
        padding: 14px 16px;
    }

    .screen-wrap {
        padding: 0 16px 40px;
    }

    .illus-img {
        height: 180px;
    }

    .illus-img-tall {
        height: 210px;
    }

    .options-grid {
        gap: 10px;
    }

    .option-tile {
        padding: 16px 12px;
    }

    .tile-icon {
        font-size: 1.5rem;
    }
}

@media (min-height: 800px) {
    .screen-wrap {
        padding-bottom: 56px;
    }

    .illus-img {
        height: 250px;
    }
}

/* ── Confetti Burst ── */
@keyframes confettiBurst {
    0% {
        opacity: 0;
        transform: translateX(-50%) scale(0.3);
    }

    30% {
        opacity: 1;
        transform: translateX(-50%) scale(1.3) rotate(12deg);
    }

    65% {
        opacity: 1;
        transform: translateX(-50%) translateY(-15px) scale(1) rotate(-6deg);
    }

    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(-80px) scale(0.7) rotate(200deg);
    }
}

.confetti-wrap {
    animation: confettiBurst 2.5s ease-out 0.2s both !important;
}

/* ── Post-payment screens ── */
.pp-screen-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 0;
}

/* Reduced title/subtitle for post-payment screens to avoid scrolling */
.pp-screen-inner .screen-title {
    font-size: 1.35rem !important;
    margin-bottom: 8px !important;
}

.pp-screen-inner .screen-subtitle {
    font-size: 0.9rem;
    margin-top: 20px;
    margin-bottom: 40px;
}

.pp-check-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(74, 125, 112, 0.12);
    border: 2px solid var(--sage);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    animation: popIn 0.5s ease both;
}

/* Hint box — mirrors post-payment card style */
.pp-hint-box {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 16px;
    width: 100%;
}

.pp-hint-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
}

.pp-hint-link {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--sage);
    text-decoration: underline;
    text-decoration-style: dashed;
    text-underline-offset: 3px;
}

.pp-hint-mock {
    background: var(--bg);
    border-radius: 10px;
    padding: 14px;
    text-align: center;
}

.pp-hint-headline {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
    line-height: 1.35;
}

.pp-hint-mock-sub {
    font-size: 0.75rem;
    color: var(--muted);
}

.pp-hint-caption {
    font-size: 0.75rem;
    color: var(--muted);
    text-align: center;
    margin-top: 12px;
    font-style: italic;
    line-height: 1.45;
}

/* Steps */
.pp-step-guide {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.pp-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 14px 0;
    text-align: left;
}

.pp-step+.pp-step {
    border-top: 1px solid var(--border);
}

.pp-step-num {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    background: rgba(74, 125, 112, 0.15);
    border: 1px solid rgba(74, 125, 112, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--sage);
}

.pp-step-detail h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 3px;
}

.pp-step-detail p {
    font-size: 0.75rem;
    color: var(--muted);
    line-height: 1.45;
}

/* Bell */
.pp-bell-icon {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: rgba(74, 125, 112, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    animation: ppPulse 2.5s ease-in-out infinite;
}

@keyframes ppPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(74, 125, 112, 0.3);
    }

    50% {
        box-shadow: 0 0 0 16px rgba(74, 125, 112, 0);
    }
}

/* Benefits */
.pp-benefits-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    padding: 0 16px;
}

.pp-benefit {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--muted);
    padding: 13px 0;
}

.pp-benefit+.pp-benefit {
    border-top: 1px solid var(--border);
}

.pp-benefit-icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 50%;
    background: rgba(74, 125, 112, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Setting cards */
.pp-setting-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.pp-setting-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.pp-setting-info {
    flex: 1;
}

.pp-setting-info h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 3px;
}

.pp-setting-info p {
    font-size: 0.78rem;
    color: var(--muted);
    line-height: 1.4;
}

.pp-toggle {
    width: 46px;
    height: 27px;
    border-radius: 14px;
    background: var(--sage);
    position: relative;
    min-width: 46px;
    flex-shrink: 0;
}

.pp-toggle::after {
    content: '';
    position: absolute;
    top: 3px;
    right: 3px;
    width: 21px;
    height: 21px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Phone icon */
.pp-phone-icon {
    width: 80px;
    height: 80px;
    border-radius: 18px;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    animation: ppFloat 3s ease-in-out infinite;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.35), 0 2px 8px rgba(0,0,0,0.2);
}

.app-icon-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
}

@keyframes ppFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-7px);
    }
}

/* Store buttons */
.pp-store-buttons {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    flex-wrap: wrap;
}

.pp-store-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
    transition: background var(--transition), transform var(--transition);
}

.pp-store-btn:hover {
    background: var(--card-hover);
    transform: translateY(-1px);
}

.pp-store-text {
    flex: 1;
    text-align: left;
}

.pp-store-small {
    font-size: 0.7rem;
    color: var(--muted);
    display: block;
    letter-spacing: 0.05em;
}

.pp-store-name {
    font-size: 0.95rem;
    font-weight: 700;
    display: block;
}
