/* Usual Rounds, getusual.co.uk (A3.3). The design system's tokens and five text styles
   (design-system/README.md), as mockup/rounds.css draws them. No other colours, fonts or sizes. */

:root {
  --bg: #F1F1EE; --surface: #FFFFFF; --ink: #16181A; --ink-2: #63666A; --line: #E2E2DE;
  --brand: #0B7A4A; --on-brand: #FFFFFF;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E0F10; --surface: #1C1D1F; --ink: #F3F3F1; --ink-2: #9EA1A5; --line: #2E3033;
    --brand: #3DC584; --on-brand: #062616;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  min-height: 100vh; background: var(--bg); color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 12px; }

/* One column, the width of a phone, on every screen. */
.page { max-width: 560px; margin: 0 auto; padding-bottom: 32px; }

/* The five text styles */
.t-title { font-size: 28px; line-height: 34px; font-weight: 700; color: var(--ink); }
.t-num   { font-size: 22px; line-height: 28px; font-weight: 600; color: var(--ink); }
.t-row   { font-size: 17px; line-height: 22px; font-weight: 600; color: var(--ink); }
.t-body  { font-size: 15px; line-height: 20px; font-weight: 400; color: var(--ink-2); }
.t-cap   { font-size: 13px; line-height: 18px; font-weight: 500; color: var(--ink-2); }

/* Title */
.head { padding: 48px 16px 0; }
.head .t-body { margin-top: 8px; }
.head .t-body + .t-body { margin-top: 4px; }

/* Section captions and groups */
.sec { margin: 24px 32px 8px; }
.group { margin: 0 16px; border-radius: 20px; background: var(--surface); overflow: hidden; }
.sec + .group, .sec + .card { margin-top: 0; }
.head + .group, .head + .card { margin-top: 24px; }
.group + .group { margin-top: 24px; }

/* Rows: two lines, the text wraps; hairlines start at the text */
.row { position: relative; display: block; min-height: 64px; padding: 11px 16px 12px; }
.row + .row::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; height: 1px; background: var(--line); }
.row .t-body { margin-top: 2px; }
.row.link { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding-top: 0; padding-bottom: 0; }
.row.link svg { flex: none; color: var(--ink-2); }

/* Cards */
.card { margin: 12px 16px 0; padding: 16px; border-radius: 20px; background: var(--surface); }
.card .t-body { margin-top: 2px; }
.card .t-body + .t-body { margin-top: 8px; }
/* A card whose link row follows it: one container, the row under a hairline that starts at the text. */
.card.join { border-radius: 20px 20px 0 0; }
.card.join + .group { margin-top: 0; border-radius: 0 0 20px 20px; }
.card.join + .group > .row:first-child::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; height: 1px; background: var(--line); }
/* A list whose note follows it: one container, the note under a hairline. */
.group.join { border-radius: 20px 20px 0 0; }
.group.join + .card { position: relative; margin-top: 0; border-radius: 0 0 20px 20px; }
.group.join + .card::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; height: 1px; background: var(--line); }

/* The one filled action, full width at the foot */
.foot { position: sticky; bottom: 0; padding: 12px 16px 16px; background: var(--bg); margin-top: 24px; }
.btn {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 56px; padding: 0 8px;
  border-radius: 12px; background: var(--brand); color: var(--on-brand);
}
.btn .t-row { color: var(--on-brand); }

/* Text buttons: 56 high, ink, no fill */
.textbtn { display: flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 16px; }
.links { display: flex; flex-wrap: wrap; justify-content: center; margin: 8px 16px 0; }
.note { text-align: center; padding: 0 16px; }

/* A legal detail the owner still has to fill in: marked in words ("to fill in"), in ink so it
   stands out from the grey around it without a sixth text style. */
[data-fill] { color: var(--ink); }
