/* ==========================================================================
   CreateACard — Homepage styles
   --------------------------------------------------------------------------
   1. Design tokens        6. Hero & signature card   11. Final CTA
   2. Reset & base         7. Marquee                 12. Footer
   3. Typography helpers   8. How it works            13. Utilities & motion
   4. Buttons & chips      9. Gallery
   5. Navigation          10. AI creator / Dashboard
   ========================================================================== */

/* 1. DESIGN TOKENS ======================================================== */
:root {
    /* Colour */
    --ink: #14152B;
    --ink-2: #1E2042;
    --ink-soft: #3A3C5A;
    --ivory: #FAF8F3;
    --paper: #F3EEE5;
    --white: #FFFFFF;
    --indigo: #5754E8;
    --indigo-deep: #3F3CC4;
    --lavender: #B8ACF6;
    --lavender-soft: #ECE8FD;
    --coral: #F29B91;
    --coral-deep: #E07A6E;
    --coral-soft: #FCE6E1;
    --gold: #C8A15A;
    --gold-light: #F3DFAE;
    --sage: #6F8A6E;
    --slate: #64748B;
    --muted: #686C84;
    --line: rgba(20, 21, 43, .09);
    --line-strong: rgba(20, 21, 43, .16);
    --gold-gradient: linear-gradient(120deg, #F8E6B4 0%, #C8A15A 40%, #F3D695 65%, #A47E3C 100%);

    /* Typography */
    --font-display: "Instrument Serif", "Times New Roman", Georgia, serif;
    --font-sans: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    --fs-hero: clamp(3.1rem, 5.1vw, 6.9rem);
    --fs-h2: clamp(2.5rem, 4.6vw, 4.9rem);
    --fs-h3: clamp(1.5rem, 1.8vw, 1.9rem);
    --fs-lede: clamp(1.05rem, 1.15vw, 1.22rem);
    --fs-body: 1rem;
    --fs-small: .875rem;
    --fs-xs: .75rem;

    /* Spacing */
    --space-1: .25rem;
    --space-2: .5rem;
    --space-3: .75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --space-7: 3rem;
    --space-8: 4.5rem;
    --space-9: 7rem;
    --section-y: clamp(5.5rem, 11vw, 10rem);
    --gutter: clamp(1.25rem, 4vw, 3rem);
    --container: 1320px;

    /* Radii */
    --radius-xs: 6px;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 40px;
    --radius-pill: 999px;
    --radius-btn: 8px;
    --radius-card: 6px;

    /* Elevation */
    --shadow-sm: 0 1px 2px rgba(20, 21, 43, .06), 0 4px 12px -4px rgba(20, 21, 43, .08);
    --shadow-card: 0 1px 1px rgba(20, 21, 43, .04), 0 12px 24px -8px rgba(20, 21, 43, .14), 0 40px 70px -28px rgba(20, 21, 43, .32);
    --shadow-float: 0 2px 4px rgba(20, 21, 43, .05), 0 24px 48px -12px rgba(20, 21, 43, .22), 0 60px 120px -40px rgba(87, 84, 232, .28);

    /* Motion */
    --ease: cubic-bezier(.22, 1, .36, 1);
    --ease-in-out: cubic-bezier(.65, 0, .35, 1);
    --dur: .5s;

    /* Hero card size */
    --sig-w: clamp(220px, 19vw, 340px);

    /* Film grain texture */
    --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.08  0 0 0 0 0.08  0 0 0 0 0.17  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* 2. RESET & BASE ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: var(--fs-body);
    line-height: 1.6;
    color: var(--ink);
    background: var(--ivory);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--lavender); color: var(--ink); }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 10000; background: var(--ink); color: var(--ivory); padding: 10px 16px; border-radius: var(--radius-sm); }
.skip-link:focus { top: 16px; }

/* Lucide icons */
[data-lucide], .lucide { width: 1.1em; height: 1.1em; stroke-width: 1.75; flex-shrink: 0; }

/* 3. TYPOGRAPHY HELPERS =================================================== */

.section-head { max-width: 720px; display: grid; gap: var(--space-5); }
.section-title {
    font-family: var(--font-display); font-weight: 400;
    font-size: var(--fs-h2); line-height: .98; letter-spacing: -.02em;
}
.section-title em { font-style: italic; color: var(--ink-soft); }
.section-title--light { color: var(--ivory); }
.section-title--light em { color: var(--lavender); }
.section-lede { font-size: var(--fs-lede); color: var(--muted); max-width: 54ch; line-height: 1.65; }
.section-lede--light { color: rgba(250, 248, 243, .68); }

/* 4. BUTTONS & CHIPS ====================================================== */
.btn {
    --mx: 50%; --my: 50%;
    position: relative; isolation: isolate; overflow: hidden;
    display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
    height: 50px; padding: 0 1.5rem; border-radius: var(--radius-btn);
    font-weight: 600; font-size: .95rem; letter-spacing: -.005em; white-space: nowrap;
    transition: transform .4s var(--ease), background-color .3s, box-shadow .4s var(--ease), color .3s, border-color .3s;
    will-change: transform;
}
.btn svg { transition: transform .45s var(--ease); }
.btn:hover svg:last-child { transform: translateX(3px); }
.btn:active { transform: scale(.97); }
.btn--sm { height: 42px; padding: 0 1.1rem; font-size: .88rem; }
.btn--lg { height: 56px; padding: 0 1.75rem; font-size: 1rem; }
.btn--xl { height: 64px; padding: 0 2.2rem; font-size: 1.05rem; }

.btn--dark {
    background: var(--ink); color: var(--ivory);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 10px 24px -10px rgba(20, 21, 43, .55);
}
.btn--dark:hover { background: var(--indigo-deep); box-shadow: 0 14px 28px -12px rgba(63, 60, 196, .6); }

.btn--ghost {
    background: transparent; color: var(--ink);
    border: 1px solid var(--line-strong);
}
.btn--ghost:hover { background: var(--white); border-color: rgba(20, 21, 43, .28); box-shadow: var(--shadow-sm); }

.btn--glow { color: var(--white); background: var(--indigo); }
.btn--glow:hover { background: #4845D6; box-shadow: 0 14px 30px -12px rgba(87, 84, 232, .8); }
.btn--glow.is-loading { pointer-events: none; opacity: .85; }
.btn--glow.is-loading svg { animation: spin 1.2s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.round-btn {
    display: grid; place-items: center; width: 52px; height: 52px; border-radius: var(--radius-btn);
    border: 1px solid var(--line-strong); background: var(--white);
    transition: background .3s, color .3s, transform .4s var(--ease), border-color .3s;
}
.round-btn:hover { background: var(--ink); color: var(--ivory); border-color: var(--ink); transform: translateY(-2px); }

.tab {
    position: relative; padding: .5rem 0; font-size: 1rem; font-weight: 500; color: var(--slate);
    transition: color .3s;
}
.tab::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--ink);
    transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.tab:hover { color: var(--ink); }
.tab.is-active { color: var(--ink); }
.tab.is-active::after { transform: scaleX(1); }

/* 5. NAVIGATION =========================================================== */
.nav {
    position: fixed; inset: 0 0 auto; z-index: 900;
    transition: transform .6s var(--ease), background .4s, box-shadow .4s;
}
.nav.is-hidden { transform: translateY(-130%); }
.nav__inner {
    width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto;
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 76px;
}
.nav.is-scrolled { background: rgba(250, 248, 243, .96); box-shadow: 0 1px 0 var(--line); }

.brand { display: inline-flex; align-items: center; gap: .6rem; justify-self: start; }
.brand__mark { width: 34px; height: 34px; transition: transform .6s var(--ease); }
.brand:hover .brand__mark { transform: rotate(-8deg) scale(1.05); }
.brand__word { font-family: var(--font-display); font-size: 1.75rem; line-height: 1; letter-spacing: -.01em; }
.brand__word em { color: var(--indigo); }
.brand--light .brand__mark { border-radius: 11px; box-shadow: 0 0 0 1px rgba(250, 248, 243, .18); }
.brand--light .brand__word { color: var(--ivory); }
.brand--light .brand__word em { color: var(--lavender); }

.nav__links { display: flex; align-items: center; }
.nav__link {
    position: relative; padding: .5rem 0; margin: 0 1rem;
    font-size: .92rem; font-weight: 500; color: var(--ink-soft); transition: color .3s;
}
.nav__link::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1.5px; background: currentColor;
    transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.nav__link:hover::after, .nav__link.is-current::after { transform: scaleX(1); transform-origin: left; }
.nav__link:hover, .nav__link.is-current { color: var(--ink); }
.nav__actions { display: flex; align-items: center; justify-content: flex-end; gap: 1.25rem; }
.nav__login { font-size: .92rem; font-weight: 600; transition: color .3s; }
.nav__login:hover { color: var(--indigo); }

.nav__burger { display: none; position: relative; width: 44px; height: 44px; border-radius: var(--radius-btn); background: var(--ink); }
.nav__burger span {
    position: absolute; left: 13px; right: 13px; height: 1.6px; border-radius: 2px; background: var(--ivory);
    transition: transform .5s var(--ease), top .5s var(--ease);
}
.nav__burger span:first-child { top: 18px; }
.nav__burger span:last-child { top: 25px; }
.menu-open .nav__burger span:first-child { top: 21.5px; transform: rotate(45deg); }
.menu-open .nav__burger span:last-child { top: 21.5px; transform: rotate(-45deg); }

.mobile-menu {
    position: fixed; inset: 0; z-index: 850; display: flex; flex-direction: column; justify-content: space-between;
    padding: 110px var(--gutter) calc(32px + env(safe-area-inset-bottom));
    background: var(--ivory);
    clip-path: circle(0 at calc(100% - var(--gutter) - 22px) 38px);
    visibility: hidden;
    transition: clip-path .7s var(--ease-in-out), visibility 0s .7s;
}
.menu-open .mobile-menu { clip-path: circle(150% at calc(100% - var(--gutter) - 22px) 38px); visibility: visible; transition: clip-path .8s var(--ease-in-out), visibility 0s; }
.mobile-menu__links { display: grid; gap: .25rem; }
.mobile-menu__link {
    display: flex; align-items: baseline; gap: 1rem; padding: .5rem 0;
    font-family: var(--font-display); font-size: clamp(2.4rem, 11vw, 3.4rem); line-height: 1.05;
    border-bottom: 1px solid var(--line);
    opacity: 0; transform: translateY(24px);
    transition: opacity .5s var(--ease), transform .7s var(--ease);
}
.mobile-menu__num { font-family: var(--font-sans); font-size: .8rem; font-weight: 500; color: var(--slate); }
.menu-open .mobile-menu__link { opacity: 1; transform: none; }
.menu-open .mobile-menu__link:nth-child(1) { transition-delay: .18s; }
.menu-open .mobile-menu__link:nth-child(2) { transition-delay: .23s; }
.menu-open .mobile-menu__link:nth-child(3) { transition-delay: .28s; }
.menu-open .mobile-menu__link:nth-child(4) { transition-delay: .33s; }
.menu-open .mobile-menu__link:nth-child(5) { transition-delay: .38s; }
.mobile-menu__actions { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; opacity: 0; transition: opacity .5s .4s; }
.menu-open .mobile-menu__actions { opacity: 1; }
.mobile-menu__actions .btn { height: 56px; }

/* Preloader & toast */
.preloader { display: none; }
.js .preloader {
    position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; background: var(--ivory);
    animation: preloaderFailsafe .6s 3s forwards;
}
.preloader__mark { display: flex; align-items: center; gap: .9rem; }
.preloader__mark img { width: 56px; height: 56px; animation: markIn 1s var(--ease) both; }
.preloader__word { font-family: var(--font-display); font-size: 3rem; line-height: 1; animation: wordIn 1s .12s var(--ease) both; }
.preloader__word em { color: var(--indigo); }
@keyframes markIn { from { opacity: 0; transform: scale(.6) rotate(-20deg); } }
@keyframes wordIn { from { opacity: 0; transform: translateX(-12px); clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes preloaderFailsafe { to { opacity: 0; visibility: hidden; } }

.toast {
    position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 1000;
    display: flex; align-items: center; gap: .6rem; padding: .85rem 1.25rem; border-radius: var(--radius-btn);
    background: var(--ink); color: var(--ivory); font-size: .9rem; font-weight: 500;
    box-shadow: 0 20px 40px -12px rgba(20, 21, 43, .5);
    transform: translate(-50%, 140%); opacity: 0; pointer-events: none;
    transition: transform .6s var(--ease), opacity .4s;
}
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }

/* 6. HERO ================================================================= */
.hero {
    position: relative; min-height: max(100svh, 760px);
    padding: clamp(110px, 14vh, 150px) 0 clamp(60px, 8vh, 90px);
    display: flex; align-items: center; overflow: hidden; isolation: isolate;
}
.hero::after {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background-image: var(--grain); opacity: .22; mix-blend-mode: multiply;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; animation: drift 18s var(--ease-in-out) infinite alternate; }
.glow--lavender { width: 46vw; height: 46vw; right: -6vw; top: -10vw; background: radial-gradient(circle, rgba(184, 172, 246, .85), transparent 65%); }
@keyframes drift { to { transform: translate3d(-4vw, 3vw, 0) scale(1.08); } }

.hero__layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 5rem); align-items: center; }
.hero__copy { display: grid; gap: clamp(1.6rem, 2.4vw, 2.3rem); justify-items: start; position: relative; z-index: 2; }

.hero__title {
    font-family: var(--font-display); font-weight: 400;
    font-size: var(--fs-hero); line-height: .92; letter-spacing: -.035em;
}
.hero__line { display: block; position: relative; }
.word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.word > span { display: inline-block; will-change: transform; }
.hero__line--accent { width: max-content; }
.hero__line--accent em { font-style: italic; color: var(--indigo); padding-right: .06em; }
.hero__underline {
    position: absolute; left: 2%; right: 4%; bottom: -.12em; width: 94%; height: .22em; overflow: visible;
}
.hero__underline path { fill: none; stroke: var(--coral); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 520; stroke-dashoffset: 0; }

.hero__lede { font-size: var(--fs-lede); color: var(--muted); max-width: 46ch; line-height: 1.65; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .75rem; }


/* --- Stage ---------------------------------------------------------------- */
.hero__stage {
    position: relative; height: clamp(560px, 74vh, 760px);
    display: grid; place-items: center;
}
.float-card { position: absolute; z-index: 1; will-change: transform; transition: opacity .8s var(--ease), filter .8s var(--ease); }
.float-card .gcard { animation: bob 7s var(--ease-in-out) infinite; }
.float-card--a { width: calc(var(--sig-w) * .62); left: -2%; top: 6%; rotate: -14deg; }
.float-card--b { width: calc(var(--sig-w) * .6); right: -1%; bottom: 7%; rotate: 11deg; }
.float-card--b .gcard { animation-delay: -2.5s; }
.float-card--c { width: calc(var(--sig-w) * .44); right: 6%; top: 3%; rotate: 9deg; filter: blur(.6px) saturate(.95); opacity: .92; }
.float-card--c .gcard { animation-delay: -4.5s; animation-duration: 9s; }
@keyframes bob { 50% { transform: translateY(-14px) rotate(1.2deg); } }
.hero__stage.is-open .float-card { opacity: .35; filter: blur(2px) saturate(.8); }

.envelope {
    position: absolute; z-index: 1; width: calc(var(--sig-w) * 1.18); aspect-ratio: 1.45;
    left: 6%; bottom: 3%; rotate: -9deg; will-change: transform;
    transition: opacity .8s var(--ease);
}
.hero__stage.is-open .envelope { opacity: .4; }
.envelope__body {
    position: absolute; inset: 0; border-radius: 4px;
    background: linear-gradient(160deg, #F8E2DB, #F1C9BF);
    box-shadow: var(--shadow-card), inset 0 0 0 1px rgba(255, 255, 255, .5);
}
.envelope__body::before { /* side folds */
    content: ""; position: absolute; inset: 0; border-radius: 4px;
    background: linear-gradient(to top right, transparent 49.5%, rgba(224, 122, 110, .14) 50%, transparent 50.5%), linear-gradient(to top left, transparent 49.5%, rgba(224, 122, 110, .14) 50%, transparent 50.5%);
}
.envelope__flap {
    position: absolute; left: 0; right: 0; top: 0; height: 58%;
    background: linear-gradient(180deg, #F5D3CA, #ECBBAF);
    clip-path: polygon(0 0, 100% 0, 50% 100%); border-radius: 4px 4px 0 0;
    filter: drop-shadow(0 4px 6px rgba(20, 21, 43, .1));
}
.envelope__seal {
    position: absolute; left: 50%; top: 58%; transform: translate(-50%, -50%);
    width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
    background: radial-gradient(circle at 35% 30%, #F6B1A7, var(--coral-deep));
    box-shadow: 0 4px 10px rgba(160, 60, 50, .35), inset 0 -2px 4px rgba(0, 0, 0, .15);
}
.envelope__seal img { width: 22px; height: 22px; filter: saturate(0) brightness(2.2); opacity: .9; }

/* --- Greeting card tiles (shared) ---------------------------------------- */
.gcard {
    position: relative; aspect-ratio: 5 / 7; border-radius: var(--radius-card); overflow: hidden;
    background: var(--paper); box-shadow: var(--shadow-card);
    container-type: inline-size;
}
.gcard__art { width: 100%; height: 100%; object-fit: cover; }
.gcard__text {
    position: absolute; left: 9%; right: 9%; bottom: 8.5%;
    display: grid; gap: .1em; text-align: center; line-height: 1;
}
.gcard__eyebrow { font-family: var(--font-display); font-style: italic; font-size: 8.5cqw; opacity: .85; }
.gcard__title { font-family: var(--font-display); font-size: 15.5cqw; letter-spacing: -.02em; }
.gcard--dark-text .gcard__text { color: var(--ink); }
.gcard--light-text .gcard__text { color: var(--ivory); text-shadow: 0 2px 18px rgba(20, 21, 43, .25); }
.gcard--gold-text .gcard__title, .gcard--gold-text .gcard__eyebrow { background: var(--gold-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gcard--top-text .gcard__text { top: 9%; bottom: auto; color: var(--ink); }
.gcard__sheen {
    position: absolute; inset: 0; pointer-events: none; mix-blend-mode: soft-light;
    background: radial-gradient(60% 50% at var(--sx, 30%) var(--sy, 20%), rgba(255, 255, 255, .65), transparent 70%);
    opacity: 0; transition: opacity .5s;
}
.gcard::after { /* paper edge highlight */
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28), inset 0 1px 0 rgba(255, 255, 255, .5);
}

/* --- Signature card -------------------------------------------------------- */
.sig { position: relative; z-index: 5; display: grid; justify-items: center; perspective: 1800px; }
.sig__float { animation: sigFloat 6.5s var(--ease-in-out) infinite; transform-style: preserve-3d; }
@keyframes sigFloat { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -14px, 0); } }
.hero__stage { perspective: 1800px; }
.sig__tilt, .sig__shift { transform-style: preserve-3d; will-change: transform; }
.sig__card {
    position: relative; display: block; width: var(--sig-w); aspect-ratio: 5 / 7;
    transform-style: preserve-3d; cursor: pointer; outline: none; border-radius: 2px 6px 6px 2px;
    -webkit-tap-highlight-color: transparent;
}
.sig__card:focus-visible .sig__front { outline: 2px solid var(--indigo); outline-offset: 4px; }

.sig__inside, .sig__front, .sig__back { position: absolute; inset: 0; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.sig__inside {
    border-radius: 2px 6px 6px 2px; overflow: hidden;
    background: #FFFDF8;
    background-image:
        radial-gradient(120% 80% at 100% 0%, rgba(184, 172, 246, .22), transparent 60%),
        radial-gradient(90% 60% at 0% 100%, rgba(242, 155, 145, .16), transparent 60%);
    box-shadow: var(--shadow-float);
}
.sig__inside-content {
    position: absolute; inset: 0; padding: 13% 12%;
    display: flex; flex-direction: column; justify-content: center; gap: calc(var(--sig-w) * .045);
    text-align: left;
}
.sig__kicker { font-family: var(--font-display); font-style: italic; font-size: calc(var(--sig-w) * .055); color: var(--indigo); }
.sig__greeting { font-family: var(--font-display); font-size: calc(var(--sig-w) * .125); line-height: .98; letter-spacing: -.02em; }
.sig__greeting em { color: var(--coral-deep); }
.sig__message { font-size: calc(var(--sig-w) * .044); line-height: 1.6; color: var(--ink-soft); }
.sig__sign { font-family: var(--font-display); font-size: calc(var(--sig-w) * .062); color: var(--muted); }
.sig__sign em { display: block; font-size: 1.6em; color: var(--ink); line-height: 1.1; }
.sig__inside-shade {
    position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(90deg, rgba(20, 21, 43, .38), rgba(20, 21, 43, .06) 35%, transparent 60%);
    opacity: .9;
}

.sig__cover {
    position: absolute; inset: 0; transform-origin: 0% 50%;
    transform-style: preserve-3d; transform: translateZ(1px);
    will-change: transform;
}
.sig__front {
    border-radius: 2px 6px 6px 2px; overflow: hidden; background: var(--ink);
    box-shadow: var(--shadow-float), inset 0 0 0 1px rgba(243, 223, 174, .15);
}
.sig__front img { width: 100%; height: 100%; object-fit: cover; }
.sig__front::before { /* spine fold */
    content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 7%; z-index: 2;
    background: linear-gradient(90deg, rgba(0, 0, 0, .35), rgba(255, 255, 255, .05) 60%, transparent);
}
.sig__front-text {
    position: absolute; left: 0; right: 0; bottom: 11%; text-align: center; line-height: 1;
    display: grid; gap: .15em; z-index: 2;
}
.sig__front-text span { font-family: var(--font-display); font-style: italic; font-size: calc(var(--sig-w) * .07); color: rgba(243, 223, 174, .85); }
.sig__front-text strong {
    font-family: var(--font-display); font-weight: 400; font-size: calc(var(--sig-w) * .19); letter-spacing: -.02em;
    background: var(--gold-gradient); background-size: 200% 100%; background-position: var(--foil-x, 50%) 0;
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sig__foil {
    position: absolute; inset: 0; z-index: 3; pointer-events: none; mix-blend-mode: overlay;
    background: linear-gradient(115deg, transparent 30%, rgba(255, 236, 190, .45) 46%, rgba(255, 255, 255, .15) 52%, transparent 66%);
    background-size: 260% 100%; background-position: var(--foil-x, 50%) 0;
}
.sig__back {
    transform: rotateY(180deg); border-radius: 6px 2px 2px 6px; overflow: hidden;
    background: #FBF8F1;
    box-shadow: var(--shadow-card);
}
.sig__back-pattern {
    position: absolute; inset: 9%; border-radius: 2px;
    border: 1px solid rgba(200, 161, 90, .4);
    background-image: radial-gradient(circle at 1px 1px, rgba(87, 84, 232, .22) 1px, transparent 1.4px);
    background-size: 16px 16px;
}
.sig__back-mark {
    position: absolute; left: 0; right: 0; bottom: 14%; display: grid; justify-items: center; gap: .5rem;
    font-size: calc(var(--sig-w) * .042); color: var(--slate); font-weight: 500;
}
.sig__back-mark img { width: calc(var(--sig-w) * .1); height: auto; }
.sig__back-shade { position: absolute; inset: 0; background: linear-gradient(270deg, rgba(20, 21, 43, .3), transparent 55%); }

.sig__shadow {
    position: absolute; left: 50%; bottom: calc(var(--sig-w) * -.16); z-index: -1;
    width: calc(var(--sig-w) * 1.05); height: calc(var(--sig-w) * .14); transform: translateX(-50%);
    border-radius: 50%; background: radial-gradient(closest-side, rgba(20, 21, 43, .32), transparent);
    animation: shadowPulse 6.5s var(--ease-in-out) infinite; pointer-events: none;
}
@keyframes shadowPulse { 50% { transform: translateX(-50%) scale(.86); opacity: .7; } }

.sig__burst { position: absolute; left: 0; top: 50%; width: 0; height: 0; pointer-events: none; transform: translateZ(40px); }
.sig__burst i { position: absolute; left: 0; top: 0; display: block; border-radius: 2px; }

.sig__hint, .sig__close {
    position: absolute; left: 50%; bottom: calc(var(--sig-w) * -.42); transform: translateX(-50%);
    display: inline-flex; align-items: center; gap: .55rem; height: 44px; padding: 0 1.1rem;
    border-radius: var(--radius-btn); font-size: .88rem; font-weight: 600; white-space: nowrap;
    background: var(--white); border: 1px solid var(--line-strong);
    box-shadow: var(--shadow-sm);
    transition: opacity .45s var(--ease), transform .55s var(--ease), background .3s;
}
.sig__hint:hover, .sig__close:hover { background: var(--white); }
.sig__close { opacity: 0; pointer-events: none; transform: translate(-50%, 10px); background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.sig__close:hover { background: var(--ink-2); }
.sig.is-open .sig__hint { opacity: 0; pointer-events: none; transform: translate(-50%, 10px); }
.sig.is-open .sig__close { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); transition-delay: .9s; }
.sig.is-open .sig__card { cursor: default; }

/* No-JS: show the card already open, flat and readable */
.no-js .sig__cover { display: none; }
.no-js .sig__inside-shade, .no-js .sig__hint, .no-js .sig__close { display: none; }

/* 7. MARQUEE ============================================================== */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--white); padding: 1.15rem 0; }
.marquee__track { display: flex; align-items: center; gap: 2.2rem; width: max-content; animation: marquee 48s linear infinite; }
.marquee__track span { font-family: var(--font-display); font-size: clamp(1.4rem, 2vw, 1.9rem); font-style: italic; white-space: nowrap; color: var(--ink-soft); }
.marquee__track i { width: 5px; height: 5px; border-radius: 50%; background: var(--coral); flex-shrink: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* 8. HOW IT WORKS ========================================================= */
.how { padding: var(--section-y) 0; background: var(--paper); position: relative; overflow: hidden; }
.how::before { content: ""; position: absolute; inset: 0; background-image: var(--grain); opacity: .18; mix-blend-mode: multiply; pointer-events: none; }
.how__rail { position: relative; margin-top: clamp(3.5rem, 6vw, 5.5rem); }
.how__steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 3.5rem); align-items: start; position: relative; z-index: 1; }
.how__path { position: absolute; left: 0; top: 0; width: 100%; height: 420px; z-index: 0; overflow: visible; pointer-events: none; }
.how__path path { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; }
.how__path-base { stroke: var(--line-strong); stroke-dasharray: 2 8; stroke-linecap: round; }
.how__path-draw { stroke: var(--indigo); stroke-linecap: round; }
.step { display: grid; gap: .7rem; }
.step__visual { transition: transform .7s var(--ease), box-shadow .7s var(--ease); }
.step:hover .step__visual { transform: translateY(-6px); box-shadow: 0 30px 50px -30px rgba(20, 21, 43, .35); }
.step--personalise { margin-top: clamp(0px, 9vw, 140px); }
.step--share { margin-top: clamp(0px, 3vw, 48px); }
.step__num { font-style: italic; color: var(--coral-deep); margin-right: .45rem; }
.step__num::after { content: "."; }
.step h3 { margin-top: 1rem; font-family: var(--font-display); font-weight: 400; font-size: 2.2rem; line-height: 1; letter-spacing: -.01em; }
.step p { color: var(--muted); font-size: 1rem; max-width: 34ch; }
.step__visual { height: 220px; border-radius: var(--radius-card); position: relative; overflow: hidden; display: grid; place-items: center; }
.step--create .step__visual { background: var(--lavender-soft); }
.step--personalise .step__visual { background: var(--coral-soft); }
.step--share .step__visual { background: #E9EEE2; }

.mini-fan { position: relative; width: 190px; height: 160px; }
.mini-fan img { position: absolute; left: 50%; top: 50%; width: 92px; border-radius: 4px; box-shadow: var(--shadow-sm); transform-origin: 50% 120%; transition: transform .6s var(--ease); }
.mini-fan img:nth-child(1) { transform: translate(-50%, -50%) rotate(-16deg) translateX(-14px); }
.mini-fan img:nth-child(2) { transform: translate(-50%, -50%) rotate(14deg) translateX(14px); }
.mini-fan img:nth-child(3) { transform: translate(-50%, -54%); }
.step:hover .mini-fan img:nth-child(1) { transform: translate(-50%, -50%) rotate(-24deg) translateX(-22px); }
.step:hover .mini-fan img:nth-child(2) { transform: translate(-50%, -50%) rotate(22deg) translateX(22px); }
.step:hover .mini-fan img:nth-child(3) { transform: translate(-50%, -60%); }

.step__visual--write { padding: 1.5rem; place-items: stretch; align-content: center; gap: .8rem; }
.mini-field { background: var(--white); border: 1px solid var(--line-strong); border-radius: 6px; padding: .7rem .9rem; display: grid; gap: .1rem; box-shadow: var(--shadow-sm); }
.mini-field__label { font-size: .72rem; font-weight: 600; color: var(--slate); }
.mini-field__text { font-family: var(--font-display); font-size: 1.25rem; line-height: 1.2; white-space: nowrap; overflow: hidden; }
.caret { display: inline-block; width: 1.5px; height: 1em; margin-left: 2px; vertical-align: -.12em; background: var(--indigo); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.mini-tools { display: flex; align-items: center; gap: .45rem; }
.mini-tool { display: grid; place-items: center; height: 30px; padding: 0 .6rem; border-radius: 4px; background: var(--white); border: 1px solid var(--line); font-family: var(--font-display); font-size: 1rem; }
.mini-swatch { width: 22px; height: 22px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px var(--white), 0 0 0 3px var(--line); }
.mini-swatch:first-of-type { box-shadow: 0 0 0 2px var(--white), 0 0 0 3.5px var(--indigo); }

.step__visual--share { padding: 1.5rem; place-items: stretch; align-content: center; gap: .8rem; }
.mini-link { display: flex; align-items: center; gap: .5rem; background: var(--white); border: 1px solid var(--line-strong); border-radius: 6px; padding: .65rem .85rem; font-size: .82rem; font-weight: 600; box-shadow: var(--shadow-sm); }
.mini-link span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-link svg { color: var(--slate); }
.mini-status { justify-self: start; display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .75rem; border-radius: 4px; background: var(--white); color: #2F6B3A; font-size: .8rem; font-weight: 600; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: #3FA35A; box-shadow: 0 0 0 0 rgba(63, 163, 90, .5); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(63, 163, 90, 0); } 100% { box-shadow: 0 0 0 0 rgba(63, 163, 90, 0); } }

/* 9. GALLERY ============================================================== */
.gallery { padding: var(--section-y) 0 calc(var(--section-y) * .8); overflow: hidden; }
.gallery__head { display: grid; grid-template-columns: 1.2fr 1fr; align-items: end; gap: 2rem; }
.gallery__head .section-title { max-width: 20ch; }
.gallery__intro { display: grid; gap: 1.5rem; justify-items: start; color: var(--muted); font-size: var(--fs-lede); max-width: 440px; justify-self: end; }
.gallery__arrows { display: flex; gap: .6rem; }
.gallery__tabs { display: flex; flex-wrap: wrap; gap: .25rem 2rem; margin: clamp(2.5rem, 4vw, 3.5rem) 0 clamp(1rem, 2vw, 1.5rem); border-bottom: 1px solid var(--line); }

.gallery__swiper { padding: 30px 0 50px; overflow: visible; }
.gslide { width: clamp(240px, 23vw, 340px); transition: opacity .6s var(--ease); }
.gallery__swiper.swiper-initialized .gslide:not(.swiper-slide-active) { opacity: .55; }
.gallery__swiper.swiper-initialized .gslide:not(.swiper-slide-active):hover { opacity: .85; }
.gslide__card { perspective: 1000px; transform-style: preserve-3d; }
.gslide__card .gcard { transition: transform .6s var(--ease), box-shadow .6s var(--ease); will-change: transform; }
.gslide__card:hover .gcard { box-shadow: 0 2px 4px rgba(20, 21, 43, .05), 0 30px 60px -16px rgba(20, 21, 43, .35); }
.gslide__card:hover .gcard__sheen { opacity: 1; }
[data-tilt]:hover > * { transition-duration: .18s; transition-timing-function: linear; }
.no-js [data-duplicate] { display: none; }
.gslide__meta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.1rem; padding: 0 .2rem; }
.gslide__meta > div { display: grid; }
.gslide__occasion { font-size: .85rem; font-weight: 500; color: var(--slate); }
.gslide__name { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; line-height: 1.15; }
.gslide__use { display: inline-flex; align-items: center; gap: .3rem; padding: .5rem .9rem; border-radius: 6px; border: 1px solid var(--line-strong); font-size: .85rem; font-weight: 600; transition: all .35s var(--ease); }
.gslide__use:hover { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.gallery__progress { height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; max-width: 340px; margin: 0 auto; }
.gallery__progress span { display: block; height: 100%; width: calc(100% / 6); background: var(--ink); border-radius: 2px; transition: transform .6s var(--ease); }
.no-js .gallery__swiper { overflow-x: auto; padding-inline: var(--gutter); }
.no-js .gallery__swiper .swiper-wrapper { gap: 24px; }

/* 10a. AI CREATOR ========================================================= */
.ai { padding: 0; }
.ai__panel {
    position: relative; overflow: hidden; isolation: isolate;
    background: var(--ink); color: var(--ivory);
    padding: clamp(6rem, 10vw, 9.5rem) 0;
}
.ai__panel::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--grain); opacity: .3; mix-blend-mode: soft-light; pointer-events: none; }
.ai__aurora { position: absolute; inset: 0; z-index: -2; }
.ai__aurora span { position: absolute; border-radius: 50%; filter: blur(100px); opacity: .45; }
.ai__aurora span { width: 42vw; height: 42vw; right: 2vw; top: 10%; background: radial-gradient(circle, var(--indigo), transparent 65%); }
@keyframes aurora { to { transform: translate3d(5vw, 4vw, 0) scale(1.15); } }
.ai__layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(3rem, 6vw, 7rem); align-items: center; }
.ai__copy { display: grid; gap: 1.6rem; justify-items: start; }

.prompt {
    width: 100%; max-width: 600px; display: grid; gap: .8rem; padding: 1.1rem 1.1rem 1rem;
    border-radius: 10px; background: var(--ink-2);
    border: 1px solid rgba(255, 255, 255, .1);
    transition: border-color .4s, box-shadow .4s;
}
.prompt:focus-within { border-color: rgba(184, 172, 246, .6); }
.prompt__label { font-size: .88rem; font-weight: 500; color: rgba(250, 248, 243, .55); }
.prompt__input {
    width: 100%; resize: none; border: 0; outline: none; background: transparent;
    font-family: var(--font-display); font-size: clamp(1.3rem, 1.7vw, 1.65rem); line-height: 1.35; color: var(--ivory);
}
.prompt__foot { display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; padding-top: .8rem; border-top: 1px solid rgba(255, 255, 255, .08); }
.prompt__styles { display: flex; flex-wrap: wrap; gap: .4rem; }
.style-chip { height: 32px; padding: 0 .8rem; border-radius: 6px; font-size: .78rem; font-weight: 600; color: rgba(250, 248, 243, .7); border: 1px solid rgba(255, 255, 255, .12); transition: all .3s var(--ease); }
.style-chip:hover { color: var(--ivory); border-color: rgba(255, 255, 255, .3); }
.style-chip.is-active { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }
.ai__note { font-size: .88rem; color: rgba(250, 248, 243, .5); }

.ai__result { display: grid; justify-items: center; gap: 1.4rem; }
.ai__frame { perspective: 1000px; width: min(100%, 380px); }
.ai__card { position: relative; transition: transform .6s var(--ease); will-change: transform; }
.ai__card .gcard { box-shadow: 0 40px 80px -24px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .08); }
.ai__card .gcard__art { transition: filter .9s var(--ease); }
.ai__card[data-style="foil"] .gcard__art, .style-foil { filter: sepia(.45) saturate(1.35) hue-rotate(-12deg) brightness(1.03); }
.ai__card[data-style="dusk"] .gcard__art, .style-dusk { filter: hue-rotate(-38deg) saturate(1.25) brightness(.86) contrast(1.05); }
.ai__card[data-style="mono"] .gcard__art, .style-mono { filter: grayscale(.92) contrast(1.08) brightness(1.06); }
.ai__frame:hover .gcard__sheen { opacity: 1; }
.ai__scan { position: absolute; inset: 0; border-radius: var(--radius-card); overflow: hidden; pointer-events: none; opacity: 0; }
.ai__scan::before { content: ""; position: absolute; inset: 0; background: rgba(20, 21, 43, .55); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); }
.ai__scan span { position: absolute; left: 0; right: 0; top: 0; height: 30%; background: linear-gradient(180deg, transparent, rgba(184, 172, 246, .55), transparent); }
.ai__card.is-generating .ai__scan { opacity: 1; transition: opacity .3s; }
.ai__card.is-generating .ai__scan span { animation: scan 1.3s var(--ease-in-out) infinite; }
@keyframes scan { 0% { transform: translateY(-100%); } 100% { transform: translateY(340%); } }
.ai__status { display: inline-flex; align-items: center; gap: .55rem; padding: .4rem 0; font-size: .85rem; color: rgba(250, 248, 243, .75); }
.ai__status-dot { width: 7px; height: 7px; border-radius: 50%; background: #7CD992; box-shadow: 0 0 10px #7CD992; }
.ai__status.is-busy .ai__status-dot { background: var(--lavender); box-shadow: 0 0 10px var(--lavender); animation: blink .8s steps(1) infinite; }
.ai__variants { display: flex; gap: .6rem; }
.ai__variant { width: 52px; border-radius: 3px; overflow: hidden; opacity: .55; outline: 2px solid transparent; outline-offset: 3px; transition: opacity .3s, outline-color .3s, transform .4s var(--ease); }
.ai__variant img { aspect-ratio: 5/7; object-fit: cover; }
.ai__variant:hover { opacity: .9; transform: translateY(-3px); }
.ai__variant.is-active { opacity: 1; outline-color: var(--lavender); }

/* 10b. DASHBOARD ========================================================== */
.manage { padding: var(--section-y) 0; overflow: hidden; }
.manage__layout { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(3rem, 5vw, 6rem); align-items: center; }
.manage__copy { display: grid; gap: 1.6rem; justify-items: start; }

.expiry {
    width: 100%; max-width: 480px; margin-top: .8rem; padding: 1.5rem; border-radius: 10px;
    background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.expiry__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.expiry h3 { font-size: 1rem; font-weight: 700; }
.expiry__value { font-family: var(--font-display); font-size: 2rem; line-height: 1; color: var(--indigo); white-space: nowrap; }
.expiry__range {
    --p: 44.8%;
    -webkit-appearance: none; appearance: none; width: 100%; height: 6px; margin: 1.2rem 0 .5rem; border-radius: 6px; cursor: pointer;
    background: linear-gradient(90deg, var(--indigo) 0 var(--p), var(--lavender-soft) var(--p) 100%);
}
.expiry__range::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--white); border: 1px solid var(--line-strong); box-shadow: 0 4px 12px rgba(20, 21, 43, .2), inset 0 0 0 6px var(--indigo); transition: transform .3s var(--ease); }
.expiry__range::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: var(--white); border: 1px solid var(--line-strong); box-shadow: 0 4px 12px rgba(20, 21, 43, .2), inset 0 0 0 6px var(--indigo); }
.expiry__range:active::-webkit-slider-thumb { transform: scale(1.15); }
.expiry__scale { display: flex; justify-content: space-between; font-size: var(--fs-xs); color: var(--slate); font-weight: 600; }
.expiry__timeline { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 1.5rem; position: relative; }
.expiry__timeline::before { content: ""; position: absolute; top: 6px; left: 6px; right: calc(33.33% - 6px); height: 2px; background: linear-gradient(90deg, var(--line-strong), var(--indigo) 50%, var(--coral)); }
.expiry__timeline li { position: relative; display: grid; gap: .1rem; padding-top: 1.4rem; font-size: .82rem; }
.expiry__timeline .node { position: absolute; top: 0; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--white); border: 2px solid var(--line-strong); }
.expiry__timeline .is-key .node { border-color: var(--indigo); box-shadow: 0 0 0 4px rgba(87, 84, 232, .15); }
.expiry__timeline li:last-child .node { border-color: var(--coral); }
.expiry__timeline small { color: var(--slate); font-size: .76rem; }

.manage__visual { position: relative; }
.dash {
    border-radius: 12px; overflow: hidden; background: var(--white);
    border: 1px solid var(--line); box-shadow: var(--shadow-float);
    font-size: .82rem; transform-origin: 0% 50%;
}
.dash__bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 44px; padding: 0 1rem; background: #F7F5F0; border-bottom: 1px solid var(--line); }
.dash__dots { display: flex; gap: 6px; }
.dash__dots i { width: 10px; height: 10px; border-radius: 50%; background: #E3DFD6; }
.dash__dots i:nth-child(1) { background: #F29B91; } .dash__dots i:nth-child(2) { background: #F3D695; } .dash__dots i:nth-child(3) { background: #A9C9A4; }
.dash__url { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .9rem; border-radius: var(--radius-pill); background: var(--white); border: 1px solid var(--line); color: var(--slate); font-size: .75rem; font-weight: 600; }
.dash__body { display: grid; grid-template-columns: 64px 1fr; min-height: 470px; }
.dash__side { display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: 1rem 0; border-right: 1px solid var(--line); background: #FCFBF8; }
.dash__side img { margin-bottom: .8rem; }
.dash__side span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; color: var(--slate); font-size: 1.05rem; }
.dash__side span.is-active { background: var(--lavender-soft); color: var(--indigo); }
.dash__side-bottom { margin-top: auto; }
.dash__main { padding: 1.4rem 1.5rem; display: grid; gap: 1.2rem; align-content: start; }
.dash__header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.dash__header h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.7rem; line-height: 1.1; }
.dash__header p { color: var(--slate); }
.dash__new { display: inline-flex; align-items: center; gap: .35rem; padding: .55rem .9rem; border-radius: 6px; background: var(--ink); color: var(--ivory); font-weight: 600; white-space: nowrap; }
.dash__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.stat { display: grid; gap: .2rem; padding: 1rem; border-radius: 8px; border: 1px solid var(--line); background: #FDFCFA; position: relative; }
.stat__icon { position: absolute; right: .9rem; top: .9rem; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--paper); color: var(--ink-soft); }
.stat__label { color: var(--slate); font-weight: 600; font-size: .76rem; }
.stat__value { font-family: var(--font-display); font-weight: 400; font-size: 2.6rem; line-height: 1; letter-spacing: -.02em; }
.stat__foot { color: #2F6B3A; font-weight: 600; font-size: .74rem; }
.stat--accent { background: linear-gradient(160deg, #F1EEFE, #FDFCFA 70%); border-color: rgba(87, 84, 232, .18); }
.stat--accent .stat__icon { background: var(--indigo); color: var(--white); }
.stat__bar { height: 5px; border-radius: 5px; background: var(--lavender-soft); overflow: hidden; margin-top: .35rem; }
.stat__bar span { display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, var(--indigo), var(--lavender)); }
.dash__table { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.dash__table-head { display: flex; align-items: center; justify-content: space-between; padding: .8rem 1rem; border-bottom: 1px solid var(--line); }
.dash__table-head h4 { font-size: .88rem; }
.dash__tabs { display: flex; gap: .2rem; padding: 3px; border-radius: var(--radius-pill); background: var(--paper); font-size: .72rem; font-weight: 600; color: var(--slate); }
.dash__tabs > * { padding: .2rem .6rem; border-radius: var(--radius-pill); }
.dash__tabs b { background: var(--white); color: var(--ink); box-shadow: var(--shadow-sm); }
.row { display: grid; grid-template-columns: 34px 1.3fr auto 1.2fr 1fr; align-items: center; gap: .9rem; padding: .7rem 1rem; border-bottom: 1px solid var(--line); transition: background .3s; }
.row:last-child { border-bottom: 0; }
.row:hover { background: #FBFAF6; }
.row__thumb { width: 34px; border-radius: 5px; aspect-ratio: 5/7; object-fit: cover; box-shadow: var(--shadow-sm); }
.row__who { display: grid; line-height: 1.3; }
.row__who span { color: var(--slate); font-size: .74rem; }
.pill { justify-self: start; display: inline-flex; align-items: center; gap: .35rem; padding: .22rem .6rem; border-radius: var(--radius-pill); font-size: .72rem; font-weight: 700; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill--opened { background: #E9F3EA; color: #2F6B3A; }
.pill--awaiting { background: #FDF3E1; color: #9A6A12; }
.row__when { color: var(--slate); font-size: .76rem; }
.row__expiry { display: inline-flex; align-items: center; gap: .5rem; font-size: .76rem; font-weight: 600; }
.row__expiry svg { width: 26px; height: 26px; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: var(--paper); stroke-width: 4; }
.ring { fill: none; stroke: var(--indigo); stroke-width: 4; stroke-linecap: round; stroke-dasharray: var(--circ); stroke-dashoffset: var(--off); transition: stroke-dashoffset 1.4s var(--ease); }
.ring--idle { stroke: var(--line-strong); stroke-dasharray: 3 4; }
.row__expiry.is-soon .ring { stroke: var(--coral-deep); }
.row__expiry.is-soon span { color: var(--coral-deep); }

.dash-toast {
    position: absolute; left: -38px; bottom: -26px; z-index: 3;
    display: flex; align-items: center; gap: .75rem; padding: .8rem 1rem .8rem .8rem; border-radius: 10px;
    background: var(--white); border: 1px solid var(--line);
    box-shadow: var(--shadow-float); font-size: .82rem;
    animation: bob 6s var(--ease-in-out) infinite;
}
.dash-toast div { display: grid; line-height: 1.3; }
.dash-toast span:not(.dash-toast__avatar) { color: var(--slate); font-size: .74rem; }
.dash-toast__avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--coral), var(--coral-deep)); color: var(--white); font-weight: 700; }
.dash-toast svg { color: var(--gold); font-size: 1.2rem; }

/* 11. FINAL CTA =========================================================== */
.cta { padding: 0; }
.cta__panel {
    position: relative; overflow: hidden; isolation: isolate;
    min-height: clamp(560px, 80vh, 760px); display: grid; place-items: center; text-align: center;
    background: var(--paper); padding: 6rem var(--gutter);
}
.cta__panel::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--grain); opacity: .25; mix-blend-mode: multiply; pointer-events: none; }
.cta__cards { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.cta__card { position: absolute; width: clamp(110px, 11vw, 180px); border-radius: 4px; box-shadow: var(--shadow-card); }
.cta__card--1 { left: 7%; top: 14%; rotate: -14deg; }
.cta__card--2 { right: 8%; top: 12%; rotate: 12deg; width: clamp(100px, 9vw, 150px); }
.cta__card--3 { left: 12%; bottom: 10%; rotate: 9deg; width: clamp(90px, 8vw, 135px); }
.cta__card--4 { right: 12%; bottom: 12%; rotate: -8deg; }
.cta__content { display: grid; justify-items: center; gap: 1.6rem; max-width: 820px; }
.cta__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(3rem, 7vw, 7rem); line-height: .94; letter-spacing: -.035em; }
.cta__title em { color: var(--indigo); }
.cta__text { font-size: var(--fs-lede); color: var(--ink-soft); max-width: 48ch; }
.cta .btn--xl { margin-top: .6rem; }

/* 12. FOOTER ============================================================== */
.footer { background: var(--ink); color: rgba(250, 248, 243, .7); padding: clamp(4rem, 7vw, 6rem) 0 2rem; position: relative; overflow: hidden; }
.footer__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 2.5rem; }
.footer__brand { display: grid; gap: 1.2rem; align-content: start; max-width: 360px; }
.footer__brand p { font-size: .95rem; line-height: 1.7; }
.footer__col { display: grid; gap: .7rem; align-content: start; }
.footer__col h3 { font-size: .95rem; font-weight: 600; color: var(--ivory); margin-bottom: .4rem; }
.footer__col a { font-size: .95rem; width: max-content; position: relative; transition: color .3s; }
.footer__col a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 1px; background: var(--lavender); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.footer__col a:hover { color: var(--ivory); }
.footer__col a:hover::after { transform: scaleX(1); transform-origin: left; }
.footer__bottom { margin-top: clamp(3.5rem, 6vw, 5rem); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.5rem; border-top: 1px solid rgba(250, 248, 243, .1); font-size: .82rem; color: rgba(250, 248, 243, .45); }

/* 13. MOTION PREFERENCES ================================================== */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
    .marquee__track { animation: none; }
}
