/* ==============================
   Design Tokens
   ============================== */
:root {
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-serif: 'Instrument Serif', Georgia, serif;

    --color-bg: #f8f5ff;
    --color-bg-alt: #f0ecfa;
    --color-card: #ffffff;
    --color-hero: linear-gradient(145deg, #12082e 0%, #1e1050 40%, #2a1563 70%, #1a0f3d 100%);
    --color-cta-section: linear-gradient(135deg, #1e1050 0%, #2a1563 100%);

    --color-primary: #6c5ce7;
    --color-primary-hover: #5a4bd1;
    --color-primary-light: #ede9fc;
    --color-primary-soft: #8b7ec8;

    --color-gold: #d4a574;
    --color-gold-light: #f5ead8;

    --color-text: #2d2a3e;
    --color-text-secondary: #6b6580;
    --color-text-muted: #9b90b0;
    --color-text-inverse: #f0ecfa;

    --color-border: #e8e3f3;
    --color-border-focus: #6c5ce7;

    --color-success: #2ed573;
    --color-error: #ff4757;
    --color-info: #6c5ce7;

    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --radius-full: 999px;

    --shadow: 0 4px 24px rgba(45, 42, 62, 0.07);
    --shadow-lg: 0 8px 40px rgba(45, 42, 62, 0.1);
    --shadow-card: 0 2px 16px rgba(45, 42, 62, 0.06);

    --transition: 0.2s ease;
}

/* ==============================
   Reset & Base
   ============================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.65;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

main {
    flex: 1;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--color-primary-hover);
}

/* ==============================
   Layout
   ============================== */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-sm {
    max-width: 720px;
}

.container-md {
    max-width: 860px;
}

.container-xs {
    max-width: 480px;
}

/* ==============================
   Navigation
   ============================== */
.nav {
    background: var(--color-card);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.92);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--color-text);
    font-size: 1rem;
}

.nav-logo:hover {
    color: var(--color-text);
}

.nav-logo-icon {
    font-size: 1.3rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-secondary);
}

.nav-link:hover {
    color: var(--color-primary);
}

.nav-link-active {
    color: var(--color-primary);
}

.nav-link-muted {
    color: var(--color-text-muted);
}

/* Nav variants */
.nav-minimal {
    border-bottom-color: transparent;
    background: transparent;
    backdrop-filter: none;
}

.nav-inner-center {
    justify-content: center;
}

/* ==============================
   Buttons
   ============================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    line-height: 1.4;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
    box-shadow: 0 4px 14px rgba(108, 92, 231, 0.3);
}

.btn-primary:hover {
    background: var(--color-primary-hover);
    color: white;
    box-shadow: 0 6px 20px rgba(108, 92, 231, 0.4);
}

.btn-secondary {
    background: var(--color-primary-light);
    color: var(--color-primary);
}

.btn-secondary:hover {
    background: #ddd6f9;
    color: var(--color-primary-hover);
}

.btn-cta {
    background: var(--color-gold);
    color: #1a0f3d;
    font-size: 1.05rem;
    padding: 16px 36px;
    border-radius: var(--radius);
    box-shadow: 0 4px 20px rgba(212, 165, 116, 0.4);
}

.btn-cta:hover {
    background: #c99560;
    color: #1a0f3d;
    box-shadow: 0 6px 28px rgba(212, 165, 116, 0.5);
}

.btn-lg {
    font-size: 1.05rem;
    padding: 16px 36px;
}

.btn-sm {
    font-size: 0.85rem;
    padding: 8px 18px;
}

.btn-block {
    width: 100%;
}

/* ==============================
   Flash Messages
   ============================== */
.flash-container {
    margin-top: 16px;
}

.flash {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.flash-error {
    background: #fff0f0;
    color: var(--color-error);
    border: 1px solid #ffe0e0;
}

.flash-success {
    background: #edfff4;
    color: #1a8a4a;
    border: 1px solid #c8f7d8;
}

.flash-info {
    background: var(--color-primary-light);
    color: var(--color-primary);
    border: 1px solid #d6cef5;
}

/* ==============================
   Illustrations (shared)
   ============================== */
.illust {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==============================
   Hero (video-based)
   ============================== */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    background: #ffffff;
}

.hero-video-wrap {
    position: absolute;
    z-index: 0;
    inset: auto 0 0 0;
    top: 45%;
}

.hero-video-inner {
    width: 100%;
    height: 100%;
    opacity: 0;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-video-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, #ffffff 0%, transparent 40%, transparent 100%);
    pointer-events: none;
}

.hero-nav {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 32px;
    max-width: 80rem;
    margin: 0 auto;
}

.hero-logo {
    font-family: 'Instrument Serif', serif;
    font-size: 1.875rem;
    letter-spacing: -0.025em;
    color: #000000;
    text-decoration: none;
}

.hero-logo sup {
    font-size: 0.6em;
    vertical-align: super;
}

.hero-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.hero-menu a {
    font-size: 0.875rem;
    color: #6f6f6f;
    text-decoration: none;
    transition: color 0.2s;
}

.hero-menu a:hover,
.hero-menu a.active {
    color: #000000;
}

.hero-nav-cta {
    display: inline-block;
    border-radius: 999px;
    padding: 10px 24px;
    font-size: 0.875rem;
    background: #000000;
    color: #ffffff;
    text-decoration: none;
    transition: transform 0.2s;
}

.hero-nav-cta:hover {
    transform: scale(1.03);
}

.hero-body {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10vh 24px 0;
}

.hero-headline {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(2rem, 5vw, 5rem);
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: -2.46px;
    color: #000000;
    max-width: 60rem;
}

.hero-headline em {
    font-style: italic;
    color: #1a1a1a;
}

.hero-desc {
    font-size: clamp(1.05rem, 2.2vw, 1.25rem);
    max-width: 40rem;
    margin-top: 2rem;
    line-height: 1.7;
    color: #222;
}

.hero-cta {
    display: inline-block;
    border-radius: 999px;
    padding: 16px 48px;
    font-size: 1rem;
    background: #000000;
    color: #ffffff;
    text-decoration: none;
    margin-top: 2rem;
    transition: transform 0.2s;
}

.hero-cta:hover {
    transform: scale(1.03);
}

.hero-checks {
    list-style: none;
    padding: 0;
    margin: 1.25rem auto 0;
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem 1.2rem;
}

.hero-checks li {
    font-size: 0.9rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
}

.hero-checks li::before {
    content: '✓';
    font-weight: 700;
    color: #2e7d32;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.hero-trust {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: #555;
    letter-spacing: 0.02em;
}

/* Hero animations */
@keyframes hero-fade-rise {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-anim      { animation: hero-fade-rise 0.8s ease-out both; }
.hero-anim-d1   { animation: hero-fade-rise 0.8s ease-out 0.2s both; }
.hero-anim-d2   { animation: hero-fade-rise 0.8s ease-out 0.4s both; }

/* ==============================
   Sections
   ============================== */
.section {
    padding: 80px 0;
}

.section-alt {
    background: var(--color-bg-alt);
}

.section-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
    color: var(--color-text);
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-secondary);
    font-size: 1.05rem;
    margin-bottom: 48px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

/* Steps */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.step-card {
    background: var(--color-card);
    border-radius: var(--radius);
    padding: 36px 28px;
    text-align: center;
    box-shadow: var(--shadow-card);
    position: relative;
}

.step-number {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 28px;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-icon {
    font-size: 2.2rem;
    margin-bottom: 16px;
}

.step-illust {
    width: 120px;
    height: 120px;
    margin: 0 auto 16px;
    border-radius: var(--radius);
    overflow: hidden;
}

.step-illust .illust {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius);
}

.step-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.step-card p {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* Benefits */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.benefit-card {
    background: var(--color-card);
    border-radius: var(--radius);
    padding: 32px 28px;
    box-shadow: var(--shadow-card);
}

.benefit-icon {
    font-size: 2rem;
    margin-bottom: 14px;
}

.benefit-illust {
    width: 100px;
    height: 100px;
    margin-bottom: 14px;
    border-radius: var(--radius);
    overflow: hidden;
}

.benefit-illust .illust {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius);
}

.benefit-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.benefit-card p {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* Themes */
.themes-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.theme-card {
    background: var(--color-card);
    border-radius: var(--radius);
    padding: 28px 16px;
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: transform var(--transition), box-shadow var(--transition);
}

.theme-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.theme-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 10px;
}

.theme-illust {
    width: 100%;
    aspect-ratio: 1;
    margin-bottom: 12px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.theme-illust .illust {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.theme-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text);
}

/* FAQ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--color-card);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.faq-question {
    padding: 20px 24px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.faq-question::after {
    content: '+';
    font-size: 1.3rem;
    color: var(--color-primary);
    font-weight: 400;
    transition: transform var(--transition);
}

.faq-item[open] .faq-question::after {
    content: '−';
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-answer {
    padding: 0 24px 20px;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* Pricing */
.pricing-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 640px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--color-card);
    border-radius: var(--radius);
    padding: 36px 28px;
    text-align: center;
    box-shadow: var(--shadow-card);
    border: 2px solid transparent;
    position: relative;
}

.pricing-card-primary {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-lg);
}

.pricing-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 14px;
    border-radius: var(--radius-full);
    background: var(--color-bg-alt);
    color: var(--color-text-secondary);
    margin-bottom: 16px;
}

.pricing-badge-primary {
    background: var(--color-primary);
    color: white;
}

.pricing-price {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 4px;
}

.pricing-desc {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin-bottom: 24px;
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 28px;
}

.pricing-features li {
    padding: 6px 0;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    position: relative;
    padding-left: 24px;
}

.pricing-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-success);
    font-weight: 700;
}

/* CTA Section */
.section-cta {
    background: var(--color-cta-section);
    padding: 80px 0;
}

.section-cta-split {
    display: flex;
    align-items: center;
    gap: 48px;
}

.section-cta-text {
    flex: 1;
}

.section-cta-image {
    flex: 0 0 360px;
}

.cta-illust {
    width: 100%;
    border-radius: var(--radius);
    filter: drop-shadow(0 8px 32px rgba(0, 0, 0, 0.3));
}

.section-cta h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    color: white;
    margin-bottom: 12px;
}

.section-cta p {
    color: rgba(240, 236, 250, 0.75);
    font-size: 1.05rem;
    margin-bottom: 32px;
}

/* ==============================
   Auth Pages
   ============================== */
.auth-section {
    padding: 80px 0;
    display: flex;
    align-items: center;
    min-height: calc(100vh - 200px);
}

.auth-card {
    background: var(--color-card);
    border-radius: var(--radius);
    padding: 48px 36px;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.auth-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.auth-title {
    font-family: var(--font-display);
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.auth-subtitle {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    margin-bottom: 32px;
    line-height: 1.6;
}

.auth-form {
    text-align: left;
}

.auth-footer {
    margin-top: 24px;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.auth-hint {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.dev-notice {
    background: var(--color-gold-light);
    border: 1px solid var(--color-gold);
    border-radius: var(--radius-sm);
    padding: 20px;
    margin-top: 24px;
    text-align: center;
}

.dev-notice p {
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.link-muted {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.link-muted:hover {
    color: var(--color-primary);
}

/* ==============================
   Forms
   ============================== */
.form-section {
    padding: 60px 0;
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: flex-start;
}

.form-card {
    background: var(--color-card);
    border-radius: var(--radius);
    padding: 48px 36px;
    box-shadow: var(--shadow-lg);
}

.form-card-wide {
    padding: 48px 40px;
}

.form-header {
    text-align: center;
    margin-bottom: 36px;
}

.form-header h1 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.form-header p {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
}

.stories-badge {
    display: inline-block;
    margin-top: 12px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: var(--radius-full);
}

.form-group {
    margin-bottom: 28px;
}

.form-label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: var(--color-text);
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    font-family: var(--font-body);
    font-size: 1rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-bg);
    color: var(--color-text);
    transition: border-color var(--transition), box-shadow var(--transition);
    appearance: none;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-border-focus);
    box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.1);
}

.form-input::placeholder {
    color: var(--color-text-muted);
}

select.form-input {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b6580' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-footer {
    text-align: center;
    margin-top: 20px;
}

/* Option Cards (radio select) */
.option-grid {
    display: grid;
    gap: 12px;
}

.option-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.option-card {
    cursor: pointer;
}

.option-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.option-card-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 14px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-bg);
    transition: all var(--transition);
}

.option-card input:checked + .option-card-inner {
    border-color: var(--color-primary);
    background: var(--color-primary-light);
    box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.1);
}

.option-card:hover .option-card-inner {
    border-color: var(--color-primary-soft);
}

.option-icon {
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.option-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text);
}

.option-desc {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    margin-top: 4px;
    line-height: 1.4;
}

.option-card-voice .option-card-inner {
    padding: 22px 16px;
}

/* ==============================
   Generating Page
   ============================== */
.generating-section {
    padding: 80px 0;
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
}

.generating-card {
    background: var(--color-card);
    border-radius: var(--radius);
    padding: 60px 40px;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.generating-animation {
    margin-bottom: 32px;
}

.moon-pulse {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    border-radius: 50%;
    background: radial-gradient(circle, var(--color-gold) 0%, var(--color-gold-light) 60%, transparent 70%);
    animation: pulse 2s infinite ease-in-out;
    position: relative;
}

.moon-pulse::after {
    content: '🌙';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.1); opacity: 1; }
}

.generating-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.generating-subtitle {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    margin-bottom: 32px;
}

.progress-bar {
    width: 100%;
    max-width: 300px;
    height: 6px;
    background: var(--color-bg-alt);
    border-radius: var(--radius-full);
    margin: 0 auto 20px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-gold));
    border-radius: var(--radius-full);
    width: 0%;
    transition: width 0.6s ease;
}

.generating-hint {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* ==============================
   Result Page
   ============================== */
.result-section {
    padding: 60px 0;
}

.result-card {
    background: var(--color-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.result-header {
    background: var(--color-hero);
    padding: 40px 36px;
    text-align: center;
}

.result-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    font-weight: 500;
    padding: 4px 16px;
    border-radius: var(--radius-full);
    margin-bottom: 16px;
}

.result-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
}

.result-voice {
    color: rgba(240, 236, 250, 0.7);
    font-size: 0.9rem;
}

.voice-icon {
    margin-right: 4px;
}

/* Audio Player */
.audio-player-wrapper {
    padding: 28px 36px;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
}

.custom-player {
    display: flex;
    align-items: center;
    gap: 16px;
}

.player-btn {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    background: var(--color-primary-light);
    color: var(--color-primary);
}

.player-btn:hover {
    background: var(--color-primary);
    color: white;
}

.player-btn-main {
    width: 56px;
    height: 56px;
    background: var(--color-primary);
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(108, 92, 231, 0.3);
}

.player-btn-main:hover {
    background: var(--color-primary-hover);
    box-shadow: 0 6px 20px rgba(108, 92, 231, 0.4);
}

.play-icon {
    display: inline-block;
    line-height: 1;
}

.player-info {
    flex: 1;
}

.player-progress {
    width: 100%;
    height: 6px;
    background: var(--color-border);
    border-radius: var(--radius-full);
    cursor: pointer;
    overflow: hidden;
    margin-bottom: 6px;
}

.player-progress-fill {
    height: 100%;
    background: var(--color-primary);
    border-radius: var(--radius-full);
    width: 0%;
    transition: width 0.1s linear;
}

.player-time {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    font-variant-numeric: tabular-nums;
}

/* Story Text */
.story-text-toggle {
    padding: 0 36px;
}

.story-text-summary {
    padding: 20px 0;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    color: var(--color-text-secondary);
    list-style: none;
    border-bottom: 1px solid var(--color-border);
}

.story-text-summary::-webkit-details-marker {
    display: none;
}

.story-text-summary::before {
    content: '📖 ';
}

.story-text {
    padding: 24px 0 32px;
}

.story-text p {
    margin-bottom: 16px;
    line-height: 1.8;
    color: var(--color-text-secondary);
    font-size: 0.95rem;
}

.story-text p:last-child {
    margin-bottom: 0;
}

/* Result Actions */
.result-actions {
    padding: 32px 36px;
    text-align: center;
    border-top: 1px solid var(--color-border);
}

.result-remaining {
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* ==============================
   Paywall
   ============================== */
.paywall-section {
    padding: 80px 0;
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
}

.paywall-card {
    text-align: center;
}

.paywall-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.paywall-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

.paywall-subtitle {
    color: var(--color-text-secondary);
    font-size: 1rem;
    max-width: 480px;
    margin: 0 auto 36px;
    line-height: 1.6;
}

.paywall-price-card {
    background: var(--color-card);
    border-radius: var(--radius);
    padding: 40px 36px;
    box-shadow: var(--shadow-lg);
    max-width: 420px;
    margin: 0 auto;
    border: 2px solid var(--color-primary);
}

.paywall-price {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 4px;
}

.paywall-price-desc {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    margin-bottom: 28px;
}

.paywall-features {
    list-style: none;
    text-align: left;
    margin-bottom: 28px;
}

.paywall-features li {
    padding: 8px 0;
    font-size: 0.95rem;
    color: var(--color-text-secondary);
}

.paywall-features .check {
    color: var(--color-success);
    font-weight: 700;
    margin-right: 10px;
}

.paywall-trust {
    margin-top: 16px;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* ==============================
   Footer
   ============================== */
.footer {
    background: var(--color-card);
    border-top: 1px solid var(--color-border);
    padding: 24px 0;
    margin-top: auto;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.footer-links a:hover {
    color: var(--color-primary);
}

/* Footer variants */
.footer-minimal {
    background: transparent;
    border-top: none;
}

.footer-inner-center {
    justify-content: center;
}

.footer-compact {
    padding: 16px 0;
}

/* Body variants */
.page-auth {
    background: linear-gradient(160deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
}

/* ==============================
   Dashboard
   ============================== */
.dashboard-section {
    padding: 48px 0;
    min-height: calc(100vh - 200px);
}

.dashboard-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 36px;
    gap: 20px;
}

.dashboard-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.dashboard-subtitle {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
}

.dashboard-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.story-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.story-list-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--color-card);
    border-radius: var(--radius-sm);
    padding: 20px 24px;
    box-shadow: var(--shadow-card);
    text-decoration: none;
    color: var(--color-text);
    transition: box-shadow var(--transition), transform var(--transition);
    border: 1px solid var(--color-border);
}

.story-list-item:hover {
    box-shadow: var(--shadow);
    transform: translateY(-1px);
    color: var(--color-text);
    border-color: var(--color-primary-soft);
}

.story-list-item--pending {
    opacity: 0.7;
}

.story-list-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    width: 40px;
    text-align: center;
}

.story-list-content {
    flex: 1;
    min-width: 0;
}

.story-list-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.story-list-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    flex-wrap: wrap;
}

.meta-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--color-text-muted);
    flex-shrink: 0;
}

.story-list-date {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    white-space: nowrap;
    flex-shrink: 0;
}

.story-list-status {
    flex-shrink: 0;
}

.status-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.status-complete {
    background: #edfff4;
    color: #1a8a4a;
}

.status-failed {
    background: #fff0f0;
    color: var(--color-error);
}

.status-pending {
    background: var(--color-primary-light);
    color: var(--color-primary);
}

.dashboard-empty {
    text-align: center;
    padding: 80px 20px;
    background: var(--color-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
}

.dashboard-empty-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.dashboard-empty h2 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.dashboard-empty p {
    color: var(--color-text-secondary);
    margin-bottom: 24px;
}

/* ==============================
   Dashboard v2 (Dark)
   ============================== */
.db-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.db-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px;
}

.db-nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.db-nav-link {
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    transition: color 0.2s;
}

.db-nav-link:hover { color: #fff; }
.db-nav-muted { color: rgba(255,255,255,0.3); }
.db-nav-muted:hover { color: rgba(255,255,255,0.6); }

.db-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 24px 60px;
    width: 100%;
}

/* Header */
.db-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 36px;
    gap: 24px;
}

.db-title {
    font-family: var(--font-body);
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 500;
    letter-spacing: -0.3px;
    margin-bottom: 4px;
}

.db-title em {
    font-family: var(--font-serif);
    font-style: italic;
}

.db-sub {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.4);
}

.db-stats {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.db-stat {
    text-align: center;
}

.db-stat-num {
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    line-height: 1;
}

.db-stat-label {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.35);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.db-stat-divider {
    width: 1px;
    height: 32px;
    background: rgba(255,255,255,0.1);
}

/* New story card */
.db-new-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: rgba(108,92,231,0.08);
    border: 1.5px dashed rgba(108,92,231,0.3);
    border-radius: 16px;
    text-decoration: none;
    color: rgba(255,255,255,0.75);
    margin-bottom: 28px;
    transition: all 0.25s ease;
}

.db-new-card:hover {
    background: rgba(108,92,231,0.14);
    border-color: var(--color-primary);
    color: #fff;
    transform: translateY(-2px);
}

.db-new-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(108,92,231,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--color-primary);
    flex-shrink: 0;
}

.db-new-title {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
}

.db-new-sub {
    display: block;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.35);
}

/* Story card grid */
.db-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.db-card {
    display: flex;
    flex-direction: column;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    position: relative;
}

.db-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,255,255,0.18);
    box-shadow: 0 12px 40px rgba(0,0,0,0.25);
    color: #fff;
}

.db-card--pending {
    opacity: 0.6;
}

.db-card-cover {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: rgba(255,255,255,0.03);
}

.db-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.db-card-cover--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(108,92,231,0.1) 0%, rgba(139,92,246,0.05) 100%);
}

.db-card-emoji {
    font-size: 2.5rem;
    opacity: 0.5;
}

.db-card-body {
    padding: 14px 16px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.db-card-status {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 999px;
    margin-bottom: 8px;
    width: fit-content;
}

.db-card-status--ok {
    background: rgba(46,213,115,0.12);
    color: #5de89a;
}

.db-card-status--err {
    background: rgba(255,71,87,0.12);
    color: #ff6b7a;
}

.db-card-status--gen {
    background: rgba(108,92,231,0.12);
    color: #a78bfa;
}

.db-card-title {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 400;
    font-style: italic;
    line-height: 1.3;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.db-card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
    margin-bottom: 10px;
}

.db-card-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
}

.db-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.db-card-voice {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.35);
}

.db-card-date {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.25);
}

.db-card-play {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: #fff;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.25s, transform 0.25s;
}

.db-card:hover .db-card-play {
    opacity: 1;
    transform: scale(1);
}

/* Empty state */
.db-empty {
    text-align: center;
    padding: 80px 20px;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 20px;
    background: rgba(255,255,255,0.02);
}

.db-empty-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

.db-empty h2 {
    font-family: var(--font-body);
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.db-empty p {
    color: rgba(255,255,255,0.4);
    font-size: 0.95rem;
    margin-bottom: 28px;
}

/* Upsell banner */
.db-upsell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 28px;
    padding: 20px 24px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(108,92,231,0.1) 0%, rgba(139,92,246,0.06) 100%);
    border: 1px solid rgba(108,92,231,0.2);
}

.db-upsell-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.db-upsell-text strong {
    font-size: 0.9rem;
    color: #fff;
}

.db-upsell-text span {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
}

.db-upsell-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    background: var(--color-primary);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 999px;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s;
    box-shadow: 0 4px 14px rgba(108,92,231,0.3);
}

.db-upsell-btn:hover {
    background: var(--color-primary-hover);
    transform: translateY(-1px);
    color: #fff;
}

/* Dashboard responsive */
@media (max-width: 600px) {
    .db-nav { padding: 16px 20px; }
    .db-header { flex-direction: column; align-items: flex-start; }
    .db-stats { align-self: flex-start; }
    .db-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .db-card-title { font-size: 0.9rem; }
    .db-new-card { padding: 16px 18px; }
    .db-upsell { flex-direction: column; text-align: center; }
}

@media (max-width: 400px) {
    .db-grid { grid-template-columns: 1fr; }
}

/* ==============================
   Responsive
   ============================== */
@media (max-width: 768px) {
    .hero-menu {
        display: none;
    }

    .hero-nav {
        padding: 16px 20px;
    }

    .hero-body {
        padding: 20vh 20px 0;
    }

    .hero-video-gradient {
        background: linear-gradient(to bottom, #ffffff 0%, transparent 20%, transparent 100%);
    }

    .hero-headline {
        font-size: 1.5rem;
        letter-spacing: -0.5px;
    }

    .hero-desc {
        font-size: 0.85rem;
        margin-top: 1rem;
        max-width: 90%;
    }

    .hero-cta {
        padding: 12px 28px;
        font-size: 0.85rem;
        margin-top: 1.25rem;
        white-space: nowrap;
    }

    .hero-video-wrap {
        top: 28%;
    }

    .section-cta-split {
        flex-direction: column;
        text-align: center;
    }

    .section-cta-image {
        flex: none;
        width: 260px;
        margin: 0 auto;
    }

    .section {
        padding: 56px 0;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .themes-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .pricing-cards {
        grid-template-columns: 1fr;
    }

    .option-grid-3 {
        grid-template-columns: 1fr;
    }

    .auth-card,
    .form-card {
        padding: 32px 24px;
    }

    .form-card-wide {
        padding: 32px 24px;
    }

    .result-header {
        padding: 28px 20px;
    }

    .result-title {
        font-size: 1.4rem;
    }

    .audio-player-wrapper {
        padding: 20px;
    }

    .story-text-toggle {
        padding: 0 20px;
    }

    .result-actions {
        padding: 24px 20px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .nav-logo-text {
        font-size: 0.85rem;
    }

    .dashboard-header {
        flex-direction: column;
    }

    .dashboard-actions {
        width: 100%;
        justify-content: space-between;
    }

    .story-list-item {
        flex-wrap: wrap;
        padding: 16px 18px;
    }

    .story-list-date {
        display: none;
    }

    .story-list-content {
        flex: 1 1 calc(100% - 80px);
    }

    .custom-player {
        gap: 12px;
    }

    .player-btn-main {
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 480px) {
    .themes-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .btn-lg {
        padding: 14px 24px;
        font-size: 0.95rem;
    }

    .btn-cta {
        padding: 14px 28px;
        font-size: 0.95rem;
    }
}

/* ==============================
   Dark Sections (below hero)
   ============================== */
.dark-sections {
    background: #000000;
    color: #ffffff;
}

.dark-sections .serif-accent {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
}

.liquid-glass {
    background: rgba(255, 255, 255, 0.01);
    background-blend-mode: luminosity;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: none;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.liquid-glass::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.4px;
    background: linear-gradient(180deg,
        rgba(255,255,255,0.45) 0%, rgba(255,255,255,0.15) 20%,
        rgba(255,255,255,0) 40%, rgba(255,255,255,0) 60%,
        rgba(255,255,255,0.15) 80%, rgba(255,255,255,0.45) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* Fade-up animation */
.fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-up-d1 { transition-delay: 0.1s; }
.fade-up-d2 { transition-delay: 0.2s; }
.fade-up-d3 { transition-delay: 0.3s; }
.fade-up-d4 { transition-delay: 0.4s; }

/* -- Search Section -- */
.ds-search {
    padding: 13rem 24px 2rem;
    text-align: center;
    max-width: 80rem;
    margin: 0 auto;
}

.ds-search h2 {
    font-family: var(--font-body);
    font-size: clamp(2.4rem, 6vw, 5.5rem);
    font-weight: 500;
    letter-spacing: -2px;
    line-height: 1;
    margin-bottom: 1.5rem;
}

.ds-search .ds-subtitle {
    color: rgba(255, 255, 255, 0.55);
    font-size: 1.125rem;
    max-width: 38rem;
    margin: 0 auto 6rem;
    line-height: 1.7;
}

.ds-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 56rem;
    margin: 0 auto 5rem;
}

.ds-card {
    text-align: center;
}

.ds-card-icon {
    width: 160px;
    height: 160px;
    margin: 0 auto 1.25rem;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ds-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
}

.ds-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.ds-card p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.6;
}

.ds-tagline {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.875rem;
    text-align: center;
    padding-bottom: 2rem;
}

/* -- Variety Section -- */
.ds-variety {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 8rem 24px;
    max-width: 80rem;
    margin: 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.ds-variety-content {
    text-align: left;
}

.ds-variety-content h2 {
    font-family: var(--font-body);
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    font-weight: 500;
    letter-spacing: -1px;
    line-height: 1.25;
    margin-bottom: 1.5rem;
}

.ds-variety-content .ds-subtitle {
    text-align: left;
    margin: 0 0 2.5rem;
}

.ds-variety-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ds-tag {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    color: rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.2s, color 0.2s;
}

.ds-tag:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.ds-variety-video-wrap {
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 9 / 16;
    max-height: 600px;
    margin: 0 auto;
}

.ds-variety-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .ds-variety {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 5rem 24px;
    }

    .ds-variety-content {
        text-align: center;
    }

    .ds-variety-content .ds-subtitle {
        text-align: center;
    }

    .ds-variety-tags {
        justify-content: center;
    }

    .ds-variety-video-wrap {
        max-height: 480px;
    }
}

/* -- Mission Section -- */
.ds-mission {
    padding: 0 24px 8rem;
    max-width: 72rem;
    margin: 0 auto;
    text-align: center;
}

.ds-mission-video {
    width: min(100%, 600px);
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 4rem;
    display: block;
}

.ds-mission-text {
    font-family: var(--font-body);
    font-size: clamp(1.4rem, 3.5vw, 2.8rem);
    font-weight: 500;
    letter-spacing: -0.5px;
    line-height: 1.35;
    max-width: 56rem;
    margin: 0 auto;
}

.ds-mission-text + .ds-mission-text {
    margin-top: 2.5rem;
    font-size: clamp(1.15rem, 2.5vw, 1.8rem);
}

.ds-word {
    opacity: 0.15;
    transition: opacity 0.2s ease;
    display: inline;
}

.ds-word.highlight {
    color: #ffffff;
}

/* -- Solution Section -- */
.ds-solution {
    padding: 8rem 24px 8rem;
    max-width: 80rem;
    margin: 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    text-align: center;
}

.ds-label {
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 1.5rem;
}

.ds-solution h2 {
    font-family: var(--font-body);
    font-size: clamp(2rem, 5vw, 3.8rem);
    font-weight: 500;
    letter-spacing: -1px;
    margin-bottom: 3rem;
}

.ds-solution-video {
    width: 100%;
    border-radius: 16px;
    aspect-ratio: 3 / 1;
    object-fit: cover;
    margin-bottom: 4rem;
}

.ds-heroes {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 4rem;
    padding: 0 1rem;
}

.ds-hero-char {
    width: 22%;
    max-width: 220px;
    height: auto;
    object-fit: contain;
    transition: transform 0.4s ease;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.5));
}

.ds-hero-char:hover {
    transform: translateY(-12px) scale(1.05);
}

.ds-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: left;
}

.ds-feature h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.ds-feature p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.6;
}

/* -- CTA Section -- */
.ds-cta {
    position: relative;
    padding: 8rem 24px;
    text-align: center;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.ds-cta-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.ds-cta-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1;
}

.ds-cta-content {
    position: relative;
    z-index: 10;
}

.ds-cta-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ds-cta-logo-inner {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.ds-cta h2 {
    font-family: var(--font-body);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 500;
    margin-bottom: 1rem;
}

.ds-cta .ds-subtitle {
    color: rgba(255, 255, 255, 0.55);
    font-size: 1.125rem;
    max-width: 28rem;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}

.ds-cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.ds-btn-primary {
    display: inline-block;
    background: #ffffff;
    color: #000000;
    border-radius: 10px;
    padding: 14px 32px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: transform 0.2s;
}

.ds-btn-primary:hover { transform: scale(1.03); }

.ds-btn-glass {
    display: inline-block;
    color: #ffffff;
    border-radius: 10px;
    padding: 14px 32px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: transform 0.2s;
}

.ds-btn-glass:hover { transform: scale(1.03); }

/* -- Dark Footer -- */
.ds-footer {
    padding: 3rem 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 80rem;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 1rem;
}

.ds-footer p {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.875rem;
}

.ds-footer-links {
    display: flex;
    gap: 2rem;
}

.ds-footer-links a {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.2s;
}

.ds-footer-links a:hover {
    color: #ffffff;
}

/* ================================================
   Legal / Impressum / Datenschutz pages
   ================================================ */

.legal-nav {
    padding: 1.5rem 2rem;
}

.legal-logo {
    font-family: 'Instrument Serif', serif;
    font-size: 1.4rem;
    color: #fff;
    text-decoration: none;
}

.legal-logo sup {
    font-size: 0.5em;
    vertical-align: super;
}

.legal-page {
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem 2rem 6rem;
}

.legal-hero {
    text-align: center;
    padding: 3rem 0 4rem;
}

.legal-illust {
    width: 120px;
    height: auto;
    margin-bottom: 2rem;
    filter: drop-shadow(0 8px 24px rgba(0,0,0,0.3));
}

.legal-title {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 400;
    color: #fff;
    margin: 0;
}

.legal-updated {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
}

.legal-content section {
    margin-bottom: 3rem;
}

.legal-content h2 {
    font-family: 'Inter', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.legal-content h3 {
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    margin: 1.5rem 0 0.5rem;
}

.legal-content p {
    font-size: 0.9rem;
    line-height: 1.75;
    color: rgba(255,255,255,0.6);
    margin: 0 0 0.75rem;
}

.legal-content a {
    color: rgba(255,255,255,0.8);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-content a:hover {
    color: #fff;
}

.legal-cta {
    text-align: center;
    padding: 3rem 0;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.legal-cta p {
    color: rgba(255,255,255,0.5);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.legal-cta-btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 999px;
    background: #fff;
    color: #000;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: transform 0.2s, opacity 0.2s;
}

.legal-cta-btn:hover {
    transform: scale(1.03);
    opacity: 0.9;
}

.legal-footer {
    padding: 2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.06);
    max-width: 720px;
    margin: 0 auto;
}

.legal-footer p {
    color: rgba(255,255,255,0.35);
    font-size: 0.8rem;
}

.legal-footer-links {
    display: flex;
    gap: 1.5rem;
}

.legal-footer-links a {
    color: rgba(255,255,255,0.35);
    font-size: 0.8rem;
    text-decoration: none;
}

.legal-footer-links a:hover {
    color: #fff;
}

/* ================================================
   Kontakt page
   ================================================ */

.kontakt-wrap {
    position: relative;
    z-index: 10;
    max-width: 1100px;
    margin: 0 auto;
    padding: 5rem 2rem 3rem;
    width: 100%;
}

.kontakt-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    padding: 0 0 3rem;
}

.kontakt-label {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: rgba(255,255,255,0.4);
    margin-bottom: 1rem;
}

.kontakt-title {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    color: #fff;
    line-height: 1.1;
    margin: 0 0 1.5rem;
}

.kontakt-desc {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.6);
    margin-bottom: 2.5rem;
}

.kontakt-channels {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.kontakt-channel {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.kontakt-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.kontakt-icon svg {
    width: 20px;
    height: 20px;
    color: rgba(255,255,255,0.5);
}

.kontakt-channel h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 0.25rem;
}

.kontakt-channel a,
.kontakt-channel p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    margin: 0;
}

.kontakt-channel a:hover {
    color: #fff;
}

.kontakt-visual {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
}

.kontakt-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kontakt-faq {
    padding: 4rem 0;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.kontakt-faq h2 {
    font-family: 'Instrument Serif', serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: #fff;
    margin: 0 0 2rem;
}

.kontakt-faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.kontakt-faq-item {
    padding: 1.5rem;
    border-radius: 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
}

.kontakt-faq-item h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 0.5rem;
}

.kontakt-faq-item p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.5);
    margin: 0;
}

/* ================================================
   Auth pages (login + check email)
   ================================================ */

.auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: #000;
}

.auth-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.auth-bg-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.8) 100%);
}

.auth-logo {
    position: absolute;
    top: 1.5rem;
    left: 2rem;
    z-index: 10;
    font-family: 'Instrument Serif', serif;
    font-size: 1.4rem;
    color: #fff;
    text-decoration: none;
}

.auth-logo sup {
    font-size: 0.5em;
    vertical-align: super;
}

.auth-center {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 420px;
    padding: 2rem;
}

.auth-glass {
    width: 100%;
    background: rgba(255,255,255,0.07);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
}

.auth-heading {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(1.6rem, 3vw, 2rem);
    font-weight: 400;
    color: #fff;
    margin: 0 0 0.6rem;
    line-height: 1.15;
}

.auth-heading .serif-accent {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-weight: 400;
}

.auth-sub {
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.55);
    margin: 0 0 1.75rem;
}

.auth-form-inner {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.auth-input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.06);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.auth-input::placeholder {
    color: rgba(255,255,255,0.3);
}

.auth-input:focus {
    border-color: rgba(255,255,255,0.4);
}

.auth-btn {
    width: 100%;
    padding: 14px;
    border-radius: 999px;
    border: none;
    background: #fff;
    color: #000;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s, opacity 0.15s;
    box-sizing: border-box;
}

.auth-btn:hover {
    transform: scale(1.02);
    opacity: 0.92;
}

.auth-trust {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin-top: 1.25rem;
    flex-wrap: wrap;
}

.auth-trust span {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.35);
    white-space: nowrap;
}


.auth-sent-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(76,175,80,0.15);
    color: #66bb6a;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

.auth-email {
    color: #fff;
    font-weight: 600;
}

.auth-steps {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin: 1.5rem 0;
    text-align: left;
}

.auth-step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.55);
}

.auth-step-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
    flex-shrink: 0;
}

.auth-hint-small {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.3);
    margin: 0 0 0.5rem;
    line-height: 1.5;
}

.auth-back {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.35);
    text-decoration: none;
}

.auth-back:hover {
    color: #fff;
}

.auth-alt {
    margin-top: 1.25rem;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.35);
}

.auth-alt a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-weight: 500;
}

.auth-alt a:hover {
    color: #fff;
}

@media (max-width: 480px) {
    .auth-glass { padding: 2rem 1.5rem; }
    .auth-char { width: 60px; }
}

.kontakt-form {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 2rem;
}

.kontakt-field {
    margin-bottom: 1.25rem;
}

.kontakt-field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255,255,255,0.5);
    margin-bottom: 0.4rem;
    letter-spacing: 0.02em;
}

.kontakt-field input,
.kontakt-field textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.04);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.kontakt-field input::placeholder,
.kontakt-field textarea::placeholder {
    color: rgba(255,255,255,0.25);
}

.kontakt-field input:focus,
.kontakt-field textarea:focus {
    border-color: rgba(255,255,255,0.3);
}

.kontakt-field textarea {
    resize: vertical;
    min-height: 120px;
}

.kontakt-submit {
    width: 100%;
    padding: 14px;
    border-radius: 999px;
    border: none;
    background: #fff;
    color: #000;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
}

.kontakt-submit:hover {
    transform: scale(1.02);
    opacity: 0.9;
}

.kontakt-error {
    background: rgba(220,53,69,0.15);
    border: 1px solid rgba(220,53,69,0.3);
    color: #ff6b7a;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
}

.kontakt-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 320px;
}

.kontakt-success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(46,125,50,0.15);
    color: #4caf50;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.kontakt-success h2 {
    font-family: 'Instrument Serif', serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: #fff;
    margin: 0 0 0.5rem;
}

.kontakt-success p {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .kontakt-wrap { padding: 4rem 1.5rem 2rem; }
    .kontakt-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 0 2rem;
    }

    .kontakt-visual {
        max-width: 240px;
        margin: 0 auto;
    }

    .kontakt-faq-grid {
        grid-template-columns: 1fr;
    }

    .legal-footer {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
}

/* -- Dark sections responsive -- */
@media (max-width: 768px) {
    .ds-search { padding-top: 6rem; }

    .ds-cards-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        max-width: 280px;
    }

    .ds-features {
        grid-template-columns: 1fr 1fr;
    }

    .ds-cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .ds-footer {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .ds-features {
        grid-template-columns: 1fr;
    }
}

/* ==============================
   Public Story Page
   ============================== */
.sp-page {
    background: #000;
    color: #fff;
    min-height: 100vh;
    font-family: var(--font-body);
}

.sp-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 2rem;
    position: relative;
    z-index: 10;
}

.sp-logo {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: #fff;
    text-decoration: none;
}

.sp-back {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.sp-back:hover { color: #fff; }

.sp-cover {
    position: relative;
    width: 100%;
    max-height: 420px;
    overflow: hidden;
    margin-top: -4rem;
}

.sp-cover img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
}

.sp-cover-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, #000 0%, transparent 100%);
}

.sp-content {
    max-width: 680px;
    margin: -3rem auto 0;
    padding: 0 24px 4rem;
    position: relative;
    z-index: 5;
}

.sp-badge {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    margin-bottom: 1rem;
}

.sp-title {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 400;
    font-style: italic;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

.sp-voice {
    color: rgba(255,255,255,0.5);
    font-size: 0.875rem;
    margin-bottom: 2rem;
}

.sp-player {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2.5rem;
}

.sp-player-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sp-play {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff;
    color: #000;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.sp-play:hover { transform: scale(1.06); }

.sp-player-track { flex: 1; }

.sp-progress {
    height: 4px;
    background: rgba(255,255,255,0.15);
    border-radius: 2px;
    cursor: pointer;
    margin-bottom: 6px;
}

.sp-progress-fill {
    height: 100%;
    background: #fff;
    border-radius: 2px;
    width: 0;
    transition: width 0.1s linear;
}

.sp-time {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
}

.sp-replay {
    background: none;
    border: none;
    color: rgba(255,255,255,0.4);
    font-size: 1.4rem;
    cursor: pointer;
    transition: color 0.2s;
}

.sp-replay:hover { color: #fff; }

.sp-cast {
    background: none;
    border: none;
    color: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: color 0.2s;
    padding: 4px;
    display: flex;
    align-items: center;
}
.sp-cast:hover { color: #fff; }
.sp-cast-active { color: var(--color-primary); }
.sp-cast-active:hover { color: var(--color-primary); }

.sp-text-toggle {
    margin-bottom: 3rem;
}

.sp-text-toggle summary {
    cursor: pointer;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.5);
    padding: 0.75rem 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    list-style: none;
}

.sp-text-toggle summary::-webkit-details-marker { display: none; }
.sp-text-toggle summary::before {
    content: '+ ';
    font-weight: 600;
}
.sp-text-toggle[open] summary::before { content: '− '; }

.sp-text p {
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
    line-height: 1.8;
    margin: 1.25rem 0;
}

.sp-cta {
    text-align: center;
    padding: 3rem 1.5rem;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    background: rgba(255,255,255,0.02);
}

.sp-cta-text {
    color: rgba(255,255,255,0.6);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.sp-cta-text strong { color: #fff; }

.sp-cta-btn {
    display: inline-block;
    background: #fff;
    color: #000;
    padding: 14px 32px;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: transform 0.2s;
}

.sp-cta-btn:hover { transform: scale(1.03); }

.sp-footer {
    text-align: center;
    padding: 2rem;
    color: rgba(255,255,255,0.3);
    font-size: 0.8rem;
}

/* ==============================
   Streaming Devices (Landing)
   ============================== */
.ds-streaming {
    padding: 6rem 24px;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.ds-devices {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px 48px;
    max-width: 64rem;
    margin: 3rem auto 0;
}

.ds-device {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 80px;
}

.ds-device svg {
    width: 36px;
    height: 36px;
    color: rgba(255,255,255,0.45);
    transition: color 0.2s;
}

.ds-device span {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.35);
    font-weight: 400;
    letter-spacing: 0.02em;
}

.ds-device:hover svg { color: rgba(255,255,255,0.75); }
.ds-device:hover span { color: rgba(255,255,255,0.6); }

/* ==============================
   FAQ Section (Landing)
   ============================== */
.ds-faq {
    padding: 6rem 24px;
    max-width: 52rem;
    margin: 0 auto;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.ds-faq-list {
    margin-top: 3rem;
    text-align: left;
}

.ds-faq-item {
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.ds-faq-item summary {
    padding: 1.25rem 0;
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.ds-faq-item summary::after {
    content: '+';
    font-size: 1.4rem;
    font-weight: 300;
    color: rgba(255,255,255,0.35);
    flex-shrink: 0;
    transition: transform 0.2s;
}

.ds-faq-item[open] summary::after {
    content: '\2212';
}

.ds-faq-item summary::-webkit-details-marker {
    display: none;
}

.ds-faq-item p {
    padding: 0 0 1.25rem;
    font-size: 0.92rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.7;
}

/* ==============================
   Featured Stories Grid (Landing)
   ============================== */
.ds-stories {
    padding: 8rem 24px;
    max-width: 80rem;
    margin: 0 auto;
    border-top: 1px solid rgba(255,255,255,0.12);
    text-align: center;
}

.ds-stories h2 {
    font-family: var(--font-body);
    font-size: clamp(2rem, 5vw, 3.8rem);
    font-weight: 500;
    letter-spacing: -1px;
    margin-bottom: 1rem;
}

.ds-stories .ds-subtitle {
    margin-bottom: 4rem;
}

.ds-stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
    text-align: left;
}

.ds-story-card {
    display: block;
    text-decoration: none;
    color: #fff;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    transition: transform 0.3s, border-color 0.3s;
}

.ds-story-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,255,255,0.2);
}

.ds-story-card-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.ds-story-card-body {
    padding: 1rem 1.25rem 1.25rem;
}

.ds-story-card-body h3 {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 400;
    font-style: italic;
    margin-bottom: 0.35rem;
    line-height: 1.3;
}

.ds-story-card-meta {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
}

.ds-story-card-badge {
    display: inline-block;
    font-size: 0.65rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.06);
    padding: 4px 10px;
    border-radius: 999px;
    margin-top: 0.6rem;
}

@media (max-width: 768px) {
    .sp-nav { padding: 1rem 1.25rem; }
    .sp-cover img { height: 280px; }
    .sp-content { margin-top: -2rem; }

    .ds-streaming { padding: 4rem 20px; }
    .ds-devices { gap: 28px 32px; }
    .ds-device svg { width: 28px; height: 28px; }

    .ds-faq { padding: 4rem 20px; }
    .ds-faq-item summary { font-size: 0.92rem; }

    .ds-stories { padding: 5rem 24px; }
    .ds-stories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .ds-stories-grid {
        grid-template-columns: 1fr;
    }
}

/* ==============================
   Wizard (Onboarding Steps 1-5)
   ============================== */
body.wz-dark {
    background: linear-gradient(160deg, #080316 0%, #10062a 35%, #1a0f3d 65%, #0d0520 100%);
    color: #f0ecfa;
    min-height: 100vh;
}

.wz-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    background: #000;
}

.wz-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.wz-bg-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.78) 100%);
}

.wz-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px;
    position: relative;
    z-index: 10;
    z-index: 10;
}

.wz-logo {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: rgba(255,255,255,0.85);
    font-style: italic;
    text-decoration: none;
}

.wz-logo:hover { color: #fff; }
.wz-logo sup { font-size: 0.5em; }

.wz-dots {
    display: flex;
    gap: 8px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.wz-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    transition: background 0.4s, transform 0.4s;
}

.wz-dot.active {
    background: #fff;
    transform: scale(1.25);
}

.wz-close {
    font-size: 1.5rem;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    line-height: 1;
    transition: color 0.2s;
}

.wz-close:hover { color: #fff; }

.wz-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px 60px;
    position: relative;
    z-index: 10;
    position: relative;
}

#wz-form {
    width: 100%;
    max-width: 540px;
    position: relative;
    min-height: 420px;
}

/* Step transitions */
.wz-step {
    position: absolute;
    width: 100%;
    opacity: 0;
    transform: translateY(30px);
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(0.4,0,0.2,1), transform 0.5s cubic-bezier(0.4,0,0.2,1);
}

.wz-step.active {
    position: relative;
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.wz-step.wz-exit {
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
}

.wz-step.wz-enter-r {
    transform: translateY(30px);
    opacity: 0;
}

.wz-step.wz-enter-l {
    transform: translateY(30px);
    opacity: 0;
}

.wz-step-inner {
    text-align: center;
}

.wz-label {
    font-size: 0.7rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    margin-bottom: 16px;
    font-weight: 600;
}

.wz-heading {
    font-family: var(--font-body);
    font-size: clamp(1.8rem, 5vw, 2.6rem);
    font-weight: 500;
    letter-spacing: -0.5px;
    line-height: 1.2;
    margin-bottom: 12px;
    color: #fff;
}

.wz-heading em {
    font-family: var(--font-serif);
    font-style: italic;
    color: #fff;
}

.wz-sub {
    font-size: 1rem;
    color: rgba(255,255,255,0.72);
    margin-bottom: 40px;
    line-height: 1.5;
}

/* Name Input */
.wz-field {
    margin-bottom: 36px;
}

.wz-input {
    width: 100%;
    background: rgba(255,255,255,0.1);
    border: 1.5px solid rgba(255,255,255,0.22);
    border-radius: 14px;
    padding: 18px 22px;
    font-family: var(--font-body);
    font-size: 1.15rem;
    color: #fff;
    outline: none;
    transition: border-color 0.3s, background 0.3s;
    text-align: center;
}

.wz-input::placeholder {
    color: rgba(255,255,255,0.4);
}

.wz-input:focus {
    border-color: rgba(255,255,255,0.45);
    background: rgba(255,255,255,0.12);
}

/* Options (Age, Length) */
.wz-options {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.wz-option {
    background: rgba(255,255,255,0.07);
    border: 1.5px solid rgba(255,255,255,0.18);
    border-radius: 14px;
    padding: 18px 28px;
    color: rgba(255,255,255,0.85);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 140px;
}

.wz-option:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

.wz-option.selected {
    background: rgba(255,255,255,0.15);
    border-color: #fff;
    color: #fff;
    box-shadow: 0 0 20px rgba(255,255,255,0.1);
}

.wz-option-label {
    font-weight: 600;
}

/* Length cards */
.wz-option-lg {
    padding: 24px 24px;
    min-width: 150px;
    gap: 6px;
}

.wz-option-time {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.5px;
}

.wz-option-desc {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.45);
}

.wz-option.selected .wz-option-desc {
    color: rgba(255,255,255,0.7);
}

/* Theme Pills */
.wz-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 36px;
}

.wz-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.07);
    border: 1.5px solid rgba(255,255,255,0.18);
    border-radius: 999px;
    padding: 12px 22px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255,255,255,0.8);
    cursor: pointer;
    transition: all 0.25s ease;
}

.wz-pill:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

.wz-pill.selected {
    background: rgba(255,255,255,0.15);
    border-color: #fff;
    color: #fff;
    box-shadow: 0 0 20px rgba(255,255,255,0.1);
}

.wz-pill-emoji {
    font-size: 1.2rem;
}

/* CTA Button */
.wz-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #fff;
    color: #111;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    padding: 16px 44px;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    min-width: 180px;
}

.wz-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    background: #f0f0f0;
}

.wz-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

.wz-btn-create {
    background: #fff;
    color: #111;
    padding: 18px 52px;
    font-size: 1.05rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.25);
}

.wz-btn-create:hover:not(:disabled) {
    box-shadow: 0 8px 36px rgba(0,0,0,0.35);
}

/* ==============================
   Generating / Loading (Step 6)
   ============================== */
.gen-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: transparent;
    position: relative;
    overflow: hidden;
}

body.wz-dark:has(.gen-page) {
    background: #0a0a1a;
}

.gen-page .wz-logo {
    color: rgba(0,0,0,0.8);
}
.gen-page .wz-logo:hover {
    color: #000;
}

.gen-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 0 24px 60px;
}

.gen-video-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.gen-video-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.15) 55%, rgba(255,255,255,0) 100%);
}

.gen-content {
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 440px;
}

.gen-pulse {
    width: 80px;
    height: 80px;
    margin: 0 auto 32px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gen-pulse-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(0,0,0,0.2);
    opacity: 0.4;
    animation: genPulse 2s ease-out infinite;
}

.gen-pulse-ring-2 {
    animation-delay: 1s;
}

@keyframes genPulse {
    0% { transform: scale(0.8); opacity: 0.5; }
    100% { transform: scale(2); opacity: 0; }
}

.gen-pulse-icon {
    font-size: 2rem;
    color: rgba(0,0,0,0.7);
    animation: genGlow 2s ease-in-out infinite alternate;
}

@keyframes genGlow {
    0% { opacity: 0.6; }
    100% { opacity: 1; }
}

.gen-title {
    font-family: var(--font-body);
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
    color: rgba(0,0,0,0.85);
}

.gen-sub {
    font-size: 0.95rem;
    color: rgba(0,0,0,0.55);
    margin-bottom: 36px;
}

.gen-stages {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
    text-align: left;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
}

.gen-stage {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    color: rgba(0,0,0,0.25);
    transition: color 0.4s;
}

.gen-stage.active {
    color: rgba(0,0,0,0.7);
}

.gen-stage.done {
    color: rgba(30,160,80,0.8);
}

.gen-stage-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0,0,0,0.12);
    flex-shrink: 0;
    transition: background 0.4s;
}

.gen-stage.active .gen-stage-dot {
    background: var(--color-primary);
    box-shadow: 0 0 8px rgba(108,92,231,0.5);
    animation: genDotPulse 1.5s ease-in-out infinite;
}

.gen-stage.done .gen-stage-dot {
    background: #2ed573;
    animation: none;
}

@keyframes genDotPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.gen-bar {
    width: 100%;
    max-width: 280px;
    height: 4px;
    background: rgba(0,0,0,0.1);
    border-radius: 99px;
    margin: 0 auto 16px;
    overflow: hidden;
    overflow: hidden;
}

.gen-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #6c5ce7 0%, #a78bfa 100%);
    border-radius: 99px;
    width: 0;
    transition: width 0.8s ease;
}

.gen-hint {
    font-size: 0.75rem;
    color: rgba(0,0,0,0.3);
}

/* ==============================
   Soft Paywall Overlay (Step 8)
   ============================== */
.pw-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(8,3,22,0.85);
    backdrop-filter: blur(12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.pw-overlay.visible {
    opacity: 1;
    pointer-events: all;
}

.pw-card {
    background: linear-gradient(145deg, #1e1050 0%, #2a1563 100%);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 24px;
    padding: 48px 36px;
    max-width: 440px;
    width: 100%;
    text-align: center;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}

.pw-overlay.visible .pw-card {
    transform: translateY(0);
}

.pw-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.3);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

.pw-close:hover { color: #fff; }

.pw-emoji {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.pw-title {
    font-family: var(--font-body);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #fff;
}

.pw-sub {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.6;
    margin-bottom: 32px;
}

.pw-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.pw-btn-primary {
    display: block;
    background: var(--color-primary);
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    padding: 16px 28px;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.25s ease;
    box-shadow: 0 4px 20px rgba(108,92,231,0.35);
}

.pw-btn-primary:hover {
    background: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(108,92,231,0.5);
    color: #fff;
}

.pw-btn-ghost {
    background: none;
    border: none;
    color: rgba(255,255,255,0.4);
    font-family: var(--font-body);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 8px;
    transition: color 0.2s;
}

.pw-btn-ghost:hover { color: rgba(255,255,255,0.7); }

.pw-trust {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.25);
}

/* ==============================
   Responsive — Wizard & Gen
   ============================== */
@media (max-width: 600px) {
    .wz-nav { padding: 16px 20px; }
    .wz-heading { font-size: 1.6rem; }
    .wz-option { min-width: 110px; padding: 14px 18px; }
    .wz-option-lg { min-width: 100%; }
    .wz-options-length { flex-direction: column; }
    .wz-pill { padding: 10px 16px; font-size: 0.85rem; }
    .wz-btn { padding: 14px 32px; min-width: 160px; }


    .pw-card { padding: 36px 24px; }
}
