/*
 * Sakuradate - urban glamour design system
 */

:root {
    --plum-950: #140a1c;
    --plum-900: #1a0f24;
    --plum-800: #2a1638;
    --plum-700: #3d1f4f;
    --plum-600: #5a2c6e;
    --navy: #1b2148;
    --rose: #ff5c95;
    --rose-soft: #ffd3e3;
    --rose-deep: #d6306f;
    --magenta: #a8155a;
    --gold: #e7c58b;
    --blush: #fbeef3;
    --blush-2: #f6e1eb;
    --lavender: #f1e8f5;
    --ink: #2b1a35;
    --muted: #5d4869;
    --on-dark: #ffffff;
    --on-dark-soft: #f3dce8;
    --online: #34d17a;

    --grad-cta: linear-gradient(135deg, #e23a7a 0%, #d6306f 45%, #a8155a 100%);
    --grad-band: linear-gradient(120deg, #3d1f4f 0%, #6a2264 55%, #8e1a5e 100%);
    --glass-bg: rgba(255, 255, 255, 0.62);
    --glass-border: rgba(255, 255, 255, 0.85);
    --shadow-soft: 0 18px 40px -18px rgba(61, 31, 79, 0.35);
    --glow-rose: 0 10px 30px -6px rgba(214, 48, 111, 0.55);

    --font-head: "Outfit", "Segoe UI", system-ui, -apple-system, sans-serif;
    --font-body: "DM Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --container: 1180px;
    --gutter: 16px;
    --section-y: 56px;
    --header-bottom: 64px;
    interpolate-size: allow-keywords;
}

/* ============ Safety net ============ */
*,
*::before,
*::after { box-sizing: border-box; }

img, video, iframe, embed, object, svg { max-width: 100%; height: auto; }

[class*="grid"] > *,
[class*="flex"] > * { min-width: 0; }

pre, code { max-width: 100%; overflow-x: auto; }

.table-wrapper,
[class*="table-"] { max-width: 100%; overflow-x: auto; }

p, li, td, th { overflow-wrap: break-word; }

details { height: fit-content; }

:where(p, li, blockquote, figcaption, dd, .prose, .seo-text, article) a:not([class]) {
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

input, textarea, select { max-width: 100%; }

section { overflow: clip; }

/* ============ Base ============ */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--ink);
    background: var(--blush);
    overflow-x: clip;
}

body.menu-open { overflow: hidden; }

h1, h2, h3 {
    font-family: var(--font-head);
    line-height: 1.15;
    margin: 0 0 0.6em;
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 1.3rem + 3.2vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.4rem); font-weight: 700; color: var(--plum-700); }
h3 { font-size: clamp(1.15rem, 1rem + 0.5vw, 1.35rem); font-weight: 700; color: var(--plum-700); }

p { margin: 0 0 1em; }

a { color: var(--rose-deep); }
a:hover { color: var(--magenta); }

:focus-visible {
    outline: 3px solid var(--rose);
    outline-offset: 3px;
    border-radius: 6px;
}

img { display: block; }

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.section {
    position: relative;
    padding-block: var(--section-y);
}

.section--tint { background: linear-gradient(180deg, var(--blush) 0%, var(--blush-2) 100%); }

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute;
    left: 12px; top: -60px;
    z-index: 200;
    padding: 10px 16px;
    background: var(--plum-900);
    color: #fff;
    border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; color: #fff; }

.glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.trust-line {
    margin: 12px 0 0;
    font-size: 0.875rem;
    color: var(--on-dark-soft);
}

.note {
    font-size: 0.9rem;
    color: var(--muted);
}
.note a { color: var(--magenta); }
.note a:hover { color: var(--plum-700); }

/* ============ Buttons ============ */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 26px;
    border: 0;
    border-radius: 999px;
    font-family: var(--font-head);
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
    -webkit-tap-highlight-color: transparent;
}

.btn--primary {
    color: #fff;
    background: var(--grad-cta);
    box-shadow: var(--glow-rose);
}
.btn--primary::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
    transform: translateX(-120%);
    animation: shimmer 4.5s ease-in-out infinite;
    pointer-events: none;
}
.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px -8px rgba(214, 48, 111, 0.7);
}
.btn:active { transform: translateY(0) scale(0.98); }

.btn--ghost {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.55);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.18); }

.btn--soft {
    color: var(--plum-700);
    background: #fff;
    box-shadow: inset 0 0 0 1.5px var(--rose-soft), var(--shadow-soft);
}
.btn--soft:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1.5px var(--rose), var(--shadow-soft); }

.btn--sm { min-height: 44px; padding: 10px 18px; font-size: 0.95rem; }
.btn--lg { min-height: 56px; padding: 16px 34px; font-size: 1.125rem; }

@keyframes shimmer {
    0%, 55% { transform: translateX(-120%); }
    80%, 100% { transform: translateX(120%); }
}

/* ============ Header ============ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    color: #fff;
}
.site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(26, 15, 36, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    z-index: -1;
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 64px;
    padding-inline: 12px;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    text-decoration: none;
    flex-shrink: 0;
}
.site-brand:hover { color: #fff; }
.site-brand__mark { width: 28px; height: 28px; transition: transform 0.5s ease; }
.site-brand:hover .site-brand__mark { transform: rotate(72deg); }
.site-brand__text {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.01em;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.header-actions .header-login { display: none; }
.header-actions .header-join { padding-inline: 16px; }

.menu-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
}
.menu-toggle__bar {
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.site-nav {
    position: fixed;
    top: var(--header-bottom);
    left: 0;
    right: 0;
    bottom: 0;
    height: auto;
    overflow-y: auto;
    background: var(--plum-900);
    padding: 20px var(--gutter) 32px;
    visibility: hidden;
    transform: translateY(-12px);
    transition: transform 0.25s ease, visibility 0.25s;
    z-index: 99;
}
.site-nav.is-open {
    visibility: visible;
    transform: none;
}

.site-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.site-nav__link {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 8px 4px;
    color: #fff;
    text-decoration: none;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1.15rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.site-nav__link:hover,
.site-nav__link[aria-current="page"] { color: var(--rose-soft); }

.site-nav__actions {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}
.site-nav__note {
    margin: 0;
    text-align: center;
    font-size: 0.875rem;
    color: var(--on-dark-soft);
}

@media (max-width: 359px) {
    .site-brand__text { font-size: 1.1rem; }
    .site-brand__mark { width: 24px; height: 24px; }
    .header-actions .header-join { padding-inline: 12px; font-size: 0.875rem; }
}

@media (min-width: 1024px) {
    .menu-toggle { display: none; }
    .header-actions .header-login { display: inline-flex; }
    .site-header__inner { padding-inline: var(--gutter); min-height: 72px; }

    .site-nav {
        position: static;
        visibility: visible;
        transform: none;
        background: none;
        padding: 0;
        overflow: visible;
        margin-inline: auto;
    }
    .site-nav__list { display: flex; gap: 6px; }
    .site-nav__link {
        min-height: 44px;
        padding: 8px 14px;
        border: 0;
        border-radius: 999px;
        font-size: 0.98rem;
        color: var(--on-dark-soft);
        transition: background-color 0.2s ease, color 0.2s ease;
    }
    .site-nav__link:hover,
    .site-nav__link[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, 0.1); }
    .site-nav__actions { display: none; }
}

/* ============ Sakura ornament ============ */
.sakura-ornament {
    position: absolute;
    z-index: 1;
    pointer-events: none;
    aspect-ratio: 1400 / 1000;
    background-image: url("/assets/ba21f69613898a67cfc740e04f7b759e.webp");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}
.sakura-ornament--tl { top: -30px; left: -70px; width: clamp(190px, 30vw, 420px); }
.sakura-ornament--top { top: -40px; left: 38%; width: clamp(120px, 16vw, 260px); transform: scaleX(-1); display: none; }
.sakura-ornament--left { top: 10%; left: -90px; width: clamp(180px, 22vw, 320px); }
.sakura-ornament--right { top: 6%; right: -100px; width: clamp(200px, 26vw, 380px); transform: scaleX(-1); }
.sakura-ornament--right-low { bottom: 0; right: -90px; width: clamp(180px, 22vw, 320px); transform: scaleX(-1) rotate(-12deg); }

@media (min-width: 768px) {
    .sakura-ornament--top { display: block; }
}

/* ============ Petals / snow ============ */
.petals {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}
.petal {
    position: absolute;
    top: -20px;
    width: 13px;
    height: 10px;
    border-radius: 70% 0 70% 0;
    background: linear-gradient(135deg, #ffd3e3, #ff8db5);
    opacity: 0.7;
    animation: petal-fall 16s linear infinite;
}
.petals--snow .petal {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #fff;
    opacity: 0.5;
    animation-duration: 12s;
}
.petal:nth-child(1) { left: 6%; animation-delay: -2s; }
.petal:nth-child(2) { left: 18%; animation-delay: -9s; animation-duration: 19s; }
.petal:nth-child(3) { left: 29%; animation-delay: -5s; }
.petal:nth-child(4) { left: 41%; animation-delay: -13s; animation-duration: 21s; }
.petal:nth-child(5) { left: 53%; animation-delay: -1s; animation-duration: 18s; }
.petal:nth-child(6) { left: 64%; animation-delay: -7s; }
.petal:nth-child(7) { left: 73%; animation-delay: -11s; animation-duration: 20s; }
.petal:nth-child(8) { left: 82%; animation-delay: -4s; }
.petal:nth-child(9) { left: 90%; animation-delay: -15s; animation-duration: 22s; }
.petal:nth-child(10) { left: 96%; animation-delay: -8s; }
.petal:nth-child(11) { left: 12%; animation-delay: -17s; }
.petal:nth-child(12) { left: 47%; animation-delay: -3s; animation-duration: 23s; }

@keyframes petal-fall {
    0% { transform: translate3d(0, -20px, 0) rotate(0deg); }
    100% { transform: translate3d(-140px, 110vh, 0) rotate(540deg); }
}

.is-paused .petal,
html.doc-hidden .petal,
html.doc-hidden .btn--primary::after,
html.doc-hidden .online-dot::after { animation-play-state: paused; }

/* ============ Hero ============ */
.hero {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    background: var(--plum-900);
    color: #fff;
}
.hero__media {
    order: 2;
    position: relative;
    height: 360px;
    background-image: var(--hero-bg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: var(--hero-pos-mobile);
}
.hero__media::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, var(--plum-900) 0%, rgba(26, 15, 36, 0) 28%);
}
.hero__inner {
    order: 1;
    position: relative;
    z-index: 2;
    padding-top: 48px;
    padding-bottom: 28px;
}
.hero__content { max-width: 580px; }
.hero__content h1 { color: #fff; }
.hero__content h2 {
    font-size: clamp(1.15rem, 1rem + 0.8vw, 1.5rem);
    color: var(--rose-soft);
    font-weight: 600;
}
.hero__content p { color: var(--on-dark-soft); font-size: 1.0625rem; }
.hero__content .btn { margin-top: 6px; }
.hero__content .online-strip { margin-top: 18px; }
.hero__content a:not([class]) { color: var(--rose-soft); }

.hero__wave {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    width: 100%;
    height: 56px;
    z-index: 3;
    display: block;
}

@media (min-width: 768px) {
    .hero__media { height: 440px; }
    .hero__wave { height: 80px; }
}

@media (min-width: 1024px) {
    .hero { min-height: 600px; justify-content: center; }
    .hero__media {
        position: absolute;
        inset: 0;
        height: auto;
        z-index: 0;
        background-position: var(--hero-pos);
    }
    .hero__media::before {
        background: linear-gradient(90deg, rgba(26, 15, 36, 0.95) 0%, rgba(26, 15, 36, 0.82) 34%, rgba(26, 15, 36, 0.2) 58%, rgba(26, 15, 36, 0) 72%);
    }
    .hero__inner { padding-top: 96px; padding-bottom: 140px; }
    .hero__wave { height: 110px; }
}

/* ============ Online strip ============ */
.online-strip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 0.95rem;
    font-weight: 500;
}
.online-strip__label { color: inherit; }

.online-dot {
    position: relative;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--online);
    flex-shrink: 0;
    display: inline-block;
}
.online-dot::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--online);
    animation: pulse 2.2s ease-out infinite;
}
.online-dot--sm { width: 9px; height: 9px; }

@keyframes pulse {
    0% { transform: scale(0.6); opacity: 0.9; }
    100% { transform: scale(1.6); opacity: 0; }
}

.avatar-stack { display: inline-flex; }
.avatar-stack img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    object-position: 50% 25%;
    border: 2px solid #fff;
    box-shadow: 0 0 12px rgba(255, 92, 149, 0.55);
}
.avatar-stack img + img { margin-left: -12px; }

/* ============ Section heading ============ */
.section-head {
    max-width: 720px;
    margin: 0 auto 32px;
    text-align: center;
}
.section-head__lead { color: var(--muted); font-size: 1.0625rem; margin: 0; }
.section-head__lead a { color: var(--magenta); }
.section-head__lead a:hover { color: var(--plum-700); }

/* ============ Carousel / profile cards ============ */
.carousel { position: relative; }
.carousel__track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 74%;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 4px;
    padding: 6px 4px 16px;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track > * { scroll-snap-align: start; }

.carousel__arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: none;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-top: -24px;
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    color: var(--rose-deep);
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
}
.carousel__arrow .icon { width: 22px; height: 22px; }
.carousel__arrow:hover { transform: scale(1.08); background: #fff; }
.carousel__arrow:disabled { cursor: default; color: #9c8aa6; transform: none; }
.carousel__arrow--prev { left: -8px; }
.carousel__arrow--next { right: -8px; }

@media (min-width: 600px) {
    .carousel__track { grid-auto-columns: calc((100% - 14px) / 2.2); }
}
@media (min-width: 1024px) {
    .carousel { padding-inline: 44px; }
    .carousel__arrow { display: grid; }
    .carousel__arrow--prev { left: 0; }
    .carousel__arrow--next { right: 0; }
    .carousel__track { grid-auto-columns: calc((100% - 3 * 16px) / 4); gap: 16px; }
}

.profile-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--plum-800);
    box-shadow: var(--shadow-soft);
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.profile-card:hover { transform: translateY(-6px) rotate(-0.6deg); box-shadow: 0 24px 44px -16px rgba(61, 31, 79, 0.5); }
.profile-card__img {
    width: 100%;
    aspect-ratio: 4 / 5;
    height: auto;
    object-fit: cover;
    object-position: 50% 25%;
}
.profile-card::after {
    content: "";
    position: absolute;
    inset: 55% 0 0;
    background: linear-gradient(180deg, rgba(42, 22, 56, 0) 0%, rgba(42, 22, 56, 0.92) 70%);
    pointer-events: none;
}
.profile-card__info {
    position: absolute;
    left: 14px;
    right: 64px;
    bottom: 12px;
    z-index: 2;
    color: #fff;
}
.profile-card__age {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.15rem;
}
.profile-card__vibe { margin: 0; font-size: 0.9rem; color: #fbe3ee; }
.profile-card__heart {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--grad-cta);
    color: #fff;
    cursor: pointer;
    box-shadow: var(--glow-rose);
    transition: transform 0.2s ease;
}
.profile-card__heart .icon { width: 22px; height: 22px; fill: currentColor; }
.profile-card__heart:hover { transform: scale(1.1); }
.profile-card__heart:active { animation: heart-pop 0.35s ease; }

@keyframes heart-pop {
    0% { transform: scale(1); }
    40% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* ============ Steps ============ */
.petal-badge {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 96px;
    height: 96px;
    flex-shrink: 0;
}
.petal-badge__shape {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 8px 14px rgba(214, 48, 111, 0.25));
    transition: transform 0.6s ease;
}
.petal-badge__inner {
    position: relative;
    color: var(--rose-deep);
    display: grid;
    place-items: center;
}
.petal-badge__inner .icon { width: 34px; height: 34px; }
.petal-badge__num {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--magenta);
}
.steps__item:hover .petal-badge__shape { transform: rotate(36deg); }

.steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 28px;
}
.steps__item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.steps__body { max-width: 320px; }
.steps__body h3 { margin: 12px 0 6px; }
.steps__body p { margin: 0; color: var(--muted); }

/* Flow: chevrons between items */
.steps--flow .steps__item + .steps__item::before {
    content: "";
    position: absolute;
    top: -24px;
    left: 50%;
    width: 12px;
    height: 12px;
    border-right: 2.5px solid var(--rose);
    border-bottom: 2.5px solid var(--rose);
    transform: translateX(-50%) rotate(45deg);
}

/* Timeline: dotted vertical line */
.steps--timeline { gap: 22px; }
.steps--timeline .steps__item {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: 16px;
}
.steps--timeline .petal-badge { width: 72px; height: 72px; }
.steps--timeline .petal-badge__num { font-size: 1.3rem; }
.steps--timeline .steps__body { max-width: none; padding-top: 6px; }
.steps--timeline .steps__body h3 { margin-top: 4px; }
.steps--timeline .steps__item:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 35px;
    top: 76px;
    bottom: -20px;
    border-left: 2px dotted var(--rose);
}

@media (min-width: 768px) {
    .steps--flow { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; gap: 40px; }
    .steps--flow .steps__item + .steps__item::before {
        top: 40px;
        left: -26px;
        transform: rotate(-45deg);
    }
}

/* ============ Plan table ============ */
.plan-table-wrap { overflow-x: auto; }
.plan-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.98rem;
}
.plan-table th,
.plan-table td {
    padding: 12px 10px;
    text-align: center;
}
.plan-table thead th {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.95rem;
}
.plan-table thead th:first-child { text-align: left; color: var(--plum-700); }
.plan-table tbody th {
    text-align: left;
    font-weight: 500;
    color: var(--ink);
}
.plan-table tbody tr:nth-child(odd) th,
.plan-table tbody tr:nth-child(odd) .plan-table__free { background: var(--lavender); }
.plan-table thead .plan-table__free {
    background: #e7dfea;
    color: var(--plum-700);
    border-radius: 10px 10px 0 0;
}
.plan-table .plan-table__free { width: 22%; color: var(--muted); background: rgba(231, 223, 234, 0.45); }
.plan-table .plan-table__premium {
    width: 24%;
    color: var(--rose-deep);
    background: rgba(255, 92, 149, 0.1);
}
.plan-table tbody tr:nth-child(odd) .plan-table__premium { background: rgba(255, 92, 149, 0.17); }
.plan-table thead .plan-table__premium {
    background: var(--grad-cta);
    color: #fff;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 -4px 20px -4px rgba(214, 48, 111, 0.55);
}
.plan-table thead .plan-table__premium .icon { display: block; width: 20px; height: 20px; margin: 0 auto 2px; }
.plan-table td .icon { width: 20px; height: 20px; display: inline-block; vertical-align: middle; stroke-width: 2.4; }
.plan-table tbody tr:last-child .plan-table__premium { border-radius: 0 0 10px 10px; }

/* ============ Generic data table ============ */
.data-table-wrap { overflow-x: auto; border-radius: var(--radius); }
.data-table {
    width: 100%;
    min-width: 640px;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.7);
}
.data-table th,
.data-table td {
    padding: 12px 14px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid rgba(61, 31, 79, 0.08);
}
.data-table thead th {
    background: var(--rose-deep);
    color: #fff;
    font-family: var(--font-head);
    font-weight: 700;
}
.data-table tbody tr:nth-child(even) { background: var(--lavender); }
.data-table tbody th { color: var(--plum-700); font-weight: 700; }
.data-table tbody th,
.data-table thead th:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
}
.data-table tbody th { background: #fdf6f9; }
.data-table tbody tr:nth-child(even) th { background: var(--lavender); }
.data-table tr.is-highlight,
.data-table tr.is-highlight th { background: #ffe3ee; }

/* ============ Icon list ============ */
.icon-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 16px;
}
.icon-list__item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.icon-tile {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 14px;
    background: #ffe1ec;
    color: var(--rose-deep);
    box-shadow: inset 0 0 0 1px rgba(255, 92, 149, 0.25);
}
.icon-tile .icon { width: 24px; height: 24px; }
.icon-list__body strong {
    display: block;
    font-family: var(--font-head);
    color: var(--plum-700);
    font-size: 1.05rem;
}
.icon-list__body p { margin: 2px 0 0; color: var(--muted); }

/* ============ Checklist ============ */
.checklist {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}
.checklist__item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.55);
}
.checklist__item:nth-child(even) { background: var(--lavender); }
.checklist__mark {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #ffe1ec;
    color: var(--rose-deep);
}
.checklist__mark svg { width: 18px; height: 18px; }
.checklist__path {
    stroke-dasharray: 24;
    stroke-dashoffset: 0;
}
.js .checklist.reveal:not(.is-visible) .checklist__path { stroke-dashoffset: 24; }
.checklist.is-visible .checklist__path { transition: stroke-dashoffset 0.6s ease; }
.checklist.is-visible .checklist__item:nth-child(2) .checklist__path { transition-delay: 0.1s; }
.checklist.is-visible .checklist__item:nth-child(3) .checklist__path { transition-delay: 0.2s; }
.checklist.is-visible .checklist__item:nth-child(4) .checklist__path { transition-delay: 0.3s; }
.checklist.is-visible .checklist__item:nth-child(5) .checklist__path { transition-delay: 0.4s; }
.checklist.is-visible .checklist__item:nth-child(n+6) .checklist__path { transition-delay: 0.5s; }
.checklist--flag .checklist__mark { background: #ffdce6; color: #c2185b; }
.checklist--flag .checklist__mark .icon { width: 16px; height: 16px; }
.checklist__text { padding-top: 3px; }

/* ============ Story cards ============ */
.story-grid {
    display: grid;
    gap: 36px 20px;
}
@media (min-width: 768px) {
    .story-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.story-card {
    position: relative;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 24px 20px 20px;
    overflow: visible;
    transition: transform 0.3s ease;
}
.story-card:hover { transform: translateY(-4px); }
.story-card__quote {
    position: absolute;
    top: -30px;
    left: 112px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 4.5rem;
    line-height: 1;
    color: var(--rose-deep);
    pointer-events: none;
}
.story-card__img {
    width: 88px;
    height: 88px;
    flex-shrink: 0;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 8px 22px -6px rgba(214, 48, 111, 0.55);
}
.story-card__body p { margin: 0; color: var(--ink); font-size: 0.98rem; }
.story-card__body .story-card__tag {
    margin-bottom: 4px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--magenta);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ============ FAQ ============ */
.faq {
    display: grid;
    gap: 12px;
    align-items: start;
}
.faq__col {
    display: grid;
    gap: 12px;
    align-content: start;
}
@media (min-width: 1024px) {
    .faq { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}
.faq__item {
    border-radius: 18px;
    background: rgba(241, 232, 245, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 6px 18px -12px rgba(61, 31, 79, 0.35);
}
.faq__item::details-content {
    height: 0;
    overflow: clip;
    transition: height 0.3s ease, content-visibility 0.3s allow-discrete;
}
.faq__item[open]::details-content { height: auto; }
.faq__q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 52px;
    padding: 12px 18px;
    cursor: pointer;
    list-style: none;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1.02rem;
    color: var(--plum-700);
    border-radius: 18px;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__chev {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--plum-700);
    transition: transform 0.3s ease;
}
.faq__item[open] .faq__chev { transform: rotate(180deg); }
.faq__a { padding: 0 18px 16px; }
.faq__a p { margin: 0; color: var(--muted); }

/* ============ CTA band ============ */
.cta-band {
    position: relative;
    isolation: isolate;
    background: var(--grad-band);
    color: #fff;
    padding-block: 64px;
}
.cta-band__media {
    position: relative;
    height: 260px;
    margin: -64px 0 32px;
    background-image: var(--band-bg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 30% 35%;
}
.cta-band__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(61, 31, 79, 0) 55%, #4b2058 100%);
}
.cta-band__inner { position: relative; z-index: 2; }
.cta-band__content { max-width: 560px; }
.cta-band h2 { color: #fff; }
.cta-band__text { color: var(--on-dark-soft); font-size: 1.0625rem; }
.cta-band__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}
.cta-band .online-strip { color: #fff; }
.cta-band .sakura-ornament--right { top: auto; bottom: -40px; }

@media (min-width: 1024px) {
    .cta-band { padding-block: 88px; }
    .cta-band--photo .cta-band__media {
        position: absolute;
        inset: 0;
        height: auto;
        margin: 0;
        z-index: 0;
        background-position: left center;
    }
    .cta-band--photo .cta-band__media::after {
        background: linear-gradient(90deg, rgba(61, 31, 79, 0) 25%, rgba(74, 32, 88, 0.9) 50%, #6a2264 70%, #8e1a5e 100%);
    }
    .cta-band--photo .cta-band__content { margin-left: auto; margin-right: 4%; }
}

/* ============ Footer ============ */
.site-footer {
    background: var(--plum-950);
    color: var(--on-dark-soft);
    padding-top: 48px;
}
.site-footer__inner {
    display: grid;
    gap: 32px;
}
.site-footer__tagline { margin: 12px 0 0; max-width: 340px; }
.site-footer__nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 2px;
}
.site-footer__nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: #fff;
    text-decoration: none;
}
.site-footer__nav a:hover { color: var(--rose-soft); text-decoration: underline; }
.site-footer__heading {
    margin: 0 0 8px;
    font-family: var(--font-head);
    font-weight: 700;
    color: #fff;
}
.site-footer__safety p:not(.site-footer__heading) { margin: 0; font-size: 0.95rem; }
.site-footer__bottom {
    margin-top: 32px;
    padding-top: 18px;
    padding-bottom: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.875rem;
}
.site-footer__bottom p { margin: 0; }

@media (min-width: 768px) {
    .site-footer__inner { grid-template-columns: 1.3fr 1fr 1.3fr; }
}

/* ============ Reveal ============ */
.js .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .reveal.is-visible {
    opacity: 1;
    transform: none;
}
.js .checklist.reveal { opacity: 1; transform: none; }

/* ============ Layout helpers ============ */
.split {
    display: grid;
    gap: 20px;
    align-items: start;
}
@media (min-width: 1024px) {
    .split { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
    :root { --section-y: 80px; --gutter: 24px; }
}

.panel { padding: 22px 18px; }
@media (min-width: 768px) {
    .panel { padding: 28px; }
}

/* ============ Homepage ============ */
.section > .container { position: relative; z-index: 2; }

.example-tag {
    display: table;
    margin: -12px auto 18px;
    padding: 4px 14px;
    border-radius: 999px;
    background: #fff;
    color: var(--plum-700);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: inset 0 0 0 1px var(--rose-soft);
}

.section-cta {
    display: flex;
    justify-content: center;
    margin-top: 36px;
}

.plan-note { margin: 16px 0 0; }
.panel h3 { margin-bottom: 16px; }

.december {
    position: relative;
    isolation: isolate;
    background: var(--navy);
    color: #fff;
}
.december__media {
    position: relative;
    height: 220px;
    background-image: url("/assets/16cbb1194849892209e9e719f6707a09.webp");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 18% 60%;
}
.december__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(27, 33, 72, 0) 45%, var(--navy) 100%);
}
.december__inner {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 16px;
    padding-top: 24px;
    padding-bottom: 56px;
}
.december__flake {
    width: 52px;
    height: 52px;
    color: #fff;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.65));
}
.december h2 { color: #fff; }
.december p { color: var(--on-dark-soft); font-size: 1.0625rem; }

@media (min-width: 768px) {
    .december__media { height: 300px; }
}

@media (min-width: 1024px) {
    .december__media {
        position: absolute;
        inset: 0;
        height: auto;
        z-index: 0;
        background-position: left center;
    }
    .december__media::after {
        background: linear-gradient(90deg, rgba(27, 33, 72, 0) 22%, rgba(27, 33, 72, 0.85) 44%, var(--navy) 58%);
    }
    .december__inner {
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        gap: 36px;
        padding-top: 72px;
        padding-bottom: 72px;
        padding-left: 36%;
    }
    .december__flake { width: 64px; height: 64px; }
}

/* ============ Login page ============ */
.proof-strip {
    display: grid;
    gap: 14px;
    margin-top: 22px;
}
.chip-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.chip-list li {
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 500;
}

/* ============ Reviews page ============ */
.verdict-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    max-width: 860px;
    margin-inline: auto;
    border-left: 4px solid var(--gold);
    box-shadow: -10px 0 30px -14px rgba(231, 197, 139, 0.7), var(--shadow-soft);
}
.verdict-card p:last-child { margin-bottom: 0; }
.icon-list--muted .icon-tile { background: var(--lavender); color: var(--plum-600); box-shadow: inset 0 0 0 1px rgba(90, 44, 110, 0.2); }
.reviews-note { max-width: 820px; margin: 24px auto 0; }
.data-table tbody th .icon { display: inline-block; width: 18px; height: 18px; margin-right: 6px; vertical-align: -3px; color: var(--rose-deep); }
.section--tint .panel .checklist { margin: 0; }

/* ============ Best apps page ============ */
.pick-card { border-top: 3px solid var(--gold); box-shadow: 0 -8px 24px -14px rgba(231, 197, 139, 0.8), var(--shadow-soft); }
.pick-card .petal-badge { width: 64px; height: 64px; margin-bottom: 8px; }
.pick-card p { margin: 0; color: var(--muted); }
.panel > .icon { width: 32px; height: 32px; color: var(--rose-deep); margin-bottom: 12px; }
.panel ul:not([class]) { padding-left: 20px; }

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .petals { display: none; }
    .online-dot::after { display: none; }
    .btn--primary::after { display: none; }
    .js .reveal { opacity: 1; transform: none; }
    .js .checklist.reveal:not(.is-visible) .checklist__path { stroke-dashoffset: 0; }
    .faq__item::details-content { transition: none; }
}