/* =========================================================
   PROMPTELIER — STYLE SYSTEM
   Synced with the new index.html
========================================================= */

:root {
    --bg: #07110d;
    --bg-2: #0a1712;
    --bg-3: #0d1d16;
    --surface: rgba(255,255,255,.045);
    --surface-strong: rgba(255,255,255,.065);
    --surface-hover: rgba(52,211,153,.055);

    --text: #f2f7f4;
    --text-soft: #aebdb5;
    --text-muted: #708078;

    --border: rgba(255,255,255,.09);
    --border-soft: rgba(255,255,255,.055);
    --border-hover: rgba(52,211,153,.28);
    --border-active: rgba(52,211,153,.55);

    --accent: #34d399;
    --accent-strong: #10b981;
    --accent-light: #6ee7b7;
    --accent-soft: rgba(52,211,153,.09);

    --danger: #fb7185;
    --success: #6ee7b7;

    --shadow-sm: 0 10px 30px rgba(0,0,0,.18);
    --shadow: 0 25px 70px rgba(0,0,0,.28);
    --shadow-lg: 0 40px 100px rgba(0,0,0,.38);

    --radius-sm: 12px;
    --radius: 18px;
    --radius-lg: 28px;
    --container: 1180px;

    --transition: 240ms cubic-bezier(.22,1,.36,1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--text);
    background:
        radial-gradient(circle at 8% 3%, rgba(52,211,153,.09), transparent 28%),
        radial-gradient(circle at 92% 18%, rgba(16,185,129,.045), transparent 25%),
        var(--bg);
    font-family: "DM Sans", system-ui, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: .28;
    background-image: radial-gradient(rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: linear-gradient(to bottom, black, transparent 80%);
}

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

button {
    border: 0;
    cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

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

svg {
    display: block;
}

[hidden] {
    display: none !important;
}

.app {
    min-height: 100vh;
}

.container {
    width: min(calc(100% - 48px), var(--container));
    margin-inline: auto;
}

/* =========================================================
   HEADER
========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-soft);
    background: rgba(7,17,13,.78);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.header-inner {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.brand-mark {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(52,211,153,.2);
    border-radius: 13px;
    color: var(--accent-light);
    background: linear-gradient(145deg, rgba(52,211,153,.14), rgba(52,211,153,.035));
    box-shadow: 0 0 28px rgba(52,211,153,.06);
}

.brand-mark svg {
    width: 20px;
    height: 20px;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-copy strong {
    color: #f5faf7;
    font-size: 17px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -.02em;
}

.brand-copy small {
    color: var(--text-muted);
    font-size: 9px;
    line-height: 1;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    margin-left: auto;
}

.language-wrapper {
    position: relative;
}

.header-button,
.theme-button {
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 13px;
    color: var(--text-soft);
    background: rgba(255,255,255,.035);
    transition: var(--transition);
}

.header-button {
    min-width: 106px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 13px;
    font-size: 12px;
    font-weight: 600;
}

.theme-button {
    width: 44px;
    display: grid;
    place-items: center;
}

.header-button:hover,
.theme-button:hover {
    color: var(--accent-light);
    border-color: var(--border-hover);
    background: rgba(52,211,153,.07);
    transform: translateY(-1px);
}

.header-button:active,
.theme-button:active {
    transform: scale(.97);
}

.header-button svg {
    width: 16px;
    height: 16px;
}

.header-button .small-icon {
    width: 13px;
    height: 13px;
    transition: transform var(--transition);
}

.header-button[aria-expanded="true"] .small-icon {
    transform: rotate(180deg);
}

.theme-button svg {
    width: 18px;
    height: 18px;
}

/* =========================================================
   LANGUAGE MENU
========================================================= */

.language-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 1100;
    width: 220px;
    padding: 7px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(9,27,21,.97);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    transform-origin: top right;
    animation: menuIn 180ms ease both;
}

.language-menu button {
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-radius: 10px;
    color: var(--text-soft);
    background: transparent;
    text-align: left;
    font-size: 12px;
    font-weight: 500;
    transition: var(--transition);
}

.language-menu button:hover,
.language-menu button.active {
    color: var(--accent-light);
    background: var(--accent-soft);
}

.language-menu button small {
    color: var(--text-muted);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .08em;
}

@keyframes menuIn {
    from {
        opacity: 0;
        transform: translateY(-7px) scale(.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* =========================================================
   HERO
========================================================= */

.hero {
    position: relative;
    min-height: 650px;
    display: flex;
    align-items: center;
    padding: 100px 0 105px;
    text-align: center;
    isolation: isolate;
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
    border-radius: 50%;
    filter: blur(85px);
    opacity: .45;
    animation: floatGlow 10s ease-in-out infinite;
}

.hero::before {
    width: 380px;
    height: 380px;
    left: -180px;
    top: 50px;
    background: rgba(16,185,129,.14);
}

.hero::after {
    width: 320px;
    height: 320px;
    right: -150px;
    bottom: 30px;
    background: rgba(52,211,153,.09);
    animation-delay: -4s;
}

.hero-inner {
    position: relative;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--accent-light);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    animation: fadeUp .7s ease both;
}

.eyebrow-line {
    width: 28px;
    height: 1px;
    background: rgba(110,231,183,.45);
}

.hero h1 {
    max-width: 900px;
    margin: 25px auto 0;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(44px, 6vw, 76px);
    line-height: 1.03;
    letter-spacing: -.045em;
    font-weight: 600;
    animation: fadeUp .8s .08s ease both;
}

.gradient-text {
    display: inline;
    color: var(--accent-light);
}

.hero-description {
    max-width: 650px;
    margin: 24px auto 0;
    color: var(--text-soft);
    font-size: 15px;
    line-height: 1.8;
    animation: fadeUp .8s .16s ease both;
}

.hero-features {
    margin-top: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px 28px;
    color: var(--text-muted);
    font-size: 11px;
}

.hero-features div {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.hero-features svg {
    width: 14px;
    height: 14px;
    color: var(--accent);
}

/* =========================================================
   GENERATOR
========================================================= */

.generator-section {
    padding: 35px 0 100px;
}

.generator-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: rgba(12,27,20,.72);
    box-shadow: var(--shadow-lg);
}

.form-step {
    padding: 38px 42px;
    border-bottom: 1px solid var(--border-soft);
}

.step-heading {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.step-number {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(52,211,153,.16);
    border-radius: 12px;
    color: var(--accent-light);
    background: rgba(52,211,153,.06);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .05em;
}

.step-label {
    display: block;
    margin-bottom: 4px;
    color: var(--accent);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.step-heading h2 {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 25px;
    line-height: 1.15;
    font-weight: 600;
    letter-spacing: -.02em;
}

.step-heading p {
    margin-top: 5px;
    color: var(--text-muted);
    font-size: 12px;
}

/* option cards */

.option-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 11px;
}

.option-card,
.theme-card,
.style-card {
    position: relative;
    display: block;
}

.option-card input,
.theme-card input,
.style-card input,
.check-tag input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.option-content {
    min-height: 122px;
    padding: 17px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 12px;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: rgba(255,255,255,.022);
    transition: var(--transition);
    cursor: pointer;
}

.option-card:hover .option-content,
.theme-card:hover .theme-card-content,
.style-card:hover .style-card-content {
    border-color: var(--border-hover);
    background: var(--surface-hover);
    transform: translateY(-2px);
}

.option-card input:checked + .option-content:hover,
.theme-card input:checked + .theme-card-content:hover,
.style-card input:checked + .style-card-content:hover {
    border-color: var(--accent);
    background:
        linear-gradient(
            135deg,
            rgba(52,211,153,.24),
            rgba(52,211,153,.10)
        );
}

.option-card input:checked + .option-content,
.theme-card input:checked + .theme-card-content,
.style-card input:checked + .style-card-content {
    border: 2px solid var(--accent);
    background:
        linear-gradient(
            135deg,
            rgba(52,211,153,.20),
            rgba(52,211,153,.08)
        );
    box-shadow:
        0 0 0 3px rgba(52,211,153,.10),
        0 12px 30px rgba(52,211,153,.10),
        inset 0 0 24px rgba(52,211,153,.05);
    transform: translateY(-2px);
}

.option-card input:checked + .option-content::after,
.theme-card input:checked + .theme-card-content::after,
.style-card input:checked + .style-card-content::after {
    content: "✓";
    position: absolute;
    top: 12px;
    right: 12px;
    width: 25px;
    height: 25px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    background: var(--accent);
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 5px 14px rgba(52,211,153,.28);
}

.option-card input:checked + .option-content .option-icon,
.theme-card input:checked + .theme-card-content .theme-icon,
.style-card input:checked + .style-card-content .style-icon {
    border-color: rgba(52,211,153,.45);
    color: #ffffff;
    background: var(--accent);
    box-shadow: 0 6px 16px rgba(52,211,153,.20);
}

.option-card input:checked + .option-content .option-copy strong,
.theme-card input:checked + .theme-card-content strong,
.style-card input:checked + .style-card-content strong {
    color: var(--accent-light);
}

.option-card input:focus-visible + .option-content,
.theme-card input:focus-visible + .theme-card-content,
.style-card input:focus-visible + .style-card-content {
    outline: 3px solid rgba(52,211,153,.22);
    outline-offset: 3px;
}

.option-icon,
.theme-icon,
.style-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(52,211,153,.13);
    border-radius: 11px;
    color: var(--accent-light);
    background: rgba(52,211,153,.06);
}

.option-icon svg,
.theme-icon svg,
.style-icon svg {
    width: 18px;
    height: 18px;
}

.option-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.option-copy strong {
    font-size: 13px;
    font-weight: 700;
}

.option-copy span {
    color: var(--text-muted);
    font-size: 10px;
}

/* check tags */

.check-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 9px;
}

.check-tag {
    position: relative;
    cursor: pointer;
}

.check-tag span {
    min-height: 43px;
    padding: 0 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-soft);
    background: rgba(255,255,255,.022);
    font-size: 11px;
    font-weight: 600;
    transition: var(--transition);
}

.check-tag svg {
    width: 15px;
    height: 15px;
    color: var(--accent);
}

.check-tag:hover span {
    border-color: var(--border-hover);
    background: var(--surface-hover);
}

.check-tag input:checked + span {
    position: relative;
    border: 2px solid var(--accent);
    color: var(--accent-light);
    background:
        linear-gradient(
            135deg,
            rgba(52,211,153,.20),
            rgba(52,211,153,.08)
        );
    box-shadow:
        0 0 0 3px rgba(52,211,153,.08),
        0 8px 20px rgba(52,211,153,.08);
}

.check-tag input:checked + span::after {
    content: "✓";
    margin-left: auto;
    width: 21px;
    height: 21px;
    flex: 0 0 21px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    background: var(--accent);
    font-size: 11px;
    font-weight: 900;
}

.check-tag input:focus-visible + span {
    outline: 3px solid rgba(52,211,153,.22);
    outline-offset: 3px;
}

/* theme/style grids */

.theme-grid,
.style-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 11px;
}

.theme-card-content,
.style-card-content {
    min-height: 140px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: rgba(255,255,255,.022);
    cursor: pointer;
    transition: var(--transition);
}

.theme-card-content strong,
.style-card-content strong {
    font-size: 13px;
}

.theme-card-content > span:last-child,
.style-card-content > span:last-child {
    color: var(--text-muted);
    font-size: 10px;
}

/* settings */

.settings-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 16px;
}

.setting-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.setting-field label,
.custom-field label {
    color: var(--text-soft);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .05em;
}

.setting-field select,
.custom-field input,
.custom-field textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 12px;
    outline: none;
    color: var(--text);
    background: rgba(255,255,255,.025);
    transition: var(--transition);
}

.setting-field select {
    height: 46px;
    padding: 0 12px;
}

.custom-field {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.custom-field input {
    height: 46px;
    padding: 0 13px;
}

.custom-field textarea {
    min-height: 105px;
    padding: 13px;
    resize: vertical;
}

.setting-field select:focus,
.custom-field input:focus,
.custom-field textarea:focus {
    border-color: var(--border-active);
    background: rgba(52,211,153,.035);
}

/* generate */

.generate-area {
    padding: 28px 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    background: rgba(52,211,153,.025);
}

.generate-copy {
    display: flex;
    align-items: center;
    gap: 13px;
}

.generate-icon {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(52,211,153,.16);
    border-radius: 13px;
    color: var(--accent-light);
    background: rgba(52,211,153,.07);
}

.generate-icon svg {
    width: 19px;
}

.generate-copy div {
    display: flex;
    flex-direction: column;
}

.generate-copy strong {
    font-size: 13px;
}

.generate-copy span {
    color: var(--text-muted);
    font-size: 10px;
}

.generate-button,
.secondary-button {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border-radius: 13px;
    transition: var(--transition);
}

.generate-button {
    min-width: 190px;
    padding: 0 20px;
    color: #042018;
    background: linear-gradient(135deg, #6ee7b7, #10b981);
    box-shadow: 0 14px 35px rgba(16,185,129,.16);
    font-size: 12px;
    font-weight: 800;
}

.generate-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 45px rgba(16,185,129,.23);
}

.generate-button svg {
    width: 16px;
}

/* =========================================================
   RESULT
========================================================= */

.result-section {
    padding: 90px 0;
}

.result-container {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.result-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.result-header h2,
.result-section-heading h3,
.result-card-heading h3 {
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 600;
    letter-spacing: -.02em;
}

.result-header h2 {
    margin-top: 4px;
    font-size: 34px;
}

.result-header p,
.result-section-heading p {
    margin-top: 6px;
    color: var(--text-muted);
    font-size: 11px;
}

.result-actions {
    display: flex;
    gap: 8px;
}

.secondary-button {
    padding: 0 15px;
    border: 1px solid var(--border);
    color: var(--text-soft);
    background: rgba(255,255,255,.025);
    font-size: 10px;
    font-weight: 700;
}

.secondary-button:hover {
    border-color: var(--border-hover);
    color: var(--accent-light);
    background: var(--accent-soft);
}

.secondary-button svg {
    width: 15px;
}

.style-lock-card,
.negative-prompt-card {
    padding: 25px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(255,255,255,.025);
}

.result-card-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 14px;
}

.result-card-heading span,
.result-section-heading > span {
    color: var(--accent);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .13em;
}

.result-card-heading h3 {
    margin-top: 2px;
    font-size: 22px;
}

.icon-copy-button {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-muted);
    background: transparent;
    transition: var(--transition);
}

.icon-copy-button:hover {
    color: var(--accent-light);
    border-color: var(--border-hover);
    background: var(--accent-soft);
}

.icon-copy-button svg {
    width: 15px;
}

.prompt-box {
    max-height: 420px;
    overflow: auto;
    padding: 17px;
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    color: var(--text-soft);
    background: rgba(0,0,0,.13);
    white-space: pre-wrap;
    font-family: "DM Sans", system-ui, sans-serif;
    font-size: 11px;
    line-height: 1.75;
}

.pages-result {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.result-section-heading h3 {
    margin-top: 3px;
    font-size: 28px;
}

.page-prompts-list {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.page-prompt-card {
    padding: 21px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(255,255,255,.022);
}

.page-prompt-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 13px;
}

.page-prompt-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-number {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(52,211,153,.15);
    border-radius: 11px;
    color: var(--accent-light);
    background: var(--accent-soft);
    font-size: 10px;
    font-weight: 800;
}

.page-prompt-title div {
    display: flex;
    flex-direction: column;
}

.page-prompt-title strong {
    font-size: 13px;
}

.page-prompt-title span {
    color: var(--text-muted);
    font-size: 9px;
}

.start-over-area {
    display: flex;
    justify-content: center;
    padding-top: 5px;
}

/* =========================================================
   HOW IT WORKS
========================================================= */

.how-section {
    padding: 85px 0 100px;
}

.section-heading {
    max-width: 650px;
    margin: 0 auto 32px;
    text-align: center;
}

.section-heading > span {
    color: var(--accent);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .14em;
}

.section-heading h2 {
    margin-top: 5px;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 32px;
    font-weight: 600;
}

.section-heading p {
    margin-top: 6px;
    color: var(--text-muted);
    font-size: 12px;
}

.how-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 13px;
}

.how-card {
    min-height: 220px;
    position: relative;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(255,255,255,.022);
    transition: var(--transition);
}

.how-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-hover);
}

.how-number {
    position: absolute;
    top: 18px;
    right: 20px;
    color: rgba(110,231,183,.35);
    font-size: 10px;
    font-weight: 800;
}

.how-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(52,211,153,.13);
    border-radius: 12px;
    color: var(--accent-light);
    background: var(--accent-soft);
}

.how-icon svg {
    width: 18px;
}

.how-card h3 {
    margin-top: 25px;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 21px;
}

.how-card p {
    margin-top: 7px;
    color: var(--text-muted);
    font-size: 11px;
    line-height: 1.7;
}

/* =========================================================
   FOOTER
========================================================= */

.site-footer {
    border-top: 1px solid var(--border-soft);
}

.footer-inner {
    min-height: 85px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: var(--text-muted);
    font-size: 10px;
}

.footer-inner > div:first-child {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.footer-inner strong {
    color: var(--text-soft);
    font-size: 12px;
}

.toast {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 3000;
    min-width: 190px;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 9px;
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    background: rgba(9,27,21,.96);
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
    font-size: 11px;
}

.toast-icon {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatGlow {
    0%, 100% {
        transform: translate3d(0,0,0) scale(1);
    }
    50% {
        transform: translate3d(20px,-15px,0) scale(1.06);
    }
}

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

/* =========================================================
   STRONG SELECTION STATE
   Clear dark-green selected cards / choices
========================================================= */

:root {
    --selection-bg: #047857;
    --selection-bg-deep: #065f46;
    --selection-border: #10b981;
    --selection-text: #ffffff;
    --selection-muted: #d1fae5;
}

/* Main selectable cards */
.option-card input:checked + .option-content,
.theme-card input:checked + .theme-card-content,
.style-card input:checked + .style-card-content {
    border: 2px solid var(--selection-border);
    background: linear-gradient(135deg, var(--selection-bg), var(--selection-bg-deep));
    color: var(--selection-text);
    box-shadow:
        0 0 0 3px rgba(16,185,129,.14),
        0 14px 32px rgba(6,95,70,.24),
        inset 0 1px 0 rgba(255,255,255,.10);
    transform: translateY(-2px);
}

.option-card input:checked + .option-content:hover,
.theme-card input:checked + .theme-card-content:hover,
.style-card input:checked + .style-card-content:hover {
    border-color: #34d399;
    background: linear-gradient(135deg, #059669, #047857);
    box-shadow:
        0 0 0 3px rgba(16,185,129,.18),
        0 16px 36px rgba(6,95,70,.28),
        inset 0 1px 0 rgba(255,255,255,.12);
}

/* Selected card text */
.option-card input:checked + .option-content .option-copy strong,
.theme-card input:checked + .theme-card-content strong,
.style-card input:checked + .style-card-content strong {
    color: #ffffff;
}

.option-card input:checked + .option-content .option-copy span,
.theme-card input:checked + .theme-card-content > span:last-child,
.style-card input:checked + .style-card-content > span:last-child {
    color: var(--selection-muted);
}

/* Selected icons */
.option-card input:checked + .option-content .option-icon,
.theme-card input:checked + .theme-card-content .theme-icon,
.style-card input:checked + .style-card-content .style-icon {
    border-color: rgba(255,255,255,.28);
    color: #ffffff;
    background: rgba(255,255,255,.14);
    box-shadow:
        0 6px 16px rgba(0,0,0,.12),
        inset 0 1px 0 rgba(255,255,255,.10);
}

/* Stronger selected check mark */
.option-card input:checked + .option-content::after,
.theme-card input:checked + .theme-card-content::after,
.style-card input:checked + .style-card-content::after {
    background: #ffffff;
    color: var(--selection-bg-deep);
    border: 2px solid rgba(255,255,255,.75);
    box-shadow: 0 6px 16px rgba(0,0,0,.20);
}

/* Multi-select tags */
.check-tag input:checked + span {
    border: 2px solid var(--selection-border);
    color: #ffffff;
    background: linear-gradient(135deg, var(--selection-bg), var(--selection-bg-deep));
    box-shadow:
        0 0 0 3px rgba(16,185,129,.12),
        0 8px 20px rgba(6,95,70,.18),
        inset 0 1px 0 rgba(255,255,255,.08);
}

.check-tag input:checked + span svg {
    color: #ffffff;
}

.check-tag input:checked + span::after {
    background: #ffffff;
    color: var(--selection-bg-deep);
    box-shadow: 0 4px 10px rgba(0,0,0,.18);
}


/* =========================================================
   ACTIVITY + LEARNING GOAL SELECTION
   Strong selected state — same visual language as cards
========================================================= */

/* Works for both checkbox groups:
   STEP 02 — Worksheet Activities
   STEP 03 — Learning Goals
*/
.check-grid .check-tag > span {
    position: relative;
    overflow: hidden;
}

/* Selected = unmistakable dark green */
.check-grid .check-tag input:checked + span,
.check-grid .check-tag.is-selected > span,
.check-grid .check-tag:has(input:checked) > span {
    border: 2px solid #10b981 !important;
    color: #ffffff !important;
    background: linear-gradient(
        135deg,
        #047857 0%,
        #065f46 100%
    ) !important;
    box-shadow:
        0 0 0 3px rgba(16,185,129,.14),
        0 10px 24px rgba(6,95,70,.22),
        inset 0 1px 0 rgba(255,255,255,.10) !important;
    transform: translateY(-1px);
}

/* Selected icon */
.check-grid .check-tag input:checked + span svg,
.check-grid .check-tag.is-selected > span svg,
.check-grid .check-tag:has(input:checked) > span svg {
    color: #ffffff !important;
}

/* Selected check badge */
.check-grid .check-tag input:checked + span::after,
.check-grid .check-tag.is-selected > span::after,
.check-grid .check-tag:has(input:checked) > span::after {
    content: "✓";
    margin-left: auto;
    width: 22px;
    height: 22px;
    min-width: 22px;
    flex: 0 0 22px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #ffffff !important;
    color: #065f46 !important;
    font-size: 11px;
    font-weight: 900;
    box-shadow: 0 4px 12px rgba(0,0,0,.20);
}

/* Selected state stays dark green on hover */
.check-grid .check-tag input:checked + span:hover,
.check-grid .check-tag.is-selected > span:hover,
.check-grid .check-tag:has(input:checked) > span:hover {
    border-color: #34d399 !important;
    background: linear-gradient(
        135deg,
        #059669 0%,
        #047857 100%
    ) !important;
    color: #ffffff !important;
}

/* Make the two sections visually identical */
section[data-step="02"] .check-tag input:checked + span,
section[data-step="03"] .check-tag input:checked + span {
    background: linear-gradient(
        135deg,
        #047857 0%,
        #065f46 100%
    ) !important;
    color: #ffffff !important;
    border-color: #10b981 !important;
}


/* =========================================================
   STEP 07 + STEP 08 PREMIUM REDESIGN
   Make settings and character selection feel less generic
========================================================= */

/* --- Workbook settings section --- */
.form-step[data-step="07"] {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 90% 8%, rgba(16,185,129,.07), transparent 28%),
        radial-gradient(circle at 8% 90%, rgba(6,95,70,.045), transparent 30%);
}

.form-step[data-step="07"] .settings-grid {
    gap: 18px;
    margin-top: 4px;
}

.form-step[data-step="07"] .setting-field {
    position: relative;
    min-height: 112px;
    padding: 16px;
    border: 1px solid rgba(16,185,129,.12);
    border-radius: 18px;
    background:
        linear-gradient(145deg, rgba(255,255,255,.92), rgba(245,252,249,.94));
    box-shadow:
        0 8px 24px rgba(15,61,49,.045),
        inset 0 1px 0 rgba(255,255,255,.8);
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.form-step[data-step="07"] .setting-field::before {
    content: "";
    position: absolute;
    top: 0;
    left: 16px;
    right: 16px;
    height: 3px;
    border-radius: 0 0 8px 8px;
    background: linear-gradient(90deg, #047857, #34d399);
    opacity: .72;
}

.form-step[data-step="07"] .setting-field:hover {
    transform: translateY(-3px);
    border-color: rgba(16,185,129,.30);
    box-shadow:
        0 14px 30px rgba(6,95,70,.09),
        inset 0 1px 0 rgba(255,255,255,.95);
}

.form-step[data-step="07"] .setting-field label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
    color: #36554b;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.form-step[data-step="07"] .setting-field label::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 4px rgba(16,185,129,.10);
}

.form-step[data-step="07"] .setting-field select {
    height: 48px;
    padding: 0 40px 0 14px;
    border: 1px solid rgba(6,95,70,.12);
    border-radius: 13px;
    color: #173b31;
    font-size: 13px;
    font-weight: 650;
    background:
        linear-gradient(180deg, #ffffff, #f3faf7);
    box-shadow:
        inset 0 1px 2px rgba(15,61,49,.025);
    cursor: pointer;
}

.form-step[data-step="07"] .setting-field select:hover {
    border-color: rgba(16,185,129,.38);
    background: #ffffff;
}

.form-step[data-step="07"] .setting-field select:focus {
    border-color: #059669;
    box-shadow:
        0 0 0 4px rgba(16,185,129,.11),
        0 8px 18px rgba(6,95,70,.07);
}

/* Give the six settings a slightly different accent rhythm */
.form-step[data-step="07"] .setting-field:nth-child(2)::before {
    background: linear-gradient(90deg, #065f46, #10b981);
}
.form-step[data-step="07"] .setting-field:nth-child(3)::before {
    background: linear-gradient(90deg, #10b981, #6ee7b7);
}
.form-step[data-step="07"] .setting-field:nth-child(4)::before {
    background: linear-gradient(90deg, #047857, #34d399);
}
.form-step[data-step="07"] .setting-field:nth-child(5)::before {
    background: linear-gradient(90deg, #065f46, #34d399);
}
.form-step[data-step="07"] .setting-field:nth-child(6)::before {
    background: linear-gradient(90deg, #059669, #a7f3d0);
}

/* --- Character DNA section --- */
.form-step[data-step="08"] {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 8% 15%, rgba(16,185,129,.065), transparent 27%),
        radial-gradient(circle at 92% 82%, rgba(6,95,70,.045), transparent 28%);
}

.form-step[data-step="08"] .option-grid {
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 16px;
}

.form-step[data-step="08"] .option-content {
    min-height: 154px;
    padding: 21px;
    border-radius: 20px;
    background:
        linear-gradient(145deg, #ffffff, #f7fbf9);
    border: 1px solid rgba(6,95,70,.11);
    box-shadow:
        0 8px 22px rgba(15,61,49,.035);
}

.form-step[data-step="08"] .option-card:hover .option-content {
    border-color: rgba(16,185,129,.35);
    background:
        linear-gradient(145deg, #ffffff, #effaf5);
    transform: translateY(-4px);
    box-shadow:
        0 16px 30px rgba(6,95,70,.09);
}

.form-step[data-step="08"] .option-icon {
    width: 48px;
    height: 48px;
    border-radius: 15px;
    border-color: rgba(16,185,129,.18);
    background: rgba(16,185,129,.07);
    color: #047857;
}

.form-step[data-step="08"] .option-icon svg {
    width: 21px;
    height: 21px;
}

.form-step[data-step="08"] .option-copy {
    gap: 5px;
}

.form-step[data-step="08"] .option-copy strong {
    font-size: 15px;
    color: #173b31;
}

.form-step[data-step="08"] .option-copy span {
    font-size: 11px;
    line-height: 1.5;
    color: #71877f;
}

.form-step[data-step="08"] .option-card input:checked + .option-content {
    border: 2px solid #10b981;
    background:
        linear-gradient(145deg, #047857 0%, #065f46 100%);
    box-shadow:
        0 0 0 4px rgba(16,185,129,.13),
        0 18px 38px rgba(6,95,70,.22),
        inset 0 1px 0 rgba(255,255,255,.12);
    transform: translateY(-4px);
}

.form-step[data-step="08"] .option-card input:checked + .option-content .option-icon {
    border-color: rgba(255,255,255,.25);
    background: rgba(255,255,255,.12);
    color: #ffffff;
    box-shadow: none;
}

.form-step[data-step="08"] .option-card input:checked + .option-content .option-copy strong {
    color: #ffffff;
}

.form-step[data-step="08"] .option-card input:checked + .option-content .option-copy span {
    color: #d1fae5;
}

.form-step[data-step="08"] .option-card input:checked + .option-content::after {
    top: 16px;
    right: 16px;
    width: 30px;
    height: 30px;
    color: #065f46;
    background: #ffffff;
    box-shadow: 0 7px 18px rgba(0,0,0,.16);
}

/* Character details field becomes part of the visual system */
.form-step[data-step="08"] .custom-field {
    margin-top: 22px;
    padding: 18px;
    border: 1px solid rgba(16,185,129,.12);
    border-radius: 18px;
    background: linear-gradient(145deg, #ffffff, #f6fbf8);
    box-shadow: 0 8px 22px rgba(15,61,49,.035);
}

.form-step[data-step="08"] .custom-field label {
    color: #36554b;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.form-step[data-step="08"] .custom-field textarea {
    border-color: rgba(6,95,70,.12);
    background: #ffffff;
    border-radius: 14px;
}

.form-step[data-step="08"] .custom-field textarea:focus {
    border-color: #059669;
    box-shadow: 0 0 0 4px rgba(16,185,129,.10);
}

/* --- Step 07/08 headings get a subtle premium wash --- */
.form-step[data-step="07"] .step-number,
.form-step[data-step="08"] .step-number {
    background:
        linear-gradient(145deg, #ecfdf5, #d1fae5);
    border-color: rgba(16,185,129,.24);
    color: #047857;
    box-shadow: 0 8px 20px rgba(6,95,70,.06);
}

.form-step[data-step="07"] .step-label,
.form-step[data-step="08"] .step-label {
    color: #059669;
}


/* =========================================================
   STEP 07 — PREMIUM SETTINGS V3
   More visual hierarchy, color, and premium interaction
========================================================= */

.form-step[data-step="07"] {
    background:
        radial-gradient(circle at 100% 0%, rgba(16,185,129,.12), transparent 32%),
        radial-gradient(circle at 0% 100%, rgba(5,150,105,.07), transparent 28%),
        linear-gradient(180deg, #fbfefc 0%, #f5fbf8 100%);
}

.form-step[data-step="07"] .step-heading {
    position: relative;
    padding-bottom: 8px;
}

.form-step[data-step="07"] .step-heading::after {
    content: "";
    position: absolute;
    left: 55px;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        rgba(16,185,129,.35),
        rgba(16,185,129,.04),
        transparent
    );
}

.form-step[data-step="07"] .step-heading h2 {
    letter-spacing: -.035em;
}

.form-step[data-step="07"] .settings-grid {
    gap: 16px;
    margin-top: 18px;
}

.form-step[data-step="07"] .setting-field {
    min-height: 126px;
    padding: 17px;
    border: 1px solid rgba(6,95,70,.10);
    border-radius: 20px;
    background:
        linear-gradient(145deg, #ffffff 0%, #f1faf6 100%);
    box-shadow:
        0 10px 28px rgba(6,95,70,.055),
        inset 0 1px 0 rgba(255,255,255,.95);
    transition:
        transform .25s ease,
        border-color .25s ease,
        box-shadow .25s ease;
}

.form-step[data-step="07"] .setting-field:hover {
    transform: translateY(-4px);
    border-color: rgba(16,185,129,.32);
    box-shadow:
        0 16px 34px rgba(6,95,70,.10),
        0 0 0 4px rgba(16,185,129,.045);
}

.form-step[data-step="07"] .setting-field::before {
    content: "";
    position: absolute;
    top: 0;
    left: 18px;
    right: 18px;
    height: 4px;
    border-radius: 0 0 10px 10px;
    background: linear-gradient(90deg, #047857, #10b981);
}

.form-step[data-step="07"] .setting-field label {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 28px;
    margin-bottom: 8px;
    padding-left: 31px;
    color: #24483d;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .075em;
    text-transform: uppercase;
}

.form-step[data-step="07"] .setting-field label::before {
    position: absolute;
    left: 0;
    top: 1px;
    width: 23px;
    height: 23px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #ffffff;
    background: linear-gradient(145deg, #059669, #047857);
    box-shadow: 0 5px 12px rgba(6,95,70,.16);
    font-size: 9px;
    font-weight: 900;
}

.form-step[data-step="07"] .setting-field:nth-child(1) label::before { content: "01"; }
.form-step[data-step="07"] .setting-field:nth-child(2) label::before { content: "02"; }
.form-step[data-step="07"] .setting-field:nth-child(3) label::before { content: "03"; }
.form-step[data-step="07"] .setting-field:nth-child(4) label::before { content: "04"; }
.form-step[data-step="07"] .setting-field:nth-child(5) label::before { content: "05"; }
.form-step[data-step="07"] .setting-field:nth-child(6) label::before { content: "06"; }

.form-step[data-step="07"] .setting-field select {
    width: 100%;
    height: 52px;
    padding: 0 43px 0 15px;
    border: 1.5px solid rgba(6,95,70,.14);
    border-radius: 14px;
    color: #173b31;
    font-size: 14px;
    font-weight: 700;
    background:
        linear-gradient(180deg, #ffffff 0%, #edf8f3 100%);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.95),
        0 4px 12px rgba(6,95,70,.035);
    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        transform .2s ease;
}

.form-step[data-step="07"] .setting-field select:hover {
    border-color: #10b981;
    background:
        linear-gradient(180deg, #ffffff 0%, #e8f8f1 100%);
}

.form-step[data-step="07"] .setting-field select:focus {
    outline: none;
    border-color: #059669;
    background: linear-gradient(180deg, #ffffff, #e6f8f0);
    box-shadow:
        0 0 0 4px rgba(16,185,129,.12),
        0 10px 22px rgba(6,95,70,.08);
    transform: translateY(-1px);
}

/* Stronger visual accent for the most important settings */
.form-step[data-step="07"] .setting-field:nth-child(2),
.form-step[data-step="07"] .setting-field:nth-child(5) {
    background:
        linear-gradient(145deg, #f0fdf8 0%, #dcfce7 100%);
    border-color: rgba(5,150,105,.18);
}

.form-step[data-step="07"] .setting-field:nth-child(2) select,
.form-step[data-step="07"] .setting-field:nth-child(5) select {
    border-color: rgba(5,150,105,.24);
}

/* Worksheet language gets a premium highlight */
.form-step[data-step="07"] .setting-field:nth-child(6) {
    background:
        linear-gradient(145deg, #ecfdf5 0%, #dff7ed 100%);
    border-color: rgba(16,185,129,.20);
}

.form-step[data-step="07"] .setting-field:nth-child(6) select {
    border-color: rgba(16,185,129,.30);
    box-shadow:
        0 6px 18px rgba(6,95,70,.06),
        inset 0 1px 0 rgba(255,255,255,.95);
}


/* =========================================================
   STEP 07 — FULL GREEN BACKDROP V4
   Make the entire section feel intentional and premium
========================================================= */

.form-step[data-step="07"] {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(
            135deg,
            #064e3b 0%,
            #065f46 42%,
            #047857 72%,
            #059669 100%
        ) !important;
    color: #ffffff;
}

/* Decorative soft light — stays inside the green section */
.form-step[data-step="07"]::before {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    top: -280px;
    right: -180px;
    border-radius: 50%;
    background: rgba(110, 231, 183, .12);
    filter: blur(10px);
    pointer-events: none;
}

.form-step[data-step="07"]::after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    bottom: -260px;
    left: -180px;
    border-radius: 50%;
    background: rgba(255,255,255,.055);
    filter: blur(8px);
    pointer-events: none;
}

/* Keep all real content above decorative layers */
.form-step[data-step="07"] > * {
    position: relative;
    z-index: 2;
}

.form-step[data-step="07"] .step-heading::after {
    background: linear-gradient(
        90deg,
        rgba(255,255,255,.55),
        rgba(167,243,208,.30),
        transparent
    ) !important;
}

.form-step[data-step="07"] .step-heading h2 {
    color: #ffffff !important;
}

.form-step[data-step="07"] .step-heading p {
    color: rgba(236,253,245,.78) !important;
}

.form-step[data-step="07"] .step-number {
    color: #047857 !important;
    background: #ecfdf5 !important;
    border-color: rgba(255,255,255,.45) !important;
    box-shadow:
        0 8px 22px rgba(0,0,0,.14),
        inset 0 1px 0 rgba(255,255,255,.85);
}

.form-step[data-step="07"] .step-eyebrow,
.form-step[data-step="07"] .step-label {
    color: #a7f3d0 !important;
}

/* Premium setting cards on the full-green section */
.form-step[data-step="07"] .setting-field {
    position: relative;
    min-height: 126px;
    padding: 18px;
    border: 1px solid rgba(255,255,255,.26) !important;
    border-radius: 22px;
    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.98) 0%,
            rgba(236,253,245,.96) 100%
        ) !important;
    box-shadow:
        0 18px 38px rgba(2,44,34,.18),
        inset 0 1px 0 rgba(255,255,255,.95);
}

.form-step[data-step="07"] .setting-field:hover {
    transform: translateY(-4px);
    border-color: rgba(167,243,208,.85) !important;
    box-shadow:
        0 22px 42px rgba(2,44,34,.24),
        0 0 0 4px rgba(167,243,208,.10);
}

.form-step[data-step="07"] .setting-field::before {
    background: linear-gradient(
        90deg,
        #10b981,
        #6ee7b7
    ) !important;
}

.form-step[data-step="07"] .setting-field label {
    color: #164e3b !important;
}

.form-step[data-step="07"] .setting-field label::before {
    background: linear-gradient(
        145deg,
        #059669,
        #047857
    ) !important;
    color: #ffffff !important;
}

.form-step[data-step="07"] .setting-field select {
    color: #123b30 !important;
    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #ecfdf5 100%
        ) !important;
    border-color: rgba(5,150,105,.22) !important;
}

.form-step[data-step="07"] .setting-field select:hover {
    border-color: #10b981 !important;
    box-shadow:
        0 0 0 4px rgba(16,185,129,.08);
}

.form-step[data-step="07"] .setting-field select:focus {
    border-color: #059669 !important;
    box-shadow:
        0 0 0 4px rgba(167,243,208,.25),
        0 10px 24px rgba(2,44,34,.10) !important;
}

/* Keep special cards slightly greener, but still clearly card-based */
.form-step[data-step="07"] .setting-field:nth-child(2),
.form-step[data-step="07"] .setting-field:nth-child(5),
.form-step[data-step="07"] .setting-field:nth-child(6) {
    background:
        linear-gradient(
            145deg,
            #ecfdf5 0%,
            #d1fae5 100%
        ) !important;
    border-color: rgba(110,231,183,.52) !important;
}

/* Bottom spacing so the full green panel feels complete */
.form-step[data-step="07"] {
    padding-bottom: 72px;
}


/* =========================================================
   READY-TO-USE PROMPT CARDS
========================================================= */
.ready-prompt-card {
    overflow: hidden;
    border: 1px solid rgba(6,95,70,.12);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(6,95,70,.06);
}
.ready-prompt-card .page-prompt-toggle {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
}
.ready-prompt-card .page-prompt-top {
    min-height: 82px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
}
.ready-prompt-card .page-prompt-title {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 0;
}
.ready-prompt-card .page-prompt-title > span:last-child {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.ready-prompt-card .page-prompt-title strong {
    color: #173b31;
    font-size: 15px;
}
.ready-prompt-card .page-prompt-title small {
    color: #6b8179;
    font-size: 11px;
}
.ready-prompt-card .prompt-toggle-label {
    color: #047857;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}
.ready-prompt-card .page-prompt-content {
    padding: 0 20px 20px;
    border-top: 1px solid rgba(6,95,70,.08);
    background: linear-gradient(180deg,#f8fcfa,#fff);
}
.ready-prompt-card .ready-prompt-label {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 0 10px;
    color: #047857;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .07em;
    text-transform: uppercase;
}
.ready-prompt-card .ready-prompt-label span:last-child {
    color: #789087;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}
.ready-prompt-card .prompt-box {
    max-height: 480px;
    overflow: auto;
    margin: 0;
    padding: 18px;
    border: 1px solid rgba(6,95,70,.09);
    border-radius: 16px;
    background: #fff;
    color: #29483f;
    white-space: pre-wrap;
    font-family: inherit;
    font-size: 12px;
    line-height: 1.7;
}
.ready-prompt-card .page-prompt-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 12px;
}
.ready-prompt-card .primary-copy-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 0;
    border-radius: 12px;
    padding: 11px 16px;
    background: linear-gradient(135deg,#047857,#059669);
    color: #fff;
    font-size: 11px;
    font-weight: 850;
    cursor: pointer;
}


/* =========================================================
   QUICK COPY — AVAILABLE WITHOUT OPENING THE PROMPT
========================================================= */
.page-prompt-header-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex: 0 0 auto;
}
.quick-copy-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 11px;
    border: 1px solid rgba(5,150,105,.18);
    border-radius: 10px;
    background: #ecfdf5;
    color: #047857;
    font-size: 10px;
    font-weight: 850;
    line-height: 1;
    cursor: pointer;
    user-select: none;
    transition: background .18s ease, border-color .18s ease,
                color .18s ease, transform .18s ease,
                box-shadow .18s ease;
}
.quick-copy-button:hover,
.quick-copy-button:focus-visible {
    outline: none;
    border-color: #10b981;
    background: #047857;
    color: #ffffff;
    box-shadow: 0 5px 14px rgba(6,95,70,.16);
    transform: translateY(-1px);
}
.quick-copy-button:active { transform: translateY(0); }
.quick-copy-button svg { width: 13px; height: 13px; }

@media (max-width: 700px) {
    .page-prompt-header-actions { gap: 7px; }
    .quick-copy-button span { display: none; }
    .quick-copy-button {
        width: 32px;
        height: 32px;
        justify-content: center;
        padding: 0;
        border-radius: 9px;
    }
}


/* =========================================================
   QUICK NAVIGATION CARDS
========================================================= */
.how-card.is-action-card {
    cursor: pointer;
    position: relative;
}

.how-card.is-action-card::after {
    content: "→";
    position: absolute;
    right: 22px;
    bottom: 20px;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(16,185,129,.09);
    color: #047857;
    font-size: 15px;
    font-weight: 800;
    opacity: .7;
    transform: translateX(0);
    transition: transform .2s ease, background .2s ease, color .2s ease;
}

.how-card.is-action-card:hover,
.how-card.is-action-card:focus-visible {
    outline: none;
    transform: translateY(-4px);
}

.how-card.is-action-card:hover::after,
.how-card.is-action-card:focus-visible::after {
    background: #047857;
    color: #ffffff;
    transform: translateX(4px);
}


/* =========================================================
   SPLIT PAGE WORKFLOW
========================================================= */

.split-home-hero {
    min-height: calc(100vh - 76px);
    display: flex;
    align-items: center;
}

.split-home-hero .hero-inner {
    padding-top: 40px;
    padding-bottom: 55px;
}

.split-home-actions {
    width: min(900px, 100%);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 34px;
}

.home-action-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 220px;
    padding: 22px;
    border: 1px solid rgba(16,185,129,.14);
    border-radius: 22px;
    background: rgba(255,255,255,.62);
    color: inherit;
    text-decoration: none;
    box-shadow: 0 14px 35px rgba(6,95,70,.045);
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.home-action-card:hover {
    transform: translateY(-5px);
    border-color: rgba(16,185,129,.35);
    box-shadow: 0 20px 45px rgba(6,95,70,.09);
}

.home-action-number {
    color: #789087;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .1em;
}

.home-action-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    margin-top: 30px;
    border-radius: 14px;
    background: #ecfdf5;
    color: #047857;
}

.home-action-icon svg { width: 21px; }

.home-action-copy {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: 17px;
}

.home-action-copy strong {
    font-family: "Playfair Display", serif;
    font-size: 23px;
}

.home-action-copy small {
    max-width: 210px;
    color: #789087;
    font-size: 11px;
    line-height: 1.55;
}

.home-action-arrow {
    position: absolute;
    right: 21px;
    bottom: 22px;
    width: 17px;
    color: #047857;
}

.split-page-intro {
    display: flex;
    align-items: flex-end;
    gap: 25px;
    padding-top: 55px;
    padding-bottom: 12px;
}

.split-page-intro h1,
.generate-hero-copy h1 {
    margin: 5px 0 6px;
    font-family: "Playfair Display", serif;
    font-size: clamp(34px, 5vw, 52px);
    line-height: 1.05;
    letter-spacing: -.035em;
}

.split-page-intro p,
.generate-hero-copy p {
    margin: 0;
    color: #789087;
    font-size: 13px;
    line-height: 1.65;
}

.split-back-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
    margin-bottom: 8px;
    color: #047857;
    text-decoration: none;
    font-size: 11px;
    font-weight: 800;
}

.split-back-link svg { width: 15px; }

.split-generator {
    padding-top: 12px;
}

.split-continue-area {
    display: flex;
    justify-content: flex-end;
    padding: 5px 0 55px;
}

.split-generate-hero {
    padding: 60px 0 25px;
}

.split-generate-hero > .container {
    position: relative;
}

.generate-hero-copy {
    max-width: 650px;
    margin-top: 22px;
}

.split-generate-button {
    position: absolute;
    right: 20px;
    bottom: 0;
}

.generate-page .result-section {
    padding-top: 25px;
}

@media (max-width: 800px) {
    .split-home-actions {
        grid-template-columns: 1fr;
    }

    .home-action-card {
        min-height: 150px;
    }

    .home-action-icon {
        margin-top: 18px;
    }

    .split-generate-button {
        position: static;
        margin-top: 25px;
    }
}

@media (max-width: 600px) {
    .split-page-intro {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .split-home-hero .hero-inner {
        padding-top: 25px;
    }
}


/* =========================================================
   V2 — PRECISE HOME / GENERATE FLOW
========================================================= */

.home-page .site-header,
.choose-page .site-header,
.generate-page .site-header {
    position: relative;
    z-index: 20;
}

.home-page .split-home-hero {
    min-height: calc(100vh - 76px);
    display: flex;
    align-items: center;
}

.home-page .hero-inner {
    width: min(920px, 100%);
    margin: 0 auto;
    padding-top: 36px;
    padding-bottom: 55px;
}

.home-page .hero-description {
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.home-page .hero-features {
    justify-content: center;
}

.split-home-actions {
    width: min(900px, 100%);
    margin: 38px auto 0;
    align-items: stretch;
}

.home-action-card {
    min-width: 0;
    height: 100%;
}

.choose-page .split-generator {
    padding-top: 10px;
}

.choose-page .generate-area {
    margin-top: 20px;
}

.choose-page .generate-button {
    min-width: 190px;
}

.generation-status {
    padding: 20px 0 45px;
}

.generation-status-card {
    width: min(680px, 100%);
    margin: 0 auto;
    padding: 42px 28px;
    border: 1px solid rgba(16,185,129,.13);
    border-radius: 22px;
    background: rgba(255,255,255,.58);
    text-align: center;
}

.generation-status-icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 18px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: #ecfdf5;
    color: #047857;
}

.generation-status-icon svg { width: 23px; }

.generation-status-card h2 {
    margin: 0 0 9px;
    font-family: "Playfair Display", serif;
    font-size: 26px;
}

.generation-status-card p {
    max-width: 510px;
    margin: 0 auto 20px;
    color: #789087;
    font-size: 12px;
    line-height: 1.7;
}

.generate-page .result-section {
    padding-top: 20px;
}

.generate-bottom-action {
    display: flex;
    justify-content: flex-end;
    padding: 35px 0 20px;
}

@media (max-width: 800px) {
    .home-page .split-home-hero {
        min-height: auto;
    }

    .home-page .hero-inner {
        padding-top: 28px;
    }

    .generate-bottom-action {
        justify-content: stretch;
    }

    .generate-bottom-action .primary-button {
        width: 100%;
    }
}
