/* =======================================================
   AnimeWallet mini-site
   Mirrors the app: cream paper + serif headings by day,
   a starry night sky after dark, steel-blue buttons,
   soft chips and a floating glass tab bar. Paper-cut
   leaves and stars come from the app icon.
   ======================================================= */

:root {
    --maxw: 1160px;
    --gutter: clamp(16px, 5vw, 36px);
    --serif: ui-serif, "Newsreader", "New York", Georgia, "Times New Roman", serif;
    --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    /* From the icon */
    --violet: #6b35b8;
    --sun: #f2b431;
    --pink: #e8578a;
    --leaf: #5e9d4c;
    --leaf-light: #9fcd85;
    --leaf-dark: #3f7a37;

    --bg: #eef0f3;
    --bg-warm: #f7eedc;
    --paper: #fbfaf6;
    --paper-2: #f2f1ec;
    --ink: #1d2330;
    --ink-2: #555c6c;
    --ink-3: #8a8f9c;
    --gold: #8a6a2e;
    --steel: #3f5f8b;
    --steel-2: #5577a6;
    --steel-ink: #ffffff;
    --chip-green-bg: #e1eedc;
    --chip-green: #4b7a47;
    --chip-lav-bg: #e8e4f4;
    --chip-lav: #5a4b8c;
    --chip-grey-bg: #e4e5ea;
    --chip-grey: #4d5260;
    --line: rgba(29, 35, 48, 0.09);
    --shadow: 0 1px 2px rgba(29, 35, 48, 0.04), 0 20px 44px -20px rgba(29, 35, 48, 0.24);
    --glass: rgba(251, 250, 246, 0.74);
    --sparkle: #c19a4b;
    --night: 0;

    --focus-ring: var(--steel);
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --leaf: #4f8a43;
        --leaf-light: #7fb46a;
        --leaf-dark: #355f30;
        --bg: #0f1424;
        --bg-warm: #1c2446;
        --paper: #1a2133;
        --paper-2: #222a3f;
        --ink: #f1f2f6;
        --ink-2: #aab0c0;
        --ink-3: #737b8f;
        --gold: #d9b871;
        --steel: #b8d0ee;
        --steel-2: #d0e1f6;
        --steel-ink: #132036;
        --chip-green-bg: rgba(120, 180, 110, 0.16);
        --chip-green: #9fd39a;
        --chip-lav-bg: rgba(150, 130, 220, 0.2);
        --chip-lav: #cabdf5;
        --chip-grey-bg: rgba(255, 255, 255, 0.08);
        --chip-grey: #c6cad6;
        --line: rgba(255, 255, 255, 0.09);
        --shadow: 0 26px 52px -26px rgba(0, 0, 0, 0.75);
        --glass: rgba(26, 33, 51, 0.72);
        --sparkle: #ffffff;
        --night: 1;
        color-scheme: dark;
    }
}

:root[data-theme="dark"] {
    --leaf: #4f8a43;
    --leaf-light: #7fb46a;
    --leaf-dark: #355f30;
    --bg: #0f1424;
    --bg-warm: #1c2446;
    --paper: #1a2133;
    --paper-2: #222a3f;
    --ink: #f1f2f6;
    --ink-2: #aab0c0;
    --ink-3: #737b8f;
    --gold: #d9b871;
    --steel: #b8d0ee;
    --steel-2: #d0e1f6;
    --steel-ink: #132036;
    --chip-green-bg: rgba(120, 180, 110, 0.16);
    --chip-green: #9fd39a;
    --chip-lav-bg: rgba(150, 130, 220, 0.2);
    --chip-lav: #cabdf5;
    --chip-grey-bg: rgba(255, 255, 255, 0.08);
    --chip-grey: #c6cad6;
    --line: rgba(255, 255, 255, 0.09);
    --shadow: 0 26px 52px -26px rgba(0, 0, 0, 0.75);
    --glass: rgba(26, 33, 51, 0.72);
    --sparkle: #ffffff;
    --night: 1;
    color-scheme: dark;
}

body {
    position: relative;
    padding-bottom: 96px;
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.55;
    color: var(--ink);
    background-color: var(--bg);
    background-image:
        radial-gradient(56rem 34rem at 88% -6rem, var(--bg-warm), transparent 70%),
        radial-gradient(40rem 30rem at -8% 24rem, color-mix(in srgb, var(--violet) 7%, transparent), transparent 70%);
    background-repeat: no-repeat;
    transition:
        background-color 0.5s,
        color 0.5s;
}

/* Fine paper grain over everything */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 100;
    pointer-events: none;
    opacity: calc(0.55 - var(--night) * 0.35);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.35 0 0 0 0 0.3 0 0 0 0 0.2 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

svg {
    width: 1em;
    height: 1em;
    flex-shrink: 0;
}

main,
.footer {
    position: relative;
    z-index: 1;
}

.kicker {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
}

/* ---------- Sky ---------- */
.sky {
    position: absolute;
    inset: 0 0 auto;
    z-index: 0;
    height: 115vh;
    overflow: hidden;
    pointer-events: none;
}

.stars-layer {
    position: absolute;
    inset: 0;
    opacity: var(--night);
    transition: opacity 0.8s;
}

.star {
    position: absolute;
    top: var(--y);
    left: var(--x);
    width: var(--s);
    height: var(--s);
    border-radius: 50%;
    background: #fff;
    animation: twinkle var(--d) ease-in-out var(--delay) infinite;
}

.sparkle {
    position: absolute;
    top: var(--y);
    left: var(--x);
    width: var(--s);
    height: var(--s);
    background: var(--sparkle);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.5c.6 5.6 4.9 9.9 10.5 10.5-5.6.6-9.9 4.9-10.5 10.5C11.4 16.9 7.1 12.6 1.5 12 7.1 11.4 11.4 7.1 12 1.5Z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.5c.6 5.6 4.9 9.9 10.5 10.5-5.6.6-9.9 4.9-10.5 10.5C11.4 16.9 7.1 12.6 1.5 12 7.1 11.4 11.4 7.1 12 1.5Z'/%3E%3C/svg%3E") center / contain no-repeat;
    animation: twinkle var(--d) ease-in-out var(--delay) infinite;
}

@keyframes twinkle {
    0%,
    100% {
        opacity: 0.15;
        transform: scale(0.8);
    }
    50% {
        opacity: 0.95;
        transform: scale(1);
    }
}

.moon {
    position: absolute;
    top: 96px;
    right: 9%;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: radial-gradient(circle at 36% 34%, #f6f7fb, #c9cedd 75%);
    box-shadow: 0 0 50px rgba(220, 226, 242, 0.45);
    opacity: var(--night);
    transform: translateY(calc((1 - var(--night)) * 24px));
    transition:
        opacity 0.8s,
        transform 0.8s;
}

.shooting-star {
    position: absolute;
    top: 16%;
    left: 64%;
    width: 130px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, #fff, transparent);
    opacity: 0;
    transform: rotate(-22deg);
    animation: shoot 11s ease-in 4s infinite;
    visibility: hidden;
}

:root[data-theme="dark"] .shooting-star {
    visibility: visible;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .shooting-star {
        visibility: visible;
    }
}

@keyframes shoot {
    0% {
        opacity: 0;
        translate: 0 0;
    }
    2% {
        opacity: 1;
    }
    9% {
        opacity: 0;
        translate: -300px 120px;
    }
    100% {
        opacity: 0;
        translate: -300px 120px;
    }
}

/* ---------- Top bar ---------- */
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: color-mix(in srgb, var(--bg) 70%, transparent);
    -webkit-backdrop-filter: saturate(160%) blur(16px);
    backdrop-filter: saturate(160%) blur(16px);
    border-bottom: 1px solid var(--line);
    transition: background-color 0.5s;
}

.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 64px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
}

.brand img {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    box-shadow: 0 0 0 2px var(--paper), 0 6px 14px -6px rgba(60, 40, 90, 0.5);
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-btn {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--paper);
    color: var(--ink);
    font-size: 18px;
    transition: transform 0.3s;
}

.icon-btn:hover {
    transform: rotate(-15deg);
}

.theme-toggle .when-dark,
.theme-toggle[data-state="dark"] .when-light {
    display: none;
}

.theme-toggle[data-state="dark"] .when-dark {
    display: block;
}

.pill-link {
    padding: 8px 15px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--paper);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    white-space: nowrap;
}

.pill-link:hover {
    color: var(--steel);
}

/* ---------- Hero ---------- */
.hero {
    padding-block: clamp(40px, 7vw, 92px) clamp(32px, 5vw, 64px);
    overflow-x: clip;
    scroll-margin-top: 64px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: clamp(36px, 6vw, 72px);
}

.hero h1 {
    margin: 14px 0 20px;
    font-family: var(--serif);
    font-size: clamp(2.7rem, 6vw, 4.5rem);
    font-weight: 600;
    line-height: 1.04;
    letter-spacing: -0.02em;
}

.lead {
    max-width: 33em;
    font-size: clamp(1.05rem, 1.6vw, 1.18rem);
    line-height: 1.62;
    color: var(--ink-2);
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
}

.soon-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--steel-2), var(--steel));
    font-weight: 650;
    color: var(--steel-ink);
    box-shadow: 0 14px 28px -14px color-mix(in srgb, var(--steel) 90%, transparent);
}

.pulse {
    position: relative;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.pulse::after {
    content: "";
    position: absolute;
    inset: -4px;
    border: 2px solid currentColor;
    border-radius: 50%;
    animation: ping 1.8s ease-out infinite;
}

@keyframes ping {
    from {
        opacity: 0.8;
        transform: scale(0.6);
    }
    to {
        opacity: 0;
        transform: scale(1.8);
    }
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 11px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.chip svg {
    font-size: 13px;
}

.chip-green {
    background: var(--chip-green-bg);
    color: var(--chip-green);
}

.chip-lav {
    background: var(--chip-lav-bg);
    color: var(--chip-lav);
}

.chip-grey {
    background: var(--chip-grey-bg);
    color: var(--chip-grey);
}

.hero-badges .chip {
    padding: 8px 14px;
    font-size: 0.88rem;
}

.hero-notes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    margin-top: 26px;
    list-style: none;
    font-size: 0.92rem;
    color: var(--ink-2);
}

.hero-notes li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-notes svg {
    font-size: 15px;
    color: var(--gold);
}

/* Collage: icon, paper-cut sprigs and stars */
.hero-art {
    position: relative;
    justify-self: center;
    width: 100%;
    max-width: 480px;
    aspect-ratio: 1;
}

.hero-icon {
    position: absolute;
    top: 16%;
    left: 19%;
    width: 62%;
    height: auto;
    border-radius: 23%;
    box-shadow:
        0 0 0 7px var(--paper),
        0 36px 60px -24px rgba(60, 36, 100, 0.55);
    transform: rotate(-4deg);
    animation: bob 7s ease-in-out infinite;
}

@keyframes bob {
    0%,
    100% {
        translate: 0 0;
    }
    50% {
        translate: 0 -10px;
    }
}

.sprig {
    position: absolute;
    width: 22%;
    height: auto;
    aspect-ratio: 120 / 200;
    filter: drop-shadow(0 5px 3px rgba(20, 40, 10, 0.2));
    transform-origin: 50% 100%;
    animation: sway 6s ease-in-out infinite;
}

.sprig-a {
    bottom: 30%;
    left: -1%;
    rotate: -24deg;
}

.sprig-b {
    top: -6%;
    right: 3%;
    width: 19%;
    rotate: 150deg;
    animation-delay: -2s;
}

@keyframes sway {
    0%,
    100% {
        transform: rotate(-3deg);
    }
    50% {
        transform: rotate(4deg);
    }
}

.pstar {
    position: absolute;
    width: 9%;
    height: auto;
    aspect-ratio: 1;
    filter: drop-shadow(0 3px 2px rgba(0, 0, 0, 0.15));
    animation: spin-twinkle 8s ease-in-out infinite;
}

.pstar-a {
    top: 2%;
    left: 6%;
    fill: var(--sun);
}

.pstar-b {
    top: 46%;
    right: -1%;
    width: 7%;
    fill: var(--violet);
    animation-delay: -3s;
}

.pstar-c {
    right: 26%;
    bottom: 1%;
    width: 6%;
    fill: var(--leaf);
    animation-delay: -5s;
}

@keyframes spin-twinkle {
    0%,
    100% {
        transform: rotate(0) scale(1);
    }
    50% {
        transform: rotate(18deg) scale(1.12);
    }
}

/* ---------- Sections ---------- */
.section {
    padding-block: clamp(56px, 8vw, 104px);
    scroll-margin-top: 50px;
}

.section-head {
    margin-bottom: clamp(26px, 4vw, 40px);
}

.section-head h2,
.feature-copy h2 {
    margin-top: 10px;
    font-family: var(--serif);
    font-size: clamp(2.1rem, 4.8vw, 3.5rem);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.015em;
}

.section-head.centered {
    text-align: center;
}

.section-head.centered .section-lead {
    max-width: 36em;
    margin: 14px auto 0;
}

/* Feature rows: a paper-cut badge next to the text, alternating sides */
.feature-row {
    padding-block: clamp(40px, 6vw, 72px);
    overflow-x: clip;
    scroll-margin-top: 50px;
}

.feature-inner {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
    gap: clamp(32px, 6vw, 80px);
}

.feature-row-reverse .feature-art {
    order: 2;
}

.feature-copy > p:not(.kicker) {
    margin-top: 16px;
    font-size: 1.08rem;
    color: var(--ink-2);
}

.feature-copy b {
    color: var(--ink);
}

.feature-art {
    position: relative;
    justify-self: center;
    width: min(100%, 340px);
    aspect-ratio: 1;
}

.art-discover {
    --art-bg: color-mix(in srgb, var(--violet) 14%, var(--paper));
    --art-fg: var(--violet);
}

.art-lists {
    --art-bg: color-mix(in srgb, var(--leaf) 18%, var(--paper));
    --art-fg: var(--leaf);
}

.art-collections {
    --art-bg: color-mix(in srgb, var(--sun) 22%, var(--paper));
    --art-fg: var(--gold);
}

.art-friends {
    --art-bg: color-mix(in srgb, var(--pink) 15%, var(--paper));
    --art-fg: var(--pink);
}

/* A second paper layer peeking out behind the badge */
.feature-art::before {
    content: "";
    position: absolute;
    inset: 10%;
    border-radius: 50%;
    background: color-mix(in srgb, var(--art-fg) 24%, var(--paper));
    box-shadow: 0 10px 20px -12px rgba(0, 0, 0, 0.25);
    transform: translate(5%, 6%) rotate(8deg);
}

.art-badge {
    position: absolute;
    inset: 10%;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--art-bg);
    color: var(--art-fg);
    font-size: clamp(84px, 11vw, 120px);
    box-shadow:
        0 0 0 6px var(--paper),
        0 24px 40px -22px rgba(29, 35, 48, 0.45);
    transition: background-color 0.5s;
}

.art-badge svg {
    filter: drop-shadow(0 4px 2px rgba(0, 0, 0, 0.12));
}

.art-sprig {
    position: absolute;
    z-index: 1;
    bottom: 0;
    left: -4%;
    width: 26%;
    height: auto;
    aspect-ratio: 120 / 200;
    rotate: -20deg;
    filter: drop-shadow(0 5px 3px rgba(20, 40, 10, 0.2));
    transform-origin: 50% 100%;
    animation: sway 6s ease-in-out infinite;
}

.feature-row-reverse .art-sprig {
    right: -4%;
    left: auto;
    rotate: 20deg;
}

.art-star-a {
    top: 4%;
    right: 10%;
    width: 12%;
    fill: var(--sun);
}

.art-star-b {
    right: 2%;
    bottom: 12%;
    width: 8%;
    fill: var(--art-fg);
    animation-delay: -4s;
}

.feature-row-reverse .art-star-a {
    right: auto;
    left: 10%;
}

.feature-row-reverse .art-star-b {
    right: auto;
    left: 2%;
}

.ticks {
    display: grid;
    gap: 10px;
    margin-top: 22px;
    list-style: none;
}

.ticks li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 550;
}

.ticks svg {
    width: 22px;
    height: 22px;
    padding: 4px;
    border-radius: 50%;
    background: var(--steel);
    color: var(--steel-ink);
}

.paper-card {
    border: 1px solid var(--line);
    border-radius: 28px;
    background: var(--paper);
    box-shadow: var(--shadow);
    transition: background-color 0.5s;
}

.btn-steel {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 13px 16px;
    border-radius: 16px;
    font-weight: 650;
    text-decoration: none;
    transition:
        transform 0.15s,
        background-color 0.3s,
        color 0.3s,
        border-color 0.3s;
}

.btn-steel:active {
    transform: scale(0.97);
}

.btn-steel {
    background: linear-gradient(180deg, var(--steel-2), var(--steel));
    color: var(--steel-ink);
    box-shadow: 0 12px 24px -12px color-mix(in srgb, var(--steel) 90%, transparent);
}

/* ---------- Day & night scenes ---------- */
.scenes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.scene {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 6px;
    min-height: 280px;
    padding: 28px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.scene-day {
    --leaf: #5e9d4c;
    --leaf-light: #9fcd85;
    --leaf-dark: #3f7a37;
    background: radial-gradient(28rem 18rem at 85% 0, #fbe5bd, #f2f0ea 65%);
    color: #1d2330;
}

.scene-night {
    background: radial-gradient(28rem 18rem at 15% 0, #2a3563, #0f1424 70%);
    color: #f1f2f6;
}

.scene-sun,
.scene-moon {
    position: absolute;
    top: 26px;
    right: 30px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
}

.scene-sun {
    background: radial-gradient(circle at 40% 40%, #ffe08f, #f2b431);
    box-shadow: 0 0 50px rgba(255, 205, 100, 0.7);
}

.scene-moon {
    width: 48px;
    height: 48px;
    background: radial-gradient(circle at 36% 34%, #f6f7fb, #c9cedd 75%);
    box-shadow: 0 0 40px rgba(220, 226, 242, 0.5);
}

.scene-stars {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1.6px 1.6px at 12% 22%, #fff, transparent),
        radial-gradient(1.2px 1.2px at 28% 12%, #fff, transparent),
        radial-gradient(1.4px 1.4px at 46% 30%, #fff, transparent),
        radial-gradient(1px 1px at 58% 14%, #fff, transparent),
        radial-gradient(1.6px 1.6px at 70% 38%, #fff, transparent),
        radial-gradient(1.2px 1.2px at 36% 46%, #fff, transparent),
        radial-gradient(1px 1px at 88% 52%, #fff, transparent),
        radial-gradient(1.4px 1.4px at 8% 48%, #fff, transparent);
    opacity: 0.85;
}

.scene-sprig {
    position: absolute;
    top: -30px;
    left: -10px;
    width: 92px;
    height: auto;
    aspect-ratio: 120 / 200;
    rotate: 200deg;
    filter: drop-shadow(0 5px 3px rgba(20, 40, 10, 0.2));
}

.scene-kicker {
    position: relative;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #8a6a2e;
}

.scene-night .scene-kicker {
    color: #d9b871;
}

.scene-title {
    position: relative;
    font-family: var(--serif);
    font-size: clamp(1.4rem, 2.6vw, 1.9rem);
    font-weight: 600;
    line-height: 1.15;
}

.scene-row {
    position: relative;
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.scene-row i {
    width: 52px;
    aspect-ratio: 60 / 84;
    border-radius: 9px;
}

.scene-day .scene-row i:nth-child(1) { background: linear-gradient(#f4b860, #e2734e); }
.scene-day .scene-row i:nth-child(2) { background: linear-gradient(#a8d8f0, #5d9fd0); }
.scene-day .scene-row i:nth-child(3) { background: linear-gradient(#d6ecc4, #93c47d); }
.scene-night .scene-row i:nth-child(1) { background: linear-gradient(#3b2e6e, #171a3d); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.scene-night .scene-row i:nth-child(2) { background: linear-gradient(#7a4e9e, #2c1f4f); }
.scene-night .scene-row i:nth-child(3) { background: linear-gradient(#5466a8, #1b3c6e); }

/* ---------- Support ---------- */
.support-grid {
    display: grid;
    grid-template-columns: 1.45fr 0.9fr;
    align-items: start;
    gap: 24px;
}

.faq details {
    margin-bottom: 10px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--paper);
    transition: background-color 0.5s;
}

.faq summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    font-weight: 650;
    list-style: none;
    cursor: pointer;
}

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

.faq summary::after {
    content: "+";
    display: grid;
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    place-items: center;
    border-radius: 50%;
    background: var(--chip-grey-bg);
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1;
    color: var(--steel);
    transition: transform 0.3s;
}

.faq details[open] summary::after {
    transform: rotate(45deg);
}

.faq p {
    padding: 0 20px 18px;
    color: var(--ink-2);
}

.faq a {
    font-weight: 600;
    color: var(--steel);
}

.contact {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 28px;
    overflow: hidden;
}

.contact-sprig {
    position: absolute;
    top: -40px;
    right: -18px;
    width: 96px;
    height: auto;
    aspect-ratio: 120 / 200;
    rotate: 210deg;
    opacity: 0.9;
}

.contact-icon {
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;
    border-radius: 15px;
    background: var(--chip-lav-bg);
    color: var(--violet);
    font-size: 24px;
}

.contact h3 {
    font-family: var(--serif);
    font-size: 1.7rem;
    font-weight: 600;
}

.contact p {
    color: var(--ink-2);
}

.contact .btn-steel {
    margin-top: 6px;
}

.contact .contact-mail {
    font-size: 0.86rem;
    text-align: center;
    color: var(--ink-3);
    user-select: all;
    word-break: break-all;
}

/* ---------- Footer ---------- */
.footer {
    padding-block: 32px 40px;
    border-top: 1px solid var(--line);
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 18px 28px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
}

.footer-links a {
    font-size: 0.92rem;
    color: var(--ink-2);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--steel);
}

.copyright {
    font-size: 0.88rem;
    color: var(--ink-3);
}

/* ---------- Floating tab bar ---------- */
.tabbar {
    position: fixed;
    z-index: 60;
    bottom: calc(14px + env(safe-area-inset-bottom));
    left: 50%;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    width: min(540px, calc(100% - 24px));
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 34px;
    background: var(--glass);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    backdrop-filter: saturate(180%) blur(18px);
    box-shadow: 0 18px 40px -16px rgba(20, 25, 40, 0.4);
    transform: translateX(-50%);
}

.tabbar a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 8px 0 6px;
    border-radius: 28px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    transition:
        background-color 0.25s,
        color 0.25s;
}

.tabbar svg {
    font-size: 23px;
}

.tabbar a.is-active {
    background: color-mix(in srgb, var(--ink) 8%, transparent);
    color: var(--steel);
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .hero-grid,
    .feature-inner,
    .support-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy {
        text-align: center;
    }

    .lead {
        margin-inline: auto;
    }

    .hero-badges,
    .hero-notes {
        justify-content: center;
    }

    .hero-art {
        max-width: 440px;
    }

    .feature-row-reverse .feature-art {
        order: 0;
    }

    .feature-art {
        width: min(100%, 280px);
    }
}

@media (max-width: 640px) {
    .scenes {
        grid-template-columns: 1fr;
    }

    .scene {
        min-height: 230px;
    }

    .tabbar a {
        font-size: 0.62rem;
    }

    .tabbar svg {
        font-size: 21px;
    }

    .moon {
        top: 74px;
        right: 6%;
        width: 40px;
        height: 40px;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }
}
