:root {
    --bg: #fbfaf8;
    --ink: #17161a;
    --ink2: #3d3934;
    --muted: #6f6a63;
    --faint: #8b857d;
    --light: #9a948c;
    --hair: #ded8d0;
    --hair2: #eae5de;
    --track: #efeae3;
    --accent: #c2410c;
    --orange: #f5883c;
    --pink: #ed2e96;
}
* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-font-smoothing: antialiased;
}
html,
body {
    margin: 0;
    padding: 0;
    background: var(--bg);
}
body {
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--ink);
    font-size: 16px;
    line-height: 1.5;
}
a {
    color: var(--accent);
    text-decoration: none;
}
a:hover {
    color: var(--ink);
}
button,
input {
    font-family: inherit;
    color: inherit;
}
button {
    appearance: none;
}
input {
    font-size: 16px;
}
input:focus {
    outline: none;
}
input::placeholder {
    color: #bdb8b1;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 3px;
    border-radius: 4px;
}
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    width: 100%;
    height: 44px;
}
input[type="range"]::-webkit-slider-runnable-track {
    height: 3px;
    border-radius: 99px;
    background: #e6e1da;
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 28px;
    height: 28px;
    margin-top: -13px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #ded8d0;
    box-shadow: 0 1px 3px rgba(23, 22, 26, 0.16);
    cursor: grab;
}
input[type="range"]::-moz-range-track {
    height: 3px;
    border-radius: 99px;
    background: #e6e1da;
}
input[type="range"]::-moz-range-thumb {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #ded8d0;
}
.page {
    min-height: 100vh;
    background: var(--bg);
}
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: transparent;
    z-index: 20;
}
.progress {
    height: 2px;
    width: 20%;
    background: linear-gradient(90deg, var(--orange), var(--pink));
    transition: width 0.5s cubic-bezier(0.22, 0.8, 0.24, 1);
}
.header {
    max-width: 620px;
    margin: 0 auto;
    padding: 26px 22px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: relative;
}
.logo {
    height: 22px;
    width: auto;
    display: block;
}
.step-count {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: var(--light);
    font-variant-numeric: tabular-nums;
    text-align: center;
}
.content {
    max-width: 620px;
    margin: 0 auto;
    margin-top: 30px;
    padding: 0 22px calc(72px + env(safe-area-inset-bottom));
}
.screen {
    display: none;
}
.screen.is-active {
    display: flex;
}
.screen-inner {
    width: 100%;
    display: flex;
    flex-direction: column;
}
.eyebrow {
    font-size: 15.5px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--muted);
}
.gradient-text {
    background: linear-gradient(100deg, var(--orange), var(--pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}
.hero-title {
    margin: 0;
    font-size: clamp(33px, 8.4vw, 52px);
    font-weight: 600;
    line-height: 1.04;
    letter-spacing: -0.032em;
    text-wrap: balance;
    max-width: 18ch;
}
.title {
    margin: 0;
    font-size: clamp(30px, 7.4vw, 44px);
    font-weight: 600;
    line-height: 1.06;
    letter-spacing: -0.03em;
    text-wrap: balance;
}
.subtext {
    margin: 0px;
    font-size: 17.5px;
    line-height: 1.55;
    color: rgb(111, 106, 99);
    max-width: 47ch !important;
    text-wrap: pretty;
}
.label {
    font-size: 15px;
    font-weight: 500;
    color: var(--muted);
}
.big-label {
    font-size: 20px;
    font-weight: 500;
    letter-spacing: -0.012em;
}
.field {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0 10px;
    border-bottom: 1.5px solid var(--hair);
    transition: border-color 0.2s ease;
}
.field input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    font-size: clamp(34px, 8vw, 46px);
    font-weight: 450;
    letter-spacing: -0.028em;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}
.currency {
    font-size: clamp(30px, 7vw, 40px);
    font-weight: 450;
    color: #b7b1a9;
    line-height: 1;
}
.helper {
    font-size: 14.5px;
    color: var(--faint);
}
.link-button {
    align-self: flex-start;
    width: fit-content;
    white-space: nowrap;
    text-align: left;
    margin-top: 2px;
    min-height: 44px;
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    color: var(--accent);
    cursor: pointer;
}



.cta {
    width: 100%;
    min-height: 54px;
    padding: 16px 22px;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 16.5px;
    font-weight: 500;
    color: #fff;
    cursor: pointer;
    background: var(--ink);
    transition: background 0.18s ease, opacity 0.18s ease;
}

/* Normal hover */
.cta:hover {
    background: #17161a;
    color: #fff;
}

/* Disabled */
.cta:disabled {
    background: #d9d3cb;
    color: #fff;
    cursor: not-allowed;
}

/* Hover while disabled */
.cta:disabled:hover {
    background: #17161a;
    color: #fff;
}




.back {
    align-self: flex-start;
    width: fit-content;
    white-space: nowrap;
    text-align: left;
    background: none;
    border: none;
    padding: 0;
    min-height: 44px;
    font-family: inherit;
    font-size: 15.5px;
    font-weight: 500;
    color: var(--faint);
    cursor: pointer;
}
.back:hover {
    color: var(--ink);
}
.actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.pill {
    flex: 1;
    min-height: 48px;
    padding: 13px 12px;
    border-radius: 9px;
    border: 1px solid #e6e1da;
    background: transparent;
    color: var(--ink2);
    font-family: inherit;
    font-size: 15.5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.16s ease;
}
.pill:hover,
.pill.is-selected {
    border-color: var(--ink);
    background: var(--ink);
    color: #fff;
}
.form-input {
    border: none;
    border-bottom: 1px solid #ded8d0;
    background: transparent;
    padding: 10px 0;
    font-size: 20px;
    font-weight: 450;
    min-height: 48px;
    width: 100%;
}
.otp-input {
    border: none;
    border-bottom: 1px solid #ded8d0;
    background: transparent;
    padding: 10px 0;
    font-size: 34px;
    font-weight: 450;
    letter-spacing: 0.28em;
    font-variant-numeric: tabular-nums;
    min-height: 56px;
    width: 100%;
}
.analysis-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 15px 0;
    border-bottom: 1px solid #efeae3;
}
.analysis-row.pending {
    opacity: 0.32;
    color: var(--faint);
}
.analysis-row.done {
    opacity: 1;
    color: var(--ink);
}
.analysis-mark {
    font-size: 15px;
    color: var(--accent);
}
.score-ring {
    position: relative;
    width: 132px;
    height: 132px;
    flex: none;
}
.score-ring::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(
        from 180deg,
        var(--orange) 0deg,
        var(--pink) 230deg,
        #efeae3 230deg 360deg
    );
}
.score-ring-inner {
    position: absolute;
    inset: 7px;
    border-radius: 50%;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.score-number {
    font-size: 44px;
    font-weight: 500;
    letter-spacing: -0.035em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.score-denom {
    font-size: 13px;
    color: var(--faint);
}
.big-number {
    font-size: clamp(50px, 13vw, 72px);
    font-weight: 500;
    letter-spacing: -0.04em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    color: var(--accent);
}
.section-rule {
    border-top: 1px solid var(--hair2);
    padding: 48px 0;
}
.score-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 22px 0;
    border-bottom: 1px solid #efeae3;
}
.score-bar-track {
    height: 2px;
    background: #efeae3;
    overflow: hidden;
}
.score-bar {
    height: 100%;
    width: 76%;
    background: var(--accent);
}
.score-row-foot {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}
.status {
    flex: none;
    font-size: 13.5px;
    font-weight: 500;
    white-space: nowrap;
    color: var(--accent);
}
.goal-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    min-height: 56px;
    padding: 18px 2px;
    background: none;
    border: none;
    border-bottom: 1px solid #efeae3;
    font-family: inherit;
    cursor: pointer;
    text-align: left;
}
.goal-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}
.goal-label {
    font-size: 17px;
    font-weight: 500;
}
.goal-note {
    font-size: 15px;
    line-height: 1.5;
    color: var(--muted);
}
.goal-tick {
    font-size: 17px;
    color: var(--accent);
}
.timeline-line {
    flex: 1;
    height: 1px;
    background: #ded8d0;
    position: relative;
}
.timeline-dot {
    position: absolute;
    right: -3px;
    top: -2.5px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #8b857d;
}
.timeline-potential {
    position: absolute;
    left: 0;
    top: 0;
    height: 1px;
    width: 74%;
    background: var(--accent);
}
.disclaimer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 13.5px;
    line-height: 1.7;
    color: #7d776f;
    max-width: 66ch;
}
.small-muted {
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--light);
}
.centered {
    align-items: center;
    text-align: center;
}
@keyframes riseIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
.animate-rise {
    animation: riseIn 0.45s cubic-bezier(0.22, 0.8, 0.24, 1) both;
}
.animate-fade {
    animation: fadeIn 0.5s ease both;
}
@media (max-width: 640px) {
    .header {
        padding-top: 24px;
    }
    .content {
        padding-left: 20px;
        padding-right: 20px;
    }
    .score-ring {
        width: 124px;
        height: 124px;
    }
}
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.analysis-row {
    min-height: 57px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom: 1px solid #ece6e1;

    transition:
        color 0.35s ease,
        opacity 0.35s ease,
        transform 0.35s ease;
}

.analysis-row.pending {
    color: #d5d0cb;
}

.analysis-row.active {
    color: #202124;
}

.analysis-row.done {
    color: #202124;
}

.analysis-mark {
    color: #e95a32;

    opacity: 0;

    transform: scale(0.6);

    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}

.analysis-row.done .analysis-mark {
    opacity: 1;

    transform: scale(1);
}
