/* Pippin design system — dark mode only */
:root {
    color-scheme: dark;
    --canvas: #0b0d11;
    --canvas-raised: #11141a;
    --surface: #151820;
    --surface-soft: #191d25;
    --ink: #f5f6f8;
    --ink-soft: #b1b7c3;
    --ink-faint: #858d9c;
    --line: rgba(255, 255, 255, 0.11);
    --line-strong: rgba(255, 255, 255, 0.19);
    --accent: #8593ff;
    --accent-soft: #202746;
    --accent-ink: #b9c1ff;
    --on-accent: #10131b;
    --success: #61b98b;
    /* Showpiece surfaces (hero artifact, Plus card, CTA). Always dark — the
       WebGL field reads --hero as its base so it always matches the surface. */
    --hero: #0b0d12;
    --hero-surface: #151820;
    --hero-surface-2: #1b1f29;
    --hero-text: #f7f8fb;
    --hero-muted: #a6adbb;
    --hero-line: rgba(255, 255, 255, 0.11);
    --hero-fill: rgba(255, 255, 255, 0.06);
    --hero-onfield: #a6adbb;
    --peak: #f06c59;
    --focus: #e6ae3f;
    --light: #4b9c72;
    --rest: #5573bd;
    --fixed: #8b93a2;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.42), 0 8px 28px rgba(0, 0, 0, 0.24);
    --shadow-md: 0 22px 70px -28px rgba(0, 0, 0, 0.75);
    --shadow-hero: 0 48px 120px -42px rgba(0, 0, 0, 0.8);
    --display: 'Bricolage Grotesque', 'Arial Narrow', sans-serif;
    --body: 'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --utility: ui-monospace, 'SFMono-Regular', 'SF Mono', Menlo, Consolas, monospace;
    /* Weight ramp: five committed roles, no in-between values. */
    --w-medium: 500;
    --w-semibold: 600;
    --w-bold: 700;
    --w-display: 760;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-expo: cubic-bezier(0.22, 1, 0.36, 1);
    --nav-bg: rgba(11, 13, 17, 0.86);
    /* Logo swap — always show light (white) logo on dark background */
    --logo-dark-display: none;
    --logo-light-display: block;
}

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

* {
    margin: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 6rem;
    -webkit-text-size-adjust: 100%;
}

body {
    min-width: 320px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: clip;
    background: var(--canvas);
    color: var(--ink);
    font-family: var(--body);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

main {
    flex: 1;
}

img,
svg {
    display: block;
}

img {
    max-width: 100%;
}

button,
input,
textarea,
select {
    font: inherit;
}

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

a {
    color: inherit;
    text-decoration: none;
}

::selection {
    background: var(--accent);
    color: #fff;
}

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
    border-radius: 5px;
}

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 0.75rem;
    left: 0.75rem;
    transform: translateY(-150%);
    padding: 0.7rem 1rem;
    border-radius: 0.65rem;
    background: var(--ink);
    color: var(--canvas);
    font-weight: var(--w-semibold);
    transition: transform 180ms var(--ease-out);
}

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

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.container {
    width: min(100%, 1240px);
    margin-inline: auto;
    padding-inline: clamp(1.125rem, 4vw, 2.5rem);
}

.logo-dark {
    display: var(--logo-dark-display);
}

.logo-light {
    display: var(--logo-light-display);
}

/* Navigation */
.nav {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    border-bottom: 1px solid var(--line);
    background: var(--nav-bg);
    backdrop-filter: saturate(160%) blur(16px);
    -webkit-backdrop-filter: saturate(160%) blur(16px);
}

.nav-container {
    width: min(100%, 1240px);
    height: 4.75rem;
    margin-inline: auto;
    padding-inline: clamp(1.125rem, 4vw, 2.5rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.logo,
.footer-brand {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-family: var(--display);
    font-size: 1.18rem;
    font-weight: var(--w-display);
    letter-spacing: -0.025em;
}

.logo img {
    width: 1.8rem;
    height: 1.8rem;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: clamp(1.1rem, 2.5vw, 2.2rem);
}

.nav-links a,
.footer-links a {
    position: relative;
    color: var(--ink-soft);
    font-size: 0.9rem;
    font-weight: var(--w-medium);
    transition: color 180ms ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    inset: auto 0 -0.42rem;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 220ms var(--ease-out);
}

.nav-links a:hover,
.footer-links a:hover {
    color: var(--ink);
}

.nav-links a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
}

.nav-menu summary {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    transition: background 180ms ease, border-color 180ms ease, transform 180ms var(--ease-out);
}

.nav-menu summary:hover {
    background: var(--surface);
    border-color: var(--line-strong);
    transform: translateY(-1px);
}

.nav-menu summary:active {
    transform: scale(0.95);
}

.nav-menu summary svg {
    width: 1.15rem;
    height: 1.15rem;
}

.nav-menu {
    position: relative;
    display: none;
}

.nav-menu summary {
    list-style: none;
}

.nav-menu summary::-webkit-details-marker {
    display: none;
}

.nav-menu-panel {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 0;
    width: min(17rem, calc(100vw - 2.25rem));
    padding: 0.55rem;
    display: grid;
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: var(--surface);
    box-shadow: var(--shadow-md);
}

.nav-menu-panel a {
    min-height: 46px;
    display: flex;
    align-items: center;
    padding-inline: 0.85rem;
    border-radius: 0.65rem;
    color: var(--ink-soft);
    font-weight: var(--w-semibold);
}

.nav-menu-panel a:hover {
    background: var(--surface-soft);
    color: var(--ink);
}

/* Hero */
.hero {
    padding: clamp(8.75rem, 15vw, 11.5rem) 0 clamp(5rem, 9vw, 8rem);
}

.hero-intro {
    max-width: 60rem;
    margin-inline: auto;
    text-align: center;
}

.hero-note {
    margin-bottom: 1.25rem;
    color: var(--ink-soft);
    font-size: 0.93rem;
    font-weight: var(--w-semibold);
}

.hero h1 {
    max-width: 15ch;
    margin-inline: auto;
    font-family: var(--display);
    font-size: clamp(3rem, 7.5vw, 5.8rem);
    font-weight: var(--w-display);
    letter-spacing: -0.04em;
    line-height: 0.94;
    text-wrap: balance;
}

.hero h1 span {
    position: relative;
    display: inline-block;
    color: var(--accent);
    font-weight: var(--w-semibold);
}

/* When the field lights, reveal it through the glyphs; accent color is the fallback. */
.hero h1 span:has(.hero-accent-fx.is-lit) {
    color: transparent;
}

.hero-accent-fx {
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

.hero-sub {
    max-width: 48ch;
    margin: clamp(1.5rem, 3vw, 2rem) auto 0;
    color: var(--ink-soft);
    font-size: clamp(1.03rem, 1.7vw, 1.2rem);
    line-height: 1.65;
    text-wrap: pretty;
}

/* Signature artifact: the schedule is the hero, not a floating screenshot. */
.day-shaper {
    position: relative;
    margin-top: clamp(3rem, 7vw, 5.5rem);
    padding: clamp(1rem, 2.4vw, 1.65rem);
    overflow: hidden;
    border: 1px solid var(--hero-line);
    border-radius: clamp(1.5rem, 3vw, 2.25rem);
    background: var(--hero);
    color: var(--hero-text);
    box-shadow: var(--shadow-hero);
    isolation: isolate;
}

.day-shaper::before {
    content: '';
    position: absolute;
    z-index: -1;
    top: -24rem;
    right: -16rem;
    width: 44rem;
    height: 34rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(85, 115, 189, 0.2), rgba(85, 115, 189, 0) 67%);
    pointer-events: none;
}

/* WebGL energy field — recurs behind the dark, contained surfaces (hero artifact,
   Plus card, final CTA). Any CSS glow already on the host is the no-WebGL fallback;
   real content sits above via z-index. */
.energy-field {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    display: block;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1.1s var(--ease-out);
}

.energy-field.is-lit {
    opacity: 1;
}

/* Subdued on the text-dense Plus card so copy stays legible over it. */
.price-card.featured .energy-field.is-lit {
    opacity: 0.72;
}

.price-card.featured {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.cta-band {
    isolation: isolate;
}

/* Keep the CTA's radial glow behind the field canvas (it's the no-WebGL fallback). */
.cta-band::after {
    z-index: -1;
}

.day-shaper > .shaper-toolbar,
.day-shaper > .shaper-grid,
.day-shaper > .daylight-track,
.price-card.featured > :not(.energy-field),
.cta-band > :not(.energy-field) {
    position: relative;
    z-index: 1;
}

.shaper-toolbar {
    min-height: 3.4rem;
    padding: 0.1rem 0.35rem 1.15rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.shaper-date {
    display: flex;
    align-items: baseline;
    gap: 0.55rem;
}

.shaper-date span {
    color: var(--hero-onfield);
    font-size: 0.75rem;
    font-weight: var(--w-semibold);
}

.shaper-date strong {
    font-family: var(--display);
    font-size: 1rem;
    font-weight: var(--w-semibold);
}

.energy-key {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.7rem, 2vw, 1.35rem);
    color: var(--hero-onfield);
    font-family: var(--utility);
    font-size: 0.65rem;
    list-style: none;
}

.energy-key li {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
}

.energy-key i {
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 50%;
}

.energy-key .peak {
    background: var(--peak);
}

.energy-key .focus {
    background: var(--focus);
}

.energy-key .light {
    background: var(--light);
}

.energy-key .rest {
    background: var(--rest);
}

.shaper-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) 7rem minmax(0, 1.08fr);
    align-items: center;
}

.dump-pane,
.plan-pane {
    min-width: 0;
    border: 1px solid var(--hero-line);
    border-radius: 1.25rem;
    background: var(--hero-surface);
}

.dump-pane {
    min-height: 31.5rem;
    padding: clamp(1.35rem, 2.8vw, 2rem);
    display: flex;
    flex-direction: column;
}

.plan-pane {
    padding: clamp(1.1rem, 2.2vw, 1.55rem);
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.24);
}

.pane-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.pane-label {
    color: var(--hero-muted);
    font-family: var(--utility);
    font-size: 0.66rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pane-heading h3 {
    margin-top: 0.2rem;
    font-family: var(--display);
    font-size: clamp(1.2rem, 2vw, 1.45rem);
    font-weight: var(--w-semibold);
    letter-spacing: -0.02em;
}

.voice-state,
.plan-status {
    min-height: 2rem;
    padding: 0.35rem 0.58rem;
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    flex: 0 0 auto;
    border: 1px solid var(--hero-line);
    border-radius: 999px;
    color: var(--hero-muted);
    font-size: 0.63rem;
    font-weight: var(--w-semibold);
}

.voice-state svg {
    width: 0.95rem;
    height: 0.95rem;
}

.plan-status i {
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 50%;
    background: #61c28e;
    box-shadow: 0 0 0 3px rgba(97, 194, 142, 0.13);
}

.dump-pane blockquote {
    margin: clamp(2rem, 5vw, 3.3rem) 0;
    color: var(--hero-text);
    font-family: var(--display);
    font-size: clamp(1.35rem, 2.3vw, 1.85rem);
    font-style: normal;
    font-weight: var(--w-medium);
    letter-spacing: -0.025em;
    line-height: 1.35;
    text-wrap: pretty;
}

.dump-context {
    margin-top: auto;
    padding-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid var(--hero-line);
    color: var(--hero-muted);
    font-size: 0.72rem;
}

.dump-context strong {
    color: var(--hero-text);
    font-family: var(--utility);
    font-size: 0.68rem;
    font-weight: var(--w-medium);
}

.loose-tasks {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.loose-tasks span {
    padding: 0.42rem 0.62rem;
    border: 1px solid var(--hero-line);
    border-radius: 0.58rem;
    background: var(--hero-surface-2);
    color: var(--hero-muted);
    font-size: 0.67rem;
    font-weight: var(--w-medium);
}

.shaper-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    color: var(--hero-onfield);
    text-align: center;
}

.shaper-mark {
    width: 3.25rem;
    height: 3.25rem;
    display: grid;
    place-items: center;
    border: 1px solid var(--hero-line);
    border-radius: 50%;
    background: #f7f8fa;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.36);
}

.shaper-mark img {
    width: 1.65rem;
    height: 1.65rem;
    object-fit: contain;
}

.shaper-mark .logo-dark {
    display: block;
}

.shaper-mark .logo-light {
    display: none;
}

.action-copy {
    max-width: 7ch;
    font-size: 0.64rem;
    font-weight: var(--w-semibold);
    line-height: 1.25;
}

.action-arrow {
    width: 3.2rem;
    height: auto;
}

.day-plan {
    margin-top: 1rem;
    display: grid;
    gap: 0.34rem;
    list-style: none;
    padding: 0;
}

.day-plan li {
    min-width: 0;
    display: grid;
    grid-template-columns: 3.05rem minmax(0, 1fr);
    align-items: center;
    gap: 0.6rem;
}

.day-plan time {
    color: var(--hero-muted);
    font-family: var(--utility);
    font-size: 0.66rem;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.plan-block {
    position: relative;
    min-width: 0;
    padding: 0.56rem 0.68rem 0.56rem 1.35rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    overflow: hidden;
    border: 1px solid var(--hero-line);
    border-radius: 0.7rem;
    background: var(--hero-surface-2);
}

.plan-block::before {
    content: '';
    position: absolute;
    left: 0.65rem;
    width: 0.38rem;
    height: 0.38rem;
    border-radius: 50%;
    background: var(--fixed);
}

.energy-peak .plan-block {
    background: color-mix(in srgb, var(--peak) 14%, var(--hero-surface-2));
}

.energy-focus .plan-block {
    background: color-mix(in srgb, var(--focus) 11%, var(--hero-surface-2));
}

.energy-light .plan-block {
    background: color-mix(in srgb, var(--light) 12%, var(--hero-surface-2));
}

.energy-rest .plan-block {
    background: color-mix(in srgb, var(--rest) 14%, var(--hero-surface-2));
}

.energy-peak .plan-block::before {
    background: var(--peak);
}

.energy-focus .plan-block::before {
    background: var(--focus);
}

.energy-light .plan-block::before {
    background: var(--light);
}

.energy-rest .plan-block::before {
    background: var(--rest);
}

.fixed .plan-block {
    background: transparent;
    border-style: dashed;
}

.plan-block strong {
    min-width: 0;
    overflow: hidden;
    color: var(--hero-text);
    font-size: 0.72rem;
    font-weight: var(--w-semibold);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.plan-block small {
    flex: 0 0 auto;
    color: var(--hero-muted);
    font-family: var(--utility);
    font-size: 0.56rem;
    white-space: nowrap;
}

.daylight-track {
    position: relative;
    margin-top: 1.1rem;
    padding-top: 0.7rem;
    display: grid;
    grid-template-columns: 0.7fr 1fr 1fr 1fr 0.7fr;
    color: var(--hero-onfield);
    font-family: var(--utility);
    font-size: 0.66rem;
    font-variant-numeric: tabular-nums;
    text-align: center;
}

.daylight-track::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--peak), var(--focus) 34%, var(--light) 68%, var(--rest));
}

.daylight-track span:first-child {
    text-align: left;
}

.daylight-track span:last-child {
    text-align: right;
}

.day-shaper.is-replaying .loose-tasks span {
    animation: loosePulse 520ms var(--ease-out) both;
}

.day-shaper.is-replaying .loose-tasks span:nth-child(2) {
    animation-delay: 45ms;
}

.day-shaper.is-replaying .loose-tasks span:nth-child(3) {
    animation-delay: 90ms;
}

.day-shaper.is-replaying .loose-tasks span:nth-child(4) {
    animation-delay: 135ms;
}

.day-shaper.is-replaying .loose-tasks span:nth-child(5) {
    animation-delay: 180ms;
}

.day-shaper.is-replaying .loose-tasks span:nth-child(6) {
    animation-delay: 225ms;
}

.day-shaper.is-replaying .shaper-mark {
    animation: markPulse 700ms var(--ease-out) 360ms both;
}

.day-shaper.is-replaying .day-plan li {
    animation-name: planReplay;
    animation-duration: 780ms;
    animation-delay: 560ms;
}

.day-shaper.is-replaying .day-plan li:nth-child(2) {
    animation-delay: 625ms;
}

.day-shaper.is-replaying .day-plan li:nth-child(3) {
    animation-delay: 690ms;
}

.day-shaper.is-replaying .day-plan li:nth-child(4) {
    animation-delay: 755ms;
}

.day-shaper.is-replaying .day-plan li:nth-child(5) {
    animation-delay: 820ms;
}

.day-shaper.is-replaying .day-plan li:nth-child(6) {
    animation-delay: 885ms;
}

.day-shaper.is-replaying .day-plan li:nth-child(7) {
    animation-delay: 950ms;
}

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

    45% {
        transform: translateY(-5px);
        border-color: rgba(255, 255, 255, 0.26);
        color: var(--hero-text);
    }
}

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

    50% {
        transform: scale(1.12);
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.07), 0 16px 40px rgba(0, 0, 0, 0.42);
    }
}

@keyframes planReplay {
    from {
        transform: translateX(-18px);
        filter: blur(4px);
    }

    to {
        transform: translateX(0);
        filter: blur(0);
    }
}

.hero-foot {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.5rem;
}

.hero-foot > p {
    color: var(--ink-soft);
    font-size: 0.87rem;
    text-align: center;
}

.coming-soon {
    min-height: 3.4rem;
    padding: 0.58rem 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.68rem;
    border: 1px solid var(--line-strong);
    border-radius: 0.85rem;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: inherit;
}

.coming-soon .apple {
    width: 1.35rem;
    height: 1.35rem;
    flex: 0 0 auto;
}

.cs-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.cs-small {
    color: var(--ink-faint);
    font-size: 0.66rem;
    font-weight: var(--w-medium);
}

.cs-big {
    color: var(--ink);
    font-size: 0.84rem;
    font-weight: var(--w-semibold);
}

.text-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.42rem;
    color: var(--ink);
    font-size: 0.87rem;
    font-weight: var(--w-semibold);
    transition: transform 0.18s var(--ease-out);
}

.text-link:active {
    transform: scale(0.97);
}

.text-link svg {
    width: 1rem;
    height: 1rem;
    transition: transform 200ms var(--ease-out);
}

.text-link:hover svg {
    transform: translateX(3px);
}

.hero-foot .text-link:hover svg {
    transform: translateY(3px);
}

/* Shared section language */
.section {
    padding: clamp(5rem, 10vw, 9rem) 0;
}

.section-head {
    max-width: 47rem;
    margin-bottom: clamp(2.75rem, 6vw, 5rem);
}

.section-title,
.planning-story h2,
.spotlight h2 {
    font-family: var(--display);
    font-size: clamp(2.35rem, 5.6vw, 4.4rem);
    font-weight: var(--w-bold);
    letter-spacing: -0.038em;
    line-height: 0.98;
    text-wrap: balance;
}

.section-desc {
    max-width: 55ch;
    margin-top: 1.35rem;
    color: var(--ink-soft);
    font-size: clamp(1rem, 1.5vw, 1.12rem);
    text-wrap: pretty;
}

/* A true sequence, so numbering carries meaning. */
.process-section {
    border-top: 1px solid var(--line);
}

.process-section .container {
    display: grid;
    grid-template-columns: minmax(17rem, 0.78fr) minmax(0, 1.22fr);
    gap: clamp(3rem, 8vw, 8rem);
    align-items: start;
}

.process-section .section-head {
    position: sticky;
    top: 8.5rem;
    margin: 0;
}

.steps {
    list-style: none;
    padding: 0;
    counter-reset: pippin-step;
}

.step {
    min-width: 0;
    padding: 2.2rem 0 2.4rem;
    display: grid;
    grid-template-columns: 3rem minmax(0, 1fr);
    gap: clamp(1rem, 3vw, 2rem);
    border-top: 1px solid var(--line-strong);
}

.step:last-child {
    border-bottom: 1px solid var(--line-strong);
}

.step-num {
    width: 2.45rem;
    height: 2.45rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--ink);
    color: var(--canvas);
    font-family: var(--utility);
    font-size: 0.72rem;
    font-weight: var(--w-semibold);
}

.step h3 {
    margin-bottom: 0.55rem;
    font-family: var(--display);
    font-size: clamp(1.35rem, 2.3vw, 1.8rem);
    font-weight: var(--w-semibold);
    letter-spacing: -0.025em;
    line-height: 1.15;
}

.step p {
    max-width: 57ch;
    color: var(--ink-soft);
    font-size: 1rem;
    text-wrap: pretty;
}

/* Editorial transformation: real student constraints, shown without a device frame. */
.planning-story {
    overflow: clip;
    background: var(--canvas-raised);
}

.story-heading {
    margin-bottom: clamp(2.75rem, 6vw, 5rem);
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(18rem, 0.92fr);
    gap: clamp(2.5rem, 8vw, 8rem);
    align-items: end;
}

.planning-story h2 {
    font-size: clamp(2.65rem, 6vw, 5rem);
}

.story-intro > p {
    max-width: 48ch;
    color: var(--ink-soft);
    font-size: 1.06rem;
    text-wrap: pretty;
}

.story-notes {
    margin-top: 2rem;
}

.story-notes > div {
    padding: 1rem 0;
    display: grid;
    grid-template-columns: 5rem minmax(0, 1fr);
    gap: 1rem;
    border-top: 1px solid var(--line-strong);
}

.story-notes > div:last-child {
    border-bottom: 1px solid var(--line-strong);
}

.story-notes dt {
    color: var(--ink);
    font-size: 0.82rem;
    font-weight: var(--w-semibold);
}

.story-notes dd {
    color: var(--ink-soft);
    font-size: 0.88rem;
}

.calm-story {
    margin: 0;
}

.story-frame {
    position: relative;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border-radius: clamp(1.5rem, 3vw, 2.3rem);
    background: #0b0d12;
    box-shadow: var(--shadow-hero);
    isolation: isolate;
    contain: layout paint;
}

.story-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.story-energy-path {
    position: absolute;
    z-index: 4;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.story-energy-line {
    fill: none;
    stroke: rgba(255, 255, 255, 0.72);
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-dasharray: 1;
    stroke-dashoffset: 0;
    vector-effect: non-scaling-stroke;
}

.story-energy-node {
    stroke: rgba(255, 255, 255, 0.92);
    stroke-width: 3;
    transform-box: fill-box;
    transform-origin: center;
    vector-effect: non-scaling-stroke;
}

.node-peak {
    fill: var(--peak);
}

.node-focus {
    fill: var(--focus);
}

.node-light {
    fill: var(--light);
}

.node-rest {
    fill: var(--rest);
}

@keyframes energyTrace {
    from {
        opacity: 0;
        stroke-dashoffset: 1;
    }

    to {
        opacity: 1;
        stroke-dashoffset: 0;
    }
}

@keyframes energyNodeSettle {
    from {
        opacity: 0;
        transform: scale(0.65);
    }

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

.story-caption {
    padding-top: clamp(1.25rem, 3vw, 1.8rem);
    display: grid;
    grid-template-columns: minmax(13rem, 0.8fr) minmax(0, 1.6fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
}

.story-caption > p {
    max-width: 34ch;
    color: var(--ink-soft);
    font-size: 0.88rem;
    line-height: 1.55;
}

.story-caption > p strong {
    display: block;
    color: var(--ink);
    font-weight: var(--w-semibold);
}

.story-rhythm {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(0.85rem, 2vw, 1.5rem);
    list-style: none;
    padding: 0;
}

.story-rhythm li {
    position: relative;
    min-width: 0;
    padding: 0.85rem 0 0 0.9rem;
    border-top: 1px solid var(--line-strong);
}

.story-rhythm li::before {
    content: '';
    position: absolute;
    top: 1.23rem;
    left: 0;
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 50%;
    background: var(--rhythm-color);
}

.rhythm-peak {
    --rhythm-color: var(--peak);
}

.rhythm-focus {
    --rhythm-color: var(--focus);
}

.rhythm-light {
    --rhythm-color: var(--light);
}

.rhythm-rest {
    --rhythm-color: var(--rest);
}

.story-rhythm span,
.story-rhythm strong {
    display: block;
}

.story-rhythm span {
    color: var(--ink-faint);
    font-family: var(--utility);
    font-size: 0.66rem;
}

.story-rhythm strong {
    overflow: hidden;
    margin-top: 0.15rem;
    color: var(--ink);
    font-size: 0.75rem;
    font-weight: var(--w-semibold);
    line-height: 1.35;
    text-overflow: ellipsis;
}

/* Energy story */
.energy-story {
    padding-bottom: 0;
}

.spotlight {
    padding: clamp(2rem, 6vw, 5.5rem);
    display: grid;
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
    gap: clamp(3rem, 8vw, 7rem);
    align-items: center;
    border: 1px solid var(--line);
    border-radius: clamp(1.5rem, 3vw, 2.4rem);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.spotlight h2 {
    font-size: clamp(2.35rem, 4.5vw, 3.8rem);
}

.spotlight-copy p {
    max-width: 44ch;
    margin-top: 1.3rem;
    color: var(--ink-soft);
    font-size: 1.03rem;
    text-wrap: pretty;
}

.capacity-map {
    min-width: 0;
    padding: clamp(1.15rem, 3vw, 2rem);
    border: 1px solid var(--line);
    border-radius: 1.25rem;
    background: var(--surface-soft);
}

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

.capacity-head {
    color: var(--ink-soft);
    font-size: 0.78rem;
}

.capacity-head strong {
    color: var(--ink);
    font-weight: var(--w-semibold);
}

.capacity-curve {
    position: relative;
    height: clamp(11rem, 22vw, 15rem);
    margin-top: 1rem;
    overflow: hidden;
    border-block: 1px solid var(--line);
    background-image: linear-gradient(to right, var(--line) 1px, transparent 1px);
    background-size: 25% 100%;
}

.capacity-curve svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.curve-area {
    fill: color-mix(in srgb, var(--accent) 13%, transparent);
}

.curve-line {
    fill: none;
    stroke: var(--accent);
    stroke-width: 2.5;
    vector-effect: non-scaling-stroke;
}

.curve-task {
    position: absolute;
    padding: 0.35rem 0.48rem;
    border: 1px solid var(--line);
    border-radius: 0.5rem;
    background: var(--surface);
    color: var(--ink);
    box-shadow: var(--shadow-sm);
    font-size: 0.65rem;
    font-weight: var(--w-semibold);
}

.task-calc {
    top: 19%;
    left: 16%;
}

.task-lab {
    top: 29%;
    left: 38%;
}

.task-email {
    top: 52%;
    left: 65%;
}

.task-read {
    top: 70%;
    right: 3%;
}

.capacity-times {
    padding-top: 0.65rem;
    color: var(--ink-faint);
    font-family: var(--utility);
    font-size: 0.66rem;
    font-variant-numeric: tabular-nums;
}

/* Pricing */
.pricing-section {
    background: var(--surface);
}

.price-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border: 1px solid var(--line-strong);
    border-radius: clamp(1.25rem, 3vw, 2rem);
    overflow: hidden;
}

.price-card {
    min-width: 0;
    padding: clamp(1.6rem, 4vw, 3.25rem);
    display: flex;
    flex-direction: column;
    background: var(--surface);
}

.price-card + .price-card {
    border-left: 1px solid var(--line-strong);
}

.price-card.featured {
    background: var(--hero);
    color: var(--hero-text);
}

.price-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: var(--ink-faint);
    font-size: 0.7rem;
    font-weight: var(--w-semibold);
}

.price-topline strong {
    color: var(--ink);
    font-weight: var(--w-semibold);
}

.featured .price-topline {
    color: var(--hero-muted);
}

.featured .price-topline strong {
    color: var(--hero-text);
}

.price-name {
    margin-top: clamp(2.2rem, 6vw, 4.5rem);
    font-family: var(--display);
    font-size: 1.15rem;
    font-weight: var(--w-semibold);
}

.price-amount {
    margin-top: 0.2rem;
    font-family: var(--display);
    font-size: clamp(2.7rem, 5vw, 4.5rem);
    font-weight: var(--w-display);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.04em;
    line-height: 1;
}

.price-note {
    margin-top: 0.65rem;
    color: var(--ink-soft);
    font-size: 0.9rem;
}

.featured .price-note,
.featured .price-foot {
    color: var(--hero-muted);
}

.price-list {
    margin-top: 2.2rem;
    list-style: none;
    padding: 0;
}

.price-list li {
    position: relative;
    padding: 0.85rem 0 0.85rem 1.45rem;
    border-top: 1px solid var(--line);
    font-size: 0.9rem;
}

.price-list li::before {
    content: '';
    position: absolute;
    top: 1.25rem;
    left: 0.2rem;
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 50%;
    background: var(--success);
}

.featured .price-list li {
    border-color: var(--hero-line);
}

.price-list li:last-child {
    border-bottom: 1px solid var(--line);
}

.featured .price-list li:last-child {
    border-color: var(--hero-line);
}

.price-foot {
    margin-top: auto;
    padding-top: 2rem;
    color: var(--ink-soft);
    font-size: 0.78rem;
}

/* Trust */
.trust-section .section-head {
    margin-bottom: 3rem;
}

.trust {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-block: 1px solid var(--line-strong);
}

.trust-item {
    min-width: 0;
    padding: 2rem clamp(1rem, 2.5vw, 2rem);
}

.trust-item + .trust-item {
    border-left: 1px solid var(--line);
}

.trust-item svg {
    width: 1.35rem;
    height: 1.35rem;
    margin-bottom: 2.6rem;
    color: var(--accent);
}

.trust-item h3 {
    margin-bottom: 0.5rem;
    font-family: var(--display);
    font-size: 1.05rem;
    font-weight: var(--w-semibold);
    letter-spacing: -0.015em;
    line-height: 1.25;
}

.trust-item p {
    color: var(--ink-soft);
    font-size: 0.85rem;
    line-height: 1.6;
}

.trust-link {
    margin-top: 1.5rem;
    text-align: right;
}

/* Final invitation */
.final-section {
    padding-top: 0;
}

.cta-band {
    position: relative;
    padding: clamp(3.5rem, 9vw, 7.5rem) clamp(1.25rem, 7vw, 5rem);
    overflow: hidden;
    border-radius: clamp(1.5rem, 3vw, 2.4rem);
    background: var(--hero);
    color: var(--hero-text);
    text-align: center;
    box-shadow: var(--shadow-md);
}

.cta-band::after {
    content: '';
    position: absolute;
    inset: auto -10% -78% 20%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(63, 82, 223, 0.3), rgba(63, 82, 223, 0) 68%);
    pointer-events: none;
}

.cta-mark {
    width: 3.6rem;
    height: 3.6rem;
    margin: 0 auto 2rem;
    display: grid;
    place-items: center;
    border: 1px solid var(--hero-line);
    border-radius: 50%;
    background: var(--hero-fill);
}

.cta-mark img {
    width: 2rem;
    height: 2rem;
    object-fit: contain;
}

.cta-band h2 {
    position: relative;
    z-index: 1;
    font-family: var(--display);
    font-size: clamp(2.7rem, 7vw, 5.4rem);
    font-weight: var(--w-display);
    letter-spacing: -0.04em;
    line-height: 0.94;
    text-wrap: balance;
}

.cta-band > p {
    position: relative;
    z-index: 1;
    max-width: 50ch;
    margin: 1.5rem auto 2rem;
    color: var(--hero-muted);
    font-size: 1rem;
    text-wrap: pretty;
}

.cta-band .coming-soon {
    position: relative;
    z-index: 1;
    border-color: var(--hero-line);
    background: var(--hero-fill);
    box-shadow: none;
}

.cta-band .coming-soon .apple,
.cta-band .cs-big {
    color: var(--hero-text);
}

.cta-band .cs-small {
    color: var(--hero-muted);
}

/* Footer */
.footer {
    margin-top: auto;
    padding: 3.5rem 0 2.5rem;
    border-top: 1px solid var(--line);
}

.footer-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.footer-brand img {
    width: 1.55rem;
    height: 1.55rem;
    object-fit: contain;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(1rem, 2.5vw, 1.8rem);
    flex-wrap: wrap;
}

.footer-copy {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
    color: var(--ink-faint);
    font-size: 0.78rem;
}

/* Legal documents */
.doc-page {
    padding: clamp(8.5rem, 14vw, 11rem) 0 clamp(5rem, 10vw, 8rem);
}

.doc-wrap {
    width: min(100%, 1180px);
    margin-inline: auto;
    padding-inline: clamp(1.125rem, 4vw, 2.5rem);
}

.doc-header {
    max-width: 70ch;
    margin: 0 0 clamp(3rem, 7vw, 5rem) calc(13rem + clamp(2.5rem, 5vw, 5rem));
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--line-strong);
}

.doc-header .overline {
    color: var(--ink-soft);
    font-size: 0.78rem;
    font-weight: var(--w-semibold);
}

.doc-header h1 {
    margin-top: 0.6rem;
    font-family: var(--display);
    font-size: clamp(2.8rem, 7vw, 5rem);
    font-weight: var(--w-display);
    letter-spacing: -0.04em;
    line-height: 0.98;
    text-wrap: balance;
}

.doc-date {
    margin-top: 1.2rem;
    color: var(--ink-soft);
    font-size: 0.85rem;
}

.doc-layout {
    display: grid;
    grid-template-columns: 13rem minmax(0, 70ch);
    gap: clamp(2.5rem, 5vw, 5rem);
    justify-content: center;
    align-items: start;
}

.doc-toc {
    position: sticky;
    top: 7.5rem;
}

.doc-toc-title {
    padding-bottom: 0.75rem;
    list-style: none;
    border-bottom: 1px solid var(--line-strong);
    color: var(--ink);
    font-size: 0.78rem;
    font-weight: var(--w-semibold);
}

.doc-toc-title::-webkit-details-marker {
    display: none;
}

.doc-toc nav {
    margin-top: 0.8rem;
}

.doc-toc ul {
    display: grid;
    gap: 0.12rem;
    list-style: none;
    padding: 0;
}

.doc-toc a {
    min-height: 35px;
    padding: 0.36rem 0.45rem;
    display: flex;
    align-items: center;
    border-radius: 0.45rem;
    color: var(--ink-faint);
    font-size: 0.72rem;
    line-height: 1.3;
    transition: background 160ms ease, color 160ms ease;
}

.doc-toc a:hover {
    background: var(--surface);
    color: var(--ink);
}

.doc-toc a[aria-current='true'] {
    background: var(--accent-soft);
    color: var(--accent-ink);
    font-weight: var(--w-semibold);
}

.prose {
    min-width: 0;
    max-width: 70ch;
    color: var(--ink-soft);
    font-size: clamp(1rem, 1.3vw, 1.07rem);
    line-height: 1.82;
    text-wrap: pretty;
}

.prose > :first-child {
    margin-top: 0;
}

.prose p {
    margin-bottom: 1.35rem;
}

.prose h2,
.prose h3 {
    color: var(--ink);
    font-family: var(--display);
    text-wrap: balance;
    scroll-margin-top: 7rem;
}

.prose h2 {
    margin: clamp(3.2rem, 7vw, 4.6rem) 0 1.15rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--line);
    font-size: clamp(1.65rem, 3vw, 2.15rem);
    font-weight: var(--w-bold);
    letter-spacing: -0.025em;
    line-height: 1.15;
}

.prose h3 {
    margin: 2.3rem 0 0.75rem;
    font-size: 1.25rem;
    font-weight: var(--w-semibold);
    letter-spacing: -0.015em;
}

.prose strong {
    color: var(--ink);
    font-weight: var(--w-semibold);
}

.prose a {
    color: var(--accent-ink);
    text-decoration: underline;
    text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent);
    text-underline-offset: 0.16em;
    text-decoration-thickness: 1px;
}

.prose a:hover {
    text-decoration-color: currentColor;
}

.prose ul,
.prose ol {
    margin: 0 0 1.5rem;
    padding-left: 1.45rem;
}

.prose li {
    margin-bottom: 0.68rem;
    padding-left: 0.25rem;
}

.prose li::marker {
    color: var(--accent);
}

.callout {
    margin: 0 0 2.2rem;
    padding: clamp(1.2rem, 3vw, 1.65rem);
    border: 1px solid var(--line-strong);
    border-radius: 1rem;
    background: var(--surface);
    color: var(--ink-soft);
    box-shadow: var(--shadow-sm);
}

.callout p:last-child {
    margin-bottom: 0;
}

.data-table {
    width: 100%;
    min-width: 40rem;
    margin: 2rem 0 2.5rem;
    display: table;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--line-strong);
    border-radius: 0.9rem;
    background: var(--surface);
    font-size: 0.82rem;
    line-height: 1.55;
}

.data-table th,
.data-table td {
    padding: 0.85rem 0.95rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.data-table th {
    background: var(--surface-soft);
    color: var(--ink);
    font-size: 0.74rem;
    font-weight: var(--w-semibold);
}

.data-table tr:last-child td {
    border-bottom: 0;
}

.data-table th + th,
.data-table td + td {
    border-left: 1px solid var(--line);
}

.prose {
    overflow-wrap: anywhere;
}

.prose .data-table {
    display: block;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.prose .data-table thead,
.prose .data-table tbody {
    display: table;
    width: 100%;
    min-width: 40rem;
    table-layout: fixed;
}

/* Responsive */
@media (max-width: 1040px) {
    .nav-links {
        gap: 1.2rem;
    }

    .shaper-grid {
        grid-template-columns: minmax(0, 0.9fr) 5.2rem minmax(0, 1.1fr);
    }

    .plan-block small {
        display: none;
    }

    .story-caption {
        grid-template-columns: minmax(13rem, 0.6fr) minmax(0, 1.4fr);
        align-items: start;
    }

    .story-rhythm {
        grid-column: 2;
        grid-row: 1 / span 2;
    }

    .trust {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .trust-item:nth-child(3) {
        border-left: 0;
        border-top: 1px solid var(--line);
    }

    .trust-item:nth-child(4) {
        border-top: 1px solid var(--line);
    }
}

@media (max-width: 860px) {
    .nav-links {
        display: none;
    }

    .nav-menu {
        display: block;
    }

    .shaper-toolbar {
        flex-wrap: wrap;
    }

    .energy-key {
        order: 3;
        width: 100%;
        justify-content: flex-start;
        padding-top: 0.35rem;
        border-top: 1px solid var(--hero-line);
    }

    .shaper-grid {
        grid-template-columns: 1fr;
    }

    .dump-pane {
        min-height: auto;
    }

    .dump-pane blockquote {
        margin: 2.2rem 0;
    }

    .shaper-action {
        min-height: 6rem;
        flex-direction: row;
    }

    .action-copy {
        max-width: none;
    }

    .action-arrow {
        transform: rotate(90deg);
    }

    .hero-foot {
        grid-template-columns: 1fr auto;
    }

    .hero-foot > p {
        grid-column: 1 / -1;
        grid-row: 2;
        text-align: left;
    }

    .process-section .container,
    .story-heading,
    .spotlight {
        grid-template-columns: 1fr;
    }

    .process-section .section-head {
        position: static;
    }

    .doc-header {
        margin-left: 0;
    }

    .doc-layout {
        grid-template-columns: 1fr;
    }

    .doc-toc {
        position: static;
        padding: 0.8rem;
        border: 1px solid var(--line);
        border-radius: 0.85rem;
        background: var(--surface);
    }

    .doc-toc-title {
        min-height: 44px;
        padding: 0.2rem 0.35rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        border-bottom: 0;
        cursor: pointer;
    }

    .doc-toc-title::after {
        content: '+';
        color: var(--ink-faint);
        font-size: 1.1rem;
        font-weight: var(--w-medium);
    }

    .doc-toc[open] .doc-toc-title {
        padding-bottom: 0.65rem;
        border-bottom: 1px solid var(--line-strong);
    }

    .doc-toc[open] .doc-toc-title::after {
        content: '–';
    }

    .doc-toc ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .doc-toc a {
        min-height: 44px;
    }

    .prose {
        max-width: none;
    }
}

@media (max-width: 680px) {
    .nav-container {
        height: 4.35rem;
    }

    .hero {
        padding-top: 7.8rem;
    }

    .hero h1 {
        font-size: clamp(2.75rem, 14vw, 4.3rem);
    }

    .day-shaper {
        margin-inline: -0.4rem;
    }

    .shaper-date {
        flex-direction: column;
        gap: 0;
    }

    .energy-key {
        gap: 0.65rem 1rem;
        flex-wrap: wrap;
    }

    .dump-pane,
    .plan-pane {
        border-radius: 1rem;
    }

    .pane-heading {
        align-items: center;
    }

    .voice-state {
        max-width: 7rem;
    }

    .dump-context {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.25rem;
    }

    .daylight-track span:nth-child(2),
    .daylight-track span:nth-child(4) {
        display: none;
    }

    .daylight-track {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .hero-foot {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .hero-foot > p {
        grid-column: auto;
        grid-row: auto;
    }

    .step {
        grid-template-columns: 2.65rem minmax(0, 1fr);
    }

    .story-frame {
        aspect-ratio: 1 / 1;
    }

    .story-caption {
        grid-template-columns: 1fr;
        gap: 1.35rem;
    }

    .story-rhythm {
        grid-column: auto;
        grid-row: auto;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .price-grid {
        grid-template-columns: 1fr;
    }

    .price-card + .price-card {
        border-top: 1px solid var(--line-strong);
        border-left: 0;
    }

    .trust {
        grid-template-columns: 1fr;
    }

    .trust-item + .trust-item,
    .trust-item:nth-child(3) {
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .trust-item svg {
        margin-bottom: 1.5rem;
    }

    .trust-link {
        text-align: left;
    }

    .footer-grid {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-links {
        justify-content: flex-start;
    }

    .doc-toc ul {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 430px) {
    .logo span {
        font-size: 1.05rem;
    }

    .nav-menu summary {
        width: 42px;
        height: 42px;
    }

    .nav-actions {
        gap: 0.45rem;
    }

    .day-shaper {
        padding: 0.7rem;
        border-radius: 1.35rem;
    }

    .shaper-toolbar {
        padding-inline: 0.25rem;
    }

    .dump-pane {
        padding: 1.15rem;
    }

    .dump-pane blockquote {
        font-size: 1.22rem;
    }

    .voice-state {
        padding: 0.35rem;
        font-size: 0;
    }

    .voice-state svg {
        width: 1rem;
        height: 1rem;
    }

    .plan-pane {
        padding: 0.85rem;
    }

    .day-plan li {
        grid-template-columns: 2.35rem minmax(0, 1fr);
        gap: 0.4rem;
    }

    .day-plan time {
        font-size: 0.58rem;
    }

    .plan-block {
        padding-right: 0.45rem;
    }

    .plan-block strong {
        font-size: 0.66rem;
    }

    .shaper-action {
        min-height: 5rem;
    }

    .shaper-mark {
        width: 2.7rem;
        height: 2.7rem;
    }

    .story-notes > div {
        grid-template-columns: 1fr;
        gap: 0.2rem;
    }

    .capacity-map {
        padding: 0.85rem;
    }

    .curve-task {
        font-size: 0.56rem;
    }

    .cta-band {
        margin-inline: -0.3rem;
    }

    .prose {
        font-size: 1rem;
        line-height: 1.78;
    }

    .callout {
        margin-inline: -0.25rem;
    }
}

/* ============================================================
   Ambient background, scroll motion & micro-interactions
   All effects are GPU-cheap (transform/opacity), gated behind
   prefers-reduced-motion, and quieted on small screens.
   ============================================================ */

/* Base canvas moves to <html> so the ambient glow sits behind
   the body without an opaque body background covering it. */
html {
    background: var(--canvas);
}

body {
    background: transparent;
}

body::before {
    content: '';
    position: fixed;
    inset: -25vmax;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(32vmax 32vmax at 15% 8%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 60%),
        radial-gradient(30vmax 30vmax at 88% 12%, color-mix(in srgb, var(--rest) 12%, transparent), transparent 62%),
        radial-gradient(36vmax 36vmax at 78% 98%, color-mix(in srgb, var(--peak) 9%, transparent), transparent 64%);
    background-repeat: no-repeat;
}

/* Second, counter-drifting layer for a more alive, breathing field. */
body::after {
    content: '';
    position: fixed;
    inset: -30vmax;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(26vmax 26vmax at 72% 26%, color-mix(in srgb, var(--light) 12%, transparent), transparent 62%),
        radial-gradient(30vmax 30vmax at 24% 74%, color-mix(in srgb, var(--focus) 10%, transparent), transparent 64%);
    background-repeat: no-repeat;
    opacity: 0.85;
}

@media (prefers-reduced-motion: no-preference) {
    body::before {
        animation: ambientDrift 26s var(--ease-expo) infinite alternate;
        will-change: transform;
    }

    body::after {
        animation: ambientDriftAlt 34s var(--ease-expo) infinite alternate;
        will-change: transform, opacity;
    }
}

@keyframes ambientDrift {
    from {
        transform: translate3d(-2.5%, -1.5%, 0) scale(1.02) rotate(-1deg);
    }

    to {
        transform: translate3d(2.5%, 2%, 0) scale(1.07) rotate(1.5deg);
    }
}

@keyframes ambientDriftAlt {
    0% {
        transform: translate3d(3%, 1%, 0) scale(1.04);
        opacity: 0.55;
    }

    50% {
        opacity: 0.85;
    }

    100% {
        transform: translate3d(-3%, -2%, 0) scale(1.1);
        opacity: 0.6;
    }
}

/* Nav: elevate on scroll + slim reading-progress bar */
.nav {
    transition: box-shadow 0.32s ease, border-color 0.32s ease;
}

.nav.is-scrolled {
    border-color: transparent;
    box-shadow: 0 16px 42px -20px rgba(0, 0, 0, 0.72);
}

.nav-progress {
    position: absolute;
    left: 0;
    bottom: -1px;
    height: 2px;
    width: 100%;
    transform: scaleX(0);
    transform-origin: 0 50%;
    background: linear-gradient(90deg, var(--accent), var(--rest) 55%, var(--peak));
    opacity: 0.85;
    pointer-events: none;
}

/* Animated mobile menu panel */
@media (prefers-reduced-motion: no-preference) {
    .nav-menu[open] .nav-menu-panel {
        animation: menuPop 0.22s var(--ease-out) both;
    }
}

@keyframes menuPop {
    from {
        opacity: 0;
        transform: translateY(-0.5rem) scale(0.98);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* Scroll-reveal: the hidden state applies only once the inline head script arms it
   (reveal-armed, set only when motion is allowed). no-JS and reduced-motion see
   content immediately. If the deferred site.js never runs, the head failsafe adds
   reveal-fallback, which forces everything visible — content can't ship blank. */
@media (prefers-reduced-motion: no-preference) {
    /* Every reveal target fades; the movement differs by role so the page
       doesn't apply one identical entrance to every section. */
    html.reveal-armed :is(.hero-intro, .section-head, .story-heading, .doc-header,
            .step, .trust-item, .price-card, .calm-story, .spotlight, .cta-band, .prose) {
        opacity: 0;
        transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
    }

    /* Headings and genuine lists rise a short distance as they announce. */
    html.reveal-armed :is(.hero-intro, .section-head, .story-heading, .doc-header,
            .step, .trust-item, .price-card) {
        transform: translateY(14px);
    }

    /* Large framed blocks settle in place with a whisper of scale — a 24px lift
       on a full-width block is the fade-on-scroll tell. Prose simply fades. */
    html.reveal-armed :is(.calm-story, .spotlight, .cta-band) {
        transform: scale(0.985);
        transform-origin: center bottom;
    }

    html.reveal-armed :is(.hero-intro, .section-head, .story-heading, .doc-header,
            .step, .trust-item, .price-card, .calm-story, .spotlight, .cta-band, .prose).is-visible {
        opacity: 1;
        transform: none;
    }

    html.reveal-fallback :is(.hero-intro, .section-head, .story-heading, .doc-header,
            .step, .trust-item, .price-card, .calm-story, .spotlight, .cta-band, .prose) {
        opacity: 1;
        transform: none;
        transition: none;
    }

    /* Sibling stagger, only within the real lists. */
    html.reveal-armed .steps .step:nth-child(2) {
        transition-delay: 0.08s;
    }

    html.reveal-armed .steps .step:nth-child(3) {
        transition-delay: 0.16s;
    }

    html.reveal-armed .trust .trust-item:nth-child(2) {
        transition-delay: 0.07s;
    }

    html.reveal-armed .trust .trust-item:nth-child(3) {
        transition-delay: 0.14s;
    }

    html.reveal-armed .trust .trust-item:nth-child(4) {
        transition-delay: 0.21s;
    }

    html.reveal-armed .price-grid .price-card:nth-child(2) {
        transition-delay: 0.09s;
    }
}

/* Pointer-only micro-interactions (skipped on touch to avoid sticky states) */
@media (hover: hover) and (pointer: fine) {
    .step,
    .trust-item {
        transition: transform 0.3s var(--ease-out);
    }

    .step:hover,
    .trust-item:hover {
        transform: translateY(-3px);
    }

    .coming-soon {
        transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease;
    }

    .coming-soon:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }

    .capacity-map,
    .spotlight {
        transition: transform 0.35s var(--ease-out);
    }
}

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

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

/* ============================================================
   Story image carousel (crossfade gallery)
   ============================================================ */
.story-track {
    position: absolute;
    inset: 0;
}

.story-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s var(--ease-out);
}

.story-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.story-controls {
    position: absolute;
    z-index: 5;
    inset: auto 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: clamp(0.7rem, 2vw, 1.1rem);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0));
}

.story-arrow {
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    background: rgba(10, 12, 18, 0.45);
    color: #fff;
    cursor: pointer;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: background 0.2s ease, transform 0.2s var(--ease-out);
}

.story-arrow:hover {
    background: rgba(10, 12, 18, 0.72);
    transform: scale(1.06);
}

.story-arrow:active {
    transform: scale(0.94);
}

.story-arrow svg {
    width: 1.1rem;
    height: 1.1rem;
}

.story-dots {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.story-dots button {
    width: 1.5rem;
    height: 1.5rem;
    padding: 0;
    display: grid;
    place-items: center;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.story-dots button::before {
    content: '';
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    transition: background 0.2s ease, transform 0.2s var(--ease-out);
}

.story-dots button:hover::before {
    background: rgba(255, 255, 255, 0.8);
}

.story-dots button[aria-current='true']::before {
    background: #fff;
    transform: scale(1.35);
}

/* Energy graph draws in when the story scrolls into view */
@media (prefers-reduced-motion: no-preference) {
    html.js .story-energy-line {
        opacity: 0;
        stroke-dashoffset: 1;
    }

    html.js .story-energy-node {
        opacity: 0;
        transform: scale(0.65);
    }

    html.js .calm-story.is-visible .story-energy-line {
        animation: energyTrace 900ms var(--ease-out) 0.35s forwards;
    }

    html.js .calm-story.is-visible .story-energy-node {
        animation: energyNodeSettle 460ms var(--ease-out) forwards;
    }

    html.js .calm-story.is-visible .node-peak {
        animation-delay: 0.55s;
    }

    html.js .calm-story.is-visible .node-focus {
        animation-delay: 0.75s;
    }

    html.js .calm-story.is-visible .node-light {
        animation-delay: 0.95s;
    }

    html.js .calm-story.is-visible .node-rest {
        animation-delay: 1.15s;
    }
}

/* ============================ Primary CTA button ============================ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 3rem;
    padding: 0.8rem 1.6rem;
    border: 0;
    border-radius: 999px;
    background: var(--accent);
    color: var(--on-accent);
    font-family: var(--body);
    font-size: 0.98rem;
    font-weight: var(--w-semibold);
    letter-spacing: -0.01em;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(17, 19, 25, 0.08), 0 12px 30px -14px rgba(63, 82, 223, 0.6);
    transition: transform 200ms var(--ease-out), background 180ms ease, box-shadow 200ms ease;
}

.btn-primary svg {
    width: 1.05rem;
    height: 1.05rem;
    transition: transform 200ms var(--ease-out);
}

.btn-primary:hover {
    background: var(--accent-ink);
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(17, 19, 25, 0.1), 0 18px 40px -16px rgba(63, 82, 223, 0.7);
}

.btn-primary:hover svg {
    transform: translateX(3px);
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
}

.btn-primary.btn-sm {
    min-height: 2.5rem;
    padding: 0.5rem 1.05rem;
    font-size: 0.9rem;
}

.btn-primary.btn-lg {
    min-height: 3.35rem;
    padding: 0.95rem 2rem;
    font-size: 1.05rem;
}

/* Hero primary action */
.hero-cta {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

/* Live signup counter (hidden until a real count > 0 arrives). */
.wl-count {
    margin-top: 1rem;
    color: var(--ink-soft);
    font-size: 0.9rem;
    font-weight: var(--w-medium);
}

.wl-count[hidden] {
    display: none;
}

.wl-count strong {
    color: var(--ink);
    font-weight: var(--w-bold);
    font-variant-numeric: tabular-nums;
}

/* CTA-band button: its own centered row above the "Coming soon" badge. */
.cta-band > .btn-primary {
    position: relative;
    z-index: 1;
    display: flex;
    width: fit-content;
    margin: 0 auto 1.4rem;
}

/* Nav CTA: hidden on the smallest screens (the menu panel carries it there). */
.nav-cta {
    flex: 0 0 auto;
}

@media (max-width: 600px) {
    .nav-cta {
        display: none;
    }
}

/* Show the waitlist link inside the mobile menu panel as a filled action. */
.nav-menu-panel .btn-primary {
    margin-top: 0.3rem;
    justify-content: center;
}

/* ============================ Waitlist page ============================ */
.waitlist-page {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: clamp(6.5rem, 14vw, 8.5rem) clamp(1.125rem, 5vw, 2.5rem) clamp(3rem, 8vw, 5rem);
    isolation: isolate;
    overflow: hidden;
}

/* Full-bleed energy field behind the card. Its parent is the field host, so the
   shader lights the whole viewport; the card sits above at z-index 1. */
.waitlist-field {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: var(--hero);
}

.waitlist-card {
    position: relative;
    z-index: 1;
    width: min(30rem, 100%);
    padding: clamp(1.75rem, 5vw, 2.75rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid var(--line);
    border-radius: 1.5rem;
    background: var(--surface);
    box-shadow: var(--shadow-hero);
}

.waitlist-card .logo {
    margin-bottom: 1.4rem;
}

.waitlist-card h1 {
    font-family: var(--display);
    font-size: clamp(1.75rem, 5vw, 2.35rem);
    font-weight: var(--w-display);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.waitlist-card .wl-sub {
    margin-top: 0.7rem;
    max-width: 26rem;
    color: var(--ink-soft);
    font-size: 1rem;
    line-height: 1.55;
}

.waitlist-form {
    margin-top: 1.6rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.waitlist-form input[type="email"] {
    width: 100%;
    min-height: 3rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--line-strong);
    border-radius: 0.85rem;
    background: var(--surface-soft);
    color: var(--ink);
    font-size: 1rem;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.waitlist-form input[type="email"]::placeholder {
    color: var(--ink-faint);
}

.waitlist-form input[type="email"]:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.waitlist-form .btn-primary {
    width: 100%;
}

.waitlist-form.is-sending .btn-primary {
    opacity: 0.65;
    pointer-events: none;
}

.wl-msg {
    min-height: 1.2rem;
    margin-top: 0.9rem;
    font-size: 0.9rem;
    font-weight: var(--w-medium);
}

.wl-msg[data-state="error"] {
    color: var(--peak);
}

.wl-msg[data-state="ok"] {
    color: var(--success);
}

/* Success swap: hide the form and the intro line (direct children only, so the
   confirmation text nested in .wl-done is unaffected), show the confirmation. */
.waitlist-card.is-done .waitlist-form,
.waitlist-card.is-done > .wl-sub {
    display: none;
}

.wl-done {
    display: none;
    margin-top: 1.4rem;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.waitlist-card.is-done .wl-done {
    display: flex;
}

.wl-done h2 {
    font-family: var(--display);
    font-size: 1.4rem;
    font-weight: var(--w-display);
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--ink);
}

.wl-done .wl-check {
    width: 3rem;
    height: 3rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
}

.wl-done .wl-check svg {
    width: 1.5rem;
    height: 1.5rem;
}

.wl-done p {
    color: var(--ink-soft);
    max-width: 24rem;
}

.waitlist-back {
    margin-top: 1.5rem;
    color: var(--ink-soft);
    font-size: 0.88rem;
    font-weight: var(--w-medium);
    transition: color 180ms ease;
}

.waitlist-back:hover {
    color: var(--ink);
}

@media (prefers-reduced-motion: reduce) {
    .btn-primary,
    .btn-primary svg {
        transition: none;
    }
}
