/* ═══════════════════════════════════════════════════════════
   STARLY — "Sticker Book" design
   Warm paper, gold stars, die-cut stickers.
   ═══════════════════════════════════════════════════════════ */

:root {
    /* Paper & ink */
    --paper:      #FFF9F0;
    --paper-2:    #FFF1DC;
    --card:       #FFFFFF;
    --ink:        #2E2547;
    --ink-soft:   #6E6590;
    --ink-faint:  rgba(46, 37, 71, .28);

    /* Brand gold (from the Starly logo) */
    --gold:       #F5A623;
    --gold-2:     #FFD252;
    --gold-deep:  #C77F08;
    --gold-ink:   #3A2B0A;

    /* Candy accents */
    --coral:      #FF6B6B;
    --sky:        #4C9EE8;
    --mint:       #2FBF8F;
    --grape:      #9B5DE5;

    /* Type */
    --font-display: 'Baloo 2', 'Nunito', -apple-system, sans-serif;
    --font-body:    'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Lines, glass & special surfaces */
    --line:        rgba(46, 37, 71, .06);
    --line-strong: rgba(46, 37, 71, .12);
    --nav-glass:   rgba(255, 249, 240, .88);
    --toast-bg:    #2E2547;
    --footer-bg:   #2E2547;

    /* Shape & shadow */
    --radius:     22px;
    --shadow-sm:  0 4px 14px rgba(46, 37, 71, .09);
    --shadow-md:  0 10px 30px rgba(46, 37, 71, .13);
    --shadow-lg:  0 30px 60px -18px rgba(46, 37, 71, .35), 0 8px 20px rgba(46, 37, 71, .14);

    --container:  1160px;
    --pad-x:      clamp(1.25rem, 4vw, 2.5rem);

    color-scheme: light;
}

/* ═══ Night theme — deep plum nebula, echoing the app itself ═══ */
html[data-theme="dark"] {
    --paper:      #16112B;
    --paper-2:    #1E1738;
    --card:       #272045;
    --ink:        #F3EFFF;
    --ink-soft:   #A99FC9;
    --ink-faint:  rgba(243, 239, 255, .30);

    --gold-deep:  #FFC64D;

    --line:        rgba(255, 255, 255, .09);
    --line-strong: rgba(255, 255, 255, .16);
    --nav-glass:   rgba(19, 14, 36, .82);
    --toast-bg:    #3A2E63;
    --footer-bg:   #0F0B1E;

    --shadow-sm:  0 4px 14px rgba(0, 0, 0, .35);
    --shadow-md:  0 10px 30px rgba(0, 0, 0, .45);
    --shadow-lg:  0 30px 60px -18px rgba(0, 0, 0, .65), 0 8px 20px rgba(0, 0, 0, .4);

    color-scheme: dark;
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    line-height: 1.12;
    color: var(--ink);
}

a { color: var(--gold-deep); }

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

.visually-hidden {
    position: absolute; width: 1px; height: 1px;
    clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

.skip-link {
    position: fixed; top: -60px; left: 1rem; z-index: 200;
    background: var(--toast-bg); color: #fff;
    padding: .6rem 1.1rem; border-radius: 0 0 12px 12px;
    font-weight: 700; text-decoration: none;
    transition: top .2s ease;
}
.skip-link:focus { top: 0; }

.nowrap { white-space: nowrap; }

/* ── Layout helpers ─────────────────────────────────────── */
.section-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--pad-x);
}
.section-narrow { max-width: 760px; }

section, .hero { position: relative; }

.kicker {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--gold-deep);
    font-size: 1.02rem;
    margin-bottom: .4rem;
}
.kicker::before { content: '★ '; color: var(--gold); }

h2 {
    font-size: clamp(1.9rem, 4vw, 2.9rem);
    font-weight: 800;
    letter-spacing: -.01em;
    margin-bottom: .6rem;
}

.section-sub {
    color: var(--ink-soft);
    font-size: 1.1rem;
    max-width: 40rem;
}

/* Centered section headers */
.how .section-inner > .kicker,
.how .section-inner > h2,
.how .section-inner > .section-sub,
.features .section-inner > .kicker,
.features .section-inner > h2,
.features .section-inner > .section-sub,
.themes .section-inner > .kicker,
.themes .section-inner > h2,
.themes .section-inner > .section-sub,
.usecases .section-inner > .kicker,
.usecases .section-inner > h2,
.usecases .section-inner > .section-sub,
.faq .section-inner > .kicker,
.faq .section-inner > h2 {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* ── Wave section edges ─────────────────────────────────── */
.wave-edge { line-height: 0; margin-top: clamp(3rem, 6vw, 5rem); }
.wave-edge svg {
    display: block;
    width: 100%;
    height: clamp(28px, 4vw, 56px);
    margin-bottom: -1px; /* overlap the next section to hide sub-pixel seams */
}

/* ── Buttons & badges ───────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-family: var(--font-body);
    font-weight: 800;
    font-size: .95rem;
    text-decoration: none;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease;
}

.btn-gold {
    background: linear-gradient(180deg, var(--gold-2), var(--gold));
    color: var(--gold-ink);
    padding: .62rem 1.3rem;
    box-shadow: 0 4px 14px rgba(245, 166, 35, .38);
}
.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(245, 166, 35, .48);
}

.badge-appstore { display: inline-block; transition: transform .25s ease, filter .25s ease; }
.badge-appstore img { display: block; }
.badge-appstore:hover { transform: translateY(-3px); filter: drop-shadow(0 10px 18px rgba(46, 37, 71, .25)); }

/* ── Nav ────────────────────────────────────────────────── */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    transition: background .3s ease, box-shadow .3s ease;
}
.nav-scrolled {
    background: var(--nav-glass);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: 0 2px 20px rgba(46, 37, 71, .1);
}

.nav-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: .7rem var(--pad-x);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--ink);
    text-decoration: none;
}
.logo-star { filter: drop-shadow(0 2px 4px rgba(245, 166, 35, .4)); }

.nav-links { display: flex; gap: 1.5rem; }
.nav-links a {
    color: var(--ink-soft);
    text-decoration: none;
    font-weight: 700;
    font-size: .95rem;
    transition: color .2s ease;
}
.nav-links a:hover {
    color: var(--ink);
    text-decoration: underline wavy var(--gold-2) 2px;
    text-underline-offset: 6px;
}
.nav-links a[aria-current="page"] { color: var(--gold-deep); }

.nav-tools { display: flex; align-items: center; gap: .7rem; }

.theme-toggle {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: var(--card);
    border: 1.5px solid var(--line);
    box-shadow: var(--shadow-sm);
    color: var(--ink);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease;
    flex-shrink: 0;
}
.theme-toggle:hover { transform: translateY(-2px) rotate(-12deg); box-shadow: var(--shadow-md); }
.theme-toggle svg { display: block; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
html:not([data-theme="dark"]) .theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-sun { color: var(--gold-2); }
.theme-toggle .icon-moon { color: var(--grape); }

/* ── Hero ───────────────────────────────────────────────── */
.hero {
    background: var(--paper);
    background-image:
        radial-gradient(680px 440px at 84% 0%, rgba(255, 210, 82, .22), transparent 70%);
    padding-top: clamp(6.5rem, 12vh, 9rem);
    overflow: hidden;
}

.hero-deco { position: absolute; inset: 0; pointer-events: none; }

.big-star {
    position: absolute;
    color: rgba(245, 166, 35, .18);
}
.big-star-1 { width: 220px; top: 8%; left: -60px; transform: rotate(-14deg); }
.big-star-2 { width: 140px; bottom: 18%; right: -30px; transform: rotate(18deg); }

.confetti-field { position: absolute; inset: 0; overflow: hidden; }
.confetti {
    position: absolute;
    line-height: 1;
    opacity: .45;
    transform: rotate(var(--cf-rot, 20deg));
    animation: confettiDrift var(--cf-dur, 8s) ease-in-out var(--cf-delay, 0s) infinite alternate;
}

/* Shooting stars — night theme only */
.shooting-star {
    display: none;
    position: absolute;
    width: 120px; height: 2px;
    border-radius: 2px;
    background: linear-gradient(270deg, rgba(255, 255, 255, 0), rgba(255, 246, 220, .95));
    filter: drop-shadow(0 0 6px rgba(255, 210, 82, .85));
    transform: rotate(-32deg);
    opacity: 0;
    pointer-events: none;
}
html[data-theme="dark"] .shooting-star {
    display: block;
    animation: shoot var(--ss-dur, 11s) linear var(--ss-delay, 0s) infinite;
}
.shooting-star-1 { top: 14%; left: 60%; }
.shooting-star-2 { top: 34%; left: 24%; --ss-delay: -6.5s; --ss-dur: 14s; }
@keyframes shoot {
    0%    { opacity: 0; translate: 0 0; }
    1.5%  { opacity: .9; }
    7%    { opacity: 0; translate: -260px 162px; }
    100%  { opacity: 0; translate: -260px 162px; }
}
@keyframes confettiDrift {
    from { transform: translateY(-14px) rotate(var(--cf-rot)); }
    to   { transform: translateY(16px) rotate(calc(var(--cf-rot) + 55deg)); }
}

.hero-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--pad-x);
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: clamp(2rem, 5vw, 4.5rem);
    position: relative;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: var(--card);
    border: 1.5px solid var(--line);
    border-radius: 999px;
    padding: .45rem 1.05rem;
    font-weight: 800;
    font-size: .85rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.4rem;
}
.chip-stars { color: var(--gold); letter-spacing: .08em; }

h1 {
    font-size: clamp(2.8rem, 6.4vw, 4.7rem);
    font-weight: 800;
    letter-spacing: -.015em;
    line-height: 1.02;
    margin-bottom: 1.2rem;
}

.squiggle { position: relative; display: inline-block; }
.squiggle svg {
    position: absolute;
    left: 2%; bottom: -.14em;
    width: 96%; height: .3em;
    color: var(--gold);
    overflow: visible;
}
.squiggle path {
    stroke-dasharray: 480;
    stroke-dashoffset: 480;
}
.fade-up.visible .squiggle path {
    animation: drawSquiggle .9s cubic-bezier(.5, 0, .3, 1) .5s forwards;
}
@keyframes drawSquiggle { to { stroke-dashoffset: 0; } }

.hero-sub {
    font-size: 1.15rem;
    color: var(--ink-soft);
    max-width: 33rem;
    margin-bottom: 1.8rem;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
    margin-bottom: 2.2rem;
}
.hero-micro {
    font-size: .85rem;
    font-weight: 700;
    color: var(--ink-soft);
    line-height: 1.5;
}

/* Playable mini chart */
.try-label {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--ink-soft);
    font-size: .98rem;
    margin-bottom: .55rem;
}
.try-chart {
    display: flex;
    gap: .5rem;
    position: relative;
    flex-wrap: wrap;
}
.try-cell {
    width: 52px; height: 52px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    font-size: 26px;
    background: rgba(255, 255, 255, .7);
    border: 2px dashed var(--ink-faint);
    color: var(--ink-faint);
    cursor: pointer;
    transition: transform .2s ease, border-color .2s ease, color .2s ease, background .2s ease;
    font-family: var(--font-body);
}
.try-cell:hover:not(:disabled),
.try-cell:focus-visible:not(:disabled) {
    border-color: var(--gold);
    color: var(--gold);
    background: #fff;
    transform: translateY(-3px);
}
.try-cell:disabled { cursor: default; }
.try-filled {
    background: linear-gradient(180deg, #FFF3D6, #FFE7AE);
    border: 2px solid var(--gold);
    color: var(--ink);
    box-shadow: 0 4px 10px rgba(245, 166, 35, .28);
}
.try-pop { animation: starPop .5s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes starPop {
    0%   { transform: scale(.2) rotate(-15deg); }
    70%  { transform: scale(1.18) rotate(4deg); }
    100% { transform: scale(1) rotate(0); }
}
.try-toast {
    position: absolute;
    left: 0; top: calc(100% + 12px);
    background: var(--toast-bg);
    color: #fff;
    font-weight: 800;
    font-size: .88rem;
    padding: .55rem 1.05rem;
    border-radius: 999px;
    white-space: nowrap;
    box-shadow: var(--shadow-md);
    animation: toastIn .45s cubic-bezier(.34, 1.56, .64, 1);
}
@keyframes toastIn {
    from { opacity: 0; transform: translateY(8px) scale(.85); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes toastInCentered {
    from { opacity: 0; transform: translateX(-50%) translateY(8px) scale(.85); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}

/* Hero phones */
.hero-visual {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
    aspect-ratio: 500 / 640;
    width: 100%;
}

.device {
    background: #171225;
    border-radius: clamp(26px, 5.5vw, 40px);
    padding: clamp(6px, 1.2vw, 10px);
    box-shadow: var(--shadow-lg);
}
.device img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: clamp(19px, 4.2vw, 31px);
}
.device-ipad { border-radius: 28px; padding: 11px; }
.device-ipad img { border-radius: 18px; }

.phone {
    position: absolute;
    transition: transform .5s ease;
    will-change: transform;
}
.phone-back  { width: 55%; right: 1%; top: 0; transform: rotate(5deg); }
.phone-front { width: 60%; left: 1%; top: 7%; transform: rotate(-4deg); z-index: 2; }

.sticker-float {
    position: absolute;
    width: 66px; height: 66px;
    background: #fff;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 32px;
    box-shadow: 0 10px 26px rgba(46, 37, 71, .18);
    z-index: 3;
    animation: bob var(--bob-dur, 5s) ease-in-out var(--bob-delay, 0s) infinite alternate;
}
.sticker-float-1 { top: -4%; left: -6%; --bob-dur: 4.6s; transform: rotate(-8deg); }
.sticker-float-2 { top: 38%; right: -7%; --bob-dur: 5.4s; --bob-delay: -2s; transform: rotate(7deg); }
.sticker-float-3 { bottom: -2%; left: 6%; --bob-dur: 5s; --bob-delay: -3.4s; transform: rotate(-5deg); }
@keyframes bob {
    from { translate: 0 -7px; }
    to   { translate: 0 7px; }
}

/* ── Trust strip ────────────────────────────────────────── */
.trust { background: var(--paper-2); padding-top: 3.2rem; }
.trust .wave-edge { margin-top: 3.2rem; }

.trust-row {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(1rem, 3vw, 2.2rem);
}
.trust-item {
    background: var(--card);
    border-radius: 18px;
    padding: 1.1rem 1.5rem;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: .8rem;
    align-items: center;
    box-shadow: var(--shadow-sm);
    border: 1.5px solid var(--line);
    transition: transform .3s ease, box-shadow .3s ease;
    min-width: 218px;
}
.trust-item:nth-child(odd)  { transform: rotate(-1.2deg); }
.trust-item:nth-child(even) { transform: rotate(1deg); }
.trust-item:hover { transform: rotate(0) translateY(-4px); box-shadow: var(--shadow-md); }
.trust-emoji { grid-row: 1 / 3; font-size: 2rem; }
.trust-item strong { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; line-height: 1.25; }
.trust-item span:last-child { color: var(--ink-soft); font-size: .85rem; font-weight: 600; line-height: 1.3; }

/* ── How it works ───────────────────────────────────────── */
.how { background: var(--paper); padding-top: clamp(3rem, 7vw, 5rem); }

.how-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.5rem, 3.5vw, 3rem);
    margin-top: 3rem;
}
.how-step { text-align: center; position: relative; }

.step-badge {
    position: relative;
    display: inline-block;
    margin-bottom: .8rem;
    filter: drop-shadow(0 4px 8px rgba(245, 166, 35, .35));
}
.step-badge span {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding-bottom: 5px;
    line-height: 1;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.35rem;
    color: #fff;
    text-shadow: 0 1px 3px rgba(58, 43, 10, .4);
}

.how-step h3 { font-size: 1.35rem; font-weight: 700; margin-bottom: .35rem; }
.how-step p { color: var(--ink-soft); max-width: 17rem; margin: 0 auto 1.4rem; }

.device-sm { max-width: 225px; margin: 0 auto; }

/* ── Features ───────────────────────────────────────────── */
.features { background: var(--paper-2); padding-top: clamp(3rem, 7vw, 5rem); }

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.4rem;
    margin-top: 3rem;
}
.feature-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 1.7rem 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1.5px solid var(--line);
    transition: transform .3s ease, box-shadow .3s ease;
}
.feature-card:nth-child(odd)  { transform: rotate(-.6deg); }
.feature-card:nth-child(even) { transform: rotate(.6deg); }
.feature-card:hover {
    transform: rotate(0) translateY(-6px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--paper);
    border: 2px dashed rgba(245, 166, 35, .5);
    display: grid;
    place-items: center;
    font-size: 26px;
    margin-bottom: .9rem;
}
.feature-card h3 { font-size: 1.18rem; font-weight: 700; margin-bottom: .35rem; }
.feature-card p { color: var(--ink-soft); font-size: .97rem; }

/* ── Split layouts (stickers / screens) ─────────────────── */
.stickers { background: var(--paper); padding-top: clamp(3rem, 7vw, 5rem); }
.screens  { background: var(--paper); padding-top: clamp(3rem, 7vw, 5rem); }

.split {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: clamp(2.5rem, 6vw, 5rem);
    align-items: center;
}
.split-rev { grid-template-columns: .9fr 1.1fr; }
.split-rev .split-copy   { order: 2; }
.split-rev .split-visual { order: 1; }

.split-copy > p { color: var(--ink-soft); font-size: 1.08rem; margin-bottom: 1.2rem; }
.split-copy h2 { margin-bottom: .8rem; }

.split-visual .device { max-width: 300px; margin: 0 auto; transition: transform .35s ease; }
.split-visual .device:hover { transform: translateY(-6px); }
.split-visual .device-ipad { max-width: 430px; }

.check-list {
    list-style: none;
    margin-bottom: 1.4rem;
}
.check-list li {
    position: relative;
    padding-left: 1.9rem;
    margin: .6rem 0;
    font-weight: 700;
    color: var(--ink);
}
.check-list li::before {
    content: '★';
    position: absolute;
    left: .15rem;
    color: var(--gold);
}

.sticker-strip { display: flex; gap: .6rem; flex-wrap: wrap; }
.mini-sticker {
    width: 56px; height: 56px;
    background: var(--card);
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 27px;
    box-shadow: 0 6px 14px rgba(46, 37, 71, .13);
    border: 1.5px solid var(--line);
    transition: transform .25s ease;
}
.mini-sticker:nth-child(odd)  { transform: rotate(-4deg); }
.mini-sticker:nth-child(even) { transform: rotate(4deg); }
.mini-sticker:hover { transform: rotate(0) scale(1.18); }

/* ── Themes ─────────────────────────────────────────────── */
.themes { background: var(--paper-2); padding-top: clamp(3rem, 7vw, 5rem); }

.theme-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(1.2rem, 2.5vw, 2rem);
    margin-top: 3rem;
}
.theme-item { text-align: center; }
.theme-item .device { transition: transform .35s ease; }
.theme-item:hover .device { transform: translateY(-8px) rotate(-1deg); }
.theme-tag {
    display: inline-block;
    margin-top: 1.1rem;
    background: var(--card);
    border-radius: 999px;
    padding: .45rem 1.1rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: .95rem;
    box-shadow: var(--shadow-sm);
    border: 1.5px solid var(--line);
    transform: rotate(-1.5deg);
}

/* ── Use cases chip cloud ───────────────────────────────── */
.usecases { background: var(--paper-2); padding-top: clamp(3rem, 7vw, 5rem); }

.chip-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .65rem;
    max-width: 880px;
    margin: 2.5rem auto 0;
}
.wc {
    background: var(--card);
    padding: .5rem 1.05rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: .93rem;
    color: var(--ink);
    box-shadow: 0 3px 10px rgba(46, 37, 71, .09);
    border: 1.5px solid var(--line);
}
.wc::before { content: '★ '; color: var(--gold-2); }
.wc:nth-child(4n)::before   { color: var(--coral); }
.wc:nth-child(4n+1)::before { color: var(--sky); }
.wc:nth-child(4n+2)::before { color: var(--mint); }
.wc:nth-child(4n+3)::before { color: var(--grape); }

/* ── FAQ ────────────────────────────────────────────────── */
.faq { background: var(--paper); padding: clamp(3rem, 7vw, 5rem) 0 1rem; }

.faq-list { margin-top: 2.2rem; }
.faq-item {
    background: var(--card);
    border-radius: 18px;
    margin-bottom: .85rem;
    box-shadow: var(--shadow-sm);
    border: 1.5px solid var(--line);
    overflow: hidden;
}
.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.05rem 1.35rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.06rem;
    cursor: pointer;
    list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--gold-deep); }

.faq-star::before {
    content: '★';
    display: inline-block;
    font-size: 1.25rem;
    color: var(--ink-faint);
    transition: color .3s ease, transform .3s ease;
}
.faq-item[open] .faq-star::before {
    color: var(--gold);
    transform: rotate(72deg) scale(1.15);
}
.faq-item p {
    padding: 0 1.35rem 1.2rem;
    color: var(--ink-soft);
}

/* ── Final CTA ──────────────────────────────────────────── */
.cta { background: var(--paper); padding: clamp(2rem, 5vw, 4rem) 0 clamp(3.5rem, 7vw, 6rem); }

.cta-card {
    position: relative;
    background: linear-gradient(140deg, var(--gold-2) 0%, var(--gold) 70%, #ED9713 100%);
    border-radius: 34px;
    padding: clamp(3rem, 7vw, 5rem) clamp(1.5rem, 5vw, 4rem);
    text-align: center;
    box-shadow: 0 30px 70px -20px rgba(245, 166, 35, .55);
    overflow: hidden;
}
.cta-card::before,
.cta-card::after {
    content: '★';
    position: absolute;
    font-size: 150px;
    color: rgba(255, 255, 255, .22);
    line-height: 1;
    pointer-events: none;
}
.cta-card::before { top: -34px; left: -18px; transform: rotate(-18deg); }
.cta-card::after  { bottom: -40px; right: -14px; transform: rotate(22deg); font-size: 190px; }

.cta-star {
    filter: drop-shadow(0 6px 14px rgba(58, 43, 10, .25));
    margin-bottom: .8rem;
    animation: twirl 16s linear infinite;
}
@keyframes twirl { to { transform: rotate(360deg); } }

.cta-card h2 { color: var(--gold-ink); margin-bottom: .8rem; }
.cta-card p {
    color: rgba(58, 43, 10, .78);
    font-weight: 700;
    font-size: 1.08rem;
    margin-bottom: 1.8rem;
}

/* ── Footer ─────────────────────────────────────────────── */
.footer {
    background: var(--footer-bg);
    color: #CFC9E8;
    border-radius: 36px 36px 0 0;
    padding: 3rem 0 2rem;
    text-align: center;
}
.footer-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--pad-x);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .9rem;
}
.logo-footer { color: #fff; }
.footer-links { display: flex; gap: 1.6rem; flex-wrap: wrap; justify-content: center; }
.footer-links a {
    color: var(--gold-2);
    font-weight: 700;
    text-decoration: none;
}
.footer-links a:hover { text-decoration: underline; }
.footer-copy { font-size: .82rem; color: rgba(207, 201, 232, .6); }

/* ── Contact page ───────────────────────────────────────── */
.page-hero {
    background: var(--paper);
    background-image:
        radial-gradient(680px 440px at 84% 0%, rgba(255, 210, 82, .22), transparent 70%);
    padding-top: clamp(7rem, 14vh, 9.5rem);
    text-align: center;
    overflow: hidden;
}
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin-bottom: .8rem; }
.page-hero .section-sub { margin: 0 auto; }

/* ── 404 page ───────────────────────────────────────────── */
.error-page {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    padding-bottom: 4rem;
}
.error-page .section-inner { width: 100%; }
.error-kicker {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 800;
    margin-bottom: 1.4rem;
}
.error-kicker::before { content: none; }
.error-cells {
    display: flex;
    justify-content: center;
    gap: .6rem;
    margin-bottom: 1.8rem;
}
.error-cell {
    width: 64px; height: 64px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    font-size: 32px;
}
.error-cell.filled {
    background: linear-gradient(180deg, #FFF3D6, #FFE7AE);
    border: 2px solid var(--gold);
    box-shadow: 0 4px 10px rgba(245, 166, 35, .28);
    transform: rotate(-3deg);
}
.error-cell.filled:nth-child(2) { transform: rotate(2.5deg); }
.error-cell.empty {
    background: rgba(255, 255, 255, .5);
    border: 2px dashed var(--ink-faint);
    color: var(--ink-faint);
    font-family: var(--font-display);
    font-weight: 800;
}
html[data-theme="dark"] .error-cell.empty { background: rgba(255, 255, 255, .05); }
.error-page h1 { margin-bottom: .8rem; }
.error-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.6rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}
.error-link {
    font-weight: 800;
    color: var(--gold-deep);
}

.contact { background: var(--paper-2); padding-top: 3rem; }

.contact-grid {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: start;
}

.contact-cards { display: grid; gap: 1.1rem; }
.contact-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1.5px solid var(--line);
    transition: transform .3s ease, box-shadow .3s ease;
}
.contact-card:nth-child(odd)  { transform: rotate(-.7deg); }
.contact-card:nth-child(even) { transform: rotate(.7deg); }
.contact-card:hover { transform: rotate(0) translateY(-4px); box-shadow: var(--shadow-md); }
.contact-card h3 {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: .4rem;
}
.contact-card p { color: var(--ink-soft); font-size: .97rem; }
.contact-card a { font-weight: 800; }

.form-card {
    background: var(--card);
    border-radius: 28px;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    box-shadow: var(--shadow-md);
    border: 1.5px solid var(--line);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.field { margin-bottom: 1.1rem; }
.field label {
    display: block;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: .95rem;
    margin-bottom: .35rem;
}
.field input,
.field select,
.field textarea {
    width: 100%;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink);
    background: var(--paper);
    border: 2px solid var(--line-strong);
    border-radius: 14px;
    padding: .75rem .95rem;
    transition: border-color .2s ease, box-shadow .2s ease;
    appearance: none;
}
.field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%236E6590' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .95rem center;
    padding-right: 2.4rem;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(245, 166, 35, .18);
}
.field input::placeholder,
.field textarea::placeholder { color: rgba(110, 101, 144, .55); font-weight: 500; }

.hp-field { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

.form-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: .4rem; }
.btn-submit { font-size: 1.05rem; padding: .8rem 1.7rem; }
.form-note {
    font-size: .82rem;
    color: var(--ink-soft);
    font-weight: 600;
    margin-top: .9rem;
}
.form-success {
    display: none;
    background: rgba(47, 191, 143, .12);
    border: 2px solid rgba(47, 191, 143, .5);
    color: #157A57;
    font-weight: 700;
    border-radius: 14px;
    padding: .9rem 1.1rem;
    margin-top: 1rem;
}
.form-success.show { display: block; animation: toastIn .45s cubic-bezier(.34, 1.56, .64, 1); }

/* ── Reveal animations ──────────────────────────────────── */
.reveal, .fade-up {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .7s cubic-bezier(.16, 1, .3, 1), transform .7s cubic-bezier(.16, 1, .3, 1);
}
.reveal.visible, .fade-up.visible {
    opacity: 1;
    transform: none;
}
.d1 { transition-delay: .08s; }
.d2 { transition-delay: .16s; }
.d3 { transition-delay: .26s; }
.d4 { transition-delay: .36s; }

/* Keep sticker rotations after reveal */
.trust-item.reveal, .feature-card.reveal, .contact-card.reveal { transform: translateY(26px); }
.trust-item.reveal.visible:nth-child(odd)   { transform: rotate(-1.2deg); }
.trust-item.reveal.visible:nth-child(even)  { transform: rotate(1deg); }
.trust-item.reveal.visible:hover            { transform: rotate(0) translateY(-4px); }
.feature-card.reveal.visible:nth-child(odd)  { transform: rotate(-.6deg); }
.feature-card.reveal.visible:nth-child(even) { transform: rotate(.6deg); }
.feature-card.reveal.visible:hover           { transform: rotate(0) translateY(-6px); }
.contact-card.reveal.visible:nth-child(odd)  { transform: rotate(-.7deg); }
.contact-card.reveal.visible:nth-child(even) { transform: rotate(.7deg); }
.contact-card.reveal.visible:hover           { transform: rotate(0) translateY(-4px); }

/* Smooth color cross-fade while the theme toggle flips */
html.theme-switching,
html.theme-switching body,
html.theme-switching * {
    transition: background-color .35s ease, color .35s ease, border-color .35s ease, fill .35s ease !important;
}

/* ── Reduced motion ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal, .fade-up { opacity: 1 !important; transform: none !important; transition: none !important; }
    .squiggle path { stroke-dashoffset: 0 !important; animation: none !important; }
    .sticker-float, .confetti, .cta-star, .shooting-star { animation: none !important; }
    .try-pop { animation: none; }
    *, *::before, *::after { transition-duration: .01ms !important; }
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .theme-grid   { grid-template-columns: repeat(2, 1fr); }
    .theme-grid .device { max-width: 260px; margin: 0 auto; }
}

@media (max-width: 900px) {
    .nav-links { display: none; }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 3.5rem;
        text-align: center;
    }
    .hero-sub { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero-micro { text-align: left; }
    .try-chart { justify-content: center; }
    .try-toast {
        left: 50%;
        transform: translateX(-50%);
        animation-name: toastInCentered;
    }
    .hero-visual { max-width: 420px; }
    .big-star-1 { width: 130px; left: -46px; }
    .big-star-2 { display: none; }

    .split, .split-rev { grid-template-columns: 1fr; gap: 2.5rem; }
    .split-rev .split-copy   { order: 1; }
    .split-rev .split-visual { order: 2; }
    .split-visual .device { max-width: 270px; }
    .split-visual .device-ipad { max-width: 380px; }

    .contact-grid { grid-template-columns: 1fr; }

    .how-grid { grid-template-columns: 1fr; gap: 3rem; }
    .device-sm { max-width: 210px; }
}

/* ── Night theme — component touches ────────────────────── */
html[data-theme="dark"] .hero,
html[data-theme="dark"] .page-hero {
    background-image:
        radial-gradient(700px 420px at 78% 4%, rgba(155, 93, 229, .18), transparent 70%),
        radial-gradient(560px 380px at 6% 82%, rgba(245, 166, 35, .10), transparent 70%);
}
html[data-theme="dark"] .big-star { color: rgba(255, 210, 82, .14); }
html[data-theme="dark"] .device {
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, .08);
}
html[data-theme="dark"] .try-cell { background: rgba(255, 255, 255, .05); }
html[data-theme="dark"] .try-cell:hover:not(:disabled),
html[data-theme="dark"] .try-cell:focus-visible:not(:disabled) { background: var(--card); }
html[data-theme="dark"] .try-filled { color: var(--gold-ink); }
html[data-theme="dark"] .sticker-float {
    background: #322A55;
    border: 1.5px solid var(--line);
    box-shadow: 0 10px 26px rgba(0, 0, 0, .55);
}
html[data-theme="dark"] .mini-sticker { box-shadow: 0 6px 14px rgba(0, 0, 0, .45); }
html[data-theme="dark"] .step-badge { filter: drop-shadow(0 4px 10px rgba(245, 166, 35, .45)); }
html[data-theme="dark"] .wc { box-shadow: 0 3px 10px rgba(0, 0, 0, .35); }
html[data-theme="dark"] .cta-card { box-shadow: 0 30px 70px -20px rgba(245, 166, 35, .35); }
html[data-theme="dark"] .field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23A99FC9' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");
}
html[data-theme="dark"] .field input::placeholder,
html[data-theme="dark"] .field textarea::placeholder { color: rgba(169, 159, 201, .55); }
html[data-theme="dark"] .form-success {
    background: rgba(47, 191, 143, .14);
    border-color: rgba(47, 191, 143, .45);
    color: #7BE0BC;
}

@media (max-width: 620px) {
    .feature-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .try-cell { width: 46px; height: 46px; font-size: 23px; border-radius: 13px; }
    .sticker-float { width: 54px; height: 54px; font-size: 26px; }
    .trust-item { min-width: 0; width: 100%; max-width: 320px; }
    .theme-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
    .theme-tag { font-size: .82rem; padding: .35rem .8rem; }
    .btn-nav { font-size: .88rem; padding: .5rem 1rem; }
    .logo { font-size: 1.25rem; }
}
