/* My Big Little Wins website (design_handoff_website, 30 September 2026;
   home page, header and footer from design_handoff_website_v2, 3 October 2026).
   Load after tokens.css and before motion.css. Plain CSS, no build step. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  transition: background-color var(--quick) ease, color var(--quick) ease;
}
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: var(--link-line); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--sage-ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
h1, h2, h3 { margin: 0; font-weight: 800; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: var(--gutter); top: -100px; z-index: 10;
  background: var(--surface); padding: 10px 16px; border-radius: var(--radius-pill); font-weight: 800;
}
.skip:focus { top: 12px; }

.wrap { max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.muted { color: var(--text-muted); }

/* The app icon as a logo tile: sage tile, cream circle inset 20%, coral dot 20% centred (container 1200 of content, v2). */
.mark { position: relative; flex: none; background: #CFDCC8; }
.mark::before { content: ""; position: absolute; inset: 20%; border-radius: 50%; background: #FBF6EE; }
.mark::after { content: ""; position: absolute; left: 40%; top: 40%; width: 20%; height: 20%; border-radius: 50%; background: #F2735A; }
/* The small win marker: a sage circle holding the coral dot, down and right of centre. */
.marker { position: relative; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--calm); }
.marker::after { content: ""; position: absolute; left: 11px; top: 11px; width: 8px; height: 8px; border-radius: 50%; background: var(--add-win); }

/* Header */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.site-header .brand { flex: 1; min-width: 0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand .mark { width: 34px; height: 34px; border-radius: 9.5px; }
.brand span { font-size: 1.1875rem; font-weight: 800; letter-spacing: -0.2px; white-space: nowrap; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: var(--radius-pill);
  font-size: 1rem; font-weight: 800; text-decoration: none; white-space: nowrap;
}
.site-nav a[aria-current="page"] { background: var(--warm); }
@media (min-width: 768px) {
  .site-header { padding-top: 28px; padding-bottom: 28px; }
  .brand .mark { width: 40px; height: 40px; border-radius: 11px; }
  .brand span { font-size: 1.375rem; }
}

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 40px; }
.site-footer .wrap { display: flex; flex-direction: column; gap: 20px; padding-top: 28px; padding-bottom: 40px; }
.site-footer .brand .mark { width: 28px; height: 28px; border-radius: 8px; }
.site-footer .brand span { font-size: 1.125rem; }
.site-footer .made { margin-top: 8px; font-size: var(--small); color: var(--text-muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0; padding: 0; list-style: none; }
.footer-links { gap: 4px 18px; }
.footer-links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 10px 0; font-size: 1rem; font-weight: 700; white-space: nowrap;
  text-decoration: underline; text-decoration-color: var(--link-line); text-decoration-thickness: 2px; text-underline-offset: 4px;
}
.copyright { font-size: var(--caption); color: var(--text-muted); white-space: nowrap; }
.site-footer .made { white-space: nowrap; }
@media (min-width: 768px) {
  .site-footer { margin-top: 64px; }
  .site-footer .wrap { flex-direction: row; justify-content: space-between; align-items: flex-start; padding: 40px var(--gutter) 48px; }
  .footer-end { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
  .footer-links { justify-content: flex-end; }
}

/* Cards and panels */
.card { background: var(--surface); border: 1px solid var(--card-line); border-radius: var(--radius-card); box-shadow: var(--e1); }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; padding: 0 32px;
  border: 0; border-radius: var(--radius-pill); background: var(--calm); color: var(--text);
  font: inherit; font-size: var(--callout); font-weight: 800; cursor: pointer; text-decoration: none;
  transition: background var(--quick) var(--ease), transform var(--quick) var(--ease);
}
.button:hover { background: #C3D3BB; }
.button:active { transform: scale(0.98); }
.button[disabled] { opacity: 0.6; cursor: default; }
.button-secondary {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: var(--radius-pill);
  background: transparent; border: 1.5px solid var(--line); color: var(--text);
  font: inherit; font-size: 1rem; font-weight: 800; cursor: pointer;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .button:hover { background: #455642; } }
:root[data-theme="dark"] .button:hover { background: #455642; }

/* Store badges (after launch) */
.badges { display: flex; flex-wrap: wrap; gap: 12px; }
.badges img { height: 54px; width: auto; }

/* ---------- Home v2 (design_handoff_website_v2) ----------
   Phone values first; desktop values from 1024 px, where layouts go to two or more columns.
   Motion and reduced-motion stills live in motion.css. */

/* Sections: 48 px apart on desktop (each 48 px padding top and bottom), 24 on phone. */
.section { padding-top: 24px; padding-bottom: 24px; }
.section h2 { font-size: var(--h2); line-height: 1.2; }
@media (min-width: 1024px) { .section { padding-top: 48px; padding-bottom: 48px; } }

/* Light and dark images that follow the theme switch (or the device in Auto). */
.only-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .only-light { display: none; }
  :root:not([data-theme="light"]) .only-dark { display: block; }
}
:root[data-theme="dark"] .only-light { display: none; }
:root[data-theme="dark"] .only-dark { display: block; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 12px; padding-bottom: 48px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.hero-copy > .celebrate { --s: 56px; }
.eyebrow { display: flex; align-items: center; gap: 8px; font-size: .9375rem; font-weight: 800; color: var(--sage-ink); }
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sage-ink); flex: none; }
.hero h1 { font-size: var(--display); line-height: 1.08; letter-spacing: -0.015em; text-wrap: balance; }
.hero .lead { font-size: var(--lead); line-height: 1.5; color: var(--text-muted); max-width: 560px; }
.hero .examples { font-size: 1.125rem; line-height: 1.55; font-weight: 700; max-width: 560px; }
.hero-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 4px; }
.status {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px 0 18px; border-radius: var(--radius-pill);
  background: var(--surface); border: 1.5px solid var(--line); box-shadow: var(--e1);
  font-size: 1.0625rem; font-weight: 800; white-space: nowrap;
}
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--add-win); flex: none; }
.note { font-size: .9375rem; color: var(--text-muted); }

.hero-stage { position: relative; height: 560px; display: flex; align-items: center; justify-content: center; }
.hero-halo { position: absolute; width: 360px; height: 360px; border-radius: 50%; background: var(--sun-wash); }
.hero-halo--sage { width: 230px; height: 230px; background: var(--halo-sage); }
.phone { position: relative; padding: 9px; border-radius: 44px; background: #15100D; box-shadow: 0 24px 60px rgba(40,25,15,.22); }
.phone-screen { position: relative; width: 236px; height: 512px; border-radius: 36px; overflow: hidden; background: var(--background); }
.phone-screen img { width: 100%; height: 100%; object-fit: cover; }
.phone-sheet {
  position: absolute; left: 0; right: 0; top: 34px; bottom: 0; padding: 0 16px;
  display: flex; flex-direction: column; align-items: center;
  background: var(--background); border-radius: 28px 28px 0 0; box-shadow: 0 -6px 20px rgba(40,25,15,.10);
}
.phone-sheet .grabber { width: 32px; height: 4px; border-radius: 2px; background: var(--line); margin-top: 8px; flex: none; }
.phone-sheet .celebrate { --s: 124px !important; margin-top: 26px; }
.phone-sheet .line { margin-top: 18px; align-self: stretch; text-align: center; font-size: 1.1875rem; line-height: 1.2; font-weight: 800; }
.phone-sheet .quote {
  margin-top: 14px; align-self: stretch; padding: 10px 12px; border-radius: 16px; text-align: center;
  background: var(--surface); border: 1px solid var(--card-line); color: var(--text-muted);
  font-size: .8125rem; line-height: 18px; font-weight: 600;
}
.phone-sheet .done {
  position: absolute; left: 16px; right: 16px; bottom: 22px; height: 42px; border-radius: var(--radius-pill);
  display: flex; align-items: center; justify-content: center; background: var(--calm); font-size: .9375rem; font-weight: 800;
}
@media (min-width: 1024px) {
  .hero { grid-template-columns: 1.05fr .95fr; gap: 64px; padding-top: 40px; padding-bottom: 96px; }
  .hero-copy > .celebrate { --s: 72px; }
  .hero .examples { font-size: 1.125rem; }
  .hero-stage { height: 720px; }
  .hero-halo { width: 600px; height: 600px; }
  .hero-halo--sage { width: 380px; height: 380px; }
  .phone { border-radius: 52px; }
  .phone-screen { width: 300px; height: 652px; border-radius: 44px; }
  .phone-sheet { top: 44px; }
  .phone-sheet .celebrate { --s: 170px !important; margin-top: 44px; }
  .phone-sheet .line { font-size: 1.375rem; }
}

/* Section headings */
.section-head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.section-head p { font-size: var(--callout); color: var(--text-muted); }
@media (min-width: 1024px) { .section-head { margin-bottom: 32px; } }
.section-intro { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.section-intro p { font-size: var(--lead); line-height: 1.5; color: var(--text-muted); }

/* Every kind of win */
.win-grid { margin-top: 36px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.win-card {
  display: flex; flex-direction: column; gap: 22px; padding: 22px;
  background: var(--surface); border: 1px solid var(--card-line); border-radius: var(--radius-demo); box-shadow: var(--e1);
}
.win-card-stage { align-self: center; flex: none; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.win-card-stage .celebrate { --s: 140px !important; }
.win-card-body { display: flex; flex-direction: column; gap: 12px; flex: 1; min-width: 0; }
.win-card .kicker { align-self: flex-start; padding: 5px 12px; border-radius: var(--radius-pill); background: var(--warm); font-size: .875rem; font-weight: 800; white-space: nowrap; }
.win-quote { font-size: 1.25rem; line-height: 1.35; font-weight: 800; }
.says { display: flex; flex-direction: column; gap: 4px; font-size: 1.125rem; line-height: 1.4; font-weight: 700; }
.says-label { font-size: .8125rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--text-muted); }
.text-link {
  align-self: flex-start; min-height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer;
  font: inherit; font-size: .9375rem; font-weight: 800; color: var(--sage-ink); white-space: nowrap;
  text-decoration: underline; text-decoration-color: var(--link-line); text-decoration-thickness: 2px; text-underline-offset: 4px;
}
.after-cards { margin-top: 40px; text-align: center; font-size: 1.375rem; line-height: 1.35; font-weight: 800; text-wrap: balance; }
@media (min-width: 1024px) {
  .win-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .win-card { padding: 28px; grid-column: span 2; }
  .win-card-stage .celebrate { --s: 160px !important; }
  .win-card--wide { grid-column: span 3; flex-direction: row; align-items: center; }
  .win-quote { font-size: 1.375rem; }
  .after-cards { font-size: 1.625rem; }
}

/* How it feels */
.how-grid { margin-top: 32px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.how { display: flex; flex-direction: column; gap: 16px; }
.how h3 { font-size: 1.375rem; line-height: 1.27; }
.how > p { font-size: 1.0625rem; line-height: 1.5; color: var(--text-muted); }
.demo { min-height: 340px; padding: 22px; border-radius: var(--radius-demo); display: flex; flex-direction: column; gap: 14px; }
.demo--surface { background: var(--surface); border: 1px solid var(--card-line); }
.demo--sun { background: var(--sun-wash); }
.demo-label { font-size: .8125rem; font-weight: 800; color: var(--text-muted); }
.demo-label + .mini-list { margin-top: -4px; }
.demo .chips + .demo-label { margin-top: 6px; }
@media (min-width: 1024px) { .how-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* The one-tap chip (a real button) and the decorative one beside it */
.demo .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.demo .chip {
  display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 18px 0 12px; border-radius: var(--radius-pill);
  background: var(--surface); border: 1.5px solid var(--line); color: var(--text);
  font: inherit; font-size: 1rem; font-weight: 700; white-space: nowrap; cursor: pointer;
}
.demo .chip--static { cursor: default; }
.chip-icon { position: relative; width: 20px; height: 20px; flex: none; }
.demo .chip .mark { position: absolute; inset: 0; border-radius: 50%; background: #FBF6EE; }
.demo .chip .mark::before, .demo .chip .mark::after { content: none; }
.demo .chip .mark-dot { position: absolute; left: 6px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--add-win); }
.demo .chip .plus { font-size: 1.375rem; font-weight: 600; line-height: 1; color: var(--sage-ink); }
.chip-icon .plus { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.chip--static .plus { width: 20px; text-align: center; }
.mini-list { border-radius: 20px; border: 1px solid var(--card-line); overflow: hidden; background: var(--background); }
.mini-list .row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; font-size: 1rem; white-space: nowrap; }
.mini-list .row > span:nth-child(2) { flex: 1; }
.landed-row .row { border-bottom: 1px solid var(--line); }
.mini-list .marker { width: 10px; height: 10px; margin: 0 9px; background: var(--marker-dot); }
.mini-list .marker::after { content: none; }
.mini-list .undo { font-size: .875rem; font-weight: 800; color: var(--sage-ink); }

/* I Need a Win */
.demo-title { font-size: 1.125rem; font-weight: 800; }
.stack { position: relative; flex: none; margin-bottom: 8px; }
.stack-edge { position: absolute; left: 14px; right: 14px; top: 14px; bottom: -10px; border-radius: 22px; background: var(--surface); opacity: .55; }
.handed {
  position: relative; min-height: 132px; padding: 18px; border-radius: 22px; background: var(--surface); box-shadow: var(--lift);
  display: flex; flex-direction: column; justify-content: space-between; gap: 10px;
}
.handed .when { font-size: .875rem; font-weight: 700; color: var(--text-muted); white-space: nowrap; }
.handed .text { font-size: 1.3125rem; line-height: 1.3; font-weight: 800; text-wrap: pretty; }
.sun-button {
  height: 48px; border: 0; border-radius: var(--radius-pill); background: var(--celebrate); color: var(--on-accent);
  font: inherit; font-size: 1rem; font-weight: 800; cursor: pointer;
}
.support-row {
  display: flex; align-items: center; justify-content: space-between; height: 40px; padding: 0 14px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--card-line); font-size: .875rem; font-weight: 800;
}
.support-row span { color: var(--text-muted); }

/* Remember this? and the weekly letter */
.postcard { position: relative; padding: 16px 18px 6px; border-radius: var(--radius-postcard); background: var(--soft); }
.postmark {
  position: absolute; right: 14px; top: 12px; width: 44px; height: 44px; border-radius: 50%; border: 1.5px dashed var(--postmark);
  display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--text-muted);
}
.postmark .mon { font-size: 9px; line-height: 10px; font-weight: 900; letter-spacing: .06em; }
.postmark .day { font-size: 15px; line-height: 16px; font-weight: 900; }
.postcard-kicker { font-size: .875rem; font-weight: 800; color: var(--text-muted); }
.postcard .words { margin-top: 4px; padding-right: 50px; min-height: 52px; font-size: 1.1875rem; line-height: 26px; font-weight: 700; }
.postcard-foot { display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.postcard .date { font-size: .875rem; font-weight: 700; color: var(--text-muted); white-space: nowrap; }
/* Ink, not sage, on lavender: sage text there falls just under WCAG AA. */
.postcard-foot button { height: 44px; padding: 0 4px; border: 0; background: transparent; color: var(--text); font: inherit; font-size: .9375rem; font-weight: 800; cursor: pointer; }
.letter-row { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 20px; background: var(--soft-row); }
.letter-title { font-size: 1rem; font-weight: 800; }
.letter-body { font-size: .875rem; line-height: 1.4; color: var(--text-muted); }
.letter-end { margin-top: 4px; font-size: .9375rem; font-weight: 800; }

/* Who it's for */
.who-panel {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 28px 22px;
  background: var(--surface); border: 1px solid var(--card-line); border-radius: var(--radius-panel); box-shadow: var(--e1);
}
.who-intro { display: flex; flex-direction: column; gap: 12px; }
.who-intro p { font-size: 1.125rem; line-height: 1.55; color: var(--text-muted); }
.who-list { list-style: none; margin: 0; padding: 0; }
.who-list li { display: flex; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.who-list li:first-child { border-top: 0; }
.who-list h3 { font-size: 1.25rem; line-height: 1.3; }
.who-list p { margin-top: 4px; font-size: 1.0625rem; line-height: 1.5; color: var(--text-muted); }
/* The small logo on a pastel tile (the same pastels in light and dark, like the logo tile). */
.tile { position: relative; flex: none; width: 40px; height: 40px; border-radius: 12px; }
.tile::before { content: ""; position: absolute; inset: 22%; border-radius: 50%; background: #FBF6EE; }
.tile::after { content: ""; position: absolute; left: 41%; top: 41%; width: 18%; height: 18%; border-radius: 50%; background: #F2735A; }
.tile-calm { background: #CFDCC8; } .tile-soft { background: #DCD6EE; } .tile-warm { background: #FCE3D6; } .tile-sun { background: #FFF1CC; }
@media (min-width: 1024px) { .who-panel { grid-template-columns: .8fr 1.2fr; gap: 48px; padding: 48px; } }

/* What we'll never do */
.never-panel { display: flex; flex-direction: column; gap: 28px; padding: 28px 22px; border-radius: var(--radius-panel); background: var(--calm-wash); }
.never-panel h2 { text-align: center; }
.never-list {
  list-style: none; margin: 0 auto; padding: 0; max-width: 980px;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px 32px;
}
.never-list li { display: flex; gap: 14px; align-items: flex-start; font-size: 1.125rem; line-height: 1.5; }
.no-mark { position: relative; flex: none; width: 28px; height: 28px; margin-top: 1px; border-radius: 50%; background: var(--calm); }
.no-mark::after { content: ""; position: absolute; left: 8px; right: 8px; top: 13px; height: 2.5px; border-radius: 2px; background: var(--sage-ink); }
@media (min-width: 1024px) {
  .never-panel { padding: 48px; }
  .never-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Made by */
.made-by { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.made-by h2, .made-by p { align-self: stretch; }
.made-by p { font-size: var(--lead); line-height: 1.6; color: var(--text-muted); }
.initials { display: flex; }
.initials span {
  width: 52px; height: 52px; border-radius: 50%; border: 3px solid var(--background);
  display: flex; align-items: center; justify-content: center; font-size: 1.25rem; font-weight: 900;
}
.initials span:first-child { background: var(--calm); }
.initials span + span { margin-left: -12px; background: var(--soft); }

/* Closing band */
.closing { display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 40px 22px; text-align: center; border-radius: var(--radius-panel); background: var(--sun-wash); }
.closing .celebrate { --s: 120px !important; }
.closing-big { align-self: stretch; font-size: 1.875rem; line-height: 1.15; font-weight: 800; }
.closing-small { align-self: stretch; font-size: 1.125rem; color: var(--text-muted); }
@media (min-width: 1024px) {
  .closing { padding: 64px 48px; }
  .closing .celebrate { --s: 150px !important; }
  .closing-big { font-size: 2.75rem; }
}

/* Focus on every button, including the round stages. */
.win-card-stage:focus-visible, .demo button:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }


/* Home: community */
.collective { background: var(--soft); border-radius: 28px; padding: 28px 24px; margin-bottom: 20px; }
.collective .kicker { display: flex; align-items: center; gap: 8px; font-size: var(--small); font-weight: 800; color: var(--text-muted); }
.collective .kicker .marker { width: 18px; height: 18px; }
.collective .kicker .marker::after { left: 8px; top: 8px; width: 6px; height: 6px; }
.collective p.text { margin-top: 12px; font-size: 1.25rem; line-height: 1.45; font-weight: 700; max-width: 860px; }
.quotes { columns: 1; column-gap: 20px; margin: 0; padding: 0; list-style: none; }
.quotes li { break-inside: avoid; margin-bottom: 20px; }
.quotes blockquote { margin: 0; padding: 22px 24px; display: flex; gap: 14px; align-items: flex-start; font-size: 1.1875rem; line-height: 27px; font-weight: 600; }
.quotes li:nth-child(3n+2) blockquote { font-size: 1.375rem; line-height: 30px; }
@media (min-width: 1024px) {
  .collective { padding: 36px 40px; }
  .collective p.text { font-size: 1.5rem; line-height: 34px; }
  .quotes { columns: 3; }
}

/* Contact */
.contact { display: grid; gap: 32px; padding-top: 8px; padding-bottom: 24px; }
.contact-intro { display: flex; flex-direction: column; gap: 16px; }
.page-title { font-size: var(--page-title); line-height: 1.1; }
.contact-intro .lead { font-size: var(--lead); line-height: 1.5; color: var(--text-muted); }
.safety { background: var(--surface); border: 2px solid var(--text); border-radius: var(--radius-card); padding: 18px 20px; }
.safety strong { display: block; font-size: var(--callout); line-height: 24px; font-weight: 800; }
.safety p { margin-top: 4px; font-size: 1rem; line-height: 24px; }
.form-card { border-radius: 28px; padding: 22px; }
.form-card form { display: flex; flex-direction: column; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label, fieldset legend { font-size: var(--label); font-weight: 800; }
.field .optional { font-weight: 400; color: var(--text-muted); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset legend { padding: 0; margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
label.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
label.chip > span {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: var(--radius-pill);
  background: var(--surface); border: 1.5px solid var(--line); font-size: var(--small); font-weight: 700; cursor: pointer;
}
label.chip input:checked + span { background: var(--calm); border-color: var(--calm); font-weight: 800; }
/* v2: coral only means adding, so a chosen topic gets a sage dot. */
label.chip input:checked + span::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--sage-ink); }
label.chip input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 3px; }
.input {
  width: 100%; min-height: 56px; padding: 14px 16px; border-radius: var(--radius-field); border: 2px solid transparent;
  background: var(--warm); color: var(--text); font: inherit; font-size: var(--callout); line-height: 24px;
}
.input::placeholder { color: var(--text-muted); }
.input:focus { outline: none; border-color: var(--text); }
.input[aria-invalid="true"] { border-color: var(--danger); }
textarea.input { min-height: 150px; resize: vertical; }
.field-error { font-size: var(--small); font-weight: 700; color: var(--danger); }
.send-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.send-row p { font-size: var(--caption); color: var(--text-muted); }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.banner { display: flex; gap: 12px; align-items: flex-start; background: var(--danger-wash); border-radius: 18px; padding: 14px 16px; }
.banner:focus { outline: none; }
.banner:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.banner .bang { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--danger); color: var(--surface); display: grid; place-items: center; font-weight: 800; font-size: 15px; }
.banner strong { display: block; font-size: 1rem; font-weight: 800; }
.banner p { font-size: var(--small); }
.sent { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; padding: 24px 8px; }
.sent:focus { outline: none; }
.sent h2 { font-size: 1.75rem; line-height: 34px; }
.sent p { color: var(--text-muted); max-width: 420px; }
@media (min-width: 1024px) {
  .contact { grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: start; padding-top: 16px; }
  .form-card { padding: 36px; }
}

/* Legal pages */
.legal { display: grid; gap: 24px; padding-top: 8px; padding-bottom: 24px; }
.toc { display: none; }
.toc-mobile { margin-top: 16px; }
.toc-mobile summary { cursor: pointer; font-weight: 800; min-height: 44px; display: flex; align-items: center; gap: 8px; list-style: none; }
.toc-mobile summary::-webkit-details-marker { display: none; }
.toc-mobile summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform var(--quick) var(--ease); }
.toc-mobile[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.toc ol, .toc-mobile ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.toc a, .toc-mobile a { display: block; padding: 8px 12px; border-radius: 12px; font-size: var(--small); font-weight: 600; text-decoration: none; }
.toc a[aria-current="true"] { background: var(--warm); font-weight: 800; }
.toc-label { font-size: var(--caption); font-weight: 800; color: var(--text-muted); margin: 0 0 8px 12px; }
.article { max-width: 720px; font-size: var(--body); line-height: 1.6; }
.article .updated { margin-top: 8px; font-size: 1rem; color: var(--text-muted); }
.article .draft { margin-top: 20px; background: var(--sun-wash); border-radius: 18px; padding: 12px 16px; font-size: var(--small); font-weight: 700; }
.article .summary { margin-top: 20px; padding: 22px 24px; }
.article .summary h2 { margin-top: 0; font-size: 1.25rem; }
.article h2 { font-size: var(--legal-h2); line-height: 1.28; margin-top: 48px; scroll-margin-top: 24px; }
.article h3 { font-size: 1.25rem; line-height: 26px; margin-top: 24px; }
.article p { margin-top: 12px; }
.article ul, .article ol { margin: 12px 0 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.article .summary ul { list-style: none; padding-left: 0; }
.article .summary li { position: relative; padding-left: 18px; font-size: var(--callout); line-height: 26px; }
.article .summary li::before { content: ""; position: absolute; left: 0; top: 10px; width: 7px; height: 7px; border-radius: 50%; background: var(--marker-dot); }
.table-card { margin-top: 16px; overflow: hidden; border-radius: 20px; }
.table-card table { width: 100%; border-collapse: collapse; font-size: 1rem; line-height: 1.45; }
.table-card th, .table-card td { text-align: left; vertical-align: top; padding: 12px 16px; border-top: 1px solid var(--line); }
.table-card thead th { background: var(--background); font-weight: 800; border-top: 0; }
.table-card .where-inline { display: block; color: var(--text-muted); font-size: var(--small); }
.table-card .where-col { display: none; }
@media (min-width: 768px) {
  .table-card .where-inline { display: none; }
  .table-card .where-col { display: table-cell; }
}
@media (min-width: 1024px) {
  .legal { grid-template-columns: 220px 1fr; gap: 64px; padding-top: 16px; }
  .toc { display: block; position: sticky; top: 24px; align-self: start; margin-top: 120px; }
  .toc-mobile { display: none; }
}

/* Colour theme switch: Auto, Light, Dark. Always in the header; words from 768 px, icons below. */
.theme { display: inline-flex; gap: 2px; padding: 3px; border-radius: var(--radius-pill); background: var(--warm); }
.theme button {
  display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 12px 0 10px; border: 0; border-radius: var(--radius-pill);
  background: transparent; color: var(--text); font: inherit; font-size: var(--caption); font-weight: 700; cursor: pointer;
}
.theme button[aria-checked="true"] { background: var(--surface); font-weight: 800; box-shadow: 0 1px 3px rgba(59,42,34,.14); }
.theme-icon { position: relative; flex: none; width: 14px; height: 14px; border-radius: 50%; }
.theme-auto { border: 2px solid currentColor; background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
.theme-light { background: var(--celebrate); border: 2px solid #E9B93F; }
.theme-dark { background: transparent; box-shadow: inset -4px -3px 0 0 currentColor; }
/* Dave, 3 October: on phones the switch stays at the top (three icons, each with its own
   label for screen readers) and Contact moves to the footer ("Contact us" is always there).
   From 768 px the switch shows its words and Contact sits beside it. */
.header-end { display: flex; align-items: center; gap: 12px; }
.header-end .site-nav { display: none; }
.header-end .theme button { gap: 0; min-width: 40px; padding: 0 10px; font-size: 0; justify-content: center; }
.footer-theme { display: none; }
/* Smaller phones (under 375 px): a little tighter, so the wordmark is never cut off. */
@media (max-width: 374px) {
  .site-header { --gutter: 16px; gap: 8px; }
  .site-header .brand { gap: 8px; }
  .site-header .brand span { font-size: .9375rem; }
  .header-end .theme button { min-width: 32px; padding: 0 7px; }
}
@media (min-width: 768px) {
  .header-end .site-nav { display: block; }
  .header-end .theme button { gap: 6px; min-width: 0; padding: 0 12px 0 10px; font-size: var(--caption); }
}
@media (prefers-reduced-motion: reduce) { body { transition: none; } }

/* Sign in, in the header: opens the web app. Greyed out until launch. On small phones
   there is no room beside the colour switch, so it shows from 600 px. */
.signin {
  display: none; align-items: center; min-height: 40px; padding: 0 18px; border-radius: var(--radius-pill);
  border: 1.5px solid var(--line); background: var(--surface); color: var(--text);
  font: inherit; font-size: 1rem; font-weight: 800; text-decoration: none; white-space: nowrap; cursor: pointer;
}
.signin:disabled { background: none; color: var(--text-muted); opacity: .6; cursor: default; }
@media (min-width: 600px) { .signin { display: inline-flex; } }

/* Made by: the two of us. */
.made-photo img { display: block; width: 220px; height: 220px; border-radius: 32px; object-fit: cover; box-shadow: var(--e1); }

/* The longer "Coming soon to phone and computer" still fits on a small phone. */
@media (max-width: 420px) { .status { font-size: .9375rem; padding: 0 18px 0 14px; gap: 8px; } }

/* Sign in on small phones: under the hero's "coming soon", with its note in words (there is
   no tooltip on a touch screen). From 600 px the header's button takes over. */
.signin-row { display: flex; align-items: center; gap: 12px; margin-top: 6px; font-size: .9375rem; color: var(--text-muted); }
.signin-row .signin { display: inline-flex; }
@media (min-width: 600px) { .signin-row { display: none; } }
