/* Ripul website. One stylesheet for every page. */

@font-face {
  font-family: 'Instrument Serif';
  src: url('/fonts/instrument-serif.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('/fonts/instrument-serif-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Archivo';
  src: url('/fonts/archivo.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f8f4ec;
  --paper-deep: #f0e9dc;
  --card: #fffdf9;
  --ink: #23253a;
  --ink-soft: #5b5e73;
  --ink-faint: #8b8d9c;
  --line: rgba(35, 37, 58, 0.12);
  --teal: #1f6f70;
  --teal-soft: #d9e9e6;
  --coral: #e2714f;
  --coral-soft: #fbe3d8;
  --sun: #f1c56f;
  --sun-soft: #fbefd2;
  --lilac: #8d86d6;
  --night: #23253a;
  --night-soft: #2f3250;
  --on-night: #f8f4ec;
  --on-night-soft: rgba(248, 244, 236, 0.72);

  /* The identity's green and lime: rare dashes only (the icon, a working dot, selected text). */
  --brand-green: #2d4829;
  --brand-lime: #aef572;

  --display: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  --body: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 48px);
  --radius: 28px;
  --shadow: 0 1px 2px rgba(35, 37, 58, 0.05), 0 18px 44px -18px rgba(35, 37, 58, 0.22);
}

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

html {
  /* Instrument Serif has one weight; never fake a bold for it. */
  font-synthesis: none;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.012em;
  line-height: 1.06;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(50px, 8.4vw, 108px);
  line-height: 0.98;
}
h2 {
  font-size: clamp(38px, 5.4vw, 68px);
}
h3 {
  font-size: clamp(27px, 2.9vw, 34px);
  line-height: 1.15;
}

h1 em,
h2 em {
  font-style: italic;
  font-weight: 380;
  color: var(--teal);
}

p {
  margin: 0;
  text-wrap: pretty;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 18px;
}

.lede {
  font-size: clamp(19px, 2vw, 22px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 34em;
}

.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  background: var(--card);
  padding: 10px 16px;
  border-radius: 12px;
}

/* ── Buttons ─────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  font-family: var(--body);
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 10px 24px -12px rgba(35, 37, 58, 0.6);
}
.btn-primary:hover {
  background: #15172a;
}
.btn-quiet {
  border-color: var(--line);
  color: var(--ink);
  background: transparent;
}
.btn-quiet:hover {
  background: rgba(35, 37, 58, 0.05);
}
.btn-light {
  background: var(--paper);
  color: var(--ink);
}
.btn-small {
  padding: 10px 20px;
  font-size: 15px;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

a:focus-visible,
.btn:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
}

/* ── Top bar ─────────────────────────────────────────────────────────── */

.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 244, 236, 0.86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.top.is-stuck {
  border-bottom-color: var(--line);
}
.top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: var(--display);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.012em;
}
.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}
.top nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.6vw, 34px);
}
.top nav a:not(.btn) {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
}
.top nav a:not(.btn):hover,
.top nav a:not(.btn)[aria-current='page'] {
  color: var(--ink);
}

/* ── Hero ────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 8vw, 104px) 0 clamp(64px, 9vw, 120px);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero .lede {
  margin: 28px 0 36px;
}
.hero-note {
  margin-top: 22px;
  font-size: 15px;
  color: var(--ink-faint);
}

/* The ripple: the one piece of ornament the site allows itself. */
.ripple {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  border: 1.5px solid rgba(31, 111, 112, 0.16);
}
.ripple::before,
.ripple::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(31, 111, 112, 0.12);
  inset: -16%;
}
.ripple::after {
  inset: -34%;
  border-color: rgba(31, 111, 112, 0.07);
}
.hero .ripple {
  width: 620px;
  height: 620px;
  right: -120px;
  top: 40px;
}

.hero-stage {
  position: relative;
  display: flex;
  justify-content: center;
  min-height: 560px;
}

/* ── Phone, drawn in CSS so the pictures stay in plain language ──────── */

.phone {
  position: relative;
  width: 300px;
  flex: none;
  border-radius: 46px;
  background: var(--ink);
  padding: 10px;
  box-shadow: 0 2px 4px rgba(35, 37, 58, 0.1), 0 40px 70px -30px rgba(35, 37, 58, 0.55);
}
.phone-screen {
  border-radius: 37px;
  background: var(--card);
  overflow: hidden;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  font-size: 14px;
  line-height: 1.45;
}
.phone-screen.is-photo {
  min-height: 0;
  display: block;
}
.phone-bar {
  display: flex;
  justify-content: space-between;
  padding: 14px 24px 6px;
  font-size: 12px;
  font-weight: 600;
}
.phone-title {
  text-align: center;
  padding: 6px 16px 12px;
  border-bottom: 1px solid var(--line);
}
.phone-title b {
  display: block;
  font-size: 14px;
}
.phone-title span {
  font-size: 11.5px;
  color: var(--ink-faint);
}
.chat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 14px 18px;
  flex: 1;
}
.say {
  max-width: 86%;
  padding: 10px 14px;
  border-radius: 18px;
}
.say.me {
  align-self: flex-end;
  background: var(--ink);
  color: var(--paper);
  border-bottom-right-radius: 6px;
}
.say.them {
  align-self: flex-end;
  background: var(--lilac);
  color: #fff;
  border-bottom-right-radius: 6px;
}
.say.agent {
  align-self: flex-start;
  background: var(--paper-deep);
  border-bottom-left-radius: 6px;
}
.who {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-faint);
  margin: 4px 6px -4px;
}
.who.right {
  align-self: flex-end;
}
.plan {
  align-self: stretch;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
}
.plan b {
  display: block;
  margin-bottom: 8px;
}
.plan ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 7px;
}
.plan li {
  display: flex;
  gap: 9px;
  align-items: baseline;
}
.plan li::before {
  content: '';
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid var(--ink-faint);
  transform: translateY(2px);
}
.plan li.done::before {
  background: var(--teal);
  border-color: var(--teal);
  box-shadow: inset 0 0 0 3px var(--card);
}
.plan li.done {
  color: var(--ink-faint);
}
.choice {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.choice span {
  flex: 1;
  text-align: center;
  padding: 9px 8px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  border: 1.5px solid var(--line);
}
.choice span.yes {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

/* Cards that float beside the hero phone. */
.float {
  position: absolute;
  background: var(--card);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.4;
  width: 232px;
}
.float small {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-faint);
  margin-bottom: 4px;
}
.float small img {
  width: 18px;
  height: 18px;
  border-radius: 5px;
}
.float.one {
  left: calc(50% - 362px);
  top: -30px;
}
.float.two {
  right: calc(50% - 362px);
  top: 196px;
}
.working {
  display: grid;
  gap: 8px;
}
.working div {
  display: flex;
  align-items: center;
  gap: 9px;
}
.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: none;
  background: var(--teal);
}
.dot.coral {
  background: var(--coral);
}
.dot.sun {
  background: var(--sun);
}
.dot.pulse {
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  50% {
    opacity: 0.35;
    transform: scale(0.8);
  }
}

/* ── Sections ────────────────────────────────────────────────────────── */

section {
  padding: clamp(72px, 10vw, 136px) 0;
}
.section-head {
  max-width: 760px;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.section-head .lede {
  margin-top: 22px;
}
.section-head.centre {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-head.centre .lede {
  margin-left: auto;
  margin-right: auto;
}

/* Agents line under the hero. */
.agents {
  padding: 0 0 clamp(40px, 6vw, 72px);
}
.agents-inner {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 10px 36px;
  color: var(--ink-soft);
  font-size: 16px;
}
.agents-inner b {
  font-family: var(--display);
  font-weight: 450;
  font-size: 24px;
  color: var(--ink);
  letter-spacing: -0.01em;
}

/* ── A day with Ripul ────────────────────────────────────────────────── */

.day {
  background: var(--night);
  color: var(--on-night);
  border-radius: clamp(28px, 4vw, 56px);
  margin: 0 clamp(8px, 2vw, 24px);
  position: relative;
  overflow: hidden;
}
.day h2 em {
  color: var(--sun);
}
.day .eyebrow {
  color: var(--sun);
}
.day .lede {
  color: var(--on-night-soft);
}
.day .ripple {
  width: 520px;
  height: 520px;
  left: -220px;
  bottom: -220px;
  border-color: rgba(248, 244, 236, 0.1);
}
.day .ripple::before {
  border-color: rgba(248, 244, 236, 0.07);
}
.day .ripple::after {
  border-color: rgba(248, 244, 236, 0.04);
}
.moments {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px) clamp(24px, 4vw, 56px);
  position: relative;
}
.moments li {
  border-top: 1px solid rgba(248, 244, 236, 0.2);
  padding-top: 22px;
}
.moments time {
  display: block;
  font-family: var(--display);
  font-style: italic;
  font-size: 19px;
  color: var(--sun);
  margin-bottom: 12px;
}
.moments h3 {
  margin-bottom: 10px;
}
.moments p {
  color: var(--on-night-soft);
  font-size: 17px;
}

/* ── Three ideas ─────────────────────────────────────────────────────── */

.ideas {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.idea {
  border-radius: var(--radius);
  padding: clamp(26px, 3vw, 38px);
  padding-top: 124px;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
}
.idea h3 {
  margin-bottom: 12px;
}
.idea p {
  color: var(--ink-soft);
  font-size: 17px;
}
.idea.teal {
  background: var(--teal-soft);
}
.idea.coral {
  background: var(--coral-soft);
}
.idea.sun {
  background: var(--sun-soft);
}
.idea .mark {
  position: absolute;
  top: 28px;
  left: 30px;
  font-family: var(--display);
  font-style: italic;
  font-size: 64px;
  line-height: 1;
  opacity: 0.28;
}

/* ── Feature rows ────────────────────────────────────────────────────── */

.rows {
  display: grid;
  gap: clamp(72px, 10vw, 128px);
}
.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}
.row.flip .row-art {
  order: 2;
}
.row-copy h3 {
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.08;
  margin-bottom: 18px;
}
.row-copy p:not(.eyebrow) {
  color: var(--ink-soft);
  font-size: 19px;
  max-width: 30em;
}
.row-copy p:not(.eyebrow) + p {
  margin-top: 14px;
}
.row-art {
  border-radius: clamp(28px, 4vw, 44px);
  min-height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(28px, 4vw, 48px);
  position: relative;
  overflow: hidden;
}
.row-art.teal {
  background: var(--teal-soft);
}
.row-art.coral {
  background: var(--coral-soft);
}
.row-art.sun {
  background: var(--sun-soft);
}
.row-art.deep {
  background: var(--paper-deep);
}
.row-art.tall {
  align-items: flex-start;
  max-height: 560px;
}
.row-art .phone {
  width: 280px;
}

.sheet {
  background: var(--card);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 22px;
  width: min(100%, 360px);
  font-size: 15px;
  line-height: 1.45;
}
.sheet .plan {
  border: 0;
  padding: 0;
  font-size: 15px;
}
.sheet .plan b {
  font-family: var(--display);
  font-weight: 480;
  font-size: 21px;
  margin-bottom: 14px;
}
.sheet .plan li {
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
}
.sheet .plan li:last-child {
  border: 0;
  padding: 0;
}
.remark {
  margin-top: 16px;
  background: var(--sun-soft);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 14px;
}
.remark b {
  display: block;
  font-size: 12px;
  color: var(--ink-soft);
}

.notes {
  display: grid;
  gap: 12px;
  width: min(100%, 360px);
}
.note {
  background: rgba(255, 253, 249, 0.92);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 14px 16px;
  font-size: 15px;
  line-height: 1.4;
}
.note small {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-faint);
  margin-bottom: 4px;
}
.note small img {
  width: 18px;
  height: 18px;
  border-radius: 5px;
}
.note small span {
  margin-left: auto;
  font-weight: 500;
}
.note:nth-child(2) {
  transform: translateX(18px);
}
.note:nth-child(3) {
  transform: translateX(-10px);
}

/* A desktop-size page, shrunk into a phone. */
.mini-site {
  margin: 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: #fff;
}
.mini-site .strip {
  height: 16px;
  background: var(--paper-deep);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 8px;
}
.mini-site .strip i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink-faint);
  opacity: 0.5;
}
.mini-site .page {
  padding: 14px;
  display: grid;
  gap: 10px;
}
.mini-site .nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mini-site .nav b {
  font-family: var(--display);
  font-size: 11px;
}
.mini-site .nav span {
  width: 64px;
  height: 4px;
  border-radius: 4px;
  background: var(--paper-deep);
}
.mini-site .banner {
  border-radius: 8px;
  background: linear-gradient(135deg, var(--coral-soft), var(--sun-soft));
  padding: 16px 12px;
}
.mini-site .banner b {
  display: block;
  font-family: var(--display);
  font-weight: 450;
  font-size: 15px;
  line-height: 1.1;
  margin-bottom: 8px;
}
.mini-site .banner u {
  display: inline-block;
  text-decoration: none;
  font-size: 8px;
  font-weight: 700;
  background: var(--ink);
  color: #fff;
  padding: 4px 9px;
  border-radius: 99px;
}
.mini-site .cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.mini-site .cols span {
  height: 44px;
  border-radius: 6px;
  background: var(--paper-deep);
}
.sizes {
  display: flex;
  gap: 6px;
  padding: 4px 14px 14px;
  flex-wrap: wrap;
}
.sizes span {
  font-size: 11.5px;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: 99px;
  border: 1px solid var(--line);
}
.sizes span.on {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.caption-in-phone {
  padding: 0 16px 16px;
  font-size: 12.5px;
  color: var(--ink-faint);
}

/* Voice: a sound wave, nothing more. */
.voice {
  text-align: center;
  width: min(100%, 360px);
}
.wave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 150px;
}
.wave i {
  width: 9px;
  border-radius: 9px;
  background: var(--coral);
  height: 30%;
  animation: wave 1.5s ease-in-out infinite;
}
.wave i:nth-child(2) { animation-delay: -1.3s; }
.wave i:nth-child(3) { animation-delay: -1.1s; }
.wave i:nth-child(4) { animation-delay: -0.9s; }
.wave i:nth-child(5) { animation-delay: -0.7s; }
.wave i:nth-child(6) { animation-delay: -0.5s; }
.wave i:nth-child(7) { animation-delay: -0.3s; }
.wave i:nth-child(8) { animation-delay: -0.15s; }
.wave i:nth-child(9) { animation-delay: -0.6s; }
@keyframes wave {
  0%, 100% { height: 18%; }
  50% { height: 92%; }
}
.voice q {
  display: block;
  quotes: '\201C' '\201D';
  font-family: var(--display);
  font-style: italic;
  font-size: 22px;
  line-height: 1.3;
  margin-top: 22px;
}

/* ── Together ────────────────────────────────────────────────────────── */

.together {
  background: var(--teal);
  color: var(--on-night);
  border-radius: clamp(28px, 4vw, 56px);
  margin: 0 clamp(8px, 2vw, 24px);
}
.together .eyebrow {
  color: var(--sun);
}
.together h2 em {
  color: var(--sun);
}
.together .lede {
  color: var(--on-night-soft);
}
.together-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}
.points {
  display: grid;
  gap: 30px;
  margin-top: 44px;
}
.points h3 {
  font-size: 25px;
  margin-bottom: 8px;
}
.points p {
  color: var(--on-night-soft);
  font-size: 17px;
  max-width: 30em;
}
.together .phone {
  background: #123f41;
}
.together .phone-screen {
  color: var(--ink);
}

/* ── Privacy ─────────────────────────────────────────────────────────── */

.pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 3vw, 40px);
}
.panel .tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  padding: 5px 13px;
  border-radius: 99px;
  background: var(--teal-soft);
  color: var(--teal);
  margin-bottom: 18px;
}
.panel .tag.coral {
  background: var(--coral-soft);
  color: #a8482b;
}
.panel .tag.sun {
  background: var(--sun-soft);
  color: #8a6212;
}
/* The two panels above taken together: one panel across both columns. */
.panel.whole {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}
.panel.whole p + p {
  margin-top: 12px;
}
.panel.whole .more {
  margin-top: 22px;
}
.panel h3 {
  margin-bottom: 12px;
}
.panel p {
  color: var(--ink-soft);
}

/* ── Story teaser ────────────────────────────────────────────────────── */

.teaser {
  text-align: center;
}
.teaser blockquote {
  margin: 0 auto;
  max-width: 15em;
  font-family: var(--display);
  font-style: italic;
  font-weight: 380;
  font-size: clamp(40px, 6.4vw, 80px);
  line-height: 1.04;
  letter-spacing: -0.02em;
}
.teaser p {
  margin: 28px auto 34px;
  max-width: 34em;
  color: var(--ink-soft);
  font-size: 19px;
}

/* ── Steps + closing call ────────────────────────────────────────────── */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 34px);
}
.steps li::before {
  content: counter(step);
  display: block;
  font-family: var(--display);
  font-style: italic;
  font-size: 44px;
  line-height: 1;
  color: var(--coral);
  margin-bottom: 18px;
}
.steps h3 {
  margin-bottom: 10px;
}
.steps p {
  color: var(--ink-soft);
  font-size: 17px;
}

.closing {
  background: var(--night);
  color: var(--on-night);
  border-radius: clamp(28px, 4vw, 56px);
  margin: 0 clamp(8px, 2vw, 24px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.closing h2 em {
  color: var(--sun);
}
.closing p {
  color: var(--on-night-soft);
  margin: 22px auto 36px;
  max-width: 30em;
  font-size: 20px;
}
.closing .btn-row {
  justify-content: center;
}
.closing .btn-quiet {
  color: var(--on-night);
  border-color: rgba(248, 244, 236, 0.3);
}
.closing .btn-quiet:hover {
  background: rgba(248, 244, 236, 0.08);
}
.closing .ripple {
  width: 700px;
  height: 700px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-color: rgba(248, 244, 236, 0.08);
}
.closing .ripple::before {
  border-color: rgba(248, 244, 236, 0.06);
}
.closing .ripple::after {
  border-color: rgba(248, 244, 236, 0.04);
}
.closing .wrap {
  position: relative;
}

/* ── Footer ──────────────────────────────────────────────────────────── */

footer {
  padding: 56px 0 64px;
  color: var(--ink-soft);
  font-size: 15px;
}
.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
}
.foot a {
  text-decoration: none;
}
.foot a:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* ── Inner pages: story and getting started ──────────────────────────── */

.page-head {
  padding-top: clamp(56px, 8vw, 104px);
  padding-bottom: clamp(32px, 5vw, 56px);
}
.page-head h1 {
  font-size: clamp(42px, 6.4vw, 76px);
  max-width: 12em;
}
.page-head .lede {
  margin-top: 26px;
}

.prose {
  max-width: 680px;
  margin: 0 auto;
  padding-bottom: clamp(72px, 10vw, 128px);
}
.prose p {
  font-size: 21px;
  line-height: 1.65;
  margin-bottom: 1.3em;
}
.prose p.first {
  font-family: var(--display);
  font-size: clamp(26px, 3vw, 32px);
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.prose p.pull {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(28px, 3.6vw, 38px);
  line-height: 1.2;
  color: var(--teal);
  margin: 1.4em 0;
}
.prose figure {
  margin: 56px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.prose figcaption {
  font-size: 15px;
  color: var(--ink-faint);
  text-align: center;
}
.prose .sign {
  font-family: var(--display);
  font-style: italic;
  font-size: 24px;
  margin-top: 2em;
}
.prose a {
  color: var(--teal);
  text-underline-offset: 3px;
}

.guide {
  display: grid;
  gap: 20px;
  padding-bottom: clamp(56px, 8vw, 96px);
}
.guide-step {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: clamp(16px, 3vw, 40px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 4vw, 48px);
}
.guide-step .num {
  font-family: var(--display);
  font-style: italic;
  font-size: 72px;
  line-height: 0.9;
  color: var(--coral);
}
.guide-step h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  margin-bottom: 14px;
}
.guide-step p {
  color: var(--ink-soft);
  max-width: 36em;
}
.guide-step p + p {
  margin-top: 12px;
}
.guide-step .btn-row {
  margin-top: 24px;
}
.apps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}
.app {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  background: var(--paper);
}
.app img {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  flex: none;
}
.app b {
  display: block;
  font-size: 18px;
}
.app span {
  display: block;
  font-size: 15px;
  color: var(--ink-soft);
  margin: 2px 0 12px;
}

.faq {
  max-width: 780px;
  margin: 0 auto;
  padding-bottom: clamp(72px, 10vw, 128px);
}
.faq h2 {
  margin-bottom: 28px;
}
.faq details {
  border-top: 1px solid var(--line);
}
.faq details:last-child {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 22px 40px 22px 0;
  font-family: var(--display);
  font-size: 23px;
  letter-spacing: -0.01em;
  position: relative;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 16px;
  font-family: var(--body);
  font-size: 28px;
  font-weight: 300;
  color: var(--teal);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  color: var(--ink-soft);
  padding: 0 0 24px;
  max-width: 38em;
}
.faq a {
  color: var(--teal);
}

/* ── Arriving on scroll ──────────────────────────────────────────────── */

.js .rise {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.js .rise.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js .rise {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .wave i,
  .dot.pulse {
    animation: none;
  }
  .wave i:nth-child(odd) {
    height: 60%;
  }
  .btn:hover {
    transform: none;
  }
}

/* ── Smaller screens ─────────────────────────────────────────────────── */

@media (max-width: 960px) {
  .hero-grid,
  .row,
  .together-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .row.flip .row-art {
    order: 0;
  }
  .hero-stage {
    margin-top: 16px;
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }
  .float {
    position: static;
    width: 300px;
  }
  .float.one {
    order: -1;
  }
  .hero .ripple {
    top: auto;
    bottom: -80px;
    right: -260px;
  }
  .moments,
  .ideas,
  .steps {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .idea {
    min-height: 260px;
  }
  .together .phone {
    margin: 0 auto;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 17px;
  }
  .top nav a.hide-small {
    display: none;
  }
  .moments,
  .ideas,
  .steps,
  .pair,
  .apps {
    grid-template-columns: minmax(0, 1fr);
  }
  .panel.whole {
    grid-template-columns: minmax(0, 1fr);
  }
  .idea {
    min-height: 0;
  }
  .row-art {
    min-height: 380px;
  }
  .guide-step {
    grid-template-columns: minmax(0, 1fr);
  }
  .guide-step .num {
    font-size: 54px;
  }
  .prose p {
    font-size: 19px;
  }
  .btn {
    white-space: normal;
    text-align: center;
  }
}

section[id] {
  scroll-margin-top: 84px;
}

/* ── Download page ───────────────────────────────────────────────────── */

.dl {
  display: grid;
  gap: 20px;
  padding-bottom: clamp(72px, 10vw, 128px);
}
.dl-block {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: clamp(28px, 4vw, 44px);
  padding: clamp(28px, 5vw, 64px);
}
.dl-head {
  max-width: 720px;
  margin-bottom: clamp(26px, 4vw, 40px);
}
.dl-head h2 {
  font-size: clamp(30px, 4vw, 46px);
}
.fine {
  font-size: 15px;
  color: var(--ink-faint);
  margin-top: 14px;
  max-width: 44em;
}
.apps.big {
  margin-top: 0;
  gap: 20px;
}
.apps.big .app {
  padding: clamp(20px, 3vw, 30px);
  border-radius: 26px;
  gap: 20px;
}
.apps.big .app img {
  width: 72px;
  height: 72px;
  border-radius: 18px;
}
.apps.big .app b {
  font-family: var(--display);
  font-weight: 480;
  font-size: 26px;
  letter-spacing: -0.01em;
}
.apps.big .app span {
  font-size: 16px;
  margin: 6px 0 18px;
}
.steps.slim {
  margin-top: clamp(28px, 4vw, 44px);
}
.steps.slim li {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 22px 0 0;
}
.steps.slim li::before {
  font-size: 34px;
  margin-bottom: 10px;
}
.steps.slim h3 {
  font-size: 23px;
}
.dl-block > .btn-row {
  margin-top: clamp(28px, 4vw, 40px);
}
.aside {
  margin-top: clamp(28px, 4vw, 40px);
  border-top: 1px solid var(--line);
  padding-top: 18px;
  font-size: 16px;
}
.aside summary {
  cursor: pointer;
  color: var(--ink-soft);
  font-weight: 500;
}
.aside p {
  color: var(--ink-soft);
  margin: 14px 0;
  max-width: 40em;
}
.cmd {
  display: flex;
  gap: 10px;
  align-items: center;
  max-width: 560px;
}
.cmd code {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  white-space: nowrap;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 16px;
  font: 14px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
}
.dl-next {
  background: var(--teal);
  color: var(--on-night);
  border-radius: clamp(28px, 4vw, 44px);
  padding: clamp(36px, 6vw, 72px);
  text-align: center;
}
.dl-next h2 em {
  color: var(--sun);
}
.dl-next p {
  color: var(--on-night-soft);
  margin: 18px auto 30px;
  max-width: 30em;
  font-size: 19px;
}

@media (max-width: 680px) {
  .apps.big .app {
    flex-direction: column;
  }
}

.aside h3 {
  font-size: 23px;
  margin-top: 10px;
}
.cmds {
  display: grid;
  grid-template-columns: minmax(0, 620px);
  gap: 16px 20px;
  margin-top: 20px;
}
.cmds b {
  display: block;
  font-size: 15px;
  margin-bottom: 8px;
}
.cmds .cmd {
  max-width: none;
}
@media (max-width: 860px) {
  .cmds {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ── Home page: agent switcher, and plain-language lists ─────────────── */

.sizes.in-chat {
  padding: 2px 0 0;
  justify-content: center;
}
.handover {
  text-align: center;
  font-size: 12px;
  color: var(--ink-faint);
  padding: 0 10px;
}
.dot.lilac {
  background: var(--lilac);
}
.sheet-title {
  display: block;
  font-family: var(--display);
  font-weight: 480;
  font-size: 21px;
  margin-bottom: 6px;
}
.things {
  list-style: none;
  margin: 0;
  padding: 0;
}
.things li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.things li:last-child {
  border: 0;
  padding-bottom: 0;
}
.things b {
  display: block;
  font-weight: 600;
}
.things span {
  display: block;
  font-size: 13px;
  color: var(--ink-faint);
}
@media (max-width: 1100px) {
  .top nav {
    gap: 18px;
  }
}

/* ── Identity: the lockup, and the two brand colours as rare dashes ──── */

.brand {
  gap: 10px;
  font-size: 36px;
  font-weight: 400;
  line-height: 1;
  color: var(--ink);
}
.brand svg {
  width: 0.6em;
  height: 0.6em;
  fill: currentColor;
  transform: translateY(0.06em);
}
::selection {
  background: var(--brand-lime);
  color: #1f1f1f;
}
.working div:first-child .dot {
  background: var(--brand-lime);
  box-shadow: 0 0 0 1.5px var(--brand-green);
}
.foot-brand {
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 20px;
  padding-bottom: 26px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.foot-brand .brand {
  font-size: 30px;
}
.foot-brand p {
  font-family: var(--display);
  font-size: 22px;
  color: var(--ink-soft);
}

/* ── Download: the Terminal line leads ───────────────────────────────── */

.quick {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: clamp(22px, 3.4vw, 36px);
}
.quick .tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  padding: 5px 13px;
  border-radius: 99px;
  background: var(--teal-soft);
  color: var(--teal);
}
.quick .steps.slim {
  margin-top: 30px;
  margin-bottom: 22px;
}
/* The two ways to install, side by side: this Mac does the work, or it only looks in. */
.quick-q {
  margin-top: 18px;
  font-size: 30px;
}
.ways {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}
.way {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(20px, 2.6vw, 28px);
}
.way-who {
  align-self: flex-start;
  font-size: 13px;
  font-weight: 600;
  padding: 5px 13px;
  border-radius: 99px;
  background: var(--teal-soft);
  color: var(--teal);
}
.way-who.coral {
  background: var(--coral-soft);
  color: #a8482b;
}
.way h4 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 27px;
  line-height: 1.1;
  margin: 16px 0 10px;
}
.way p {
  color: var(--ink-soft);
}
.way-list {
  list-style: none;
  margin: 14px 0 20px;
  padding: 0;
  font-size: 15px;
}
.way-list li {
  padding: 8px 0 8px 20px;
  border-top: 1px solid var(--line);
  position: relative;
}
.way-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 16px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
}
.way:last-child .way-list li::before {
  background: var(--coral);
}
/* The whole line shows, so the two can be told apart: it wraps, with Copy beneath. */
.way .cmd {
  margin-top: auto;
  max-width: none;
  flex-direction: column;
  align-items: stretch;
}
.way .cmd.lead code {
  font-size: 13.5px;
  padding: 14px 14px;
  background: var(--paper);
  white-space: normal;
  overflow-wrap: anywhere;
}
@media (max-width: 860px) {
  .ways {
    grid-template-columns: minmax(0, 1fr);
  }
}
.cmd.lead {
  max-width: 620px;
}
.cmd.lead code {
  font-size: 16px;
  padding: 16px 18px;
  background: var(--card);
}
.quick .cmd:not(.lead) {
  margin-top: 12px;
  max-width: 620px;
}
.aside .apps.big {
  margin-top: 22px;
}
.guide-step .cmd.lead code {
  background: var(--paper);
}
.guide-step a:not(.btn) {
  color: var(--teal);
}

/* ── Learn more, and the feature pages ───────────────────────────────── */

.more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-weight: 600;
  font-size: 17px;
  color: var(--teal);
  text-decoration: none;
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 2px;
}
.more::after {
  content: '\2192';
  transition: transform 0.18s ease;
}
.more:hover::after {
  transform: translateX(4px);
}
.more.on-dark {
  color: var(--sun);
}
.pair + .more,
.section-head .more {
  margin-top: 26px;
}
.eyebrow a {
  color: inherit;
  text-decoration: none;
}
.eyebrow a:hover {
  text-decoration: underline;
}

.fx {
  padding-bottom: clamp(72px, 10vw, 128px);
}
.fx-block {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr);
  gap: clamp(16px, 4vw, 64px);
  padding: clamp(32px, 5vw, 56px) 0;
  border-top: 1px solid var(--line);
}
.fx-block h2 {
  font-size: clamp(28px, 3.2vw, 38px);
  line-height: 1.1;
}
.fx-block p {
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 36em;
}
.fx-block p + p {
  margin-top: 14px;
}
.fx-points {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.fx-block p + .fx-points {
  margin-top: 26px;
}
.fx-points div {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px 22px;
}
.fx-points dt {
  font-weight: 600;
  margin-bottom: 4px;
}
.fx-points dd {
  margin: 0;
  font-size: 16px;
  color: var(--ink-soft);
}
.fx-notes {
  background: var(--paper-deep);
  border-radius: clamp(28px, 4vw, 44px);
  padding: clamp(28px, 5vw, 56px);
  margin-top: clamp(16px, 3vw, 32px);
}
.fx-notes h2 {
  font-size: clamp(28px, 3.2vw, 38px);
  margin-bottom: 26px;
}
.fx-note-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px 36px;
}
.fx-note-grid h3 {
  font-size: 24px;
  margin-bottom: 8px;
}
.fx-note-grid p {
  font-size: 16px;
  color: var(--ink-soft);
}
.fx-next {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  gap: 24px;
  align-items: center;
  margin-top: 20px;
}
.fx-next-card,
.fx-index-card {
  display: block;
  text-decoration: none;
  background: var(--night);
  color: var(--on-night);
  border-radius: var(--radius);
  padding: clamp(24px, 3.4vw, 38px);
  transition: transform 0.18s ease;
}
.fx-next-card:hover,
.fx-index-card:hover {
  transform: translateY(-3px);
}
.fx-next-card span,
.fx-index-card span {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sun);
}
.fx-next-card b,
.fx-index-card b {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.1;
  margin: 10px 0 8px;
}
.fx-next-card p,
.fx-index-card p {
  color: var(--on-night-soft);
  font-size: 16px;
}
.fx-next-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.fx-index {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.fx-index-card {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  min-height: 220px;
}
.fx-index-card span {
  color: var(--teal);
}
.fx-index-card p {
  color: var(--ink-soft);
}

@media (max-width: 960px) {
  .fx-index,
  .fx-note-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 680px) {
  .fx-block,
  .fx-next,
  .fx-points,
  .fx-index,
  .fx-note-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .fx-index-card {
    min-height: 0;
  }
  .fx-block p {
    font-size: 17px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .fx-next-card:hover,
  .fx-index-card:hover {
    transform: none;
  }
}

/* ── Help guides (generated by tools/help.ts) ────────────────────────── */

@view-transition {
  navigation: auto;
}

.help-head h1 {
  max-width: 16em;
}
.help-minutes {
  margin-top: 18px;
  font-size: 15px;
  color: var(--ink-faint);
}
.help-body {
  max-width: 720px;
  padding-bottom: clamp(40px, 6vw, 72px);
}
.help-body > p {
  font-size: 19px;
  line-height: 1.7;
  margin-bottom: 1.1em;
}
.help-body h2 {
  font-size: clamp(28px, 3.2vw, 36px);
  line-height: 1.12;
  margin: 1.7em 0 0.6em;
}
.help-bullets,
.help-steps {
  margin: 0 0 1.4em;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}
.help-bullets li {
  position: relative;
  padding-left: 24px;
  font-size: 18px;
  color: var(--ink-soft);
}
.help-bullets li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
}
.help-steps {
  counter-reset: help-step;
}
.help-steps li {
  counter-increment: help-step;
  position: relative;
  padding: 18px 20px 18px 66px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
}
.help-steps li::before {
  content: counter(help-step);
  position: absolute;
  left: 22px;
  top: 12px;
  font-family: var(--display);
  font-style: italic;
  font-size: 34px;
  color: var(--coral);
}
.help-steps b,
.help-rows dt {
  display: block;
  font-weight: 600;
  margin-bottom: 3px;
}
.help-steps span,
.help-rows dd {
  display: block;
  margin: 0;
  font-size: 16.5px;
  color: var(--ink-soft);
}
.help-rows {
  margin: 0 0 1.4em;
  border-top: 1px solid var(--line);
}
.help-rows div {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.help-callout {
  margin: 0 0 1.4em;
  border-radius: 20px;
  padding: 18px 22px;
  background: var(--teal-soft);
}
.help-callout.note {
  background: var(--paper-deep);
}
.help-callout.warn {
  background: var(--sun-soft);
}
.help-callout b {
  display: block;
  margin-bottom: 4px;
}
.help-callout p {
  font-size: 16.5px;
}
.help-figure {
  margin: 2em 0;
  background: var(--paper-deep);
  border-radius: 28px;
  padding: clamp(20px, 4vw, 36px);
}
.help-figure img {
  margin: 0 auto;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.help-figure.phone img {
  width: min(100%, 300px);
  border-radius: 26px;
  box-shadow: var(--shadow);
}
.help-figure figcaption {
  margin-top: 20px;
  font-size: 15px;
  color: var(--ink-soft);
}
.help-figure figcaption b {
  display: block;
  font-size: 18px;
  color: var(--ink);
  margin-bottom: 4px;
}
.help-card {
  display: block;
  text-decoration: none;
  margin: 0 0 1.4em;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px 24px;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.help-card:hover {
  transform: translateY(-2px);
  border-color: var(--teal);
}
.help-card span {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
}
.help-card b {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.15;
  margin: 6px 0 4px;
}
.help-card p {
  font-size: 16px;
  color: var(--ink-soft);
}
.help-after {
  max-width: 720px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding-bottom: clamp(72px, 10vw, 128px);
}
.help-after .help-card {
  margin: 0;
}
.help-index {
  padding-bottom: clamp(72px, 10vw, 128px);
  display: grid;
  gap: clamp(48px, 7vw, 80px);
}
.help-index h2 {
  font-size: clamp(30px, 3.6vw, 42px);
  margin-bottom: 10px;
}
.help-index .steps {
  margin-top: 22px;
}
.help-index .steps a {
  text-decoration: none;
}
.help-index .steps a:hover {
  color: var(--teal);
}
.help-blurb {
  color: var(--ink-soft);
  margin-bottom: 20px;
}
.help-list {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
}
.help-list a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 20px;
  padding: 18px 24px;
  text-decoration: none;
  border-top: 1px solid var(--line);
}
.help-list a:first-child {
  border-top: 0;
}
.help-list a:hover {
  background: var(--paper);
}
.help-list b {
  font-weight: 600;
}
.help-list span {
  grid-column: 1;
  font-size: 16px;
  color: var(--ink-soft);
}
.help-list i {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  font-style: normal;
  font-size: 14px;
  color: var(--ink-faint);
}
.help-index .help-card {
  max-width: 720px;
  margin: 0;
}

/* Inside the apps' Help sheet: the sheet has its own title bar, and follows
   the device's light or dark appearance. */
.in-sheet .top,
.in-sheet footer,
.in-sheet .skip,
.in-sheet .help-head .eyebrow {
  display: none;
}
.in-sheet .page-head {
  padding-top: 20px;
}
.in-sheet .help-after,
.in-sheet .help-index {
  padding-bottom: 48px;
}
.theme-dark {
  --paper: #1b1d2e;
  --paper-deep: #2a2d45;
  --card: #262940;
  --ink: #f8f4ec;
  --ink-soft: rgba(248, 244, 236, 0.74);
  --ink-faint: rgba(248, 244, 236, 0.5);
  --line: rgba(248, 244, 236, 0.14);
  --teal: #62b9b4;
  --teal-soft: rgba(98, 185, 180, 0.16);
  --coral: #f0947a;
  --sun-soft: rgba(241, 197, 111, 0.16);
  color-scheme: dark;
}
.theme-dark .btn-primary {
  background: var(--ink);
  color: #23253a;
}
.theme-dark .top {
  background: rgba(27, 29, 46, 0.86);
}

@media (max-width: 680px) {
  .help-after {
    grid-template-columns: minmax(0, 1fr);
  }
  .help-body > p {
    font-size: 17.5px;
  }
}

/* Screen grabs on the feature pages. */
.fx-shots {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 28px;
  padding: clamp(20px, 3vw, 36px);
  background: var(--paper-deep);
  border-radius: 28px;
  justify-content: center;
  align-items: flex-start;
}
.fx-shot {
  margin: 0;
  flex: 0 1 250px;
}
.fx-shot.plain {
  flex-basis: 420px;
}
.fx-shot-frame {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.fx-shot.tall .fx-shot-frame {
  border: 8px solid var(--night);
  border-radius: 38px;
  background: var(--night);
  box-shadow: var(--shadow);
}
.fx-shot.tall img {
  border-radius: 30px;
}
.fx-shot figcaption {
  margin-top: 14px;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--ink-soft);
  text-align: center;
}
.fx-shots + .fx-points {
  margin-top: 20px;
}

/* An open iPhone Duo, drawn: wider than a phone, with its fold down the middle. */
.duo {
  position: relative;
  width: min(100%, 380px);
  aspect-ratio: 2007 / 2853;
  background: var(--ink);
  border-radius: 36px;
  padding: 9px;
  box-shadow: 0 2px 4px rgba(35, 37, 58, 0.1), 0 40px 70px -30px rgba(35, 37, 58, 0.55);
}
.duo-screen {
  position: relative;
  height: 100%;
  border-radius: 28px;
  background: var(--card);
  color: var(--ink);
  overflow: hidden;
  padding: 6px 18px 18px;
  font-size: 14.5px;
}
.duo-screen::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: linear-gradient(rgba(35, 37, 58, 0), rgba(35, 37, 58, 0.1) 20%, rgba(35, 37, 58, 0.1) 80%, rgba(35, 37, 58, 0));
}
.duo-screen .phone-bar {
  padding: 12px 4px 10px;
  font-size: 13px;
}
.duo-new {
  display: inline-block;
  font-weight: 600;
  font-size: 13.5px;
  padding: 8px 14px;
  border-radius: 99px;
  border: 1px solid var(--line);
  margin-bottom: 6px;
}

.fx-shot.fold {
  flex-basis: 340px;
}
.fx-shot.fold .fx-shot-frame {
  border: 9px solid var(--night);
  border-radius: 34px;
  background: var(--night);
  box-shadow: var(--shadow);
}
.fx-shot.fold img {
  border-radius: 25px;
}
.duo-screen.is-photo {
  padding: 0;
}
.duo-screen.is-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.fx-shot.fold.wide {
  flex-basis: 520px;
}
/* The Duo held sideways. */
.duo.wide {
  width: min(100%, 560px);
  aspect-ratio: 2853 / 2007;
}
.duo-screen.is-photo::after {
  display: none;
}

/* ── A story told in recordings (feature pages) ──────────────────────── */

.story {
  padding-bottom: clamp(48px, 7vw, 96px);
}
.story-head {
  max-width: 820px;
  padding: clamp(24px, 4vw, 48px) 0 clamp(32px, 5vw, 56px);
  border-top: 1px solid var(--line);
}
.story-head h2 {
  font-size: clamp(34px, 4.6vw, 56px);
}
.story-head .lede {
  margin-top: 20px;
}
.story-step {
  padding: clamp(28px, 5vw, 56px) 0;
  border-top: 1px solid var(--line);
}
.story-copy {
  position: relative;
  max-width: 760px;
  padding-left: 76px;
  margin-bottom: clamp(22px, 3vw, 34px);
}
.story-num {
  position: absolute;
  left: 0;
  top: -8px;
  font-family: var(--display);
  font-style: italic;
  font-size: 76px;
  line-height: 1;
  color: var(--coral);
}
.story-copy .eyebrow {
  margin-bottom: 8px;
}
.story-copy h3 {
  font-size: clamp(30px, 3.6vw, 42px);
  margin-bottom: 12px;
}
.story-copy p:not(.eyebrow) {
  font-size: 19px;
  color: var(--ink-soft);
}
/* The recordings are shown large: full width of the page. */
.story-film {
  border-radius: clamp(20px, 3vw, 36px);
  background: var(--paper-deep);
  padding: clamp(12px, 3vw, 40px);
  display: flex;
  justify-content: center;
}
.story-film video {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
}
.story-film.window video {
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.story-film.on-duo {
  background: var(--teal-soft);
}
.story-film .duo.wide {
  width: min(100%, 980px);
  aspect-ratio: 1280 / 902;
  border-radius: 40px;
  padding: 12px;
}
.story-film .duo-screen {
  border-radius: 30px;
}
.story-film .duo-screen video {
  height: 100%;
  object-fit: cover;
  border-radius: 30px;
}
.story-after {
  max-width: 21em;
  margin: clamp(24px, 4vw, 48px) 0 0;
  font-family: var(--display);
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.18;
  color: var(--teal);
}
@media (max-width: 680px) {
  .story-copy {
    padding-left: 0;
  }
  .story-num {
    position: static;
    display: block;
    font-size: 54px;
    margin-bottom: 8px;
  }
  .story-film .duo.wide {
    border-radius: 22px;
    padding: 6px;
  }
  .story-film .duo-screen,
  .story-film .duo-screen video {
    border-radius: 17px;
  }
}
/* The Duo recording: the frame sets the size, the film fills it. */
.story-film.on-duo {
  display: block;
}
.story-film .duo.wide {
  margin: 0 auto;
  height: auto;
}
.story-film .duo-screen.is-photo {
  position: relative;
  height: 100%;
  padding: 0;
}
.story-film .duo-screen video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ── Phones: nothing may push the page wider than the screen ─────────── */

/* A grid with no columns named sizes its one column to the widest thing in
   it. A line of code that must not wrap is very wide, and Safari on iPhone
   (which every iPhone browser uses) then widens the whole page and shrinks it
   to fit. Naming the column lets the code scroll inside its own box. */
.dl,
.guide,
.help-index,
.rows,
.points,
.notes,
.working,
.cmds {
  grid-template-columns: minmax(0, 1fr);
}
.cmd,
.quick,
.dl-block,
.guide-step > div,
.aside {
  min-width: 0;
  max-width: 100%;
}
.cmd.lead,
.quick .cmd:not(.lead) {
  max-width: min(100%, 620px);
}
.cmd code {
  max-width: 100%;
}

.hero-note a {
  color: inherit;
}

/* ── The Ripul Library (js/library.js draws it) ──────────────────────── */

.lib-head {
  padding-left: 0;
  padding-right: 0;
}
.lib-find {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 26px;
}
.lib-find input,
.lib-form input:not([type='checkbox']),
.lib-form select,
.lib-form textarea {
  width: 100%;
  max-width: 560px;
  font: inherit;
  color: var(--ink);
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 14px 18px;
}
.lib-find input {
  max-width: 620px;
  border-radius: 999px;
  padding: 16px 24px;
}
.lib-find input:focus-visible,
.lib-form input:focus-visible,
.lib-form select:focus-visible,
.lib-form textarea:focus-visible,
.lib-shelf:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 2px;
}
.lib-shelves {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.lib-shelf {
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  background: transparent;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 9px 18px;
  cursor: pointer;
}
.lib-shelf:hover {
  background: rgba(35, 37, 58, 0.05);
}
.lib-shelf[aria-pressed='true'] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.lib-status {
  color: var(--ink-soft);
  min-height: 1.6em;
  white-space: pre-line;
}
.lib-status:empty {
  display: none;
}
.lib-card {
  display: flex;
  flex-direction: column;
  min-height: 200px;
}
.lib-card b {
  overflow-wrap: anywhere;
}
.lib-card p {
  overflow-wrap: anywhere;
}
.lib-card .lib-by {
  margin-top: auto;
  padding-top: 18px;
  font-size: 14px;
  color: var(--ink-faint);
}
.lib-more {
  display: flex;
  justify-content: center;
  padding: 32px 0 0;
}
.lib-note {
  margin: clamp(48px, 7vw, 80px) 0 clamp(72px, 10vw, 128px);
  padding-top: 26px;
  border-top: 1px solid var(--line);
  max-width: 46em;
  font-size: 16px;
  color: var(--ink-soft);
}
.lib-note p + p {
  margin-top: 10px;
}
.lib-note a,
.lib-trust a {
  color: var(--teal);
  text-underline-offset: 3px;
}
.lib-back::before {
  content: '\2190\00a0';
}
.lib-head h1 {
  overflow-wrap: anywhere;
}
.lib-trust {
  margin-top: 18px;
  max-width: 44em;
  font-size: 15px;
  color: var(--ink-faint);
}
.lib-actions {
  margin-top: 22px;
}
.lib-stage {
  padding-bottom: clamp(72px, 10vw, 128px);
}
/* A page somebody else wrote: framed plainly, on white, so it reads as a thing apart. */
.lib-frame iframe {
  display: block;
  width: 100%;
  height: max(560px, 78vh);
  border: 1.5px solid var(--line);
  border-radius: 24px;
  background: #fff;
  color-scheme: light;
}
.lib-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  max-width: 640px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 4vw, 40px);
}
.lib-form h2 {
  font-size: 28px;
  margin-bottom: 6px;
}
.lib-form label {
  font-weight: 600;
  font-size: 15px;
  margin-top: 10px;
}
.lib-form .lib-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 17px;
}
.lib-form .lib-check input {
  width: 20px;
  height: 20px;
  accent-color: var(--teal);
}
.lib-form .btn-row {
  margin-top: 16px;
}
.lib-about {
  color: var(--ink-soft);
}
.lib-report {
  margin-top: 22px;
}
.lib-error {
  color: #a8482b;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.lib-error:empty {
  display: none;
}
.lib-frame .lib-error {
  margin-top: 14px;
}
.lib-result {
  margin: 14px 0 0;
}
.lib-result:empty {
  display: none;
}
.lib-result div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.lib-result dt {
  color: var(--ink-soft);
}
.lib-result dd {
  margin: 0;
  font-family: var(--display);
  font-size: 26px;
  line-height: 1.1;
  text-align: right;
}
button.btn {
  cursor: pointer;
}
button.btn:disabled {
  opacity: 0.55;
  cursor: default;
}

/* Legal pages (the privacy policy): long text, so smaller than the story's prose, with section heads and lists. */
.prose.legal p,
.prose.legal li {
  font-size: 18px;
  line-height: 1.65;
}
.prose.legal h2 {
  font-size: clamp(28px, 3.4vw, 36px);
  margin: 1.8em 0 0.6em;
}
.prose.legal ul {
  margin: 0 0 1.3em;
  padding-left: 1.2em;
}
.prose.legal li {
  margin-bottom: 0.6em;
}
.prose.legal code {
  font-size: 0.9em;
}
.prose.legal mark {
  background: var(--teal-soft);
  color: var(--ink);
  padding: 0 0.2em;
}
