@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,600;0,700;1,500;1,600&family=Inter:wght@400;500;600;700&display=swap");

:root {
    --color-app-bg: #09033d;
    --color-app-panel: #1a124f;
    --color-app-panel-soft: #211856;
    --color-app-line: #40396e;
    --color-app-text: #ffffff;
    --color-app-muted: #918bad;
    --color-app-accent: #8df0d0;
    --color-app-link: #b594ff;
    --font-body: Inter, sans-serif;
    --font-display: "Cormorant Garamond", serif;

    --space-1: 5px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-7: 28px;
    --space-8: 34px;
    --space-9: 42px;
    --space-10: 56px;
    --space-11: 72px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-width: 320px;
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: #f4f4f8;
    color: var(--color-app-text);
    font-family: var(--font-body);
}

.phone {
    width: min(390px, calc(100vw - 32px));
    height: min(860px, calc(100vh - 32px));
    overflow-y: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 22px;
    border-radius: 34px;
    border: 8px solid #05050b;
    background: var(--color-app-bg);
    box-shadow: 0 30px 70px rgba(10, 9, 32, 0.25);
}

.phone::-webkit-scrollbar {
    display: none;
}

.screen {
    min-height: calc(100% - 4px);
    padding: 18px 8px 26px;
    display: flex;
    flex-direction: column;
}

.screen + .screen {
    margin-top: 32px;
    border-top: 1px solid var(--color-app-line);
}

.app-topbar,
.brand-lockup {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-lockup {
    justify-content: flex-start;
    gap: 12px;
    font-size: 22px;
}

.brand-lockup strong {
    font-weight: 700;
}

.app-topbar a {
    color: var(--color-app-link);
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
}

.app-icon {
    color: var(--color-app-accent);
    font-size: 28px;
    font-weight: 400;
    line-height: 1;
}

.progress-row {
    margin: 30px 0 26px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.progress-row span {
    height: 6px;
    border-radius: 999px;
    background: #3d356c;
}

.progress-row .is-active {
    background: var(--color-app-accent);
}

.sleep-scene {
    position: relative;
    height: 160px;
    overflow: hidden;
    border-radius: 18px;
    background:
        radial-gradient(circle at 74% 74%, #ffdb84 0 9%, transparent 10%),
        radial-gradient(
            circle at 72% 78%,
            rgba(255, 92, 113, 0.55),
            transparent 22%
        ),
        linear-gradient(180deg, #211856 0%, #25155a 62%, #09033d 100%);
}

.moon {
    position: absolute;
    top: 48px;
    left: 52px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #d8c8ff;
    box-shadow: 12px -4px 0 #12124f inset;
}

.star {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #fff;
}

.star-one {
    top: 34px;
    left: 170px;
}

.star-two {
    top: 82px;
    right: 58px;
}

.star-three {
    top: 104px;
    left: 220px;
}

.ridge {
    position: absolute;
    right: -40px;
    bottom: 0;
    left: -40px;
    height: 70px;
    border-radius: 48% 52% 0 0;
}

.ridge-back {
    bottom: 30px;
    background: #121550;
    transform: rotate(6deg);
}

.ridge-mid {
    bottom: 14px;
    background: #0c1141;
    transform: rotate(-5deg);
}

.ridge-front {
    background: #070b31;
}

.intro-copy {
    margin-top: 26px;
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.intro-copy h1 {
    margin: 0 0 24px;
    font-family: var(--font-display);
    font-size: 41px;
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: 0;
}

.intro-copy h1 em {
    color: inherit;
    font-style: normal;
}

.value-card {
    margin-top: 12px;
    padding: 18px;
    border: 1px solid var(--color-app-line);
    border-radius: 18px;
    background: var(--color-app-panel-soft);
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 12px;
}

.card-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #2d2855;
    display: grid;
    place-items: center;
}

.card-icon::before {
    color: var(--color-app-accent);
    font-size: 23px;
}

.shield-icon::before {
    content: "✓";
}

.clock-icon::before {
    content: "◷";
}

.value-card strong {
    display: block;
    color: var(--color-app-text);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.22;
}

.value-card p {
    margin: 7px 0 0;
    color: var(--color-app-muted);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.25;
}

.intro-footer {
    margin-top: auto;
    padding-top: 22px;
}

.primary-action {
    min-height: 50px;
    border: 1px solid #d8d6e7;
    border-radius: 0;
    background: linear-gradient(180deg, #ffffff, #eeeeee);
    color: var(--color-app-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    text-decoration: none;
}

.secure-note {
    margin: 18px 0 0;
    color: var(--color-app-muted);
    text-align: center;
}

.questionnaire-screen,
.story-screen,
.paywall-screen {
    padding-top: 26px;
}

.questionnaire-copy {
    margin-bottom: 18px;
}

.screen-kicker {
    margin: 0 0 10px;
    color: var(--color-app-accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.questionnaire-copy h3 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: 0;
}

.questionnaire-copy p:not(.screen-kicker) {
    margin: 14px 0 0;
    color: var(--color-app-muted);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.42;
}

.questionnaire-card fieldset {
    margin: 0;
    padding: 0;
    border: 0;
}

.questionnaire-card legend,
.select-field,
.range-field {
    color: var(--color-app-text);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.questionnaire-card label {
    cursor: pointer;
}

.questionnaire-card fieldset label {
    margin-top: 12px;
    padding: 12px;
    border: 1px solid #393163;
    border-radius: 14px;
    background: #171047;
    color: #d8d4ea;
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 10px;
    align-items: start;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.32;
}

.questionnaire-card input[type="radio"] {
    width: 16px;
    height: 16px;
    margin: 1px 0 0;
    accent-color: var(--color-app-accent);
}

.select-field,
.range-field {
    margin-top: 36px;
    display: grid;
    gap: 9px;
}

.range-field {
    margin-bottom: 144px;
}

.select-field select {
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid #4a417a;
    border-radius: 12px;
    background: #0f0a3b;
    color: var(--color-app-text);
    font: inherit;
}

.range-field input {
    width: 100%;
    accent-color: var(--color-app-accent);
}

.questionnaire-card .primary-action {
    width: 100%;
    margin-top: 18px;
}

.story-copy h3 {
    font-size: 42px;
}

.story-copy p {
    font-size: 16px;
}

.story-figure {
    min-height: 240px;
}

.story-panel .aha-panel {
    overflow: hidden;
    border: 1px solid var(--color-line);
    color: var(--color-paper);
}

.aha-panel {
    margin-top: var(--space-8);
}

.story-copy {
    display: grid;
    align-content: start;
    gap: var(--space-2);
}

.story-copy h3 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 600;
    line-height: 0.96;
}

.story-copy p {
    margin: 0;
    max-width: 460px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 16px;
    line-height: 1.32;
}

.story-figure {
    position: relative;
    height: 20%;
}

.head-figure {
    align-self: end;
    background: linear-gradient(180deg, transparent 0 78%, #0d8e55 78% 100%);
}

.head-figure::before {
    content: "";
    position: absolute;
    right: 26px;
    bottom: 22px;
    width: 80px;
    height: 80px;
    border-radius: 58% 46% 42% 52%;
    background: #0ba867;
}

.head-figure::after {
    content: "";
    position: absolute;
    right: 86px;
    bottom: 92px;
    width: 142px;
    height: 142px;
    border-radius: 50%;
    background:
        radial-gradient(
            circle at 22% 32%,
            transparent 0 16px,
            #d8841d 17px 18px,
            transparent 19px
        ),
        radial-gradient(
            circle at 70% 44%,
            transparent 0 14px,
            #d8841d 15px 16px,
            transparent 17px
        ),
        radial-gradient(
            circle at 48% 66%,
            transparent 0 18px,
            #d8841d 19px 20px,
            transparent 21px
        ),
        #ffbf1e;
}

.figure-neck {
    position: absolute;
    right: 112px;
    bottom: 0;
    width: 20px;
    height: 105px;
    background: repeating-linear-gradient(
        180deg,
        #f1c8d2 0 10px,
        #cc5867 10px 18px
    );
    box-shadow: 0 0 0 4px #ffffff inset;
}

.figure-brain {
    position: absolute;
    right: 118px;
    bottom: 138px;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background:
        radial-gradient(
            circle at 34% 35%,
            transparent 0 12px,
            #d8841d 13px 14px,
            transparent 15px
        ),
        radial-gradient(
            circle at 66% 58%,
            transparent 0 14px,
            #d8841d 15px 16px,
            transparent 17px
        ),
        #ffbf1e;
    opacity: 0.9;
}

.figure-airway {
    position: absolute;
    right: 66px;
    bottom: 62px;
    width: 118px;
    height: 88px;
    border-radius: 55% 40% 48% 62%;
    border: 14px solid #ff4d5a;
    border-left-width: 0;
    border-top-width: 18px;
}

.path-figure {
    background:
        radial-gradient(circle at 18% 78%, #d94c47 0 44px, transparent 45px),
        radial-gradient(circle at 40% 68%, #19a768 0 32px, transparent 33px),
        radial-gradient(circle at 60% 84%, #f2bad6 0 46px, transparent 47px),
        radial-gradient(circle at 82% 74%, #4e53aa 0 40px, transparent 41px),
        linear-gradient(
            180deg,
            transparent 0 44%,
            rgba(255, 255, 255, 0.06) 44% 100%
        );
}

.path-node {
    position: absolute;
    width: 92px;
    height: 64px;
    border-radius: 46% 54% 48% 52%;
}

.node-one {
    top: 54px;
    left: 34px;
    background: #ff5a5b;
}

.node-two {
    top: 76px;
    left: 116px;
    background: #0ca565;
}

.node-three {
    top: 128px;
    left: 68px;
    background: #9dd5ff;
}

.node-four {
    top: 156px;
    left: 160px;
    background: #f4c0db;
}

.menu-preview {
    margin-top: 18px;
    display: grid;
    gap: 12px;
}

.menu-panel {
    padding: 16px;
    border: 1px solid var(--color-app-line);
    border-radius: 18px;
    background: var(--color-app-panel);
}

.menu-panel h3 {
    margin: 7px 0 0;
    color: var(--color-app-text);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.menu-panel p {
    margin: 8px 0 0;
    color: #bdb7d7;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.36;
}

.menu-label {
    color: var(--color-app-accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.menu-panel ul {
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.menu-panel li {
    padding-left: 18px;
    position: relative;
    color: #e8e4f6;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.28;
}

.menu-panel li::before {
    position: absolute;
    left: 0;
    color: var(--color-app-accent);
    content: "*";
}

.coaching-panel {
    background:
        linear-gradient(135deg, rgba(141, 240, 208, 0.12), transparent 42%),
        var(--color-app-panel);
}

.kit-panel {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    align-items: center;
}

.kit-panel a {
    min-width: 78px;
    min-height: 38px;
    border: 1px solid #d8d6e7;
    background: #ffffff;
    color: var(--color-app-bg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
}
