/*
 * punishapp.com
 *
 * EVERY VALUE HERE IS THE APP'S. The colours are the Night palette in
 * app/src/theme.ts, the type is Source Serif 4 (self-hosted, renamed; see
 * fonts/OFL.txt), the pill and chip are components/ui.tsx's, the card edge is
 * glassCard(), and the two pools of light are components/Ground.tsx's POOLS
 * and SPOTS. If the app changes one of these, change it here too.
 */

@font-face {
  font-family: 'Punish Serif';
  src: url('fonts/punish-serif-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Punish Serif';
  src: url('fonts/punish-serif-400i.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Punish Serif';
  src: url('fonts/punish-serif-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Punish Serif';
  src: url('fonts/punish-serif-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* theme.ts NIGHT */
  --bg: #0e1110;
  --surface: #171b19;
  --text: #d8e6dc;
  --divider: rgba(216, 230, 220, 0.16);
  --n200: #212724;
  --n300: #2b332f;
  --n400: #3b4641;
  --n500: #57655e;
  --n600: #7d8f85;
  --n700: #9aaba1;
  --n800: #b7c5bc;
  --keep: #45d17a;
  --warn: #ffcc42;
  --neg: #ff5f56;
  --loop: #fbcb0f;
  --pos: #57b6e0;
  /* theme.ts `mark` is #b48ce8; lifted to hold 5:1 at a light's centre, where #b48ce8 falls to 4.2:1. */
  --mark: #c4a2ef;

  --pad: 20px;
  --measure: 34rem;
  --serif: 'Punish Serif', 'Source Serif 4', Georgia, 'Times New Roman', serif;

  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  /*
   * n800, a step brighter than the app's body n700. The app's pools sit on a
   * phone; here they are a metre wide, and a line of copy crossing the green
   * one's peak has to hold 4.5:1 there too. Every muted colour moves up one
   * step for the same reason: n600 measures 3.5:1 at a pool's centre.
   */
  color: var(--n800);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ------------------------------------------------------------ the ground */

/*
 * Ground.tsx, in CSS. The wash (cool above, warm below), two pools of light
 * (keep green and warn amber, rx 0.62 and ry 0.21 of the screen), a vignette
 * that pulls the edges back to the ground, and the app's own grain over it.
 * Fixed to the viewport, as the app's is fixed to the screen.
 */
.ground {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background: linear-gradient(
    to bottom,
    rgba(12, 18, 22, 0.55) 0%,
    rgba(14, 17, 16, 0.27) 55%,
    rgba(22, 19, 16, 0.55) 100%
  ), var(--bg);
}

.pool {
  position: absolute;
  left: 0;
  top: 0;
  /* CIRCLES, NOT STRETCHED (owner, 2026-09-28). The app's pools are ellipses
     sized to the phone; on a page they stretched with the window, wide on a
     desktop and tall on a phone. One size from the shorter side keeps them
     round on every screen. */
  width: 84vmin;
  height: 84vmin;
  margin-left: -42vmin;
  margin-top: -42vmin;
  border-radius: 50%;
  transform: translate(var(--x), var(--y));
  transition: transform 900ms cubic-bezier(0.65, 0, 0.35, 1);
  will-change: transform;
}

/* BLOOM_ALPHA 0.16 × each pool's weight; the 0.45 stop at 30% of it. */
.pool--a {
  --x: 30vw;
  --y: 28vh;
  background: radial-gradient(
    closest-side,
    rgba(69, 209, 122, 0.256) 0%,
    rgba(69, 209, 122, 0.077) 45%,
    rgba(69, 209, 122, 0) 100%
  );
}

.pool--b {
  --x: 72vw;
  --y: 60vh;
  background: radial-gradient(
    closest-side,
    rgba(255, 204, 66, 0.208) 0%,
    rgba(255, 204, 66, 0.062) 45%,
    rgba(255, 204, 66, 0) 100%
  );
}

/* The vignette at full strength over the pools, the grain at 0.035 over everything. */
.ground::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(120% 80% at 50% 38%, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.45) 100%);
}
.ground::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: url('img/grain.png') repeat;
  background-size: 96px 96px;
  opacity: 0.035;
}

/* ------------------------------------------------------------ type */

h1,
h2,
h3 {
  font-weight: 600;
  color: var(--text);
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.35rem, 8.4vw, 4.6rem);
  line-height: 1.06;
  letter-spacing: -0.012em;
}

h2 {
  font-size: clamp(1.9rem, 5.6vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.008em;
}

h3 {
  font-size: clamp(1.4rem, 3.6vw, 1.85rem);
  line-height: 1.2;
}

p {
  margin: 0 0 1em;
  max-width: var(--measure);
}

/* ui.tsx rich(): **bold** is semibold in full ink. */
strong {
  font-weight: 600;
  color: var(--text);
}

/*
 * ui.tsx rich(): ==highlight== is "colour and weight, no band": semibold in
 * the plum `mark` token. The browser's yellow band is exactly what the app
 * removed.
 */
mark {
  background: none;
  color: var(--mark);
  font-weight: 600;
}

/* Icon.tsx: 24-unit paths, 1.8 stroke, round caps and joins, one colour. */
.ic {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}

em {
  font-style: italic;
}

a {
  color: var(--text);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-color: var(--n500);
}
a:hover {
  text-decoration-color: var(--text);
}

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

/* ui.tsx Kicker: bold, tracked, muted. Used once on the whole page, on purpose. */
.kicker {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--n700);
  margin: 0 0 0.9rem;
}

/* ui.tsx Italic */
.aside {
  font-style: italic;
  color: var(--n700);
  line-height: 1.6;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--text);
  color: var(--bg);
  padding: 8px 14px;
  border-radius: 999px;
  z-index: 10;
}
.skip:focus {
  left: 8px;
}

/* ------------------------------------------------------------ layout */

.wrap {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 var(--pad);
}

@media (min-width: 720px) {
  :root {
    --pad: 40px;
  }
}

/* ------------------------------------------------------------ header */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
  padding-bottom: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 1.3rem;
  line-height: 1;
}

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.top__note {
  font-size: 0.9rem;
  color: var(--n700);
  text-align: right;
}

/* ------------------------------------------------------------ hero */

.hero {
  display: grid;
  gap: 40px;
  padding-top: 28px;
  padding-bottom: 72px;
}

.hero h1 {
  max-width: 13ch;
}

/* Owner, 2026-10-03: "to someone you hate in red". */
.hero h1 .hate {
  color: var(--neg);
}

.hero__lede {
  font-size: 1.2rem;
  color: var(--n800);
  margin-top: 1.4rem;
  max-width: 31rem;
}

.hero__aside {
  margin-top: 0.4rem;
  max-width: 30rem;
}

.hero__cta {
  margin-top: 2rem;
  max-width: 24rem;
}

.hero__shot {
  justify-self: center;
  width: min(100%, 408px);
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    align-items: center;
    gap: 64px;
    padding-top: 56px;
    padding-bottom: 120px;
  }
  .hero__shot {
    justify-self: end;
    width: 100%;
    max-width: 432px;
  }
}

/* ------------------------------------------------------------ pills */

/* ui.tsx PillButton: 56 high, fully round, 1.5 border, semibold 17. */
.pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 26px;
  border-radius: 28px;
  border: 1.5px solid var(--text);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
}

.pill--fill {
  background: var(--text);
  color: var(--bg);
}

/* A promise, not a door: it looks like the app's pill and does not pretend to be pressable. */
.pill--soon {
  cursor: default;
}

.pill__play {
  width: 18px;
  height: 20px;
  flex: none;
}

/* Google's own badge, untouched (their artwork and guidelines). Trimmed of its
   transparent margin, and as tall as a pill. */
.play-badge {
  display: inline-block;
  line-height: 0;
}

.play-badge img {
  height: 60px;
  width: auto;
}

.cta-note {
  font-size: 0.95rem;
  color: var(--n700);
  margin: 0.9rem 0 0;
}

/* ui.tsx Chip */
.chip {
  display: inline-block;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--n400);
  color: var(--n700);
  font-size: 0.95rem;
  line-height: 1.3;
}
.chip--on {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
  font-weight: 600;
}

/* ------------------------------------------------------------ screens */

/*
 * A real screen, cropped of its status bar, framed by glassCard()'s lit edge:
 * a hairline all round, brighter along the top, darker along the foot.
 */
.screen {
  margin: 0;
  position: relative;
}

/*
 * IN A PHONE (owner, 2026-10-02: "site screenshots in clean phone mockup and
 * hovering, enlarging when hovered over, and larger in the first place by
 * 20%"). The bezel is the image's own border, so the picture's corners round
 * inside it with no wrapper and a caption stays outside the phone. The lit
 * edge is a ring of shadow, as glassCard() draws it. It floats already (see
 * "motion"); under a pointer it grows, and that is the img's own transform so
 * it cannot fight the figure's float.
 */
.screen img,
.screen video {
  display: block;
  width: 100%;
  height: auto;
  box-sizing: border-box;
  border: 9px solid #050706;
  border-radius: 42px;
  background: #050706;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.16),
    0 -1px 0 1px rgba(255, 255, 255, 0.2),
    0 34px 90px -30px rgba(0, 0, 0, 0.85);
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.35s ease;
}

@media (hover: hover) {
  .screen:hover img,
  .screen:hover video {
    transform: scale(1.06);
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.24),
      0 -1px 0 1px rgba(255, 255, 255, 0.28),
      0 46px 110px -30px rgba(0, 0, 0, 0.9);
  }
  .screen:hover {
    z-index: 3;
  }
}

.screen figcaption {
  font-size: 0.88rem;
  font-style: italic;
  color: var(--n700);
  margin-top: 12px;
  line-height: 1.5;
}

/* ------------------------------------------------------------ the deal */

.deal {
  padding-bottom: 40px;
}

.deal__head h2 {
  padding-bottom: 20px;
  /* The app's heavy rule under "The deal, in plain words." */
  border-bottom: 2px solid var(--text);
}

.deal__lead {
  display: grid;
  gap: 28px;
  padding-bottom: 12px;
}

.deal__shot {
  width: min(100%, 360px);
}

@media (min-width: 900px) {
  .deal__lead {
    grid-template-columns: 15rem minmax(0, 1fr) 336px;
    gap: 40px;
    align-items: start;
  }
  .deal__col {
    grid-column: 2;
  }
  .deal__lead .deal__intro {
    font-size: 1.3rem;
    line-height: 1.5;
    color: var(--text);
    max-width: 24rem;
  }
  .deal__shot {
    grid-column: 3;
    width: 100%;
    margin-top: 1.2rem;
  }
}

/* The same five rows in HTML: the app's muted label left, the term right. */
.sheet {
  margin: 1.6rem 0 0;
  max-width: 34rem;
}

.sheet div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--divider);
}

.sheet dt a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--n700);
  text-decoration: none;
  white-space: nowrap;
}

.sheet dt a:hover {
  color: var(--text);
}

.sheet dd {
  margin: 0;
  color: var(--text);
  font-weight: 600;
  text-align: right;
}

.row {
  scroll-margin-top: 16px;
}

.deal__intro {
  margin-top: 1.2rem;
  color: var(--n800);
}

/*
 * One row of the deal: the app's muted label on the left, the term on the
 * right, a divider under it. On a phone the label sits above, as it would if
 * the app's row ran out of width.
 */
.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px 40px;
  padding: 44px 0 52px;
  border-bottom: 1px solid var(--divider);
}

.row__label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  color: var(--n700);
  line-height: 1.4;
  margin: 0;
}

.row__term {
  display: block;
  color: var(--text);
  font-weight: 600;
  font-size: 1rem;
  margin-top: 4px;
}

.row__body {
  display: grid;
  gap: 32px;
  min-width: 0;
}

.row__body h3 {
  margin-bottom: 0.8rem;
}

.row__shot {
  width: min(100%, 360px);
}

/* Kept and missed side by side (owner, 2026-09-28: "show missed too"). */
.row__shot--pair {
  width: min(100%, 552px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (min-width: 900px) {
  .row {
    grid-template-columns: 15rem minmax(0, 1fr);
    padding: 64px 0 72px;
  }
  .row__label {
    position: sticky;
    top: 32px;
    align-self: start;
  }
  .row__body--split {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 56px;
    align-items: start;
  }
}

/* Kinds of goal: the onboarding list, as a list. */
.kinds {
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0;
  display: grid;
  gap: 0;
  max-width: 36rem;
}

.kinds li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 14px 0;
  border-top: 1px solid var(--divider);
}

.kinds li .ic {
  margin-top: 4px;
  color: var(--n800);
}

.kinds b {
  display: block;
  font-weight: 600;
  color: var(--text);
  font-size: 1.08rem;
}

.kinds span {
  color: var(--n700);
  font-size: 0.98rem;
}

/* "It measures / It charges / You can argue / You can stop" */
.terms {
  margin: 1.4rem 0 0;
  display: grid;
  gap: 18px;
  max-width: 34rem;
}

.terms div {
  display: grid;
  gap: 2px;
}

.terms dt {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--text);
}

.terms dd {
  margin: 0 0 0 28px;
  color: var(--n800);
}

.small {
  font-size: 0.93rem;
  color: var(--n700);
}

/* ------------------------------------------------------------ the anti-charity */

/*
 * The row the page is built around, and the only one that breaks the grid:
 * the question is the app's biggest heading, and it gets the page's.
 */
.row--anti .row__body h3 {
  font-size: clamp(2.2rem, 7vw, 4rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
  max-width: 11ch;
  margin-bottom: 1.4rem;
}

.anti__lede {
  font-size: 1.2rem;
  color: var(--n800);
}

/* Two positions, each pointing at the other's organisation. */
.pairs {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
  max-width: 38rem;
}

.pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  padding: 18px 20px;
  border-radius: 18px;
  /* glassCard(), night */
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top-color: rgba(255, 255, 255, 0.22);
  border-bottom-color: rgba(0, 0, 0, 0.34);
}

.pair__stand {
  font-size: 0.95rem;
  color: var(--n700);
}

.pair__stand .chip {
  margin-left: 6px;
  padding: 5px 14px;
  font-size: 0.92rem;
}

.pair__pay {
  color: var(--text);
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 1.3;
}

.pair__pay small {
  display: block;
  font-weight: 400;
  font-size: 0.92rem;
  color: var(--n700);
}


.money {
  list-style: none;
  margin: 2.2rem 0 0;
  padding: 0;
  max-width: 36rem;
}

.money li {
  position: relative;
  padding: 10px 0 10px 22px;
}

.money li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.15em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid var(--keep);
}

.disclaimer {
  margin-top: 1.4rem;
  font-style: italic;
  font-size: 0.93rem;
  color: var(--n700);
}

/* ------------------------------------------------------------ why */

.why {
  padding-top: 96px;
  padding-bottom: 40px;
}

.why__head {
  max-width: 40rem;
}

.why__head p {
  margin-top: 1rem;
}

.findings {
  display: grid;
  gap: 16px;
  margin-top: 40px;
}

/*
 * Not three equal cards: the money finding is the one the app leads with and
 * the only randomised trial of the mechanism itself, so it takes the tall
 * column and the other two stack beside it.
 */
@media (min-width: 900px) {
  .findings {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
  }
  .finding--lead {
    grid-row: span 2;
    padding: 28px;
    gap: 16px;
  }
  .finding--lead h3 {
    font-size: 1.6rem;
  }
  .finding--lead .bar__track {
    height: 20px;
    border-radius: 10px;
  }
  .finding--lead .bar--weak .bar__track {
    height: 12px;
  }
  .finding--lead .bar__row b {
    font-size: 1.7rem;
  }
  .finding--lead .finding__claim {
    font-size: 1.05rem;
  }
}

/* onboarding.tsx Finding: a divider-bordered card, 18 round, bars inside. */
.finding {
  border: 1.5px solid var(--divider);
  border-radius: 18px;
  padding: 20px;
  display: grid;
  gap: 12px;
  align-content: start;
}

.finding h3 {
  font-size: 1.2rem;
}

.finding__what {
  font-size: 0.88rem;
  color: var(--n700);
  margin: -6px 0 0;
}

.bar {
  display: grid;
  gap: 6px;
}

.bar__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--n700);
}

.bar__row b {
  font-weight: 700;
  color: var(--text);
  font-size: 1.25rem;
  white-space: nowrap;
}

.bar--weak .bar__row b {
  font-size: 1rem;
  color: var(--n700);
}

.bar__track {
  height: 14px;
  border-radius: 7px;
  background: var(--n200);
  overflow: hidden;
}

.bar--weak .bar__track {
  height: 10px;
  border-radius: 5px;
}

.bar__fill {
  height: 100%;
  width: var(--v);
  background: var(--text);
  border-radius: inherit;
}

.bar--weak .bar__fill {
  background: var(--n400);
}

.finding__claim {
  font-size: 0.95rem;
  color: var(--n800);
  margin: 0;
}

.finding__src {
  font-size: 0.82rem;
  color: var(--n700);
  margin: 0;
}

.finding__src a {
  color: var(--n700);
}

.why__foot {
  margin-top: 28px;
}

/* ------------------------------------------------------------ buddies */

.buddies {
  position: relative;
  padding-top: 72px;
  padding-bottom: 72px;
  display: grid;
  gap: 32px;
}

.buddies h2 {
  max-width: 14ch;
}

.buddies__text p:first-child {
  font-size: 1.15rem;
  color: var(--n800);
}

.stops__intro {
  margin: 1.4rem 0 0;
}

.stops {
  list-style: none;
  margin: 0.6rem 0 1.4rem;
  padding: 0;
  counter-reset: none;
  max-width: 34rem;
}

.stops li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 14px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--divider);
  font-size: 0.97rem;
}

.stops li .ic {
  color: var(--n800);
}

.buddies__shot {
  max-width: 408px;
  margin-top: 28px;
}

@media (min-width: 900px) {
  .buddies {
    grid-template-columns: 15rem minmax(0, 1fr);
    gap: 40px;
    padding-top: 96px;
    padding-bottom: 96px;
  }
}

/* ------------------------------------------------------------ faq */

.faq {
  position: relative;
  padding-top: 56px;
  padding-bottom: 40px;
}

/*
 * A rule across the content, not across the gutter: these sections are their
 * own .wrap, so a border on them would run into the page's side padding.
 */
.faq::before,
.buddies::before,
.foot::before {
  content: '';
  position: absolute;
  top: 0;
  left: var(--pad);
  right: var(--pad);
  height: 1px;
  background: var(--divider);
}

.faq h2 {
  margin-bottom: 12px;
}

.qa {
  display: grid;
  gap: 8px 40px;
  padding: 26px 0;
  border-bottom: 1px solid var(--divider);
}

.qa h3 {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 1.2rem;
  line-height: 1.35;
}

.qa h3 .ic {
  margin-top: 0.2em;
  color: var(--n800);
}

.qa p:last-child {
  margin-bottom: 0;
}

@media (min-width: 900px) {
  .faq {
    display: grid;
    grid-template-columns: 15rem minmax(0, 1fr);
    gap: 0 40px;
    padding-top: 96px;
  }
  .faq h2 {
    font-size: 2rem;
    position: sticky;
    top: 32px;
    align-self: start;
  }
  .qa {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  }
  .qa:first-of-type {
    padding-top: 6px;
  }
}

/* ------------------------------------------------------------ AI planner, AI photo proof */

.ai {
  position: relative;
  padding-top: 72px;
  padding-bottom: 24px;
}
.ai h2 {
  max-width: 18ch;
}
.ai__body {
  max-width: 40rem;
  margin-top: 1.4rem;
}
.ai__body p + p,
.ai__body .plan + p,
.ai__body .proof__grid + p {
  margin-top: 1.4rem;
}

/* One sentence in, three dated cards out: the Plan tab, in miniature. */
.plan {
  margin-top: 1.6rem;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--divider);
  background: var(--surface);
}
.plan__ask {
  display: inline-block;
  margin: 0 0 14px;
  padding: 9px 16px;
  border-radius: 18px 18px 4px 18px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
}
.plan__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.plan__list li {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid var(--divider);
}
.plan__day {
  flex: none;
  width: 2.6rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--n600);
}

/* Each term a pill; the script lights them. A grid, so nothing moves when one fills. */
.proof__grid {
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(8.4rem, 1fr));
  gap: 10px;
}
.proof__grid .chip {
  white-space: nowrap;
  display: block;
  text-align: center;
  /* The lit weight is heavier; hold it always so the row does not breathe. */
  font-weight: 600;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

/* ------------------------------------------------------------ reels */

/*
 * One phone at a time, the rest a swipe away. A scroll container with snap
 * points, so it works with a finger, a trackpad and the keyboard before the
 * script that moves it on its own has loaded, and without it.
 */
.reel {
  display: flex;
  gap: 0;
  width: min(100%, 360px);
  margin-top: 1.6rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  /* Room for the hover growth and the shadow, which a scroller would clip. */
  padding: 26px 0 8px;
  margin-bottom: -8px;
}
.reel::-webkit-scrollbar {
  display: none;
}
.reel > .screen {
  flex: 0 0 100%;
  scroll-snap-align: center;
  box-sizing: border-box;
  padding: 0 14px;
}
.reel--one {
  overflow: visible;
}
/* Inside a reel the float would drag a slide out of its snap position. */
.motion .reel .screen {
  transform: none;
}
.reel .screen figcaption {
  text-align: center;
}
.buddies__shot.reel {
  max-width: 408px;
  width: min(100%, 408px);
}

/*
 * SIDE BY SIDE WHERE THERE IS ROOM (owner, 2026-10-02: "on site use side by
 * side if empty space large and reduce text"). On one column everything
 * stacks, as before. From 900px the heading takes the left rail the deal and
 * buddies sections use, and what was a stack with half the page empty beside
 * it sits in a row: the planner's two phones next to each other, the photo
 * phone beside its pills, the buddies' words beside their phone.
 */
@media (min-width: 900px) {
  .ai {
    display: grid;
    grid-template-columns: 15rem minmax(0, 1fr);
    gap: 40px;
    padding-top: 96px;
    padding-bottom: 40px;
    align-items: start;
  }
  .ai__body {
    max-width: none;
    margin-top: 0;
  }
  .ai__body > p:first-child {
    max-width: 30rem;
    font-size: 1.15rem;
  }
  /* Both screens at once: no scrolling, so the script has nothing to move. */
  .reel--pair {
    width: 100%;
    max-width: 640px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    overflow: visible;
  }
  .ai__split {
    display: grid;
    grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
    gap: 32px;
    align-items: center;
  }
  .ai__split .reel {
    width: 100%;
    margin-top: 1.2rem;
  }
  .ai__split .proof__grid {
    margin-top: 0;
    grid-template-columns: repeat(auto-fill, minmax(8.8rem, 1fr));
  }
  .buddies__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
    gap: 36px;
    align-items: start;
  }
  .buddies__body .buddies__shot.reel {
    margin-top: 0;
    width: 100%;
  }
}

/* FOUR ACROSS ON A PHONE (owner, 2026-10-03: "improve mobile ai photo grid to 4
   per width"). Six rows of four in place of twelve of two; the words are the
   short ones, set small, so each fits its quarter on one line. */
@media (max-width: 899px) {
  .proof__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }
  .proof__grid .chip {
    padding: 8px 2px;
    font-size: 0.72rem;
    letter-spacing: -0.01em;
    overflow: hidden;
    text-overflow: clip;
  }
}

/* ------------------------------------------------------------ the join form */

/* The hero ring hangs over the top of the phone; on one column that is where
   the iPhone line sits, so the line is given room above it. */
@media (max-width: 899px) {
  .hero__cta {
    margin-bottom: 2.4rem;
  }
}

.linkish {
  font: inherit;
  color: var(--text);
  background: none;
  border: 0;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
button.pill {
  width: 100%;
  cursor: pointer;
}
button.pill:not(.pill--fill) {
  background: none;
  color: var(--text);
}
button.pill:disabled {
  opacity: 0.6;
  cursor: default;
}
.join {
  width: min(26rem, calc(100vw - 32px));
  box-sizing: border-box;
  padding: 26px 22px 22px;
  border-radius: 24px;
  border: 1px solid var(--divider);
  background: var(--surface);
  color: var(--text);
}
.join::backdrop {
  background: rgba(0, 0, 0, 0.62);
}
.join h2 {
  font-size: 1.7rem;
  margin: 0 0 1.1rem;
  padding-right: 2.5rem;
}
.join__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 20px;
  background: none;
  color: var(--n700);
  cursor: pointer;
}
.join__which {
  display: flex;
  gap: 8px;
  border: 0;
  margin: 0 0 1.1rem;
  padding: 0;
}
.join__which input {
  position: absolute;
  opacity: 0;
}
.join__which .chip {
  cursor: pointer;
  white-space: nowrap;
  padding: 9px 15px;
}
.join__which input:checked + .chip {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
  font-weight: 600;
}
.join__which input:focus-visible + .chip {
  outline: 2px solid var(--pos);
  outline-offset: 2px;
}
.join__field {
  display: block;
  margin-top: 0.9rem;
  font-size: 0.95rem;
  color: var(--n700);
}
.join__field input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-top: 6px;
  min-height: 50px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1.5px solid var(--n400);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 1.05rem;
}
.join__field input:focus {
  outline: none;
  border-color: var(--text);
}
.join__hint,
.join__note {
  margin: 6px 0 0;
  font-size: 0.85rem;
  color: var(--n600);
}
.join__note {
  margin-top: 12px;
}
.join__error {
  margin: 14px 0 0;
  color: var(--neg);
  font-size: 0.95rem;
}
.join .pill {
  margin-top: 18px;
}
.join__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.join__done p {
  color: var(--n800);
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}


/* ------------------------------------------------------------ the end */

.sign {
  padding-top: 96px;
  padding-bottom: 104px;
}

.sign h2 {
  max-width: 16ch;
}

.sign p {
  margin-top: 1.2rem;
}

.sign .pill {
  margin-top: 2rem;
  max-width: 24rem;
}

@media (min-width: 900px) {
  .sign {
    padding-top: 140px;
    padding-bottom: 150px;
    text-align: center;
  }
  .sign h2,
  .sign p,
  .sign .pill {
    margin-left: auto;
    margin-right: auto;
  }
}

.foot {
  position: relative;
  padding-top: 28px;
  padding-bottom: 40px;
  font-size: 0.9rem;
  color: var(--n700);
  display: grid;
  gap: 14px;
}

.foot__follow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--n800);
}

.foot__follow span {
  margin-right: 4px;
}

.foot__follow a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--divider);
  display: grid;
  place-items: center;
  color: var(--n800);
  transition: color 0.15s, border-color 0.15s;
}

.foot__follow a:hover,
.foot__follow a:focus-visible {
  color: var(--text);
  border-color: var(--n700);
}

.foot__follow .ic {
  width: 20px;
  height: 20px;
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.foot a {
  color: var(--n700);
}

/* Owner, 2026-10-06: StartupBase's free launch needs its badge on the site;
   chose "small, faded, by the links" over the follow row or its own line. */
.foot__badge {
  display: inline-flex;
  align-items: center;
  opacity: 0.7;
  transition: opacity 0.15s;
}

.foot__badge:hover,
.foot__badge:focus-visible {
  opacity: 1;
}

.foot__badge img {
  height: 24px;
  width: auto;
  display: block;
}

.foot p {
  margin: 0;
  max-width: none;
}

/* ------------------------------------------------------------ goals carousel */

/* Owner, 2026-10-02. Cards in the app's own shape: schedule on the left, the
   money as a chip in the colour of money leaving, the promise in the serif. */
.goals {
  position: relative;
  padding-top: 72px;
  padding-bottom: 72px;
}

.goals__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.goals__head h2 {
  margin: 0;
}

.goals__nav {
  display: flex;
  gap: 8px;
  flex: none;
}

.goals__btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--n400);
  background: transparent;
  color: var(--n800);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.goals__btn:first-child .ic {
  transform: scaleX(-1);
}

.goals__btn:hover,
.goals__btn:focus-visible {
  color: var(--text);
  border-color: var(--n700);
}

.goals__rail {
  list-style: none;
  margin: 0 calc(var(--pad) * -1);
  padding: 4px var(--pad) 12px;
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: var(--pad);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.goals__rail::-webkit-scrollbar {
  display: none;
}

.gcard {
  flex: none;
  width: min(84vw, 340px);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--divider);
  border-top-color: rgba(216, 230, 220, 0.3);
}

.gcard__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.gcard__when {
  color: var(--n700);
  font-size: 0.9rem;
  font-weight: 600;
}

.gcard__stake {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1.5px solid var(--neg);
  color: var(--neg);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

.gcard h3 {
  margin: 6px 0 2px;
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.2;
  color: var(--text);
}

.gcard p {
  margin: 0;
  max-width: none;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--n800);
}

.gcard .gcard__by {
  margin-top: auto;
  padding-top: 12px;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--n600);
}

/* ------------------------------------------------------------ motion */

/* Owner, 2026-09-28: reveal on scroll, floating phones, a live ring in the
   hero. The hidden start state exists only under html.motion, which the script
   sets and never sets under reduced motion, so a still page is always whole. */

.motion .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.motion .reveal.in {
  opacity: 1;
  transform: none;
}

.motion .screen {
  transform: translateY(var(--float, 0px)) rotate(var(--tilt, 0deg));
  will-change: transform;
}

.hero__shot {
  position: relative;
}

.live {
  position: absolute;
  z-index: 2;
  /* Beside the "My goals" heading, hanging off the phone's left edge, where
     the screenshot has nothing to cover. */
  left: -112px;
  top: 12%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 12px 12px;
  border-radius: 20px;
  background: rgba(20, 24, 22, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top-color: rgba(255, 255, 255, 0.26);
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  --tone: var(--keep);
}

.live[data-tone='warn'] { --tone: var(--warn); }
.live[data-tone='neg'] { --tone: var(--neg); }

.live__ring {
  width: 44px;
  height: 44px;
  transform: rotate(-90deg);
  flex: none;
}

.live__bed,
.live__arc {
  fill: none;
  stroke-width: 5;
}

.live__bed { stroke: rgba(255, 255, 255, 0.1); }

.live__arc {
  stroke: var(--tone);
  stroke-linecap: round;
  transition: stroke 0.4s;
}

.live__text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.live__app {
  font-size: 0.8rem;
  color: var(--n700);
}

.live__left {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--tone);
  font-variant-numeric: tabular-nums;
  min-width: 7.5ch;
  transition: color 0.4s;
}

@media (max-width: 900px) {
  .live {
    /* Hanging from the phone's top edge: nothing of the screen underneath. */
    left: -12px;
    top: -30px;
    padding: 10px 14px 10px 10px;
  }
}

/* The sources under "Why it works", behind one small link (owner, 2026-10-04: "bury sources"). */
.why__src { margin-top: 1.4rem; font-size: 0.78rem; color: var(--n500); }
.why__src summary { cursor: pointer; list-style: none; display: inline; text-decoration: underline; text-underline-offset: 3px; }
.why__src summary::-webkit-details-marker { display: none; }
.why__src ol { margin: 0.6rem 0 0 1.1rem; padding: 0; display: grid; gap: 0.35rem; max-width: 46rem; }
.why__src a { color: inherit; }

/* Mid-page beta sign-ups (2026-10-05): the hero's button, centred between sections. */
.beta-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 8px;
  padding-bottom: 72px;
}
.beta-cta .pill {
  width: 100%;
  max-width: 24rem;
}
.money-note {
  margin-top: 1rem;
}

/* One phone left to ask for (Android is on Play since 2026-10-14). */
.join__which[hidden] {
  display: none;
}
