/* SendQuo web pages. One stylesheet, no script, no third-party request.
   Fonts are the app's own IBM Plex Sans files (app/assets/fonts), served
   unmodified from /assets/fonts with their OFL licence beside them.
   Accent: plum #651657, the store and ad colour (decision 35) — these pages
   are linked from the Play listing and the Data safety form, so they wear the
   public brand; the app's blue #1F4E96 stays inside the app.

   Token sheet (Mara, 2026-10-28). Everything below uses only these:
   type 16 / 17 / 20 / 24 / 32 (28 on a phone) / 44 (32 on a phone);
   space 4 / 8 / 12 / 16 / 24 / 32 / 48 / 64; radius 4 and 8; one 1px border.
   The only coloured border is the "still to be decided" state (4px bar).
   2026-10-29: the landing page (home) adds one token, --page, the width of a
   page that is not a reading column. No colour, size or radius was added. */

@font-face {
  font-family: "IBM Plex Sans";
  src: url("/assets/fonts/IBMPlexSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("/assets/fonts/IBMPlexSans-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("/assets/fonts/IBMPlexSans-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("/assets/fonts/IBMPlexSans-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Colour. Every text pairing measured (WCAG, from these hex values):
     text 17.2:1, muted 7.4:1, accent 11.6:1 on bg; text 15.7:1, muted 6.7:1,
     accent 10.6:1 on warn-bg; accent 10.7:1 on surface. Non-text: warn-border
     3.5:1 on warn-bg, 3.8:1 on bg (WCAG 1.4.11 needs 3:1); text 13.4:1 on
     mark-bg. A placeholder is also named in words ("[OWNER: ...]"). */
  --bg: #ffffff;
  --surface: #f7f4f7;
  --text: #1d1a1e;
  --muted: #5a5360;
  --border: #e3dce2;
  --accent: #651657;
  --accent-hover: #4a0f40;
  --warn-bg: #fff4d1;
  --warn-border: #a87b00;
  --warn-text: #3a2b00;
  --mark-bg: #ffe08a;

  /* Type */
  --fs-small: 16px;
  --fs-lead: 20px;
  --fs-h2: 24px;
  --fs-h1: 32px;
  --fs-display: 44px;

  /* Space */
  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-24: 24px;
  --space-32: 32px;
  --space-48: 48px;
  --space-64: 64px;

  --radius-sm: 4px;
  --radius-lg: 8px;
  --line: 1px solid var(--border);
  --bar: 4px; /* the "still to be decided" bar, the one border that is not --line */
  --target: 44px;

  /* The reading column. --measure (68ch) is the hard ceiling, but a "ch" is
     the width of a zero, wider than an average letter: at 68ch, measured lines
     ran 85-87 characters (median) and up to 101 at 1440px. 34rem gives about
     67. rem, not em or ch, so the banner, header, page and footer (which use
     different font sizes) share one left edge. */
  --measure: 68ch;
  --column: 34rem;
  /* The landing page's width: hero text beside the phone capture, and the
     feature rows (heading | list) under it. The lists keep --column. */
  --page: 70rem;
  color-scheme: light;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  overflow-wrap: break-word;
}

.wrap {
  max-width: calc(min(var(--column), var(--measure)) + 2 * var(--space-16));
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-16);
  padding-right: var(--space-16);
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
a:hover {
  color: var(--accent-hover);
  text-decoration-thickness: 2px;
}
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* A link inside a sentence keeps the text's line height, but its tap area
   reaches 12px above and below the words (at least 44px tall on a phone).
   An invisible layer, so neither the lines nor the focus ring move. */
.legal p a,
.legal li a {
  position: relative;
}
.legal p a::after,
.legal li a::after {
  content: "";
  position: absolute;
  inset: calc(-1 * var(--space-12)) 0;
}
.toc li a {
  position: static;
}
.toc li a::after {
  content: none;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: var(--space-16);
  top: var(--space-8);
  background: var(--bg);
  padding: var(--space-8) var(--space-16);
  z-index: 10;
}

/* DRAFT banner (removed by the Worker when SITE_DRAFT = "false"). */
.draft-banner {
  background: var(--warn-bg);
  border-bottom: 1px solid var(--warn-border);
  color: var(--warn-text);
}
.draft-banner p {
  max-width: calc(min(var(--column), var(--measure)) + 2 * var(--space-16));
  margin: 0 auto;
  padding: var(--space-8) var(--space-16);
  font-size: var(--fs-small);
  line-height: 1.5;
}
.draft-key {
  display: inline-block;
}

/* Passages still to be decided by the owner. A live page must have none
   (test/files.test.ts fails a live config that still carries one).
   A whole passage gets the banner's own tint plus a bar, so "highlighted" in
   the banner describes it literally; a blank to fill in gets a stronger chip, which breaks across lines as one
   span (no box-decoration-break: cloned, a wrapped blank read as several). */
mark.unsettled {
  background: var(--mark-bg);
  color: inherit;
  border: 1px solid var(--warn-border);
  border-radius: var(--radius-sm);
  padding: 0 var(--space-4);
}
[data-unsettled="block"] {
  background: var(--warn-bg);
  border-left: var(--bar) solid var(--warn-border);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: var(--space-4) var(--space-12);
}
li[data-unsettled="block"] {
  margin-bottom: var(--space-8);
}
tr[data-unsettled="block"] {
  border-left: 0;
  border-radius: 0;
  padding: 0;
}

.site-header {
  border-bottom: var(--line);
}
.header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 var(--space-24);
  padding-top: var(--space-8);
  padding-bottom: var(--space-8);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-12);
  min-height: var(--target);
  font-weight: 700;
  font-size: var(--fs-lead);
  color: var(--accent);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.site-header nav,
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--space-16);
  font-size: var(--fs-small);
}
.site-header nav a,
.site-footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: var(--target);
  text-decoration: none;
}
.site-header nav a[aria-current="page"] {
  color: var(--text);
  font-weight: 600;
}

main {
  padding-top: var(--space-32);
  padding-bottom: var(--space-64);
}

h1,
h2,
h3,
h4 {
  line-height: 1.25;
  font-weight: 700;
  color: var(--text);
}
h1 {
  font-size: var(--fs-h1);
  margin: 0 0 var(--space-24);
  letter-spacing: -0.01em;
}
.legal h1 {
  margin-bottom: var(--space-8);
}
.updated {
  color: var(--muted);
  font-size: var(--fs-small);
  margin: 0 0 var(--space-24);
}
h2 {
  font-size: var(--fs-h2);
  margin: var(--space-48) 0 var(--space-16);
  padding-top: var(--space-24);
  border-top: var(--line);
  scroll-margin-top: var(--space-16);
}
h3,
h4 {
  font-size: var(--fs-lead);
  margin: var(--space-32) 0 var(--space-8);
}

p,
ul,
ol {
  margin: 0 0 var(--space-16);
}
ul,
ol {
  padding-left: var(--space-24);
}
li {
  margin: 0 0 var(--space-8);
}
li > p {
  margin: 0;
}
strong {
  font-weight: 600;
}
code {
  font-family: inherit;
}
hr {
  border: 0;
  border-top: var(--line);
  margin: var(--space-32) 0;
}
/* A rule straight before a section heading would draw two lines. */
hr + h2 {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}

.lede {
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--text);
}

.toc {
  background: var(--surface);
  border: var(--line);
  border-radius: var(--radius-lg);
  padding: 0 var(--space-16);
  margin: 0 0 var(--space-24);
  font-size: var(--fs-small);
}
.toc[open] {
  padding-bottom: var(--space-8);
}
.toc-title {
  font-weight: 600;
  cursor: pointer;
  line-height: 1.25;
  padding: var(--space-12) 0;
}
.toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.toc li {
  margin: 0;
}
.toc a {
  display: block;
  line-height: 1.5;
  padding: var(--space-12) 0;
}

/* The two boxed passages: "The short version" (pages.mjs wraps it) and the
   terms' "Subscription and automatic renewal" box (the draft's blockquote). */
.summary,
.box {
  background: var(--surface);
  border: var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-16) var(--space-16) var(--space-4);
  margin: 0 0 var(--space-24);
}
.summary {
  margin-top: var(--space-32);
}
.summary h2 {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.summary + hr {
  display: none;
}
/* The box already separates; the next section starts without a second rule. */
.summary + h2,
.summary + hr + h2 {
  margin-top: var(--space-48);
  padding-top: 0;
  border-top: 0;
}

/* Tables: a real table on wide screens, one card per row on a phone. */
.table {
  margin: 0 0 var(--space-24);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-small);
}
th,
td {
  text-align: left;
  vertical-align: top;
  padding: var(--space-8) var(--space-16) var(--space-8) 0;
  border-bottom: var(--line);
}
th {
  font-weight: 600;
  border-bottom: 1px solid var(--text);
}
tr[data-unsettled="block"] td:first-child {
  padding-left: var(--space-8);
}
@media (max-width: 640px) {
  table,
  thead,
  tbody,
  tr,
  td {
    display: block;
    width: 100%;
  }
  thead {
    position: absolute;
    left: -9999px;
  }
  tr {
    border: var(--line);
    border-radius: var(--radius-lg);
    padding: var(--space-8) var(--space-16);
    margin: 0 0 var(--space-16);
  }
  tr[data-unsettled="block"] {
    border: var(--line);
    border-left: var(--bar) solid var(--warn-border);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    padding: var(--space-8) var(--space-16);
  }
  tr[data-unsettled="block"] td:first-child {
    padding-left: 0;
  }
  td {
    border: 0;
    padding: var(--space-4) 0;
  }
  td::before {
    content: attr(data-label);
    display: block;
    font-size: var(--fs-small);
    font-weight: 600;
    color: var(--muted);
  }
  td[data-label=""]::before {
    content: none;
  }
}

/* 404 */
.home {
  padding: var(--space-16) 0 0;
}
.links {
  list-style: none;
  padding: 0;
  font-size: var(--fs-lead);
}
.links a {
  display: inline-flex;
  align-items: center;
  min-height: var(--target);
}

/* Landing page (home). Same tokens; a wider page (--page) than the reading
   column; the lists inside it keep the column's measure. Weights 400 and 700
   only, so the page loads two font files. */
.lwrap {
  max-width: calc(var(--page) + 2 * var(--space-16));
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-16);
  padding-right: var(--space-16);
}
.brand-icon {
  display: block;
  border-radius: var(--radius-lg);
}
.landing main {
  padding: 0;
}
.hero {
  background: var(--surface);
  border-bottom: var(--line);
}
.hero-grid {
  display: grid;
  gap: var(--space-32);
  padding-top: var(--space-32);
  padding-bottom: var(--space-48);
}
.eyebrow {
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 var(--space-12);
}
.hero h1 {
  font-size: var(--fs-h1);
  line-height: 1.15;
  max-width: 16em;
  margin: 0 0 var(--space-16);
}
.hero .lede {
  max-width: var(--column);
  margin: 0 0 var(--space-24);
}
/* A status, not a button: no box, no fill, so nobody taps it expecting the
   store (round 1 read the white bordered box as a button). */
.status {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  margin: 0 0 var(--space-8);
  font-size: var(--fs-lead);
  font-weight: 700;
  line-height: 1.5;
}
.status-dot {
  flex: none;
  width: var(--space-8);
  height: var(--space-8);
  border-radius: var(--radius-sm);
  background: var(--accent);
}
.ask {
  margin: 0;
}
.mail {
  display: inline-flex;
  align-items: center;
  min-height: var(--target);
}
.shot {
  margin: 0;
  justify-self: center;
  text-align: center;
}
.shot img {
  display: block;
  width: 260px;
  max-width: 100%;
  height: auto;
}
/* The label sits above the capture so it is on screen whenever the capture
   is (round 1: below the fold on a phone while the capture was above it). */
.shot figcaption {
  margin-bottom: var(--space-8);
  font-size: var(--fs-small);
  color: var(--muted);
}
.features {
  padding-top: var(--space-16);
  padding-bottom: var(--space-48);
}
.feature {
  padding: var(--space-32) 0;
  border-bottom: var(--line);
}
.feature:last-child {
  border-bottom: 0;
}
.feature h2 {
  font-size: var(--fs-lead);
  margin: 0 0 var(--space-12);
  padding: 0;
  border: 0;
}
.feature ul {
  margin: 0;
  max-width: var(--column);
}
.feature li:last-child {
  margin-bottom: 0;
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 var(--space-24);
}
.landing .site-footer p {
  margin: 0;
}
@media (min-width: 768px) {
  .lwrap {
    max-width: calc(var(--page) + 2 * var(--space-32));
    padding-left: var(--space-32);
    padding-right: var(--space-32);
  }
}
@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: center;
    gap: var(--space-64);
    padding-top: var(--space-64);
    padding-bottom: var(--space-64);
  }
  .hero h1 {
    font-size: var(--fs-display);
  }
  .shot img {
    width: 320px;
  }
  .feature {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: var(--space-48);
  }
  .feature h2 {
    margin: 0;
  }
}

.site-footer {
  border-top: var(--line);
  color: var(--muted);
  font-size: var(--fs-small);
  padding: var(--space-16) 0 var(--space-32);
}
.site-footer p {
  margin: var(--space-8) 0 0;
}

/* Wide screens: a whole-passage marker hangs its bar in the margin so the
   text keeps the column's left edge. Not inside a box, a list or a table. */
@media (min-width: 641px) {
  .legal-body > p[data-unsettled="block"],
  .legal > p[data-unsettled="block"] {
    margin-left: calc(-1 * var(--space-16));
  }
  .summary,
  .box {
    padding: var(--space-24) var(--space-24) var(--space-8);
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 28px;
  }
  main {
    padding-top: var(--space-24);
    padding-bottom: var(--space-48);
  }
}

@media print {
  .site-header nav,
  .site-footer nav,
  .toc,
  .skip {
    display: none;
  }
  body {
    font-size: 11pt;
  }
  a {
    color: inherit;
  }
}
