/*
 * BeastLift website. The tokens below are copied from the app's src/theme/
 * (colors.ts, typography.ts, spacing.ts, radii.ts, shadows.ts); keep them in
 * step when the app's theme changes. Light mode only, like the app.
 */

@font-face {
  font-family: 'Gabarito';
  src: url('../fonts/Gabarito_500Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Gabarito';
  src: url('../fonts/Gabarito_600SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Gabarito';
  src: url('../fonts/Gabarito_700Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Gabarito';
  src: url('../fonts/Gabarito_800ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Gabarito';
  src: url('../fonts/Gabarito_900Black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;

  /* colors.ts */
  --green-50: #f1fbf5;
  --green-100: #e1f7ea;
  --green-200: #c4efd5;
  --green-300: #9be4ba;
  --green-400: #20a65b; /* brand: buttons, selected states */
  --green-500: #198f4c; /* 3D edges */
  --green-600: #178245; /* highlighted words in bubbles */
  --green-700: #13763e; /* small green text */
  --bg: #f5f6f4;
  --surface: #ffffff;
  --surface-alt: #eef0ed;
  --border: #e6e8e5;
  --ink: #15171a;
  --ink-2: #5e646a;
  --ink-3: #9ba1a6;
  --sun: #ffc94a;
  --flame: #ff8a2b;
  --coral-text: #c7432f;
  --danger: #d93d2b;
  --danger-deep: #a82e20;
  --sky-deep: #2589d1;
  --gold-light: #ffd966;
  --gold-mid: #f7b733;
  --gold-deep: #c98a12;
  --gold-ink: #3a2600;
  --night: #1f5a3d; /* the dark green "Ready?" screens */
  --night-soft: #2e7a54;
  --white: #ffffff;

  /* pastels (fill, deep) */
  --mint: #e1f7ea;
  --mint-deep: #9be4ba;
  --sky: #e0f1fb;
  --sky-deep-pastel: #9cd3f2;
  --peach: #ffe9de;
  --peach-deep: #ffb896;
  --butter: #fff4cf;
  --butter-deep: #ffdb6e;

  /* typography.ts: Gabarito, one weight per role */
  --font: 'Gabarito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* spacing.ts */
  --s-xxs: 4px;
  --s-xs: 8px;
  --s-sm: 12px;
  --s-md: 16px;
  --s-lg: 20px;
  --s-xl: 24px;
  --s-xxl: 32px;
  --s-xxxl: 40px;
  --s-huge: 48px;
  --gutter: 20px; /* layout.screenPadding */

  /* radii.ts */
  --r-sm: 12px;
  --r-md: 16px;
  --r-bubble: 18px;
  --r-option: 20px;
  --r-lg: 24px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* shadows.ts */
  --shadow-soft: 0 6px 16px rgba(15, 26, 20, 0.06);
  --shadow-float: 0 10px 30px rgba(15, 26, 20, 0.1);
  --shadow-lifted: 0 16px 40px rgba(15, 26, 20, 0.14);

  /* motion: the app's springs, as CSS curves */
  --ease-pop: cubic-bezier(0.34, 1.56, 0.64, 1); /* springs.pop / release: a small overshoot */
  --ease-settle: cubic-bezier(0.22, 1.2, 0.36, 1); /* springs.settle */

  --page-max: 1080px;
  --text-max: 720px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 500;
  font-size: 17px;
  line-height: 24px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--green-700);
  font-weight: 700;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--green-600);
}

:focus-visible {
  outline: 3px solid var(--green-400);
  outline-offset: 3px;
  border-radius: 6px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -60px;
  z-index: 20;
  padding: 10px 16px;
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--shadow-float);
}

.skip-link:focus {
  top: 12px;
}

/* ---------- Type (typography.ts) ---------- */

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}

.t-giant {
  font-weight: 900;
  font-size: 44px;
  line-height: 46px;
  letter-spacing: -0.02em;
}

.t-display {
  font-weight: 900;
  font-size: 40px;
  line-height: 44px;
  letter-spacing: -0.8px;
}

.t-title1 {
  font-weight: 800;
  font-size: 32px;
  line-height: 38px;
  letter-spacing: -0.6px;
}

.t-title2 {
  font-weight: 800;
  font-size: 26px;
  line-height: 32px;
  letter-spacing: -0.4px;
}

.t-title3 {
  font-weight: 700;
  font-size: 21px;
  line-height: 26px;
  letter-spacing: -0.25px;
}

.t-headline {
  font-weight: 700;
  font-size: 17px;
  line-height: 22px;
  letter-spacing: -0.1px;
}

.t-callout {
  font-weight: 600;
  font-size: 15px;
  line-height: 20px;
}

.t-caption {
  font-weight: 600;
  font-size: 13px;
  line-height: 16px;
  letter-spacing: 0.1px;
}

@media (min-width: 720px) {
  .t-giant {
    font-size: 72px;
    line-height: 74px;
    letter-spacing: -1.6px;
  }
  .t-display {
    font-size: 48px;
    line-height: 52px;
    letter-spacing: -1px;
  }
}

/* ---------- Layout ---------- */

.wrap {
  width: 100%;
  max-width: calc(var(--page-max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.wrap-text {
  max-width: calc(var(--text-max) + 2 * var(--gutter));
}

main {
  display: block;
  position: relative;
}

.section {
  padding: var(--s-xxxl) 0;
}

@media (min-width: 720px) {
  .section {
    padding: 64px 0;
  }
}

.section-title {
  text-align: center;
  margin-bottom: var(--s-xxl);
}

/* The app's Backdrop: a faint ring and two soft glows at the top of a page. */
.backdrop {
  position: absolute;
  inset: 0 0 auto 0;
  height: 520px;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}

.backdrop::before {
  content: '';
  position: absolute;
  width: 360px;
  height: 360px;
  right: -150px;
  top: -170px;
  border-radius: 50%;
  border: 34px solid rgba(155, 228, 186, 0.28);
}

.backdrop::after {
  content: '';
  position: absolute;
  width: 520px;
  height: 520px;
  left: -260px;
  top: -200px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(225, 247, 234, 0.9), rgba(245, 246, 244, 0));
}

/* ---------- Header and footer ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(245, 246, 244, 0.92);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

/* A thin clean line once the page scrolls (owner, round 21: lines, not shadows). */
.site-header.is-scrolled {
  border-bottom-color: var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-md);
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.4px;
}

.brand:hover {
  color: var(--ink);
}

.brand img {
  width: 40px;
  height: 40px;
}

.site-footer {
  padding: var(--s-xxxl) 0 var(--s-huge);
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.site-footer .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-lg);
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  display: inline-block;
  padding: 10px 2px;
  color: var(--ink-2);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a[aria-current='page'] {
  color: var(--green-700);
}

.footer-note {
  margin: 0;
  color: var(--ink-3);
  font-size: 15px;
  font-weight: 600;
}

@media (min-width: 720px) {
  .site-footer .wrap {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* ---------- Buttons: the app's 3D press (Button.tsx) ---------- */

.btn {
  --face: var(--green-400);
  --edge: var(--green-500);
  --label: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-xs);
  min-height: 52px;
  padding: 0 var(--s-lg);
  margin-bottom: 4px;
  border: 2px solid var(--face);
  border-radius: var(--r-md);
  background: var(--face);
  box-shadow: 0 4px 0 var(--edge);
  color: var(--label);
  font: inherit;
  font-weight: 800;
  font-size: 17px;
  line-height: 22px;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 0.22s var(--ease-pop),
    box-shadow 0.22s var(--ease-pop);
}

.btn:hover {
  color: var(--label);
  filter: brightness(1.04);
}

/* Pressing drops the face onto its edge; release springs back. */
.btn:active {
  transform: translateY(4px) scale(0.98);
  box-shadow: 0 0 0 var(--edge);
  transition-duration: 0.06s;
}

.btn-secondary {
  --face: var(--surface);
  --edge: var(--border);
  --label: var(--ink);
  border-color: var(--border);
}

.btn-small {
  min-height: 40px;
  padding: 0 var(--s-md);
  border-radius: var(--r-sm);
  font-size: 15px;
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn svg {
  width: 22px;
  height: 22px;
  flex: none;
}

/* ---------- The speech bubble (SpeechBubble.tsx) ---------- */

.bubble {
  position: relative;
  display: inline-block;
  max-width: 280px;
  padding: 14px var(--s-md);
  border: 2px solid var(--border);
  border-radius: var(--r-bubble);
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  font-size: 17px;
  line-height: 24px;
  text-align: left;
  text-wrap: pretty;
}

.bubble b,
.bubble .hl {
  color: var(--green-600);
  font-weight: 800;
}

/* The tail: the app's own path, an open triangle stroked on its two outer edges. */
.bubble::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 22px;
  top: 50%;
  margin-top: -11px;
  background-repeat: no-repeat;
}

.bubble.tail-left {
  margin-left: 12px;
}

.bubble.tail-left::after {
  left: -14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='22'%3E%3Cpath d='M14 1 L3 9 Q0 11 3 13 L14 21' fill='%23FFFFFF' stroke='%23E6E8E5' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.bubble.tail-right {
  margin-right: 12px;
}

.bubble.tail-right::after {
  right: -14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='22'%3E%3Cpath d='M0 1 L11 9 Q14 11 11 13 L0 21' fill='%23FFFFFF' stroke='%23E6E8E5' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.bubble.tail-bottom {
  margin-bottom: 12px;
}

.bubble.tail-bottom::after {
  width: 22px;
  height: 14px;
  top: auto;
  bottom: -14px;
  left: 50%;
  margin: 0 0 0 -11px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='14'%3E%3Cpath d='M1 0 L9 11 Q11 14 13 11 L21 0' fill='%23FFFFFF' stroke='%23E6E8E5' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Typing: untyped letters stay in the layout, invisible, so the bubble never changes size. */
.bubble .ch {
  visibility: hidden;
}

.bubble .ch.on {
  visibility: visible;
}

/* Pops in when first seen (springs.pop), from the side its tail points to. */
.js .bubble[data-say] {
  opacity: 0;
  transform: translate(var(--pop-x, 0), 6px) scale(0.85);
  transform-origin: var(--pop-origin, center);
}

.js .bubble.tail-left[data-say] {
  --pop-x: -10px;
  --pop-origin: left center;
}

.js .bubble.tail-right[data-say] {
  --pop-x: 10px;
  --pop-origin: right center;
}

.js .bubble.tail-bottom[data-say] {
  --pop-origin: center bottom;
}

.js .bubble[data-say].is-in {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.12s linear,
    transform 0.42s var(--ease-pop);
}

/* ---------- The beast ---------- */

.beast {
  position: relative;
  display: block;
  flex: none;
  aspect-ratio: 200 / 260;
  padding: 0;
  border: 0;
  background: none;
  -webkit-tap-highlight-color: transparent;
}

button.beast {
  cursor: pointer;
}

.beast img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* The second frame (mouth open) shows only while the line types. */
.beast .frame-talk {
  visibility: hidden;
}

.beast.mouth-open .frame-talk {
  visibility: visible;
}

.beast.mouth-open .frame-rest {
  visibility: hidden;
}

/* Idle life: a slow breath (3.2 s, like the app), and a squish when tapped. */
.beast .body {
  position: absolute;
  inset: 0;
  transform-origin: 50% 94%;
  animation: breathe 3.2s ease-in-out infinite;
}

.beast.squish .body {
  animation: squish 0.5s var(--ease-pop);
}

@keyframes breathe {
  0%,
  100% {
    transform: scale(1, 1);
  }
  50% {
    transform: scale(1.012, 1.022);
  }
}

@keyframes squish {
  0% {
    transform: scale(1, 1);
  }
  25% {
    transform: scale(1.08, 0.9);
  }
  60% {
    transform: scale(0.97, 1.04);
  }
  100% {
    transform: scale(1, 1);
  }
}

/* A soft green halo behind the beast (SoftGlow.tsx), centred on its body. */
.glow {
  position: absolute;
  left: -30%;
  top: 50%;
  width: 160%;
  aspect-ratio: 1;
  transform: translateY(-50%);
  border-radius: 50%;
  background: radial-gradient(
    closest-side,
    rgba(155, 228, 186, 0.7),
    rgba(225, 247, 234, 0.5) 55%,
    rgba(245, 246, 244, 0)
  );
  pointer-events: none;
}

/* A beast with its line beside it (PetSpeech.tsx): the tail lands at the mouth. */
.talk {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.talk .bubble {
  flex: 0 1 auto;
  z-index: 1;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: var(--s-xxl) 0 var(--s-md);
  text-align: center;
}

.hero h1 {
  max-width: 13ch;
  margin: 0 auto;
}

/* The bubble sits above the beast, its tail pointing down at the head (like the Wardrobe). */
.hero-stage {
  position: relative;
  flex-direction: column;
  align-items: center;
  margin: var(--s-xl) auto var(--s-lg);
}

.hero-stage .bubble {
  max-width: 300px;
}

/* The picture keeps room above the head for raised paws; pull it up under the tail. */
.hero-stage .beast {
  --w: 196px;
  width: var(--w);
  margin-top: calc(var(--w) * -0.15);
}

@media (min-width: 720px) {
  .hero {
    padding: var(--s-huge) 0 var(--s-xxl);
  }
  .hero h1 {
    max-width: none;
  }
  .hero-stage {
    margin: var(--s-xxl) auto var(--s-xl);
  }
  .hero-stage .bubble {
    max-width: 380px;
    font-size: 19px;
    line-height: 26px;
    padding: 16px 20px;
  }
  .hero-stage .beast {
    --w: 300px;
  }
}

/* ---------- Store badges (official art goes in images/badges/, see README) ---------- */

.badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--s-sm);
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  border-radius: var(--r-sm);
  text-decoration: none;
}

/* Apple's badge has no padding: 48 px tall here (Apple asks for 40 px or more on screen). */
.badge img.badge-apple {
  height: 48px;
  width: auto;
}

/* Google's PNG carries its own clear space: taller so the visible badge matches Apple's. */
.badge img.badge-google {
  height: 71px;
  width: auto;
  margin: -10px -10px;
}

/* Until the stores' links and badges are in place: a plain placeholder, not a drawn badge. */
.badge-placeholder {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 144px;
  height: 52px;
  padding: 0 var(--s-xs);
  border: 2px dashed var(--ink-3);
  border-radius: var(--r-sm);
  color: var(--ink-2);
  font-weight: 600;
  font-size: 13px;
  line-height: 16px;
}

.badge-placeholder strong {
  color: var(--ink);
  font-weight: 800;
  font-size: 16px;
  line-height: 20px;
}

/* Once linked but before the badge file is added: one line naming the store. */
a.badge .badge-placeholder {
  width: auto;
  color: var(--green-700);
  font-weight: 800;
  font-size: 15px;
}

.on-dark .badge-placeholder,
.on-dark .badge-placeholder strong {
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--white);
}

/* ---------- Feature cards ---------- */

.points {
  display: grid;
  gap: var(--s-md);
}

@media (min-width: 900px) {
  .points {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s-lg);
  }
}

/* White cards get a 3D bottom edge in `border` (the app's streak bar, title tag). */
.card {
  background: var(--surface);
  border-radius: var(--r-xl);
  border: 2px solid var(--border);
  border-bottom-width: 5px;
  box-shadow: var(--shadow-soft);
}

.point {
  padding: var(--s-sm);
}

.point h3 {
  padding: var(--s-md) var(--s-sm) var(--s-xs);
}

.art {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 236px;
  padding: 0 var(--s-xs);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.art.mint {
  background: var(--mint);
}

.art.sky {
  background: var(--sky);
}

.art.peach {
  background: var(--peach);
}

.art.butter {
  background: var(--butter);
}

.art .talk {
  width: 100%;
  height: 100%;
  align-items: flex-start;
}

.art .bubble {
  margin-top: 30px;
  max-width: 180px;
  font-size: 16px;
  line-height: 22px;
  padding: 12px 14px;
}

.art .beast {
  width: 168px;
  margin-top: 10px;
  margin-left: -34px;
}

/* Raised fists sit where the tail would land: give them room. */
.art .beast.arms-out {
  margin-left: -16px;
}

/* ---------- Phones (screenshots) ---------- */

.phones {
  display: flex;
  gap: var(--s-lg);
  margin: 0 calc(-1 * var(--gutter));
  padding: var(--s-xs) var(--gutter) var(--s-md);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 var(--gutter);
  scrollbar-width: none;
  list-style: none;
}

.phones::-webkit-scrollbar {
  display: none;
}

.phones li {
  flex: none;
  scroll-snap-align: start;
  text-align: center;
}

.phones figure {
  margin: 0;
}

@media (min-width: 1100px) {
  .phones {
    justify-content: center;
    overflow: visible;
    margin: 0;
    padding: var(--s-xs) 0 0;
  }
}

.phone {
  position: relative;
  width: 200px;
  padding: 7px;
  border-radius: 34px;
  background: var(--ink);
  box-shadow: var(--shadow-lifted);
}

.phone img {
  width: 100%;
  aspect-ratio: 750 / 1624;
  object-fit: cover;
  object-position: top;
  border-radius: 27px;
  background: var(--surface-alt);
}

.phones figcaption {
  margin-top: var(--s-md);
  font-weight: 700;
  font-size: 17px;
  line-height: 22px;
}

/* ---------- The closing "Ready?" panel ---------- */

.ready {
  position: relative;
  overflow: hidden;
  padding: var(--s-xxxl) var(--s-md) var(--s-xxl);
  border-radius: var(--r-xl);
  background: var(--night);
  color: var(--white);
  text-align: center;
}

.ready::before {
  content: '';
  position: absolute;
  width: 420px;
  height: 420px;
  right: -180px;
  top: -200px;
  border-radius: 50%;
  border: 40px solid rgba(255, 255, 255, 0.06);
}

.ready h2 {
  position: relative;
  color: var(--white);
}

.ready .talk {
  position: relative;
  margin: var(--s-lg) auto var(--s-md);
}

.ready .beast {
  width: 170px;
  margin-left: -32px;
}

.ready .bubble {
  margin-top: 40px;
  max-width: 190px;
}

.ready .glow {
  background: radial-gradient(closest-side, rgba(46, 122, 84, 0.95), rgba(31, 90, 61, 0));
}

@media (min-width: 720px) {
  .ready {
    padding: var(--s-huge) var(--s-xxxl);
  }
  .ready .beast {
    width: 210px;
  }
  .ready .bubble {
    margin-top: 52px;
    max-width: 240px;
  }
}

/* ---------- Plain pages (support, delete account, legal, 404) ---------- */

.page-head {
  position: relative;
  padding: var(--s-xxl) 0 var(--s-xl);
}

.page-head .talk {
  justify-content: flex-start;
  margin-top: var(--s-lg);
}

.page-head .beast {
  width: 128px;
  margin-right: -24px;
}

.page-head .bubble {
  margin-top: 30px;
  max-width: 230px;
}

@media (min-width: 720px) {
  .page-head {
    padding: var(--s-huge) 0 var(--s-xxl);
  }
  .page-head .beast {
    width: 150px;
  }
  .page-head .bubble {
    margin-top: 36px;
    max-width: 320px;
  }
}

.stack > * + * {
  margin-top: var(--s-md);
}

.block {
  padding: var(--s-xl) var(--s-lg);
}

.block h2 {
  margin-bottom: var(--s-sm);
}

.block p {
  margin: 0 0 var(--s-sm);
  color: var(--ink-2);
}

.block p:last-child {
  margin-bottom: 0;
}

.block .btn {
  margin-top: var(--s-xs);
}

.email-line {
  display: inline-block;
  margin: var(--s-xxs) 0 var(--s-sm);
  font-size: 21px;
  line-height: 26px;
  font-weight: 800;
  word-break: break-word;
}

/* Numbered steps: letters centred in green circles. */
.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  min-height: 36px;
  padding: 6px 0 6px 52px;
  counter-increment: step;
  color: var(--ink);
  font-weight: 600;
}

.steps li + li {
  margin-top: var(--s-sm);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green-400);
  box-shadow: 0 3px 0 var(--green-500);
  color: var(--white);
  font-weight: 800;
  font-size: 17px;
  line-height: 1;
}

.ticks {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ticks li {
  position: relative;
  padding: 4px 0 4px 34px;
  color: var(--ink);
  font-weight: 600;
}

.ticks li + li {
  margin-top: var(--s-xs);
}

.ticks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--green-400)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6.5 11.5l3 3 6-6.5' fill='none' stroke='%23FFFFFF' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 22px no-repeat;
}

.ticks.keep li::before {
  background: var(--surface-alt)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M7 11h8' fill='none' stroke='%235E646A' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E")
    center / 22px no-repeat;
}

/* Questions that open (Support). */
.faq {
  border-radius: var(--r-lg);
  overflow: hidden;
}

.faq details + details {
  border-top: 1px solid var(--border);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-md);
  min-height: 64px;
  padding: var(--s-md) var(--s-lg);
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 17px;
  line-height: 22px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '';
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface-alt)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M11 13.5l5 5 5-5' fill='none' stroke='%2315171A' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 32px no-repeat;
  transition: transform 0.35s var(--ease-pop);
}

.faq details[open] summary::after {
  transform: rotate(180deg);
}

.faq .answer {
  padding: 0 var(--s-lg) var(--s-lg);
  color: var(--ink-2);
}

.faq .answer p {
  margin: 0 0 var(--s-xs);
}

.faq .answer p:last-child {
  margin: 0;
}

/* The owner's details still to fill in: easy to spot, never mistaken for real ones. */
mark.fill {
  padding: 0 4px;
  border-radius: 6px;
  background: var(--butter);
  box-shadow: inset 0 0 0 1.5px var(--butter-deep);
  color: var(--gold-ink);
  font-weight: 700;
}

/* A data value pill (Last updated). */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 var(--s-sm);
  border-radius: var(--r-pill);
  background: var(--surface-alt);
  color: var(--ink-2);
  font-weight: 600;
  font-size: 15px;
}

/* ---------- Legal text ---------- */

.legal {
  padding: var(--s-xl) var(--s-lg) var(--s-xxl);
}

@media (min-width: 720px) {
  .legal {
    padding: var(--s-xxl) var(--s-xxxl) var(--s-huge);
  }
}

.legal h2 {
  margin: var(--s-xxl) 0 var(--s-sm);
  font-weight: 700;
  font-size: 21px;
  line-height: 26px;
  letter-spacing: -0.25px;
  scroll-margin-top: 84px;
}

.legal > :first-child {
  margin-top: 0;
}

.legal p,
.legal li {
  color: #2d3136;
}

.legal p {
  margin: 0 0 var(--s-md);
}

.legal ul {
  margin: 0 0 var(--s-md);
  padding-left: 22px;
}

.legal li + li {
  margin-top: var(--s-xs);
}

.legal li::marker {
  color: var(--green-400);
}

.legal strong {
  font-weight: 700;
  color: var(--ink);
}

.legal a {
  word-break: break-word;
}

.table-wrap {
  margin: 0 0 var(--s-md);
}

.legal table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 15px;
  line-height: 21px;
}

.legal th {
  text-align: left;
  font-weight: 700;
  color: var(--ink);
  background: var(--surface-alt);
  padding: 10px 12px;
}

.legal th:first-child {
  border-top-left-radius: var(--r-sm);
}

.legal th:last-child {
  border-top-right-radius: var(--r-sm);
}

.legal td {
  vertical-align: top;
  padding: 12px;
  border-bottom: 1px solid var(--border);
  color: #2d3136;
}

/* On phones each row becomes a small card with its column names. */
@media (max-width: 719px) {
  .legal thead {
    display: none;
  }
  .legal table,
  .legal tbody,
  .legal tr,
  .legal td {
    display: block;
    width: 100%;
  }
  .legal tr {
    padding: var(--s-sm) 0;
    border-bottom: 1px solid var(--border);
  }
  .legal tr:first-child {
    border-top: 1px solid var(--border);
  }
  .legal td {
    padding: 4px 0;
    border: 0;
  }
  .legal td::before {
    content: attr(data-label);
    display: block;
    color: var(--ink-3);
    font-weight: 700;
    font-size: 13px;
    line-height: 16px;
  }
}

/* ---------- 404 ---------- */

.lost {
  padding: var(--s-xxxl) 0 72px;
  text-align: center;
}

.lost .talk {
  margin: 0 auto var(--s-xl);
}

.lost .beast {
  width: 170px;
  margin-left: -32px;
}

.lost .bubble {
  margin-top: 40px;
  max-width: 190px;
}

.lost h1 {
  margin-bottom: var(--s-xl);
}

/* ---------- Entering blocks (Enter.tsx: up 24 px from 0.98, staggered) ---------- */

.js [data-enter] {
  opacity: 0;
  transform: translateY(24px) scale(0.98);
}

.js [data-enter].is-in {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.3s ease-out,
    transform 0.6s var(--ease-settle);
  transition-delay: calc(var(--i, 0) * 40ms);
}

/* ---------- Reduce Motion: everything still, text shown whole ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .beast .body,
  .beast.squish .body {
    animation: none;
  }
  .js [data-enter],
  .js .bubble[data-say] {
    opacity: 1;
    transform: none;
  }
  .js [data-enter].is-in,
  .js .bubble[data-say].is-in {
    transition: none;
  }
  .btn,
  .faq summary::after {
    transition: none;
  }
}

/* ---------- Plain page spacing ---------- */

.page-body {
  padding-bottom: 72px;
}

.group-title {
  margin: var(--s-xxxl) 0 var(--s-md);
}

.block p.after {
  margin-top: var(--s-md);
}
