/* Colours come only from the brand palette (src/lib/palette.js); the
   palette check fails the build if a hex value here is not in it, or a
   named token drifts from its palette value. Anything else -- muted text,
   borders, glows -- is mixed from these with color-mix(), never a new hex. */
:root {
  --ember: #FF4B2B;
  --ember-dark: #D6331A;
  --ink: #17130F;
  --ink-deep: #100D0A;
  --bone: #F2ECE1;
  --bone-dim: #E6DACB;
  --pine: #1D6B45;
  --volt: #B6FF3C;
  --steel: #8C8577;
  --crimson: #C4123F;
  --surface-variant-dark: #241E17;
  --on-surface-variant-dark: #CFC3B2;

  /* Semantic roles, light. Bands below override these for their own background. */
  --bg: var(--bone);
  --surface: var(--bone-dim);
  --text: var(--ink);
  --text-muted: color-mix(in srgb, var(--ink) 78%, var(--bone));
  --link: var(--pine);
  --border: color-mix(in srgb, var(--ink) 22%, var(--bone));
  --accent: var(--ember);
  --on-accent: var(--ink);
  --focus: var(--ink);
  --mark-bg: var(--volt);
  --mark-text: var(--ink);

  /* Headings and the wordmark use Bricolage Grotesque (SIL Open Font Licence,
     see assets/fonts/OFL.txt), served from this site like everything else.
     Body text stays in the system font. */
  --font-display: "Bricolage Grotesque", "Helvetica Neue", Helvetica, Arial, "Liberation Sans", sans-serif;
  --font-brand: var(--font-display);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--ink-deep);
    --surface: var(--surface-variant-dark);
    --text: var(--bone);
    --text-muted: var(--on-surface-variant-dark);
    --link: var(--volt);
    --border: color-mix(in srgb, var(--bone) 24%, var(--ink-deep));
    --focus: var(--volt);
  }
}

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/bricolage-grotesque-700.woff2") format("woff2");
}

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/assets/fonts/bricolage-grotesque-800.woff2") format("woff2");
}

/* Full-width colour bands. Each one restates the roles above for its own
   background, so every component inside just uses the variables. */
.band--dark {
  --bg: var(--ink-deep);
  --surface: var(--surface-variant-dark);
  --text: var(--bone);
  --text-muted: var(--on-surface-variant-dark);
  --link: var(--volt);
  --border: color-mix(in srgb, var(--bone) 24%, var(--ink-deep));
  --focus: var(--volt);
}

/* A step up from the dark band, for sections that sit between two dark ones. */
.band--raised {
  --bg: var(--surface-variant-dark);
  --surface: color-mix(in srgb, var(--ink-deep) 45%, var(--surface-variant-dark));
  --text: var(--bone);
  --text-muted: var(--on-surface-variant-dark);
  --link: var(--volt);
  --border: color-mix(in srgb, var(--bone) 16%, var(--surface-variant-dark));
  --focus: var(--volt);
}

.band--bone {
  --bg: var(--bone);
  --surface: var(--bone-dim);
  --text: var(--ink);
  --text-muted: color-mix(in srgb, var(--ink) 80%, var(--bone));
  --link: var(--pine);
  --border: color-mix(in srgb, var(--ink) 22%, var(--bone));
  --focus: var(--ink);
}

.band--pine {
  --bg: var(--pine);
  --surface: color-mix(in srgb, var(--ink-deep) 30%, var(--pine));
  --text: var(--bone);
  --text-muted: var(--bone-dim);
  --link: var(--volt);
  --border: color-mix(in srgb, var(--bone) 35%, var(--pine));
  --focus: var(--volt);
}

.band--ember {
  --bg: var(--ember);
  --surface: var(--bone);
  --text: var(--ink);
  --text-muted: var(--ink);
  --link: var(--ink);
  --border: var(--ink);
  --focus: var(--ink);
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 1.0625rem;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--link);
  text-underline-offset: 0.18em;
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.prose {
  max-width: 42rem;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--accent);
  color: var(--on-accent);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  z-index: 20;
}

.skip:focus {
  top: 0.5rem;
}

/* Header and footer */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--ink-deep) 95%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  text-decoration: none;
}

.brand img {
  display: block;
}

/* The wordmark from the store banner: bold sans with a volt bar under the W. */
.wordmark {
  position: relative;
  display: inline-block;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  line-height: 1;
  padding-bottom: 0.2em;
}

.wordmark::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 34%;
  height: 0.11em;
  background: var(--volt);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a {
  display: inline-block;
  padding: 0.5rem 0;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

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

.site-header .nav {
  align-items: center;
  flex-wrap: nowrap;
}

.nav a.nav__cta {
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  background: var(--ember);
  color: var(--ink);
  font-weight: 800;
  white-space: nowrap;
}

.nav a.nav__cta:hover {
  background: var(--volt);
  color: var(--ink);
}

.nav a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

@media (max-width: 29.99rem) {
  .nav__wide {
    display: none;
  }
}

.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 3rem;
  color: var(--text-muted);
}

.site-footer a {
  color: var(--text);
}

.site-footer p {
  margin: 0.5rem 0;
}

.small {
  font-size: 0.875rem;
}

/* Type */
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.08;
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(2.3rem, 7.5vw, 4.25rem);
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(1.7rem, 4.5vw, 2.6rem);
  margin-top: 2.5rem;
  letter-spacing: -0.025em;
}

h3 {
  font-size: 1.3rem;
  letter-spacing: -0.01em;
}

.lede {
  font-size: 1.2rem;
  color: var(--text-muted);
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.accent {
  color: var(--volt);
}

/* Placeholders stay unmistakable until they are filled in. */
.placeholder {
  background: var(--mark-bg);
  color: var(--mark-text);
  padding: 0 0.3em;
  border-radius: 0.25rem;
}

/* Store buttons */
.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.store {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  border-radius: 0.75rem;
}

.store--live img {
  display: block;
  height: 3rem;
  width: auto;
}

.store--soon {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 0.35rem 1.25rem;
  background: var(--surface);
  border: 1px dashed var(--text-muted);
  color: var(--text);
  line-height: 1.25;
}

.store__name {
  font-weight: 700;
}

.store__state {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Bands on the home page */
.band {
  position: relative;
  overflow: clip;
  background: var(--bg);
  color: var(--text);
}

.band .wrap {
  position: relative;
}

.hero {
  padding: 3rem 0 5rem;
}

.hero__art {
  position: relative;
  padding-top: 2.5rem;
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hero__facts li {
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bone) 6%, transparent);
  font-size: 0.875rem;
  font-weight: 700;
}

.hero__facts li::before {
  content: "\2713\00a0";
  color: var(--volt);
}

.hero__inner {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.hero h1 {
  margin-top: 0;
}

.hero .lede {
  max-width: 34rem;
}

.hero__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(60% 70% at 78% 40%, color-mix(in srgb, var(--ember) 30%, transparent), transparent 70%);
}

.hero__paw {
  position: absolute;
  right: -8%;
  top: 4%;
  width: min(70vw, 34rem);
  opacity: 0.13;
  transform: rotate(-14deg);
}

/* A phone frame drawn in CSS around a screenshot. */
.phone {
  --frame: color-mix(in srgb, var(--bone) 30%, var(--ink-deep));
  position: relative;
  width: min(100%, 17rem);
  margin: 0 auto;
  padding: 0.3rem;
  border-radius: 2.5rem;
  /* Brushed-metal edge: light catches the top-left and bottom-right. */
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--bone) 55%, var(--ink-deep)),
    var(--frame) 30%,
    var(--ink-deep) 55%,
    color-mix(in srgb, var(--bone) 40%, var(--ink-deep))
  );
  box-shadow:
    0 2.2rem 4rem color-mix(in srgb, var(--ink-deep) 60%, transparent),
    inset 0 0 0 1px color-mix(in srgb, var(--bone) 25%, transparent);
}

/* Side buttons: volume on the left, power on the right. */
.phone::before,
.phone::after {
  content: "";
  position: absolute;
  width: 0.2rem;
  border-radius: 0.1rem;
  background: var(--frame);
}

.phone::before {
  left: -0.17rem;
  top: 19%;
  height: 3.2rem;
}

.phone::after {
  right: -0.17rem;
  top: 24%;
  height: 2.2rem;
}

.phone__screen {
  position: relative;
  overflow: hidden;
  border: 0.4rem solid var(--ink-deep);
  border-radius: 2.2rem;
  background: var(--bone);
  color: var(--ink);
}

.phone__status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 1.1rem 0.3rem 1.3rem;
  background: var(--bone);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
}

.phone__icons {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
}

.phone__camera {
  position: absolute;
  top: 0.5rem;
  left: 50%;
  width: 0.62rem;
  height: 0.62rem;
  margin-left: -0.31rem;
  border-radius: 50%;
  background: var(--ink-deep);
  box-shadow: 0 0 0 0.12rem color-mix(in srgb, var(--bone) 12%, var(--ink-deep));
}

.phone img {
  display: block;
  width: 100%;
  height: auto;
}

/* Parallax banners: a full-width band whose background moves more slowly
   than the page. No JavaScript, two mechanisms so it works nearly everywhere:
   with a mouse, the background is fixed to the viewport (supported by every
   desktop browser); on touch devices it is a scroll-driven animation where the
   browser supports one, and simply stays still where it doesn't. */
.banner {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 78vh;
  padding: 5rem 0;
  view-timeline: --banner block;
}

.banner__bg {
  position: absolute;
  inset: -22% 0;
  z-index: -1;
  background-color: var(--ink-deep);
  /* A vector image, so it stays sharp however far cover scales it. */
  background-image: url("/assets/img/banner-paws.svg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.banner > .wrap {
  width: 100%;
}

.banner__inner {
  max-width: 44rem;
}

.banner h2 {
  margin-top: 0;
  font-size: clamp(2rem, 6vw, 3.75rem);
  letter-spacing: -0.02em;
}

.banner p {
  font-size: 1.2rem;
  color: var(--text-muted);
}

.banner .accent {
  color: var(--volt);
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .banner__bg {
    inset: 0;
    background-attachment: fixed;
  }
}

.show {
  padding: 5.5rem 0;
}

.show__inner {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.show h2 {
  margin-top: 0;
}

.show .rise > p {
  color: var(--text-muted);
  max-width: 32rem;
}

.ticks {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
}

.ticks li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.9rem;
  height: 0.5rem;
  border-left: 3px solid var(--link);
  border-bottom: 3px solid var(--link);
  transform: rotate(-45deg) translateY(-50%);
}

.pledge {
  padding: 4.5rem 0;
}

.pledge h2 {
  margin-top: 0;
}

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

.pledge__grid li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 1.5rem;
}

.pledge__grid strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  line-height: 1.2;
  margin-bottom: 0.4rem;
  color: var(--link);
}

.pledge__grid span {
  color: var(--text-muted);
}

.devices {
  padding: 4.5rem 0 5rem;
}

.devices h2 {
  margin-top: 0;
}

.cta {
  padding: 4.5rem 0;
  text-align: center;
}

.cta h2 {
  margin-top: 0;
}

.cta .stores {
  justify-content: center;
}

/* Cards, legal and support pages */
.page {
  padding-top: 2.5rem;
}

.page ul,
.page ol {
  padding-left: 1.25rem;
}

.page li {
  margin-bottom: 0.5rem;
}

.steps {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 1rem;
  padding: 0.75rem 1.25rem;
  margin: 1rem 0;
}

.table-scroll {
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  width: 100%;
  margin: 1rem 0;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--border);
}

details {
  border-bottom: 1px solid var(--border);
  padding: 0.9rem 0;
}

summary {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  flex: none;
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--link);
  transition: transform 0.2s ease;
}

details[open] > summary::after {
  transform: rotate(45deg);
}

/* Linked answers and sections clear the sticky header, and a linked answer
   is marked so it's easy to spot. */
[id] {
  scroll-margin-top: 5rem;
}

details:target > summary {
  color: var(--link);
}

details p {
  margin: 0.6rem 0 0;
}


/* A phone notification, drawn in HTML so its words can be checked against the
   reminder the app really sends (see scripts/checks/home.js). */
.notif {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 0.7rem;
  align-items: start;
  width: min(100%, 21.5rem);
  padding: 0.75rem 0.9rem;
  border-radius: 1.1rem;
  background: color-mix(in srgb, var(--bone) 94%, transparent);
  color: var(--ink);
  box-shadow:
    0 1.2rem 2.5rem color-mix(in srgb, var(--ink-deep) 55%, transparent),
    inset 0 0 0 1px color-mix(in srgb, var(--bone) 60%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  line-height: 1.3;
  text-align: left;
}

.notif p {
  margin: 0;
}

.notif__icon {
  display: block;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.6rem;
}

.notif__meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--ink) 80%, var(--bone));
}

.notif__title {
  font-weight: 800;
  font-size: 0.95rem;
}

.notif__text {
  font-size: 0.85rem;
  color: color-mix(in srgb, var(--ink) 85%, var(--bone));
}

/* Floats over the empty lower part of the home screenshot, beside the meal
   it is about. */
.notif--hero {
  position: absolute;
  z-index: 2;
  bottom: -3rem;
  left: 50%;
  width: min(94%, 21rem);
  transform: translateX(-50%) rotate(-2deg);
}

/* How it works */
.how {
  padding: 4.5rem 0;
}

.how h2 {
  margin-top: 0;
  max-width: 36rem;
}

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

.how__step {
  position: relative;
  overflow: hidden;
  padding: 1.6rem 1.5rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  background: var(--surface);
}

.how__step h3 {
  margin: 1rem 0 0.4rem;
}

.how__step p {
  margin: 0;
  color: var(--text-muted);
}

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

.how__num {
  position: absolute;
  top: -0.9rem;
  right: 0.9rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 6.5rem;
  line-height: 1;
  color: color-mix(in srgb, var(--bone) 7%, transparent);
  pointer-events: none;
}

.how__icon {
  display: block;
  width: 2.9rem;
  height: 2.9rem;
  color: var(--ember);
}

.how__step p.code {
  display: flex;
  gap: 0.3rem;
  margin-top: 1rem;
}

.code span {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.6rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--ink-deep);
  color: var(--volt);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
}

/* Screens that are mostly empty below the fold fade out instead. */
.phone--crop {
  height: 24rem;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, var(--ink) 60%, transparent 98%);
  mask-image: linear-gradient(to bottom, var(--ink) 60%, transparent 98%);
}

/* "Try it": a real checkbox styled as the app's Mark fed button. */
.demo {
  max-width: 23rem;
  margin: 0 auto;
}

.demo p {
  margin: 0;
}

.demo__label {
  display: inline-block;
  margin-bottom: 0.9rem !important;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: var(--volt);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.demo__notif {
  margin-bottom: 0.9rem;
  transition: opacity 0.35s ease, transform 0.35s ease, filter 0.35s ease;
}

.demo__meal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  border-radius: 1.1rem;
  background: var(--bone-dim);
  color: var(--ink);
  box-shadow: 0 1rem 2rem color-mix(in srgb, var(--ink-deep) 45%, transparent);
  transition: background-color 0.3s ease;
}

.demo__meal-name {
  font-weight: 800;
  font-size: 1.1rem;
}

.demo__meal-time {
  font-size: 0.9rem;
  color: color-mix(in srgb, var(--ink) 85%, var(--bone));
}

.demo__fed {
  display: none;
  margin-top: 0.2rem !important;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--pine);
}

.demo__btn {
  position: relative;
  flex: none;
  display: inline-grid;
  place-items: center;
  min-width: 6.5rem;
  min-height: 2.75rem;
  padding: 0 1.1rem;
  border-radius: 999px;
  background: var(--ember);
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.15s ease;
}

.demo__btn:hover {
  transform: translateY(-1px);
}

.demo__btn:active {
  transform: scale(0.96);
}

.demo__btn:has(.demo__toggle:focus-visible) {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.demo__toggle {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.demo__btn-on,
.demo__status-on {
  display: none;
}

.demo__status {
  min-height: 3.2rem;
  margin-top: 0.9rem !important;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.demo:has(.demo__toggle:checked) .demo__btn {
  background: var(--pine);
  color: var(--bone);
}

.demo:has(.demo__toggle:checked) .demo__btn-off,
.demo:has(.demo__toggle:checked) .demo__status-off {
  display: none;
}

.demo:has(.demo__toggle:checked) .demo__btn-on,
.demo:has(.demo__toggle:checked) .demo__status-on,
.demo:has(.demo__toggle:checked) .demo__fed {
  display: block;
}

.demo:has(.demo__toggle:checked) .demo__btn-on::before {
  content: "\2713\00a0";
}

.demo:has(.demo__toggle:checked) .demo__meal {
  background: color-mix(in srgb, var(--pine) 14%, var(--bone));
}

.demo:has(.demo__toggle:checked) .demo__notif {
  opacity: 0.35;
  filter: grayscale(1);
  transform: scale(0.94) translateY(0.3rem);
}

.demo:has(.demo__toggle:checked) .demo__status-on {
  color: var(--text);
  font-weight: 700;
}

/* Android and iPhone: one code joins them both. */
.devices .prose {
  margin: 0 auto;
}

.join-art {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "code code"
    "android iphone";
  justify-items: center;
  gap: 1.5rem 1rem;
  max-width: 46rem;
  margin: 2.75rem auto 0;
}

.join-art p {
  margin: 0;
}

.join-art__code {
  grid-area: code;
  position: relative;
  padding: 0.7rem 1.3rem 0.8rem;
  border: 2px dashed color-mix(in srgb, var(--volt) 55%, var(--ink-deep));
  border-radius: 1rem;
  background: var(--ink-deep);
  color: var(--volt);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.9rem;
  letter-spacing: 0.14em;
  line-height: 1.1;
  text-align: center;
}

.join-art__label {
  display: block;
  margin-bottom: 0.2rem;
  font-family: system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.mini {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  max-width: 11.5rem;
  aspect-ratio: 9 / 17;
  padding: 1rem 0.75rem;
  border: 0.35rem solid var(--ink-deep);
  border-radius: 1.9rem;
  background: var(--bone);
  color: var(--ink);
  text-align: center;
  box-shadow:
    0 0 0 0.2rem color-mix(in srgb, var(--bone) 30%, var(--ink-deep)),
    0 1.6rem 3rem color-mix(in srgb, var(--ink-deep) 60%, transparent);
}

.mini--android {
  grid-area: android;
  transform: rotate(-4deg);
}

.mini--iphone {
  grid-area: iphone;
  transform: rotate(4deg);
}

.mini__camera,
.mini__island {
  position: absolute;
  top: 0.55rem;
  left: 50%;
  background: var(--ink-deep);
}

.mini__camera {
  width: 0.55rem;
  height: 0.55rem;
  margin-left: -0.275rem;
  border-radius: 50%;
}

.mini__island {
  width: 3.4rem;
  height: 0.95rem;
  margin-left: -1.7rem;
  border-radius: 999px;
}

.mini__title {
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.25;
}

.mini__field {
  padding: 0.45rem 0.3rem;
  border-radius: 0.6rem;
  background: var(--bone-dim);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.16em;
}

.mini__field--name {
  font-family: inherit;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0;
  text-align: left;
  padding-left: 0.7rem;
}

.mini__ok {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--pine);
}

/* Questions */
.faq {
  padding: 4.5rem 0;
}

.faq h2 {
  margin-top: 0;
}

.faq summary {
  font-size: 1.1rem;
}

.faq__more {
  margin-top: 1.5rem;
  font-weight: 700;
}

@media (min-width: 48rem) {
  .hero {
    padding: 4.5rem 0 5rem;
  }

  .hero__art {
    padding-top: 0;
  }

  .notif--hero {
    bottom: -2.25rem;
    left: -2.5rem;
    transform: rotate(-3deg);
  }

  .how__steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .join-art {
    grid-template-columns: 1fr auto 1fr;
    grid-template-areas: "android code iphone";
    align-items: center;
    gap: 2.5rem;
  }

  /* Dashed links from the code out to each phone. */
  .join-art__code::before,
  .join-art__code::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 2.25rem;
    border-top: 2px dashed color-mix(in srgb, var(--volt) 55%, var(--ink-deep));
  }

  .join-art__code::before {
    right: 100%;
  }

  .join-art__code::after {
    left: 100%;
  }

  .hero__inner,
  .show__inner {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }

  .show--flip .show__art {
    order: -1;
  }

  .pledge__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .phone {
    width: 17rem;
  }

}

/* Motion: pure CSS, driven by scroll position, and only where the browser
   supports it and the visitor hasn't asked for less movement. Without either,
   everything above simply sits still. */
@keyframes drift-slow {
  from { transform: translateY(2.5rem); }
  to { transform: translateY(-2.5rem); }
}

@keyframes drift-fast {
  from { transform: translateY(4rem); }
  to { transform: translateY(-3rem); }
}

@keyframes drift-back {
  from { transform: translateY(-2rem) rotate(-14deg); }
  to { transform: translateY(8rem) rotate(-6deg); }
}

@keyframes banner-drift {
  from { transform: translateY(14%); }
  to { transform: translateY(-14%); }
}

@keyframes notif-in {
  from { opacity: 0; translate: 0 -1.25rem; }
  to { opacity: 1; translate: 0 0; }
}

@media (prefers-reduced-motion: no-preference) {
  .notif--hero {
    animation: notif-in 0.7s cubic-bezier(0.2, 0.9, 0.3, 1.2) 0.5s both;
  }

  .demo:has(.demo__toggle:checked) .demo__btn {
    animation: pop 0.35s ease;
  }
}

@keyframes pop {
  40% { transform: scale(1.1); }
}

@keyframes rise {
  from { transform: translateY(2.5rem); }
  to { transform: translateY(0); }
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero__paw {
      animation: drift-back linear both;
      animation-timeline: scroll(root);
      animation-range: 0 90vh;
    }

    .parallax-slow,
    .parallax-fast {
      will-change: transform;
      animation-timeline: view();
      animation-fill-mode: both;
      animation-timing-function: linear;
    }

    .parallax-slow {
      animation-name: drift-slow;
    }

    .parallax-fast {
      animation-name: drift-fast;
    }

    @media (hover: none), (pointer: coarse) {
      .banner__bg {
        animation: banner-drift linear both;
        animation-timeline: --banner;
      }
    }

    .rise {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 55%;
    }
  }
}
