:root {
    --ink: #272029;
    --muted: #6f636b;
    --paper: #fffdf9;
    --canvas: #f1e9e6;
    --accent: #9f4855;
    --accent-dark: #7e3440;
    --accent-soft: #f3dfe1;
    --line: #e4d8d5;
    --shadow: 0 30px 80px rgba(61, 37, 48, .16);
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--canvas); }

body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    font-family: "DM Sans", system-ui, sans-serif;
    background:
        radial-gradient(circle at 8% 10%, rgba(159, 72, 85, .13), transparent 30rem),
        radial-gradient(circle at 93% 85%, rgba(84, 54, 75, .12), transparent 34rem),
        var(--canvas);
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }

.ambient {
    position: fixed;
    border: 1px solid rgba(159, 72, 85, .18);
    border-radius: 999px;
    pointer-events: none;
    transform: rotate(-18deg);
}

.ambient-one { width: 26rem; height: 10rem; left: -9rem; top: 8%; }
.ambient-two { width: 31rem; height: 12rem; right: -12rem; bottom: 5%; }

.app-shell {
    width: min(100% - 32px, 720px);
    margin: auto;
    padding: 42px 0 18px;
    position: relative;
    z-index: 1;
}

.panel {
    background: rgba(255, 253, 249, .96);
    border: 1px solid rgba(255, 255, 255, .75);
    border-radius: 30px;
    box-shadow: var(--shadow);
    padding: clamp(28px, 6vw, 58px);
    animation: panel-in .4s ease both;
}

.panel-intro { text-align: center; }

.eyebrow, .question-kicker, .book-kicker {
    color: var(--accent);
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

h1, h2, h3 { font-family: "Newsreader", Georgia, serif; margin: 0; }

h1 {
    margin-top: 16px;
    font-size: clamp(2.8rem, 9vw, 5.2rem);
    line-height: .92;
    letter-spacing: -.04em;
}

h1 em { color: var(--accent); font-weight: 500; }

.intro-copy {
    max-width: 520px;
    margin: 24px auto 30px;
    color: var(--muted);
    font-size: 1.06rem;
    line-height: 1.7;
}

.quiz-facts { margin: -18px 0 26px; color: var(--accent-dark); font-size: .82rem; font-weight: 700; }

.primary-button {
    width: 100%;
    min-height: 58px;
    border: 0;
    border-radius: 16px;
    padding: 15px 20px;
    color: #fff;
    background: var(--accent);
    box-shadow: 0 12px 28px rgba(159, 72, 85, .24);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.primary-button:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 16px 34px rgba(159, 72, 85, .3); }
.primary-button:focus-visible, .answer-button:focus-visible, input:focus-visible, .icon-button:focus-visible { outline: 3px solid rgba(159, 72, 85, .28); outline-offset: 3px; }
.primary-button:disabled { opacity: .65; cursor: wait; transform: none; }

.trust-list {
    margin: 26px 0 0;
    padding: 0;
    display: grid;
    gap: 10px;
    list-style: none;
    color: var(--muted);
    font-size: .88rem;
    text-align: left;
}

.trust-list li { display: flex; align-items: center; gap: 9px; }
.trust-list span { color: var(--accent); font-weight: 700; }

.progress-row { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 14px; }
.icon-button { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink); cursor: pointer; }
.progress-track { height: 7px; background: #ede4e1; border-radius: 99px; overflow: hidden; }
.progress-bar { width: 11%; height: 100%; border-radius: inherit; background: var(--accent); transition: width .28s ease; }
.progress-label { min-width: 34px; color: var(--muted); font-size: .82rem; font-weight: 600; }

.question-wrap { margin-top: clamp(36px, 8vw, 72px); }
.question-kicker { margin: 0 0 12px; }
.panel-quiz h2 { max-width: 600px; font-size: clamp(2rem, 6vw, 3.35rem); line-height: 1.08; letter-spacing: -.025em; }

.answer-list { display: grid; gap: 12px; margin-top: 32px; }
.answer-button {
    width: 100%;
    min-height: 58px;
    padding: 15px 17px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: #fff;
    color: var(--ink);
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 13px;
    transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.answer-button::before { content: ""; width: 18px; height: 18px; border: 1.5px solid #cbbcb9; border-radius: 50%; flex: 0 0 auto; }
.answer-button:hover { border-color: var(--accent); background: #fffafa; transform: translateX(3px); }
.answer-button.is-selected { border-color: var(--accent); background: var(--accent-soft); }
.answer-button.is-selected::before { border: 5px solid var(--accent); background: #fff; }

.panel-form { text-align: center; }
.result-ready { width: 56px; height: 56px; margin: 0 auto 20px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 1.35rem; font-weight: 700; }
.panel-form h2 { margin: 12px auto; font-size: clamp(2.25rem, 7vw, 3.8rem); line-height: 1.02; letter-spacing: -.03em; }
.panel-form > p:not(.eyebrow) { color: var(--muted); line-height: 1.65; }
form { margin-top: 28px; display: grid; gap: 17px; text-align: left; }
form label:not(.consent-row) { display: grid; gap: 8px; font-size: .9rem; font-weight: 700; }
input[type="text"], input[type="tel"], input[type="email"], input[type="password"] { width: 100%; min-height: 52px; border: 1px solid var(--line); border-radius: 13px; background: #fff; color: var(--ink); padding: 12px 14px; font-size: 1rem; }
.optional { color: var(--muted); font-weight: 400; }
.privacy-promise { color: var(--muted); font-size: .72rem; font-style: italic; font-weight: 400; line-height: 1.5; }
.consent-row { display: grid; grid-template-columns: 20px 1fr; align-items: start; gap: 10px; color: var(--muted); font-size: .8rem; line-height: 1.5; }
.consent-row input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); }
a { color: var(--accent-dark); }
.honeypot { position: absolute; left: -10000px; opacity: 0; pointer-events: none; }
.form-error { min-height: 20px; margin: -4px 0 0; color: #a22f36; font-size: .85rem; }

.result-page { width: 100%; animation: panel-in .45s ease both; }
.result-container { max-width: 650px; margin: 0 auto; padding: 42px clamp(4px, 3vw, 18px) 10px; }
.result-hero { text-align: center; }
.result-greeting { margin: 0 0 26px; color: var(--muted); font-size: 1rem; }
.result-greeting strong { color: var(--ink); }
.result-mark { width: 70px; height: 70px; margin: 20px auto 16px; border: 1px solid rgba(159, 72, 85, .25); border-radius: 50% 50% 46% 54%; background: var(--accent-soft); position: relative; transform: rotate(-8deg); }
.result-mark::after { content: ""; position: absolute; width: 20px; height: 20px; right: 6px; bottom: 5px; border-radius: 50%; background: var(--accent); }
.result-tier { width: fit-content; margin: 0 auto 13px; padding: 6px 11px; border-radius: 99px; color: var(--accent-dark); background: var(--accent-soft); font-size: .72rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.result-hero h2 { margin: 0 auto; max-width: 590px; font-size: clamp(2.5rem, 8vw, 4.5rem); line-height: .98; letter-spacing: -.035em; }
.result-description { max-width: 570px; margin: 22px auto 18px; color: var(--muted); font-size: 1.05rem; line-height: 1.8; }
.result-anchor { max-width: 560px; margin: 0 auto; padding: 18px 20px; border-radius: 16px; background: rgba(255,255,255,.62); color: var(--ink); line-height: 1.7; }
.section-divider { width: 72px; height: 1px; margin: 54px auto; background: var(--accent); opacity: .45; }

.result-section { margin-bottom: 58px; }
.section-number { margin: 0 0 10px; color: var(--accent); font-size: .72rem; font-weight: 800; letter-spacing: .13em; }
.result-section h3, .book-story h3 { font-size: clamp(2.1rem, 6vw, 3.25rem); line-height: 1.04; letter-spacing: -.025em; }
.section-copy { color: var(--muted); line-height: 1.75; }
.pattern-list { display: grid; gap: 12px; margin-top: 24px; }
.pattern-card { padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.78); display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; }
.pattern-card span { width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-dark); display: grid; place-items: center; font-size: .76rem; font-weight: 800; }
.pattern-card p { margin: 1px 0 0; color: var(--muted); line-height: 1.65; }
blockquote { margin: 25px 0 0; padding: 3px 0 3px 20px; border-left: 2px solid var(--accent); color: var(--ink); font-family: "Newsreader", Georgia, serif; font-size: 1.4rem; font-style: italic; line-height: 1.5; }

.free-technique { position: relative; padding: clamp(26px, 6vw, 42px); border: 1px solid rgba(159,72,85,.24); border-radius: 24px; background: var(--paper); box-shadow: 0 22px 55px rgba(61,37,48,.09); }
.free-label { display: inline-block; margin-bottom: 22px; padding: 7px 10px; border-radius: 99px; background: var(--accent); color: #fff; font-size: .67rem; font-weight: 800; letter-spacing: .09em; }
.technique-steps { margin: 24px 0 0; padding: 0; list-style: none; counter-reset: technique; display: grid; gap: 13px; }
.technique-steps li { counter-increment: technique; padding: 15px 16px; border-radius: 14px; background: #f8f1ef; color: var(--muted); line-height: 1.6; display: grid; grid-template-columns: 32px 1fr; gap: 10px; }
.technique-steps li::before { content: counter(technique); width: 27px; height: 27px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-dark); display: grid; place-items: center; font-weight: 800; }
.technique-close { margin: 22px 0 0; color: var(--ink); font-weight: 600; line-height: 1.65; }

.result-timeline { margin-top: 26px; display: grid; gap: 0; }
.timeline-item { position: relative; padding: 0 0 26px 32px; border-left: 1px solid var(--line); }
.timeline-item:last-child { padding-bottom: 0; border-left-color: transparent; }
.timeline-item::before { content: ""; position: absolute; left: -6px; top: 4px; width: 11px; height: 11px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 6px var(--accent-soft); }
.timeline-item strong { display: block; margin-bottom: 5px; color: var(--accent-dark); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.timeline-item p { margin: 0; color: var(--muted); line-height: 1.65; }
.transition-copy { margin: 28px 0 0; padding: 20px; border-radius: 16px; background: var(--accent-soft); font-family: "Newsreader", Georgia, serif; font-size: 1.3rem; line-height: 1.55; }

.book-story { padding: clamp(28px, 7vw, 52px); border-radius: 28px; background: var(--ink); color: #fff; box-shadow: var(--shadow); }
.book-kicker { color: #dda9af; }
.book-story h3 { margin: 10px 0 18px; font-size: clamp(2.5rem, 8vw, 4.5rem); }
.book-lead { color: #d9cdd3; font-size: 1.02rem; line-height: 1.75; }
.book-story .author { margin: 20px 0 30px; color: #fff; font-size: .86rem; font-weight: 600; }
.book-benefits { display: grid; gap: 0; border-top: 1px solid rgba(255,255,255,.13); }
.book-benefits > div { padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.13); display: grid; grid-template-columns: 34px 1fr; gap: 12px; }
.book-benefits span { color: #dda9af; font-size: .75rem; font-weight: 800; }
.book-benefits p { margin: 0; color: #cfc2c8; line-height: 1.55; }
.book-benefits strong { color: #fff; }
.pricing-box { margin: 28px 0 18px; padding: 22px; border-radius: 17px; background: rgba(255,255,255,.08); text-align: center; }
.price-label { margin: 0 0 6px; color: #dda9af; font-size: .72rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.regular-price { margin: 0; color: #a9969f; text-decoration: line-through; }
.launch-price { margin: 2px 0; font-family: "Newsreader", Georgia, serif; font-size: 2.8rem; font-weight: 600; }
.price-note { margin: 0; color: #cfc2c8; font-size: .78rem; }
.result-cta { margin-top: 10px; }
.free-chapter { display: block; width: fit-content; margin: 20px auto 0; color: #fff; font-weight: 600; text-underline-offset: 4px; }
.result-closing { margin: 48px auto 0; text-align: center; }
.result-closing p { margin: 0 0 8px; font-family: "Newsreader", Georgia, serif; font-size: 1.8rem; }
.result-closing span { color: var(--muted); line-height: 1.7; }
.result-page .disclaimer { max-width: 570px; margin: 32px auto 0; text-align: center; }
.checkout-note { min-height: 18px; margin: 10px 0 0; color: #f1c6cb; font-size: .8rem; }
.disclaimer { margin: 22px 0 0; color: var(--muted); font-size: .78rem; line-height: 1.5; }

.panel-loading { min-height: 520px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.panel-loading h2 { margin: 12px 0; font-size: clamp(2.2rem, 7vw, 3.8rem); }
.panel-loading > p:last-child { max-width: 460px; color: var(--muted); line-height: 1.7; }
.loading-orbit { width: 82px; height: 82px; margin-bottom: 28px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; animation: orbit 2.8s linear infinite; }
.loading-orbit span { width: 18px; height: 18px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 12px var(--accent-soft); }

.is-hidden { display: none !important; }
footer { position: relative; z-index: 1; padding: 0 20px 24px; color: var(--muted); font-size: .75rem; text-align: center; }

@keyframes panel-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes orbit { to { transform: rotate(360deg); } }

@media (max-width: 560px) {
    .app-shell { width: min(100% - 20px, 720px); padding-top: 18px; }
    .panel { border-radius: 22px; padding: 26px 20px; }
    .panel-intro { padding-top: 38px; }
    .ambient { display: none; }
    .question-wrap { margin-top: 34px; }
    .answer-button { min-height: 55px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
