:root {
    color-scheme: dark;
    font: 16px/1.5 Inter, "Helvetica Neue", Arial, sans-serif;
    color: #f5f5f5;
    background: #0b0b0c;
    --accent: linear-gradient(108deg, #b2d5ff, #b6f4d6 39%, #d5c3ff 72%, #ff9fd5);
}
* { box-sizing: border-box; }
body { margin: 0; padding: clamp(12px, 4vw, 64px); min-height: 100svh; display: grid; place-items: center; }
.shell {
    width: min(100%, 980px);
    min-height: min(670px, 90svh);
    padding: clamp(24px, 5vw, 64px);
    border: 1px solid #3b3b3e;
    border-radius: 24px;
    background: radial-gradient(ellipse at 50% 14%, #202026 0%, #111113 47%, #0e0e0f 100%);
    box-shadow: 0 20px 65px #0009, inset 0 0 0 4px #ffffff08;
}
.home { display: block; width: fit-content; margin: 0 auto 26px; }
.home img { display: block; width: 150px; height: auto; border-radius: 5px; }
.welcome { max-width: 480px; margin: auto; text-align: center; }
.photo-stack { display: flex; justify-content: center; align-items: center; margin: 34px auto 26px; isolation: isolate; }
.photo-card {
    position: relative;
    width: clamp(64px, 25vw, 145px);
    max-width: 33.33%;
    margin: 0;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border: 1px solid #ffffff36;
    border-radius: 10px;
    box-shadow: 0 9px 23px #0008;
}
.photo-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.photo-card::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(165deg, rgb(9 19 36 / 75%), transparent 54%);
    content: '';
}
.photo-card figcaption {
    position: absolute;
    z-index: 1;
    inset: 8% auto auto 8%;
    color: #fff;
    font-size: clamp(.625rem, 3.5vw, 1.125rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.04em;
}
.photo-card:first-child { transform: rotate(-12deg) translateX(5px); }
.photo-card:nth-child(2) { z-index: 1; transform: translateY(-7px); }
.photo-card:last-child { transform: rotate(12deg) translateX(-5px); }

h1 { font-size: clamp(1.85rem, 5vw, 2.7rem); line-height: 1.07; letter-spacing: -.05em; margin: 0 0 12px; }
p { color: #babac3; margin: 0 0 24px; }
.paths, form { display: grid; gap: 12px; }
.paths { margin: 26px auto; max-width: 390px; }
.path {
    display: grid;
    grid-template-columns: 1fr auto;
    text-align: left;
    padding: 13px 17px;
    color: #fff;
    background: #202024;
    border: 1px solid #414149;
    border-radius: 11px;
    text-decoration: none;
}
.path span:not(.arrow) { grid-column: 1; font-size: .87rem; }
.path .arrow { grid-area: 1 / 2 / 3 / 3; align-self: center; }
.path.primary, button { background: var(--accent); color: #111117; border-color: transparent; }
.path:hover, button:hover { filter: brightness(1.12); }
:focus-visible { outline: 2px solid #b2d5ff; outline-offset: 4px; }
.back { color: #c7c7d1; font-size: .9rem; text-underline-offset: 4px; }
.intake { display: none; width: min(100%, 480px); margin: auto; }
.intake:target { display: block; scroll-margin-top: 24px; }
.shell:has(.intake:target) .welcome { display: none; }
.intake > .back { display: inline-block; margin-bottom: 20px; }
label { display: grid; gap: 5px; font-size: .9rem; font-weight: 600; }
input, select, textarea {
    width: 100%;
    padding: 10px 12px;
    font: inherit;
    font-weight: 400;
    color: #fff;
    background: #1e1e22;
    border: 1px solid #494952;
    border-radius: 8px;
}
textarea { resize: vertical; }
button { padding: 12px; border: 0; border-radius: 9px; font: inherit; font-weight: 700; cursor: pointer; }
button:disabled { opacity: .55; cursor: default; }
.note, .feedback { font-size: .83rem; margin: 0; }
.feedback { color: #b6f4d6; }
.feedback:empty { display: none; }

.intake fieldset {
    min-width: 0;
    margin: 0;
    padding: 8px 12px 12px;
    border: 1px solid #494952;
    border-radius: 8px;
}
.intake legend { padding-inline: 4px; font-size: .9rem; font-weight: 600; }
.intake-options { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 5px; }
.intake-options label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.intake-options input { width: auto; margin: 0; accent-color: #b6f4d6; }
.placement-note { padding: 12px; border-inline-start: 2px solid #b6f4d6; }

.guided-intake { gap: 16px; }
.guided-intake [hidden] { display: none; }
.intake-progress {
    width: 100%;
    height: 5px;
    border: 0;
    border-radius: 4px;
    overflow: hidden;
    accent-color: #b6f4d6;
}
.intake-progress::-webkit-progress-bar { background: #33333b; }
.intake-progress::-webkit-progress-value { background: var(--accent); }
.guided-intake > label, .guided-intake legend {
    font-size: clamp(1.25rem, 4vw, 1.9rem);
    line-height: 1.22;
    letter-spacing: -.025em;
}
.guided-intake > label { gap: 14px; }
.guided-intake > label .note { color: #babac3; font-weight: 400; line-height: 1.5; letter-spacing: normal; }
.guided-intake > label :is(input, textarea, select) { font-size: 1rem; }
.guided-intake fieldset { padding: 12px 0 0; border: 0; }
.guided-intake legend { padding: 0; }
.guided-intake .intake-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(125px, 1fr)); gap: 8px; }
.guided-intake .intake-options label {
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid #494952;
    border-radius: 8px;
    background: #202024;
}
.guided-intake .intake-options label:has(input:checked) { border-color: #b6f4d6; background: #25342f; }
.intake-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.intake-actions button { min-height: 44px; padding-inline: 16px; }
.intake-actions .intake-previous { background: #26262c; color: #fff; }

body:has(.intake:target) {
    color-scheme: light;
    font-family: "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;
    color: #242424;
    background: #fff;
    padding: 0;
}
.shell:has(.intake:target) {
    width: 100%;
    min-height: 100svh;
    display: grid;
    align-items: center;
    padding: 96px clamp(24px, 10vw, 135px);
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: #fff;
}
.shell:has(.intake:target) > .home {
    position: absolute;
    top: 25px;
    left: 24px;
    margin: 0;
}
.intake:target { width: min(100%, 690px); text-align: center; }
.intake:target > .back {
    position: absolute;
    top: 29px;
    right: 24px;
    margin: 0;
    color: #4b4b4b;
}
.intake:target h1 { font-size: .9rem; letter-spacing: 0; margin-bottom: 8px; }
.intake:target > p { color: #555; font-size: .875rem; margin-bottom: 12px; }
.guided-intake { position: relative; gap: 18px; }
.intake-progress {
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    height: 4px;
    border-radius: 0;
    accent-color: #14843d;
}
.intake-progress::-webkit-progress-bar { background: #e8e8e8; }
.intake-progress::-webkit-progress-value { background: #14843d; }
.intake-progress::-moz-progress-bar { background: #14843d; }
.guided-intake > label, .guided-intake legend {
    font-size: clamp(1.5rem, 4vw, 2.125rem);
    font-weight: 500;
    letter-spacing: -.025em;
    line-height: 1.25;
}
.guided-intake > label .note, .guided-intake .note { color: #555; }
.guided-intake > label :is(input, textarea) {
    padding: 9px 0;
    border: 0;
    border-bottom: 1px solid #999;
    border-radius: 0;
    background: transparent;
    color: #111;
    font-size: clamp(1.125rem, 3vw, 1.6rem);
}
.guided-intake > label :is(input, textarea)::placeholder { color: #666; }
.guided-intake .intake-options {
    grid-template-columns: 1fr;
    max-width: 370px;
    margin-inline: auto;
    counter-reset: option;
}
.guided-intake .intake-options label {
    position: relative;
    gap: 10px;
    color: #111;
    border-color: #a3a3a3;
    border-radius: 4px;
    background: #fff;
    counter-increment: option;
}
.guided-intake .intake-options label::before {
    content: counter(option, upper-alpha);
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border: 1px solid #a3a3a3;
    border-radius: 3px;
    background: #fff;
    font-size: .75rem;
}
.guided-intake .intake-options input { position: absolute; opacity: 0; }
.guided-intake .intake-options label:has(input:focus-visible) { outline: 2px solid #111; outline-offset: 2px; }
.guided-intake .intake-options label:has(input:checked) { border-color: #111; background: #ededed; }
.guided-intake .intake-options label:has(input:checked)::before { background: #111; color: #fff; border-color: #111; }
.guided-intake .intake-actions button, .intake-navigation button {
    border-radius: 4px;
    background: #111;
    color: #fff;
}
.intake-navigation {
    position: fixed;
    inset-inline: max(16px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}
.intake-navigation button { width: 44px; min-height: 44px; padding: 4px; font-size: 1.25rem; pointer-events: auto; }
.guided-intake .placement-note { border-color: #111; }
.guided-intake .feedback { color: #222; }
@media (max-width: 480px) {
    .shell:has(.intake:target) > .home { left: 16px; }
    .shell:has(.intake:target) > .home img { width: 118px; }
    .intake:target > .back { right: 16px; font-size: .8rem; }
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
