/* alright.pet home: the app's own look (PetHealthHelper/Views/Theme.swift), light and dark. */

@font-face {
  font-family: "Fraunces";
  src: url("/assets/fraunces.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/assets/fraunces-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --canvas: #f6e7b8;
  --card: #fff8e6;
  --well: #f0dea9;
  --ink: #3b2a1e;
  --muted: #6e5a47;
  --hair: rgba(59, 42, 30, 0.1);
  --ember: #cb872e;
  --ember-ink: #9a5f12;
  --alarm: #b5473a;
  --sage: #8fa97c;
  --sage-ink: #4e6b3f;
  --sage-wash: rgba(143, 169, 124, 0.2);
  --ember-wash: rgba(203, 135, 46, 0.16);
  --alarm-wash: rgba(181, 71, 58, 0.1);
  --bubble: #3b2a1e;
  --bubble-ink: #f6e7b8;
  --night-top: #231848;
  --night-mid: #33206a;
  --night-low: #3d3b9e;
  --night-ink: #fff3d6;
  --night-muted: #c9bde8;
  --walk-top: #d4e8f5;
  --walk-mid: #e9f0d9;
  --shadow: 0 18px 40px -18px rgba(59, 42, 30, 0.45);
  --card-shadow: 0 12px 22px rgba(0, 0, 0, 0.14);
  --rim: rgba(255, 255, 255, 0.62);
  --display: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --gutter: clamp(20px, 5vw, 48px);
  --max: 1160px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #1e1711;
    --card: #2f251b;
    --well: #261d15;
    --ink: #f6e7b8;
    --muted: #b3a084;
    --hair: rgba(246, 231, 184, 0.12);
    --ember: #e8a54b;
    --ember-ink: #f2b868;
    --alarm: #de6b5c;
    --sage: #a2bd8e;
    --sage-ink: #b3cc9e;
    --sage-wash: rgba(162, 189, 142, 0.16);
    --ember-wash: rgba(232, 165, 75, 0.14);
    --alarm-wash: rgba(222, 107, 92, 0.14);
    --bubble: #f6e7b8;
    --bubble-ink: #2a2017;
    --night-top: #120d24;
    --night-mid: #1b1440;
    --night-low: #25266b;
    --walk-top: #172036;
    --walk-mid: #1d1d22;
    --shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.7);
    --card-shadow: 0 12px 26px rgba(0, 0, 0, 0.4);
    --rim: rgba(255, 248, 230, 0.16);
    color-scheme: dark;
  }
}

/* MARK: Base */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 18px/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 500;
  font-variation-settings: "SOFT" 50, "WONK" 0;
  letter-spacing: -0.015em;
  text-wrap: balance;
  margin: 0;
}
h2 { font-size: clamp(34px, 5.2vw, 58px); line-height: 1.04; }
h2 em, h1 em { font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1; }
p { margin: 0; text-wrap: pretty; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 700 13px/1 var(--text);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ember-ink);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 14px;
  height: 12px;
  background: currentColor;
  /* A pixel heart, the Pet pal's own. */
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 6'%3E%3Cpath d='M1 0h2v1H4V0h2v1h1v2H6v1H5v1H4v1H3V5H2V4H1V3H0V1h1Z'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 6'%3E%3Cpath d='M1 0h2v1H4V0h2v1h1v2H6v1H5v1H4v1H3V5H2V4H1V3H0V1h1Z'/%3E%3C/svg%3E") center / contain no-repeat;
  image-rendering: pixelated;
}

.pip-canvas { position: fixed; left: 0; top: 0; pointer-events: none; z-index: 60; }
.pip-word { transition: none; }

/* MARK: Header */

.top {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background: color-mix(in srgb, var(--canvas) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.top.scrolled { border-bottom-color: var(--hair); }
.top-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.mark { width: 34px; height: 34px; color: var(--ink); }
.wordmark { font: 500 26px/1 var(--display); font-variation-settings: "SOFT" 50; letter-spacing: -0.01em; }
.wordmark .dot, .hero-title .q, .get .q { color: var(--ember); }
.nav { display: flex; gap: 26px; margin-left: auto; font-size: 15px; color: var(--muted); }
.nav a { text-decoration: none; }
.nav a:hover { color: var(--ink); }
.pill {
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--canvas);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
@media (max-width: 860px) {
  .nav { display: none; }
  .pill { margin-left: auto; }
}

/* MARK: Shared pieces */

.band { padding-block: clamp(76px, 9.5vw, 132px); }
.grid {
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 7vw, 96px);
}
.grid.flip > :first-child { order: 0; }
.copy { display: grid; gap: 18px; justify-items: start; max-width: 540px; }
.copy > p:not(.eyebrow) { color: var(--muted); font-size: 19px; }
.copy .eyebrow { margin-bottom: 0; }
.copy h2 { margin-bottom: 6px; }
@media (max-width: 860px) {
  .grid { grid-template-columns: minmax(0, 1fr); }
  .grid.flip > :first-child { order: 2; }
  .copy { max-width: none; }
}

.scene-card {
  position: relative;
  width: min(100%, 460px);
  justify-self: center;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: var(--card-shadow), 0 0 0 6px var(--rim);
  background: var(--card);
  aspect-ratio: 1;
}
.scene-card img { width: 100%; height: 100%; image-rendering: pixelated; }

/* The intro cards' float: a slow, even bob. */
@keyframes float { 0%, 100% { transform: translateY(-6px); } 50% { transform: translateY(6px); } }
.float { animation: float 7s ease-in-out infinite; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.button.primary { background: var(--ink); color: var(--canvas); box-shadow: var(--shadow); }
.button.ghost { border: 1.5px solid var(--hair); color: var(--ink); }
.button:hover { transform: translateY(-1px); }

.verdict {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 20px;
  position: relative;
}
.verdict .icon { width: 22px; height: 22px; flex: none; margin-top: 1px; }
.verdict span { display: grid; gap: 2px; }
.verdict b { font-size: 16px; }
.verdict small { font-size: 15px; color: var(--muted); }
.verdict.sage { background: var(--sage-wash); border: 1px solid color-mix(in srgb, var(--sage) 40%, transparent); color: var(--sage-ink); }
.verdict.ember { background: var(--ember-wash); border: 1px solid color-mix(in srgb, var(--ember) 40%, transparent); color: var(--ember-ink); }
.verdict.alarm { background: var(--alarm-wash); border: 1px solid color-mix(in srgb, var(--alarm) 45%, transparent); color: var(--alarm); }
.verdict.ink { background: color-mix(in srgb, var(--ink) 7%, transparent); border: 1px solid var(--hair); color: var(--ink); }

/* Pip's bloom at a verdict: a ring of the verdict's colour opening and fading (PipShowcase). */
.pip-bloom::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid var(--sage);
  animation: bloom 1.1s cubic-bezier(0.2, 0.7, 0.3, 1) both;
  pointer-events: none;
}
.pip-bloom.pip-calm::after { border-color: var(--ember); animation: steady 2.4s ease-in-out both; }
@keyframes bloom { from { inset: -2px; opacity: 0.9; } to { inset: -12px; opacity: 0; } }
@keyframes steady { 0% { box-shadow: 0 0 0 0 rgba(255, 170, 77, 0); opacity: 0; } 30% { box-shadow: 0 0 22px 2px rgba(255, 170, 77, 0.55); opacity: 1; } 100% { box-shadow: 0 0 22px 2px rgba(255, 170, 77, 0); opacity: 0; } }

/* Reveal as it scrolls in, only when scripts run, so the page is whole without them. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.3, 1); }
.js .reveal.in { opacity: 1; transform: none; }

/* MARK: Hero */

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(40px, 7vw, 96px) var(--gutter) clamp(72px, 9vw, 130px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
}
.hero-copy { display: grid; justify-items: start; gap: 0; }
.hero-title {
  font-size: clamp(50px, 7.6vw, 108px);
  line-height: 0.96;
  letter-spacing: -0.028em;
  font-variation-settings: "SOFT" 50, "WONK" 0, "opsz" 144;
  margin: 4px 0 26px;
}
.hero-title em { display: block; padding-right: 0.02em; }
.lede { font-size: clamp(20px, 2vw, 23px); line-height: 1.55; color: var(--ink); max-width: 30em; margin-bottom: 30px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.note { margin-top: 18px; font-size: 15px; color: var(--muted); }
.hero-art { margin: 0; display: grid; justify-items: center; position: relative; }
.hero-art .scene-card { width: min(100%, 440px); }
.hero-art .verdict {
  width: min(92%, 380px);
  margin-top: -40px;
  background: color-mix(in srgb, var(--card) 88%, var(--sage));
  box-shadow: var(--shadow);
  z-index: 2;
}
@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding-top: 28px; }
}

/* MARK: Consult demo */

.ask, .urgency, .story, .private { background: var(--well); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px 7px 8px;
  border-radius: 999px;
  border: 1.5px solid var(--hair);
  background: var(--card);
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.chip img { width: 30px; height: 30px; image-rendering: pixelated; }
.chip:hover { transform: translateY(-1px); }
.chip[aria-pressed="true"] { border-color: var(--ink); background: var(--canvas); }

.phone {
  justify-self: center;
  width: min(100%, 390px);
  padding: 11px;
  border-radius: 54px;
  background: #221812;
  box-shadow: 0 40px 70px -30px rgba(40, 25, 15, 0.6), inset 0 0 0 1.5px rgba(255, 255, 255, 0.08);
}
.screen {
  border-radius: 44px;
  background: var(--canvas);
  height: 640px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  position: relative;
}
.screen-top { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 46px 16px 12px; }
.screen-top::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 50%;
  width: 96px;
  height: 26px;
  margin-left: -48px;
  border-radius: 20px;
  background: #0d0906;
}
.avatar { width: 34px; height: 34px; border-radius: 10px; background: #dfe6c9; display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06); }
.avatar img { width: 30px; height: 30px; image-rendering: pixelated; }
.screen-name { font: 500 21px/1 var(--display); font-variation-settings: "SOFT" 50; }
.thread {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 14px 14px;
  overflow: hidden;
  justify-content: flex-start;
  font-size: 15.5px;
  line-height: 1.45;
}
.bubble {
  align-self: flex-end;
  max-width: 86%;
  background: var(--bubble);
  color: var(--bubble-ink);
  padding: 11px 15px;
  border-radius: 20px 20px 6px 20px;
}
.reply {
  background: var(--card);
  padding: 11px 15px;
  border-radius: 20px;
  border: 1px solid var(--hair);
}
.thread .verdict { padding: 11px 14px; border-radius: 18px; }
.thread .verdict b { font-size: 15px; }
.thread .verdict small { font-size: 14px; }
.thread .verdict .icon { width: 19px; height: 19px; }
.thread > * { animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.3, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.typing { align-self: flex-start; display: flex; gap: 5px; padding: 14px 16px; border-radius: 20px; background: var(--card); border: 1px solid var(--hair); }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: dot 1.2s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: 0.14s; }
.typing i:nth-child(3) { animation-delay: 0.28s; }
@keyframes dot { 0%, 100% { opacity: 0.3; } 45% { opacity: 1; } }
.vets { display: grid; gap: 6px; }
.vet { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--hair); border-radius: 16px; padding: 9px 12px; font-size: 14px; }
.vet span { display: grid; flex: 1; }
.vet small { color: var(--muted); }
.vet em { font-style: normal; font-weight: 600; font-size: 13px; background: var(--alarm); color: #fff; border-radius: 999px; padding: 5px 11px; }
.composer { display: flex; align-items: center; gap: 8px; padding: 10px 12px 18px; min-width: 0; }
.composer .plus { width: 36px; height: 36px; border-radius: 50%; background: var(--card); display: grid; place-items: center; font-size: 22px; }
.composer .field { flex: 1; min-width: 0; background: var(--card); border-radius: 999px; padding: 9px 14px; color: var(--muted); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.composer .field.typed { color: var(--ink); text-overflow: clip; }
.composer .send { width: 36px; height: 36px; border-radius: 50%; background: color-mix(in srgb, var(--ink) 25%, transparent); }
.demo-note { max-width: var(--max); margin: 28px auto 0; padding-inline: var(--gutter); font-size: 14px; color: var(--muted); text-align: right; }
@media (max-width: 860px) { .demo-note { text-align: center; } .screen { height: 660px; } .thread { font-size: 14.5px; gap: 7px; } .reply, .bubble { padding: 10px 13px; } }

/* MARK: Meet Pip */

.pip-strip {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(96px, 12vw, 170px) var(--gutter);
  text-align: center;
  display: grid;
  justify-items: center;
}
.pip-line {
  font: 400 clamp(28px, 3.6vw, 44px)/1.3 var(--display);
  font-variation-settings: "SOFT" 60, "opsz" 72;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.pip-hint { margin-top: 30px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; color: var(--muted); font-size: 15px; }
.pip-glow {
  position: relative;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(77, 148, 255, 0.12);
  color: #2f5fd0;
  font-weight: 600;
}
@media (prefers-color-scheme: dark) { .pip-glow { background: rgba(255, 214, 107, 0.14); color: #ffd66b; } }
.pip-glow.pip-bloom::after { border-color: #5b8cff; }
.hover-only { display: none; }
@media (hover: hover) and (pointer: fine) { .hover-only { display: inline; } }

/* MARK: Urgency */

.urgency-art { overflow: visible; }
.urgency-art img { border-radius: 34px; }
.orb {
  position: absolute;
  top: 15.9%;
  width: 12.1%;
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease, box-shadow 0.5s ease;
}
.orb[data-orb="green"] { left: 24.3%; --glow: 120, 220, 150; }
.orb[data-orb="yellow"] { left: 39.1%; --glow: 255, 214, 90; }
.orb[data-orb="red"] { left: 54.5%; --glow: 255, 110, 95; }
.orb.on {
  opacity: 1;
  background: radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.55), rgba(var(--glow), 0.25) 55%, transparent 72%);
  box-shadow: 0 0 34px 12px rgba(var(--glow), 0.55);
}
.ladder { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; width: 100%; }
.ladder li {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid var(--hair);
  background: color-mix(in srgb, var(--card) 70%, transparent);
  transition: background 0.35s ease, border-color 0.35s ease, transform 0.35s ease;
  cursor: default;
}
.ladder li span:last-child { display: grid; gap: 1px; }
.ladder b { font-size: 17px; }
.ladder small { color: var(--muted); font-size: 15px; }
.ladder .ico { width: 42px; height: 42px; flex: none; border-radius: 13px; display: grid; place-items: center; }
.ladder .ico svg { width: 22px; height: 22px; }
.ladder [data-level="monitor"] .ico { background: var(--sage-wash); color: var(--sage-ink); }
.ladder [data-level="routine"] .ico { background: color-mix(in srgb, var(--ink) 8%, transparent); color: var(--ink); }
.ladder [data-level="soon"] .ico { background: var(--ember-wash); color: var(--ember-ink); }
.ladder [data-level="emergency"] .ico { background: var(--alarm-wash); color: var(--alarm); }
.ladder li.on { background: var(--card); border-color: color-mix(in srgb, var(--ink) 22%, transparent); transform: translateX(6px); }
@media (max-width: 860px) { .ladder li.on { transform: none; } }

/* MARK: Night band (emergencies) */

.night {
  position: relative;
  background: linear-gradient(172deg, var(--night-top) 0%, var(--night-mid) 45%, var(--night-low) 100%);
  color: var(--night-ink);
  padding-block: clamp(96px, 12vw, 160px);
  overflow: hidden;
  isolation: isolate;
}
.night .copy > p:not(.eyebrow), .night .ticks { color: var(--night-muted); }
.night .eyebrow { color: #ffc978; }
.stars { position: absolute; inset: 0; z-index: -1; }
.star { position: absolute; width: 3px; height: 3px; background: #fff7d6; box-shadow: 3px 0 #fff7d6, -3px 0 #fff7d6, 0 3px #fff7d6, 0 -3px #fff7d6; opacity: 0.3; animation: twinkle 4s ease-in-out infinite; }
.star.small { box-shadow: none; }
@keyframes twinkle { 0%, 100% { opacity: 0.18; } 50% { opacity: 0.95; } }
.ticks { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 14px; font-size: 18px; }
.ticks li { display: flex; gap: 12px; }
.ticks li::before { content: ""; flex: none; width: 10px; height: 10px; margin-top: 9px; background: #ffc978; box-shadow: 0 0 12px rgba(255, 201, 120, 0.8); }
.em-stack { display: grid; justify-items: center; }
.em-art { width: min(100%, 400px); }
.em-card {
  width: min(94%, 400px);
  margin-top: -56px;
  position: relative;
  z-index: 2;
  background: var(--card);
  color: var(--ink);
  border-radius: 24px;
  padding: 16px;
  display: grid;
  gap: 8px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
}
.em-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #fff;
  background: var(--alarm);
  border-radius: 14px;
  padding: 10px 14px;
}
.em-head .icon { width: 20px; height: 20px; }
.em-card > p { font-size: 16px; line-height: 1.5; padding: 4px 4px 6px; }
.em-row { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 16px; background: var(--canvas); font-size: 15px; }
.em-row > span:first-child { display: grid; flex: 1; }
.em-row small { color: var(--muted); }
.em-btn { font-size: 13px; font-weight: 700; padding: 6px 11px; border-radius: 999px; background: color-mix(in srgb, var(--alarm) 14%, transparent); color: var(--alarm); }
.em-note { font-size: 13px !important; color: var(--muted); text-align: center; padding: 2px 0 0 !important; }

/* MARK: Scan (the waiting room) */


.clinic {
  margin: 0;
  justify-self: center;
  width: min(100%, 360px);
  aspect-ratio: 144 / 252;
  position: relative;
  border-radius: 40px;
  overflow: hidden;
  background: #56405f;
  box-shadow: 0 40px 70px -30px rgba(40, 25, 15, 0.6), 0 0 0 10px #221812;
}
.clinic canvas { width: 100%; height: 100%; image-rendering: pixelated; display: block; }
.dialog {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 14px;
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  background: #fffbec;
  color: #56405f;
  border-radius: 10px;
  border: 3px solid #56405f;
  outline: 2px solid #56405f;
  outline-offset: -8px;
  font-family: var(--mono);
}
.dialog b { font-size: 14px; display: flex; justify-content: space-between; gap: 8px; }
.dialog > span { font-size: 12px; font-weight: 500; opacity: 0.85; }
.blink { color: #ff4a63; font-size: 11px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.text-button {
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

/* MARK: Story */

.timeline { list-style: none; margin: 6px 0 0; padding: 0; width: 100%; display: grid; gap: 0; position: relative; }
.timeline li {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--hair);
  font-size: 16px;
}
.timeline time { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.tag { font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 8%, transparent); white-space: nowrap; }
.tag.sage { background: var(--sage-wash); color: var(--sage-ink); }
.aside { font-size: 16px !important; }
.aside b { color: var(--ink); }

/* MARK: Pet pal */

.pal { padding-bottom: clamp(40px, 6vw, 80px); }
.try { font: italic 400 20px/1.3 var(--display); color: var(--ember-ink) !important; }
@property --shell { syntax: "<color>"; inherits: true; initial-value: #e4a88f; }
.egg-stage { display: grid; justify-items: center; gap: 14px; }
.egg {
  --shell: #e4a88f;
  position: relative;
  width: min(78vw, 300px);
  aspect-ratio: 0.8;
  border-radius: 50% 50% 47% 47% / 58% 58% 42% 42%;
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0) 34%),
    radial-gradient(circle, color-mix(in srgb, var(--shell) 55%, #3b2a1e) 1.6px, transparent 2.2px) 0 0 / 23px 29px,
    radial-gradient(circle, color-mix(in srgb, var(--shell) 65%, #3b2a1e) 1.2px, transparent 1.8px) 11px 13px / 31px 23px,
    var(--shell);
  box-shadow:
    inset -16px -22px 34px rgba(59, 42, 30, 0.2),
    inset 12px 14px 26px rgba(255, 255, 255, 0.45),
    0 34px 60px -26px rgba(59, 42, 30, 0.55);
  display: grid;
  justify-items: center;
  align-content: start;
  padding-top: 25%;
  transition: --shell 0.7s ease;
  animation: float 7s ease-in-out infinite;
}
.egg.bump { animation: bump 0.35s ease; }
@keyframes bump { 30% { transform: scale(1.03, 0.97); } 70% { transform: scale(0.99, 1.01); } }
.toe {
  position: absolute;
  top: -5%;
  width: 16%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: color-mix(in srgb, var(--shell) 80%, #b5473a);
  box-shadow: inset -3px -4px 6px rgba(59, 42, 30, 0.2), inset 3px 3px 6px rgba(255, 255, 255, 0.4);
}
.toe:nth-child(1) { left: 22%; top: 2%; }
.toe:nth-child(2) { left: 42%; top: -5%; }
.toe:nth-child(3) { left: 62%; top: 2%; }
.egg-screen {
  position: relative;
  width: 64%;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  padding: 6px;
  background: color-mix(in srgb, var(--shell) 55%, #3b2a1e);
  box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.35), 0 1px 0 rgba(255, 255, 255, 0.5);
}
.egg-screen canvas { width: 100%; height: 100%; border-radius: 10px; image-rendering: pixelated; display: block; background: #c7d1b0; }
.glass { position: absolute; inset: 6px; border-radius: 10px; background: linear-gradient(155deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0) 42%); pointer-events: none; }
.egg-label {
  margin-top: 5%;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 6px;
  background: #fbf5e6;
  color: #4d3a2a;
  font: 700 11px/1.4 var(--text);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}
.egg-label svg { width: 11px; height: 10px; color: #e2495b; image-rendering: pixelated; }
.egg-buttons { margin-top: 7%; display: flex; gap: 9%; width: 70%; justify-content: center; }
.candy {
  width: 22%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: none;
  padding: 0;
  cursor: pointer;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0) 45%), var(--c);
  box-shadow: 0 4px 0 color-mix(in srgb, var(--c) 60%, #3b2a1e), 0 7px 12px rgba(59, 42, 30, 0.3), inset 0 -3px 6px rgba(0, 0, 0, 0.15);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.candy:nth-child(1) { --c: #fa9e33; }
.candy:nth-child(2) { --c: #42a8b8; }
.candy:nth-child(3) { --c: #ed5c61; }
.candy:active, .candy.down { transform: translateY(3px); box-shadow: 0 1px 0 color-mix(in srgb, var(--c) 60%, #3b2a1e), 0 3px 6px rgba(59, 42, 30, 0.3), inset 0 -2px 4px rgba(0, 0, 0, 0.15); }
.egg-legend { display: flex; gap: 26px; font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: 0.04em; }
.sound { border: none; background: none; font-size: 13px; color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.parade { margin-top: clamp(56px, 7vw, 96px); overflow: hidden; }
.parade-title { max-width: var(--max); margin: 0 auto 18px; padding-inline: var(--gutter); font: 500 22px/1.3 var(--display); font-variation-settings: "SOFT" 50; }
.parade-title span { font-style: italic; color: var(--ember-ink); }
.parade-row { overflow: hidden; padding-block: 6px; mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.parade-track { display: flex; gap: 10px; width: max-content; animation: parade 120s linear infinite; }
.parade-row[data-dir="right"] .parade-track { animation-direction: reverse; animation-duration: 140s; }
.parade-row:hover .parade-track, .parade-row:focus-within .parade-track { animation-play-state: paused; }
@keyframes parade { to { transform: translateX(-50%); } }
.pet {
  flex: none;
  width: 84px;
  height: 84px;
  border-radius: 22px;
  border: 1.5px solid var(--hair);
  background: var(--card);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.pet img { width: 64px; height: 64px; image-rendering: pixelated; }
.pet:hover { transform: translateY(-4px) rotate(-3deg); border-color: var(--ink); }
.pet.chosen { border-color: var(--ember); box-shadow: 0 0 0 3px var(--ember-wash); }

.pal-features {
  list-style: none;
  max-width: var(--max);
  margin: clamp(56px, 7vw, 88px) auto 0;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.pal-features li {
  display: grid;
  grid-template-columns: 44px 1fr;
  grid-template-rows: auto auto;
  column-gap: 14px;
  row-gap: 3px;
  align-items: start;
  background: var(--card);
  border: 1px solid var(--hair);
  border-radius: 22px;
  padding: 18px 18px 20px;
}
.pal-features img {
  grid-row: 1 / span 2;
  width: 40px;
  height: 36px;
  object-fit: contain;
  image-rendering: pixelated;
  margin-top: 2px;
}
.pal-features b { font: 500 21px/1.2 var(--display); font-variation-settings: "SOFT" 50; }
.pal-features span { font-size: 15px; line-height: 1.5; color: var(--muted); }
@media (max-width: 960px) { .pal-features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .pal-features { grid-template-columns: minmax(0, 1fr); } }

/* MARK: Walks (the Lock Screen's walk, playable; walk.js) */

.walk { background: linear-gradient(180deg, var(--walk-top) 0%, var(--walk-mid) 62%, var(--canvas) 100%); }
.walk-points { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 12px; font-size: 17px; color: var(--muted); }
.walk-points li { display: flex; gap: 12px; }
.walk-points li::before {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  margin-top: 8px;
  background: var(--ember);
  box-shadow: 0 0 0 3px var(--ember-wash);
}
.walk-phone {
  justify-self: center;
  width: min(100%, 340px);
  aspect-ratio: 9 / 19;
  padding: 11px;
  border-radius: 54px;
  background: #1b1b1e;
  box-shadow: 0 0 0 2px #56565c, var(--shadow), 0 40px 80px -30px rgba(40, 30, 60, 0.55);
}
.walk-screen {
  position: relative;
  height: 100%;
  border-radius: 44px;
  overflow: hidden;
  background:
    radial-gradient(120% 70% at 20% 10%, rgba(255, 214, 150, 0.9), rgba(255, 214, 150, 0) 60%),
    linear-gradient(168deg, #f6b26b 0%, #ef8a6a 36%, #b86a8c 68%, #5d4f8a 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Rounded", "SF Pro Text", "Segoe UI", Roboto, sans-serif;
}
.island {
  position: absolute;
  top: 11px;
  left: 50%;
  transform: translateX(-50%);
  width: 58%;
  height: 32px;
  border-radius: 999px;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px 0 12px;
}
.island canvas { height: 20px; width: auto; image-rendering: pixelated; }
.island-clock { font-size: 14px; font-weight: 600; line-height: 1; color: #f7a43b; font-variant-numeric: tabular-nums; }
.lock-date { margin-top: 64px; font-size: 16px; font-weight: 600; opacity: 0.92; }
.lock-time { font-size: clamp(64px, 20vw, 84px); font-weight: 700; line-height: 1; letter-spacing: -0.02em; opacity: 0.94; text-shadow: 0 2px 20px rgba(90, 40, 60, 0.25); }
.activity {
  position: absolute;
  left: 9px;
  right: 9px;
  bottom: 44px;
  padding: 11px 12px 12px;
  border-radius: 24px;
  background: rgba(253, 246, 232, 0.97);
  color: #3b2a1e;
  display: grid;
  gap: 8px;
  box-shadow: 0 14px 30px rgba(40, 20, 30, 0.28);
}
.act-head { display: flex; align-items: baseline; gap: 6px; font-size: 13px; white-space: nowrap; min-width: 0; }
.act-head b { font-size: 14px; }
.act-place { flex: 1; color: rgba(59, 42, 30, 0.62); font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.act-clock { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.act-scene { width: 100%; aspect-ratio: 96 / 22; height: auto; border-radius: 10px; image-rendering: pixelated; display: block; background: #b9dcf7; }
.act-row { display: flex; align-items: center; gap: 7px; }
.act-left { flex: 1; min-width: 0; display: grid; gap: 6px; }
.act-note { font-size: 11.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.act-meter { display: block; height: 5px; border-radius: 3px; background: rgba(59, 42, 30, 0.14); overflow: hidden; }
.act-meter i { display: block; height: 100%; width: 0; border-radius: inherit; background: #f7a43b; }
.act-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: none;
  border-radius: 999px;
  padding: 7px 11px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.12s ease;
}
.act-btn svg { width: 11px; height: 11px; image-rendering: pixelated; }
.act-btn:active { transform: scale(0.95); }
.act-sniff { background: #f7a43b; color: #3b2a1e; }
.act-sniff.ready { animation: sniff-ready 1.1s ease-in-out infinite; }
@keyframes sniff-ready { 50% { box-shadow: 0 0 0 5px rgba(247, 164, 59, 0.35); } }
.act-home { background: #3b2a1e; color: #fdf6e8; }
.postcard {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 16px;
  padding: 18px 14px;
  background: rgba(40, 24, 30, 0.42);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  animation: postcard-in 0.5s cubic-bezier(0.2, 0.8, 0.3, 1.2) both;
}
.postcard[hidden] { display: none; }
@keyframes postcard-in { from { opacity: 0; transform: translateY(24px) scale(0.96); } }
.pc-card { width: 100%; background: #fffaf0; border-radius: 12px; overflow: hidden; color: #3b2a1e; transform: rotate(-1.5deg); box-shadow: 0 18px 36px rgba(0, 0, 0, 0.35); }
.pc-picture { position: relative; }
.pc-scene { width: 100%; aspect-ratio: 72 / 42; height: auto; display: block; image-rendering: pixelated; }
.pc-title { position: absolute; top: 8px; right: 10px; display: grid; justify-items: end; line-height: 1.05; color: #fff; text-shadow: 1.5px 1.5px 0 rgba(51, 36, 26, 0.85); font-family: var(--display); }
.pc-title i { font-size: 12px; font-weight: 500; }
.pc-title b { font-size: 19px; font-weight: 800; font-variation-settings: "SOFT" 50; }
.pc-back { padding: 12px 14px 14px; display: grid; gap: 6px; }
.pc-note, .pc-sign { font: italic 400 15px/1.35 var(--display); }
.pc-sign { font-weight: 600; }
.pc-meta { font-size: 11.5px; color: rgba(59, 42, 30, 0.62); border-top: 1px solid rgba(59, 42, 30, 0.12); padding-top: 7px; }
.pc-again { border: none; border-radius: 999px; background: #fdf6e8; color: #3b2a1e; font-weight: 700; font-size: 14px; padding: 10px 20px; cursor: pointer; }
@media (max-width: 860px) { .walk-phone { margin-top: 8px; } }

/* MARK: Pricing */

.pricing-head { max-width: 760px; margin: 0 auto; padding-inline: var(--gutter); text-align: center; display: grid; justify-items: center; gap: 16px; }
.pricing-head p:not(.eyebrow) { color: var(--muted); font-size: 19px; }
.pricing-head .eyebrow { margin-bottom: 0; }
.plans {
  max-width: 1040px;
  margin: 48px auto 0;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}
.plan {
  position: relative;
  background: var(--card);
  border: 1px solid var(--hair);
  border-radius: 28px;
  padding: 28px 26px 30px;
  display: grid;
  align-content: start;
  gap: 10px;
}
.plan h3 { font-size: 26px; }
.price { font: 500 44px/1 var(--display); font-variation-settings: "SOFT" 50; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.price span { font: 500 15px var(--text); color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.deal { font-size: 15px; color: var(--ember-ink); font-weight: 600; }
.plan ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; font-size: 16px; }
.plan li { display: flex; gap: 10px; align-items: center; }
.plan li svg { width: 18px; height: 18px; flex: none; color: var(--sage-ink); }
.plan.best { border: 2px solid var(--ink); }
.flag { position: absolute; top: -13px; left: 24px; background: var(--ink); color: var(--canvas); font-size: 13px; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.fine { max-width: 760px; margin: 28px auto 0; padding-inline: var(--gutter); font-size: 13px; color: var(--muted); text-align: center; }
@media (max-width: 860px) { .plans { grid-template-columns: 1fr; max-width: 460px; } }

/* MARK: Closing */

.get {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(96px, 12vw, 170px) var(--gutter);
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 22px;
}
.mark.big { width: 120px; height: 120px; }
.get h2 { font-size: clamp(44px, 7vw, 88px); line-height: 1; }
.get h2 em { display: block; }
.get p { color: var(--muted); font-size: 19px; }
/* The mark draws itself, a stroke at a time: toes, egg, screen, then the check. */
.js .draw-mark g > * { stroke-dasharray: 1 2; stroke-dashoffset: 1.02; }
.get.in .draw-mark g > * { animation: draw 0.9s cubic-bezier(0.6, 0, 0.3, 1) forwards; }
.get.in .draw-mark g > :nth-child(2) { animation-delay: 0.12s; }
.get.in .draw-mark g > :nth-child(3) { animation-delay: 0.24s; }
.get.in .draw-mark g > :nth-child(4) { animation-delay: 0.4s; animation-duration: 1.3s; }
.get.in .draw-mark g > :nth-child(5) { animation-delay: 1.2s; }
.get.in .draw-mark g > :nth-child(6) { animation-delay: 1.8s; animation-duration: 0.5s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Alright news: the email sign-up under the closing line (assets/news.js). Hidden without JavaScript. */
.news { display: none; }
.js .news { width: min(100%, 520px); margin-top: 26px; display: grid; justify-items: center; gap: 12px; }
.news h3 { font-size: clamp(26px, 3.4vw, 32px); }
.get .news p { font-size: 16px; }
.news-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1.5px solid var(--hair);
  border-radius: 999px;
  background: var(--card);
}
.news-row:has(input:focus) { outline: 2px solid var(--ember); outline-offset: 3px; }
.news-row input {
  flex: 1;
  min-width: 0;
  min-height: 46px;
  padding: 0 16px;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 17px;
}
.news-row input:focus-visible { outline: none; }
.news-row input::placeholder { color: var(--muted); opacity: 0.75; }
.news-row .button { min-height: 46px; padding: 0 22px; border: 0; cursor: pointer; }
.news-row .button:disabled { opacity: 0.6; cursor: default; transform: none; }
.news-status { min-height: 1.6em; }
.get .news-status[data-tone="ok"] { color: var(--sage-ink); font-weight: 600; }
.get .news-status[data-tone="error"] { color: var(--alarm); }
.news.done .news-row { display: none; }
.get .news-fine { font-size: 13px; }
.news-trap, .news .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 480px) {
  .news-row { flex-direction: column; align-items: stretch; border-radius: 26px; }
  .news-row input { text-align: center; }
}

/* MARK: Footer */

.foot { border-top: 1px solid var(--hair); padding: 34px var(--gutter) calc(34px + env(safe-area-inset-bottom, 0px)); max-width: var(--max); margin: 0 auto; display: grid; gap: 18px; font-size: 14px; color: var(--muted); }
.disclaimer { max-width: 62em; }
.disclaimer b { color: var(--alarm); }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.foot-row nav { display: flex; flex-wrap: wrap; gap: 18px; }

/* MARK: Reduce Motion: no floats, parades or draw-ons; reveals are simple fades. */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .float, .egg { animation: none; }
  .parade-row { overflow-x: auto; mask: none; -webkit-mask: none; }
  .parade-track { animation: none; }
  .postcard, .act-sniff.ready { animation: none; }
  .star { animation: none; opacity: 0.6; }
  .js .reveal { transform: none; transition: opacity 0.6s ease; }
  .js .draw-mark g > * { stroke-dasharray: none; stroke-dashoffset: 0; animation: none !important; }
  .ladder li.on { transform: none; }
  .thread > * { animation: fade 0.5s ease both; }
  @keyframes fade { from { opacity: 0; } }
}
