/* Look and feel: ballpoint blue on cool paper, with a highlighter for prices.
   Change the colours below to restyle the whole site. */

@font-face {
  font-family: "Gabarito";
  src: url("/fonts/gabarito-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 900;
  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 {
  --paper: #f1f4fb;
  --card: #ffffff;
  --ink: #161a3a;
  --ink-soft: #505675;
  --line: #d3d9ea;
  --pen: #2b3fe0;
  --pen-deep: #1d2cae;
  --highlighter: #ffe45c;
  --heart: #e02a66;
  --good: #0b7a55;
  --good-bg: #dff5ec;
  --bad: #b3261e;
  --bad-bg: #fde7e4;
  --display: "Gabarito", "Trebuchet MS", sans-serif;
  --body: "Schibsted Grotesk", "Segoe UI", system-ui, sans-serif;
  --mono: "DM Mono", ui-monospace, Menlo, monospace;
  --tabs-h: 0px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; display: block; }
a { color: var(--pen); text-underline-offset: 0.18em; }
a:hover { color: var(--pen-deep); }
:focus-visible { outline: 3px solid var(--pen); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.6rem); font-weight: 800; }
h2 { font-size: 1.45rem; font-weight: 700; margin-top: 1.6em; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1.5px solid var(--line); margin: 1.6rem 0; }
.quiet { color: var(--ink-soft); font-size: 0.95rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 0.6em 1em; z-index: 50; }
.skip:focus { left: 0; }

/* ---- header and navigation ---- */
.top {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.9rem clamp(1rem, 4vw, 2.5rem);
  border-bottom: 1.5px solid var(--line);
  background: var(--paper);
}
.logo {
  font: 800 1.5rem/1 var(--display);
  color: var(--ink);
  text-decoration: none;
  padding: 0.1em 0.25em;
  background: linear-gradient(transparent 52%, var(--highlighter) 52%);
}
.logo:hover { color: var(--ink); }
.tabs { display: flex; gap: 0.35rem; flex: 1; }
.tabs a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  padding: 0.45em 0.85em;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}
.tabs a:hover { background: #e3e8f6; }
.tabs a[aria-current="page"] { background: var(--ink); color: #fff; }
.count {
  background: var(--heart);
  color: #fff;
  font: 700 0.75rem/1 var(--body);
  min-width: 1.5em;
  padding: 0.3em 0.45em;
  border-radius: 999px;
  text-align: center;
}
.top-side { margin-left: auto; display: flex; align-items: center; gap: 1.1rem; font-size: 0.95rem; }
.top-side form { margin: 0; }
.top-side a:not(.btn) { color: var(--ink); }

.wrap { width: 100%; max-width: 68rem; margin: 0 auto; padding: 2rem clamp(1rem, 4vw, 2.5rem) 3rem; flex: 1; }
.wrap-narrow { max-width: 40rem; }

.foot {
  border-top: 1.5px solid var(--line);
  padding: 1.5rem clamp(1rem, 4vw, 2.5rem) calc(1.5rem + var(--tabs-h));
  color: var(--ink-soft);
  font-size: 0.9rem;
}
.foot p { margin: 0 0 0.4em; max-width: 60ch; }
.foot a { color: var(--ink-soft); margin-right: 1.1em; }

/* ---- buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: 700 1rem/1.2 var(--body);
  padding: 0.7em 1.35em;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: #2a3060; color: #fff; }
.btn-pen { background: var(--pen); border-color: var(--pen); }
.btn-pen:hover { background: var(--pen-deep); border-color: var(--pen-deep); }
.btn-like { background: var(--heart); border-color: var(--heart); }
.btn-like:hover { background: #b91f52; border-color: #b91f52; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: #e3e8f6; color: var(--ink); }
.btn-danger { background: var(--bad); border-color: var(--bad); }
.btn-danger:hover { background: #8c1d17; border-color: #8c1d17; }
.btn-big { font-size: 1.1rem; padding: 0.85em 1.7em; }
.btn-small { font-size: 0.9rem; padding: 0.5em 1em; }
.linkish {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--pen);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  cursor: pointer;
}
.top-side .linkish { color: var(--ink); }
.linkish.danger { color: var(--bad); }
.row { display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: center; }
.row form { margin: 0; }

/* ---- surfaces ---- */
.sheet {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 20px;
  padding: clamp(1.25rem, 4vw, 2rem);
  margin-bottom: 1.25rem;
}
.sheet > :last-child { margin-bottom: 0; }
.sheet h2:first-child, .sheet h1:first-child { margin-top: 0; }
.center-sheet { max-width: 36rem; margin-left: auto; margin-right: auto; }
.two-col { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); align-items: start; }

.flash { padding: 0.8em 1.1em; border-radius: 12px; font-weight: 600; margin-bottom: 1.25rem; }
.flash ul { margin: 0; padding-left: 1.2em; }
.flash-ok { background: var(--good-bg); color: #07513a; }
.flash-error { background: var(--bad-bg); color: #7d1a14; }
.flash-match { background: var(--heart); color: #fff; font-size: 1.1rem; }
.note { background: #e6eaf8; border-radius: 12px; padding: 0.8em 1.1em; }
.badge {
  display: inline-block;
  background: var(--highlighter);
  color: var(--ink);
  font: 700 0.72rem/1 var(--body);
  padding: 0.38em 0.6em;
  border-radius: 6px;
  vertical-align: middle;
  letter-spacing: 0.01em;
}

/* ---- forms ---- */
.field { border: 0; padding: 0; margin: 0; min-width: 0; }
.stack > * + * { margin-top: 1.25rem; }
.field label, .field legend { display: block; font-weight: 700; margin-bottom: 0.35em; padding: 0; }
.optional { font-weight: 400; color: var(--ink-soft); font-size: 0.9rem; }
input[type="text"], input[type="email"], input[type="password"], input[type="date"], input[type="number"],
input[type="search"], input[type="datetime-local"], select, textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid #9aa3c2;
  border-radius: 10px;
  padding: 0.65em 0.8em;
}
textarea { resize: vertical; min-height: 3em; }
input[type="file"] { font: inherit; max-width: 100%; }
.help { color: var(--ink-soft); font-size: 0.9rem; margin: 0.4em 0 0; }
.help [data-use-gps] { display: block; margin-bottom: 0.3em; font-size: 1rem; }
.help [data-use-gps][hidden] { display: none; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.check { display: flex; gap: 0.6em; align-items: flex-start; }
.check input { margin-top: 0.3em; width: 1.1em; height: 1.1em; flex: none; accent-color: var(--pen); }
.choices { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.choice { position: relative; font-weight: 600 !important; margin: 0 !important; }
.choice input { position: absolute; opacity: 0; inset: 0; }
.choice span { display: inline-block; padding: 0.55em 1.1em; border: 1.5px solid #9aa3c2; border-radius: 999px; cursor: pointer; }
.choice input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.choice input:focus-visible + span { outline: 3px solid var(--pen); outline-offset: 2px; }
.preview { margin-top: 0.7rem; width: 9rem; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px; }
.city-box { position: relative; }
.city-list {
  position: absolute;
  z-index: 10;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  margin: 0;
  padding: 0.3rem;
  list-style: none;
  background: #fff;
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(22, 26, 58, 0.18);
}
.city-list li { padding: 0.5em 0.7em; border-radius: 8px; cursor: pointer; }
.city-list li[aria-selected="true"], .city-list li:hover { background: var(--highlighter); }

/* ---- landing page ---- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(1rem, 4vw, 3rem) 0 clamp(2rem, 6vw, 4.5rem);
}
.hero h1 { font-size: clamp(2.6rem, 7.2vw, 5rem); font-weight: 900; line-height: 0.98; letter-spacing: -0.025em; margin-bottom: 0.35em; }
.lede { font-size: 1.25rem; max-width: 32ch; }
.receipt-wrap { filter: drop-shadow(0 14px 22px rgba(22, 26, 58, 0.16)); justify-self: center; transform: rotate(1.6deg); width: min(100%, 23rem); }
.receipt {
  --tooth: 9px;
  background: #fff;
  font: 400 0.92rem/1.5 var(--mono);
  padding: 1.6rem 1.4rem calc(1.6rem + var(--tooth));
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--tooth)) 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--tooth)) 100%;
}
.receipt-head { text-align: center; font: 800 1.5rem/1.1 var(--display); margin-bottom: 1.1rem; }
.receipt-head span { font: 400 0.85rem/1.5 var(--mono); color: var(--ink-soft); }
.receipt dl { margin: 0; padding: 0.9rem 0; border-top: 1.5px dashed var(--ink); }
.receipt dl > div { display: flex; align-items: baseline; gap: 0.5em; padding: 0.16em 0; }
.receipt dt { flex: 1; display: flex; align-items: baseline; gap: 0.5em; }
.receipt dt::after { content: ""; flex: 1; border-bottom: 1.5px dotted #a9b0cc; transform: translateY(-0.25em); }
.receipt dd { margin: 0; font-weight: 500; white-space: nowrap; }
.receipt mark { background: var(--highlighter); color: var(--ink); padding: 0.05em 0.4em; }
.receipt-never { color: var(--ink-soft); }
.receipt-foot { border-top: 1.5px dashed var(--ink); padding-top: 0.9rem; margin: 0; text-align: center; }

.band { border-top: 1.5px solid var(--line); padding: clamp(2rem, 5vw, 3.5rem) 0; }
.band h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin-top: 0; }
.steps { list-style: none; counter-reset: step; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1.5rem 2rem; grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr)); }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--pen);
  color: #fff;
  font: 800 1.05rem/1 var(--display);
  margin-bottom: 0.8rem;
}
.steps p { color: var(--ink-soft); margin: 0; }
.steps-tight { grid-template-columns: 1fr; gap: 1.1rem; margin: 1.25rem 0 1.5rem; }
.steps-tight li { display: grid; grid-template-columns: 2.2rem 1fr; column-gap: 0.9rem; }
.steps-tight li::before { grid-row: span 2; margin: 0; }
.steps-tight h3 { margin: 0.25em 0 0.2em; }
.split { display: grid; gap: 2rem clamp(2rem, 6vw, 5rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.split p, .split li { max-width: 52ch; }
.plain { padding-left: 1.15em; margin: 0 0 1em; }
.plain li { margin-bottom: 0.5em; }
.closing { text-align: left; }

.pledge h2 { max-width: 20ch; font-size: clamp(1.9rem, 4.5vw, 2.9rem); font-weight: 800; }
.pledge-lede { font-size: 1.15rem; max-width: 54ch; }
.pledge-list { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.75rem 3rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); }
.pledge-list li { border-top: 3px solid var(--ink); padding-top: 0.9rem; }
.pledge-list p { color: var(--ink-soft); margin: 0; max-width: 46ch; }

/* ---- a person's profile ---- */
.person { display: grid; grid-template-columns: minmax(0, 26rem) minmax(0, 1fr); gap: clamp(1.25rem, 4vw, 3rem); align-items: start; }
.reel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  border-radius: 26px;
  aspect-ratio: 4 / 5;
  background: #dfe4f3;
  scrollbar-width: thin;
}
.reel img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; }
.reel-hint { color: var(--ink-soft); font-size: 0.85rem; margin: 0.5rem 0 0; }
.person-side { padding-top: clamp(0rem, 2vw, 1.5rem); }
.person-name { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 0.2em; }
.person-name .badge { font-size: 0.8rem; }
.person-where { color: var(--ink-soft); }
.person-bio { font-size: 1.15rem; white-space: pre-line; max-width: 46ch; overflow-wrap: anywhere; }
.decide { display: flex; gap: 0.8rem; margin: 1.75rem 0 1.25rem; }
.decide .btn { flex: 1; max-width: 12rem; }

.grid { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); }
.tile a { display: block; color: var(--ink); text-decoration: none; }
.tile img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 18px; background: #dfe4f3; }
.tile-text { display: block; padding: 0.5rem 0.2rem 0; font-size: 0.95rem; color: var(--ink-soft); }
.tile-text strong { color: var(--ink); font-size: 1.05rem; }

/* ---- reviews ---- */
.reviews { margin-top: clamp(2rem, 5vw, 3.5rem); border-top: 1.5px solid var(--line); padding-top: 0.5rem; max-width: 44rem; }
.reviews h2 { margin-top: 1em; }
.review-list { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.review-list li { padding: 1rem 0; border-bottom: 1.5px solid var(--line); }
.review-list blockquote { margin: 0 0 0.4rem; font-size: 1.1rem; white-space: pre-line; overflow-wrap: anywhere; }
.review-by { color: var(--ink-soft); font-size: 0.92rem; margin: 0; display: flex; flex-wrap: wrap; gap: 0.3em 0.9em; align-items: center; }
.review-by form { margin: 0; }
.met { background: var(--good-bg); color: #07513a; font: 700 0.72rem/1 var(--body); padding: 0.38em 0.6em; border-radius: 6px; }

/* ---- matches and chat ---- */
.threads { list-style: none; margin: 0; padding: 0; }
.thread { display: flex; align-items: center; gap: 0.9rem; padding: 0.8rem 0.6rem; border-bottom: 1.5px solid var(--line); color: var(--ink); text-decoration: none; border-radius: 12px; }
.thread:hover { background: #e6eaf8; color: var(--ink); }
.thread img, .no-photo { width: 3.6rem; height: 3.6rem; border-radius: 50%; object-fit: cover; flex: none; background: #dfe4f3; }
.thread-text { flex: 1; min-width: 0; }
.thread-last { display: block; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread.is-unread .thread-last { color: var(--ink); font-weight: 700; }

.chat { display: flex; flex-direction: column; min-height: calc(100vh - 13rem - var(--tabs-h)); }
.chat-head { display: flex; align-items: center; gap: 0.9rem; padding-bottom: 0.9rem; border-bottom: 1.5px solid var(--line); }
.back { font-weight: 600; color: var(--ink); }
.chat-who { display: flex; align-items: center; gap: 0.7rem; color: var(--ink); text-decoration: none; flex: 1; min-width: 0; line-height: 1.25; }
.chat-who img { width: 3rem; height: 3rem; border-radius: 50%; object-fit: cover; flex: none; }
.menu { position: relative; }
.menu summary { cursor: pointer; font-weight: 600; list-style: none; padding: 0.35em 0.8em; border: 1.5px solid #9aa3c2; border-radius: 999px; }
.menu summary::-webkit-details-marker { display: none; }
.menu-body { position: absolute; right: 0; top: calc(100% + 6px); z-index: 5; background: #fff; border: 1.5px solid var(--ink); border-radius: 12px; padding: 0.9rem 1rem; width: 17rem; display: grid; gap: 0.7rem; box-shadow: 0 10px 24px rgba(22, 26, 58, 0.18); }
.menu-body form { margin: 0; }
.menu-body .linkish { text-align: left; color: var(--bad); }
.chat-tip { background: #fff6c9; border-radius: 12px; padding: 0.6em 0.9em; font-size: 0.9rem; margin: 0.9rem 0 0; }
.bubbles { list-style: none; margin: 0; padding: 1rem 0; flex: 1; display: flex; flex-direction: column; gap: 0.5rem; }
.bubbles-empty { color: var(--ink-soft); text-align: center; margin: auto 0; padding: 2rem 0; }
.bubble { max-width: min(80%, 30rem); padding: 0.6em 0.95em 0.45em; border-radius: 18px; overflow-wrap: anywhere; }
.bubble p { margin: 0; white-space: pre-line; }
.bubble time { display: block; font-size: 0.72rem; opacity: 0.75; margin-top: 0.2em; }
.bubble.mine { align-self: flex-end; background: var(--pen); color: #fff; border-bottom-right-radius: 6px; }
.bubble.theirs { align-self: flex-start; background: #fff; border: 1.5px solid var(--line); border-bottom-left-radius: 6px; }
.bubble-warn { margin-top: 0.5em !important; padding: 0.5em 0.7em; background: #fff6c9; color: var(--ink); border-radius: 10px; font-size: 0.88rem; }
.composer { display: flex; gap: 0.6rem; align-items: flex-end; position: sticky; bottom: var(--tabs-h); background: var(--paper); padding: 0.7rem 0; }
.composer textarea { flex: 1; border-radius: 22px; padding: 0.7em 1em; max-height: 9rem; }

/* ---- verification ---- */
.pose { font: 800 1.5rem/1.2 var(--display); background: var(--highlighter); padding: 0.7em 0.9em; border-radius: 14px; }

/* ---- summaries ---- */
.summary { margin: 0 0 1.25rem; }
.summary > div { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: 0.6rem 0; border-bottom: 1.5px solid var(--line); }
.summary dt { color: var(--ink-soft); }
.summary dd { margin: 0; font-weight: 600; }
.prose { white-space: pre-line; max-width: 65ch; overflow-wrap: anywhere; }
.prose-page h2 { font-size: 1.25rem; }
.prose-page p, .prose-page li { max-width: 62ch; }

/* ---- profile editing ---- */
.photo-grid { list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; gap: 0.8rem; grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr)); }
.photo-grid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px; }
.photo-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.3rem; font-size: 0.85rem; padding-top: 0.3rem; }
.photo-actions form { margin: 0; }
.plain-list { list-style: none; margin: 0 0 1rem; padding: 0; }
.plain-list li { padding: 0.55rem 0; border-bottom: 1.5px solid var(--line); display: flex; flex-wrap: wrap; gap: 0.3em 0.8em; align-items: baseline; overflow-wrap: anywhere; }
.plain-list form { margin: 0; }

/* ---- admin ---- */
.admin-nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; padding-bottom: 1rem; margin-bottom: 1.5rem; border-bottom: 1.5px solid var(--line); font-weight: 600; }
.todo { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 0.8rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.todo a { display: block; background: #fff; border: 1.5px solid var(--line); border-radius: 16px; padding: 1rem 1.2rem; color: var(--ink); text-decoration: none; }
.todo a:hover { border-color: var(--pen); }
.todo strong { display: block; font: 800 2.2rem/1 var(--display); margin-bottom: 0.15em; }
.review-photos { display: flex; gap: 0.8rem; overflow-x: auto; margin: 1rem 0; padding-bottom: 0.4rem; }
.review-photos figure { margin: 0; flex: 0 0 11rem; }
.review-photos img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; }
.review-photos figure:first-child img { outline: 3px solid var(--pen); outline-offset: -3px; }
.review-photos figcaption { font-size: 0.85rem; color: var(--ink-soft); padding-top: 0.25rem; }
.table-wrap { overflow-x: auto; margin: 1.25rem 0; }
table { border-collapse: collapse; width: 100%; background: #fff; border-radius: 14px; overflow: hidden; }
th, td { text-align: left; padding: 0.7em 0.9em; border-bottom: 1.5px solid var(--line); white-space: nowrap; }
th { font-size: 0.9rem; color: var(--ink-soft); font-weight: 600; }

/* ---- small screens ---- */
@media (max-width: 760px) {
  .has-tabs { --tabs-h: 4rem; }
  .top { gap: 0.8rem; }
  .tabs {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    height: 4rem;
    background: #fff;
    border-top: 1.5px solid var(--line);
    justify-content: space-around;
    align-items: stretch;
    gap: 0;
    padding: 0.35rem 0.2rem;
  }
  .tabs a { flex: 1; justify-content: center; font-size: 0.86rem; padding: 0.3em 0.2em; border-radius: 12px; gap: 0.25em; }
  .hero { grid-template-columns: 1fr; }
  .receipt-wrap { transform: rotate(1deg); }
  .person { grid-template-columns: 1fr; }
  .reel { aspect-ratio: 1 / 1.1; }
  .decide { position: sticky; bottom: calc(var(--tabs-h) + 0.6rem); z-index: 5; }
  .decide .btn { max-width: none; box-shadow: 0 6px 16px rgba(22, 26, 58, 0.2); }
  .decide .btn-ghost { background: #fff; }
  .summary > div { grid-template-columns: 1fr; gap: 0.1rem; }
  .chat { min-height: calc(100vh - 12rem - var(--tabs-h)); }
}

@media (prefers-reduced-motion: no-preference) {
  .btn, .tabs a, .choice span { transition: background-color 0.12s ease, border-color 0.12s ease; }
  .reel { scroll-behavior: smooth; }
}


/* ===== Home page: colour blocks, stickers, very few words ===== */
body { overflow-x: clip; }
.splash { background: var(--pen); color: #fff; margin: -2rem calc(50% - 50vw) 0; padding: clamp(2.5rem, 7vw, 5.5rem) clamp(1rem, 4vw, 2.5rem) clamp(3.5rem, 8vw, 6rem); position: relative; }
.splash::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 22px; background: radial-gradient(circle at 22px 0, var(--pen) 21px, transparent 22px) -22px 0 / 44px 22px repeat-x; }
.splash-in { max-width: 63rem; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.splash h1 { font-size: clamp(2.9rem, 8vw, 5.6rem); font-weight: 900; line-height: 0.95; letter-spacing: -0.03em; margin-bottom: 0.3em; }
.splash-lede { font-size: clamp(1.25rem, 2.6vw, 1.6rem); font-weight: 600; margin-bottom: 1.4em; }
.splash-small { font-size: 0.95rem; opacity: 0.85; margin: 0; }
.splash :focus-visible { outline-color: var(--highlighter); }
.btn-sun { background: var(--highlighter); border-color: var(--highlighter); color: var(--ink); }
.btn-sun:hover { background: #fff; border-color: #fff; color: var(--ink); }
.receipt-stage { position: relative; justify-self: center; width: min(100%, 21rem); }
.receipt-stage .receipt-wrap { width: 100%; transform: rotate(3deg); filter: drop-shadow(0 10px 14px rgba(10, 14, 60, 0.3)); }
.receipt-stage .receipt { color: var(--ink); }
.sticker { position: absolute; display: grid; place-items: center; text-align: center; font: 800 1.05rem/1.05 var(--display); }
.sticker-burst { width: 8.2rem; height: 8.2rem; left: -3.4rem; top: -2rem; background: var(--heart); color: #fff; transform: rotate(-12deg); clip-path: polygon(50.0% 0.0%, 59.1% 10.0%, 71.7% 5.0%, 75.6% 17.9%, 89.1% 18.8%, 86.9% 32.2%, 98.7% 38.9%, 91.0% 50.0%, 98.7% 61.1%, 86.9% 67.8%, 89.1% 81.2%, 75.6% 82.1%, 71.7% 95.0%, 59.1% 90.0%, 50.0% 100.0%, 40.9% 90.0%, 28.3% 95.0%, 24.4% 82.1%, 10.9% 81.2%, 13.1% 67.8%, 1.3% 61.1%, 9.0% 50.0%, 1.3% 38.9%, 13.1% 32.2%, 10.9% 18.8%, 24.4% 17.9%, 28.3% 5.0%, 40.9% 10.0%); }
.sticker-round { width: 6.6rem; height: 6.6rem; right: -3.6rem; bottom: -1.6rem; background: var(--highlighter); color: var(--ink); border-radius: 50%; transform: rotate(10deg); font-size: 1.2rem; box-shadow: 0 6px 14px rgba(10, 14, 60, 0.35); }

.deal { padding: clamp(4rem, 9vw, 6.5rem) 0 clamp(2rem, 5vw, 3rem); }
.deal h2 { font-size: clamp(2rem, 5.4vw, 3.6rem); font-weight: 900; letter-spacing: -0.02em; line-height: 1; max-width: 16ch; margin: 0 0 clamp(1.5rem, 4vw, 2.5rem); }
.deal-tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.deal-tiles li { padding: 1.6rem 1.6rem 1.8rem; min-height: 15rem; display: flex; flex-direction: column; }
.deal-tiles svg { width: 4rem; height: 4rem; fill: none; stroke: currentColor; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; margin-bottom: auto; }
.deal-tiles h3 { font-size: clamp(1.6rem, 3vw, 2rem); font-weight: 800; margin: 1.2rem 0 0.25em; }
.deal-tiles p { margin: 0; font-size: 1.05rem; font-weight: 500; }
.tile-pink { background: var(--heart); color: #fff; border-radius: 36px 36px 36px 8px; transform: rotate(-1.5deg); }
.tile-sun { background: var(--highlighter); border-radius: 36px; }
.tile-mint { background: #8fe3c0; border-radius: 36px 36px 8px 36px; transform: rotate(1.5deg); }

.how { padding: clamp(2rem, 5vw, 3rem) 0; }
.how h2, .money h2, .closing2 h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin-top: 0; }
.how-steps { list-style: none; counter-reset: how; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.how-steps li { counter-increment: how; border-top: 4px solid var(--ink); padding-top: 0.6rem; }
.how-steps li::before { content: counter(how); display: block; font: 900 clamp(3rem, 8vw, 5rem)/1 var(--display); color: var(--pen); }
.how-steps strong { font: 700 clamp(1.05rem, 2.2vw, 1.35rem)/1.15 var(--display); }

.money { background: var(--ink); color: #fff; border-radius: 36px; padding: clamp(1.75rem, 5vw, 3rem); margin: clamp(2rem, 5vw, 3rem) 0; }
.money-chips { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 1rem 0 1.2rem; }
.money-chips span { background: var(--highlighter); color: var(--ink); font: 800 clamp(1.1rem, 2.6vw, 1.5rem)/1.1 var(--display); padding: 0.55em 0.9em; border-radius: 999px; }
.money-chips span:nth-child(2) { background: #8fe3c0; }
.money-end { margin: 0; opacity: 0.9; }
.money-end a { color: #fff; }
.money :focus-visible { outline-color: var(--highlighter); }
.closing2 { padding: clamp(1.5rem, 4vw, 2.5rem) 0 1rem; }

/* ===== Inside the app: a little more play ===== */
.person-bio { background: #fff; border-radius: 22px 22px 22px 6px; padding: 0.9em 1.1em; display: inline-block; }
.person-where { font-weight: 600; }
.btn-like::before, .decide .btn-ghost::before { content: ""; width: 1.15em; height: 1.15em; margin-right: 0.45em; background: currentColor; flex: none; }
.btn-like::before { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21C5 15.5 2 12 2 8.2 2 5.3 4.2 3 7 3c2 0 3.800 1.100 5 3 1.200-1.900 3-3 5-3 2.800 0 5 2.300 5 5.200 0 3.800-3 7.300-10 12.800z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21C5 15.5 2 12 2 8.2 2 5.3 4.2 3 7 3c2 0 3.800 1.100 5 3 1.200-1.900 3-3 5-3 2.800 0 5 2.300 5 5.200 0 3.800-3 7.300-10 12.800z'/%3E%3C/svg%3E") center / contain no-repeat; }
.decide .btn-ghost::before { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 5l14 14M19 5L5 19' stroke='%23000' stroke-width='3.500' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 5l14 14M19 5L5 19' stroke='%23000' stroke-width='3.500' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.reel { border-radius: 36px 36px 36px 10px; }
.flash-match { border-radius: 22px; padding: 1em 1.3em; font-family: var(--display); font-size: 1.35rem; }
.center-sheet h1, .center-sheet h2 { color: var(--pen); }
.foot p:first-child { font-weight: 600; color: var(--ink); }

@media (max-width: 760px) {
  .splash-in { grid-template-columns: 1fr; }
  .receipt-stage { margin-top: 1.5rem; width: min(86%, 20rem); }
  .sticker-burst { left: -1.6rem; top: -2.6rem; width: 7rem; height: 7rem; font-size: 0.92rem; }
  .sticker-round { right: -1.8rem; bottom: -2.2rem; width: 5.6rem; height: 5.6rem; font-size: 1.05rem; }
  .how-steps { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 1rem; }
  .tile-pink, .tile-mint { transform: none; }
  .deal-tiles li { min-height: 0; }
  .deal-tiles svg { margin-bottom: 0.5rem; width: 3.2rem; height: 3.2rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .receipt-stage .receipt-wrap { animation: print 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  .sticker { animation: slap 0.35s cubic-bezier(0.3, 1.5, 0.5, 1) 0.65s both; }
  .sticker-round { animation-delay: 0.85s; }
  @keyframes print { from { clip-path: inset(0 0 100% 0); translate: 0 -24px; } to { clip-path: inset(0 0 -40px 0); translate: 0 0; } }
  @keyframes slap { from { scale: 1.8; opacity: 0; } to { scale: 1; opacity: 1; } }
  .flash-match { animation: slap 0.4s cubic-bezier(0.3, 1.5, 0.5, 1) both; }
}

/* Sign in with Google / X / Facebook */
.social { display: grid; gap: 0.6rem; margin-top: 1.25rem; }
.social .btn { width: 100%; }
.or { display: flex; align-items: center; gap: 0.8em; color: var(--ink-soft); font-size: 0.9rem; margin: 1.4rem 0 0.4rem; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1.5px solid var(--line); }
