/* Moocsoft homepage. Loaded only by /index.html, after content.css and etsy-blog.css. */
.home {
  --ink: #f4efe6;
  --muted: #bdb8af;
  --dim: #8f8a81;
  --line: rgba(244, 239, 230, .08);
  --line-2: rgba(244, 239, 230, .15);
  --card: #111214;
  --coral: #c96a43;
  --coral-2: #ff9878;
  --mint: #76dfb4;
  --wrap: min(1200px, calc(100% - 40px));
  --ease: cubic-bezier(.2, .7, .2, 1);
}

:where(.home *, .home *::before, .home *::after) { box-sizing: border-box; margin: 0; padding: 0; }
html:has(body.home) { scroll-behavior: smooth; }
body.home {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: #090a0c;
  color: var(--ink);
  font-family: 'Outfit', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
:where(.home) a { color: inherit; text-decoration: none; }
:where(.home) img { max-width: 100%; }
.home ::selection { background: var(--coral); color: #fff; }
.home .site-header { background: rgba(9, 10, 12, .72); -webkit-backdrop-filter: saturate(140%) blur(16px); backdrop-filter: saturate(140%) blur(16px); border-bottom-color: var(--line); }
.home .site-wordmark::before { background: var(--coral-2); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Shared section type */
.home-section, .home #guides { position: relative; width: var(--wrap); margin-inline: auto; padding-top: clamp(84px, 11vw, 140px); }
.home-head { margin-bottom: clamp(28px, 4vw, 46px); }
.home-head.is-split { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; }
.home-head.is-split .home-lede { max-width: 40ch; }
.home-kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--coral-2); font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.home-kicker::before { content: ''; width: 22px; height: 1px; background: currentColor; }
.home-kicker.is-mint { color: var(--mint); }
.home-title, .home #guides .section-title { margin-top: 16px; max-width: 17ch; font-family: 'Fraunces', Georgia, serif; font-size: clamp(2.3rem, 4.8vw, 4rem); font-weight: 500; line-height: 1.02; letter-spacing: -.032em; }
.home-title em { color: var(--coral-2); font-style: italic; font-weight: 400; }
.home-lede, .home #guides .guide-topic-intro { max-width: 56ch; margin-top: 18px; color: var(--muted); font-size: 1.06rem; line-height: 1.7; }

.home-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border: 1px solid transparent; border-radius: 999px; font-size: .9rem; font-weight: 500; line-height: 1.2; transition: transform .25s var(--ease), background .25s ease, border-color .25s ease, color .25s ease; }
.home-btn:hover { transform: translateY(-2px); }
.home-btn-light { background: var(--ink); color: #090a0c !important; }
.home-btn-light:hover { background: #fff; }
.home-btn-ghost { border-color: var(--line-2); color: var(--ink); }
.home-btn-ghost:hover { border-color: var(--ink); }

/* ───────────── HERO ───────────── */
.home-hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(40px, 7vw, 92px) 0 clamp(52px, 7vw, 90px); }
.home-hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.home-hero-bg::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 64px 64px; -webkit-mask-image: radial-gradient(ellipse 65% 70% at 68% 42%, #000 20%, transparent 72%); mask-image: radial-gradient(ellipse 65% 70% at 68% 42%, #000 20%, transparent 72%); opacity: .7; }
.home-orb { position: absolute; border-radius: 50%; filter: blur(70px); }
.home-orb.is-coral { top: -160px; right: 18%; width: 560px; height: 560px; background: radial-gradient(circle, rgba(201, 106, 67, .5), transparent 64%); animation: orb-drift 16s ease-in-out infinite alternate; }
.home-orb.is-mint { right: -8%; bottom: -220px; width: 520px; height: 520px; background: radial-gradient(circle, rgba(118, 223, 180, .28), transparent 64%); animation: orb-drift 20s ease-in-out infinite alternate-reverse; }
.home-monogram-bg { position: absolute; top: 50%; right: -6%; width: min(820px, 78vw); transform: translateY(-50%); opacity: .055; }
.home-monogram-bg path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.4s .2s var(--ease) forwards; }
.home-monogram-bg circle { opacity: 0; transform-origin: 48px 77px; animation: dot-in .8s 2.2s var(--ease) forwards; }

.home-hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); align-items: center; gap: clamp(32px, 5vw, 72px); width: var(--wrap); margin-inline: auto; }
.home-hero-copy > * { animation: rise .9s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms + 80ms); }
.home-badge { display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px 5px 5px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255, 255, 255, .03); color: var(--muted); font-size: .8rem; }
.home-badge svg { width: 26px; height: 26px; border-radius: 8px; }
.home-hero h1 { margin: 26px 0 24px; font-family: 'Fraunces', Georgia, serif; font-size: clamp(3rem, 5.3vw, 5rem); font-weight: 500; line-height: .97; letter-spacing: -.038em; }
.home-hero h1 em { display: inline-block; padding: 0 .08em .06em 0; background: linear-gradient(100deg, #ffb192 0%, #ff9878 30%, #d8c29a 62%, #76dfb4 100%); -webkit-background-clip: text; background-clip: text; color: transparent; font-style: italic; font-weight: 400; }
.home-hero-sub { max-width: 50ch; color: var(--muted); font-size: clamp(1.03rem, 1.35vw, 1.17rem); line-height: 1.68; }
.home-hero-sub a { color: var(--ink); font-weight: 400; text-decoration: underline; text-decoration-color: rgba(244, 239, 230, .35); text-underline-offset: .22em; }
.home-hero-sub a:hover { text-decoration-color: var(--ink); }
.home-app-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.home-app-cta { position: relative; display: inline-flex; align-items: center; gap: 13px; min-height: 66px; padding: 10px 20px 10px 10px; border: 1px solid var(--line-2); border-radius: 20px; background: rgba(255, 255, 255, .035); transition: transform .3s var(--ease), border-color .3s ease, background .3s ease, box-shadow .3s ease; }
.home-app-cta img { width: 46px; height: 46px; border-radius: 12px; }
.home-app-cta strong { display: block; font-size: 1rem; font-weight: 500; line-height: 1.25; }
.home-app-cta small { display: block; color: var(--muted); font-size: .78rem; line-height: 1.35; }
.home-app-cta .cta-arrow { margin-left: 10px; color: var(--muted); transition: transform .3s var(--ease), color .3s ease; }
.home-app-cta:hover { transform: translateY(-3px); }
.home-app-cta:hover .cta-arrow { transform: translateX(4px); color: var(--ink); }
.home-app-cta.is-math:hover { border-color: rgba(255, 152, 120, .6); background: rgba(201, 106, 67, .12); box-shadow: 0 18px 50px -24px rgba(201, 106, 67, .8); }
.home-app-cta.is-frugal:hover { border-color: rgba(118, 223, 180, .55); background: rgba(118, 223, 180, .08); box-shadow: 0 18px 50px -24px rgba(118, 223, 180, .6); }
.home-hero-try { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 18px; color: var(--ink); font-size: .92rem; }
.home-hero-try span { display: inline-grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--line-2); border-radius: 50%; animation: nudge 2.2s ease-in-out infinite; }
.home-hero-try:hover span { border-color: var(--coral-2); color: var(--coral-2); }
.home-hero-facts { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 22px; color: var(--dim); font-size: .8rem; list-style: none; }
.home-hero-facts li { display: inline-flex; align-items: center; gap: 7px; }
.home-hero-facts li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--mint); }

/* Hero stage: real app artwork */
.home-stage { position: relative; height: clamp(470px, 47vw, 610px); perspective: 1400px; animation: rise 1.1s .25s var(--ease) both; }
.home-stage-inner { position: absolute; inset: 0; transform: rotateY(calc(var(--px, 0) * 7deg)) rotateX(calc(var(--py, 0) * -7deg)); transform-style: preserve-3d; transition: transform .7s var(--ease); }
.device { position: absolute; display: block; padding: 7px; border-radius: 38px; background: linear-gradient(150deg, #5a5b62, #26272c 30%, #121316 70%, #3a3b41); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 0 0 1px rgba(0, 0, 0, .6), 0 40px 80px -34px rgba(0, 0, 0, .95); }
.device picture { display: block; }
.device img { display: block; width: 100%; height: auto; aspect-ratio: 600 / 1067; border-radius: 31px; }
.shot { position: absolute; display: block; aspect-ratio: 1000 / 2173; overflow: hidden; border-radius: 30px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 40px 80px -34px rgba(0, 0, 0, .95); }
.shot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.home-stage .device { top: 4%; left: 3%; z-index: 1; width: clamp(205px, 20vw, 262px); --r: -7deg; transform: translateZ(30px) rotate(var(--r)); animation: float 7s ease-in-out infinite; box-shadow: 0 0 0 1px rgba(255, 255, 255, .09), 0 40px 80px -34px rgba(0, 0, 0, .95), 0 0 140px -30px rgba(201, 106, 67, .65); }
.home-stage .shot { top: 11%; right: 3%; z-index: 2; width: clamp(192px, 18.5vw, 246px); --r: 6deg; transform: translateZ(60px) rotate(var(--r)); animation: float 8s -2.5s ease-in-out infinite; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 40px 80px -34px rgba(0, 0, 0, .95), 0 0 140px -30px rgba(118, 223, 180, .55); }
.home-chip { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 10px; padding: 10px 15px 10px 11px; border: 1px solid var(--line-2); border-radius: 16px; background: rgba(22, 23, 26, .74); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 20px 44px -22px rgba(0, 0, 0, .9); color: var(--ink); font-size: .8rem; line-height: 1.3; white-space: nowrap; transform: translateZ(90px); animation: float 6s ease-in-out infinite; }
.home-chip i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; font-style: normal; font-size: .95rem; }
.home-chip small { display: block; color: var(--muted); font-size: .7rem; }
.home-chip.is-battle { left: -2%; bottom: 15%; animation-delay: -1s; }
.home-chip.is-battle i { background: rgba(201, 106, 67, .22); color: var(--coral-2); }
.home-chip.is-bank { right: -1%; bottom: 3%; animation-delay: -3s; }
.home-chip.is-bank i { background: rgba(118, 223, 180, .16); color: var(--mint); }
.home-chip.is-count { top: 0; left: 44%; animation-delay: -4.5s; }
.home-chip.is-count i { background: rgba(244, 239, 230, .08); }

/* Marquee */
.home-marquee { position: relative; overflow: hidden; padding: 18px 0; border-block: 1px solid var(--line); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.home-marquee-track { display: flex; width: max-content; animation: marquee 46s linear infinite; }
.home-marquee ul { display: flex; flex: none; list-style: none; }
.home-marquee li { display: inline-flex; align-items: center; gap: 34px; padding-right: 34px; color: var(--muted); font-size: .95rem; white-space: nowrap; }
.home-marquee li::after { content: '✦'; color: var(--coral-2); font-size: .7rem; }
.home-marquee li:nth-child(even)::after { color: var(--mint); }
.home-marquee:hover .home-marquee-track { animation-play-state: paused; }

/* ───────────── RIDDLE ───────────── */
.home-riddle-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(36px, 6vw, 88px); }
.home-riddle-intro .install-actions { margin-top: 30px; }
.home-riddle-intro .install-link { min-height: 50px; padding-inline: 20px; }
.riddle-app-note { margin-top: 14px; max-width: 46ch; color: var(--dim); font-size: .8rem; line-height: 1.55; }
.riddle-steps { display: grid; gap: 12px; margin-top: 28px; list-style: none; counter-reset: rs; }
.riddle-steps li { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: .95rem; counter-increment: rs; }
.riddle-steps li::before { content: counter(rs); display: grid; place-items: center; flex: none; width: 30px; height: 30px; border: 1px solid var(--line-2); border-radius: 50%; color: var(--ink); font-size: .8rem; }

.riddle-card { position: relative; padding: clamp(18px, 2.6vw, 30px); border: 1px solid var(--line-2); border-radius: 30px; background: linear-gradient(180deg, #18191c, #0f1012); box-shadow: 0 60px 120px -60px rgba(201, 106, 67, .55), inset 0 1px 0 rgba(255, 255, 255, .05); }
.riddle-card::before { content: ''; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; background: conic-gradient(from 210deg, transparent 0 60%, rgba(255, 152, 120, .55), transparent 80%); filter: blur(18px); opacity: .5; }
.riddle-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.riddle-top > :first-child { min-width: 0; }
.riddle-progress { display: flex; gap: 6px; }
.riddle-progress i { flex: 0 1 26px; width: 26px; min-width: 10px; height: 5px; border-radius: 3px; background: rgba(244, 239, 230, .12); transition: background .3s ease; }
.riddle-progress i.is-current { background: var(--ink); }
.riddle-progress i.is-done { background: var(--mint); }
.riddle-progress i.is-miss { background: #e46a5a; }
.riddle-label { color: var(--muted); font-size: .8rem; }
.riddle-tools { display: flex; flex: none; align-items: center; gap: 10px; }
.riddle-clock-toggle { min-height: 36px; padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px; background: transparent; color: var(--muted); font: 400 .75rem 'Outfit', sans-serif; white-space: nowrap; cursor: pointer; }
.riddle-clock-toggle[aria-pressed='true'] { color: var(--ink); }
.riddle-timer { position: relative; display: grid; flex: none; place-items: center; width: 48px; height: 48px; }
.riddle-timer svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.riddle-timer circle { fill: none; stroke-width: 4; }
.riddle-timer .track { stroke: rgba(244, 239, 230, .1); }
.riddle-timer .bar { stroke: var(--coral-2); stroke-linecap: round; stroke-dasharray: 125.66; stroke-dashoffset: 0; }
.riddle-timer.is-low .bar { stroke: #e46a5a; }
.riddle-timer span { font-size: .85rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.riddle-timer.is-off { opacity: .35; }
.riddle-board { display: grid; place-items: center; min-height: 210px; margin: 18px 0 14px; padding: 26px 16px; border: 1px solid rgba(255, 255, 255, .05); border-radius: 22px; background: radial-gradient(120% 120% at 50% 0%, #26272b, #1c1d20 60%); color: #fff; font-size: clamp(1.75rem, 4.2vw, 2.7rem); font-weight: 400; line-height: 1.32; text-align: center; font-variant-numeric: tabular-nums; transition: border-color .3s ease, box-shadow .3s ease; }
.riddle-board .riddle-q { display: grid; gap: 2px; }
.riddle-board .riddle-q span { display: block; }
.riddle-board .riddle-ready { display: grid; justify-items: center; gap: 14px; font-size: 1rem; color: var(--muted); }
.riddle-board .riddle-ready strong { color: var(--ink); font-family: 'Fraunces', Georgia, serif; font-size: clamp(1.6rem, 3.4vw, 2.2rem); font-weight: 500; letter-spacing: -.02em; }
.riddle-start { min-height: 52px; padding: 12px 28px; border: 0; border-radius: 999px; background: var(--coral-2); color: #1b0d07; font: 600 1rem 'Outfit', sans-serif; cursor: pointer; box-shadow: 0 14px 40px -14px rgba(255, 152, 120, .9); transition: transform .2s var(--ease); }
.riddle-start:hover { transform: translateY(-2px); }
.riddle-form { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; }
.riddle-input { width: 100%; min-height: 56px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 14px; background: #141518; color: var(--ink); font: 500 1.3rem 'Outfit', sans-serif; font-variant-numeric: tabular-nums; }
.riddle-input::placeholder { color: #6f6b64; font-weight: 300; }
.riddle-input:focus { outline: 2px solid var(--coral-2); outline-offset: 1px; }
.riddle-btn { min-width: 56px; min-height: 56px; padding: 0 18px; border: 1px solid var(--line-2); border-radius: 14px; background: #1b1c20; color: var(--ink); font: 500 .95rem 'Outfit', sans-serif; cursor: pointer; }
.riddle-btn.is-primary { border-color: transparent; background: var(--ink); color: #090a0c; }
.riddle-btn:disabled { opacity: .4; cursor: default; }
.riddle-keypad { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.riddle-keypad button { min-height: 50px; border: 1px solid rgba(255, 255, 255, .05); border-radius: 12px; background: #1b1c20; color: var(--ink); font: 400 1.15rem 'Outfit', sans-serif; cursor: pointer; transition: background .15s ease, transform .1s ease; }
.riddle-keypad button:hover { background: #232428; }
.riddle-keypad button:active { transform: scale(.96); }
.riddle-feedback { min-height: 3.4em; margin-top: 14px; color: var(--muted); font-size: .93rem; line-height: 1.55; }
.riddle-feedback strong { color: var(--ink); font-weight: 500; }
.riddle-feedback.is-good strong { color: var(--mint); }
.riddle-feedback.is-bad strong { color: #f08b7c; }
.riddle-next { display: none; margin-top: 10px; }
.riddle-card.is-answered .riddle-next { display: inline-flex; }
.riddle-card.is-answered .riddle-form, .riddle-card.is-answered .riddle-keypad { opacity: .45; pointer-events: none; }
.riddle-card.is-correct .riddle-board { border-color: rgba(118, 223, 180, .55); box-shadow: 0 0 0 5px rgba(118, 223, 180, .1); animation: pop .5s var(--ease); }
.riddle-card.is-wrong .riddle-board { animation: shake .42s ease; }
.riddle-card.is-idle .riddle-form, .riddle-card.is-idle .riddle-keypad { opacity: .35; pointer-events: none; }
.riddle-card.is-finished .riddle-form, .riddle-card.is-finished .riddle-keypad, .riddle-card.is-finished > .riddle-feedback { display: none; }
.riddle-end .riddle-feedback { margin-top: 4px; color: var(--ink); }
.riddle-end .install-link, .riddle-end .riddle-btn { min-height: 50px; }
.riddle-done { display: grid; justify-items: center; gap: 10px; }
.riddle-done strong { font-family: 'Fraunces', Georgia, serif; font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 500; line-height: 1; letter-spacing: -.03em; }
.riddle-done span { color: var(--muted); font-size: 1rem; }
.riddle-confetti { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; pointer-events: none; }
.riddle-confetti i { position: absolute; top: 40%; left: 50%; width: 8px; height: 12px; border-radius: 2px; animation: burst 1s var(--ease) forwards; }
.riddle-static { display: grid; gap: 14px; list-style: none; }
.riddle-static li { padding: 20px 22px; border: 1px solid var(--line-2); border-radius: 18px; background: var(--card); }
.riddle-static .riddle-q { display: flex; flex-wrap: wrap; gap: 4px 18px; color: var(--ink); font-size: 1.35rem; font-weight: 400; }
.riddle-static details { margin-top: 10px; color: var(--muted); font-size: .92rem; }
.riddle-static summary { min-height: 44px; display: flex; align-items: center; color: var(--coral-2); cursor: pointer; }
.riddle-static details p + p { margin-top: 6px; }
.js .riddle-static { display: none; }

/* ───────────── FLAGSHIP SPOTLIGHTS ───────────── */
.spotlight { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(28px, 5vw, 64px); overflow: hidden; margin-top: 22px; padding: clamp(26px, 5vw, 64px); border: 1px solid var(--line-2); border-radius: 34px; background: #0f1012; --guide-accent: var(--accent); }
.spotlight::before { content: ''; position: absolute; z-index: -1; top: -35%; right: -25%; width: 80%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, var(--glow), transparent 62%); }
.spotlight::after { content: ''; position: absolute; z-index: -1; inset: 0; background-image: radial-gradient(rgba(244, 239, 230, .07) 1px, transparent 1px); background-size: 22px 22px; -webkit-mask-image: linear-gradient(120deg, transparent 40%, #000); mask-image: linear-gradient(120deg, transparent 40%, #000); }
.spotlight.is-math { --accent: #ff9878; --glow: rgba(201, 106, 67, .34); }
.spotlight.is-frugal { --accent: #76dfb4; --glow: rgba(118, 223, 180, .22); background: linear-gradient(160deg, #0c1513, #0f1012 58%); }
.spotlight.is-frugal::before { right: auto; left: -25%; }
.spotlight.is-frugal .spotlight-media { order: -1; }
.spotlight-app { display: flex; align-items: center; gap: 14px; }
.spotlight-app img { width: 60px; height: 60px; border-radius: 16px; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .8); }
.spotlight-app b { display: block; font-size: 1.05rem; font-weight: 500; }
.spotlight-app span { display: block; color: var(--muted); font-size: .82rem; }
.spotlight h3 { margin: 26px 0 16px; font-family: 'Fraunces', Georgia, serif; font-size: clamp(2.1rem, 4.2vw, 3.5rem); font-weight: 500; line-height: 1.02; letter-spacing: -.032em; }
.spotlight h3 em { color: var(--accent); font-style: italic; font-weight: 400; }
.spotlight-copy > p { max-width: 50ch; color: var(--muted); font-size: 1.03rem; line-height: 1.7; }
.spotlight-features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 22px; margin: 28px 0 30px; list-style: none; }
.spotlight-features li { display: flex; align-items: flex-start; gap: 12px; }
.spotlight-features svg { flex: none; width: 36px; height: 36px; padding: 8px; border: 1px solid var(--line-2); border-radius: 11px; background: rgba(255, 255, 255, .03); color: var(--accent); }
.spotlight-features b { display: block; font-size: .93rem; font-weight: 500; line-height: 1.35; }
.spotlight-features span { display: block; margin-top: 2px; color: var(--muted); font-size: .82rem; line-height: 1.5; }
.spotlight .install-actions { gap: 10px; }
.spotlight .install-link { min-height: 50px; padding-inline: 22px; border-radius: 14px; font-size: .88rem; }
.spotlight-copy > .spotlight-note { margin-top: 12px; color: var(--dim); font-size: .78rem; line-height: 1.55; }
.spotlight-links { display: flex; flex-wrap: wrap; gap: 4px 22px; margin-top: 12px; }
.spotlight-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-size: .9rem; text-decoration: underline; text-decoration-color: rgba(244, 239, 230, .3); text-underline-offset: .25em; }
.spotlight-links a:hover { text-decoration-color: var(--accent); }
.spotlight-media { position: relative; height: clamp(400px, 42vw, 560px); }
.fan { position: absolute; inset: 0; display: grid; place-items: center; }
.fan > * { grid-area: 1 / 1; position: relative; transition: transform .8s var(--ease); }
.fan .device { width: clamp(158px, 15.5vw, 218px); }
.fan .shot { width: clamp(146px, 14.2vw, 200px); border-radius: 24px; }
.fan > :nth-child(1) { z-index: 1; transform: translateX(-64%) rotate(-9deg) scale(.86); filter: brightness(.82); }
.fan > :nth-child(2) { z-index: 2; }
.fan > :nth-child(3) { z-index: 1; transform: translateX(64%) rotate(9deg) scale(.86); filter: brightness(.82); }
.spotlight:hover .fan > :nth-child(1) { transform: translateX(-74%) rotate(-12deg) scale(.86); }
.spotlight:hover .fan > :nth-child(2) { transform: translateY(-10px); }
.spotlight:hover .fan > :nth-child(3) { transform: translateX(74%) rotate(12deg) scale(.86); }
.spotlight figcaption { position: absolute; right: 0; bottom: -6px; left: 0; color: var(--dim); font-size: .72rem; text-align: center; }

/* Frugal planner */
.planner { margin: 26px 0 28px; padding: 20px; border: 1px solid rgba(118, 223, 180, .22); border-radius: 22px; background: rgba(118, 223, 180, .04); }
.planner-head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 14px; flex-wrap: wrap; }
.planner-head b { font-size: .98rem; font-weight: 500; }
.planner-head span { color: var(--dim); font-size: .74rem; }
.planner-body { display: grid; grid-template-columns: minmax(0, 1fr) 138px; align-items: center; gap: 20px; margin-top: 14px; }
.planner-fields { display: none; gap: 12px; }
.js .planner-fields { display: grid; }
.planner-fields label { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; color: var(--muted); font-size: .82rem; }
.planner-fields output { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.planner-fields input { grid-column: 1 / -1; width: 100%; height: 28px; accent-color: var(--mint); cursor: pointer; }
.planner-static { color: var(--muted); font-size: .9rem; line-height: 1.6; }
.js .planner-static { display: none; }
.planner-ring { position: relative; display: grid; place-items: center; width: 138px; height: 138px; }
.planner-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.planner-ring circle { fill: none; stroke-width: 10; }
.planner-ring .track { stroke: rgba(118, 223, 180, .12); }
.planner-ring .bar { stroke: var(--mint); stroke-linecap: round; stroke-dasharray: 326.73; transition: stroke-dashoffset .6s var(--ease); }
.planner-ring div { display: grid; justify-items: center; text-align: center; }
.planner-ring strong { font-family: 'Fraunces', Georgia, serif; font-size: 1.55rem; font-weight: 500; line-height: 1.05; font-variant-numeric: tabular-nums; }
.planner-ring small { color: var(--muted); font-size: .7rem; }
.planner-sentence { margin-top: 14px; color: var(--ink); font-size: .9rem; line-height: 1.55; }
.planner-sentence small { display: block; margin-top: 4px; color: var(--dim); font-size: .74rem; }

/* ───────────── STATS ───────────── */
.home .stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: hidden; margin-top: clamp(84px, 11vw, 140px); border: 1px solid var(--line); border-radius: 26px; background: linear-gradient(180deg, rgba(255, 255, 255, .025), transparent); }
.home .stat { padding: clamp(22px, 3vw, 34px); border-right: 1px solid var(--line); }
.home .stat:last-child { border-right: 0; }
.home .stat-num { font-family: 'Fraunces', Georgia, serif; font-size: clamp(2.6rem, 5.6vw, 4.4rem); font-weight: 500; line-height: 1; letter-spacing: -.04em; }
.home .stat-num em { color: var(--coral-2); font-style: normal; }
.home .stat-label { margin-top: 12px; color: var(--muted); font-size: .74rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }

/* ───────────── MORE APPS ───────────── */
.studio-apps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.studio-app { position: relative; isolation: isolate; display: flex; flex-direction: column; gap: 12px; overflow: hidden; padding: 24px; border: 1px solid var(--line); border-radius: 24px; background: var(--card); transition: border-color .3s ease, transform .3s var(--ease); }
.studio-app::before { content: ''; position: absolute; z-index: -1; top: -60px; left: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, var(--tint), transparent 65%); opacity: .35; transition: opacity .4s ease; }
.studio-app:hover { border-color: var(--line-2); transform: translateY(-4px); }
.studio-app:hover::before { opacity: .8; }
.studio-app > img { width: 56px; height: 56px; border-radius: 15px; }
.studio-app h3 { margin-top: 6px; font-family: 'Fraunces', Georgia, serif; font-size: 1.3rem; font-weight: 500; letter-spacing: -.01em; }
.studio-app h3 a:hover { text-decoration: underline; text-underline-offset: .2em; }
.studio-app p { color: var(--muted); font-size: .88rem; line-height: 1.6; }
.studio-app-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 8px; }
.studio-app-meta a { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--muted); font-size: .74rem; transition: color .2s ease, border-color .2s ease; }
.studio-app-meta a:hover { border-color: var(--ink); color: var(--ink); }
.studio-app-meta svg { width: 12px; height: 12px; }
.home-all-apps { margin-top: 26px; padding: 22px 24px; border: 1px dashed var(--line-2); border-radius: 22px; }
.home-all-apps > p { color: var(--muted); font-size: .88rem; }
.home-all-apps .guide-app-choices { margin: 14px 0 6px; }
.home-all-apps .guide-store-directory summary { display: flex; align-items: center; gap: 12px; min-height: 44px; color: var(--ink); font-size: .9rem; cursor: pointer; list-style: none; }
.home-all-apps .guide-store-directory summary::-webkit-details-marker { display: none; }
.home-all-apps .guide-store-directory summary::after { content: ''; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.home-all-apps .guide-store-directory[open] summary::after { transform: translateY(2px) rotate(225deg); }

/* ───────────── TOOLS ───────────── */
.tools-feature { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tool-feature { position: relative; isolation: isolate; display: flex; flex-direction: column; gap: 12px; min-height: 280px; overflow: hidden; padding: 26px; border: 1px solid var(--line-2); border-radius: 26px; background: linear-gradient(165deg, var(--tint-bg), #111214 58%); transition: transform .3s var(--ease), border-color .3s ease; }
.tool-feature:hover { transform: translateY(-4px); border-color: var(--tint); }
.tool-feature.is-math { --tint: rgba(255, 152, 120, .6); --tint-bg: rgba(201, 106, 67, .16); }
.tool-feature.is-save { --tint: rgba(118, 223, 180, .55); --tint-bg: rgba(118, 223, 180, .1); }
.tool-visual { display: flex; align-items: center; min-height: 84px; }
.tool-eq { padding: 10px 16px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 14px; background: rgba(0, 0, 0, .3); font-size: 1.5rem; font-weight: 400; font-variant-numeric: tabular-nums; }
.tool-bars { display: flex; align-items: flex-end; gap: 4px; height: 72px; }
.tool-bars i { width: 9px; border-radius: 3px 3px 1px 1px; background: linear-gradient(180deg, var(--mint), rgba(118, 223, 180, .25)); transform-origin: bottom; }
.js .tool-feature .tool-bars i { transform: scaleY(.1); transition: transform .9s var(--ease); transition-delay: calc(var(--n) * 30ms); }
.js .is-in .tool-bars i, .js .tool-feature:hover .tool-bars i { transform: scaleY(1); }
.tool-goal { display: flex; align-items: center; gap: 14px; width: 100%; }
.tool-goal-bar { flex: 1; height: 12px; overflow: hidden; border-radius: 999px; background: rgba(118, 223, 180, .12); }
.tool-goal-bar i { display: block; width: 68%; height: 100%; border-radius: inherit; background: var(--mint); }
.tool-goal b { color: var(--mint); font-weight: 500; }
.tool-feature h3 { font-family: 'Fraunces', Georgia, serif; font-size: 1.45rem; font-weight: 500; line-height: 1.2; letter-spacing: -.015em; }
.tool-feature p { color: var(--muted); font-size: .9rem; line-height: 1.6; }
.tool-feature > span:last-child { margin-top: auto; color: var(--ink); font-size: .86rem; font-weight: 500; }
.tools-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; margin-top: 14px; }
.tools-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 16px; color: var(--muted); font-size: .88rem; transition: color .2s ease, border-color .2s ease, background .2s ease; }
.tools-list a:hover { border-color: var(--line-2); background: var(--card); color: var(--ink); }
.tools-list a::after { content: '↗'; opacity: .6; }
.tools-list a.is-all { color: var(--ink); }
.tools-list a.is-all::after { content: '→'; }

/* ───────────── GUIDES (section body is generated by the build) ───────────── */
.home #guides .section-title { max-width: 20ch; }
.home #guides .section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.home #guides .section-meta { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-size: .9rem; text-decoration: underline; text-decoration-color: rgba(244, 239, 230, .3); text-underline-offset: .25em; }
.home #guides .guide-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 34px; }
.home #guides .guide-card { position: relative; padding: 28px; border-color: var(--line); border-radius: 24px; background: linear-gradient(170deg, rgba(255, 255, 255, .03), transparent 50%), var(--card); transition: transform .3s var(--ease), border-color .3s ease; }
.home #guides .guide-card:hover { transform: translateY(-4px); }
.home #guides .guide-card h3 { font-family: 'Fraunces', Georgia, serif; font-size: 1.4rem; }
.home #guides .guide-topic-links { margin-top: 22px; }
.home #guides .guide-topic-links a { min-height: 44px; display: inline-flex; align-items: center; border-color: var(--line-2); color: var(--muted); transition: color .2s ease, border-color .2s ease; }
.home #guides .guide-topic-links a:hover { border-color: var(--ink); color: var(--ink); }

/* ───────────── BLOG (section markup comes from content/etsy-blog.mjs) ───────────── */
.home #etsy .paper-story-grid { margin-top: 0; }
.home-paper-shop { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 22px; margin-top: 16px; padding: 18px 22px; border: 1px solid var(--line); border-radius: 22px; background: var(--card); }
.home-paper-thumbs { display: flex; padding-left: 14px; }
.home-paper-thumbs img { width: 70px; height: 52px; margin-left: -14px; border: 2px solid var(--card); border-radius: 10px; object-fit: cover; transition: transform .3s var(--ease); }
.home-paper-shop:hover .home-paper-thumbs img:nth-child(1) { transform: rotate(-6deg); }
.home-paper-shop:hover .home-paper-thumbs img:nth-child(3) { transform: rotate(6deg); }
.home-paper-copy strong { display: block; font-weight: 500; }
.home-paper-copy span { display: block; color: var(--muted); font-size: .86rem; }
.home-paper-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ───────────── HIRE + STUDIO ───────────── */
.home-offers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.home-offer { display: flex; flex-direction: column; gap: 12px; min-height: 240px; padding: clamp(24px, 3vw, 34px); border: 1px solid var(--line); border-radius: 26px; background: var(--card); transition: border-color .3s ease, transform .3s var(--ease); }
.home-offer:hover { border-color: var(--line-2); transform: translateY(-4px); }
.home-offer .home-kicker { font-size: .68rem; }
.home-offer h3 { font-family: 'Fraunces', Georgia, serif; font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 500; line-height: 1.15; letter-spacing: -.02em; }
.home-offer p { max-width: 52ch; color: var(--muted); font-size: .93rem; line-height: 1.65; }
.home-offer > span:last-child { margin-top: auto; color: var(--ink); font-size: .88rem; font-weight: 500; }

.home-studio { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); padding: clamp(26px, 5vw, 60px); border: 1px solid var(--line-2); border-radius: 34px; background: radial-gradient(90% 120% at 100% 0%, rgba(201, 106, 67, .13), transparent 60%), var(--card); }
.home-studio-mark { width: clamp(84px, 10vw, 128px); height: auto; border-radius: 28px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9); }
.about-name { font-family: 'Fraunces', Georgia, serif; font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 500; letter-spacing: -.025em; }
.about-role { margin: 6px 0 20px; color: var(--coral-2); font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.about-bio { max-width: 62ch; color: var(--muted); font-size: 1.03rem; line-height: 1.75; }
.about-bio strong { color: var(--ink); font-weight: 400; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 22px; }
.tag { padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .74rem; }
.home-contact { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.home-contact p { color: var(--muted); font-size: .88rem; }
.contact-email { display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 12px 22px; border-radius: 999px; background: var(--ink); color: #090a0c !important; font-size: .92rem; font-weight: 500; transition: background .2s ease, transform .2s var(--ease); }
.contact-email:hover { background: var(--coral-2); transform: translateY(-2px); }
.contact-email svg { width: 16px; height: 16px; }

/* ───────────── FOOTER ───────────── */
.home-footer { width: var(--wrap); margin: clamp(90px, 12vw, 150px) auto 0; padding-top: 44px; border-top: 1px solid var(--line); }
.home-footer-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.home-footer-links { display: grid; grid-template-columns: repeat(3, auto); gap: 6px 36px; }
.home-footer-links a { display: inline-flex; align-items: center; min-height: 36px; color: var(--muted); font-size: .86rem; }
.home-footer-links a:hover { color: var(--ink); }
.home-socials { display: flex; flex-wrap: wrap; gap: 4px; }
.home-socials a { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--muted); transition: color .2s ease, background .2s ease; }
.home-socials a:hover { background: #17181b; color: var(--ink); }
.home-socials svg { width: 19px; height: 19px; fill: currentColor; }
.home-wordmark-xl { display: block; font-variant-ligatures: none; margin: clamp(36px, 6vw, 70px) 0 0; font-family: 'Outfit', system-ui, sans-serif; font-size: clamp(4.2rem, 19.5vw, 17.5rem); font-weight: 400; line-height: .8; letter-spacing: -.055em; text-align: center; background: linear-gradient(180deg, rgba(244, 239, 230, .9), rgba(244, 239, 230, .08) 92%); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; }
.home-wordmark-xl span { color: var(--coral); -webkit-text-fill-color: var(--coral); }
.home-footer-bottom { display: flex; justify-content: space-between; gap: 10px 24px; flex-wrap: wrap; padding: 22px 0 34px; color: var(--dim); font-size: .76rem; }
.home-footer-bottom a { text-decoration: underline; text-underline-offset: .2em; }

/* Reveal on scroll (only when JavaScript is running) */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes orb-drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(-60px, 40px) scale(1.12); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes dot-in { from { opacity: 0; transform: translateY(-30px) scale(.4); } 60% { opacity: 1; transform: translateY(4px) scale(1.1); } to { opacity: 1; transform: none; } }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.03); } 100% { transform: scale(1); } }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
@keyframes burst { from { opacity: 1; transform: translate(-50%, -50%) rotate(0); } to { opacity: 0; transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) rotate(var(--rot)); } }

/* ───────────── RESPONSIVE ───────────── */
@media (max-width: 1080px) {
  .studio-apps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .home-hero-grid, .home-riddle-grid, .spotlight { grid-template-columns: minmax(0, 1fr); }
  .home-stage { width: min(100%, 560px); margin-inline: auto; }
  .spotlight.is-frugal .spotlight-media { order: 0; }
  .spotlight-media { height: clamp(360px, 70vw, 500px); }
  .tools-feature, .home #guides .guide-card-grid { grid-template-columns: 1fr; }
  .tool-feature { min-height: 0; }
}
@media (max-width: 760px) {
  .home-offers { grid-template-columns: 1fr; }
  .home-paper-shop { grid-template-columns: 1fr; }
  .home .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home .stat:nth-child(2) { border-right: 0; }
  .home .stat:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .home-studio { grid-template-columns: 1fr; }
  .home-footer-links { grid-template-columns: repeat(2, auto); }
}
@media (max-width: 560px) {
  .home { --wrap: calc(100% - 32px); }
  .home-hero h1 { font-size: clamp(2.6rem, 12.4vw, 3.4rem); }
  .home-app-cta { flex: 1 1 100%; }
  .home-app-cta .cta-arrow { margin-left: auto; }
  .home-stage { height: 430px; }
  .home-monogram-bg { top: auto; right: -10%; bottom: 2%; width: 92vw; transform: none; opacity: .045; }
  .home-stage .device { width: 190px; left: 0; }
  .home-stage .shot { width: 176px; right: 0; }
  .home-chip { font-size: .72rem; padding: 8px 12px 8px 9px; }
  .home-chip i { width: 26px; height: 26px; }
  .home-chip.is-battle { left: 0; bottom: 9%; }
  .home-chip.is-bank { right: 0; bottom: 0; }
  .home-chip.is-count { top: -2%; left: auto; right: 4%; }
  .spotlight { border-radius: 26px; }
  .spotlight-features { grid-template-columns: 1fr; }
  .spotlight-media { height: 380px; }
  .planner-body { grid-template-columns: 1fr; justify-items: center; }
  .planner-fields { width: 100%; }
  .riddle-keypad { gap: 6px; }
  .riddle-keypad button { min-height: 48px; }
  .riddle-form { grid-template-columns: minmax(0, 1fr) auto; }
  .riddle-form .riddle-btn.is-primary { grid-column: 1 / -1; }
  .riddle-board { min-height: 170px; }
  .studio-apps { grid-template-columns: 1fr; }
  .home-footer-links { grid-template-columns: 1fr 1fr; gap: 0 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html:has(body.home) { scroll-behavior: auto; }
  .home *, .home *::before, .home *::after { animation: none !important; transition: none !important; }
  .home-monogram-bg path { stroke-dashoffset: 0; }
  .home-monogram-bg circle { opacity: 1; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .tool-feature .tool-bars i { transform: none; }
}
