/* Drobee homepage — a sketchbook closet that reacts to you. */

:root {
    --paper: #FBF6EC;
    --card: #FFFDF8;
    --ink: #3A3431;
    --ink-2: #6B625D;
    --butter: #F7D97C;
    --peach: #F4B48E;
    --lavender: #CBBBF0;
    --mint: #BFE3C4;
    --blush: #F5B8B1;
    --accent: #7A62C2;
    /* Hand-drawn box edge: uneven radii read as a pencil outline. */
    --wobbly: 255px 18px 225px 18px / 18px 225px 18px 255px;
    --display: "Bricolage Grotesque", ui-rounded, system-ui, sans-serif;
    --hand: "Caveat", "Bradley Hand", cursive;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    margin: 0;
    font-family: var(--display);
    font-size: 18px;
    line-height: 1.5;
    color: var(--ink);
    background-color: var(--paper);
    /* Sketchbook dot grid. */
    background-image: radial-gradient(rgba(58, 52, 49, .11) 1.2px, transparent 1.3px);
    background-size: 24px 24px;
    overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2 { font-weight: 800; letter-spacing: -0.035em; line-height: .95; margin: 0; }
h2 { font-size: clamp(2.2rem, 4.8vw, 4rem); }
p { margin: 0; }

.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link {
    position: absolute; left: 12px; top: -60px; z-index: 100;
    background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 12px;
}
.skip-link:focus { top: 12px; }

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

.note {
    font-family: var(--hand);
    font-weight: 700;
    font-size: clamp(1.35rem, 2.2vw, 1.75rem);
    color: var(--accent);
    line-height: 1.1;
}

/* ---------- Buttons ---------- */

.btn {
    --mx: 0px; --my: 0px;
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 24px;
    border: 0; border-radius: 999px;
    background: var(--ink); color: var(--paper);
    font: 700 1rem/1 var(--display);
    text-decoration: none; cursor: pointer;
    box-shadow: 4px 5px 0 var(--butter), 4px 5px 0 2.5px var(--ink);
    transform: translate(var(--mx), var(--my));
    transition: transform .25s cubic-bezier(.2, .9, .3, 1.4), box-shadow .2s;
}
.btn:hover { box-shadow: 6px 8px 0 var(--butter), 6px 8px 0 2.5px var(--ink); }
.btn:active { box-shadow: 1px 2px 0 var(--butter), 1px 2px 0 2.5px var(--ink); transform: translate(var(--mx), calc(var(--my) + 3px)); }
.btn-small { padding: 10px 18px; font-size: .95rem; box-shadow: 3px 4px 0 var(--butter), 3px 4px 0 2px var(--ink); }
.btn-big { padding: 18px 30px; font-size: 1.15rem; }

/* ---------- Header ---------- */

.top {
    position: fixed; inset: 0 0 auto 0; z-index: 50;
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px clamp(16px, 4vw, 48px);
    pointer-events: none;
}
.top > * { pointer-events: auto; }
.top::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: rgba(251, 246, 236, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-bottom: 2.5px dashed rgba(58, 52, 49, .25);
    opacity: 0; transition: opacity .3s;
}
.top.scrolled::before { opacity: 1; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.5rem; letter-spacing: -0.04em; }
.brand img { width: 40px; height: 40px; border-radius: 11px; border: 2px solid var(--ink); }

/* ---------- Hero ---------- */

.hero {
    position: relative;
    max-width: 1160px; margin: 0 auto;
    min-height: min(100svh, 820px);
    display: flex; flex-direction: column;
    padding: 160px clamp(16px, 5vw, 72px) clamp(36px, 7vh, 80px);
    overflow: hidden;
}
/* The whole app screen, tilted, to the right of the headline. */
.hero-phone {
    position: absolute; z-index: 1; right: clamp(8px, 3vw, 40px); bottom: clamp(12px, 3vh, 32px);
    width: clamp(170px, 15vw, 215px); rotate: 5deg;
}
.hero-phone img {
    display: block; width: 100%; height: auto;
    border: 8px solid var(--ink); border-radius: 40px;
    box-shadow: 12px 14px 0 var(--lavender), 12px 14px 0 3px var(--ink);
}
@media (min-width: 901px) { .hero-copy { max-width: min(660px, 62%); } }
@media (max-width: 900px) {
    .hero-phone { position: relative; right: auto; bottom: auto; rotate: 3deg; width: min(220px, 62%); margin: 40px auto 10px; }
}
.trail { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; }

.rail {
    position: relative;
    display: flex; justify-content: space-around; align-items: flex-start;
    z-index: 1;
}
.rail-bar {
    position: absolute; top: 2px; left: -10px; right: -10px; height: 9px;
    background: var(--ink); border-radius: 9px;
    transform: rotate(-.4deg);
}
.rail-bar::before, .rail-bar::after {
    content: ""; position: absolute; top: -80px; width: 9px; height: 84px; background: var(--ink); border-radius: 9px;
}
.rail-bar::before { left: 6px; }
.rail-bar::after { right: 6px; }

.hang {
    --angle: 0rad;
    width: clamp(96px, 12.5vw, 196px);
    transform-origin: 50% 3px;
    transform: rotate(var(--angle));
    will-change: transform;
}
.hang .hook { width: 100%; height: auto; aspect-ratio: 200 / 60; overflow: visible; }
.hang .cloth { width: 100%; height: auto; aspect-ratio: 1; margin-top: -15%; filter: drop-shadow(5px 8px 0 rgba(58, 52, 49, .08)); }
.hang .cloth.low { margin-top: -15%; }

.hero-copy { position: relative; z-index: 2; max-width: 860px; margin-top: auto; padding-top: 48px; }
.hero h1 {
    font-size: clamp(2.8rem, 7vw, 6.2rem);
    letter-spacing: -0.05em;
    line-height: .9;
}
.squiggle {
    position: relative; display: inline-block; color: var(--accent);
}
.squiggle::after {
    content: ""; position: absolute; left: -2%; right: -2%; bottom: -.08em; height: .22em;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 24'%3E%3Cpath d='M4 16 Q40 2 76 14 T148 12 T222 14 T296 8' fill='none' stroke='%23F7D97C' stroke-width='9' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
    z-index: -1;
}
.lede { margin-top: 22px; max-width: 34ch; font-size: clamp(1.15rem, 1.8vw, 1.45rem); color: var(--ink-2); }
.cta-row { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; }
.note-cta { color: var(--ink-2); transform: rotate(-3deg); }

/* Placed next to Bee every frame by home.js, so the arrow always points at her. */
.note-bee {
    position: absolute; z-index: 4; left: 0; top: 0;
    display: flex; align-items: center; gap: 6px; white-space: nowrap;
    padding: 2px 10px; border-radius: 999px; background: rgba(251, 246, 236, .92);
    pointer-events: none; transition: opacity .6s;
}
.note-bee.flip { flex-direction: row-reverse; }
.note-bee.flip svg { transform: scaleX(-1); }
.note-bee.gone { opacity: 0; }

.bee {
    position: absolute; left: 0; top: 0; z-index: 5;
    width: clamp(84px, 9vw, 128px); height: auto;
    pointer-events: none;
    will-change: transform;
    filter: drop-shadow(0 10px 8px rgba(58, 52, 49, .12));
}
html:not(.js) .bee { left: auto; right: 10vw; top: 52vh; }

/* ---------- Steps ---------- */

.steps {
    display: flex; align-items: center; justify-content: center; gap: clamp(8px, 2vw, 24px);
    padding: clamp(60px, 10vh, 120px) clamp(16px, 5vw, 72px);
}
.step {
    --rx: 0deg; --ry: 0deg;
    position: relative; flex: 0 1 240px;
    padding: 26px 22px 18px;
    background: var(--card);
    border: 3px solid var(--ink); border-radius: var(--wobbly);
    text-align: center;
    transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
    transition: transform .2s ease-out;
}
.step:nth-of-type(1) { background: #FDF0CF; rotate: -2deg; }
.step:nth-of-type(2) { background: #EDE6F8; rotate: 1.5deg; }
.step:nth-of-type(3) { background: #E4F3E6; rotate: -1deg; }
.step img { height: clamp(100px, 11vw, 150px); width: auto; margin: 0 auto; }
.step p { font-family: var(--hand); font-weight: 700; font-size: clamp(1.5rem, 2.2vw, 1.95rem); margin-top: 6px; }
.num {
    position: absolute; top: -18px; left: -14px;
    width: 46px; height: 46px; display: grid; place-items: center;
    background: var(--ink); color: var(--paper); border-radius: 50%;
    font-weight: 800; font-size: 1.3rem;
}
.arrow { flex: 0 0 auto; width: clamp(50px, 8vw, 110px); }

/* ---------- Section heads ---------- */

section { position: relative; }
.section-head {
    display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 40px;
    max-width: 1000px; margin: 0 auto 36px;
}
.section-head .note { transform: rotate(-3deg); padding-bottom: 8px; }

/* ---------- Cut-out compare ---------- */

.cutout-section { padding: clamp(40px, 8vh, 100px) clamp(16px, 5vw, 72px); }
.compare {
    --split: 50%;
    position: relative; max-width: 1000px; margin: 0 auto;
    aspect-ratio: 5 / 3;
    border: 3px solid var(--ink); border-radius: 28px;
    overflow: hidden;
    cursor: ew-resize;
    touch-action: pan-y;
    background: var(--card);
    box-shadow: 8px 10px 0 var(--lavender), 8px 10px 0 3px var(--ink);
}
.scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene.after {
    background-color: var(--card);
    background-image: radial-gradient(rgba(58, 52, 49, .1) 1.2px, transparent 1.3px);
    background-size: 22px 22px;
    clip-path: inset(0 0 0 var(--split));
    display: grid; place-items: center;
}
.after-cloth { width: 46%; height: auto; filter: drop-shadow(10px 16px 0 rgba(58, 52, 49, .1)); }
.tags {
    position: absolute; right: 5%; top: 50%; translate: 0 -50%;
    list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; justify-items: end;
}
.tags li {
    padding: 7px 16px; border: 2.5px solid var(--ink); border-radius: 999px;
    background: var(--lavender); font-weight: 700; font-size: clamp(.8rem, 1.4vw, 1.05rem);
}
.tags li:nth-child(2) { background: #E1D7F7; rotate: 3deg; }
.tags li:nth-child(3) { background: var(--butter); rotate: -2deg; }
.tags li:nth-child(4) { background: var(--mint); rotate: 2deg; }
.scene-label {
    position: absolute; top: 18px; z-index: 2;
    font-family: var(--hand); font-weight: 700; font-size: clamp(1.3rem, 2.4vw, 2rem);
    background: var(--card); padding: 0 12px; border-radius: 10px; border: 2px solid var(--ink);
}
.before-label { left: 18px; rotate: -3deg; }
.after-label { right: 18px; rotate: 2deg; }
.handle {
    position: absolute; top: 0; bottom: 0; left: var(--split); z-index: 3;
    width: 0; border-left: 3px dashed var(--ink);
    pointer-events: none;
}
.handle span {
    position: absolute; top: 50%; left: 0; translate: -50% -50%;
    width: 56px; height: 56px; display: grid; place-items: center;
    background: var(--butter); border: 3px solid var(--ink); border-radius: 50%;
    font-size: 1.6rem; rotate: -90deg;
}

/* ---------- Shuffle machine ---------- */

.shuffle-section { padding: clamp(60px, 10vh, 120px) clamp(16px, 5vw, 72px); }
.machine {
    max-width: 1000px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr minmax(240px, 320px); gap: clamp(20px, 4vw, 56px); align-items: center;
}
.reels { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 2vw, 22px); }
.reel {
    position: relative; aspect-ratio: 3 / 4; padding: 0;
    background: var(--card); border: 3px solid var(--ink); border-radius: var(--wobbly);
    cursor: pointer; overflow: hidden;
    transition: background .2s, transform .2s;
}
.reel:nth-child(1) { rotate: -1.5deg; }
.reel:nth-child(2) { rotate: 1deg; }
.reel:nth-child(3) { rotate: -.5deg; }
.reel:hover { transform: translateY(-4px); }
.reel svg { position: absolute; inset: 7%; width: 86%; height: 86%; }
/* Sketch strokes wobble a few px past their box: never clip them. */
.cloth, .reel svg, .after-cloth, .includes svg { overflow: visible; }
.reel.spinning svg { animation: reel-blur .09s linear infinite; }
.reel.landed svg { animation: reel-land .45s cubic-bezier(.2, 1.6, .4, 1); }
.reel[aria-pressed="true"] { background: #EDE6F8; }
.lock {
    position: absolute; top: 10px; right: 10px;
    padding: 2px 10px; border-radius: 999px; background: var(--ink); color: var(--paper);
    font: 700 .8rem/1.6 var(--display);
    opacity: 0; transform: scale(.6); transition: opacity .2s, transform .25s cubic-bezier(.2, 1.6, .4, 1);
}
.reel[aria-pressed="true"] .lock { opacity: 1; transform: none; }
@keyframes reel-blur {
    from { translate: 0 -30%; filter: blur(3px); opacity: .6; }
    to { translate: 0 30%; filter: blur(3px); opacity: .6; }
}
@keyframes reel-land {
    0% { translate: 0 -18%; }
    100% { translate: 0 0; }
}
.machine-side { display: grid; justify-items: center; gap: 16px; text-align: center; }
.machine-bee { width: 130px; height: auto; transition: transform .3s cubic-bezier(.2, 1.6, .4, 1); }
.machine-bee.hop { transform: translateY(-14px) rotate(-6deg); }
.bee-says {
    position: relative; padding: 14px 18px;
    background: var(--card); border: 3px solid var(--ink); border-radius: 22px;
    font-family: var(--hand); font-weight: 700; font-size: 1.55rem; line-height: 1.1;
    min-height: 2.7em; display: grid; place-items: center;
}
.bee-says::before {
    content: ""; position: absolute; top: -12px; left: 50%; width: 18px; height: 18px;
    background: var(--card); border-left: 3px solid var(--ink); border-top: 3px solid var(--ink);
    translate: -50% 0; rotate: 45deg;
}

/* ---------- App ---------- */

.app-section { padding: clamp(60px, 10vh, 120px) clamp(16px, 5vw, 72px); }
.phone-stage {
    position: relative; max-width: 1000px; margin: 0 auto;
    display: grid; place-items: center; padding: 30px 0 60px;
}
.phone {
    --rx: 0deg; --ry: 0deg;
    width: clamp(240px, 26vw, 330px);
    border: 10px solid var(--ink); border-radius: 48px; overflow: hidden;
    background: var(--ink);
    box-shadow: 14px 18px 0 var(--butter), 14px 18px 0 3px var(--ink);
    transform: perspective(1100px) rotateX(var(--rx)) rotateY(var(--ry)) rotate(-2deg);
    transition: transform .2s ease-out;
}
.phone img { width: 100%; height: auto; border-radius: 38px; }
.sticker, .sticker-bee {
    --px: 0px; --py: 0px;
    position: absolute; translate: var(--px) var(--py);
    transition: translate .3s ease-out;
}
.sticker {
    padding: 10px 18px; border: 3px solid var(--ink); border-radius: 999px;
    font-weight: 800; font-size: clamp(.95rem, 1.5vw, 1.25rem); white-space: nowrap;
    box-shadow: 4px 5px 0 rgba(58, 52, 49, .18);
}
.s1 { background: var(--peach); left: 12%; top: 18%; rotate: -8deg; }
.s2 { background: var(--mint); right: 12%; top: 34%; rotate: 6deg; }
.s3 { background: var(--lavender); left: 16%; bottom: 22%; rotate: 4deg; }
.sticker-bee { width: clamp(110px, 13vw, 170px); height: auto; right: 14%; bottom: 6%; }

/* ---------- Camera-roll scan ---------- */

.scan-section { padding: clamp(40px, 8vh, 100px) clamp(16px, 5vw, 72px); }
.scan-stage {
    max-width: 1000px; margin: 0 auto;
    display: grid; grid-template-columns: 1.15fr auto 1fr; align-items: center; gap: clamp(14px, 3vw, 36px);
}
.roll, .found {
    position: relative; padding: clamp(14px, 2vw, 22px);
    background: var(--card); border: 3px solid var(--ink); border-radius: var(--wobbly);
}
.roll { rotate: -1.5deg; overflow: hidden; }
.found { rotate: 1.5deg; background: #EDE6F8; }
.roll ul, .found ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(8px, 1.2vw, 14px); }
.roll-label, .found-title { display: block; font-family: var(--hand); font-weight: 700; font-size: clamp(1.4rem, 2.2vw, 1.9rem); margin: 0 0 10px; }
.shot { position: relative; aspect-ratio: 3 / 4; border: 2px solid var(--ink); border-radius: 12px; display: grid; place-items: center; }
.shot:nth-child(1) { background: #FDF0CF; }
.shot:nth-child(2) { background: #E4F3E6; }
.shot:nth-child(3) { background: #FCE3D6; }
.shot:nth-child(4) { background: #EDE6F8; }
.shot:nth-child(5) { background: #E4F3E6; }
.shot:nth-child(6) { background: #FDF0CF; }
.shot svg { width: 78%; height: auto; }
.shot.friend { opacity: .45; }
.shot.friend::after {
    content: "not you"; position: absolute; inset: auto 6px 6px; text-align: center;
    font-family: var(--hand); font-weight: 700; font-size: 1.05rem; line-height: 1.4;
    background: var(--card); border: 1.5px solid var(--ink); border-radius: 999px;
}
.shot.hit::after {
    content: "✓"; position: absolute; top: -9px; right: -9px; width: 26px; height: 26px; display: grid; place-items: center;
    background: var(--mint); border: 2px solid var(--ink); border-radius: 50%; font-weight: 800; font-size: .85rem;
}
/* The sweeping scan line, like the one in the app. */
.roll::after {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 64px; pointer-events: none;
    background: linear-gradient(to bottom, transparent, rgba(247, 217, 124, .75), transparent);
    animation: scan-sweep 3.4s ease-in-out infinite alternate;
}
@keyframes scan-sweep { from { transform: translateY(-40px); } to { transform: translateY(var(--roll-h, 420px)); } }
.found li {
    aspect-ratio: 1; display: grid; place-items: center;
    background: var(--card); border: 2px solid var(--ink); border-radius: 14px;
}
.found li svg { width: 82%; height: auto; }
.scan-stage.in .found li { animation: found-pop .5s cubic-bezier(.2, 1.4, .4, 1) backwards; animation-delay: calc(var(--i) * .22s + .5s); }
@keyframes found-pop { from { opacity: 0; transform: scale(.4) rotate(-8deg); } }
.scan-private {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    max-width: 1000px; margin: 30px auto 0; color: var(--ink-2); font-size: 1rem; text-align: center;
}
.scan-private svg { flex: none; }
@media (max-width: 760px) {
    .scan-stage { grid-template-columns: 1fr; }
    .scan-arrow { justify-self: center; rotate: 90deg; }
}
@media (prefers-reduced-motion: reduce) {
    .roll::after { animation: none; display: none; }
}

/* ---------- Privacy ---------- */

.privacy-section {
    margin: clamp(40px, 8vh, 90px) clamp(10px, 2vw, 24px);
    padding: clamp(60px, 10vh, 110px) clamp(16px, 5vw, 72px);
    background: var(--ink); color: var(--paper);
    border-radius: 40px;
    text-align: center;
}
.badges {
    list-style: none; margin: 40px auto 30px; padding: 0; max-width: 860px;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 3vw, 40px);
}
.badges li {
    --rx: 0deg; --ry: 0deg;
    display: grid; justify-items: center; gap: 14px;
    transform: perspective(700px) rotateX(var(--rx)) rotateY(var(--ry));
    transition: transform .2s ease-out;
}
.badges svg {
    width: clamp(80px, 9vw, 112px); height: auto; padding: 22px;
    border-radius: 50%; color: var(--ink);
}
.badges li:nth-child(1) svg { background: var(--butter); rotate: -6deg; }
.badges li:nth-child(2) svg { background: var(--lavender); rotate: 5deg; }
.badges li:nth-child(3) svg { background: var(--peach); rotate: -3deg; }
.badges li:nth-child(4) svg { background: var(--mint); rotate: 4deg; }
.badges span { font-family: var(--hand); font-weight: 700; font-size: clamp(1.3rem, 1.9vw, 1.7rem); line-height: 1.05; max-width: 14ch; }
.fine { font-size: .92rem; color: var(--ink-2); max-width: 60ch; margin: 0 auto; }
.privacy-section .fine { color: rgba(251, 246, 236, .7); }
.privacy-section .fine a { color: var(--butter); }

@media (max-width: 1000px) { .badges { grid-template-columns: repeat(2, 1fr); max-width: 620px; } }

/* ---------- Pricing ---------- */

.pricing-section { padding: clamp(60px, 10vh, 120px) clamp(16px, 5vw, 72px); text-align: center; }
.prices { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(20px, 4vw, 56px); margin: 48px 0 40px; }
.price-tag {
    --rx: 0deg; --ry: 0deg;
    position: relative; width: 250px; padding: 54px 24px 28px;
    display: grid; justify-items: center;
    --tag-fill: var(--card);
    isolation: isolate;
    transform: perspective(800px) rotateX(var(--rx)) rotateY(var(--ry)) rotate(-3deg);
    transition: transform .2s ease-out;
}
.tag-shape { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; overflow: visible; }
.tag-shape path { fill: var(--tag-fill); stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; }
.price-tag.best { --tag-fill: var(--butter); transform: perspective(800px) rotateX(var(--rx)) rotateY(var(--ry)) rotate(3deg); }
.price-tag::before {
    content: ""; position: absolute; top: 18px; left: 50%; width: 18px; height: 18px; translate: -50% 0;
    border: 3px solid var(--ink); border-radius: 50%; background: var(--paper);
}
.period { font-family: var(--hand); font-weight: 700; font-size: 1.8rem; }
.amount { font-size: 3.4rem; font-weight: 800; letter-spacing: -0.05em; line-height: 1; }
.per { color: var(--ink-2); font-size: .95rem; margin-top: 6px; }
.badge {
    position: absolute; top: 46px; right: -6px; rotate: 10deg;
    background: var(--ink); color: var(--paper); padding: 4px 10px; border-radius: 8px; font-weight: 800; font-size: .8rem;
}
.includes { list-style: none; margin: 0 auto 26px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; }
.includes li { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.includes svg { width: 44px; height: 44px; }

/* ---------- Final ---------- */

.final { padding: clamp(40px, 8vh, 90px) 16px clamp(80px, 14vh, 140px); display: grid; justify-items: center; gap: 22px; text-align: center; }
.final-bee { width: clamp(160px, 18vw, 230px); height: auto; animation: snooze 3.6s ease-in-out infinite; }
.final h2 { font-size: clamp(2.6rem, 7vw, 5.6rem); letter-spacing: -0.05em; }
@keyframes snooze { 50% { transform: translateY(-8px) rotate(-2deg); } }

.foot {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
    padding: 26px clamp(16px, 5vw, 72px); border-top: 2.5px dashed rgba(58, 52, 49, .3);
    font-size: .95rem; color: var(--ink-2);
}
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* ---------- Scroll reveal ---------- */

.js .rv { opacity: 0; translate: 0 28px; transition: opacity .7s ease, translate .8s cubic-bezier(.2, .8, .2, 1); }
.js .rv.in { opacity: 1; translate: 0 0; }

/* ---------- Small screens ---------- */

@media (max-width: 760px) {
    body { font-size: 17px; }
    .hero { padding-top: 116px; }
    .rail { margin: 0 -8px; }
    .hang { width: 23vw; }
    .hang:nth-of-type(n + 6) { display: none; }
    .rail-bar::before, .rail-bar::after { display: none; }
    .note-bee { display: none; } /* Bee drifts over the text on small screens; the note would hide it */
    .steps { flex-direction: column; gap: 4px; }
    .step { width: min(300px, 86vw); flex-basis: auto; }
    .arrow { rotate: 90deg; width: 64px; }
    .compare { aspect-ratio: 4 / 5; }
    .after-cloth { width: 70%; margin-top: -20%; }
    .tags { top: auto; bottom: 5%; right: 5%; translate: none; gap: 6px; }
    #app-title br { display: none; }
    .machine { grid-template-columns: 1fr; }
    .machine-side { grid-template-columns: auto 1fr; text-align: left; }
    .machine-side .shuffle-btn { grid-column: 1 / -1; justify-self: stretch; justify-content: center; }
    .machine-bee { width: 90px; }
    .sticker { font-size: .9rem; padding: 7px 12px; }
    .s1 { left: 0; top: 8%; }
    .s2 { right: 0; top: 40%; }
    .s3 { left: 0; bottom: 20%; }
    .sticker-bee { right: 0; bottom: 0; }
    .badges { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
    .js .rv { opacity: 1; translate: none; transition: none; }
    .final-bee { animation: none; }
    .reel.spinning svg, .reel.landed svg { animation: none; }
}
