/* ============================================================
   WindowBuddy — windowbuddy.app
   Dark, playful, indie. Big lowercase wordmark, floating cards,
   hand-drawn accents.
   ============================================================ */

/* ---- Fonts (self-hosted, latin subsets, variable weight) ---- */
@font-face {
  font-family: "Baloo 2";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/baloo2-latin-var.woff2") format("woff2");
}
@font-face {
  font-family: "Caveat";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/caveat-latin-var.woff2") format("woff2");
}

/* ---- Theme tokens ---- */
:root {
  --ink: #131022;
  --ink-soft: #1c1830;
  --surface: #201b36;
  --line: rgba(244, 241, 255, 0.09);
  --text: #f4f1ff;
  --text-muted: #a89fc6;

  --coral: #ff6b5e;
  --sun: #ffc94d;
  --mint: #5ee6a8;
  --lilac: #b39dff;
  --sky: #6cc7ff;

  --font-display: "Baloo 2", ui-rounded, -apple-system, system-ui, sans-serif;
  --font-hand: "Caveat", "Comic Sans MS", cursive;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui,
    "Segoe UI", sans-serif;

  --radius-card: 18px;
  --shadow-card: 0 14px 40px rgba(0, 0, 0, 0.45);
}

/* ---- Reset / base ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--sky);
}

::selection {
  background: var(--coral);
  color: var(--ink);
}

/* ---- Scroll affordances ---- */
.reading-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  height: 3px;
  pointer-events: none;
}

.reading-progress-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--coral), var(--sun), var(--mint));
  box-shadow: 0 0 12px rgba(255, 107, 94, 0.58);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

.back-to-top {
  position: fixed;
  right: calc(1rem + env(safe-area-inset-right));
  bottom: calc(1rem + env(safe-area-inset-bottom));
  z-index: 20;
  display: grid;
  width: 3rem;
  height: 3rem;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(244, 241, 255, 0.16);
  border-radius: 15px;
  background: rgba(32, 27, 54, 0.9);
  color: var(--text);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.38);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.92);
  transition:
    opacity 0.2s ease,
    transform 0.25s cubic-bezier(0.2, 0.8, 0.3, 1.2),
    visibility 0s linear 0.25s,
    background-color 0.16s ease,
    border-color 0.16s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  transition-delay: 0s;
}

.back-to-top:hover {
  border-color: rgba(255, 107, 94, 0.7);
  background: rgba(255, 107, 94, 0.2);
}

.back-to-top:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 3px;
}

.back-to-top svg {
  width: 1.35rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---- Playful backdrop: soft color glows + grain ---- */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(clamp(32rem, 46vw, 72rem) clamp(26rem, 38vw, 56rem) at 12% -6%, rgba(179, 157, 255, 0.16), transparent 60%),
    radial-gradient(clamp(30rem, 44vw, 68rem) clamp(24rem, 36vw, 52rem) at 96% 12%, rgba(255, 107, 94, 0.13), transparent 60%),
    radial-gradient(clamp(34rem, 48vw, 76rem) clamp(28rem, 40vw, 60rem) at 50% 110%, rgba(94, 230, 168, 0.10), transparent 62%),
    var(--ink);
}
.backdrop::after {
  /* faint film grain so the dark isn't flat */
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

/* ---- Layout ---- */
main {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

section {
  padding: clamp(3rem, 8vw, 5.5rem) 0;
}

[id] {
  scroll-margin-top: 4.5rem;
}

/* ---- Top nav ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem clamp(1rem, 4vw, 2rem);
  background: rgba(19, 16, 34, 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
  text-transform: lowercase;
}

.nav-glyph {
  width: 20px;
  color: var(--coral);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2.5vw, 1.4rem);
}

.nav-links a:not(.nav-download) {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  text-transform: lowercase;
  text-decoration: none;
  color: var(--text-muted);
  transition: color 0.16s ease, transform 0.16s ease;
}

.nav-links a:not(.nav-download):hover {
  color: var(--text);
  transform: translateY(-1px);
}

.nav-download {
  padding: 0.42rem 1.05rem;
  border-radius: 999px;
  background: var(--coral);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.nav-download:hover {
  transform: translateY(-1px) rotate(-1deg);
  box-shadow: 0 6px 16px rgba(255, 107, 94, 0.4);
}

@media (max-width: 560px) {
  .nav-brand span {
    display: none;
  }
}

/* ---- Hero ---- */
.hero {
  min-height: 86vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: clamp(4rem, 12vh, 7rem);
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-family: var(--font-hand);
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
  font-weight: 600;
  color: var(--sun);
  transform: rotate(-2deg);
}

.wordmark {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.2rem, 11vw, 7.2rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-transform: lowercase;
}

.wordmark-accent {
  color: var(--coral);
}

.tagline {
  margin: 1.1rem 0 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.35rem, 3.4vw, 2rem);
  color: var(--text);
}

.hero-sub {
  margin: 1rem auto 0;
  max-width: 34rem;
  color: var(--text-muted);
}

/* ---- CTA ---- */
.cta-row {
  margin-top: 2.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

.btn-download {
  display: inline-block;
  padding: 0.95rem 2.1rem;
  border-radius: 999px;
  background: var(--coral);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(255, 107, 94, 0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn-download:hover {
  transform: translateY(-2px) rotate(-1deg) scale(1.02);
  box-shadow: 0 12px 30px rgba(255, 107, 94, 0.45);
}

.btn-download:active {
  transform: translateY(0) scale(0.99);
}

.cta-fineprint {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ---- Hero floats: scattered cards with bob + parallax ---- */
.hero {
  position: relative;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-floats {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.float {
  position: absolute;
  will-change: transform;
}

.float-menu {
  left: max(-3vw, -40px);
  top: 26%;
}
.float-preview {
  right: max(-4vw, -52px);
  top: 28%;
}
.float-chord {
  left: 6%;
  bottom: 7%;
}
.float-quarters {
  right: 9%;
  bottom: 10%;
}

/* Keep the rotated preview card inside narrower laptop viewports. */
@media (min-width: 941px) and (max-width: 1120px) {
  .float-preview {
    right: max(calc(-4vw + 0.75rem), calc(-52px + 0.75rem));
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  transform: rotate(var(--tilt, 0deg));
  animation: bob var(--bob, 7s) ease-in-out infinite alternate;
}

@keyframes bob {
  from {
    transform: translateY(-7px) rotate(var(--tilt, 0deg));
  }
  to {
    transform: translateY(7px) rotate(var(--tilt, 0deg));
  }
}

/* Menu dropdown mockup */
.menu-card {
  width: 236px;
  padding: 0.65rem 0.6rem 0.55rem;
  font-size: 0.82rem;
}

.menu-card-head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0 0.5rem 0.5rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text);
}

.menu-glyph {
  width: 18px;
  color: var(--coral);
}

.menu-card-list {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0;
}

.menu-card-list li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.34rem 0.5rem;
  border-radius: 8px;
  color: var(--text);
}

.menu-card-list li.is-hot {
  background: var(--coral);
  color: var(--ink);
}

.menu-keys {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}
.menu-card-list li.is-hot .menu-keys {
  color: rgba(19, 16, 34, 0.65);
}

/* tiny layout glyphs in the menu mockup */
.mg {
  flex: none;
  width: 17px;
  height: 13px;
  border: 1.5px solid currentColor;
  border-radius: 3.5px;
  position: relative;
  opacity: 0.85;
}
.mg::after {
  content: "";
  position: absolute;
  background: currentColor;
  border-radius: 1.5px;
}
.mg-left::after {
  inset: 1px 50% 1px 1px;
}
.mg-right::after {
  inset: 1px 1px 1px 50%;
}
.mg-max::after {
  inset: 1px;
}
.mg-center::after {
  inset: 2.5px 3.5px;
}

/* Snap-preview mockup */
.preview-card {
  width: 250px;
  padding: 0.6rem;
}

.mini-desktop {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(135deg, #2b2450, #3c2a5e 55%, #57306b);
}
.mini-desktop::before {
  /* mock menu bar */
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 9%;
  background: rgba(244, 241, 255, 0.14);
}

.mini-zone {
  position: absolute;
  left: 3.5%;
  top: 13%;
  width: 45%;
  height: 82%;
  border: 2px dashed var(--sky);
  border-radius: 7px;
  background: rgba(108, 199, 255, 0.18);
  animation: zone-pulse 2.2s ease-in-out infinite;
}

@keyframes zone-pulse {
  0%,
  100% {
    background: rgba(108, 199, 255, 0.14);
  }
  50% {
    background: rgba(108, 199, 255, 0.28);
  }
}

.mini-window {
  position: absolute;
  right: 8%;
  top: 24%;
  width: 38%;
  height: 56%;
  background: #f0edfa;
  border-radius: 6px;
  padding: 4px 5px;
  display: flex;
  gap: 3px;
  transform: rotate(2deg);
}

.dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
}
.dot-r {
  background: #ff5f57;
}
.dot-y {
  background: #febc2e;
}
.dot-g {
  background: #28c840;
}

.card-caption {
  margin: 0.5rem 0.2rem 0.1rem;
  font-family: var(--font-hand);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-muted);
  text-align: center;
}

/* Keyboard-chord card */
.chord-card {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.7rem 0.85rem;
}

.kbd {
  display: inline-grid;
  place-items: center;
  min-width: 2em;
  height: 2em;
  padding: 0 0.35em;
  border-radius: 8px;
  background: rgba(244, 241, 255, 0.08);
  border: 1px solid var(--line);
  border-bottom-width: 3px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
}

.chord-caption {
  margin-left: 0.45rem;
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--mint);
  transform: rotate(-3deg);
}

/* Quarters glyph card */
.quarters-card {
  padding: 0.65rem;
}

.quarters-glyph {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  width: 92px;
  aspect-ratio: 16 / 11;
}

.quarters-glyph span {
  border: 1.5px solid rgba(244, 241, 255, 0.4);
  border-radius: 5px;
}

.quarters-glyph span.is-lit {
  background: var(--mint);
  border-color: var(--mint);
}

/* Hand-drawn accents */
.hand-note {
  position: absolute;
  left: calc(50% + 10rem);
  top: -0.4rem;
  width: 9.5rem;
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.15;
  color: var(--sun);
  transform: rotate(6deg);
  text-align: left;
}

.cta-row {
  position: relative;
}

.hand-arrow {
  width: 52px;
  margin-top: 0.2rem;
  color: var(--sun);
  transform: scaleX(-1) rotate(14deg);
}

.u-squiggle {
  padding-bottom: 0.45em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 8' preserveAspectRatio='none'%3E%3Cpath d='M2 5 C7 1 11 1 16 4 C21 7 25 7 30 4 C35 1 39 1 42 4' stroke='%23ff6b5e' stroke-width='2.4' stroke-linecap='round' fill='none'/%3E%3C/svg%3E")
    repeat-x left bottom / 44px 9px;
}

.doodle {
  position: absolute;
  color: var(--lilac);
  opacity: 0.7;
}

.doodle-star1 {
  width: 22px;
  left: 16%;
  top: 13%;
  color: var(--sun);
  animation: twinkle 3.4s ease-in-out infinite;
}
.doodle-star2 {
  width: 14px;
  right: 18%;
  top: 34%;
  color: var(--mint);
  animation: twinkle 4.2s ease-in-out 1.1s infinite;
}
.doodle-squiggle {
  width: 64px;
  right: 24%;
  top: 9%;
  color: var(--lilac);
  transform: rotate(-8deg);
}
.doodle-plus {
  width: 15px;
  left: 24%;
  bottom: 26%;
  color: var(--sky);
  animation: twinkle 3.8s ease-in-out 0.6s infinite;
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.85);
  }
  50% {
    opacity: 0.85;
    transform: scale(1.05);
  }
}

/* ---- Section headers ---- */
.section-head {
  text-align: center;
  margin-bottom: 2.6rem;
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 5.5vw, 3rem);
  letter-spacing: -0.01em;
  text-transform: lowercase;
}

.section-note {
  margin: 0.3rem 0 0;
  font-family: var(--font-hand);
  font-weight: 600;
  font-size: clamp(1.25rem, 2.6vw, 1.55rem);
  color: var(--sun);
  transform: rotate(-1.5deg);
}

/* ---- Feature grid ---- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 1.4rem 1.4rem 1.2rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px) rotate(-0.5deg);
  border-color: rgba(244, 241, 255, 0.2);
}

.feature-card:nth-child(even):hover {
  transform: translateY(-4px) rotate(0.5deg);
}

.feature-glyph {
  width: 72px;
  color: var(--text);
  margin-bottom: 0.9rem;
}

.feature-card h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  text-transform: lowercase;
}

.feature-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.9rem !important;
}

.chips .kbd {
  min-width: 1.75em;
  height: 1.75em;
  font-size: 0.9rem;
}

.chips-sep {
  color: var(--text-muted);
  padding: 0 0.15rem;
}

.chips-hand {
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--mint);
  transform: rotate(-2deg);
}

.feature-footnote {
  margin: 2.4rem auto 0;
  max-width: 30rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ---- Demo stage ---- */
.demo-stage-wrap {
  max-width: 720px;
  margin: 0 auto;
}

.demo-stage {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  background: linear-gradient(135deg, #2b2450, #3c2a5e 55%, #57306b);
}

.demo-menubar {
  position: absolute;
  inset: 0 0 auto 0;
  height: 7%;
  background: rgba(244, 241, 255, 0.13);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 2%;
}

.demo-menubar-glyph {
  height: 68%;
  width: auto;
  color: rgba(244, 241, 255, 0.85);
}

.demo-window {
  position: absolute;
  border-radius: 9px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
  transition: left 0.6s cubic-bezier(0.3, 1.25, 0.4, 1),
    top 0.6s cubic-bezier(0.3, 1.25, 0.4, 1),
    width 0.6s cubic-bezier(0.3, 1.25, 0.4, 1),
    height 0.6s cubic-bezier(0.3, 1.25, 0.4, 1);
}

.demo-window header {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 7px;
}

.demo-window .dot {
  width: 7px;
  height: 7px;
}

.demo-window-a {
  left: 8%;
  top: 16%;
  width: 40%;
  height: 52%;
  background: #efe9ff;
}
.demo-window-a header {
  background: #ddd2ff;
}

.demo-window-b {
  left: 54%;
  top: 32%;
  width: 36%;
  height: 50%;
  background: #f6f2ee;
}
.demo-window-b header {
  background: #e7ded4;
}

.demo-lines {
  padding: 8px 10px;
  display: grid;
  gap: 6px;
}

.demo-lines span {
  height: 7px;
  border-radius: 4px;
  background: rgba(19, 16, 34, 0.14);
}

.demo-lines span:nth-child(2n) {
  width: 72%;
}
.demo-lines span:nth-child(3n) {
  width: 55%;
}

.demo-hud {
  margin: 1.3rem 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  min-height: 2.6rem;
}

.demo-keys {
  display: flex;
  gap: 0.3rem;
}

.demo-keys .kbd {
  animation: key-press 0.45s ease;
}

@keyframes key-press {
  0% {
    transform: translateY(0);
    background: rgba(244, 241, 255, 0.08);
  }
  35% {
    transform: translateY(2px);
    background: rgba(255, 107, 94, 0.45);
  }
  100% {
    transform: translateY(0);
  }
}

.demo-label {
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--sun);
  transform: rotate(-2deg);
}

.demo-chips {
  margin-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.demo-chip {
  appearance: none;
  cursor: pointer;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: lowercase;
  transition: transform 0.16s ease, border-color 0.16s ease,
    background 0.16s ease, color 0.16s ease;
}

.demo-chip:hover {
  transform: translateY(-2px) rotate(-1deg);
  border-color: rgba(255, 107, 94, 0.6);
}

.demo-chip:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 2px;
}

.demo-chip.is-active {
  background: var(--coral);
  border-color: var(--coral);
  color: var(--ink);
}

.demo-chip-mess.is-active {
  background: var(--lilac);
  border-color: var(--lilac);
}

.demo-nudge {
  margin: 0.55rem 0 0;
  text-align: center;
  font-family: var(--font-hand);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--text-muted);
  transform: rotate(-1.5deg);
}

/* ---- Requirements ---- */
.requirements {
  padding-top: 1.5rem;
}

.req-card {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 2rem;
  align-items: center;
  background: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 1.8rem 2rem;
}

.req-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.req-list li {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
}

.req-list strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}

.req-list li span:last-child {
  color: var(--text-muted);
}

.req-list li span:last-child strong {
  color: var(--text);
}

.req-check {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: rgba(94, 230, 168, 0.16);
  color: var(--mint);
  font-weight: 700;
  font-size: 0.9rem;
}

.req-note {
  margin: 0;
  padding: 1.1rem 1.25rem;
  border-radius: 14px;
  background: rgba(255, 201, 77, 0.07);
  border: 1px dashed rgba(255, 201, 77, 0.35);
  color: var(--text-muted);
  font-size: 0.95rem;
}

.req-note strong {
  color: var(--sun);
}

@media (max-width: 760px) {
  .req-card {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }
}

/* ---- FAQ ---- */
.faq-list {
  max-width: 46rem;
  margin: 0 auto;
  display: grid;
  gap: 0.7rem;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color 0.2s ease;
}

.faq-item:hover,
.faq-item[open] {
  border-color: rgba(255, 107, 94, 0.45);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.95rem 1.2rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--text);
}

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

.faq-item summary::before {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: rgba(255, 107, 94, 0.15);
  color: var(--coral);
  font-weight: 700;
  transition: transform 0.25s ease;
}

.faq-item[open] summary::before {
  transform: rotate(45deg);
}

.faq-item summary:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: -2px;
  border-radius: 14px;
}

.faq-item p {
  margin: 0;
  padding: 0 1.2rem 1.1rem 3.5rem;
  color: var(--text-muted);
  font-size: 0.97rem;
  animation: faq-in 0.3s ease;
}

@keyframes faq-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---- Footer ---- */
.footer {
  margin-top: 3rem;
  border-top: 1px solid var(--line);
}

.footer-inner {
  width: min(1120px, 92vw);
  margin: 0 auto;
  padding: 2.6rem 0 2.8rem;
  text-align: center;
}

.footer-wordmark {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  text-transform: lowercase;
}

.footer-wordmark span {
  color: var(--coral);
}

.footer-links {
  margin-top: 0.9rem;
  display: flex;
  justify-content: center;
  gap: 1.6rem;
}

.footer-links a {
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
}

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

.footer-privacy {
  margin: 1.4rem auto 0;
  max-width: 36rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-privacy strong {
  color: var(--text);
}

.footer-legal {
  margin: 1.1rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Stack the floats on small screens instead of overlapping the copy */
@media (max-width: 940px) {
  .hero {
    min-height: 0;
  }
  .hero-floats {
    position: static;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 1.1rem;
    margin-top: 2.6rem;
  }
  .float {
    position: static;
  }
  .float-quarters,
  .doodle {
    display: none;
  }
  .hand-note {
    display: none;
  }
}

/* ---- Scroll reveals ----
   .reveal is added by JS (content stays visible without it). The animation
   uses backwards fill and no forwards fill, so after it ends elements return
   to their natural styles and hover transitions behave normally. */
@media (prefers-reduced-motion: no-preference) {
  .reveal:not(.is-revealed) {
    opacity: 0;
  }
  .is-revealed {
    animation: reveal-in 0.65s cubic-bezier(0.2, 0.7, 0.3, 1) backwards;
    animation-delay: var(--rd, 0s);
  }
}

@keyframes reveal-in {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
}

/* ---- Hover micro-interactions ---- */
.feature-glyph {
  transition: transform 0.25s cubic-bezier(0.3, 1.4, 0.5, 1);
}

.feature-card:hover .feature-glyph {
  transform: rotate(-2.5deg) scale(1.06);
}

.feature-card:hover .chips .kbd {
  animation: chip-press 0.5s ease both;
}

.feature-card .chips .kbd:nth-child(2) {
  animation-delay: 0.05s;
}
.feature-card .chips .kbd:nth-child(3) {
  animation-delay: 0.1s;
}
.feature-card .chips .kbd:nth-child(4) {
  animation-delay: 0.15s;
}
.feature-card .chips .kbd:nth-child(n + 5) {
  animation-delay: 0.2s;
}

@keyframes chip-press {
  35% {
    transform: translateY(2px);
    background: rgba(255, 107, 94, 0.35);
  }
}

.footer-links a {
  transition: color 0.16s ease, transform 0.16s ease;
}

.footer-links a:hover {
  transform: rotate(-1.5deg) translateY(-1px);
}

/* ---- Motion safety ---- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
}

@media (max-width: 540px) {
  .back-to-top {
    right: calc(0.75rem + env(safe-area-inset-right));
    bottom: calc(0.75rem + env(safe-area-inset-bottom));
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 13px;
  }
}
