:root {
    --bg-color: #F9F8F4;
    --bg-soft: #F3F0E7;
    --ink-color: #1E1E1C;
    --ink-soft: rgba(30, 30, 28, 0.08);
    --ink-mid: rgba(30, 30, 28, 0.55);
    --card-bg: #FFFFFF;
    --accent-color: #6366F1;
    --accent-soft: rgba(99, 102, 241, 0.12);
    --accent-2: #EC4899;
    --accent-3: #10B981;
    --accent-4: #F59E0B;
    --gold: #D4A017;
    --gold-soft: rgba(212, 160, 23, 0.15);
    --transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sketch: 2px 3px 0 var(--ink-color);
    --shadow-lift: 0 10px 28px rgba(30, 30, 28, 0.12);
    --particle-color: 99, 102, 241;
}

[data-theme="dark"] {
    --bg-color: #121210;
    --bg-soft: #1A1A17;
    --ink-color: #F9F8F4;
    --ink-soft: rgba(249, 248, 244, 0.1);
    --ink-mid: rgba(249, 248, 244, 0.6);
    --card-bg: #1C1C1A;
    --accent-color: #818CF8;
    --accent-soft: rgba(129, 140, 248, 0.18);
    --accent-2: #F472B6;
    --accent-3: #34D399;
    --accent-4: #FBBF24;
    --gold: #E8B84A;
    --gold-soft: rgba(232, 184, 74, 0.18);
    --shadow-sketch: 2px 3px 0 var(--ink-color);
    --shadow-lift: 0 10px 28px rgba(0, 0, 0, 0.45);
    --particle-color: 129, 140, 248;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg-color);
    color: var(--ink-color);
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
    transition: background var(--transition), color var(--transition);
    height: 100%;
    overflow: hidden;
}

button { font-family: inherit; color: inherit; cursor: pointer; background: none; border: none; padding: 0; }
a { color: var(--accent-color); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-2); }
h1, h2, h3 { font-weight: 700; margin: 0; }
p { margin: 0; line-height: 1.55; }

/* =============== PARTICLE FIELD =============== */
#particle-field {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: 1;
    pointer-events: none;
    opacity: 0.7;
}

/* =============== TOP BAR =============== */
#top-bar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 56px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 20px;
    background: var(--bg-color);
    border-bottom: 1px solid var(--ink-soft);
    z-index: 100;
}

.mini-btn {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1.5px solid var(--ink-soft);
    display: grid; place-items: center;
    font-size: 16px;
    transition: background var(--transition), transform var(--transition), border-color var(--transition);
    background: var(--card-bg);
}
.mini-btn:hover { background: var(--accent-soft); border-color: var(--accent-color); transform: translateY(-1px); }

#progress-track {
    flex: 1;
    height: 6px;
    background: var(--ink-soft);
    border-radius: 3px;
    overflow: hidden;
    max-width: 360px;
}
#progress-fill {
    height: 100%;
    width: 0%;
    background: var(--accent-color);
    border-radius: 3px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
#progress-label {
    font-size: 13px; color: var(--ink-mid);
    font-weight: 500; letter-spacing: 0.02em;
    min-width: 120px;
}
.top-right { margin-left: auto; display: flex; gap: 10px; }

/* =============== SCREENS =============== */
#screen-stack {
    position: fixed;
    top: 56px; left: 0; right: 0; bottom: 0;
    overflow: hidden;
    z-index: 2;
}
.screen {
    position: absolute;
    inset: 0;
    overflow-y: auto;
    opacity: 0;
    pointer-events: none;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    padding: 40px 24px 60px;
}
.screen.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.screen-inner {
    max-width: 880px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-height: calc(100vh - 56px - 100px);
    justify-content: center;
    position: relative;
    z-index: 3;
}

.eyebrow {
    font-family: 'Caveat', cursive;
    font-size: 22px;
    color: var(--accent-color);
    font-weight: 700;
}

.btn-primary {
    align-self: flex-start;
    background: var(--ink-color);
    color: var(--bg-color);
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.01em;
    transition: transform var(--transition), box-shadow var(--transition);
    box-shadow: var(--shadow-sketch);
}
.btn-primary:hover { transform: translate(-1px, -2px); box-shadow: 3px 5px 0 var(--ink-color); }

.btn-secondary {
    align-self: flex-start;
    background: var(--card-bg);
    color: var(--ink-color);
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    border: 1.5px solid var(--ink-color);
    transition: transform var(--transition), background var(--transition), opacity var(--transition);
    display: inline-block;
}
.btn-secondary:hover { background: var(--accent-soft); transform: translateY(-1px); }
.btn-secondary.disabled {
    opacity: 0.35;
    pointer-events: none;
    cursor: not-allowed;
    border-style: dashed;
}

/* =============== WELCOME =============== */
.welcome-inner { align-items: center; text-align: center; }
.welcome-inner h1 { font-size: clamp(40px, 6vw, 74px); line-height: 1.05; }
.lede { font-size: 20px; color: var(--ink-mid); max-width: 560px; }
.lede-sub { font-family: 'Caveat', cursive; font-size: 28px; color: var(--ink-color); max-width: 560px; }
.welcome-inner .btn-primary { align-self: center; margin-top: 10px; }
.welcome-inner a { font-weight: 600; }

.hero-core {
    width: 140px; height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle at 32% 30%, #A5A8FB 0%, #6366F1 55%, #4338CA 100%);
    display: grid; place-items: center;
    margin-bottom: 18px;
    position: relative;
    box-shadow: 0 0 50px rgba(99, 102, 241, 0.45), 0 0 120px rgba(99, 102, 241, 0.18);
    animation: coreFloat 6s ease-in-out infinite;
}
.hero-halo {
    position: absolute;
    inset: -22px;
    border-radius: 50%;
    border: 1.5px dashed rgba(99, 102, 241, 0.32);
    animation: spinSlow 20s linear infinite;
}
.hero-halo::before {
    content: '';
    position: absolute;
    inset: -26px;
    border-radius: 50%;
    border: 1px dashed rgba(99, 102, 241, 0.18);
    animation: spinSlow 40s linear infinite reverse;
}
.hero-pulse {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    animation: pulse 2.2s ease-in-out infinite;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.8);
}
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.8); opacity: 0.35; }
}
@keyframes coreFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
@keyframes spinSlow {
    to { transform: rotate(360deg); }
}

.fade-in-up { opacity: 0; transform: translateY(18px); animation: fiu 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
.screen:not(.active) .fade-in-up { animation: none; opacity: 0; }
.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }
.delay-4 { animation-delay: 0.6s; }
@keyframes fiu { to { opacity: 1; transform: translateY(0); } }

.mini-signature {
    font-family: 'Caveat', cursive;
    font-size: 20px;
    color: var(--ink-mid);
    margin-top: 18px;
}

/* =============== INTRO (Florent + concepts) =============== */
.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.intro-left { display: flex; flex-direction: column; gap: 14px; }
.intro-left h2 { font-size: clamp(34px, 4.5vw, 50px); line-height: 1.05; }
.intro-para { font-size: 16px; color: var(--ink-color); line-height: 1.6; }
.intro-para.soft { color: var(--ink-mid); }
.intro-signature { font-family: 'Caveat', cursive; font-size: 24px; color: var(--accent-color); margin-top: 6px; }

.intro-right { display: flex; justify-content: center; }
.concept-scene {
    width: 100%;
    max-width: 340px;
    aspect-ratio: 1;
    position: relative;
    border-radius: 24px;
    background: radial-gradient(circle at 50% 50%, var(--bg-soft) 0%, var(--bg-color) 80%);
    overflow: hidden;
    border: 1.5px solid var(--ink-soft);
}
#concept-svg { width: 100%; height: 100%; display: block; }
.concept-caption {
    position: absolute;
    bottom: 12px; left: 0; right: 0;
    text-align: center;
    font-family: 'Caveat', cursive;
    font-size: 18px;
    color: var(--ink-mid);
}

.concept-point { fill: var(--ink-color); transition: fill 0.3s ease, r 0.3s ease; }
.concept-edge { stroke: var(--ink-soft); stroke-width: 1; transition: stroke 0.3s ease, stroke-width 0.3s ease; }
.concept-label { font-family: 'Outfit', sans-serif; font-size: 11px; fill: var(--ink-mid); font-weight: 600; opacity: 0; transition: opacity 0.3s ease; }

.concept-scene.show-geometry .concept-point { fill: var(--accent-color); }
.concept-scene.show-semantics .concept-point.sem-wall { fill: var(--accent-2); r: 6; }
.concept-scene.show-semantics .concept-point.sem-object { fill: var(--accent-3); r: 6; }
.concept-scene.show-semantics .concept-point.sem-ground { fill: var(--accent-4); r: 6; }
.concept-scene.show-semantics .concept-label { opacity: 1; }
.concept-scene.show-relationships .concept-edge { stroke: var(--accent-color); stroke-width: 2; }
.concept-scene.show-world .concept-point { fill: var(--accent-2); }
.concept-scene.show-world .concept-edge { stroke: var(--accent-color); stroke-width: 1.5; }
.concept-scene.show-world .concept-label { opacity: 1; fill: var(--ink-color); }

.concepts-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 10px;
}
.concept-chip {
    background: var(--card-bg);
    border: 1.5px solid var(--ink-soft);
    border-radius: 14px;
    padding: 14px;
    transition: all var(--transition);
    cursor: default;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.concept-chip:hover {
    transform: translateY(-2px);
    border-color: var(--accent-color);
    box-shadow: var(--shadow-lift);
}
.cc-title { font-weight: 700; font-size: 14px; }
.cc-desc { font-size: 12px; color: var(--ink-mid); line-height: 1.4; }

@media (max-width: 720px) {
    .intro-grid { grid-template-columns: 1fr; }
    .concepts-row { grid-template-columns: repeat(2, 1fr); }
}

/* =============== EXCITED =============== */
.excited-title { font-size: clamp(28px, 4vw, 42px); line-height: 1.15; }
.excited-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}
.ex-card {
    background: var(--card-bg);
    border: 1.5px solid var(--ink-soft);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all var(--transition);
    cursor: pointer;
    position: relative;
}
.ex-card:hover {
    transform: translate(-1px, -3px);
    box-shadow: var(--shadow-sketch);
    border-color: var(--ink-color);
}
.ex-demo {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
    opacity: 0;
    border-top: 1px dashed var(--ink-soft);
    margin-top: 0;
}
.ex-card:hover .ex-demo,
.ex-card.open .ex-demo {
    max-height: 140px;
    opacity: 1;
    margin-top: 4px;
    padding-top: 10px;
}
.ex-demo svg {
    width: 100%;
    height: 90px;
    display: block;
}
.ex-hint {
    font-family: 'Caveat', cursive;
    font-size: 15px;
    color: var(--accent-color);
    margin-top: auto;
    transition: opacity 0.3s ease;
}
.ex-card:hover .ex-hint,
.ex-card.open .ex-hint { opacity: 0; }
.ex-demo .d-node { fill: var(--accent-color); }
.ex-demo .d-edge { stroke: var(--accent-color); stroke-width: 1.4; fill: none; }
.ex-demo .d-edge-soft { stroke: var(--ink-soft); stroke-width: 1; fill: none; }
.ex-demo .d-label { font-family: 'Outfit', sans-serif; font-size: 9px; fill: var(--ink-mid); font-weight: 600; }
.ex-demo .d-pulse { fill: var(--accent-2); animation: demoPulse 1.6s ease-in-out infinite; }
@keyframes demoPulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }
.ex-demo .d-flow { stroke-dasharray: 4 3; animation: demoFlow 1.5s linear infinite; }
@keyframes demoFlow { to { stroke-dashoffset: -14; } }
.ex-icon {
    width: 42px; height: 42px;
    display: grid; place-items: center;
    background: var(--accent-soft);
    color: var(--accent-color);
    border-radius: 50%;
    font-size: 18px;
    font-weight: 700;
}
.ex-card:nth-child(2) .ex-icon { background: rgba(236, 72, 153, 0.12); color: var(--accent-2); }
.ex-card:nth-child(3) .ex-icon { background: rgba(16, 185, 129, 0.12); color: var(--accent-3); }
.ex-card:nth-child(4) .ex-icon { background: rgba(245, 158, 11, 0.15); color: var(--accent-4); }
.ex-card h3 { font-size: 17px; }
.ex-card p { font-size: 14px; color: var(--ink-mid); line-height: 1.5; }
.excited-footer {
    font-family: 'Caveat', cursive;
    font-size: 24px;
    color: var(--ink-color);
    text-align: center;
    margin-top: 10px;
}

/* =============== PHILOSOPHY =============== */
.philo-lines { display: flex; flex-direction: column; gap: 28px; }
.philo-line { font-size: clamp(22px, 3vw, 32px); font-weight: 500; line-height: 1.3; }
.philo-line .accent {
    font-family: 'Caveat', cursive;
    font-weight: 700;
    color: var(--accent-color);
    font-size: 1.15em;
}

/* =============== QUESTIONS =============== */
.question-inner { gap: 20px; }
.q-title { font-size: clamp(28px, 4vw, 40px); font-weight: 700; }
.q-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-top: 12px;
}
.q-option {
    background: var(--card-bg);
    border: 1.5px solid var(--ink-soft);
    border-radius: 16px;
    padding: 18px 20px;
    text-align: left;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.q-option:hover {
    border-color: var(--ink-color);
    transform: translate(-1px, -2px);
    box-shadow: var(--shadow-sketch);
}
.q-option.selected { border-color: var(--accent-color); background: var(--accent-soft); }
.q-option-label { font-weight: 700; font-size: 16px; }
.q-option-desc { font-size: 13px; color: var(--ink-mid); line-height: 1.4; }

/* =============== COMPASS =============== */
.compass-inner { gap: 20px; }
.compass-tag {
    font-family: 'Caveat', cursive;
    font-size: 22px;
    color: var(--gold);
    font-weight: 700;
}
#compass-archetype { font-size: clamp(34px, 5vw, 52px); line-height: 1.1; }
.compass-paragraph { font-size: 17px; color: var(--ink-mid); line-height: 1.6; max-width: 680px; }
.compass-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 10px;
}
.compass-stat {
    background: var(--card-bg);
    border: 1.5px solid var(--ink-soft);
    border-radius: 14px;
    padding: 16px;
    text-align: center;
}
.stat-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ink-mid);
    margin-bottom: 6px;
}
.stat-value { font-weight: 700; font-size: 20px; }
.compass-branches { margin-top: 16px; }
.cb-label { font-size: 14px; color: var(--ink-mid); margin-bottom: 10px; }
.cb-hint { font-family: 'Caveat', cursive; font-size: 16px; }
.cb-list { display: flex; flex-wrap: wrap; gap: 8px; }
.cb-chip {
    background: var(--card-bg);
    border: 1.5px solid var(--ink-soft);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    cursor: help;
    transition: background var(--transition), border-color var(--transition);
}
.cb-chip:hover { background: var(--accent-soft); border-color: var(--accent-color); }
.cb-chip.primary { background: var(--gold-soft); border-color: var(--gold); font-weight: 700; }

@media (max-width: 640px) {
    .compass-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =============== ACTS =============== */
.acts-title { font-size: clamp(28px, 4vw, 42px); }
.acts-sub { color: var(--ink-mid); font-size: 16px; max-width: 680px; }
.acts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
    margin: 10px 0 16px;
}
.act-card {
    background: var(--card-bg);
    border: 1.5px solid var(--ink-soft);
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 160px;
}
.act-card:hover {
    transform: translate(-2px, -3px);
    box-shadow: var(--shadow-sketch);
    border-color: var(--ink-color);
}
.act-card.leverage {
    border-color: var(--gold);
    background: var(--gold-soft);
}
.act-card.leverage::after {
    content: "★ biggest leap for you";
    position: absolute;
    top: 10px; right: 12px;
    font-family: 'Caveat', cursive;
    font-size: 14px;
    color: var(--gold);
    font-weight: 700;
}
.act-number { font-family: 'Caveat', cursive; font-size: 18px; color: var(--accent-color); font-weight: 700; }
.act-title { font-size: 20px; font-weight: 700; line-height: 1.25; }
.act-oneliner { font-family: 'Caveat', cursive; font-size: 18px; color: var(--ink-mid); line-height: 1.3; }
.act-meta {
    margin-top: auto;
    font-size: 12px;
    color: var(--ink-mid);
    display: flex;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px dashed var(--ink-soft);
}

/* =============== RESOURCES =============== */
.resources-inner h2 { font-size: clamp(24px, 3.5vw, 34px); }
.res-sub { color: var(--ink-mid); font-size: 15px; max-width: 680px; line-height: 1.6; }
.eco-grid, .living-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}
.eco-card, .living-card {
    background: var(--card-bg);
    border: 1.5px solid var(--ink-soft);
    border-radius: 16px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: all var(--transition);
}
.eco-card:hover, .living-card:hover {
    transform: translate(-1px, -2px);
    box-shadow: var(--shadow-sketch);
    border-color: var(--ink-color);
}
.eco-spine { background: var(--accent-soft); border-color: var(--accent-color); }
.eco-os { background: var(--gold-soft); border-color: var(--gold); }
.eco-tag {
    font-family: 'Caveat', cursive;
    font-size: 16px;
    color: var(--ink-mid);
    font-weight: 700;
}
.eco-card h3, .living-card h3 { font-size: 18px; }
.eco-card p, .living-card p { font-size: 14px; color: var(--ink-mid); line-height: 1.5; }
.eco-summary {
    background: var(--card-bg);
    border: 1.5px dashed var(--ink-soft);
    border-radius: 14px;
    padding: 18px 20px;
    font-size: 15px;
    color: var(--ink-mid);
    line-height: 1.6;
}
.eco-summary strong { color: var(--ink-color); }

/* Eco diagram (part 1) */
.eco-diagram {
    position: relative;
    background: linear-gradient(180deg, var(--bg-soft), var(--card-bg));
    border: 1.5px solid var(--ink-soft);
    border-radius: 20px;
    padding: 24px 22px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.eco-diagram-lock {
    position: absolute;
    top: -12px; left: 22px;
    background: var(--ink-color);
    color: var(--bg-color);
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.eco-layer {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 16px;
    padding: 14px 16px;
    background: var(--card-bg);
    border: 1.5px solid var(--ink-soft);
    border-radius: 14px;
    align-items: center;
    transition: all var(--transition);
    position: relative;
}
.eco-layer:hover { border-color: var(--accent-color); transform: translateX(2px); }
.eco-layer::before {
    content: '';
    position: absolute;
    left: 37px; bottom: -13px;
    width: 2px; height: 12px;
    background: var(--ink-soft);
    z-index: 0;
}
.eco-layer:last-child::before { display: none; }
.eco-layer-icon {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent-color);
    display: grid; place-items: center;
    font-size: 20px;
    font-weight: 700;
    flex-shrink: 0;
    z-index: 1;
}
.eco-layer-body { display: flex; flex-direction: column; gap: 3px; }
.eco-layer-tag {
    font-family: 'Caveat', cursive;
    font-size: 16px;
    color: var(--ink-mid);
    font-weight: 700;
}
.eco-layer-body h3 { font-size: 17px; }
.eco-layer-body p { font-size: 14px; color: var(--ink-mid); line-height: 1.5; }
.eco-layer-core { background: var(--accent-soft); border-color: var(--accent-color); }
.eco-layer-core .eco-layer-icon { background: var(--accent-color); color: white; }
.eco-layer-os { background: var(--gold-soft); border-color: var(--gold); }
.eco-layer-os .eco-layer-icon { background: var(--gold); color: white; }

/* Living cards (part 2) */
.living-card { position: relative; }
.living-pulse {
    position: absolute;
    top: 16px; right: 16px;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--accent-3);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
    animation: livePulse 2.4s ease-in-out infinite;
}
@keyframes livePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55); }
    50% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
}

/* Renewal */
.renewal-block {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: var(--bg-soft);
    border: 1.5px dashed var(--ink-soft);
    border-radius: 20px;
    padding: 24px;
}
.renewal-intro { display: flex; flex-direction: column; gap: 6px; }
.tiers-eyebrow {
    font-family: 'Caveat', cursive;
    font-size: 18px;
    color: var(--gold);
    font-weight: 700;
}
.renewal-intro h3 { font-size: 22px; line-height: 1.25; }
.renewal-para { font-size: 14px; color: var(--ink-mid); line-height: 1.55; max-width: 620px; }
.renewal-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
.renewal-card {
    background: var(--card-bg);
    border: 1.5px solid var(--ink-soft);
    border-radius: 16px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    transition: all var(--transition);
}
.renewal-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.renewal-featured {
    background: var(--accent-soft);
    border-color: var(--accent-color);
    border-width: 2px;
}
.renewal-badge {
    position: absolute;
    top: -10px; left: 22px;
    background: var(--accent-color);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 999px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.renewal-tier { font-size: 18px; font-weight: 700; }
.renewal-desc { font-family: 'Caveat', cursive; font-size: 17px; color: var(--ink-mid); }
.renewal-price {
    font-size: 34px;
    font-weight: 800;
    color: var(--accent-color);
    letter-spacing: -0.02em;
    margin: 6px 0 4px;
}
.renewal-per {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-mid);
    margin-left: 4px;
}
.renewal-list {
    list-style: none;
    padding: 0;
    margin: 4px 0 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.renewal-list li {
    font-size: 13px;
    color: var(--ink-color);
    padding-left: 18px;
    position: relative;
    line-height: 1.5;
}
.renewal-list li::before {
    content: "✓";
    position: absolute;
    left: 0; top: 0;
    color: var(--accent-color);
    font-weight: 700;
}
.tiers-footnote {
    font-family: 'Caveat', cursive;
    font-size: 17px;
    color: var(--ink-mid);
    text-align: center;
    margin: 0;
}
@media (max-width: 640px) {
    .renewal-grid { grid-template-columns: 1fr; }
}

/* Tier compare (part 1) */
.tier-compare {
    margin-top: 6px;
    background: var(--bg-soft);
    border: 1.5px solid var(--ink-soft);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.tier-compare-head { display: flex; flex-direction: column; gap: 2px; }
.tier-compare-eyebrow {
    font-family: 'Caveat', cursive;
    font-size: 17px;
    color: var(--accent-color);
    font-weight: 700;
}
.tier-compare-head h4 { font-size: 17px; font-weight: 700; margin: 0; }
.tier-compare-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.tier-compare-three { grid-template-columns: repeat(3, 1fr); }
.tc-sub {
    font-family: 'Caveat', cursive;
    font-size: 16px;
    color: var(--ink-mid);
    margin-bottom: 4px;
}
.tc-muted { opacity: 0.55; font-style: italic; }
.tc-muted::before { content: "✕" !important; color: var(--ink-mid) !important; }
.tier-flag {
    display: inline-block;
    margin-left: 6px;
    font-family: 'Outfit', sans-serif;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gold);
    background: var(--gold-soft);
    padding: 2px 8px;
    border-radius: 999px;
    vertical-align: middle;
}
.rc-pills-three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 720px) {
    .tier-compare-three, .rc-pills-three { grid-template-columns: 1fr; }
}
.tc-card {
    background: var(--card-bg);
    border: 1.5px solid var(--ink-soft);
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
}
.tc-featured { background: var(--accent-soft); border-color: var(--accent-color); border-width: 2px; }
.tc-badge {
    position: absolute;
    top: -10px; right: 14px;
    background: var(--accent-color);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.tc-name { font-weight: 700; font-size: 16px; }
.tc-card ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 5px; }
.tc-card li {
    font-size: 12.5px;
    color: var(--ink-color);
    padding-left: 14px;
    position: relative;
    line-height: 1.45;
}
.tc-card li::before {
    content: "✓";
    position: absolute;
    left: 0; top: 0;
    color: var(--accent-color);
    font-weight: 700;
    font-size: 11px;
}
@media (max-width: 560px) {
    .tier-compare-grid { grid-template-columns: 1fr; }
}

/* Renewal compact (part 2) */
.renewal-compact {
    margin-top: 6px;
    background: var(--bg-soft);
    border: 1px dashed var(--ink-soft);
    border-radius: 14px;
    padding: 0;
    transition: background var(--transition);
}
.renewal-compact summary {
    list-style: none;
    cursor: pointer;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.renewal-compact summary::-webkit-details-marker { display: none; }
.rc-eyebrow {
    font-family: 'Caveat', cursive;
    font-size: 15px;
    color: var(--ink-mid);
    font-weight: 700;
}
.rc-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-color);
    flex: 1;
    min-width: 200px;
}
.rc-caret {
    color: var(--ink-mid);
    transition: transform 0.3s ease;
    font-size: 14px;
}
.renewal-compact[open] .rc-caret { transform: rotate(180deg); }
.rc-body { padding: 0 18px 16px; display: flex; flex-direction: column; gap: 10px; }
.rc-para { font-size: 13.5px; color: var(--ink-mid); line-height: 1.55; }
.rc-pills {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.rc-pill {
    background: var(--card-bg);
    border: 1.5px solid var(--ink-soft);
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    position: relative;
}
.rc-pill-featured { border-color: var(--accent-color); background: var(--accent-soft); }
.rc-pill-tier { font-weight: 700; font-size: 14px; }
.rc-pill-price {
    font-size: 20px;
    font-weight: 800;
    color: var(--accent-color);
    margin-left: auto;
}
.rc-pill-price small { font-size: 11px; font-weight: 500; color: var(--ink-mid); margin-left: 2px; }
.rc-pill-note {
    flex-basis: 100%;
    font-family: 'Caveat', cursive;
    font-size: 14px;
    color: var(--ink-mid);
}
.rc-foot {
    font-family: 'Caveat', cursive;
    font-size: 15px;
    color: var(--ink-mid);
    text-align: center;
    margin-top: 2px;
}
@media (max-width: 560px) {
    .rc-pills { grid-template-columns: 1fr; }
}

/* =============== ROADMAP =============== */
.roadmap-inner h2 { font-size: clamp(28px, 4vw, 42px); }
.roadmap-sub { color: var(--ink-mid); font-size: 16px; max-width: 680px; }

.name-row { display: flex; flex-direction: column; gap: 6px; max-width: 420px; }
.name-row label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ink-mid);
    font-weight: 600;
}
.name-row input {
    background: var(--card-bg);
    border: 1.5px solid var(--ink-soft);
    border-radius: 10px;
    padding: 12px 14px;
    font-family: inherit;
    font-size: 15px;
    color: var(--ink-color);
    outline: none;
    transition: border-color var(--transition);
}
.name-row input:focus { border-color: var(--accent-color); }

.roadmap-preview {
    background: var(--card-bg);
    border: 1.5px solid var(--ink-soft);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-lift);
}
.rp-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; flex-wrap: wrap; gap: 10px; }
.rp-title { font-size: 22px; font-weight: 700; }
.rp-subtitle { font-family: 'Caveat', cursive; font-size: 18px; color: var(--ink-mid); }
.rp-stamp {
    border: 1.5px solid var(--gold);
    color: var(--gold);
    padding: 6px 12px;
    border-radius: 6px;
    font-family: 'Caveat', cursive;
    font-size: 18px;
    font-weight: 700;
    transform: rotate(-3deg);
}
.rp-acts { display: flex; flex-direction: column; gap: 10px; }
.rp-act {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px dashed var(--ink-soft);
}
.rp-act:last-child { border-bottom: none; }
.rp-act-num { font-family: 'Caveat', cursive; font-size: 24px; color: var(--accent-color); font-weight: 700; }
.rp-act-title { font-weight: 700; font-size: 15px; }
.rp-act-line { font-family: 'Caveat', cursive; font-size: 16px; color: var(--ink-mid); }
.roadmap-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.roadmap-hint { font-size: 13px; color: var(--ink-mid); font-style: italic; }

/* =============== DRAWER =============== */
#act-drawer { position: fixed; inset: 0; z-index: 200; display: none; }
#act-drawer.open { display: block; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.4); backdrop-filter: blur(4px); }
.drawer-panel {
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: min(520px, 92vw);
    background: var(--bg-color);
    padding: 30px 32px;
    overflow-y: auto;
    box-shadow: -20px 0 40px rgba(0, 0, 0, 0.2);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
#act-drawer.open .drawer-panel { transform: translateX(0); }
.drawer-close {
    position: absolute;
    top: 16px; right: 18px;
    font-size: 26px;
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1.5px solid var(--ink-soft);
    background: var(--card-bg);
}
.drawer-close:hover { background: var(--accent-soft); }
#drawer-body { display: flex; flex-direction: column; gap: 16px; }
#drawer-body h3 { font-size: 26px; line-height: 1.2; margin-top: 8px; }
#drawer-body .d-tag { font-family: 'Caveat', cursive; font-size: 20px; color: var(--accent-color); font-weight: 700; }
#drawer-body .d-line { font-family: 'Caveat', cursive; font-size: 20px; color: var(--ink-mid); }
#drawer-body .d-section-title {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ink-mid);
    font-weight: 700;
    margin-top: 8px;
}
#drawer-body ul { margin: 0; padding-left: 18px; font-size: 15px; line-height: 1.6; }
#drawer-body .d-mistake {
    background: var(--gold-soft);
    border-left: 3px solid var(--gold);
    padding: 12px 14px;
    border-radius: 0 10px 10px 0;
    font-size: 14px;
    line-height: 1.5;
}

/* =============== TIP =============== */
#tip {
    position: fixed;
    z-index: 300;
    background: var(--ink-color);
    color: var(--bg-color);
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    max-width: 260px;
    line-height: 1.45;
    pointer-events: none;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: var(--shadow-lift);
}
#tip.show { opacity: 1; transform: translateY(0); }
#tip strong { color: #FBE49D; }

/* =============== ASK =============== */
#ask-btn {
    position: fixed;
    bottom: 24px; right: 24px;
    background: var(--ink-color);
    color: var(--bg-color);
    padding: 12px 20px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    z-index: 90;
    box-shadow: var(--shadow-lift);
    transition: transform var(--transition);
}
#ask-btn:hover { transform: translateY(-2px); }

#ask-modal {
    position: fixed;
    inset: 0;
    z-index: 250;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
#ask-modal.open { display: flex; }
.ask-modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.4); backdrop-filter: blur(4px); }
.ask-modal-card {
    position: relative;
    background: var(--bg-color);
    border-radius: 20px;
    padding: 30px;
    width: min(500px, 100%);
    box-shadow: var(--shadow-lift);
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.ask-modal-close { position: absolute; top: 14px; right: 14px; font-size: 24px; width: 32px; height: 32px; border-radius: 50%; }
.ask-modal-card h2 { font-size: 22px; }
.ask-modal-sub { font-size: 14px; color: var(--ink-mid); }
.ask-modal-card label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-mid); font-weight: 600; }
.ask-modal-card input,
.ask-modal-card textarea {
    font-family: inherit;
    font-size: 15px;
    color: var(--ink-color);
    background: var(--card-bg);
    border: 1.5px solid var(--ink-soft);
    border-radius: 10px;
    padding: 10px 12px;
    outline: none;
    transition: border-color var(--transition);
    resize: vertical;
}
.ask-modal-card input:focus,
.ask-modal-card textarea:focus { border-color: var(--accent-color); }
.ask-modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 6px; }
.ask-cancel, .ask-send {
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    transition: transform var(--transition);
}
.ask-cancel { border: 1.5px solid var(--ink-soft); }
.ask-cancel:hover { background: var(--ink-soft); }
.ask-send { background: var(--ink-color); color: var(--bg-color); }
.ask-send:hover { transform: translateY(-1px); }

/* =============== PRINT =============== */
#print-layout { display: none; }

@media print {
    @page { size: A4; margin: 14mm 14mm; }
    html, body {
        overflow: visible !important;
        height: auto !important;
        min-height: 0 !important;
        background: #fff !important;
        color: #1E1E1C !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    #top-bar, #screen-stack, #ask-btn, #ask-modal, #act-drawer, #tip, #particle-field { display: none !important; }
    #print-layout {
        display: block !important;
        font-family: 'Outfit', sans-serif;
        color: #1E1E1C;
        margin: 0;
        padding: 0;
    }
    #print-layout > *:last-child { margin-bottom: 0 !important; padding-bottom: 0 !important; }

    .pl-cover {
        text-align: center;
        padding: 30px 20px 24px;
        border-bottom: 3px double #1E1E1C;
        margin-bottom: 20px;
        page-break-after: avoid;
    }
    .pl-cover-eyebrow {
        font-family: 'Caveat', cursive;
        font-size: 22px;
        color: #6366F1;
    }
    .pl-cover-title {
        font-size: 36px;
        font-weight: 800;
        letter-spacing: -0.02em;
        margin: 8px 0;
    }
    .pl-cover-name {
        font-family: 'Caveat', cursive;
        font-size: 38px;
        color: #D4A017;
        margin-top: 16px;
    }
    .pl-cover-date {
        font-size: 12px;
        color: #555;
        margin-top: 6px;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }
    .pl-rank {
        display: inline-block;
        margin-top: 22px;
        border: 2px solid #D4A017;
        padding: 10px 22px;
        border-radius: 8px;
    }
    .pl-rank-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.16em; color: #555; }
    .pl-rank-title { font-size: 20px; font-weight: 800; color: #D4A017; margin-top: 2px; }
    .pl-signature { font-family: 'Caveat', cursive; font-size: 18px; margin-top: 18px; }

    .pl-section { margin-bottom: 16px; }
    .pl-section-acts { page-break-before: always; padding-top: 4px; }
    .pl-section-plan { page-break-before: always; padding-top: 4px; page-break-inside: auto; }

    .pl-welcome {
        margin-bottom: 18px;
        padding: 16px 18px;
        background: #FAF3DC;
        border-left: 3px solid #D4A017;
        border-radius: 0 10px 10px 0;
        page-break-inside: avoid;
    }
    .pl-welcome-greeting {
        font-family: 'Caveat', cursive;
        font-size: 24px;
        color: #D4A017;
        font-weight: 700;
        margin-bottom: 6px;
    }
    .pl-welcome-body p {
        font-size: 12px;
        line-height: 1.6;
        color: #1E1E1C;
        margin: 0 0 5px;
    }
    .pl-welcome-sign {
        font-family: 'Caveat', cursive;
        font-size: 18px;
        color: #6366F1;
        margin-top: 6px;
        text-align: right;
    }
    .pl-section h3 {
        font-size: 13px;
        text-transform: uppercase;
        letter-spacing: 0.16em;
        border-bottom: 1px solid #1E1E1C;
        padding-bottom: 5px;
        margin: 0 0 10px;
    }

    .pl-profile-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
        margin-bottom: 10px;
    }
    .pl-profile-cell {
        border: 1px solid #ccc;
        padding: 8px 10px;
        border-radius: 6px;
    }
    .pl-profile-label { font-size: 9px; text-transform: uppercase; letter-spacing: 0.12em; color: #666; }
    .pl-profile-value { font-size: 13px; font-weight: 700; margin-top: 2px; }
    .pl-archetype { font-size: 22px; font-weight: 700; color: #6366F1; margin-bottom: 4px; }
    .pl-para { font-size: 12px; line-height: 1.55; margin: 0 0 6px; color: #333; }

    .pl-act { page-break-inside: avoid; margin-bottom: 14px; padding: 12px 14px; border: 1px solid #1E1E1C; border-radius: 8px; }
    .pl-act-head {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        margin-bottom: 6px;
        border-bottom: 1px dashed #aaa;
        padding-bottom: 4px;
    }
    .pl-act-num { font-family: 'Caveat', cursive; font-size: 22px; color: #6366F1; font-weight: 700; }
    .pl-act-title { font-size: 15px; font-weight: 700; flex: 1; margin-left: 10px; }
    .pl-act-tag { font-family: 'Caveat', cursive; font-size: 15px; color: #D4A017; }
    .pl-act-line { font-family: 'Caveat', cursive; font-size: 15px; color: #555; margin-bottom: 6px; }
    .pl-act ul { margin: 4px 0; padding-left: 18px; font-size: 11px; line-height: 1.5; }
    .pl-act .pl-mistake {
        font-size: 10.5px;
        font-style: italic;
        color: #333;
        border-left: 3px solid #D4A017;
        padding: 6px 8px;
        margin-top: 6px;
        background: #FAF3DC;
    }

    .pl-plan-intro {
        font-family: 'Caveat', cursive;
        font-size: 17px;
        color: #6366F1;
        margin-bottom: 6px;
    }
    .pl-plan-act-header {
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        margin: 10px 0 4px;
        color: #6366F1;
    }
    .pl-plan-days {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 4px 14px;
        margin-bottom: 4px;
    }
    .pl-plan-day {
        display: flex;
        gap: 8px;
        font-size: 11px;
        padding: 3px 0;
        align-items: flex-start;
    }
    .pl-plan-day-box {
        width: 11px;
        height: 11px;
        border: 1.2px solid #1E1E1C;
        border-radius: 2px;
        flex-shrink: 0;
        margin-top: 2px;
    }
    .pl-plan-day-label {
        font-weight: 700;
        margin-right: 4px;
        color: #6366F1;
        min-width: 32px;
    }
    .pl-plan-day-text { color: #333; line-height: 1.35; }

    .pl-quote {
        margin-top: 22px;
        padding: 20px 24px 18px;
        border: 2px solid #D4A017;
        border-radius: 10px;
        background: #FFFBEF;
        text-align: center;
        page-break-inside: avoid;
        position: relative;
    }
    .pl-quote-mark {
        font-family: 'Caveat', cursive;
        font-size: 56px;
        line-height: 0.8;
        color: #D4A017;
        margin-bottom: 4px;
    }
    .pl-quote-text {
        font-family: 'Caveat', cursive;
        font-size: 22px;
        color: #1E1E1C;
        line-height: 1.35;
        margin-bottom: 4px;
        font-style: italic;
    }
    .pl-quote-translation {
        font-size: 13px;
        color: #1E1E1C;
        line-height: 1.4;
        margin-bottom: 8px;
    }
    .pl-quote-attr {
        font-size: 12px;
        font-weight: 700;
        color: #D4A017;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        margin-bottom: 10px;
    }
    .pl-quote-context {
        font-size: 11px;
        color: #555;
        line-height: 1.55;
        font-style: italic;
        max-width: 480px;
        margin: 0 auto;
    }

    .pl-footer {
        margin-top: 18px;
        margin-bottom: 0;
        text-align: center;
        border-top: 2px solid #1E1E1C;
        padding-top: 12px;
        padding-bottom: 0;
        page-break-inside: avoid;
    }
    .pl-footer-top {
        font-family: 'Caveat', cursive;
        font-size: 18px;
        color: #1E1E1C;
        margin-bottom: 8px;
    }
    .pl-footer-links {
        font-size: 11px;
        color: #555;
        margin-bottom: 6px;
    }
    .pl-footer-links a {
        color: #6366F1;
        text-decoration: none;
        font-weight: 600;
    }
    .pl-footer-sep { margin: 0 8px; color: #999; }
    .pl-footer-copy {
        font-size: 9.5px;
        color: #777;
        line-height: 1.45;
        max-width: 520px;
        margin: 0 auto;
    }
    .pl-act { margin-bottom: 10px; }
    .pl-plan-day { padding: 2px 0; }
    .pl-plan-act-header { margin: 8px 0 3px; }
}
/* === Footer === */
.ep-footer{position:fixed;bottom:0;left:0;width:100%;text-align:center;font-size:.7rem;padding:4px 0;opacity:.45;z-index:10;pointer-events:none;}
/* === Share === */
.fab-group{position:fixed;bottom:24px;right:24px;display:flex;gap:8px;z-index:90;}
#share-btn{background:var(--card-bg,#fff);border:1px solid var(--ink-soft,#ddd);border-radius:50%;width:44px;height:44px;font-size:1.2rem;cursor:pointer;}
.share-dd{display:none;position:fixed;bottom:76px;right:24px;background:var(--card-bg,#fff);border:1px solid var(--ink-soft,#ddd);border-radius:12px;padding:6px;z-index:91;flex-direction:column;gap:2px;}
.share-dd.open{display:flex;}
.share-opt{background:none;border:none;padding:8px 14px;cursor:pointer;text-align:left;border-radius:8px;font-size:.85rem;}
.share-opt:hover{background:var(--accent-soft,#f5f5f5);}
