:root {
    --ink: #171916;
    --ink-soft: #4f534d;
    --ink-muted: #787c74;
    --paper: #f3f0e8;
    --paper-deep: #eae5d9;
    --surface: rgba(255, 254, 250, 0.78);
    --surface-solid: #fffefa;
    --line: rgba(23, 25, 22, 0.13);
    --line-strong: rgba(23, 25, 22, 0.24);
    --jade: #2d7d64;
    --jade-bright: #73d6b2;
    --jade-soft: #dceee6;
    --clay: #b86050;
    --error: #a33f36;
    --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Newsreader', Georgia, serif;
    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
    --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
    --shadow-soft: 0 24px 70px rgba(54, 48, 37, 0.1);
    --shadow-lift: 0 18px 38px rgba(54, 48, 37, 0.14);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-xl: 32px;
}

@view-transition {
    navigation: auto;
}

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

html {
    background: var(--paper);
    color: var(--ink);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 8% 0%, rgba(255, 255, 255, 0.95) 0, transparent 32rem),
        radial-gradient(circle at 92% 16%, rgba(111, 197, 164, 0.12) 0, transparent 30rem),
        var(--paper);
    color: var(--ink);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: 90;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
    content: '';
    opacity: 0.025;
    pointer-events: none;
}

button,
input,
select {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    color: inherit;
}

::selection {
    background: rgba(45, 125, 100, 0.2);
}

.skip-link {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 200;
    padding: 0.7rem 1rem;
    border-radius: var(--radius-sm);
    background: var(--ink);
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    transform: translateY(-150%);
    transition: transform 160ms var(--ease-out);
}

.skip-link:focus {
    transform: translateY(0);
}

.page-wipe {
    position: fixed;
    inset: 0;
    z-index: 150;
    background: var(--ink);
    clip-path: inset(0 0 100% 0);
    pointer-events: none;
    transition: clip-path 180ms var(--ease-out);
}

body.is-leaving .page-wipe {
    clip-path: inset(0 0 0 0);
}

.landing-page {
    width: min(100%, 92rem);
    margin: 0 auto;
    padding: 1.4rem clamp(1.5rem, 4vw, 4.75rem) 1.75rem;
    animation: pageEnter 360ms var(--ease-out) both;
}

.landing-nav,
.onboarding-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.landing-nav {
    min-height: 4.5rem;
}

.landing-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--ink);
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.landing-brand img {
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 0.55rem;
    box-shadow: 0 6px 18px rgba(37, 91, 72, 0.13);
}

.btn {
    display: inline-flex;
    min-height: 2.9rem;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 0.78rem 1.3rem;
    border: 1px solid transparent;
    border-radius: 0.85rem;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1;
    transition:
        transform 140ms var(--ease-out),
        background-color 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease,
        color 180ms ease;
}

.btn:focus-visible,
.landing-brand:focus-visible,
.floor-option:focus-visible,
.review-row:focus-visible,
.btn-add-payout:focus-visible,
.btn-remove:focus-visible {
    outline: 3px solid rgba(45, 125, 100, 0.28);
    outline-offset: 3px;
}

.btn:active,
.floor-option:active,
.review-row:active,
.btn-add-payout:active,
.btn-remove:active {
    transform: scale(0.975);
}

.btn-primary {
    min-width: 11.75rem;
    background: var(--ink);
    box-shadow: 0 10px 26px rgba(23, 25, 22, 0.16);
    color: white;
}

.btn-primary span,
.btn-secondary span {
    display: inline-block;
    transition: transform 160ms var(--ease-out);
}

.btn-secondary {
    border-color: var(--line);
    background: rgba(255, 254, 250, 0.62);
    box-shadow: 0 8px 22px rgba(54, 48, 37, 0.05);
    color: var(--ink);
    backdrop-filter: blur(12px);
}

.btn:disabled {
    box-shadow: none;
    cursor: not-allowed;
    opacity: 0.38;
}

@media (hover: hover) and (pointer: fine) {
    .btn-primary:hover {
        background: #282b26;
        box-shadow: 0 14px 30px rgba(23, 25, 22, 0.2);
        transform: translateY(-2px);
    }

    .btn-primary:hover span,
    .btn-secondary:hover span {
        transform: translate(2px, -1px);
    }

    .btn-secondary:hover {
        border-color: var(--line-strong);
        background: var(--surface-solid);
        transform: translateY(-1px);
    }
}

.landing-hero {
    display: grid;
    min-height: clamp(42rem, calc(100dvh - 7rem), 54rem);
    grid-template-columns: minmax(0, 0.82fr) minmax(34rem, 1.18fr);
    align-items: center;
    gap: clamp(3rem, 7vw, 8rem);
    padding: clamp(4rem, 8vh, 7rem) 0 clamp(5rem, 10vh, 8rem);
}

.landing-copy {
    position: relative;
    z-index: 2;
    max-width: 38rem;
}

.landing-eyebrow {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.8rem;
    color: var(--ink-soft);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.landing-eyebrow span {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: var(--jade);
    box-shadow: 0 0 0 5px rgba(45, 125, 100, 0.1);
}

.welcome-title {
    max-width: 8ch;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: clamp(4.5rem, 7.1vw, 7.6rem);
    font-weight: 500;
    letter-spacing: -0.055em;
    line-height: 0.83;
    text-wrap: balance;
}

.welcome-title::first-line {
    font-style: italic;
}

.welcome-subtitle {
    max-width: 34rem;
    margin-top: 2rem;
    color: var(--ink-soft);
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    letter-spacing: -0.02em;
    line-height: 1.72;
    text-wrap: pretty;
}

.landing-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.landing-actions .btn-primary {
    min-height: 3.35rem;
    padding-inline: 1.55rem;
}

.landing-note {
    margin-top: 1.1rem;
    color: var(--ink-muted);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.landing-note span {
    margin: 0 0.32rem;
    color: rgba(23, 25, 22, 0.3);
}

.landing-preview {
    position: relative;
    min-width: 0;
    perspective: 1200px;
}

.landing-preview::before {
    position: absolute;
    inset: 12% -8% -10% 8%;
    z-index: -1;
    border-radius: 2.6rem;
    background:
        radial-gradient(circle at 15% 10%, rgba(115, 214, 178, 0.52), transparent 46%),
        linear-gradient(145deg, #d7dfd7, #e3d3bc 80%);
    box-shadow: var(--shadow-soft);
    content: '';
    filter: saturate(0.72);
    transform: rotate(2deg);
}

.preview-shell {
    position: relative;
    overflow: hidden;
    padding: clamp(1.25rem, 2.4vw, 2rem);
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 2rem;
    background:
        radial-gradient(circle at 92% 6%, rgba(115, 214, 178, 0.14), transparent 28%),
        #181b18;
    box-shadow: 0 38px 90px rgba(34, 33, 29, 0.23);
    color: white;
    transform: rotateY(-2deg) rotateX(1deg);
    animation: previewEnter 420ms 60ms var(--ease-out) both;
}

.preview-shell::after {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.1);
    content: '';
    pointer-events: none;
}

.preview-header,
.preview-chart-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.preview-header {
    margin-bottom: 1.35rem;
}

.preview-title {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.76rem;
    font-weight: 700;
}

.preview-title i {
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 50%;
    background: var(--jade-bright);
    box-shadow: 0 0 0 5px rgba(115, 214, 178, 0.1);
}

.preview-pill {
    padding: 0.42rem 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.6rem;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.preview-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.035);
}

.preview-summary > div {
    min-width: 0;
    padding: 1rem 1.1rem;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.preview-summary > div:last-child {
    border-right: 0;
}

.preview-summary span,
.preview-chart-head span {
    display: block;
    margin-bottom: 0.35rem;
    color: rgba(255, 255, 255, 0.43);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.preview-summary strong {
    display: block;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.95);
    font-size: clamp(1rem, 2vw, 1.4rem);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.04em;
    line-height: 1.1;
    text-overflow: ellipsis;
}

.preview-summary .preview-gap strong {
    color: #efaa9d;
}

.preview-chart-card {
    margin-bottom: 0.8rem;
    padding: 1.2rem 1.1rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.15rem;
    background: rgba(255, 255, 255, 0.025);
}

.preview-chart-head {
    margin-bottom: 0.65rem;
}

.preview-chart-head strong {
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.65rem;
    font-weight: 600;
}

.preview-chart {
    width: 100%;
    aspect-ratio: 16 / 6.2;
}

.preview-chart svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.preview-grid {
    fill: none;
    stroke: rgba(255, 255, 255, 0.08);
    stroke-width: 1;
}

.preview-area {
    fill: url(#lineFill);
}

.preview-line {
    fill: none;
    stroke: var(--jade-bright);
    stroke-dasharray: 900;
    stroke-dashoffset: 900;
    stroke-linecap: round;
    stroke-width: 5;
    animation: drawLine 620ms 180ms var(--ease-out) forwards;
}

.preview-floor {
    fill: none;
    opacity: 0.66;
    stroke: #d98f80;
    stroke-dasharray: 7 10;
    stroke-linecap: round;
    stroke-width: 3;
}

.preview-insight {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(115, 214, 178, 0.13);
    border-radius: 1rem;
    background: rgba(115, 214, 178, 0.07);
}

.preview-insight-mark {
    color: var(--jade-bright);
    font-size: 1rem;
}

.preview-insight strong {
    display: block;
    margin-bottom: 0.2rem;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.72rem;
}

.preview-insight p {
    max-width: 48ch;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.65rem;
    line-height: 1.55;
}

.preview-float {
    position: absolute;
    right: -2.2rem;
    bottom: -1.7rem;
    z-index: 3;
    min-width: 9.5rem;
    padding: 0.95rem 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 1rem;
    background: rgba(255, 254, 250, 0.84);
    box-shadow: var(--shadow-lift);
    backdrop-filter: blur(18px);
    animation: floatEnter 300ms 220ms var(--ease-out) both;
}

.preview-float span,
.preview-float strong {
    display: block;
}

.preview-float span {
    margin-bottom: 0.25rem;
    color: var(--ink-muted);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.preview-float strong {
    color: var(--jade);
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: -0.03em;
}

.landing-steps {
    display: grid;
    grid-template-columns: minmax(15rem, 0.8fr) minmax(0, 1.3fr);
    gap: clamp(3rem, 8vw, 9rem);
    padding: clamp(5rem, 10vw, 9rem) 0 clamp(5rem, 8vw, 7rem);
    border-top: 1px solid var(--line);
}

.steps-heading p {
    margin-bottom: 1.1rem;
    color: var(--jade);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.steps-heading h2 {
    max-width: 17ch;
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 4vw, 4.4rem);
    font-weight: 500;
    letter-spacing: -0.045em;
    line-height: 0.98;
    text-wrap: balance;
}

.steps-grid {
    border-top: 1px solid var(--line-strong);
}

.steps-grid article {
    display: grid;
    grid-template-columns: 3rem 1fr;
    gap: 1.5rem;
    padding: 1.75rem 0 2rem;
    border-bottom: 1px solid var(--line);
}

.steps-grid article > span {
    padding-top: 0.22rem;
    color: var(--jade);
    font-size: 0.68rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.08em;
}

.steps-grid h3 {
    margin-bottom: 0.55rem;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.steps-grid p {
    max-width: 50ch;
    color: var(--ink-soft);
    font-size: 0.86rem;
    line-height: 1.7;
    text-wrap: pretty;
}

.landing-footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
    color: var(--ink-muted);
    font-size: 0.68rem;
    font-weight: 600;
}

.top-progress-bar {
    position: fixed;
    inset: 0 0 auto;
    z-index: 120;
    height: 3px;
    background: rgba(23, 25, 22, 0.08);
    overflow: hidden;
}

.top-progress-fill {
    width: 0;
    height: 100%;
    background: var(--jade);
    transform-origin: left center;
    transition: width 220ms var(--ease-out);
}

.onboarding-page {
    display: flex;
    width: min(100%, 92rem);
    min-height: 100dvh;
    flex-direction: column;
    margin: 0 auto;
    padding: 1.4rem clamp(1.25rem, 4vw, 4.75rem) 2rem;
    animation: pageEnter 280ms var(--ease-out) both;
}

.onboarding-nav {
    min-height: 4.5rem;
}

.onboarding-nav-note {
    color: var(--ink-muted);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.onboarding-container {
    display: flex;
    width: min(100%, 49rem);
    flex: 1;
    flex-direction: column;
    justify-content: center;
    margin: 0 auto;
    padding: clamp(3rem, 8vh, 7rem) 0 clamp(2rem, 5vh, 4rem);
}

.question-container {
    position: relative;
    min-height: 31rem;
    outline: none;
}

.question {
    width: 100%;
    animation: questionEnter 220ms var(--ease-out) both;
}

.question[data-direction='backward'] {
    animation-name: questionEnterBack;
}

.question.exiting {
    pointer-events: none;
    animation: questionExit 140ms ease forwards;
}

.question.exiting[data-direction='backward'] {
    animation-name: questionExitBack;
}

.question-meta {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 1.4rem;
    color: var(--jade);
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.question-meta::before {
    width: 1.4rem;
    height: 1px;
    background: currentColor;
    content: '';
}

.question-title {
    max-width: 17ch;
    margin-bottom: 1rem;
    font-family: var(--font-display);
    font-size: clamp(2.7rem, 5.1vw, 4.5rem);
    font-weight: 500;
    letter-spacing: -0.048em;
    line-height: 0.98;
    text-wrap: balance;
}

.question-description {
    max-width: 40rem;
    margin-bottom: 2rem;
    color: var(--ink-soft);
    font-size: 0.96rem;
    line-height: 1.7;
    text-wrap: pretty;
}

.question-body {
    display: flex;
    max-width: 40rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.1rem;
}

.question-error,
.transition-error {
    max-width: 40rem;
    margin: 0 0 1.35rem;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(163, 63, 54, 0.18);
    border-radius: var(--radius-md);
    background: rgba(163, 63, 54, 0.06);
    color: var(--error);
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.55;
}

.transition-error strong,
.transition-error p {
    display: block;
    margin-bottom: 0.8rem;
}

.transition-error p {
    font-weight: 500;
}

.input-group {
    width: 100%;
}

.input-group.narrow-input {
    width: min(100%, 23rem);
}

.input-group label {
    display: block;
    margin-bottom: 0.55rem;
    color: var(--ink-muted);
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.input-affix {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group input,
.input-group select {
    width: 100%;
    min-height: 4.3rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(255, 254, 250, 0.7);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.65);
    color: var(--ink);
    font-size: 1.35rem;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    letter-spacing: -0.035em;
    outline: none;
    transition:
        border-color 160ms ease,
        background-color 160ms ease,
        box-shadow 160ms ease;
}

.input-group input {
    padding: 0.9rem 1rem;
}

.input-group select {
    appearance: none;
    padding: 0.9rem 2.7rem 0.9rem 1rem;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--ink-muted) 50%),
        linear-gradient(135deg, var(--ink-muted) 50%, transparent 50%);
    background-position:
        calc(100% - 1.25rem) 50%,
        calc(100% - 0.95rem) 50%;
    background-repeat: no-repeat;
    background-size: 0.32rem 0.32rem;
}

.input-affix.has-prefix input {
    padding-left: 2.55rem;
}

.input-affix.has-suffix input {
    padding-right: 2.7rem;
}

.input-affix .affix {
    position: absolute;
    z-index: 2;
    color: var(--ink-muted);
    font-size: 1rem;
    font-weight: 700;
    pointer-events: none;
}

.input-affix .prefix {
    left: 1rem;
}

.input-affix .suffix {
    right: 1rem;
}

.input-group input::placeholder {
    color: rgba(23, 25, 22, 0.28);
}

.input-group input:focus,
.input-group select:focus {
    border-color: rgba(45, 125, 100, 0.72);
    background: var(--surface-solid);
    box-shadow: 0 0 0 4px rgba(45, 125, 100, 0.09);
}

.input-group input[type='number'] {
    appearance: textfield;
    -moz-appearance: textfield;
}

.input-group input[type='number']::-webkit-inner-spin-button,
.input-group input[type='number']::-webkit-outer-spin-button {
    appearance: none;
    margin: 0;
}

.question-body > .btn-primary {
    margin-top: 0.45rem;
}

.navigation {
    width: min(100%, 40rem);
    margin-top: 1.1rem;
}

.btn-back {
    min-height: auto;
    padding: 0.5rem 0;
    border: 0;
    background: transparent;
    color: var(--ink-muted);
    font-size: 0.74rem;
    box-shadow: none;
}

@media (hover: hover) and (pointer: fine) {
    .btn-back:hover {
        color: var(--ink);
        transform: translateX(-2px);
    }
}

.payouts-container {
    width: 100%;
}

.payouts-empty-message {
    margin-bottom: 1rem;
    color: var(--ink-muted);
    font-size: 0.78rem;
    line-height: 1.6;
}

.payout-item {
    display: grid;
    grid-template-columns: 1fr 0.7fr auto;
    align-items: end;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(255, 254, 250, 0.55);
}

.payout-item .input-group {
    margin: 0;
}

.payout-item .input-group input {
    min-height: 3.25rem;
    font-size: 1rem;
}

.btn-add-payout,
.btn-remove {
    min-height: 2.75rem;
    padding: 0.68rem 0.9rem;
    border-radius: 0.75rem;
    cursor: pointer;
    font-size: 0.72rem;
    font-weight: 700;
    transition:
        transform 140ms var(--ease-out),
        background-color 160ms ease,
        border-color 160ms ease;
}

.btn-add-payout {
    border: 1px dashed rgba(45, 125, 100, 0.45);
    background: rgba(45, 125, 100, 0.05);
    color: var(--jade);
}

.btn-remove {
    border: 1px solid rgba(163, 63, 54, 0.18);
    background: rgba(163, 63, 54, 0.04);
    color: var(--error);
}

@media (hover: hover) and (pointer: fine) {
    .btn-add-payout:hover {
        border-color: rgba(45, 125, 100, 0.72);
        background: rgba(45, 125, 100, 0.09);
    }

    .btn-remove:hover {
        background: rgba(163, 63, 54, 0.09);
    }
}

.floor-options {
    display: grid;
    width: 100%;
    gap: 0.7rem;
}

.floor-option {
    position: relative;
    width: 100%;
    padding: 1.05rem 3.2rem 1.05rem 1.1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(255, 254, 250, 0.58);
    cursor: pointer;
    text-align: left;
    transition:
        transform 140ms var(--ease-out),
        background-color 160ms ease,
        border-color 160ms ease,
        box-shadow 160ms ease;
}

.floor-option::after {
    position: absolute;
    top: 50%;
    right: 1.1rem;
    width: 1.15rem;
    height: 1.15rem;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    content: '';
    transform: translateY(-50%);
    transition:
        background-color 160ms ease,
        border-color 160ms ease,
        box-shadow 160ms ease;
}

.floor-option.selected {
    border-color: rgba(45, 125, 100, 0.64);
    background: rgba(220, 238, 230, 0.56);
    box-shadow: 0 0 0 3px rgba(45, 125, 100, 0.07);
}

.floor-option.selected::after {
    border-color: var(--jade);
    background: var(--jade);
    box-shadow: inset 0 0 0 3px var(--surface-solid);
}

.floor-option-title,
.floor-option-detail {
    display: block;
}

.floor-option-title {
    margin-bottom: 0.25rem;
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: -0.015em;
}

.floor-option-detail {
    color: var(--ink-soft);
    font-size: 0.75rem;
    line-height: 1.5;
}

.custom-floor-input {
    margin-top: 0.2rem;
}

.review-card {
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(255, 254, 250, 0.6);
}

.review-row {
    display: grid;
    width: 100%;
    grid-template-columns: minmax(8rem, 0.7fr) minmax(0, 1.3fr) auto;
    align-items: center;
    gap: 1rem;
    padding: 0.95rem 1rem;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: transparent;
    cursor: pointer;
    text-align: left;
    transition:
        transform 140ms var(--ease-out),
        background-color 160ms ease;
}

.review-row::after {
    color: var(--ink-muted);
    content: 'Edit';
    font-size: 0.65rem;
    font-weight: 700;
}

.review-row:last-child {
    border-bottom: 0;
}

.review-row span {
    color: var(--ink-muted);
    font-size: 0.7rem;
    font-weight: 600;
}

.review-row strong {
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.5;
}

@media (hover: hover) and (pointer: fine) {
    .review-row:hover {
        background: rgba(45, 125, 100, 0.05);
    }
}

body.dashboard-transition .onboarding-page {
    opacity: 0;
    transform: scale(0.99);
    transition:
        opacity 160ms ease,
        transform 160ms var(--ease-out);
}

body.dashboard-transition .top-progress-bar {
    opacity: 0;
    transition: opacity 140ms ease;
}

.dashboard-slide {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background:
        radial-gradient(circle at 70% 20%, rgba(115, 214, 178, 0.15), transparent 30rem),
        var(--paper);
    opacity: 0;
    transition: opacity 180ms ease;
}

.dashboard-slide.active {
    opacity: 1;
}

.dashboard-slide__content {
    width: min(100%, 35rem);
}

.dashboard-slide__title {
    margin-bottom: 0.7rem;
    font-family: var(--font-display);
    font-size: clamp(2.7rem, 6vw, 4.6rem);
    font-weight: 500;
    letter-spacing: -0.05em;
    line-height: 0.96;
}

.dashboard-slide__subtitle {
    max-width: 34rem;
    margin-bottom: 2.4rem;
    color: var(--ink-soft);
    font-size: 0.9rem;
    line-height: 1.65;
}

.dashboard-slide__progress {
    margin-bottom: 1.5rem;
}

.dashboard-slide__progress-bar {
    height: 3px;
    margin-bottom: 0.8rem;
    border-radius: 99px;
    background: rgba(23, 25, 22, 0.1);
    overflow: hidden;
}

.dashboard-slide__progress-fill {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: var(--jade);
    transition: width 100ms linear;
}

.dashboard-slide__progress-text {
    color: var(--ink-muted);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.dashboard-slide__glimpse {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.65rem;
    opacity: 0;
    transform: translateY(8px);
    transition:
        opacity 180ms ease,
        transform 220ms var(--ease-out);
}

.dashboard-slide.cards-visible .dashboard-slide__glimpse {
    opacity: 1;
    transform: translateY(0);
}

.dashboard-slide__card {
    min-width: 0;
    padding: 0.9rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(255, 254, 250, 0.6);
}

.dashboard-slide__card-title {
    margin-bottom: 0.3rem;
    color: var(--ink-muted);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dashboard-slide__card-value {
    overflow: hidden;
    font-size: 0.95rem;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    text-overflow: ellipsis;
}

.hidden,
[hidden] {
    display: none !important;
}

@keyframes pageEnter {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes previewEnter {
    from {
        opacity: 0;
        transform: rotateY(-2deg) rotateX(1deg) translateY(14px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: rotateY(-2deg) rotateX(1deg) translateY(0) scale(1);
    }
}

@keyframes floatEnter {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes drawLine {
    to { stroke-dashoffset: 0; }
}

@keyframes questionEnter {
    from {
        opacity: 0;
        transform: translateX(16px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes questionEnterBack {
    from {
        opacity: 0;
        transform: translateX(-16px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes questionExit {
    to {
        opacity: 0;
        transform: translateX(-10px);
    }
}

@keyframes questionExitBack {
    to {
        opacity: 0;
        transform: translateX(10px);
    }
}

@media (max-width: 980px) {
    .landing-hero {
        grid-template-columns: 1fr;
        gap: 4rem;
        padding-top: 5rem;
    }

    .landing-copy {
        max-width: 46rem;
    }

    .welcome-title {
        max-width: 9ch;
        font-size: clamp(5rem, 11vw, 7.4rem);
    }

    .landing-preview {
        width: min(100%, 46rem);
        margin-left: auto;
    }

    .landing-steps {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
}

@media (max-width: 640px) {
    .landing-page,
    .onboarding-page {
        padding-top: calc(0.65rem + env(safe-area-inset-top));
        padding-right: calc(1rem + env(safe-area-inset-right));
        padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
        padding-left: calc(1rem + env(safe-area-inset-left));
    }

    .landing-nav,
    .onboarding-nav {
        min-height: 4rem;
    }

    .landing-nav-cta {
        min-height: 2.6rem;
        padding-inline: 0.95rem;
    }

    .landing-hero {
        min-height: auto;
        gap: 3rem;
        padding: 4rem 0 5rem;
    }

    .landing-eyebrow {
        margin-bottom: 1.25rem;
        font-size: 0.64rem;
    }

    .welcome-title {
        max-width: 8.5ch;
        font-size: clamp(4.2rem, 19vw, 6rem);
    }

    .welcome-subtitle {
        max-width: 32rem;
        margin-top: 1.5rem;
        font-size: 0.94rem;
        line-height: 1.68;
    }

    .landing-actions .btn-primary {
        width: 100%;
        min-height: 3.35rem;
    }

    .landing-note {
        line-height: 1.6;
    }

    .landing-preview::before {
        inset: 10% -3% -5% 5%;
        border-radius: 1.9rem;
    }

    .preview-shell {
        padding: 1rem;
        border-radius: 1.45rem;
        transform: none;
    }

    .preview-summary > div {
        padding: 0.85rem 0.7rem;
    }

    .preview-summary strong {
        font-size: 0.96rem;
    }

    .preview-chart-card {
        padding: 1rem 0.8rem 0.45rem;
    }

    .preview-chart {
        aspect-ratio: 1.55;
    }

    .preview-insight {
        padding: 0.9rem;
    }

    .preview-float {
        display: none;
    }

    .landing-steps {
        gap: 2.6rem;
        padding: 5rem 0 4rem;
    }

    .steps-heading h2 {
        font-size: clamp(2.5rem, 12vw, 3.5rem);
    }

    .steps-grid article {
        grid-template-columns: 2.2rem 1fr;
        gap: 0.8rem;
        padding: 1.4rem 0 1.65rem;
    }

    .landing-footer {
        flex-direction: column;
        line-height: 1.4;
    }

    .onboarding-nav-note {
        display: none;
    }

    .onboarding-container {
        justify-content: flex-start;
        padding: 3.8rem 0 1.5rem;
    }

    .question-container {
        min-height: 0;
    }

    .question-meta {
        margin-bottom: 1.1rem;
    }

    .question-title {
        font-size: clamp(2.65rem, 13vw, 3.8rem);
    }

    .question-description {
        margin-bottom: 1.55rem;
        font-size: 0.86rem;
    }

    .question-body {
        align-items: stretch;
    }

    .input-group.narrow-input {
        width: 100%;
    }

    .input-group input,
    .input-group select {
        min-height: 3.8rem;
        font-size: 1.1rem;
    }

    .question-body > .btn-primary {
        width: 100%;
        min-height: 3.25rem;
    }

    .navigation {
        margin-top: 0.75rem;
    }

    .payout-item {
        grid-template-columns: 1fr;
    }

    .btn-remove {
        justify-self: start;
    }

    .review-row {
        grid-template-columns: 1fr auto;
        gap: 0.3rem 0.7rem;
    }

    .review-row strong {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .review-row::after {
        grid-column: 2;
        grid-row: 1;
    }

    .dashboard-slide {
        align-items: flex-start;
        padding-top: calc(6rem + env(safe-area-inset-top));
        padding-right: calc(1rem + env(safe-area-inset-right));
        padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
        padding-left: calc(1rem + env(safe-area-inset-left));
    }

    .dashboard-slide__glimpse {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 390px) {
    .landing-brand span {
        display: none;
    }

    .welcome-title {
        font-size: clamp(3.8rem, 18vw, 4.6rem);
    }

    .preview-summary span,
    .preview-chart-head span {
        letter-spacing: 0.06em;
    }

    .question-title {
        font-size: 2.55rem;
    }

    .floor-option {
        padding-right: 2.8rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 1ms !important;
    }

    .question,
    .question.exiting,
    .preview-shell,
    .preview-float {
        transform: none !important;
    }
}
