:root {
    --bg-page: #f9f2e6;
    --bg-soft: #f3e5d0;
    --bg-panel: rgba(255, 250, 245, 0.9);
    --bg-panel-strong: rgba(255, 247, 240, 0.98);
    --ink-900: #2f241d;
    --ink-700: #5c4c41;
    --ink-500: #88756a;
    --forest: #24453b;
    --forest-soft: #547568;
    --sunset: #c9714f;
    --gold: #f0cb89;
    --line: rgba(47, 36, 29, 0.09);
    --shadow: 0 24px 60px rgba(76, 52, 31, 0.12);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.guest-body {
    margin: 0;
    font-family: 'Manrope', sans-serif;
    color: var(--ink-900);
    line-height: 1.6;
    background:
        radial-gradient(circle at top left, rgba(201, 113, 79, 0.18), transparent 28%),
        radial-gradient(circle at top right, rgba(84, 117, 104, 0.18), transparent 24%),
        linear-gradient(180deg, #fffaf4 0%, var(--bg-page) 100%);
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
}

.public-container {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
}

.public-main {
    padding-bottom: 2rem;
}

.public-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(18px);
    background: rgba(36, 69, 59, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.public-nav__inner {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
}

.public-nav__brand {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(1.45rem, 3vw, 2rem);
    line-height: 1;
    color: #fff7ef;
    text-decoration: none;
    letter-spacing: 0.02em;
    max-width: 260px;
}

.public-nav__toggle {
    display: none;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: transparent;
    color: #fff7ef;
    padding: 0.7rem 1rem;
    font-weight: 800;
    cursor: pointer;
}

.public-nav__menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.public-nav__links,
.public-nav__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.95rem;
}

.public-nav__links a,
.public-nav__actions a {
    color: rgba(255, 247, 239, 0.88);
    text-decoration: none;
    font-weight: 700;
}

.public-nav__links a:hover,
.public-nav__actions a:hover {
    color: #ffffff;
}

.public-nav__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.75rem 1.2rem;
    border-radius: 999px;
    background: var(--gold);
    color: #2a1f18;
    font-weight: 800;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.14);
}

.public-section {
    padding: 4.5rem 0;
}

.public-section--tight {
    padding-top: 2rem;
}

.public-shell {
    padding: 2rem;
    border-radius: var(--radius-xl);
    background: var(--bg-panel);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.public-shell--soft {
    background: linear-gradient(180deg, rgba(255, 251, 247, 0.96), rgba(244, 232, 212, 0.92));
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: var(--ink-700);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section-title,
.page-hero__copy h1,
.page-banner h1,
.auth-copy h1,
.auth-card h1,
.status-card h1 {
    margin: 1rem 0 0.85rem;
    font-family: 'DM Serif Display', serif;
    line-height: 0.98;
    letter-spacing: -0.03em;
}

.section-title {
    font-size: clamp(2rem, 3.8vw, 3rem);
}

.section-intro,
.page-hero__copy p,
.page-banner p,
.feature-card p,
.timeline-card p,
.faq-card p,
.plan-card p,
.support-card p,
.auth-copy p,
.status-card p,
.detail-card p,
.quote-panel p {
    color: var(--ink-700);
}

.public-custom-content__paragraph {
    white-space: pre-line;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 4rem 0 3rem;
}

.page-hero::before,
.page-hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.page-hero::before {
    width: 360px;
    height: 360px;
    top: 32px;
    right: -120px;
    background: rgba(201, 113, 79, 0.16);
}

.page-hero::after {
    width: 260px;
    height: 260px;
    left: -90px;
    bottom: 0;
    background: rgba(84, 117, 104, 0.14);
}

.page-hero__grid,
.split-grid,
.plan-grid,
.feature-grid,
.detail-grid,
.quote-grid {
    display: grid;
    gap: 1.35rem;
}

.page-hero__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: center;
}

.page-hero__copy {
    position: relative;
    z-index: 1;
}

.page-hero__copy h1 {
    font-size: clamp(2.9rem, 7vw, 5rem);
}

.public-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.7rem;
}

.public-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0.9rem 1.45rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.public-button:hover {
    transform: translateY(-2px);
}

.public-button--primary {
    background: var(--forest);
    color: #fff8ef;
    box-shadow: 0 18px 32px rgba(36, 69, 59, 0.2);
}

.public-button--secondary {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--line);
    color: var(--ink-900);
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 2rem;
}

.metric-chip {
    padding: 0.9rem 1rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--line);
    color: var(--ink-700);
    font-weight: 700;
}

.hero-panel,
.detail-card,
.feature-card,
.timeline-card,
.plan-card,
.faq-card,
.support-card,
.quote-panel {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: 0 16px 28px rgba(76, 52, 31, 0.08);
}

.hero-panel {
    padding: 1.6rem;
}

.hero-panel__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.hero-panel__top strong {
    display: block;
    font-size: 1.15rem;
}

.hero-panel__top span {
    color: var(--ink-700);
    font-size: 0.94rem;
}

.hero-orbit {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #f3d395, #c9714f);
    box-shadow: 0 18px 32px rgba(201, 113, 79, 0.24);
}

.mini-stack,
.feature-grid,
.timeline-grid,
.faq-list,
.support-list {
    display: grid;
    gap: 1rem;
}

.mini-card,
.detail-card,
.feature-card,
.timeline-card,
.plan-card,
.faq-card,
.support-card {
    padding: 1.35rem;
}

.mini-card {
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid var(--line);
}

.mini-card strong,
.detail-card strong,
.timeline-card strong,
.support-card strong {
    display: block;
    margin-bottom: 0.35rem;
}

.split-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.timeline-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.plan-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.quote-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: stretch;
}

.feature-icon,
.step-number {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    font-weight: 800;
}

.feature-icon {
    margin-bottom: 0.9rem;
    background: linear-gradient(135deg, rgba(84, 117, 104, 0.2), rgba(201, 113, 79, 0.16));
    color: var(--forest);
}

.timeline-card__tag,
.plan-tag,
.support-tag {
    display: inline-flex;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(84, 117, 104, 0.12);
    color: #466355;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.step-list {
    display: grid;
    gap: 1rem;
    margin: 1.5rem 0 0;
    padding: 0;
    list-style: none;
}

.step-list li {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 0.95rem;
    align-items: start;
}

.step-number {
    background: var(--forest);
    color: #fff8ef;
}

.pill-list,
.check-list,
.faq-points {
    display: grid;
    gap: 0.75rem;
    margin: 1.2rem 0 0;
    padding: 0;
    list-style: none;
}

.pill-list li,
.check-list li,
.faq-points li {
    padding: 0.95rem 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--line);
}

.quote-panel {
    padding: 1.8rem;
    background: linear-gradient(135deg, rgba(36, 69, 59, 0.97), rgba(74, 110, 96, 0.94));
    color: #fff8ef;
}

.quote-panel p {
    color: rgba(255, 248, 239, 0.82);
}

.quote-panel h3 {
    margin: 0.9rem 0 1rem;
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2rem, 3vw, 2.6rem);
    line-height: 1.02;
}

.page-banner {
    padding: 3.2rem 0 1rem;
}

.page-banner__shell {
    padding: 2.2rem;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, rgba(36, 69, 59, 0.97), rgba(84, 117, 104, 0.95));
    color: #fff8ef;
    box-shadow: var(--shadow);
}

.page-banner p {
    color: rgba(255, 248, 239, 0.82);
    max-width: 720px;
}

.memory-tools {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.25rem;
}

.memory-note {
    margin: 0;
    color: var(--ink-700);
    font-size: 0.95rem;
}

.memory-code {
    display: inline-flex;
    padding: 0.2rem 0.45rem;
    border-radius: 8px;
    background: rgba(36, 69, 59, 0.08);
    font-family: inherit;
    font-weight: 800;
}

.memory-mode-switch {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.memory-mode-switch button,
.memory-nav button {
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--ink-900);
    padding: 0.7rem 1rem;
    font-family: inherit;
    font-weight: 800;
    cursor: pointer;
}

.memory-mode-switch button.is-active {
    background: var(--forest);
    color: #fff8ef;
}

.memory-gallery {
    padding: 1.35rem;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid var(--line);
}

.memory-view {
    display: none;
}

.memory-gallery[data-mode="carousel"] .memory-view--carousel,
.memory-gallery[data-mode="strip"] .memory-view--strip,
.memory-gallery[data-mode="scrapbook"] .memory-view--scrapbook {
    display: block;
}

.memory-carousel-layout {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
}

.memory-carousel-stage {
    position: relative;
    min-height: 420px;
}

.memory-slide {
    display: none;
}

.memory-slide.is-active {
    display: block;
}

.memory-strip-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(270px, 1fr);
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scroll-snap-type: x proximity;
}

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

.memory-card {
    display: grid;
    gap: 0.9rem;
    padding: 1rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid var(--line);
}

.memory-card__media {
    position: relative;
    aspect-ratio: 16 / 10;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(84, 117, 104, 0.4), rgba(201, 113, 79, 0.34));
}

.memory-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.memory-card__media--placeholder::before,
.memory-card__media--placeholder::after {
    content: '';
    position: absolute;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.4);
}

.memory-card__media--placeholder::before {
    width: 58px;
    height: 58px;
    top: 24%;
    left: calc(50% - 29px);
}

.memory-card__media--placeholder::after {
    width: 96px;
    height: 60px;
    bottom: 18%;
    left: calc(50% - 48px);
}

.memory-card__placeholder-label {
    display: none;
    position: absolute;
    inset: auto 1rem 1rem 1rem;
    padding: 0.7rem 0.9rem;
    border-radius: 14px;
    background: rgba(255, 248, 239, 0.82);
    color: var(--ink-700);
    font-weight: 800;
    text-align: center;
}

.memory-card__media--placeholder .memory-card__placeholder-label {
    display: block;
}

.memory-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    color: var(--ink-500);
    font-size: 0.92rem;
}

.memory-card h3 {
    margin: 0;
    font-size: 1.15rem;
}

.memory-card p {
    margin: 0;
    color: var(--ink-700);
}

.site-footer {
    padding: 2rem 0 3rem;
}

.site-footer__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    color: var(--ink-700);
}

.site-footer__brand {
    font-family: 'DM Serif Display', serif;
    font-size: 1.4rem;
    color: var(--ink-900);
}

.site-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.site-footer__links a {
    text-decoration: none;
    font-weight: 700;
}

.guest-auth .public-main {
    min-height: calc(100vh - 82px);
    display: flex;
    align-items: center;
}

.auth-stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
    gap: 1.35rem;
    align-items: center;
}

.auth-stage--form-only {
    display: flex;
    justify-content: center;
    padding: 3rem 0;
}

.auth-stage--form-only .auth-card {
    width: min(100%, 520px);
}

.auth-panel,
.auth-card,
.status-card {
    border-radius: var(--radius-xl);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.auth-panel {
    padding: 2.2rem;
    background: linear-gradient(140deg, rgba(36, 69, 59, 0.96), rgba(84, 117, 104, 0.92));
    color: #fff8ef;
}

.auth-copy p {
    color: rgba(255, 248, 239, 0.82);
}

.auth-highlights {
    display: grid;
    gap: 0.9rem;
    margin-top: 1.7rem;
}

.auth-highlights div {
    padding: 1rem;
    border-radius: 20px;
    background: rgba(255, 248, 239, 0.1);
    border: 1px solid rgba(255, 248, 239, 0.1);
}

.auth-card,
.status-card {
    background: var(--bg-panel-strong);
    padding: 2rem;
}

.auth-card h1,
.status-card h1 {
    font-size: clamp(2rem, 5vw, 2.8rem);
}

.auth-card .form-label {
    color: var(--ink-900);
    font-weight: 800;
}

.auth-card .form-control {
    min-height: 52px;
    border-radius: 16px;
    border-color: rgba(47, 36, 29, 0.12);
    padding: 0.9rem 1rem;
    box-shadow: none;
}

.auth-card .form-control:focus {
    border-color: rgba(36, 69, 59, 0.38);
    box-shadow: 0 0 0 0.2rem rgba(36, 69, 59, 0.08);
}

.password-field {
    position: relative;
}

.password-field .form-control {
    padding-right: 5.25rem;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 0.55rem;
    min-width: 4rem;
    padding: 0.45rem 0.7rem;
    transform: translateY(-50%);
    border: 0;
    border-radius: 11px;
    background: rgba(36, 69, 59, 0.09);
    color: var(--forest);
    font-family: inherit;
    font-size: 0.86rem;
    font-weight: 800;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.password-toggle:hover {
    background: var(--forest);
    color: #fff8ef;
}

.password-toggle:focus-visible {
    outline: 3px solid rgba(201, 113, 79, 0.35);
    outline-offset: 2px;
}

.auth-submit {
    width: 100%;
    border: 0;
}

.auth-link {
    margin-top: 1rem;
    color: var(--ink-700);
    text-align: center;
}

.auth-link a,
.status-card a {
    color: var(--forest);
    font-weight: 800;
}

.status-mark {
    width: 76px;
    height: 76px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(240, 203, 137, 0.36), rgba(201, 113, 79, 0.2));
    color: var(--sunset);
}

.status-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 1.4rem;
}

.status-actions a {
    text-decoration: none;
}

.alert {
    border-radius: 16px;
}

.not-found {
    padding-top: 5rem;
}

@media (max-width: 1080px) {
    .page-hero__grid,
    .quote-grid,
    .auth-stage {
        grid-template-columns: 1fr;
    }

    .feature-grid,
    .timeline-grid,
    .plan-grid,
    .detail-grid,
    .memory-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .public-nav__toggle {
        display: inline-flex;
    }

    .public-nav__menu {
        position: absolute;
        top: calc(100% - 1px);
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
        background: rgba(36, 69, 59, 0.97);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .public-nav.is-open .public-nav__menu {
        display: flex;
    }

    .public-nav__links,
    .public-nav__actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .public-nav__brand {
        max-width: 220px;
    }

    .split-grid,
    .feature-grid,
    .timeline-grid,
    .plan-grid,
    .detail-grid,
    .memory-grid {
        grid-template-columns: 1fr;
    }

    .memory-carousel-layout {
        grid-template-columns: 1fr;
    }

    .memory-nav {
        display: flex;
        justify-content: center;
        gap: 0.75rem;
    }
}

@media (max-width: 640px) {
    .public-section,
    .page-hero {
        padding: 3.25rem 0;
    }

    .public-shell,
    .page-banner__shell,
    .auth-panel,
    .auth-card,
    .status-card {
        padding: 1.4rem;
        border-radius: 24px;
    }

    .page-hero__copy h1 {
        font-size: 2.9rem;
    }

    .chip-row,
    .public-actions,
    .status-actions {
        gap: 0.75rem;
    }

    .memory-gallery {
        padding: 1rem;
    }

    .memory-strip-track {
        grid-auto-columns: minmax(230px, 1fr);
    }
}
