/* Mobile-first. The recovery path may be read on a stranger's cracked phone in
   bad light by someone who is panicking, so: large targets, high contrast, and
   no reliance on colour alone. */

:root {
  /* Dark, always, rather than following the device. Two reasons. The recovery
     page is read on a stranger's phone in whatever state that phone is in, and
     a page that changes appearance between devices is one more thing for
     somebody already rattled to second-guess. And it is the screen most people
     are holding at night, which is when a lost phone is worst. */
  color-scheme: dark;

  --ink: #eef1f4;
  --ink-soft: #a7b0ba;
  --paper: #14181d;
  --card: #1c2128;
  --line: #333c46;
  --accent: #7db4ee;
  --urgent: #e4635a;      /* borders and text, on the page background */
  --urgent-solid: #9b2620; /* filled, with white on top of it */
  --urgent-ink: #1a0d0c;
  --on-accent: #10151a;   /* text that sits on top of --accent */
  --radius: 10px;
}

/* Links --------------------------------------------------------------------
   One colour, before and after. The browser's own visited colour is a dark
   purple that all but disappears on this background, and it is the only reason
   a link would change - nobody needs to be told which of these they have
   clicked before, and on the recovery path a link they cannot see is a
   genuine problem. Colour is one of the few things a browser will let a page
   set on :visited, so this is ours to fix.

   Every rule here excludes .button. A link dressed as a button sets its own
   dark text against a filled background, and "a:visited" is a shade more
   specific than a plain class - so without the exclusion, the button text
   turned the same blue as the button itself the moment somebody had been to
   that page once, and vanished. */
a:not(.button),
a:not(.button):visited { color: var(--accent); }
a:not(.button):hover,
a:not(.button):focus { color: #a8ceff; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

body.urgent { background: #1a1416; }

.shell {
  max-width: 34rem;
  margin: 0 auto;
  padding: 1rem 1.1rem 4rem;
}

.masthead { padding: 0.6rem 0 1.4rem; }

.wordmark {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.wordmark span { color: var(--urgent); }

h1 { font-size: 1.6rem; line-height: 1.25; margin: 0 0 0.6rem; letter-spacing: -0.02em; }
h2 { font-size: 1.15rem; margin: 0 0 0.6rem; }

.lede { color: var(--ink-soft); margin: 0 0 1.4rem; }
.quiet { color: var(--ink-soft); font-size: 0.9rem; }
.hint { color: var(--ink-soft); font-size: 0.85rem; margin: 0.3rem 0 1rem; }

.rule { border: 0; border-top: 1px solid var(--line); margin: 1.8rem 0; }

/* Forms ------------------------------------------------------------- */

label { display: block; font-weight: 600; margin: 0 0 0.35rem; }

input {
  width: 100%;
  padding: 0.85rem 0.8rem;
  font-size: 1.05rem;          /* >=16px stops iOS zooming the page on focus */
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 0 0 0.9rem;
}
input:focus { outline: 3px solid var(--accent); outline-offset: 1px; }

.button {
  display: block;
  width: 100%;
  padding: 1rem;
  margin: 0.4rem 0 1rem;
  font: inherit;
  font-weight: 650;
  text-align: center;
  text-decoration: none;
  color: var(--on-accent);
  background: var(--accent);
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
}
.button:hover { background: #a8ceff; }
.button-urgent { background: var(--urgent); color: var(--urgent-ink); font-size: 1.15rem; padding: 1.15rem; }
.button-urgent:hover { background: #ef7d75; }
.button-quiet { background: transparent; color: var(--ink-soft); border: 1px solid var(--line); }
.button-quiet:hover { background: var(--card); color: var(--ink); }
.button:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

.link-button {
  background: none; border: 0; padding: 0;
  color: var(--accent); font: inherit; text-decoration: underline; cursor: pointer;
}

/* The list of people --------------------------------------------------- */

.people { list-style: none; margin: 0 0 1.6rem; padding: 0; }
.people li { margin: 0 0 0.7rem; }

.person {
  display: block;
  padding: 1.25rem 1rem;
  font-size: 1.25rem;
  font-weight: 650;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 5px solid var(--urgent);
  border-radius: var(--radius);
  text-decoration: none;
}

/* Account page --------------------------------------------------------- */

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem;
  margin: 0 0 1.2rem;
}

.callout {
  font-size: 1.2rem;
  font-weight: 650;
  padding: 0.7rem 0.8rem;
  background: var(--paper);
  border-radius: var(--radius);
}

.contact-rows, .message-rows, .history { list-style: none; margin: 0 0 1.2rem; padding: 0; }
.contact-rows li, .message-rows li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}
.contact-main { display: flex; flex-wrap: wrap; gap: 0.3rem 0.8rem; align-items: baseline; }
.contact-label { font-weight: 650; }
.contact-number { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.contact-meta, .message-meta {
  display: flex; flex-wrap: wrap; gap: 0.5rem 0.9rem;
  align-items: center; margin: 0.35rem 0 0;
}
.contact-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin: 0.45rem 0 0; }
.codeword { font-size: 0.9rem; color: var(--ink-soft); }
.codeword strong { color: var(--ink); letter-spacing: 0.01em; }
.message-body { margin: 0; }

.badge {
  font-size: 0.75rem;
  font-weight: 650;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink-soft);
}
.badge-done { border-color: var(--accent); color: var(--accent); }
.badge-location { border-color: var(--accent); color: var(--accent); }
.badge-cost { border-color: var(--urgent); color: var(--urgent); }
.link-danger { color: var(--urgent); }

.checkbox {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-weight: 400;
  margin: 0.2rem 0 0.4rem;
}
.checkbox input { width: auto; margin: 0.15rem 0 0; flex: 0 0 auto; }
.history li { padding: 0.4rem 0; border-bottom: 1px solid var(--line); }

.notice {
  padding: 0.85rem 0.9rem;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  margin: 0 0 1.2rem;
}

/* A refused sign-in is the one message that must not be mistaken for part of
   the page, so it is the whole box rather than a stripe down the side. */
.notice-error {
  color: #fff;
  background: var(--urgent-solid);
  border-color: var(--urgent-solid);
  border-left-color: var(--urgent-solid);
  font-weight: 600;
}
.notice-error a { color: #fff; text-decoration: underline; }

.finish { margin-top: 2rem; }



/* Two-step send flow ---------------------------------------------------- */

.step {
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 0.3rem;
}

.person { display: flex; justify-content: space-between; align-items: center; gap: 0.8rem; }
.person-next { font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); white-space: nowrap; }

.choices { list-style: none; margin: 0 0 1.2rem; padding: 0; }
.choices li { margin: 0 0 0.7rem; }

.choice {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.3rem 0.8rem;
  align-items: start;
  padding: 1rem;
  font-weight: 400;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}
.choice input { width: auto; margin: 0.15rem 0 0; }
.choice:has(input:checked) { border-color: var(--urgent); border-left-width: 5px; }
.choice input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.choice-body { grid-column: 2; }
.choice-tag {
  grid-column: 2;
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--accent);
}

.location-status {
  font-size: 0.9rem;
  color: var(--ink-soft);
  padding: 0.7rem 0.8rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 0 0 1rem;
}

.back { font-weight: 600; }


/* Monthly allowance ----------------------------------------------------- */

.meter {
  height: 0.6rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  margin: 0 0 0.8rem;
}
.meter-fill {
  display: block;
  height: 100%;
  background: var(--accent);
  /* A width of 0 must still be visibly "none", not a stray sliver. */
  min-width: 0;
}
.meter-full { background: var(--urgent); }

/* Account tabs ----------------------------------------------------------- */

.tabs {
  display: flex;
  gap: 0.3rem;
  margin: 0 0 1.4rem;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}
.tab {
  padding: 0.6rem 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
}
.tab-on { color: var(--ink); border-bottom-color: var(--urgent); }
.tab:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }

.facts { margin: 0 0 1rem; }
.facts dt {
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.facts dd { margin: 0.15rem 0 0.9rem; }


/* Local development inbox ------------------------------------------------ */

.inbox { list-style: none; margin: 0 0 1rem; padding: 0; }
.bubble {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--urgent);
  border-radius: var(--radius);
  padding: 0.7rem 0.85rem;
  margin: 0 0 0.7rem;
}
.bubble-email { border-left-color: var(--accent); }
.bubble-to, .bubble-at {
  margin: 0;
  font-size: 0.78rem;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.bubble-subject { margin: 0.25rem 0 0; font-weight: 650; }
.bubble-body {
  margin: 0.3rem 0;
  white-space: pre-wrap;
  word-break: break-word;
}
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  background: var(--paper);
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
}

.fields { list-style: none; margin: 0 0 0.9rem; padding: 0; font-size: 0.9rem; }
.fields li { padding: 0.2rem 0; color: var(--ink-soft); }
.fields code { color: var(--ink); font-weight: 650; }

/* ======================================================================
   The public home page
   Wider than the app, and given room to breathe. Still mobile-first: the
   grids are single-column until there is genuinely space for more.
   ====================================================================== */

body.marketing .shell { max-width: 46rem; padding-bottom: 2rem; }
body.marketing .masthead { padding-bottom: 0.8rem; }

body.marketing section { margin: 0 0 3rem; }
body.marketing h2 {
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.9rem;
}
body.marketing h3 { font-size: 1.05rem; margin: 0 0 0.35rem; }
/* Plain paragraphs only. "body.marketing p" is a class and two elements, which
   outranks a bare class - so this quietly beat the margin on every paragraph
   that had been given one: the pull quote, the answer line, the hero text, the
   hints. Changing any of those did nothing at all, which is a maddening thing
   to debug because the rule you are editing is visibly right there. */
body.marketing p:not([class]) { margin: 0 0 1rem; }

/* The way out, for someone who is already in trouble ------------------- */

.emergency-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  margin: 0 0 2rem;
  background: var(--card);
  border: 1px solid var(--urgent);
  border-left: 5px solid var(--urgent);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
}
.emergency-bar-label { font-weight: 650; }
.emergency-bar-go { color: var(--urgent); font-weight: 650; white-space: nowrap; }
.emergency-bar:focus-visible { outline: 3px solid var(--urgent); outline-offset: 2px; }

/* Hero ------------------------------------------------------------------ */

.hero { margin-bottom: 3.2rem; }
.hero h1 {
  font-size: clamp(2rem, 7.5vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin: 0 0 1rem;
}
.hero h1 em { font-style: normal; color: var(--urgent); }
.hero-sub {
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0 0 1.6rem;
  max-width: 32rem;
}
/* This one sentence is the whole pitch, so when it is emphasised it gets the
   full text colour too - bold in the muted colour reads as a caption. */
.hero-sub strong { color: var(--ink); }
.button-hero { font-size: 1.1rem; padding: 1.1rem; max-width: 22rem; }
.hero-note { font-size: 0.9rem; color: var(--ink-soft); margin: 0.2rem 0 0; }

/* Tinted bands ---------------------------------------------------------- */

.band {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.6rem 1.3rem;
}
.band > :last-child { margin-bottom: 0; }

.pull {
  font-size: 1.2rem;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: -0.015em;
  padding-left: 1rem;
  border-left: 4px solid var(--urgent);
  /* Room either side. This is the turn in the argument - the paragraphs above
     set the problem up and the line below answers it - so it wants to be read
     as its own beat rather than as the end of the paragraph before it. */
  margin: 2.4rem 0 1rem;
}

/* Numbered steps -------------------------------------------------------- */

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li {
  position: relative;
  padding: 0 0 1.6rem 3.2rem;
  border-left: 2px solid var(--line);
  margin-left: 1.1rem;
}
.steps li:last-child { border-left-color: transparent; padding-bottom: 0; }
.step-number {
  position: absolute;
  left: -1.15rem;
  top: -0.15rem;
  width: 2.2rem;
  height: 2.2rem;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--on-accent);
  background: var(--accent);
  border: 3px solid var(--paper);
  border-radius: 50%;
}

/* The message mockup ---------------------------------------------------- */

.phone {
  max-width: 22rem;
  margin: 0 0 1.4rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 0.9rem;
}
.phone-from {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 0.5rem;
  text-align: center;
}
.phone-bubble {
  background: var(--accent);
  color: var(--on-accent);
  padding: 0.8rem 0.95rem;
  border-radius: 16px 16px 16px 4px;
  line-height: 1.45;
  font-size: 0.95rem;
  word-break: break-word;
}

.annotations { list-style: none; margin: 0; padding: 0; }
.annotations li {
  position: relative;
  padding: 0 0 0.7rem 1.4rem;
  color: var(--ink-soft);
}
.annotations li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
}
.annotations strong { color: var(--ink); }

/* Reasons to believe it -------------------------------------------------- */

.reasons { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; gap: 1.2rem; }
.reasons li {
  padding: 1.1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.reasons p { margin: 0; color: var(--ink-soft); }

/* A retention schedule, and anything else that is genuinely two columns ---- */

table.plain {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.4rem;
  font-size: 0.95rem;
}
table.plain th,
table.plain td {
  text-align: left;
  vertical-align: top;
  padding: 0.55rem 0.9rem 0.55rem 0;
  border-bottom: 1px solid var(--line);
}
table.plain th { font-weight: 600; }
table.plain td + td { color: var(--ink-soft); padding-right: 0; }

/* Caveats, said plainly --------------------------------------------------- */

.plainly {
  padding: 1.3rem;
  border: 1px solid var(--line);
  border-left: 5px solid var(--ink-soft);
  border-radius: var(--radius);
  background: var(--card);
}
.plainly > :last-child { margin-bottom: 0; }

.closing { text-align: center; padding: 1rem 0 0; }
.closing .button-hero { margin-inline: auto; }

.site-footer {
  padding: 1.6rem 0 0;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

@media (min-width: 40rem) {
  .reasons { grid-template-columns: 1fr 1fr; }
  .band { padding: 2rem 1.8rem; }
  body.marketing section { margin-bottom: 3.6rem; }
}

/* Site menu: a hamburger dropdown ---------------------------------------- */

.masthead {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.menu { position: relative; }

.menu-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  list-style: none;          /* removes the default disclosure triangle */
  user-select: none;
}
.menu-button::-webkit-details-marker { display: none; }
.menu-button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Three bars, drawn rather than fetched. The middle one is the element
   itself; the outer two are its pseudo-elements. */
.menu-icon {
  position: relative;
  display: block;
  width: 1.05rem;
  height: 2px;
  background: var(--ink);
}
.menu-icon::before,
.menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--ink);
}
.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }

/* Open: the bars become a cross. */
.menu[open] .menu-icon { background: transparent; }
.menu[open] .menu-icon::before { top: 0; transform: rotate(45deg); }
.menu[open] .menu-icon::after { top: 0; transform: rotate(-45deg); }

.menu-items {
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  z-index: 20;
  min-width: 13rem;
  display: flex;
  flex-direction: column;
  padding: 0.4rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
}
.menu-items a {
  padding: 0.7rem 0.75rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  border-radius: 8px;
  white-space: nowrap;
}
.menu-items a:hover { background: var(--paper); color: var(--ink); }
.menu-items a.on { color: var(--ink); background: var(--paper); }
.menu-urgent {
  color: var(--urgent) !important;
  border-top: 1px solid var(--line);
  margin-top: 0.3rem;
  padding-top: 0.8rem !important;
  border-radius: 0 0 8px 8px;
}
.menu-items a:focus-visible { outline: 3px solid var(--accent); outline-offset: -2px; }

/* The emergency call to action, repeated down the page -------------------- */

.urgent-cta {
  background: var(--card);
  border: 1px solid var(--urgent);
  border-left: 5px solid var(--urgent);
  border-radius: 14px;
  padding: 1.5rem 1.3rem;
}
.urgent-cta h2 { margin-bottom: 0.5rem; }
.urgent-cta p { color: var(--ink-soft); }
.urgent-cta > :last-child { margin-bottom: 0; }

.closing-or {
  margin: 1.4rem 0 0.9rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* The turn from the problem to the answer -------------------------------- */

.answer {
  /* Deliberately the same size and weight as the section headings around it -
     it is answering the question one of them asks. */
  font-size: 1.5rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 2.4rem 0 1.2rem;
}
.band .hero-note { margin-bottom: 0.9rem; }


/* Deleting an account ---------------------------------------------------- */

.panel-danger { border-color: var(--urgent); border-left: 5px solid var(--urgent); }

.facts-list { margin: 0 0 1rem; padding-left: 1.2rem; }
.facts-list li { padding: 0.2rem 0; }

.danger-zone {
  margin: 2.5rem 0 0;
  padding: 1.1rem 0 0;
  border-top: 1px solid var(--line);
}
.danger-zone h2 { font-size: 1rem; margin: 0 0 0.3rem; }
.danger-zone p { margin: 0 0 0.6rem; }
a.link-danger { color: var(--urgent); font-weight: 600; }

.badge-stopped { border-color: var(--urgent); color: var(--urgent); }

/* Sign out sits in the menu as a form, so it must look like the links do. */
.menu-form { margin: 0; }
.menu-form button {
  display: block;
  width: 100%;
  padding: 0.7rem 0.75rem;
  font: inherit;
  font-weight: 600;
  text-align: left;
  color: var(--ink-soft);
  background: none;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}
.menu-form button:hover { background: var(--paper); color: var(--ink); }
.menu-form button:focus-visible { outline: 3px solid var(--accent); outline-offset: -2px; }

/* The country picker beside a phone box. */
select {
  width: 100%;
  padding: 0.85rem 0.8rem;
  font-size: 1.05rem;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 0 0 0.9rem;
}
select:focus { outline: 3px solid var(--accent); outline-offset: 1px; }

.claim-code {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-align: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}


/* Beta notice ------------------------------------------------------------ */

.beta-bar {
  margin: 0 0 1.2rem;
  padding: 0.7rem 0.9rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 5px solid var(--ink-soft);
  border-radius: var(--radius);
}
.beta-bar strong { color: var(--ink); }
.beta-bar a { color: var(--accent); font-weight: 600; }


/* Two-step sign in ------------------------------------------------------- */

.qr {
  margin: 1rem 0;
  padding: 0.9rem;
  /* White on purpose, and the one thing on the site that stays white: a
     scanner needs dark modules on a light ground to read the code. */
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  /* The code has to stay square and scannable on a narrow phone. */
  max-width: 17rem;
}
.qr svg { display: block; width: 100%; height: auto; }

.codes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 0.5rem;
  margin: 1rem 0;
  padding: 0;
  list-style: none;
}
.codes li {
  padding: 0.55rem 0.4rem;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.codes code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}


/* The way on to the next step ------------------------------------------- */

.onwards {
  margin: 1.6rem 0 0;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
}
.onwards .button { width: auto; min-width: 12rem; margin: 0; }
