/* Alara · zen sakura landing aesthetic */
@import url('https://fonts.googleapis.com/css2?family=Shippori+Mincho:wght@400;500;600;700&family=Lora:ital,wght@0,400;0,500;1,400&display=swap');

:root {
    --cream: #faf4eb;
    --cream-mid: #f3ebe0;
    --cream-deep: #e8ddd0;
    --blush: #e8c4c8;
    --sakura: #f2a7b8;
    --sakura-light: #ffd4de;
    --sakura-deep: #c96d84;
    --wood: #6b4f3a;
    --wood-dark: #3d2a1f;
    --ink: #3a2c2a;
    --ink-soft: #6e5c58;
    --ink-faint: #9a8884;
    --paper: rgba(255, 251, 246, 0.94);
    --paper-border: rgba(201, 109, 132, 0.18);
    --shadow-soft: 0 24px 80px rgba(61, 42, 31, 0.12);
    --shadow-card: 0 8px 32px rgba(61, 42, 31, 0.08);
    --font-display: 'Shippori Mincho', 'Times New Roman', serif;
    --font-body: 'Lora', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.zen-page {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    background: var(--cream);
}

/* —— atmospheric layers —— */
.zen-sky {
    position: fixed;
    inset: 0;
    z-index: 0;
    background-color: var(--cream);
    background-image:
        linear-gradient(
            105deg,
            rgba(250, 244, 235, 0.93) 0%,
            rgba(250, 244, 235, 0.78) 34%,
            rgba(250, 244, 235, 0.42) 52%,
            rgba(250, 244, 235, 0.12) 70%,
            transparent 88%
        ),
        radial-gradient(ellipse 90% 80% at 50% 100%, rgba(61, 42, 31, 0.14), transparent 55%),
        url('assets/zen-bg.png') center center / cover no-repeat;
}

@media (max-width: 767px) {
    .zen-sky {
        background-image:
            linear-gradient(
                180deg,
                rgba(250, 244, 235, 0.96) 0%,
                rgba(250, 244, 235, 0.88) 38%,
                rgba(250, 244, 235, 0.55) 62%,
                rgba(250, 244, 235, 0.2) 100%
            ),
            url('assets/zen-bg.png') center 30% / cover no-repeat;
    }
}

.zen-grain {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.35;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
}

.zen-vignette {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: radial-gradient(ellipse 70% 70% at 50% 50%, transparent 40%, rgba(61, 42, 31, 0.06) 100%);
}

/* —— falling sakura —— */
#sakura-canvas {
    position: fixed;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    overflow: hidden;
}

.sakura-petal {
    position: absolute;
    top: -24px;
    width: var(--petal-w, 14px);
    height: var(--petal-h, 12px);
    opacity: var(--petal-opacity, 0.7);
    animation: petal-fall var(--petal-duration, 14s) var(--petal-delay, 0s) linear infinite;
    will-change: transform;
}

.sakura-petal::before {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background: var(--petal-color, var(--sakura-light));
    border-radius: 50% 0 50% 50%;
    transform: rotate(45deg);
    box-shadow: inset -1px -1px 2px rgba(201, 109, 132, 0.15);
}

@keyframes petal-fall {
    0% {
        transform: translate3d(0, -5vh, 0) rotate(0deg) translateX(0);
        opacity: 0;
    }
    8% { opacity: var(--petal-opacity, 0.7); }
    90% { opacity: var(--petal-opacity, 0.5); }
    100% {
        transform: translate3d(var(--petal-drift, 80px), 105vh, 0) rotate(var(--petal-spin, 720deg)) translateX(var(--petal-sway, 40px));
        opacity: 0;
    }
}

/* SVG scene replaced by zen-bg.png */
.zen-scene {
    display: none;
}

/* —— layout shell —— */
.zen-shell {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(24px, 5vw, 48px) clamp(16px, 4vw, 32px);
    padding-bottom: clamp(48px, 8vh, 80px);
}

.zen-shell--waitlist {
    justify-content: flex-start;
    padding-top: clamp(32px, 6vh, 64px);
    padding-bottom: clamp(48px, 10vh, 120px);
}

/* —— washi paper card —— */
.washi-card {
    width: min(480px, 100%);
    background: var(--paper);
    border: 1px solid var(--paper-border);
    border-radius: 4px 4px 20px 20px;
    padding: clamp(28px, 5vw, 40px) clamp(24px, 4vw, 36px);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    position: relative;
    animation: card-rise 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.washi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 12%;
    right: 12%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--sakura), transparent);
    border-radius: 2px;
    opacity: 0.6;
}

.washi-card::after {
    content: '桜';
    position: absolute;
    top: 14px;
    right: 18px;
    font-family: var(--font-display);
    font-size: 0.75rem;
    color: var(--sakura-deep);
    opacity: 0.35;
    letter-spacing: 0.2em;
}

@keyframes card-rise {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: translateY(0); }
}

/* —— typography —— */
.zen-eyebrow {
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--sakura-deep);
    margin: 0 0 12px;
    animation: fade-in 0.9s 0.15s both;
}

.zen-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4.5vw, 2.35rem);
    font-weight: 600;
    line-height: 1.25;
    margin: 0 0 14px;
    color: var(--wood-dark);
    animation: fade-in 0.9s 0.25s both;
}

.zen-title em {
    font-style: normal;
    color: var(--sakura-deep);
}

.zen-lead {
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    color: var(--ink-soft);
    margin: 0 0 24px;
    animation: fade-in 0.9s 0.35s both;
}

.zen-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 20px 0;
    color: var(--ink-faint);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
}

.zen-divider::before,
.zen-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 109, 132, 0.25), transparent);
}

@keyframes fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* —— mark / logo —— */
.zen-mark {
    width: 52px;
    height: 52px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fade-in 0.8s both;
}
.zen-mark img { width: 100%; height: 100%; display: block; }

/* —— form elements —— */
.zen-label {
    display: block;
    font-family: var(--font-display);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin-bottom: 8px;
}

.zen-input {
    width: 100%;
    padding: 13px 16px;
    margin-bottom: 16px;
    border: 1px solid rgba(201, 109, 132, 0.2);
    border-radius: 8px;
    background: rgba(255, 252, 248, 0.9);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.zen-input::placeholder { color: var(--ink-faint); opacity: 0.7; }

.zen-input:focus {
    outline: none;
    border-color: var(--sakura);
    box-shadow: 0 0 0 3px rgba(242, 167, 184, 0.2);
}

.zen-btn {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    font-family: var(--font-display);
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: #fff;
    background: linear-gradient(135deg, var(--sakura-deep), #a8556d);
    box-shadow: 0 6px 24px rgba(201, 109, 132, 0.35);
    transition: transform 0.15s, box-shadow 0.15s;
}

.zen-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 28px rgba(201, 109, 132, 0.42);
}

.zen-btn:active { transform: translateY(0); }
.zen-btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.zen-link {
    color: var(--sakura-deep);
    text-decoration: none;
    border-bottom: 1px solid rgba(201, 109, 132, 0.35);
    transition: border-color 0.15s;
}

.zen-link:hover { border-color: var(--sakura-deep); }

.zen-foot {
    margin-top: 28px;
    font-size: 0.75rem;
    color: var(--ink-faint);
    text-align: center;
    line-height: 1.6;
}

/* —— counter / progress —— */
.zen-counter {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding: 14px 18px;
    background: rgba(242, 167, 184, 0.1);
    border: 1px solid rgba(201, 109, 132, 0.15);
    border-radius: 12px;
    animation: fade-in 0.9s 0.4s both;
}

.zen-counter-ring {
    position: relative;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
}

.zen-counter-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.zen-counter-ring circle.track {
    fill: none;
    stroke: rgba(201, 109, 132, 0.15);
    stroke-width: 3;
}

.zen-counter-ring circle.fill {
    fill: none;
    stroke: var(--sakura-deep);
    stroke-width: 3;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.6s ease;
}

.zen-counter-text strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--wood-dark);
}

.zen-counter-text span {
    font-size: 0.8rem;
    color: var(--ink-soft);
}

/* —— success state —— */
.zen-success {
    display: none;
    margin-top: 8px;
    padding: 22px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255, 212, 222, 0.35), rgba(242, 167, 184, 0.12));
    border: 1px solid rgba(201, 109, 132, 0.2);
    animation: card-rise 0.6s both;
}

.zen-success.show { display: block; }

.zen-success p { margin: 0 0 10px; font-size: 0.92rem; color: var(--ink-soft); }
.zen-success p:last-child { margin-bottom: 0; }

.zen-timer {
    font-family: var(--font-display);
    font-variant-numeric: tabular-nums;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--sakura-deep);
    letter-spacing: 0.05em;
}

.zen-prices {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(201, 109, 132, 0.12);
    font-size: 0.84rem;
    color: var(--ink-soft);
    line-height: 1.65;
}

.zen-prices strong {
    font-family: var(--font-display);
    color: var(--wood-dark);
    font-weight: 600;
}

.zen-err {
    color: #b44;
    font-size: 0.84rem;
    margin-top: 10px;
}

/* —— waitlist two-column —— */
.zen-hero {
    width: min(960px, 100%);
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(24px, 4vw, 40px);
    align-items: start;
}

@media (min-width: 768px) {
    .zen-hero {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
    .zen-hero-copy {
        padding-right: 20px;
    }
}

.zen-hero-copy .zen-title {
    font-size: clamp(2rem, 5vw, 2.75rem);
}

.zen-features {
    list-style: none;
    padding: 0;
    margin: 24px 0 0;
}

.zen-features li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--ink-soft);
    animation: fade-in 0.8s both;
}

.zen-features li:nth-child(1) { animation-delay: 0.45s; }
.zen-features li:nth-child(2) { animation-delay: 0.55s; }
.zen-features li:nth-child(3) { animation-delay: 0.65s; }

.zen-features li::before {
    content: '❀';
    position: absolute;
    left: 0;
    color: var(--sakura);
    font-size: 0.75rem;
}

.zen-contact {
    margin-top: 20px;
    font-size: 0.85rem;
    color: var(--ink-faint);
}

.zen-contact a {
    color: var(--sakura-deep);
    text-decoration: none;
}

/* —— donations —— */
.zen-donate {
    width: min(960px, 100%);
    margin-top: clamp(32px, 5vh, 48px);
    animation: fade-in 0.9s 0.5s both;
}

.zen-donate-card {
    background: var(--paper);
    border: 1px solid var(--paper-border);
    border-radius: 4px 4px 20px 20px;
    padding: clamp(24px, 4vw, 32px);
    box-shadow: var(--shadow-card);
}

.zen-donate-goal {
    margin-bottom: 18px;
}

.zen-donate-goal-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 10px;
    font-family: var(--font-display);
}

.zen-donate-goal-top strong {
    font-size: 1.15rem;
    color: var(--wood-dark);
}

.zen-donate-goal-top span {
    font-size: 0.82rem;
    color: var(--ink-faint);
}

.zen-donate-bar {
    height: 8px;
    border-radius: 999px;
    background: rgba(201, 109, 132, 0.12);
    overflow: hidden;
}

.zen-donate-bar-fill {
    height: 100%;
    width: 0%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--sakura), var(--sakura-deep));
    transition: width 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.zen-donate-presets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 18px 0 14px;
}

.zen-donate-preset {
    padding: 12px 8px;
    border-radius: 12px;
    border: 1px solid rgba(201, 109, 132, 0.22);
    background: rgba(255, 252, 248, 0.9);
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--wood-dark);
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, transform 0.15s;
}

.zen-donate-preset:hover,
.zen-donate-preset.active {
    border-color: var(--sakura-deep);
    background: rgba(255, 212, 222, 0.35);
    transform: translateY(-1px);
}

.zen-donate-custom {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.zen-donate-custom .zen-input {
    margin-bottom: 0;
    flex: 1;
}

.zen-donate-custom .zen-btn {
    width: auto;
    padding-left: 22px;
    padding-right: 22px;
    white-space: nowrap;
}

.zen-donate-note {
    margin-top: 12px;
    font-size: 0.78rem;
    color: var(--ink-faint);
    line-height: 1.5;
}

.zen-donate-thanks {
    display: none;
    margin-top: 14px;
    padding: 14px;
    border-radius: 12px;
    background: rgba(255, 212, 222, 0.3);
    border: 1px solid rgba(201, 109, 132, 0.2);
    font-size: 0.9rem;
    color: var(--ink-soft);
}

.zen-donate-thanks.show { display: block; }

/* FAQ — crawlable brand copy for search */
.zen-faq {
    width: min(960px, 100%);
    margin-top: clamp(28px, 4vh, 40px);
    animation: fade-in 0.9s 0.65s both;
}

.zen-faq-card {
    background: var(--paper);
    border: 1px solid var(--paper-border);
    border-radius: 4px 4px 20px 20px;
    padding: clamp(24px, 4vw, 36px);
    box-shadow: var(--shadow-card);
}

.zen-title--sm {
    font-size: clamp(1.35rem, 3vw, 1.65rem);
    margin-bottom: 10px;
}

.zen-lead--sm {
    font-size: 0.95rem;
    margin-bottom: 22px;
}

.zen-faq-list {
    margin: 0;
    display: grid;
    gap: 18px;
}

.zen-faq-item dt {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--wood-dark);
    margin-bottom: 6px;
}

.zen-faq-item dd {
    margin: 0;
    font-size: 0.92rem;
    color: var(--ink-soft);
    line-height: 1.6;
}

@media (max-width: 520px) {
    .zen-donate-presets { grid-template-columns: 1fr 1fr 1fr; }
    .zen-donate-custom { flex-direction: column; }
    .zen-donate-custom .zen-btn { width: 100%; }
}

/* maintenance pulse dot */
.zen-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    color: var(--sakura-deep);
    margin-bottom: 8px;
}

.zen-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--sakura);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

@media (prefers-reduced-motion: reduce) {
    .sakura-petal { animation: none; opacity: 0.4; }
    .washi-card, .zen-eyebrow, .zen-title, .zen-lead, .zen-counter, .zen-mark, .zen-features li {
        animation: none;
    }
    .zen-status-dot { animation: none; }
}
