:root {
    color-scheme: light;
    --night: #184059;
    --night-soft: #5A3E85;
    --ink: #184059;
    --cream: #F9F6FA;
    --paper: #ffffff;
    --lavender: #8E9CC5;
    --lavender-light: #F5CEE9;
    --gold: #D4AF37;
    --gold-light: #F4D03F;
    --rose: #F5CEE9;
    --muted: #184059;
    --danger: #9a3b4d;
    font-family: "Assistant", sans-serif;
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

body.espejo-page {
    min-height: 100vh;
    margin: 0;
    padding: 22px;
    color: var(--ink);
    background:
        radial-gradient(ellipse at 16% 8%, rgba(245, 206, 233, .30), transparent 28rem),
        radial-gradient(ellipse at 90% 30%, rgba(142, 156, 197, .12), transparent 32rem),
        #F9F6FA;
    font-size: 15px;
    line-height: 1.65;
}

button,
input,
select {
    font: inherit;
}

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

.espejo-shell {
    width: min(100%, 920px);
    margin: 0 auto;
}

.language-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 4px 2px;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 0;
    color: var(--ink);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .11em;
    text-decoration: none;
    text-transform: uppercase;
}

.brand-logo {
    width: 96px;
    height: 96px;
    flex: 0 0 96px;
    object-fit: contain;
}

.language-bar label,
.language-bar select {
    color: var(--muted);
    font-size: 12px;
}

.language-bar select {
    min-width: 122px;
    padding: 9px 30px 9px 12px;
    border: 1px solid #F5CEE9;
    border-radius: 999px;
    background: #ffffff;
}

.espejo-hero {
    max-width: 700px;
    margin: 42px auto 36px;
    text-align: center;
}

.eyebrow {
    margin: 0 0 10px;
    color: #5A3E85;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .22em;
    line-height: 1.6;
    text-transform: uppercase;
}

.espejo-hero h1,
.result-heading h1,
.processing-panel h1,
.failed-panel h1 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(2.4rem, 4vw, 3.4rem);
    font-weight: 700;
    letter-spacing: -.045em;
    line-height: 1.13;
}

.espejo-hero > p,
.result-heading > p:last-child {
    max-width: 610px;
    margin: 18px auto 0;
    color: #184059;
    font-size: 15px;
}

.hero-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    margin: 22px auto 0;
    color: #D4AF37;
    font-size: 16px;
}

.hero-ornament i {
    width: 46px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.espejo-form {
    display: grid;
    gap: 20px;
}

.form-card,
.contact-card {
    border: 1px solid #F5CEE9;
    border-radius: 25px;
    background: #ffffff;
    box-shadow: 0 14px 42px rgba(24, 64, 89, .07);
}

.form-card {
    padding: clamp(22px, 5vw, 38px);
}

.form-card-heading {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 26px;
}

.form-card-heading .eyebrow {
    margin-bottom: 3px;
}

.form-card-heading h2 {
    margin: 0;
    color: var(--ink);
    font-size: 23px;
    font-weight: 400;
    letter-spacing: -.025em;
}

.step-number {
    display: grid;
    width: 45px;
    height: 45px;
    flex: 0 0 45px;
    place-items: center;
    border: 1px solid rgba(212, 175, 55, .36);
    border-radius: 50%;
    color: #5A3E85;
    font-size: 12px;
    letter-spacing: .08em;
}

.role-fieldset {
    min-width: 0;
    margin: 0 0 24px;
    padding: 0;
    border: 0;
}

.role-fieldset legend,
.field > span,
.field > label {
    margin-bottom: 9px;
    color: #184059;
    font-size: 12px;
    font-weight: 700;
}

.role-fieldset legend span,
.field b {
    color: #D4AF37;
    font-weight: 700;
}

.choice-row {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
}

.choice-pill {
    position: relative;
    display: inline-flex;
    min-height: 45px;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border: 1px solid #F5CEE9;
    border-radius: 999px;
    color: #184059;
    cursor: pointer;
    font-size: 13px;
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.choice-pill:hover {
    transform: translateY(-1px);
    border-color: var(--gold);
}

.choice-pill:has(input:checked) {
    border-color: #8E9CC5;
    background: rgba(245, 206, 233, .30);
    color: var(--ink);
}

.choice-pill input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.choice-pill:has(input:focus-visible) {
    outline: 3px solid rgba(142, 156, 197, .48);
    outline-offset: 2px;
}

.field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 20px;
}

.field {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 7px;
}

.field-full {
    grid-column: 1 / -1;
}

.field input,
.field select {
    width: 100%;
    min-height: 48px;
    padding: 11px 14px;
    border: 1px solid #F5CEE9;
    border-radius: 13px;
    outline: none;
    background: #ffffff;
    color: var(--ink);
    font-size: 13px;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.field input:focus,
.field select:focus {
    border-color: #8E9CC5;
    box-shadow: 0 0 0 3px rgba(142, 156, 197, .18);
}

.field input::placeholder {
    color: rgba(24, 64, 89, .55);
}

.birth-date-fields {
    display: grid;
    grid-template-columns: .8fr .8fr 1.2fr;
    gap: 7px;
}

.birth-date-fields select {
    min-width: 0;
    padding: 0 8px;
}

.field small {
    margin-top: -2px;
    color: rgba(24, 64, 89, .62);
    font-size: 10px;
    font-weight: 400;
    line-height: 1.5;
}

.contact-card {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: clamp(22px, 5vw, 34px);
    background: #ffffff;
}

.contact-star {
    padding-top: 16px;
    color: #D4AF37;
    font-size: 25px;
}

.contact-card .field {
    flex: 1;
}

.primary-button,
.secondary-button {
    display: inline-flex;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 22px;
    border: 0;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.primary-button {
    width: 100%;
    color: #ffffff;
    cursor: pointer;
    background: #8E9CC5;
    box-shadow: 0 10px 22px rgba(142, 156, 197, .22);
}

.primary-button:hover,
.secondary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 13px 26px rgba(142, 156, 197, .28);
}

.primary-button:hover {
    background: #7a8ab5;
}

.primary-button:disabled {
    cursor: wait;
    opacity: .76;
}

.button-spinner {
    display: none;
    width: 17px;
    height: 17px;
    border: 2px solid rgba(255, 255, 255, .45);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin .8s linear infinite;
}

.is-loading .button-spinner {
    display: inline-block;
}

.privacy-note {
    margin: -6px 0 0;
    color: rgba(24, 64, 89, .68);
    font-size: 10px;
    text-align: center;
}

.privacy-note span {
    color: #D4AF37;
}

.honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-error {
    margin: 0;
    color: var(--danger);
    font-size: 12px;
    text-align: center;
}

.page-footer {
    padding: 26px 0 16px;
    color: rgba(24, 64, 89, .68);
    font-size: 9px;
    letter-spacing: .16em;
    text-align: center;
}

.page-footer span {
    color: #D4AF37;
}

.result-shell {
    max-width: 900px;
}

.back-link {
    color: #5A3E85;
    font-size: 12px;
    text-decoration-color: rgba(90, 62, 133, .4);
    text-underline-offset: 4px;
}

.result-heading {
    margin: 38px auto 30px;
    text-align: center;
}

.result-heading h1 {
    font-size: clamp(2.4rem, 4vw, 3.4rem);
    font-weight: 700;
}

.result-heading > p:last-child {
    margin-top: 12px;
}

.processing-panel,
.failed-panel {
    max-width: 600px;
    margin: 80px auto;
    padding: 48px 28px;
    border: 1px solid #F5CEE9;
    border-radius: 25px;
    background: #ffffff;
    text-align: center;
    box-shadow: 0 14px 42px rgba(24, 64, 89, .07);
}

.processing-panel h1,
.failed-panel h1 {
    margin-top: 22px;
    font-size: 24px;
    letter-spacing: -.02em;
}

.processing-panel p {
    color: rgba(24, 64, 89, .72);
    font-size: 13px;
}

.large-spinner {
    display: block;
    width: 48px;
    height: 48px;
    margin: 0 auto;
    border: 3px solid rgba(245, 206, 233, .75);
    border-top-color: #8E9CC5;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.failed-icon {
    color: #D4AF37;
    font-size: 38px;
}

.secondary-button {
    border: 1px solid #F5CEE9;
    background: #ffffff;
    color: var(--ink);
    cursor: pointer;
}

.failed-panel .secondary-button {
    margin-top: 16px;
}

.story-card {
    position: relative;
    container-type: inline-size;
    box-sizing: border-box;
    width: min(100%, 540px);
    aspect-ratio: 9 / 16;
    margin: 0 auto;
    overflow: hidden;
    border: 0;
    border-radius: 25px;
    background: linear-gradient(180deg, #ffffff 0%, #F9F6FA 60%, rgba(245, 206, 233, .34) 100%);
    box-shadow: 0 26px 70px rgba(24, 64, 89, .12);
    color: #184059;
}

.story-card::after {
    content: "";
    position: absolute;
    box-sizing: border-box;
    top: 3.52cqw;
    left: 3.52cqw;
    width: calc(100% - 7.04cqw);
    height: calc(100% - 7.04cqw);
    z-index: 2;
    border: .185cqw solid rgba(216, 185, 121, .65);
    border-radius: 2.59cqw;
    pointer-events: none;
}

.story-card--export {
    box-sizing: border-box !important;
    width: 1080px !important;
    max-width: none !important;
    height: 1920px !important;
    aspect-ratio: auto !important;
    border-radius: 50px;
    box-shadow: none !important;
    filter: none !important;
}

.story-card--export::after {
    box-sizing: border-box;
    top: 38px;
    left: 38px;
    width: calc(100% - 76px);
    height: calc(100% - 76px);
    border: 2px solid rgba(216, 185, 121, .65);
    border-radius: 28px;
}

.story-card--export .story-illustration-wrap {
    max-width: 620px;
}

.story-card--export .story-illustration-wrap img {
    box-shadow: none !important;
    filter: none !important;
}

.story-stars {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .64;
    background-image:
        radial-gradient(1.3px 1.3px at 4% 4%, #F4D03F 99%, transparent),
        radial-gradient(1px 1px at 95% 7%, #F4D03F 99%, transparent),
        radial-gradient(1px 1px at 3% 14%, #D4AF37 99%, transparent),
        radial-gradient(1.2px 1.2px at 97% 19%, #F4D03F 99%, transparent),
        radial-gradient(1px 1px at 5% 27%, #D4AF37 99%, transparent),
        radial-gradient(1.4px 1.4px at 94% 32%, #F4D03F 99%, transparent),
        radial-gradient(1px 1px at 2% 41%, #D4AF37 99%, transparent),
        radial-gradient(1.2px 1.2px at 98% 48%, #F4D03F 99%, transparent),
        radial-gradient(1px 1px at 4% 58%, #D4AF37 99%, transparent),
        radial-gradient(1.3px 1.3px at 96% 63%, #F4D03F 99%, transparent),
        radial-gradient(1px 1px at 3% 73%, #D4AF37 99%, transparent),
        radial-gradient(1.2px 1.2px at 97% 79%, #F4D03F 99%, transparent),
        radial-gradient(1px 1px at 5% 89%, #D4AF37 99%, transparent),
        radial-gradient(1.4px 1.4px at 94% 95%, #F4D03F 99%, transparent),
        radial-gradient(1px 1px at 16% 11%, #F4D03F 99%, transparent),
        radial-gradient(1px 1px at 84% 23%, #D4AF37 99%, transparent),
        radial-gradient(1px 1px at 13% 47%, #D4AF37 99%, transparent),
        radial-gradient(1px 1px at 88% 55%, #F4D03F 99%, transparent),
        radial-gradient(1px 1px at 17% 82%, #D4AF37 99%, transparent),
        radial-gradient(1px 1px at 81% 91%, #D4AF37 99%, transparent),
        radial-gradient(1.3px 1.3px at 7% 34%, #F4D03F 99%, transparent),
        radial-gradient(1px 1px at 93% 38%, #D4AF37 99%, transparent),
        radial-gradient(1.1px 1.1px at 8% 67%, #F4D03F 99%, transparent),
        radial-gradient(1.2px 1.2px at 92% 71%, #D4AF37 99%, transparent),
        radial-gradient(1px 1px at 10% 96%, #F4D03F 99%, transparent),
        radial-gradient(1px 1px at 90% 14%, #D4AF37 99%, transparent);
}

.story-frame {
    position: relative;
    z-index: 1;
    display: flex;
    height: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 5.2% 6.5% 4.5%;
    text-align: center;
}

.story-eyebrow {
    margin: 0;
    color: #5A3E85;
    font-size: clamp(10px, 2.4cqw, 13px);
    font-weight: 700;
    letter-spacing: .22em;
    line-height: 1.5;
}

.story-illustration-wrap {
    width: 60%;
    max-width: 310px;
    aspect-ratio: 1;
    overflow: visible;
    background: transparent;
}

.story-illustration-wrap img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: normal;
    filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .16));
}

.story-names {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 2.4cqw;
    color: #184059;
    font-size: clamp(13px, 3.9cqw, 21px);
    font-weight: 700;
    letter-spacing: .04em;
    white-space: nowrap;
}

.story-names p {
    flex: 0 1 auto;
    max-width: 44%;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-transform: none;
}

.story-names span {
    color: var(--gold-light);
    flex: 0 0 auto;
    font-size: 2.1cqw;
}

.story-maps {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr 1fr;
    gap: 2cqw;
    padding: 2.2cqw 0;
    border-top: 1px solid rgba(212, 175, 55, .62);
    border-bottom: 1px solid rgba(212, 175, 55, .62);
}

.story-map {
    min-width: 0;
    padding: 0 5px;
}

.story-map + .story-map {
    border-left: 1px solid rgba(212, 175, 55, .4);
}

.story-map > p {
    min-height: 2.4cqw;
    margin: 0 0 1cqw;
    color: #5A3E85;
    font-size: 2.4cqw;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.story-sign-row {
    display: flex;
    justify-content: space-between;
    gap: 1.5cqw;
    padding: .75cqw 0;
    color: rgba(24, 64, 89, .78);
    font-size: 2.4cqw;
    line-height: 1.35;
    text-align: left;
}

.story-sign-row b {
    color: #184059;
    font-size: inherit;
    text-align: right;
}

.story-message {
    width: 88%;
    margin: 0 auto;
}

.story-message h2 {
    margin: 0 0 1.1cqw;
    color: #5A3E85;
    font-size: 2.22cqw;
    font-weight: 700;
    letter-spacing: .16em;
    line-height: 1.5;
}

.story-message p {
    max-width: 100%;
    margin: 0 auto;
    color: #184059;
    font-size: 2.6cqw;
    line-height: 1.55;
}

.story-footer {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    color: rgba(24, 64, 89, .72);
    font-size: 2.05cqw;
    letter-spacing: .1em;
}

.story-note {
    margin: 12px auto;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

.story-download {
    display: flex;
    justify-content: center;
    width: fit-content;
    max-width: 540px;
    margin: 24px auto;
    text-align: center;
}

.story-download.primary-button {
    width: fit-content;
}

.admin-preview-button {
    display: flex;
    width: fit-content;
    margin: 18px auto;
    padding: 9px 15px;
    border: 1px solid #D4AF37;
    border-radius: 999px;
    background: #ffffff;
    color: var(--ink);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.reading-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 26px auto 0;
}

.pdf-download-button {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.chapters-section {
    margin: 65px auto 20px;
}

.section-intro {
    max-width: 620px;
    margin: 0 auto 26px;
    text-align: center;
}

.section-intro h2 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(26px, 4vw, 36px);
    font-weight: 400;
    letter-spacing: -.035em;
    line-height: 1.2;
}

.section-intro > p:last-child {
    color: var(--muted);
    font-size: 13px;
}

.chapter-card {
    position: relative;
    margin: 16px 0;
    padding: 28px clamp(22px, 5vw, 42px);
    border: 1px solid #F5CEE9;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(24, 64, 89, .06);
}

.chapter-number {
    display: inline-block;
    margin-bottom: 8px;
    color: #5A3E85;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .17em;
}

.chapter-card h3 {
    margin: 0 0 15px;
    color: var(--ink);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
}

.chapter-card > p {
    margin: 12px 0 0;
    color: #184059;
    font-size: 13px;
    line-height: 1.8;
}

.preview-chapter {
    border-color: #D4AF37;
}

.free-sample {
    display: -webkit-box;
    overflow: hidden;
    color: #184059 !important;
    font-weight: 500;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.blurred-placeholder {
    display: grid;
    gap: 10px;
    margin-top: 16px;
    filter: blur(5px);
    user-select: none;
}

.blurred-placeholder i {
    display: block;
    width: 100%;
    height: 11px;
    border-radius: 12px;
    background: linear-gradient(90deg, #F5CEE9, #F9F6FA);
}

.blurred-placeholder i:nth-child(2) {
    width: 91%;
}

.blurred-placeholder i:nth-child(3) {
    width: 73%;
}

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

.unlock-card {
    position: relative;
    max-width: 670px;
    margin: 28px auto;
    padding: clamp(28px, 6vw, 46px);
    border: 1px solid #D4AF37;
    border-radius: 25px;
    background:
        radial-gradient(circle at 90% 5%, rgba(245, 206, 233, .45), transparent 11rem),
        #ffffff;
    box-shadow: 0 18px 46px rgba(24, 64, 89, .1);
    text-align: center;
}

.unlock-star {
    display: block;
    margin-bottom: 12px;
    color: #D4AF37;
    font-size: 23px;
}

.unlock-card h2 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 400;
    letter-spacing: -.03em;
    line-height: 1.25;
}

.unlock-card > p:not(.eyebrow):not(.form-error) {
    margin: 12px 0;
    color: var(--muted);
    font-size: 13px;
}

.price {
    display: block;
    margin: 15px 0 20px;
    color: #5A3E85;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -.04em;
}

.unlock-card .primary-button {
    max-width: 420px;
    margin: 0 auto;
}

.paid-message {
    color: #184059 !important;
}

.paid-chapters .chapter-card {
    padding-top: 34px;
    padding-bottom: 34px;
}

.editorial-philosophy {
    max-width: 680px;
    margin: 16px auto 0 !important;
    padding: 14px 18px;
    border: 1px solid #F5CEE9;
    border-radius: 16px;
    background: #ffffff;
    color: #184059 !important;
    font-size: 14px !important;
    line-height: 1.7;
}

.chapter-question {
    margin-top: 22px;
    padding: 18px 20px;
    border-left: 3px solid var(--gold);
    border-radius: 0 14px 14px 0;
    background: rgba(245, 206, 233, .24);
}

.chapter-question .eyebrow {
    margin-bottom: 5px;
}

.chapter-question p {
    margin: 0;
    color: var(--ink);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.6;
}

.chapter-practice {
    margin-top: 20px;
    padding: 20px;
    border: 1px solid #F5CEE9;
    border-radius: 16px;
    background: linear-gradient(140deg, rgba(245, 206, 233, .25), #ffffff);
}

.chapter-practice h4 {
    margin: 0 0 12px;
    color: var(--ink);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
}

.chapter-practice ul {
    display: grid;
    gap: 11px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.chapter-practice li {
    display: grid;
    gap: 2px;
    padding-left: 15px;
    position: relative;
    color: #184059;
    font-size: 13px;
    line-height: 1.65;
}

.chapter-practice li::before {
    position: absolute;
    top: .15em;
    left: 0;
    color: var(--gold);
    content: "✦";
    font-size: 10px;
}

.chapter-practice li strong {
    color: var(--ink);
    font-weight: 700;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 620px) {
    body.espejo-page {
        padding: 12px;
    }

    .espejo-hero {
        margin: 32px auto 25px;
    }

    .espejo-hero > p,
    .result-heading > p:last-child {
        font-size: 13px;
    }

    .field-grid {
        gap: 16px 12px;
    }

    .birth-date-field,
    .time-field {
        grid-column: 1 / -1;
    }

    .form-card-heading h2 {
        font-size: 20px;
    }

    .choice-pill {
        flex: 1;
        padding-inline: 12px;
        font-size: 12px;
    }

    .contact-card {
        gap: 12px;
    }

    .story-card {
        border-radius: 17px;
    }

    .story-frame {
        padding-inline: 6%;
    }

    .story-map {
        padding-inline: 3px;
    }

    .chapter-card {
        border-radius: 18px;
    }
}

@media (max-width: 380px) {
    .language-bar {
        align-items: flex-start;
    }

    .brand-mark {
        font-size: 11px;
    }

    .language-bar select {
        min-width: 106px;
        padding-inline: 9px;
    }

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

    .field,
    .field-full {
        grid-column: 1;
    }
}

/* Readability scale shared by the Espejo form and result screens. */
body.espejo-page {
    font-size: 18px;
    line-height: 1.7;
}

.espejo-page .eyebrow {
    font-size: 13px;
    letter-spacing: .14em;
}

.espejo-page .language-bar select,
.espejo-page .back-link,
.espejo-page .role-fieldset legend,
.espejo-page .field > span,
.espejo-page .field > label,
.espejo-page .field input,
.espejo-page .field select,
.espejo-page .choice-pill,
.espejo-page .primary-button,
.espejo-page .secondary-button,
.espejo-page .field small,
.espejo-page .privacy-note,
.espejo-page .form-error,
.espejo-page .processing-panel p,
.espejo-page .failed-panel p {
    font-size: 16px;
}

.espejo-page .language-bar select,
.espejo-page .field input,
.espejo-page .field select {
    min-height: 52px;
}

.espejo-page .choice-pill {
    min-height: 50px;
}

.espejo-page .form-card-heading h2 {
    font-size: 1.5rem;
}

.espejo-page .espejo-hero > p,
.espejo-page .result-heading > p,
.espejo-page .section-intro > p:last-child,
.espejo-page .unlock-card > p:not(.eyebrow):not(.form-error),
.espejo-page .paid-message,
.espejo-page .editorial-philosophy,
.espejo-page .chapter-card > p,
.espejo-page .chapter-question p,
.espejo-page .chapter-practice li {
    font-size: 17px;
    line-height: 1.7;
}

.espejo-page .editorial-philosophy {
    font-size: 17px !important;
}

.espejo-page .section-intro h2,
.espejo-page .unlock-card h2,
.espejo-page .chapter-card h3 {
    font-size: clamp(1.5rem, 3vw, 1.85rem);
}

.espejo-page .chapter-practice h4 {
    font-size: 17px;
}

.espejo-page .page-footer {
    font-size: 12px;
}

@media print {
    body.espejo-page {
        padding: 0;
        background: white;
    }

    .language-bar,
    .result-heading,
    #story-card,
    #download-story,
    #download-error,
    .locked-chapters,
    .page-footer,
    .admin-preview-button,
    .pdf-download-button {
        display: none !important;
    }

    .espejo-shell {
        width: 100%;
        max-width: none;
    }

    .paid-chapters {
        margin: 0;
    }

    .chapter-card {
        break-inside: avoid;
        box-shadow: none;
    }
}

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