/* Scoopboard launch site. Tokens are the app's palette, from docs/site/BRIEF.md. */
:root {
  color-scheme: light dark;

  --bg: #fbf4e8;
  --bg-deep: #f3e8d6;
  --surface: #fffaf2;
  --border: #e4d4bc;
  --ink: #3a2519;
  --ink-muted: #6f5646;
  --accent: #b8436a;
  --accent-strong: #962f54;
  --on-accent: #fffaf2;
  --focus: #2f6fd6;
  --chalk-bg: #2b3a33;
  --chalk-ink: #eef1ea;

  --ok: #2f7a4b;
  --low: #a35a00;
  --out: #b3261e;

  --sw-vanilla: #f6e7b4;
  --sw-strawberry: #f6b6c4;
  --sw-chocolate: #b98466;
  --sw-pistachio: #c4dd9b;
  --sw-mint: #a9e3d2;
  --sw-blueberry: #b5bdf0;
  --sw-mango: #fcc777;
  --sw-caramel: #e3b17c;

  --shadow-card: 0 4px 14px rgb(58 37 25 / 0.1), 0 1px 3px rgb(58 37 25 / 0.08);
  --shadow-lift: 0 24px 60px rgb(58 37 25 / 0.18), 0 6px 14px rgb(58 37 25 / 0.08);

  --bezel: #3a2519;
  --scoop-stroke: #3a2519;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Figtree", system-ui, sans-serif;
  --font-chalk: "Caveat", "Comic Sans MS", cursive;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --section-space: clamp(5rem, 12vw, 9rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1d1410;
    --bg-deep: #160f0c;
    --surface: #2a1e18;
    --border: #47352b;
    --ink: #f7ecdc;
    --ink-muted: #c9b49f;
    --accent: #f08aab;
    --accent-strong: #ffa9c3;
    --on-accent: #2a1218;
    --focus: #8ab4ff;
    --chalk-bg: #1a2420;
    --chalk-ink: #e6ebe3;

    --ok: #7bd39b;
    --low: #f3b35b;
    --out: #ff8a80;

    --sw-vanilla: #6d5c2c;
    --sw-strawberry: #7d3346;
    --sw-chocolate: #5a3626;
    --sw-pistachio: #4b6131;
    --sw-mint: #2c6355;
    --sw-blueberry: #3d4685;
    --sw-mango: #80531a;
    --sw-caramel: #74492a;

    --shadow-card: 0 4px 14px rgb(0 0 0 / 0.45), 0 1px 3px rgb(0 0 0 / 0.3);
    --shadow-lift: 0 24px 60px rgb(0 0 0 / 0.6), 0 6px 14px rgb(0 0 0 / 0.35);

    --bezel: #0d0907;
    --scoop-stroke: #1d1410;
  }
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-variation-settings:
    "SOFT" 100,
    "WONK" 1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.6rem, 6.4vw, 5.6rem);
  line-height: 1.02;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.08;
  margin-bottom: 1.25rem;
}

h3 {
  font-size: 1.375rem;
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

p,
li {
  max-width: 62ch;
}

a {
  color: var(--accent-strong);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

#main:focus {
  outline: none;
}

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

[hidden] {
  display: none !important;
}

.wrap {
  max-width: calc(72rem + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.band {
  padding-block: var(--section-space);
  background: var(--bg);
}

.band-deep {
  background: var(--bg-deep);
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-strong);
  margin-bottom: 0.875rem;
}

@media (max-width: 719px) {
  .eyebrow {
    font-size: 0.875rem;
  }
}

.small-print {
  font-size: 0.9375rem;
  color: var(--ink-muted);
}

.measure {
  margin-bottom: 0.75rem;
}

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 44px;
  padding: 0.6rem 1.5rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font: 700 1rem/1.2 var(--font-body);
  text-decoration: none;
  text-align: center;
  transition:
    transform 160ms var(--ease-out),
    opacity 160ms;
}

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}

.btn-primary:hover {
  background: var(--accent-strong);
}

.btn-outline {
  border-color: var(--ink);
  color: var(--ink);
}

.btn-outline:hover {
  background: color-mix(in srgb, var(--ink) 8%, transparent);
}

.btn:active {
  transform: translateY(1px);
}

.btn-small {
  min-height: 44px;
  padding: 0.5rem 1.1rem;
  font-size: 0.9375rem;
}

.btn-large {
  min-height: 56px;
  padding: 0.75rem 2rem;
  font-size: 1.125rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  min-height: 44px;
  font-weight: 700;
  color: var(--accent-strong);
  text-underline-offset: 0.2em;
}

/* ---------- Skip link and header ---------- */
.skip {
  position: absolute;
  left: 1rem;
  top: -10rem;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 1rem;
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  box-shadow: var(--shadow-card);
}

.skip:focus {
  top: 1rem;
}

.site-header {
  position: relative;
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid transparent;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
}

.mark {
  width: 32px;
  height: 32px;
  flex: none;
  overflow: visible;
}

.mark-small {
  width: 20px;
  height: 20px;
}

.mark circle,
.mark rect,
.mark line {
  stroke: var(--ink);
  stroke-width: 2;
}

.mark line {
  stroke-linecap: round;
}

.m-s1 {
  fill: var(--sw-strawberry);
}
.m-s2 {
  fill: var(--sw-pistachio);
}
.m-s3 {
  fill: var(--sw-mango);
}
.m-board {
  fill: var(--surface);
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.375rem;
  font-variation-settings:
    "SOFT" 100,
    "WONK" 1;
  letter-spacing: -0.02em;
}

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

.nav-link {
  display: none;
  align-items: center;
  min-height: 44px;
  padding: 0 0.85rem;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
}

.nav-link:hover {
  color: var(--accent-strong);
}

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

@media (min-width: 720px) {
  .nav-link {
    display: inline-flex;
  }
  .nav .btn {
    margin-left: 0.5rem;
  }
  .wide-only {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip-path: none;
  }
}

@media (min-width: 900px) {
  .site-header {
    position: sticky;
    top: 0;
    transition:
      background-color 200ms,
      border-color 200ms;
  }
  .site-header.is-scrolled {
    background: color-mix(in srgb, var(--bg) 78%, transparent);
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    backdrop-filter: blur(14px) saturate(1.4);
    border-bottom-color: var(--border);
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.5rem, 6vw, 4rem) var(--section-space);
  background:
    radial-gradient(
      60rem 40rem at 0% 0%,
      color-mix(in srgb, var(--sw-strawberry) 30%, var(--bg)),
      transparent 70%
    ),
    radial-gradient(
      60rem 40rem at 100% 100%,
      color-mix(in srgb, var(--sw-mint) 30%, var(--bg)),
      transparent 70%
    ),
    var(--bg);
}

.hero-grid {
  display: grid;
  gap: 3rem;
}

.hero-text h1 {
  font-size: clamp(2.6rem, 5.4vw, 4.6rem);
  text-wrap: pretty;
  margin-bottom: 1.25rem;
}

.lede {
  font-size: 1.1875rem;
  color: var(--ink);
  margin-bottom: 2rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (min-width: 960px) {
  .hero {
    min-height: 88svh;
    display: flex;
    align-items: center;
  }
  .hero > .wrap {
    width: 100%;
  }
  .hero-grid {
    grid-template-columns: 5fr 7fr;
    align-items: center;
    gap: clamp(2rem, 4vw, 4rem);
  }
  .hero-visual {
    display: block;
    padding-bottom: 5rem;
  }
  .hero-visual .tv {
    transform: perspective(1400px) rotateY(-8deg) rotateX(3deg);
  }
}

/* TV frame, shared by the hero and the live demo */
.tv {
  width: 100%;
}

.tv-bezel {
  background: var(--bezel);
  padding: 14px;
  border-radius: 22px;
  box-shadow: var(--shadow-lift);
}

.tv-stand {
  width: 22%;
  height: 8px;
  margin: 0 auto;
  background: var(--bezel);
  clip-path: polygon(8% 0, 92% 0, 100% 100%, 0 100%);
  border-radius: 0 0 6px 6px;
}

/* Miniature of the app's Display: sized in container units so it scales with the frame. */
.screen {
  container-type: inline-size;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 10px;
  padding: 3cqi 3.4cqi;
  background:
    radial-gradient(
      70% 70% at 0% 0%,
      color-mix(in srgb, var(--sw-strawberry) 30%, var(--bg)),
      transparent 70%
    ),
    radial-gradient(70% 70% at 100% 100%, color-mix(in srgb, var(--sw-mint) 30%, var(--bg)), transparent 70%),
    var(--bg);
  color: var(--ink);
}

.screen > * {
  max-width: none;
}

.scr-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-variation-settings:
    "SOFT" 100,
    "WONK" 1;
  font-size: 5cqi;
  line-height: 1.1;
  text-align: center;
  margin-bottom: 2.6cqi;
}

.scr-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8cqi;
  margin-bottom: 2.4cqi;
}

.fc {
  display: flex;
  flex-direction: column;
  gap: 1.1cqi;
  padding: 1.8cqi 1.9cqi;
  border-radius: 1.4cqi;
  background: var(--surface);
  border-left: 1.2cqi solid var(--sw);
  box-shadow: var(--shadow-card);
  line-height: 1.15;
}

.fc-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6cqi 1cqi;
  font-family: var(--font-display);
  font-weight: 600;
  font-variation-settings:
    "SOFT" 100,
    "WONK" 1;
  font-size: 3.1cqi;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6cqi;
}

.pills i,
.tag-key i,
.mf-tags i {
  font-style: normal;
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  border: 2px solid var(--ink);
  border-radius: 999px;
  line-height: 1;
}

.pills i {
  font-size: 1.8cqi;
  padding: 0.45cqi 0.95cqi;
  border-width: max(1px, 0.25cqi);
}

.low-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.8cqi;
  line-height: 1;
  padding: 0.5cqi 1cqi;
  border-radius: 999px;
  color: var(--low);
  background: color-mix(in srgb, var(--low) 16%, transparent);
  white-space: nowrap;
}

.scr-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6cqi 1.8cqi;
  font-size: 2.6cqi;
  margin-bottom: 1.2cqi;
}

.scr-label {
  font-weight: 700;
  font-size: 1.9cqi;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
}

.gone {
  font-family: var(--font-display);
  opacity: 0.55;
  text-decoration-thickness: 2px;
}

.soon {
  font-family: var(--font-display);
  padding: 0.3cqi 1.2cqi;
  border-radius: 999px;
  border: max(1px, 0.25cqi) dashed var(--border);
}

.scr-legend {
  font-size: 1.8cqi;
  color: var(--ink-muted);
  margin-top: 1.4cqi;
}

/* Tablet card and arrow */
.tablet-card {
  position: relative;
  z-index: 2;
  width: 88%;
  margin-top: 2.75rem;
  padding: 1rem 1.1rem 1.1rem;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-lift);
}

.tc-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
  margin-bottom: 0.7rem;
}

.dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--sw);
  border: 2px solid var(--ink);
  flex: none;
}

.seg {
  --pos: 0;
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 3px;
  border-radius: 12px;
  background: var(--bg-deep);
  border: 1px solid var(--border);
}

.seg > span:not(.seg-thumb) {
  position: relative;
  z-index: 1;
  padding: 0.45rem 0.25rem;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
}

.seg-thumb {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc((100% - 6px) / 4);
  border-radius: 9px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  transform: translateX(calc(var(--pos) * 100%));
  transition: transform 320ms var(--ease-out);
}

.hero-arrow {
  width: 64px;
  height: 48px;
  margin-top: 1.25rem;
  margin-bottom: -2.25rem;
  transform: rotate(-60deg);
  fill: none;
  stroke: var(--ink-muted);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-arrow path:first-child {
  stroke-dasharray: 6 7;
}

.arrow-label {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  font-variant-caps: all-small-caps;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}

@media (min-width: 960px) {
  .tablet-card {
    position: absolute;
    left: -6%;
    bottom: 0;
    width: min(58%, 360px);
    margin: 0;
  }
  .hero-arrow {
    position: absolute;
    left: calc(min(58%, 360px) - 6% + 0.5rem);
    bottom: 1.5rem;
    width: 96px;
    height: 72px;
    margin: 0;
    transform: none;
  }
  .arrow-label {
    position: absolute;
    left: calc(min(58%, 360px) - 6% + 6.75rem);
    bottom: 1rem;
    margin: 0;
  }
}

/* Hero loop motion (main.js adds .is-entering / .is-leaving) */
.fc.is-leaving {
  opacity: 0;
  transform: scale(0.9);
  transition:
    opacity 200ms ease-in,
    transform 200ms ease-in;
}

.low-badge.pop {
  animation: pop 240ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes pop {
  from {
    transform: scale(0.85);
    opacity: 0;
  }
}

/* ---------- Before: chalkboard ---------- */
.split {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: clamp(2.5rem, 5vw, 5rem);
  }
  .split-57 {
    grid-template-columns: 5fr 7fr;
  }
}

.chalk {
  position: relative;
  padding: clamp(1.75rem, 4vw, 2.75rem) clamp(1.75rem, 5vw, 3.5rem);
  border: 16px solid transparent;
  border-radius: 10px;
  background:
    radial-gradient(circle at 30% 40%, rgb(255 255 255 / 0.04) 1px, transparent 1.6px) 0 0 / 7px 7px padding-box,
    radial-gradient(circle at 70% 70%, rgb(255 255 255 / 0.04) 1px, transparent 1.8px) 0 0 / 11px 11px padding-box,
    linear-gradient(var(--chalk-bg), var(--chalk-bg)) padding-box,
    linear-gradient(135deg, var(--sw-caramel), var(--sw-chocolate) 55%, var(--sw-caramel)) border-box;
  box-shadow: var(--shadow-lift);
  color: var(--chalk-ink);
}

.chalk-list {
  list-style: none;
  padding: 0;
  font-family: var(--font-chalk);
  font-weight: 600;
  font-size: 1.6rem;
  line-height: 1.45;
}

.chalk-list li {
  position: relative;
  width: fit-content;
}

.struck svg {
  position: absolute;
  left: -6%;
  top: 30%;
  width: 112%;
  height: 0.6em;
  overflow: visible;
}

.struck path {
  fill: none;
  stroke: var(--chalk-ink);
  stroke-width: 3;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.postit {
  position: absolute;
  right: clamp(1rem, 4vw, 2.5rem);
  bottom: clamp(1.25rem, 4vw, 2.5rem);
  width: 8.5rem;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 0.75rem;
  background: var(--sw-mango);
  color: var(--ink);
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.25;
  text-align: center;
  box-shadow: 0 8px 18px rgb(0 0 0 / 0.3);
  transform: rotate(4deg);
}

@media (min-width: 900px) {
  .chalk-list {
    font-size: 1.9rem;
  }
}

/* ---------- How it works ---------- */
.steps {
  position: relative;
  list-style: none;
  padding: 0;
  margin-top: 3rem;
  display: grid;
  gap: 3rem;
}

.step {
  position: relative;
  max-width: none;
}

.step-num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 1.25rem;
  border-radius: 50%;
  background: var(--sw);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.75rem;
  font-variation-settings:
    "SOFT" 100,
    "WONK" 1;
  box-shadow: 0 0 0 6px var(--bg);
}

.step p {
  color: var(--ink);
  margin-bottom: 1.5rem;
}

.illo {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  border-radius: 22px;
  background: var(--bg-deep);
  border: 1px solid var(--border);
}

@media (min-width: 900px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.5rem, 3vw, 2.5rem);
  }
  .steps::before {
    content: "";
    position: absolute;
    top: 28px;
    left: 28px;
    right: 28px;
    border-top: 2px dashed var(--border);
    transform-origin: left;
  }
}

.mini-form {
  width: 100%;
  display: grid;
  gap: 0.6rem;
  padding: 1rem;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.mf-label {
  font-size: 0.875rem;
  font-weight: 700;
}

.mf-field {
  padding: 0.4rem 0.7rem;
  border: 2px solid var(--ink-muted);
  border-radius: 8px;
  font-size: 0.9375rem;
}

.mf-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.mf-tags i {
  font-size: 0.875rem;
  padding: 0.25rem 0.45rem;
}

.mf-tags i.on {
  background: var(--ink);
  color: var(--bg);
}

.mf-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.mf-swatches b,
.mini-grid b {
  background: var(--sw);
}

.mf-swatches b {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
}

.mf-swatches b.ring {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.seg-big {
  width: 100%;
  background: var(--surface);
}

.seg-big > span:not(.seg-thumb) {
  padding: 0.85rem 0.2rem;
}

.seg-big .seg-thumb {
  background: color-mix(in srgb, var(--low) 16%, var(--surface));
}

/* Step 2: two Board rows, the top one being tapped. */
.mini-rows {
  width: 100%;
  display: grid;
  gap: 0.85rem;
}

.mini-row {
  display: grid;
  gap: 0.6rem;
  padding: 0.75rem 0.9rem 0.85rem;
  border-radius: 14px;
  background: var(--surface);
  border-left: 8px solid var(--sw);
  box-shadow: var(--shadow-card);
}

.mini-row.is-dim {
  opacity: 0.55;
}

.mr-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-variation-settings:
    "SOFT" 100,
    "WONK" 1;
  font-size: 1.125rem;
  line-height: 1.2;
}

.mini-row .seg-big {
  background: var(--bg-deep);
}

.mini-row .seg-big > span:not(.seg-thumb) {
  padding: 0.5rem 0.2rem;
}

.mini-row.is-dim .seg-thumb {
  background: var(--surface);
}

.mini-tv {
  width: 88%;
  padding: 8px;
  border-radius: 12px;
  background: var(--bezel);
  box-shadow: var(--shadow-card);
}

.mini-grid {
  aspect-ratio: 16 / 10;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 10px;
  border-radius: 6px;
  background: var(--bg);
}

.mini-grid b {
  border-radius: 4px;
  background: linear-gradient(90deg, var(--sw) 0 14%, var(--surface) 14%);
  box-shadow: inset 0 0 0 1px var(--border);
}

/* ---------- Features (bento) ---------- */
.bento {
  margin-top: 3rem;
  display: grid;
  gap: 1.25rem;
}

.card {
  min-width: 0;
  padding: 28px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  transition:
    transform 200ms var(--ease-out),
    box-shadow 200ms;
}

.card > p {
  color: var(--ink);
  margin-bottom: 1.5rem;
}

@media (hover: hover) and (pointer: fine) {
  .card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lift);
  }
}

@media (min-width: 900px) {
  .bento {
    grid-template-columns: repeat(6, 1fr);
  }
  .c-big {
    grid-column: span 4;
    grid-row: span 2;
  }
  .c-2 {
    grid-column: span 2;
  }
  .c-3 {
    grid-column: span 3;
  }
  .c-strip {
    grid-column: span 6;
  }
}

.wide-tv {
  padding: 10px;
  border-radius: 16px;
  background: var(--bezel);
}

.dense {
  padding: 2.4cqi 2.6cqi;
}

.dense-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.6cqi;
  margin-bottom: 3cqi;
}

.dense-grid span {
  padding: 2.2cqi 1.6cqi;
  border-radius: 1cqi;
  background: var(--surface);
  border-left: 1cqi solid var(--sw);
  box-shadow: var(--shadow-card);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2.6cqi;
  line-height: 1.1;
  text-wrap: balance;
}

.dense .scr-row {
  font-size: 2.8cqi;
  margin-bottom: 1.4cqi;
}

/* On a phone the miniature screens show fewer, larger cards so the type stays readable. */
@media (max-width: 599px) {
  .hero .screen,
  .screen.dense {
    aspect-ratio: 4 / 3;
  }
  .hero .scr-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero [data-card="mango"],
  .hero [data-card="mint"],
  .hero .scr-legend {
    display: none;
  }
  .hero .fc-name {
    font-size: max(3.1cqi, 15px);
  }
  .hero .scr-title {
    font-size: max(5cqi, 18px);
  }
  .hero .pills i,
  .hero .low-badge,
  .hero .scr-label,
  .dense .scr-label {
    font-size: max(1.8cqi, 11px);
  }
  .hero .scr-row {
    font-size: max(2.6cqi, 13px);
  }
  .dense-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .dense-grid span:nth-child(n + 9) {
    display: none;
  }
  .dense-grid span {
    font-size: max(2.6cqi, 13px);
  }
  .dense .scr-row {
    font-size: max(2.8cqi, 13px);
  }
}

.tag-key {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.tag-key li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
}

.tag-key i {
  display: inline-grid;
  place-items: center;
  min-width: 3rem;
  padding: 0.3rem 0.5rem;
  font-size: 0.875rem;
}

.fc-solo {
  gap: 0.6rem;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border-left-width: 8px;
}

.fc-solo .fc-name {
  font-size: 1.375rem;
  gap: 0.5rem;
}

.fc-solo .low-badge {
  font-size: 0.875rem;
  padding: 0.3rem 0.6rem;
}

.fc-solo .pills i {
  font-size: 0.875rem;
  padding: 0.2rem 0.5rem;
  border-width: 2px;
}

.log {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.log li {
  padding: 0.6rem 0.85rem;
  border-radius: 12px;
  background: var(--bg);
  border-left: 6px solid var(--sw);
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--ink-muted);
}

.log b {
  color: var(--ink);
}

.log em {
  font-style: normal;
  font-weight: 700;
  color: var(--ink);
}

.fake-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.fake-btns .btn {
  min-height: 56px;
  padding-inline: 1.75rem;
  font-size: 1.0625rem;
}

.fake-focus {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.c-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
}

.c-strip p {
  margin: 0;
}

.c-strip .text-link {
  font-size: 1.125rem;
}

/* ---------- Try it live ---------- */
.devices {
  margin-top: 2.5rem;
  display: grid;
  gap: 2.5rem;
}

.device {
  min-width: 0;
}

.device-label {
  margin-bottom: 0.75rem;
}

.tablet-frame {
  padding: 12px;
  border-radius: 28px;
  background: var(--bezel);
  box-shadow: var(--shadow-lift);
}

.tablet-frame iframe {
  display: block;
  width: 100%;
  height: 620px;
  border: 0;
  border-radius: 16px;
  background: var(--bg);
}

.live-screen {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 10px;
  background: var(--bg);
}

.live-screen iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.js .live-screen iframe {
  width: 1280px;
  height: 800px;
  transform: scale(var(--scale, 0.5));
  transform-origin: top left;
}

.device-toggle {
  margin-top: 2rem;
}

.toggle-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  gap: 4px;
  border-radius: 14px;
  background: var(--bg-deep);
  border: 1px solid var(--border);
}

.toggle-btns button {
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-muted);
  font: 700 1rem/1.2 var(--font-body);
  cursor: pointer;
}

.toggle-btns button[aria-pressed="true"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-card);
}

.tip {
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  color: var(--ink-muted);
}

@media (max-width: 999px) {
  .device.is-off {
    display: none;
  }
  .js .device-toggle + .devices {
    margin-top: 1.5rem;
  }
}

@media (min-width: 1000px) {
  #try {
    background: var(--bg-deep);
  }
  .devices {
    grid-template-columns: 5fr 7fr;
    align-items: start;
  }
  .tablet-frame iframe {
    height: 680px;
  }
  .device-toggle {
    display: none;
  }
}

.try-actions {
  margin-top: 3rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.5rem;
}

/* ---------- Make next (stats) ---------- */
.stats-card {
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lift);
}

.week {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.week b {
  font-family: var(--font-display);
  font-size: 1.125rem;
}

.week .dim {
  opacity: 0.5;
}

.make-next {
  display: grid;
  gap: 0.2rem;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  border-radius: 18px;
  background: color-mix(in srgb, var(--sw-strawberry) 45%, var(--surface));
}

.mn-label {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.mn-names {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.25;
}

.rank {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.rank li {
  max-width: none;
  display: grid;
  grid-template-columns: auto minmax(7rem, 11rem) 1fr auto;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
}

.bar {
  height: 14px;
  border-radius: 999px;
  background: var(--bg-deep);
  overflow: hidden;
}

.bar b {
  display: block;
  height: 100%;
  width: calc(var(--w) * 100%);
  border-radius: inherit;
  background: var(--sw);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 18%, transparent);
  transform-origin: left;
}

.r-n {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--ink-muted);
}

@media (max-width: 520px) {
  .rank li {
    grid-template-columns: auto 1fr auto;
    row-gap: 0.35rem;
  }
  .rank .bar {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

/* ---------- Closing call to action ---------- */
.closing-band {
  padding-top: calc(var(--section-space) + 2rem);
}

.cta {
  position: relative;
  padding: clamp(3rem, 8vw, 6rem) clamp(1.5rem, 6vw, 5rem);
  border-radius: 32px;
  background: var(--ink);
  color: var(--bg);
  text-align: center;
}

.cta p {
  margin: 0 auto 2rem;
}

.cta .btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}

.cta .btn-primary:hover {
  background: var(--accent-strong);
}

.tray {
  position: absolute;
  left: 50%;
  top: 0;
  width: min(360px, 84%);
  transform: translate(-50%, -62%);
  overflow: visible;
}

.tray circle {
  stroke: var(--scoop-stroke);
  stroke-width: 2;
}

@media (prefers-color-scheme: dark) {
  .cta {
    background: var(--surface);
    color: var(--ink);
    border-top: 2px solid var(--border);
  }
}

/* ---------- Footer ---------- */
.site-footer {
  padding-block: 2.5rem 3rem;
  color: var(--ink-muted);
  font-size: 0.9375rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.5rem;
}

.foot-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.5rem;
}

.foot-brand b {
  color: var(--ink);
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1rem;
}

.foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
}

.made {
  margin-left: auto;
}

/* ---------- Entrance motion: only with JS and when motion is welcome ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .rise {
    transition:
      opacity 500ms var(--ease-out),
      transform 500ms var(--ease-out);
    transition-delay: calc(var(--i, 0) * 80ms);
  }
  .js [data-reveal]:not(.in) .rise {
    opacity: 0;
    transform: translateY(16px);
  }

  .js .steps::before {
    transition: transform 600ms var(--ease-out);
  }
  .js .steps:not(.in)::before {
    transform: scaleX(0);
  }

  .js .chalk .struck path {
    transition: stroke-dashoffset 500ms ease-out;
  }
  .js .chalk .struck-2 path {
    transition-delay: 650ms;
  }
  .js .chalk:not(.in) .struck path {
    stroke-dashoffset: 1;
  }
  .js .chalk .postit {
    transition:
      opacity 300ms ease-out 1150ms,
      transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1) 1150ms;
  }
  .js .chalk:not(.in) .postit {
    opacity: 0;
    transform: translateY(-18px) rotate(-6deg);
  }

  .js .bar b {
    transition: transform 700ms ease-out;
    transition-delay: calc(var(--i) * 70ms);
  }
  .js .stats-card:not(.in) .bar b {
    transform: scaleX(0);
  }

  .js .drop {
    transform-box: fill-box;
    transition:
      transform 420ms cubic-bezier(0.34, 1.56, 0.64, 1),
      opacity 200ms ease-out;
    transition-delay: calc(var(--i) * 60ms);
  }
  .js .tray:not(.in) .drop {
    opacity: 0;
    transform: translateY(-24px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0ms !important;
    animation-duration: 0ms !important;
  }
}
