/* SnapsJo — Portrait Style Studio (themes page) */

.themes-page-body { background: var(--porcelain); }

.themes-page {
    --themes-nav-top: 72px;
    --themes-tools-height: 112px;
    --themes-panel-top: calc(var(--themes-nav-top) + var(--themes-tools-height));
    overflow-x: clip;
}

/* ── Compact step hero ────────────────────────────────────────────────── */
.themes-step-hero {
    padding: clamp(20px, 3vw, 32px) 0 clamp(16px, 2.5vw, 24px);
    background:
        radial-gradient(ellipse 65% 50% at 50% 0%, rgba(247, 214, 206, 0.35), transparent 55%),
        linear-gradient(180deg, var(--porcelain) 0%, #fffdfb 100%);
}

.themes-step-hero__shell {
    max-width: 720px;
    margin: 0 auto;
}

.themes-step-hero__copy {
    text-align: center;
}

.themes-step-hero__copy h1 {
    font-size: clamp(28px, 3.8vw, 40px);
    line-height: 1.1;
    margin: 10px auto 0;
    max-width: 22ch;
}

.themes-step-hero__lead {
    margin: 10px auto 0;
    font-size: clamp(14px, 1.4vw, 16px);
    color: var(--text-600);
    max-width: 44ch;
    line-height: 1.55;
}

.themes-step-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
    justify-content: center;
}

.themes-step-hero__actions .btn { min-height: 44px; }

.themes-support-chips {
    list-style: none;
    padding: 0;
    margin: 14px auto 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

.themes-support-chips li {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    border-radius: var(--r-pill);
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid var(--line-warm);
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-700);
}

.themes-support-chips svg {
    width: 13px;
    height: 13px;
    color: var(--clay);
    flex-shrink: 0;
}

.themes-step-receipt { display: flex; justify-content: flex-end; }

.themes-step-receipt__card {
    width: min(100%, 260px);
    padding: 16px 18px;
    border-radius: 8px;
    background: linear-gradient(180deg, #fffcf6 0%, var(--porcelain) 100%);
    border: 1px solid var(--line-warm);
    box-shadow: 0 12px 32px rgba(42, 33, 28, 0.08);
    position: relative;
}

.themes-step-receipt__card::before,
.themes-step-receipt__card::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 8px;
    background: radial-gradient(circle at 8px 0, var(--porcelain) 5px, transparent 5.5px);
    background-size: 16px 8px;
    background-repeat: repeat-x;
}

.themes-step-receipt__card::before { top: -4px; }
.themes-step-receipt__card::after  { bottom: -4px; transform: scaleY(-1); }

.themes-step-receipt__label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-500);
}

.themes-step-receipt__name {
    display: block;
    margin-top: 6px;
    font-family: 'Fraunces', Georgia, serif;
    font-size: 20px;
    color: var(--ink);
}

.themes-step-receipt__card .themes-badge { margin-top: 10px; }

.themes-step-receipt__next {
    margin: 12px 0 0;
    padding-top: 10px;
    border-top: 1px dashed var(--line-warm);
    font-size: 13px;
    color: var(--text-600);
}

.themes-step-receipt__next strong { color: var(--ink); }

/* ── Sticky progress + category tools ─────────────────────────────────── */
.themes-sticky-tools {
    position: sticky;
    top: var(--themes-nav-top);
    z-index: 30;
    background: rgba(250, 247, 242, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line-warm);
}

.themes-flow-bar {
    padding: 10px 0 0;
    border-bottom: 1px solid rgba(42, 33, 28, 0.06);
}

.themes-flow-bar__steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.themes-flow-bar__step {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: var(--r-pill);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-500);
    min-width: 0;
}

.themes-flow-bar__step.is-current {
    background: linear-gradient(135deg, rgba(231, 200, 115, 0.35), rgba(244, 184, 96, 0.2));
    color: var(--ink);
    border: 1px solid rgba(184, 121, 82, 0.25);
}

.themes-flow-bar__num {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--oat);
    font-size: 11px;
    font-weight: 700;
    color: var(--clay);
}

.themes-flow-bar__step.is-current .themes-flow-bar__num {
    background: var(--gold);
    color: var(--ink);
}

.themes-flow-bar__text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── Badges ───────────────────────────────────────────────────────────── */
.themes-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: var(--r-pill);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.themes-badge--now { background: var(--mint); color: var(--olive); }
.themes-badge--soon { background: var(--oat); color: var(--text-600); }

/* ── Category nav ─────────────────────────────────────────────────────── */
.theme-category-nav {
    padding: 10px 0 12px;
    background: transparent;
    border-bottom: 0;
    position: static;
}

.theme-category-nav__track {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 2px 0 4px;
}

.theme-category-nav__track::-webkit-scrollbar { display: none; }

.theme-category-chip {
    flex: 0 0 auto;
    scroll-snap-align: start;
    min-width: 168px;
    padding: 12px 16px;
    border-radius: 16px;
    border: 1px solid var(--line-warm);
    background: var(--paper);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color var(--t), box-shadow var(--t);
}

.theme-category-chip:hover,
.theme-category-chip:focus-visible {
    border-color: var(--clay);
    box-shadow: var(--sh);
}

.theme-category-chip.is-active {
    border-color: var(--gold);
    background: linear-gradient(180deg, #fff, var(--canvas));
    box-shadow: 0 8px 24px rgba(42, 33, 28, 0.1);
}

.theme-category-chip.is-soon { opacity: 0.9; }

.theme-category-chip__name {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.3;
}

.theme-category-chip__status {
    display: block;
    margin-top: 3px;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-500);
}

.theme-category-chip.is-active .theme-category-chip__status { color: var(--olive); }

/* ── Baby style studio ────────────────────────────────────────────────── */
.baby-style-section {
    padding: clamp(24px, 3vw, 36px) 0 clamp(32px, 4vw, 48px);
    background: var(--porcelain);
}

.baby-style-section__head {
    max-width: 560px;
    margin-bottom: clamp(16px, 2vw, 22px);
}

.baby-style-section__head h2 {
    font-size: clamp(24px, 2.8vw, 30px);
    margin: 0;
}

.baby-style-section__subtitle {
    margin-top: 6px;
    font-size: 15px;
    color: var(--text-600);
}

.baby-style-section__note {
    margin-top: 6px;
    font-size: 13px;
    color: var(--text-500);
}

.baby-style-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 32px;
    align-items: start;
}

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

/* Theme cards */
.baby-theme-card {
    border: 2px solid transparent;
    border-radius: 22px;
    background: var(--paper);
    box-shadow: var(--sh);
    cursor: pointer;
    transition: transform var(--t), box-shadow var(--t), border-color var(--t);
    outline: none;
}

.baby-theme-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--sh-warm);
}

.baby-theme-card:focus-visible {
    border-color: var(--clay);
    box-shadow: 0 0 0 3px rgba(184, 121, 82, 0.25);
}

.baby-theme-card.is-selected {
    border-color: var(--gold);
    box-shadow: 0 16px 40px rgba(42, 33, 28, 0.14);
}

.baby-theme-card__inner { overflow: hidden; border-radius: 20px; }

.baby-theme-card__preview-wrap {
    position: relative;
}

.baby-theme-card__preview-wrap > .themes-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
}

.baby-theme-card__selected-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    padding: 4px 10px;
    border-radius: var(--r-pill);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: var(--gold);
    color: var(--ink);
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity var(--t), transform var(--t);
}

.baby-theme-card.is-selected .baby-theme-card__selected-badge {
    opacity: 1;
    transform: translateY(0);
}

/* Portrait preview placeholders */
.baby-theme-preview {
    position: relative;
    background: var(--canvas);
}

.baby-theme-preview__mat {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 0;
}

.baby-theme-preview__mat::before {
    content: "";
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 12px;
    pointer-events: none;
    z-index: 2;
}

.baby-theme-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.baby-theme-card:hover .baby-theme-preview img { transform: scale(1.04); }

.baby-theme-preview__silhouette {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 36%, rgba(255, 244, 232, 0.95) 0 16%, transparent 17%),
        radial-gradient(ellipse 55% 40% at 50% 36%, rgba(255, 255, 255, 0.25) 0, transparent 100%),
        radial-gradient(ellipse 75% 55% at 50% 100%, rgba(42, 33, 28, 0.2), transparent 65%);
}

.baby-theme-preview__glow {
    position: absolute;
    inset: auto 15% 18%;
    height: 28%;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(255, 255, 255, 0.35), transparent 70%);
    filter: blur(8px);
    pointer-events: none;
}

.baby-theme-preview--moonlight-dream { background: linear-gradient(168deg, #3a4358 0%, #5c6880 42%, #c4b59a 100%); }
.baby-theme-preview--royal-baby-portrait { background: linear-gradient(168deg, #3d2a24 0%, #8a5a3a 48%, #e7c873 100%); }
.baby-theme-preview--angel-soft-portrait { background: linear-gradient(168deg, #faf6f0 0%, #f2e6d6 50%, #f7d6ce 100%); }
.baby-theme-preview--fairy-tale-baby { background: linear-gradient(168deg, #dde8d5 0%, #c5d4b8 45%, #f4b860 100%); }
.baby-theme-preview--birthday-studio { background: linear-gradient(168deg, #f7d6ce 0%, #f4b860 52%, #d9a6a0 100%); }
.baby-theme-preview--classic-newborn-studio { background: linear-gradient(168deg, #e8dcc8 0%, #f3e7d3 50%, #b87952 100%); }

.baby-theme-content {
    padding: 14px 16px 16px;
}

.baby-theme-content__title {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 17px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.25;
}

.baby-theme-content__desc {
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-600);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.baby-theme-content__best {
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.45;
    color: var(--text-600);
}

.baby-theme-content__best span {
    font-weight: 700;
    color: var(--text-700);
}

.baby-theme-card__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 4px;
}

.baby-theme-detail-link {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-500);
    text-decoration: underline;
    text-underline-offset: 2px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.baby-theme-detail-link:hover { color: var(--clay); }

.baby-theme-cta {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--clay);
    min-height: 44px;
}

.baby-theme-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
}

.baby-theme-tags__chip {
    padding: 3px 8px;
    border-radius: var(--r-pill);
    font-size: 10.5px;
    font-weight: 600;
    background: var(--canvas);
    color: var(--text-700);
}

.baby-theme-cta--selected {
    color: var(--ink);
    padding: 6px 12px;
    border-radius: var(--r-pill);
    background: rgba(231, 200, 115, 0.35);
    border: 1px solid rgba(184, 121, 82, 0.3);
}

.baby-theme-card.is-selected .baby-theme-cta { color: var(--ink); }

/* Selected style panel */
.selected-style-panel {
    position: sticky;
    top: var(--themes-panel-top);
}

.selected-style-card__free {
    display: inline-flex;
    margin-top: 8px;
}

.selected-style-card__change {
    margin-top: 6px;
    font-size: 11.5px;
    color: var(--text-500);
    text-align: center;
}

.selected-style-card {
    padding: 22px 20px;
    border-radius: 24px;
    background: linear-gradient(180deg, #fff 0%, var(--canvas) 100%);
    border: 1px solid var(--line-warm);
    box-shadow: 0 20px 48px var(--shadow);
}

.selected-style-card__eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-500);
}

.selected-style-card__name {
    margin-top: 8px;
    font-family: 'Fraunces', Georgia, serif;
    font-size: 24px;
    line-height: 1.15;
    color: var(--ink);
}

.selected-style-card__desc {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-600);
}

.selected-style-card__preview {
    margin-top: 16px;
    border-radius: 16px;
    padding: 8px;
    background: var(--paper);
    border: 1px solid var(--line-warm);
}

.selected-style-card__preview .baby-theme-preview__mat {
    border-radius: 10px;
}

.selected-style-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.selected-style-card__tags span {
    padding: 4px 9px;
    border-radius: var(--r-pill);
    font-size: 11px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid var(--line);
    color: var(--text-700);
}

.selected-style-card__best {
    margin-top: 14px;
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--text-600);
}

.selected-style-card__best strong {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-500);
    margin-bottom: 4px;
}

.selected-style-card__steps {
    margin-top: 16px;
    padding: 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid var(--line);
}

.selected-style-card__steps-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-500);
    margin-bottom: 8px;
}

.selected-style-card__steps ol {
    margin: 0;
    padding-left: 18px;
    font-size: 13px;
    color: var(--text-600);
    line-height: 1.55;
}

.selected-style-card__steps li + li { margin-top: 4px; }

.selected-style-card__continue {
    margin-top: 18px;
    min-height: 48px;
}

.selected-style-card__continue svg {
    width: 18px;
    height: 18px;
}

.selected-style-card__free-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 8px auto 0;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(46, 139, 87, 0.08);
    color: #1c5e3a;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    width: fit-content;
}

.selected-style-card__free-badge__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    background: #2e8b57;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
}

.baby-theme-card__free-note {
    margin: 8px 0 0;
    font-size: 11.5px;
    font-weight: 600;
    color: #1c5e3a;
    letter-spacing: 0.01em;
}

.selected-style-card__detail {
    margin-top: 10px;
}

.selected-style-card__note {
    margin-top: 10px;
    font-size: 12px;
    color: var(--text-500);
    text-align: center;
}

/* ── Next steps ───────────────────────────────────────────────────────── */
.next-steps-section {
    padding: clamp(24px, 3vw, 36px) 0;
    background: rgba(255, 255, 255, 0.6);
    border-top: 1px solid var(--line-warm);
}

.next-steps-section__head {
    max-width: 560px;
    margin-bottom: 20px;
}

.next-steps-section__head h2 {
    font-size: clamp(22px, 2.8vw, 28px);
}

.next-steps-section__head p {
    margin-top: 6px;
    color: var(--text-600);
    font-size: 15px;
}

.next-steps-section__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.next-steps-card {
    padding: 18px 16px;
    border-radius: 18px;
    background: var(--porcelain);
    border: 1px solid var(--line-warm);
}

.next-steps-card__icon {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: var(--canvas);
    color: var(--clay);
    margin-bottom: 10px;
}

.next-steps-card__icon svg { width: 18px; height: 18px; }

.next-steps-card h3 {
    font-size: 16px;
    margin-bottom: 4px;
}

.next-steps-card p {
    font-size: 13.5px;
    color: var(--text-600);
    line-height: 1.5;
}

.next-steps-card__num {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gold);
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 10px;
}

.next-steps-section__foot {
    margin-top: 20px;
    text-align: center;
}

/* ── Repeat-use strip ─────────────────────────────────────────────────── */
.theme-repeat-strip {
    padding: 12px 0;
    background: rgba(255, 255, 255, 0.55);
    border-bottom: 1px solid var(--line-warm);
}

.theme-repeat-strip__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.theme-repeat-strip__copy {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 10px;
    font-size: 14px;
    color: var(--text-600);
}

.theme-repeat-strip__copy strong { color: var(--ink); }

.theme-repeat-strip__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.theme-repeat-strip__credits {
    font-size: 12.5px;
    color: var(--text-600);
    padding: 6px 10px;
    border-radius: var(--r-pill);
    background: var(--porcelain);
    border: 1px solid var(--line-warm);
}

.theme-repeat-strip--guest p {
    margin: 0;
    font-size: 14px;
    color: var(--text-600);
}

.theme-repeat-strip--guest strong { color: var(--ink); }

/* ── Recently viewed ──────────────────────────────────────────────────── */
.theme-recent-section {
    padding: 12px 0 0;
    background: var(--porcelain);
}

.theme-recent-section__head h2 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-600);
    margin: 0 0 8px;
}

.theme-recent-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-bottom: 8px;
}

.theme-recent-chip {
    padding: 8px 14px;
    border-radius: var(--r-pill);
    border: 1px solid var(--line-warm);
    background: var(--paper);
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
    min-height: 44px;
}

.theme-recent-chip:hover {
    border-color: var(--gold);
}

/* ── Coming soon dialog ───────────────────────────────────────────────── */
.theme-soon-dialog {
    border: 0;
    border-radius: 20px;
    padding: 0;
    max-width: 420px;
    width: calc(100% - 32px);
    box-shadow: 0 24px 64px rgba(42, 33, 28, 0.2);
}

.theme-soon-dialog::backdrop {
    background: rgba(42, 33, 28, 0.45);
}

.theme-soon-dialog__inner {
    padding: 24px 22px;
}

.theme-soon-dialog__inner h2 {
    font-size: 22px;
    margin: 0;
}

.theme-soon-dialog__inner p {
    margin: 10px 0 0;
    color: var(--text-600);
    line-height: 1.55;
}

.theme-soon-dialog__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.theme-soon-dialog__actions .btn { min-height: 44px; flex: 1; justify-content: center; }

/* ── Future worlds shelf ──────────────────────────────────────────────── */
.future-worlds-section {
    padding: clamp(24px, 3vw, 36px) 0;
    background: var(--canvas);
    opacity: 0.95;
}

.future-worlds-section__head {
    max-width: 520px;
    margin-bottom: 14px;
}

.future-worlds-section__head h2 {
    font-size: clamp(20px, 2.4vw, 24px);
}

.future-worlds-section__head p {
    margin-top: 6px;
    font-size: 13.5px;
    color: var(--text-500);
}

.future-worlds-shelf {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.future-world-card {
    padding: 12px 10px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid var(--line-warm);
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 100px;
    opacity: 0.88;
    text-decoration: none;
    color: inherit;
    transition: border-color var(--t), opacity var(--t);
}

.future-world-card:hover {
    border-color: var(--clay);
    opacity: 1;
}

.future-world-card__icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: var(--oat);
    color: var(--clay);
}

.future-world-card__icon svg { width: 18px; height: 18px; }

.future-world-card__body h3 {
    font-size: 13.5px;
    line-height: 1.25;
}

.future-world-card__body p {
    margin-top: 3px;
    font-size: 12px;
    color: var(--text-600);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.future-worlds-section__foot {
    margin-top: 14px;
    text-align: center;
}

/* ── Pricing note ─────────────────────────────────────────────────────── */
.theme-pricing-section {
    padding: clamp(24px, 3vw, 36px) 0;
    background: var(--paper);
    border-top: 1px solid var(--line-warm);
}

.theme-pricing-section__copy h2 {
    font-size: clamp(20px, 2.4vw, 24px);
}

.theme-pricing-section__chips {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.theme-pricing-section__chips li {
    padding: 7px 12px;
    border-radius: var(--r-pill);
    background: var(--porcelain);
    border: 1px solid var(--line-warm);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-700);
}

.theme-pricing-section__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

.theme-pricing-section__actions .btn { min-height: 44px; }

.theme-pricing-section__inner {
    display: grid;
    gap: 18px;
}

.theme-pricing-section__copy h2 {
    font-size: clamp(22px, 2.8vw, 28px);
}

.theme-pricing-section__copy p {
    margin-top: 8px;
    max-width: 52ch;
    color: var(--text-600);
    line-height: 1.6;
}

.theme-pricing-section__cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.theme-pricing-section__card {
    padding: 14px 12px;
    border-radius: 14px;
    background: var(--porcelain);
    border: 1px solid var(--line);
}

.theme-pricing-section__card strong {
    display: block;
    font-family: 'Fraunces', Georgia, serif;
    font-size: 16px;
    color: var(--ink);
}

.theme-pricing-section__card span {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    color: var(--text-600);
}

.theme-pricing-section__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* ── FAQ ──────────────────────────────────────────────────────────────── */
.theme-faq-section {
    padding-top: clamp(32px, 4vw, 48px);
    padding-bottom: clamp(40px, 5vw, 64px);
    background: var(--porcelain);
}

.theme-faq-section__head h2 {
    font-size: clamp(22px, 2.8vw, 28px);
}

.theme-faq {
    margin-top: 18px;
    max-width: 720px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.theme-faq .faq__item {
    border: 1px solid var(--line-warm);
    border-radius: 14px;
    background: var(--paper);
    overflow: hidden;
}

.theme-faq .faq__item.is-open {
    border-color: var(--clay);
}

.theme-faq details.faq__item[open] {
    border-color: var(--clay);
}

.theme-faq .faq__q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 16px;
    border: 0;
    background: transparent;
    text-align: left;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
    min-height: 48px;
}

.theme-faq summary.faq__q {
    list-style: none;
}

.theme-faq summary.faq__q::-webkit-details-marker {
    display: none;
}

.theme-faq .faq__q svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--clay);
    transition: transform var(--t);
}

.theme-faq .faq__item.is-open .faq__q svg,
.theme-faq details.faq__item[open] .faq__q svg { transform: rotate(180deg); }

.theme-faq .faq__a {
    padding: 0 16px 14px;
    color: var(--text-600);
    font-size: 14px;
    line-height: 1.6;
}

/* ── Sticky mobile CTA ────────────────────────────────────────────────── */
.themes-sticky-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(250, 247, 242, 0.98);
    border-top: 1px solid var(--line-warm);
    backdrop-filter: blur(8px);
    transform: translateY(110%);
    transition: transform 0.28s ease;
}

.themes-sticky-cta__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    max-width: 640px;
    margin: 0 auto;
}

.themes-sticky-cta__selected {
    min-width: 0;
    flex: 1;
}

.themes-sticky-cta__label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-500);
}

.themes-sticky-cta__selected strong {
    display: block;
    font-family: 'Fraunces', Georgia, serif;
    font-size: 15px;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.themes-sticky-cta__btn {
    flex-shrink: 0;
    min-height: 48px;
    min-width: 120px;
    padding-left: 20px;
    padding-right: 20px;
}

.themes-sticky-cta.is-visible { transform: translateY(0); }

@media (max-width: 640px) {
    .themes-page-body.has-sticky-cta #main {
        padding-bottom: calc(72px + env(safe-area-inset-bottom, 0));
    }
    .themes-page-body.has-sticky-cta .site-footer {
        padding-bottom: calc(28px + 72px + env(safe-area-inset-bottom, 0));
    }
}

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .baby-style-layout {
        grid-template-columns: 1fr;
    }

    .selected-style-panel {
        position: static;
    }

    .future-worlds-shelf {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 960px) {
    .themes-step-hero__shell { grid-template-columns: 1fr; }
    .themes-step-hero__copy h1 { max-width: none; }
    .themes-step-receipt { justify-content: flex-start; }
    .themes-step-receipt__card { width: min(100%, 100%); }
    .next-steps-section__list { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .themes-page { --themes-nav-top: 64px; --themes-tools-height: 100px; --themes-panel-top: 64px; }
    .themes-flow-bar__text { font-size: 11px; }
    .theme-category-chip { min-width: 140px; padding: 10px 12px; }
    .baby-theme-grid { grid-template-columns: 1fr; }
    .selected-style-panel { display: none; }
    .themes-step-hero__actions { flex-direction: column; align-items: center; }
    .themes-step-hero__actions .btn { width: min(100%, 320px); }
    .theme-pricing-section__actions { flex-direction: column; }
    .theme-pricing-section__actions .btn { width: 100%; justify-content: center; }
    .future-worlds-shelf {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 8px;
        padding-bottom: 4px;
        scrollbar-width: none;
    }
    .future-worlds-shelf::-webkit-scrollbar { display: none; }
    .future-world-card {
        flex: 0 0 68%;
        scroll-snap-align: start;
        min-height: 0;
    }
}

@media (min-width: 641px) {
    .themes-sticky-cta { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
    .baby-theme-card,
    .baby-theme-preview img,
    .theme-category-chip,
    .themes-sticky-cta,
    .baby-theme-cta svg {
        transition: none;
    }
    .baby-theme-card:hover { transform: none; }
}

/* ── Style landing pages ──────────────────────────────────────────────── */
.style-landing-body { background: var(--porcelain); }

.style-landing-breadcrumb ol {
    list-style: none;
    padding: 16px 0 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 13px;
    color: var(--text-500);
}

.style-landing-breadcrumb li + li::before {
    content: "/";
    margin-right: 6px;
    color: var(--text-400, #aaa);
}

.style-landing-breadcrumb a { color: var(--clay); text-decoration: none; }
.style-landing-breadcrumb a:hover { text-decoration: underline; }

.style-landing-hero {
    padding-top: clamp(20px, 3vw, 36px);
    padding-bottom: clamp(24px, 4vw, 40px);
}

.style-landing-hero__grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(20px, 3vw, 36px);
    align-items: center;
}

.style-landing-hero__copy h1 {
    font-size: clamp(28px, 3.6vw, 42px);
    line-height: 1.12;
    margin-top: 8px;
}

.style-landing-hero__lead {
    margin-top: 12px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-600);
    max-width: 46ch;
}

.style-landing-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.style-landing-demo .baby-theme-preview {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--sh-warm);
}

.style-landing-details {
    padding-top: clamp(24px, 3vw, 40px);
    padding-bottom: clamp(24px, 3vw, 40px);
}

.style-landing-details__grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 28px;
    align-items: start;
}

.style-landing-details h2 {
    font-size: clamp(22px, 2.6vw, 28px);
}

.style-landing-best {
    margin-top: 12px;
    font-size: 15px;
    color: var(--text-600);
}

.style-landing-tip-card {
    padding: 22px 20px;
    border-radius: 20px;
    background: var(--paper);
    border: 1px solid var(--line-warm);
    box-shadow: var(--sh);
}

.style-landing-tip-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.style-landing-tip-card p {
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-600);
}

.style-landing-tip-card__note {
    margin-top: 10px;
    font-size: 12px;
    color: var(--text-500);
    text-align: center;
}

.style-landing-related {
    padding-top: clamp(24px, 3vw, 40px);
    padding-bottom: clamp(32px, 4vw, 48px);
}

.style-landing-related h2 {
    font-size: clamp(20px, 2.4vw, 26px);
    margin-bottom: 16px;
}

.style-landing-related__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    align-items: stretch;
}

.style-landing-related__card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 14px;
    border-radius: 16px;
    background: var(--paper);
    border: 1px solid var(--line-warm);
    color: inherit;
    transition: border-color var(--t), box-shadow var(--t);
}

.style-landing-related__card:hover {
    border-color: var(--gold);
    box-shadow: var(--sh);
}

.style-landing-related__preview {
    display: block;
    flex: 0 0 auto;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
}

.style-landing-related__preview .baby-theme-preview {
    width: 100%;
}

.style-landing-related__preview .baby-theme-preview__mat {
    aspect-ratio: 3 / 4;
}

.style-landing-related__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
}

.style-landing-related__body h3 {
    margin: 0 0 8px;
    font-family: 'Fraunces', Georgia, serif;
    font-size: 16px;
    line-height: 1.25;
}

.style-landing-related__body h3 a {
    color: inherit;
    text-decoration: none;
}

.style-landing-related__body h3 a:hover {
    color: var(--clay);
}

.style-landing-related__body p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-600);
}

.style-landing-related__desc {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.style-landing-related__best {
    margin-top: 8px !important;
    font-size: 12.5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.style-landing-related__actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
    padding-top: 14px;
}

.style-landing-related__actions .btn {
    width: 100%;
    justify-content: center;
}

.style-landing-related__card strong {
    display: block;
    font-family: 'Fraunces', Georgia, serif;
    font-size: 15px;
}

.style-landing-related__card span {
    display: block;
    margin-top: 4px;
    font-size: 12.5px;
    color: var(--text-600);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 960px) {
    .style-landing-hero__grid,
    .style-landing-details__grid {
        grid-template-columns: 1fr;
    }
    .style-landing-related__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .style-landing-related__grid { grid-template-columns: 1fr; }
    .theme-repeat-strip__inner { flex-direction: column; align-items: flex-start; }
}

/* Style landing: preserve .container horizontal inset (avoid padding shorthand override) */
.style-landing-page .container {
    padding-left: max(20px, env(safe-area-inset-left, 0px));
    padding-right: max(20px, env(safe-area-inset-right, 0px));
}

@media (max-width: 640px) {
    .style-landing-page .container {
        padding-left: max(18px, env(safe-area-inset-left, 0px));
        padding-right: max(18px, env(safe-area-inset-right, 0px));
    }
}

.style-landing-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--clay);
    margin-bottom: 8px;
}

.style-landing-hero__copy h1 { margin-top: 0; max-width: 18ch; }

.style-landing-trust {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.style-landing-trust li {
    font-size: 12.5px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(23, 20, 18, 0.08);
    color: var(--text-700);
}

.style-landing-hero__micro {
    margin-top: 12px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-500);
    max-width: 44ch;
}

.style-landing-demo__caption {
    margin: 10px 0 0;
    font-size: 12.5px;
    line-height: 1.45;
    color: var(--text-500);
}

.style-landing-demo .baby-theme-preview { max-height: min(72vh, 560px); }

.style-landing-quick {
    padding-top: 0;
    padding-bottom: clamp(24px, 3vw, 36px);
}

.style-landing-quick__box {
    background: var(--paper);
    border: 1px solid var(--line-warm);
    border-radius: 18px;
    padding: clamp(18px, 2.5vw, 28px);
    box-shadow: var(--sh);
}

.style-landing-quick__box h2 { font-size: clamp(20px, 2.4vw, 26px); margin: 0 0 10px; }
.style-landing-quick__box > p { margin: 0; line-height: 1.65; color: var(--text-600); max-width: 70ch; }

.style-landing-quick__facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0 0;
}

.style-landing-quick__fact { padding: 12px 14px; border-radius: 12px; background: var(--porcelain); }
.style-landing-quick__fact dt { font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-500); margin: 0; }
.style-landing-quick__fact dd { margin: 4px 0 0; font-size: 14px; font-weight: 600; }

.style-landing-creates,
.style-landing-photo,
.style-landing-steps,
.style-landing-audience,
.style-landing-details-table,
.style-landing-keepsake,
.style-landing-compare,
.style-landing-final {
    padding-top: clamp(24px, 3vw, 40px);
    padding-bottom: clamp(24px, 3vw, 40px);
}

.style-landing-creates__lead { margin: 0 0 18px; line-height: 1.65; color: var(--text-600); max-width: 68ch; }

.style-landing-copy-stack {
    display: grid;
    gap: 12px;
    max-width: 76ch;
}

.style-landing-copy-stack p {
    margin: 0;
    line-height: 1.7;
    color: var(--text-600);
}

.style-landing-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.style-landing-card {
    background: var(--paper);
    border: 1px solid var(--line-warm);
    border-radius: 14px;
    padding: 14px 16px;
}

.style-landing-card__label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-500);
    margin-bottom: 6px;
}

.style-landing-photo__grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 24px;
    align-items: start;
}

.style-landing-checklist { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.style-landing-checklist li { position: relative; padding-left: 22px; line-height: 1.5; color: var(--text-600); }
.style-landing-checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--clay); font-weight: 700; }

.style-landing-tip-card__policy { margin: 8px 0 0 !important; font-size: 12px; text-align: left; }
.style-landing-tip-card__policy a { color: var(--clay); }

.style-landing-steps__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }

.style-landing-step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    align-items: start;
    background: var(--paper);
    border: 1px solid var(--line-warm);
    border-radius: 14px;
    padding: 16px 18px;
}

.style-landing-step__num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--porcelain);
    font-weight: 700;
    color: var(--clay);
}

.style-landing-step h3 { margin: 0 0 4px; font-size: 16px; }
.style-landing-step p { margin: 0; line-height: 1.55; color: var(--text-600); }
.style-landing-steps__cta { margin-top: 18px; }

.style-landing-audience__intro { margin: 0 0 16px; line-height: 1.6; color: var(--text-600); max-width: 62ch; }

.style-landing-audience__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.style-landing-audience__col {
    background: var(--paper);
    border: 1px solid var(--line-warm);
    border-radius: 16px;
    padding: 18px 20px;
}

.style-landing-audience__col h3 { margin: 0 0 10px; font-size: 16px; }
.style-landing-audience__col ul { margin: 0; padding-left: 18px; color: var(--text-600); line-height: 1.55; }
.style-landing-audience__col--no { background: rgba(255, 255, 255, 0.65); }

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

.style-landing-moment-card {
    background: var(--paper);
    border: 1px solid var(--line-warm);
    border-radius: 16px;
    padding: 18px 20px;
}

.style-landing-moment-card h3 {
    margin: 0 0 8px;
    font-size: 16px;
}

.style-landing-moment-card p {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--text-600);
}

.style-landing-details-table__wrap {
    overflow-x: auto;
    border: 1px solid var(--line-warm);
    border-radius: 16px;
    background: var(--paper);
    box-shadow: var(--sh);
}

.style-landing-details-table table {
    width: 100%;
    border-collapse: collapse;
}

.style-landing-details-table th,
.style-landing-details-table td {
    padding: 13px 16px;
    border-bottom: 1px solid var(--line-warm);
    text-align: left;
    vertical-align: top;
}

.style-landing-details-table tr:last-child th,
.style-landing-details-table tr:last-child td {
    border-bottom: 0;
}

.style-landing-details-table th {
    width: 34%;
    background: var(--porcelain);
    color: var(--text-500);
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.style-landing-details-table td {
    color: var(--text-700);
    font-weight: 600;
}

.style-landing-keepsake {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 249, 242, 0.65));
}

.style-landing-compare__table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line-warm);
    border-radius: 14px;
    background: var(--paper);
}

.style-landing-compare__table { width: 100%; border-collapse: collapse; font-size: 14px; }
.style-landing-compare__table th,
.style-landing-compare__table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-warm); }
.style-landing-compare__table thead th { background: var(--porcelain); font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-500); }
.style-landing-compare__table tr.is-current { background: rgba(198, 137, 90, 0.08); }
.style-landing-compare__table a { color: var(--clay); text-decoration: none; font-weight: 600; }

.style-landing-compare__cards { display: none; gap: 12px; }
.style-landing-compare__card { background: var(--paper); border: 1px solid var(--line-warm); border-radius: 14px; padding: 14px 16px; }
.style-landing-compare__card.is-current { border-color: rgba(198, 137, 90, 0.35); background: rgba(198, 137, 90, 0.06); }
.style-landing-compare__card h3 { margin: 0 0 8px; font-size: 16px; }
.style-landing-compare__card p { margin: 0 0 6px; font-size: 13px; line-height: 1.45; color: var(--text-600); }

.style-landing-final__box {
    text-align: center;
    background: var(--paper);
    border: 1px solid var(--line-warm);
    border-radius: 20px;
    padding: clamp(24px, 4vw, 40px);
}

.style-landing-final__box p { margin: 0 auto; max-width: 52ch; line-height: 1.6; color: var(--text-600); }
.style-landing-final__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
.style-landing-final__micro { margin-top: 12px !important; font-size: 13px; color: var(--text-500); }

@media (max-width: 960px) {
    .style-landing-photo__grid { grid-template-columns: 1fr; }
    .style-landing-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .style-landing-moment-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .style-landing-quick__facts { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .style-landing-cards,
    .style-landing-audience__grid,
    .style-landing-moment-grid { grid-template-columns: 1fr; }
    .style-landing-compare__table-wrap { display: none; }
    .style-landing-compare__cards { display: grid; }
    .style-landing-hero__actions .btn,
    .style-landing-final__actions .btn { width: 100%; justify-content: center; }
    .style-landing-demo .baby-theme-preview { max-height: 420px; }
}
