/* 3 website. Design tokens first; every rule below uses tokens only (no raw colors or sizes). */

@font-face { font-family: 'Instrument Serif'; src: url('fonts/instrument-serif-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('fonts/dm-sans-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('fonts/dm-sans-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('fonts/dm-sans-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'DM Mono'; src: url('fonts/dm-mono-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'DM Mono'; src: url('fonts/dm-mono-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }

:root {
  color-scheme: light dark;
  /* Day palette, the same as the app. */
  --page: #cfe1f0;        /* sky: hero bands */
  --panel: #ffffff;       /* alternate bands */
  --card: #e9f2f9;        /* cards on a panel */
  --card-on-page: #e9f2f9;/* cards on the sky */
  --field: #ffffff;
  --text: #0b0b0b;
  --muted: #4a4a4a;
  --subtle: #4f5e6b;
  --border: #b5c4d1;
  --border-input: #647889;
  --accent: #f2694c;
  --on-accent: #0b0b0b;
  --accent-text: #953d19;
  --inv-bg: #0b0b0b;
  --inv-text: #f3f1ed;
  --inv-muted: #c4c2bc;
  --inv-field: #161614;
  --inv-border: #7a7a74;
  --danger: #b3261e;
  --ok: #0f6236;
  --mark: #e9f2f9;
  --mark-stroke: transparent;
  --mark-shadow: rgba(11, 11, 11, 0.18);
  --dot-shadow: rgba(11, 11, 11, 0.25);
  --shadow: 0 12px 32px rgba(11, 11, 11, 0.10);
  --phone-frame: #0b0b0b;
  --tile-a: #dbe8f3;
  --tile-b: #ffffff;

  --font-serif: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  --font-sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'DM Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --t-hero: clamp(3.25rem, 1.9rem + 6vw, 6rem);
  --t-h1: clamp(2.75rem, 1.9rem + 3.8vw, 4.5rem);
  --t-h2: clamp(2.125rem, 1.6rem + 2.2vw, 3.25rem);
  --t-h3: 1.625rem;
  --t-lead: 1.1875rem;
  --t-body: 1.0625rem;
  --t-small: 0.9375rem;
  --t-fine: 0.8125rem;
  --t-num: 2.5rem;
  --lh-tight: 1.02;
  --lh-head: 1.1;
  --lh-body: 1.55;
  --track-kicker: 0.075em;
  --track-tight: -0.01em;

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;
  --band-y: clamp(56px, 4vw + 40px, 104px);
  --gutter: clamp(20px, 4vw, 40px);
  --maxw: 1120px;
  --measure: 62ch;

  --r-s: 14px; --r-m: 20px; --r-l: 28px; --r-pill: 999px; --r-phone: 36px;
  --line: 1.5px;
  --hair: 1px;
  --tap: 44px;
  --header-h: 76px;
  --btn-h: 56px;
  --dot: 10px;
  --focus: 3px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --fast: 150ms;
}

/* Night palette, the same as the app. Follows the device setting. */
@media (prefers-color-scheme: dark) {
  :root {
    --page: #0b0b0b;
    --panel: #161614;
    --card: #2a2a28;
    --card-on-page: #161614;
    --field: #161614;
    --text: #f3f1ed;
    --muted: #c4c2bc;
    --subtle: #a8a8a2;
    --border: #2e2e2e;
    --border-input: #7a7a74;
    --accent-text: #f47c62;
    --inv-bg: #f3f1ed;
    --inv-text: #0b0b0b;
    --inv-muted: #4a4a4a;
    --inv-field: #ffffff;
    --inv-border: #647889;
    --danger: #ff8f85;
    --ok: #4cc98a;
    --mark: transparent;
    --mark-stroke: #f3f1ed;
    --mark-shadow: transparent;
    --dot-shadow: transparent;
    --shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
    --phone-frame: #3a3a38;
    --tile-a: #242422;
    --tile-b: #2e2e2c;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--text); font-family: var(--font-sans); font-size: var(--t-body); line-height: var(--lh-body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--accent-text); text-underline-offset: 0.18em; }
a:hover { color: var(--text); }
:focus-visible { outline: var(--focus) solid var(--text); outline-offset: var(--focus); border-radius: var(--s-1); }
.band--ink :focus-visible { outline-color: var(--inv-text); }
[hidden] { display: none !important; }

.skip { position: absolute; left: var(--s-4); top: var(--s-4); z-index: 10; padding: var(--s-3) var(--s-4); border-radius: var(--r-s); background: var(--inv-bg); color: var(--inv-text); transform: translateY(-200%); }
.skip:focus { transform: none; color: var(--inv-text); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.wrap { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.serif { font-family: var(--font-serif); font-weight: 400; }
.h1 { font-family: var(--font-serif); font-weight: 400; font-size: var(--t-h1); line-height: var(--lh-tight); letter-spacing: var(--track-tight); text-wrap: balance; }
.h2 { font-family: var(--font-serif); font-weight: 400; font-size: var(--t-h2); line-height: var(--lh-head); letter-spacing: var(--track-tight); text-wrap: balance; }
.h3 { font-family: var(--font-serif); font-weight: 400; font-size: var(--t-h3); line-height: var(--lh-head); }
.lead { font-size: var(--t-lead); line-height: var(--lh-body); color: var(--muted); max-width: var(--measure); }
.body { color: var(--muted); max-width: var(--measure); }
.strong { font-weight: 600; color: var(--text); }
.small { font-size: var(--t-small); color: var(--subtle); }
.kicker { font-family: var(--font-mono); font-weight: 500; font-size: var(--t-fine); letter-spacing: var(--track-kicker); text-transform: uppercase; color: var(--accent-text); }
.kicker--quiet { color: var(--subtle); }
.stack > * + * { margin-top: var(--s-4); }
.stack-l > * + * { margin-top: var(--s-5); }
.center { text-align: center; }
.center .lead, .center .body { margin-inline: auto; }

/* ---------- Header ---------- */
.site-header { background: var(--page); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); min-height: var(--header-h); }
.logo { font-family: var(--font-serif); font-size: 2.25rem; line-height: 1; color: var(--text); text-decoration: none; padding-block: var(--s-2); }
.logo:hover { color: var(--text); }
.logo .dotc { color: var(--accent); }
.nav { display: flex; align-items: center; gap: var(--s-2); }
.nav ul { display: flex; align-items: center; gap: var(--s-1); }
.nav a:not(.btn) { display: inline-flex; align-items: center; min-height: var(--tap); padding-inline: var(--s-3); border-radius: var(--r-pill); color: var(--text); font-weight: 500; font-size: var(--t-small); text-decoration: none; }
.nav a:not(.btn):hover { background: var(--card-on-page); }
.nav a[aria-current='page'] { text-decoration: underline; text-decoration-thickness: var(--line); text-underline-offset: 0.4em; }
.menu-btn { display: none; align-items: center; justify-content: center; gap: var(--s-2); min-height: var(--tap); padding-inline: var(--s-4); border: var(--line) solid var(--text); border-radius: var(--r-pill); background: transparent; color: var(--text); font: 600 var(--t-small) var(--font-sans); cursor: pointer; }

@media (max-width: 899px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: var(--header-h); z-index: 5; flex-direction: column; align-items: stretch; gap: var(--s-4); padding: var(--s-4) var(--gutter) var(--s-5); background: var(--page); border-bottom: var(--hair) solid var(--border); box-shadow: var(--shadow); }
  .nav.is-open { display: flex; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav a:not(.btn) { min-height: 52px; font-size: var(--t-body); border-radius: var(--r-s); }
  .site-header { position: relative; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); min-height: var(--btn-h); padding: 0 var(--s-6); border: var(--line) solid transparent; border-radius: var(--r-pill); font: 600 1rem/1.25 var(--font-sans); text-decoration: none; cursor: pointer; transition: transform var(--fast) var(--ease), opacity var(--fast) var(--ease); }
.btn:hover { opacity: 0.88; }
.btn:active { transform: scale(0.98); }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { color: var(--on-accent); }
.btn--inverse { background: var(--inv-bg); color: var(--inv-text); }
.btn--inverse:hover { color: var(--inv-text); }
.btn--secondary { background: transparent; color: var(--text); border-color: var(--text); }
.btn--secondary:hover { color: var(--text); }
.btn--small { min-height: var(--tap); padding-inline: var(--s-5); font-size: var(--t-small); }
.btn[disabled] { opacity: 0.6; cursor: default; }
.band--ink .btn--secondary { color: var(--inv-text); border-color: var(--inv-text); }
.link-arrow { display: inline-flex; align-items: center; gap: var(--s-2); min-height: var(--tap); font-weight: 600; color: var(--accent-text); text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }
.actions { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }

/* ---------- Bands ---------- */
.band { padding-block: var(--band-y); }
.band--sky { background: var(--page); }
.band--panel { background: var(--panel); }
.band--ink { background: var(--inv-bg); color: var(--inv-text); }
.band--ink .lead, .band--ink .body, .band--ink .small { color: var(--inv-muted); }
.band--ink .kicker { color: var(--inv-muted); }
.band--tight { padding-block: var(--s-7); }
.band-head { max-width: 46rem; }
.band-head.center { margin-inline: auto; }
.band-head + * { margin-top: var(--s-7); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--page); padding-block: clamp(40px, 6vw, 88px) var(--band-y); }
.hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: var(--s-7); align-items: center; }
.hero__title { font-family: var(--font-serif); font-weight: 400; font-size: var(--t-hero); line-height: 0.98; letter-spacing: -0.015em; text-wrap: balance; }
.hero__text > * + * { margin-top: var(--s-5); }
.hero__text .lead { color: var(--text); }
.hero--page .hero__grid { grid-template-columns: minmax(0, 1fr); }
.hero--page .hero__text { max-width: 50rem; }

/* The embossed "3" with its coral dot, as on the app's welcome screen. Decorative. */
.mark3 { position: relative; justify-self: center; width: min(100%, 420px); aspect-ratio: 1 / 1.05; }
.mark3__glyph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--font-serif); font-size: clamp(280px, 34vw, 470px); line-height: 0.8; color: var(--mark); -webkit-text-stroke: 2px var(--mark-stroke); text-shadow: 0 16px 22px var(--mark-shadow); padding-left: 12%; user-select: none; }
.mark3__dot { position: absolute; left: 14%; bottom: 24%; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); box-shadow: 0 6px 8px var(--dot-shadow); }
.mark3__dot::before, .mark3__dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: var(--line) solid var(--accent); opacity: 0; animation: ripple 2.8s var(--ease) 0.4s 2; }
.mark3__dot::after { animation-delay: 1s; }
@keyframes ripple { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(9); opacity: 0; } }

@media (max-width: 899px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .mark3 { order: -1; width: 200px; justify-self: start; margin-bottom: calc(-1 * var(--s-5)); }
  .mark3__glyph { font-size: 220px; justify-content: flex-start; padding-left: 22%; }
  .mark3__dot { width: 16px; height: 16px; }
}

/* ---------- Forms ---------- */
.field { display: grid; gap: var(--s-2); }
.field label, .label { font-weight: 600; font-size: 0.75rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--subtle); }
.field .opt { font-weight: 400; text-transform: none; letter-spacing: 0; }
.input, .select, .textarea { width: 100%; min-height: var(--btn-h); padding: 0 var(--s-4); border: var(--line) solid var(--border-input); border-radius: var(--r-s); background: var(--field); color: var(--text); font: 400 var(--t-body) var(--font-sans); }
.textarea { min-height: 150px; padding-block: var(--s-4); resize: vertical; line-height: var(--lh-body); }
.input::placeholder, .textarea::placeholder { color: var(--subtle); opacity: 1; }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { outline-offset: 1px; border-radius: var(--r-s); }
.input[aria-invalid='true'], .textarea[aria-invalid='true'] { border-color: var(--danger); }
.form { display: grid; gap: var(--s-4); }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }
.form__msg { min-height: 1.5em; font-size: var(--t-small); font-weight: 500; color: var(--danger); }
.form__done { display: grid; gap: var(--s-2); padding: var(--s-5); border-radius: var(--r-m); background: var(--card-on-page); }
.form__done .h3 { display: flex; align-items: center; gap: var(--s-3); }
.tick { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--ok); color: var(--panel); display: inline-flex; align-items: center; justify-content: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.waitlist { display: grid; gap: var(--s-3); max-width: 34rem; }
.waitlist__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-3); }
.band--ink .waitlist { margin-inline: auto; }
.band--ink .input { background: var(--inv-field); border-color: var(--inv-border); color: var(--inv-text); }
.band--ink .input::placeholder { color: var(--inv-muted); }
.band--ink .form__done { background: var(--inv-field); color: var(--inv-text); text-align: left; }
.band--ink .tick { color: var(--inv-field); }
.band--ink .label { color: var(--inv-muted); }
.band--ink .form__msg { color: var(--inv-text); }
.panel-form { padding: clamp(24px, 4vw, 40px); border-radius: var(--r-l); background: var(--page); }
.panel-form .form__done { background: var(--panel); }

@media (max-width: 599px) {
  .waitlist__row, .form__row { grid-template-columns: minmax(0, 1fr); }
  .waitlist__row .btn { width: 100%; }
}

/* ---------- Split (text beside a photo) ---------- */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 6vw, 80px); align-items: center; }
.split--flip .split__media { order: 2; }
.split__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-l); }
.split__media--wide img { aspect-ratio: 5 / 4; }
.pos-hands { object-position: 45% 50%; }
.pos-cafe { object-position: 50% 42%; }
@media (max-width: 799px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .split--flip .split__media { order: 0; }
  .split__media img { aspect-ratio: 4 / 3; }
}

/* ---------- Cards and grids ---------- */
.grid { display: grid; gap: var(--s-4); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 999px) { .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .grid--4, .grid--3, .grid--2 { grid-template-columns: minmax(0, 1fr); } }

.card { padding: var(--s-5); border-radius: var(--r-m); background: var(--card); }
.band--sky .card { background: var(--card-on-page); }
.card > * + * { margin-top: var(--s-2); }
.card p { color: var(--muted); font-size: var(--t-small); line-height: 1.5; }
.card__title { font-weight: 600; font-size: var(--t-lead); line-height: 1.3; }
.card__num { font-family: var(--font-mono); font-weight: 500; font-size: var(--t-small); color: var(--accent-text); }
.card--accent, .band--sky .card--accent { background: var(--accent); color: var(--on-accent); }
.card--accent p, .card--accent .card__num { color: var(--on-accent); }
.card--line { background: transparent; border: var(--line) solid var(--border); }

/* A list with coral dots. */
.dots { display: grid; gap: var(--s-4); }
.dots li { display: grid; grid-template-columns: var(--dot) minmax(0, 1fr); gap: var(--s-3); }
.dots li::before { content: ''; width: var(--dot); height: var(--dot); margin-top: 0.5em; border-radius: 50%; background: var(--accent); }
.dots--open li::before { background: transparent; border: var(--line) solid var(--text); }
.dots .dots__title { font-weight: 600; }
.dots p { color: var(--muted); font-size: var(--t-small); line-height: 1.5; }

.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chip { padding: var(--s-2) var(--s-4); border: var(--line) solid var(--border); border-radius: var(--r-pill); font-size: var(--t-small); font-weight: 500; }

/* Numbered steps and rules. */
.steps { display: grid; gap: 0; counter-reset: step; }
.steps > li { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: var(--s-5); padding-block: var(--s-6); border-top: var(--hair) solid var(--border); counter-increment: step; }
.steps > li:last-child { border-bottom: var(--hair) solid var(--border); }
.steps > li::before { content: counter(step, decimal-leading-zero); font-family: var(--font-mono); font-weight: 500; font-size: var(--t-num); line-height: 1; color: var(--accent-text); }
.steps .h3 + * { margin-top: var(--s-2); }
.steps p { color: var(--muted); max-width: var(--measure); }
.steps p + p { margin-top: var(--s-3); }
@media (max-width: 599px) { .steps > li { grid-template-columns: minmax(0, 1fr); gap: var(--s-3); } }

.strikes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); }
@media (max-width: 799px) { .strikes { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Phone drawings (illustrations of the app, drawn here) ---------- */
.phones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 4vw, 48px); align-items: start; }
.phone { display: grid; gap: var(--s-4); justify-items: center; text-align: center; }
.phone__body { width: min(100%, 260px); aspect-ratio: 9 / 18.5; padding: var(--s-2); border-radius: var(--r-phone); background: var(--phone-frame); box-shadow: var(--shadow); }
.phone__screen { height: 100%; display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-5) var(--s-4) var(--s-4); border-radius: var(--r-l); background: var(--page); color: var(--text); text-align: left; overflow: hidden; font-size: var(--t-fine); line-height: 1.4; }
.phone__title { font-family: var(--font-serif); font-size: 1.75rem; line-height: 1; }
.phone__mono { font-family: var(--font-mono); font-weight: 500; font-size: 0.6875rem; letter-spacing: var(--track-kicker); text-transform: uppercase; color: var(--subtle); }
.phone__photo { flex: 1; min-height: 0; border-radius: var(--r-m); background: repeating-linear-gradient(135deg, var(--tile-a) 0 10px, var(--tile-b) 10px 20px); position: relative; }
.phone__like { position: absolute; right: var(--s-3); bottom: var(--s-3); width: 40px; height: 40px; border-radius: 50%; background: var(--panel); color: var(--accent); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow); }
.phone__card { padding: var(--s-3); border-radius: var(--r-s); background: var(--card-on-page); }
.phone__card .q { font-weight: 600; color: var(--muted); font-size: 0.6875rem; }
.phone__card .a { font-family: var(--font-serif); font-size: 1.125rem; line-height: 1.15; margin-top: var(--s-1); }
.phone__tiles { flex: 1; min-height: 0; display: grid; grid-template-rows: 1.4fr 1fr; gap: var(--s-2); }
.phone__timer { align-self: center; font-family: var(--font-mono); font-weight: 500; font-size: 2rem; line-height: 1; }
.phone__pill { display: flex; align-items: center; justify-content: center; min-height: 40px; border-radius: var(--r-pill); font-weight: 600; font-size: var(--t-fine); }
.phone__pill--yes { background: var(--accent); color: var(--on-accent); }
.phone__pill--no { border: var(--line) solid var(--text); }
.phone__spacer { flex: 1; }
.phone figcaption { max-width: 16rem; color: var(--muted); font-size: var(--t-small); }
.phone figcaption .strong { display: block; }
@media (max-width: 799px) { .phones { grid-template-columns: minmax(0, 1fr); } .phone__body { width: 240px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--panel); border-top: var(--hair) solid var(--border); padding-block: var(--s-7) var(--s-6); font-size: var(--t-small); }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); gap: var(--s-6); }
.site-footer .logo { font-size: 2rem; display: inline-block; }
.site-footer h2 { font: 500 var(--t-fine) var(--font-mono); letter-spacing: var(--track-kicker); text-transform: uppercase; color: var(--subtle); margin-bottom: var(--s-2); }
.site-footer li a { display: inline-flex; align-items: center; min-height: var(--tap); color: var(--text); text-decoration: none; }
.site-footer li a:hover { text-decoration: underline; }
.site-footer .legal { margin-top: var(--s-6); padding-top: var(--s-5); border-top: var(--hair) solid var(--border); color: var(--subtle); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3); }
@media (max-width: 799px) { .site-footer .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } .site-footer .cols > :first-child { grid-column: 1 / -1; } }

/* ---------- Long-form text (Terms, Privacy) ---------- */
.prose { max-width: 44rem; }
.prose > * + * { margin-top: var(--s-4); }
.prose h2 { font-family: var(--font-serif); font-weight: 400; font-size: 2rem; line-height: var(--lh-head); margin-top: var(--s-7); }
.prose p, .prose li { color: var(--muted); }
.prose ul { list-style: disc; padding-left: 1.25em; display: grid; gap: var(--s-2); }
.prose ol { list-style: decimal; padding-left: 1.25em; display: grid; gap: var(--s-2); }
.note { padding: var(--s-4) var(--s-5); border-radius: var(--r-m); background: var(--card); color: var(--text); font-size: var(--t-small); }

.mt-0 { margin-top: 0; }
.mt-5 { margin-top: var(--s-5); }
.mt-6 { margin-top: var(--s-6); }
.mt-7 { margin-top: var(--s-7); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:active { transform: none; }
  .mark3__dot::before, .mark3__dot::after { animation: none; }
}
.form__done:focus { outline: none; }

/* ---------- Date Spot application ---------- */
.apply { display: grid; gap: var(--s-6); max-width: 52rem; }
.apply__section { margin: 0; padding: clamp(20px, 4vw, 36px); border: 0; border-radius: var(--r-l); background: var(--page); min-width: 0; }
.apply__section > legend { float: left; width: 100%; display: flex; align-items: center; gap: var(--s-3); padding: 0; margin-bottom: var(--s-5); }
.apply__section > legend + * { clear: both; }
.apply__num { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--inv-bg); color: var(--inv-text); font: 500 var(--t-small)/32px var(--font-mono); text-align: center; }
.apply__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4) var(--s-5); }
.apply__pair { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--s-4); }
.field--wide { grid-column: 1 / -1; }
.textarea--short { min-height: 88px; }
.hint { font-size: var(--t-fine); color: var(--subtle); }
.field__err { font-size: var(--t-fine); font-weight: 500; color: var(--danger); }
.select[aria-invalid='true'] { border-color: var(--danger); }
.apply__send { display: grid; gap: var(--s-3); justify-items: start; }
.apply__send .form__msg:empty { display: none; }
.apply__done { max-width: 52rem; }
@media (max-width: 699px) { .apply__fields { grid-template-columns: minmax(0, 1fr); } }

.photos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-3); margin-block: var(--s-5); }
@media (max-width: 799px) { .photos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.photo { position: relative; aspect-ratio: 4 / 5; }
.photo__add { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s-1); padding: var(--s-3); border: var(--line) dashed var(--border-input); border-radius: var(--r-m); background: var(--field); color: var(--text); text-align: center; cursor: pointer; }
.photo__add:hover { border-style: solid; }
.photo__label { font-weight: 600; font-size: var(--t-small); }
.photo__tip { font-size: var(--t-fine); color: var(--subtle); }
.photo__input:focus-visible + .photo__add { outline: var(--focus) solid var(--text); outline-offset: var(--focus); }
.photo[data-invalid] .photo__add { border-color: var(--danger); border-style: solid; }
.photo__filled { position: absolute; inset: 0; border-radius: var(--r-m); overflow: hidden; background: var(--field); }
.photo__img { width: 100%; height: 100%; object-fit: cover; }
.photo__bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: var(--s-1); padding: var(--s-1) var(--s-1) var(--s-1) var(--s-3); background: var(--inv-bg); color: var(--inv-text); }
.photo__name { flex: 1; min-width: 0; font-size: var(--t-fine); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.photo__btn { min-height: var(--tap); padding: 0 var(--s-2); border: 0; background: transparent; color: var(--inv-text); font: 600 var(--t-fine) var(--font-sans); text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }
.photo__btn:focus-visible { outline-color: var(--inv-text); }
.photo[data-busy] .photo__add::after { content: 'Preparing…'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; border-radius: var(--r-m); background: var(--field); font-size: var(--t-small); font-weight: 600; }

.check { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-3); align-items: start; min-height: var(--tap); cursor: pointer; color: var(--text); }
.check input { width: 24px; height: 24px; margin: 0; accent-color: var(--text); cursor: pointer; }
.check input[aria-invalid='true'] { outline: var(--line) solid var(--danger); outline-offset: 2px; }
.check .field__err { grid-column: 1 / -1; }

/* Application page: the embossed "3" sits behind the whole page and stays put while the form scrolls over it.
   The form's sections become white cards so every field stays easy to read on top of it. */
.page-apply main { position: relative; isolation: isolate; }
.page-apply .hero, .page-apply .band--panel { background: transparent; }
.page-apply main { background: var(--page); }
.page-apply .apply__section { background: var(--panel); box-shadow: var(--shadow); }
.page-apply .apply__done { background: var(--panel); box-shadow: var(--shadow); }
/* Wide screens: the mark fills the open space to the right of the form, dot and all. */
.mark3.mark3--bg { position: fixed; z-index: -1; right: max(24px, calc((100vw - var(--maxw)) / 2 - 40px)); top: 50%; width: clamp(360px, calc(100vw - 1040px + 180px), 520px); height: min(88vh, 760px); aspect-ratio: auto; order: 0; margin: 0; transform: translateY(-50%); pointer-events: none; }
.mark3--bg { --g: min(100vh, 820px); }
.mark3--bg .mark3__glyph { font-size: var(--g); justify-content: flex-end; padding-left: 0; }
/* The dot sits just left of the 3's lower curve, as in the logo. */
.mark3--bg .mark3__dot { left: auto; right: calc(var(--g) * 0.33 + 14px); bottom: 24%; width: 34px; height: 34px; }
@media (prefers-color-scheme: dark) { .mark3--bg { opacity: 0.55; } }
/* Narrower screens: a bigger mark behind the form, peeking out at the right. */
@media (max-width: 1199px) {
  .mark3.mark3--bg { width: 110vw; height: auto; aspect-ratio: 1 / 1.05; right: -30vw; top: 46%; transform: translateY(-46%); }
  .mark3--bg .mark3__glyph { font-size: 140vw; justify-content: center; padding-left: 12%; }
  .mark3--bg .mark3__dot { left: 12%; right: auto; bottom: 23%; width: clamp(22px, 3vw, 34px); height: clamp(22px, 3vw, 34px); }
}

/* =====================================================================
   Updated layout (preview). Editorial, mostly black and white, full-bleed
   photography, big serif statements. 3's own fonts and colours; the Day sky
   is kept for one band and the coral for the primary button and the dot.
   ===================================================================== */
:root {
  --page: #ffffff;
  --panel: #ffffff;
  --tint: #cfe1f0;          /* the app's Day sky, used for one band */
  --card: #f1f4f7;
  --card-on-page: #f1f4f7;
  --border: #d9dee3;
  --ink: #0b0b0b;           /* fixed: photo hero, footer */
  --on-ink: #f3f1ed;
  --on-ink-muted: #c4c2bc;
  --scrim: linear-gradient(180deg, rgba(11,11,11,0.10) 0%, rgba(11,11,11,0.05) 35%, rgba(11,11,11,0.72) 100%);
  --scrim-phone: linear-gradient(180deg, rgba(11,11,11,0.15) 0%, rgba(11,11,11,0.35) 30%, rgba(11,11,11,0.82) 100%);
  --ink-line: #2e2e2e;      /* rules on the black footer */
  --on-ink-hover: rgba(243, 241, 237, 0.14);
  --photo-field: rgba(11, 11, 11, 0.55);
  --photo-border: #a5a39d;
  --t-hero: clamp(3.5rem, 1.6rem + 8vw, 8.5rem);
  --t-h2: clamp(2.375rem, 1.6rem + 3vw, 4rem);
  --t-statement: clamp(2.25rem, 1.2rem + 4.4vw, 5.25rem);
  --band-y: clamp(72px, 6vw + 40px, 144px);
  --maxw: 1240px;
  --r-l: 24px;
}
@media (prefers-color-scheme: dark) {
  :root { --page: #0b0b0b; --panel: #0b0b0b; --tint: #161614; --card: #1c1c1a; --card-on-page: #1c1c1a; --border: #2e2e2e; }
}

/* Header: plain white bar; on the home page it floats over the photo. */
.site-header { background: var(--page); border-bottom: var(--hair) solid var(--border); }
.page-home .site-header { position: absolute; inset: 0 0 auto 0; z-index: 4; background: transparent; border-bottom: 0; }
.page-home .site-header .logo, .page-home .site-header .nav a:not(.btn), .page-home .menu-btn { color: var(--on-ink); border-color: var(--on-ink); }
.page-home .site-header .nav a:not(.btn):hover { background: var(--on-ink-hover); }
.page-home .site-header .btn--inverse { background: var(--on-ink); color: var(--ink); }
@media (max-width: 899px) {
  .page-home .nav { background: var(--ink); }
}

/* Photo hero: the picture fills the first screen, words sit bottom-left. */
.hero--photo { --inv-text: var(--on-ink); --inv-muted: var(--on-ink-muted); --inv-field: var(--photo-field); --inv-border: var(--photo-border);
  position: relative; display: flex; align-items: flex-end; min-height: min(100svh, 920px); padding: calc(var(--header-h) + var(--s-8)) 0 clamp(40px, 6vw, 88px); background: var(--ink); color: var(--on-ink); }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.hero__scrim { position: absolute; inset: 0; background: var(--scrim); }
.hero__inner { position: relative; }
.hero--photo .hero__text { max-width: 44rem; }
.hero--photo .hero__title { font-size: var(--t-hero); line-height: 0.92; letter-spacing: -0.02em; }
.hero--photo .lead { color: var(--on-ink); font-size: clamp(1.1875rem, 1rem + 0.6vw, 1.4375rem); }
.hero--photo .kicker, .hero--photo .small, .hero--photo .label { color: var(--on-ink); }
.hero--photo .get-app { justify-items: start; }
.hero--photo .get-app__note { text-align: left; }
.hero--photo .input { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
@media (max-width: 599px) { .hero--photo { min-height: 92svh; } .hero__img { object-position: 42% 40%; } }

/* Inner page heroes: big type on white with a rule under them. */
.hero--page { background: var(--page); border-bottom: var(--hair) solid var(--border); }
.hero--page .h1 { font-size: clamp(3rem, 1.6rem + 5vw, 6rem); line-height: 0.98; }

/* A single sentence, set very large. */
.statement { padding-bottom: var(--s-8); }
.statement__text { font-family: var(--font-serif); font-weight: 400; font-size: var(--t-statement); line-height: 1.04; letter-spacing: -0.015em; max-width: 18ch; text-wrap: balance; }
.statement__soft { color: var(--subtle); }
.statement .dotc, .dotc { color: var(--accent); }
.band--flush-top { padding-top: 0; }

/* Bands */
.band--tint, .band--sky { background: var(--tint); }
.band--sky .card, .band--tint .card { background: var(--panel); }

/* Split: a bigger picture, more air. */
.split--big { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
.split__media img { border-radius: var(--r-l); }
@media (max-width: 799px) { .split--big { grid-template-columns: minmax(0, 1fr); } }

/* Photo cards for the steps. */
.pcards { gap: var(--s-5); }
.pcard { display: flex; flex-direction: column; border-radius: var(--r-l); overflow: hidden; background: var(--panel); }
.pcard__img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; }
.pcard__img.pos-hug { object-position: 62% 40%; }
.pcard__body { display: grid; gap: var(--s-2); padding: var(--s-5); }
.pcard__body p { color: var(--muted); font-size: var(--t-small); line-height: 1.5; }
.pcard__step { font-family: var(--font-mono); font-weight: 500; font-size: var(--t-fine); letter-spacing: var(--track-kicker); text-transform: uppercase; color: var(--accent-text) !important; }

/* Why 3: three columns divided by thin rules, no boxes. */
.why { gap: 0; border-top: var(--hair) solid var(--text); }
.why__item { padding: var(--s-6) var(--s-6) 0 0; }
.why__item + .why__item { padding-left: var(--s-6); border-left: var(--hair) solid var(--border); }
.why__item p { margin-top: var(--s-3); color: var(--muted); }
.why__verified { display: flex; align-items: center; gap: var(--s-3); }
.why__stamp { width: 28px; height: 28px; }
@media (prefers-color-scheme: dark) { .why__stamp { filter: invert(1); } }
@media (max-width: 999px) {
  .why__item, .why__item + .why__item { padding: var(--s-5) 0; border-left: 0; }
  .why__item + .why__item { border-top: var(--hair) solid var(--border); }
}

/* Photo phones */
.phone__photo--daniel { background: url('photos/man-daniel.jpg') 50% 25% / cover; }
.phone__photo--marcus { background: url('photos/man-turtleneck.jpg') 50% 25% / cover; }
.phone__photo--you { background: url('photos/woman-curtain.jpg') 70% 30% / cover; }
.band--ink .phone figcaption { color: var(--inv-muted); }
.band--ink .phone figcaption .strong { color: var(--inv-text); }

/* Full-bleed feature with a card on top. */
.feature { position: relative; display: flex; align-items: center; min-height: clamp(560px, 70vw, 820px); padding-block: var(--band-y); overflow: hidden; background: var(--ink); }
.feature__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature__wrap { position: relative; }
.feature__card { max-width: 30rem; padding: clamp(28px, 4vw, 48px); border-radius: var(--r-l); background: var(--panel); }
@media (max-width: 599px) { .feature { align-items: flex-end; } }

/* Closing band and footer: black. */
.site-footer { background: var(--ink); color: var(--on-ink); border-top: var(--hair) solid var(--ink-line); padding-block: var(--s-8) var(--s-6); }
.site-footer .logo, .site-footer li a { color: var(--on-ink); }
.site-footer h2, .site-footer .small, .site-footer .legal { color: var(--on-ink-muted); }
.site-footer .legal { border-top-color: var(--ink-line); }
.site-footer :focus-visible { outline-color: var(--on-ink); }
.site-footer .logo { font-size: clamp(3rem, 2rem + 4vw, 5.5rem); }

/* Buttons: the waitlist button stays coral; secondary actions are solid black pills. */
.btn--secondary { border-width: var(--line); }
@media (max-width: 599px) {
  .hero__scrim { background: var(--scrim-phone); }
  .pcards { gap: var(--s-3); }
  .pcard { flex-direction: row; }
  .pcard__img { width: 34%; aspect-ratio: auto; min-height: 100%; flex: none; }
  .pcard__body { padding: var(--s-4); }
}

/* Date Spots: a solid "3" in the text colour so it stands out on the page. */
.mark3--bold { --mark: var(--text); --mark-stroke: transparent; }

/* The water ripple (assets/ripple.js) draws the mark on a canvas; the text version stays underneath for layout. */
.mark3__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.mark3.has-ripple .mark3__glyph, .mark3.has-ripple .mark3__dot { visibility: hidden; }

/* Dropdowns: our own arrow, centred vertically and inset from the right edge like the text on the left. */
:root { --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M2.5 5l4.5 4.5L11.5 5' fill='none' stroke='%230b0b0b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
@media (prefers-color-scheme: dark) {
  :root { --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M2.5 5l4.5 4.5L11.5 5' fill='none' stroke='%23f3f1ed' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
}
.select { -webkit-appearance: none; appearance: none; padding-right: calc(var(--s-4) + 14px + var(--s-3)); background-image: var(--chevron); background-repeat: no-repeat; background-position: right var(--s-4) center; background-size: 14px 14px; cursor: pointer; text-overflow: ellipsis; }
.select::-ms-expand { display: none; }
.field { align-content: start; }

/* Date Spots: the kinds of place, as buttons that start an application with that kind chosen. */
.spots { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.spot { display: inline-flex; align-items: center; gap: var(--s-2); min-height: var(--tap); padding: 0 var(--s-4) 0 var(--s-5); border: var(--line) solid var(--text); border-radius: var(--r-pill); background: var(--panel); color: var(--text); font-weight: 600; font-size: var(--t-small); text-decoration: none; transition: background var(--fast) var(--ease), color var(--fast) var(--ease); }
.spot__arrow { flex: none; transition: transform var(--fast) var(--ease); }
.spot:hover { background: var(--inv-bg); color: var(--inv-text); }
.spot:hover .spot__arrow { transform: translateX(2px); }
.spot:active { transform: scale(0.98); }
@media (prefers-reduced-motion: reduce) { .spot, .spot__arrow { transition: none; } .spot:hover .spot__arrow, .spot:active { transform: none; } }
@media (max-width: 599px) { .spots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); } .spot { width: 100%; justify-content: space-between; min-height: 56px; padding: var(--s-2) var(--s-4); border-radius: var(--r-s); line-height: 1.25; } }

/* Home: the coral full stop after the headline, and the ripple layer it sends out. */
.hero__dot { color: var(--accent); } /* decorative full stop, like the logo's dot: the brand coral on purpose */
.hero__ripple { position: absolute; pointer-events: none; } /* sits between the photo and its shade */
.hero__inner, .hero__grid { z-index: 2; }

/* Footer: the beta launch date as a white tab. */
.site-footer .legal { align-items: center; }
.beta-tab { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 var(--s-5); border-radius: var(--r-pill); background: var(--on-ink); color: var(--ink); font-weight: 600; font-size: var(--t-small); }

/* App Store and Google Play badges (replaced the waitlist form). The badges are Apple's and Google's own artwork, unchanged. */
.get-app { display: grid; gap: var(--s-3); justify-items: center; }
.get-app__badges { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
.band--ink .get-app__badges, .center .get-app__badges { justify-content: center; }
.get-app__badge { display: block; height: 48px; width: auto; }
.get-app__link { display: inline-flex; border-radius: 10px; }
.get-app__link:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.band--ink .get-app__note { color: var(--inv-muted); }

/* Chapter code page (heythree.co/c/CODE). */
.code-chip { font-family: var(--font-mono); font-size: 0.6em; letter-spacing: 0.04em; padding: 0.1em 0.4em; border-radius: var(--r-s); background: var(--tint); white-space: nowrap; }
.hero--page .get-app { justify-items: start; }
.hero--page .get-app__note { text-align: left; }
