/* The brand is ink and bone, warm black on warm white, one green dot, and petrol
   for the details of a check: the code, the step numbers, the time bar, the
   request. Every page looks the same, signed in or not. Colour fills a page only
   during a check: sand means a question is open, green and red are the answer.
   Colour on a whole page always means one of those three. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}

:root {
  --ink: #17140f;
  --paper: #f2eee6;
  --white: #ffffff;
  --signal: #1f9a52;
  --petrol: #173a44;
  --yes: #12754a;
  --no: #c22a1f;

  --bg: var(--paper);
  --fg: var(--ink);
  --button-bg: var(--ink);
  --button-fg: var(--white);
  /* The details of a check. On a green or red page they take the text colour. */
  --accent: var(--petrol);

  /* An open question. The default is sand with petrol details; the admin page can choose
     another palette for the whole site (data-palette on <html>, PLAN.md D6). */
  --ask: #e3cda4;
  --ask-fg: var(--ink);
  --ask-accent: var(--petrol);
  --ask-edge: var(--petrol);
  --ask-quote: var(--petrol);
  --ask-dot: var(--petrol);
  --ask-button-bg: var(--ink);
  --ask-button-fg: var(--white);
  --dot-light: var(--petrol);

  --step--1: 1.05rem;
  --step-0: 1.25rem;
  --step-1: 1.5rem;
  --step-2: 2rem;
  --step-3: clamp(2.5rem, 10.5vw, 4rem);

  font-family: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  font-optical-sizing: auto;
}

/* The palettes are set on <html> for the whole site, or on any element to preview one
   there (the admin page), so each one states every value, the default included. */
[data-palette="sandpetrol"],
[data-palette="lightpetrol"] {
  --ask: #e3cda4;
  --ask-fg: var(--ink);
  --accent: var(--petrol);
  --ask-accent: var(--petrol);
  --ask-edge: var(--petrol);
  --ask-quote: var(--petrol);
  --ask-dot: var(--petrol);
  --ask-button-bg: var(--ink);
  --ask-button-fg: var(--white);
  --dot-light: var(--petrol);
}

[data-palette="lightpetrol"] {
  --ask: #c9dedd;
}

/* The yellow the brand began with: ink details, as before petrol. */
[data-palette="yellow"] {
  --ask-fg: var(--ink);
  --ask-button-bg: var(--ink);
  --ask-button-fg: var(--white);
  --ask: #ffd037;
  --accent: var(--ink);
  --ask-accent: var(--ink);
  --ask-edge: var(--ink);
  --ask-quote: var(--ink);
  --ask-dot: var(--ink);
  --dot-light: #ffd037;
}

/* The whole page petrol, white text, like green and red fill the page for answers. */
[data-palette="petrol"] {
  --ask: var(--petrol);
  --accent: var(--petrol);
  --ask-edge: var(--petrol);
  --dot-light: var(--petrol);
  --ask-fg: var(--white);
  --ask-accent: var(--white);
  --ask-quote: var(--ink);
  --ask-dot: var(--white);
  --ask-button-bg: var(--white);
  --ask-button-fg: var(--petrol);
}

body[data-tone="ask"] {
  --bg: var(--ask);
  --fg: var(--ask-fg);
  --accent: var(--ask-accent);
  --button-bg: var(--ask-button-bg);
  --button-fg: var(--ask-button-fg);
}

body[data-tone="yes"] {
  --bg: var(--yes);
  --fg: var(--white);
  --button-bg: var(--white);
  --button-fg: var(--yes);
  --accent: var(--fg);
}

body[data-tone="no"] {
  --bg: var(--no);
  --fg: var(--white);
  --button-bg: var(--white);
  --button-fg: var(--no);
  --accent: var(--fg);
}

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

/* Always keep room for the scrollbar, so a short screen and a long one centre the
   page on the same line: without it the bar and logo jump sideways from screen to screen. */
html {
  scrollbar-gutter: stable;
}

@supports not (scrollbar-gutter: stable) {
  html {
    overflow-y: scroll;
  }
}

/* Mixed here, not on :root, so they follow the tone the body sets. */
body {
  --soft: color-mix(in srgb, var(--fg) 72%, var(--bg));
  --line: color-mix(in srgb, var(--fg) 18%, var(--bg));
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--fg);
  font-size: var(--step-0);
  line-height: 1.45;
  transition: background-color 300ms ease, color 300ms ease;
}

.page {
  max-width: 38rem;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 4rem;
}

/* Small phones: a 16px edge, so the logo and the menu still share one row. */
@media (max-width: 24rem) {
  .page {
    padding-inline: 1rem;
  }
}

h1,
h2,
p {
  margin: 0;
}

/* ---- Top bar ---- */

.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 0.5rem;
  margin-bottom: 2.25rem;
  font-size: var(--step--1);
}

/* One size on every screen, set by the window alone, never by what the menu beside it
   holds: signed in or out, Danish or English, the logo stays put. If the menu cannot
   fit beside it (very narrow phone, very large text) the menu moves under it instead,
   and the logo still does not move: it keeps the height of the menu row either way. */
.bar-home {
  display: flex;
  flex: none;
  /* --logo-scale: set on the admin page (web/ui.js applyLogoScale), 1 by default. */
  width: clamp(calc(7rem * var(--logo-scale, 1)), calc(33vw * var(--logo-scale, 1)), 15rem);
  min-height: 2.25rem;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.bar-user {
  display: flex;
  flex: none;
  margin-left: auto;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

/* The other language, as a small pill: found by those who need it, quiet for the rest. */
.lang {
  min-height: 2.25rem;
  padding: 0.15rem 0.5rem;
  border: 2px solid currentColor;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

/* ---- Logo: the address, low and wide, and the dot ---- */

.logo {
  display: block;
  width: 100%;
  height: auto;
  fill: currentColor;
  overflow: visible;
}

.logo-dot {
  fill: var(--signal);
  transform-box: fill-box;
  transform-origin: center;
  animation: dot-light 1.6s ease-out 250ms both;
}

/* On a coloured page the dot leaves green to the answer: petrol while the question
   is open, the text colour once it is answered. */
body[data-tone="ask"] .logo-dot {
  fill: var(--ask-dot);
}

body[data-tone="yes"] .logo-dot,
body[data-tone="no"] .logo-dot {
  fill: currentColor;
}

/* Once, on load: the dot appears, lights petrol like an open question, then turns green. */
@keyframes dot-light {
  0% { transform: scale(0); fill: var(--dot-light); }
  18% { transform: scale(1.35); fill: var(--dot-light); }
  30% { transform: scale(1); }
  55% { fill: var(--dot-light); }
  75% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* ---- Type ---- */

.hero {
  margin-bottom: 1.75rem;
  font-size: clamp(4.25rem, 24vw, 9rem);
  font-weight: 800;
  font-stretch: 78%;
  line-height: 0.86;
  letter-spacing: -0.015em;
}

.hero span {
  display: block;
}

.title {
  margin-bottom: 1rem;
  font-size: var(--step-3);
  font-weight: 800;
  font-stretch: 85%;
  line-height: 0.98;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}

.title:focus {
  outline: none;
}

.lead {
  max-width: 26ch;
  margin-bottom: 2rem;
  font-size: var(--step-1);
  font-weight: 500;
  line-height: 1.3;
}

.text {
  max-width: 34rem;
  margin-bottom: 1.25rem;
}

.muted {
  color: var(--soft);
}

/* ---- Controls ---- */

.button,
.person {
  min-height: 3.75rem;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  font: inherit;
  font-size: var(--step-0);
  font-weight: 700;
  cursor: pointer;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--button-bg);
  background: var(--button-bg);
  color: var(--button-fg);
  text-decoration: none;
  transition: transform 120ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(1px);
}

.button.wide {
  width: 100%;
}

.button.yes {
  border-color: var(--yes);
  background: var(--yes);
  color: var(--white);
}

/* No is red, as filled as yes: colour carries the meaning (PLAN.md D6), and neither
   answer is the loud one, so no one presses yes just because it stands out. */
.button.no {
  border-color: var(--no);
  background: var(--no);
  color: var(--white);
}

.button.plain {
  border-color: currentColor;
  background: transparent;
  color: inherit;
}

.link {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
  cursor: pointer;
}

:focus-visible {
  outline: 4px solid var(--fg);
  outline-offset: 4px;
}

.field {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

input {
  width: 100%;
  min-height: 3.75rem;
  padding: 0.6rem 1.1rem;
  border: 3px solid var(--ink);
  border-radius: 1rem;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: var(--step-0);
}

input::placeholder {
  color: color-mix(in srgb, var(--ink) 45%, var(--white));
}

input.code-input {
  min-height: 5rem;
  font-size: 2.6rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.12em;
  text-align: center;
}

.row {
  display: flex;
  gap: 0.75rem;
}

.row > input {
  flex: 1;
  min-width: 0;
}

.greeting {
  margin-bottom: 2rem;
  font-size: var(--step-1);
  font-weight: 500;
}

.task + .task {
  margin-top: 2.75rem;
  padding-top: 2.5rem;
  border-top: 3px solid var(--fg);
}

.task .title {
  margin-bottom: 0.6rem;
}

.task .text {
  margin-bottom: 1.5rem;
}

form > .button {
  margin-top: 1.25rem;
}

form > .hint + .button {
  margin-top: 0;
}

.error {
  margin: 0 0 1.5rem;
  padding: 0.9rem 1.1rem;
  border-radius: 1rem;
  background: var(--no);
  color: var(--white);
  font-weight: 700;
}

/* ---- Landing ---- */

/* Three plain facts under the buttons: how you confirm, what we never see, no links. */
.facts {
  display: grid;
  gap: 1.1rem;
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
}

.facts li {
  padding-left: 1.1rem;
  border-left: 4px solid var(--fg);
}

.fact-title {
  font-weight: 800;
  line-height: 1.25;
}

.fact-text {
  margin-top: 0.2rem;
  color: var(--soft);
  font-size: var(--step--1);
}

/* Home: put the site on the home screen, so no one ever needs a link. */
.install,
.push-card {
  margin: 0 0 2rem;
  padding: 1.25rem 1.3rem 1rem;
  border: 3px solid var(--fg);
  border-radius: 1.25rem;
}

.install-title {
  margin-bottom: 0.35rem;
  font-size: var(--step-1);
  font-weight: 800;
  line-height: 1.15;
}

.install-text {
  margin-bottom: 1rem;
  color: var(--soft);
  font-size: var(--step--1);
}

.install .steps,
.install-note {
  margin-bottom: 1rem;
}

/* On the account page the card sits between sections. */
.task + .install,
.install + .task {
  margin-top: 2.75rem;
}

.install-hide {
  font-size: var(--step--1);
}

.rule {
  display: grid;
  gap: 0.35rem;
  margin-top: 1.5rem;
  padding: 1.3rem 1.4rem 1.4rem;
  border-radius: 1.25rem;
  background: var(--fg);
  color: var(--bg);
}

/* Two lines: the promise, then what to do, with the address drawn as the logo. */
.rule-head {
  font-size: var(--step-1);
  font-weight: 800;
  line-height: 1.15;
}

.rule-body {
  font-weight: 500;
  line-height: 1.5;
}

/* The logo inside running text: about as wide as the words "sikkerhed.online" would be,
   sitting on the baseline, never split over two lines. */
.brand {
  white-space: nowrap;
}

.logo-inline {
  display: inline-block;
  width: auto;
  height: 0.66em;
  margin: 0 0.04em;
  vertical-align: -0.015em;
}

.logo-inline .logo-dot {
  animation: none;
}

/* ---- The spoken code: two lines of three, read aloud as written ---- */

.code {
  margin: 0.25rem 0 1.5rem;
  font-size: clamp(6.5rem, 41vw, 15rem);
  font-weight: 800;
  line-height: 0.84;
  letter-spacing: -0.02em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.code span {
  display: block;
}

.timer {
  height: 0.5rem;
  margin: 0 0 0.6rem;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}

.timer-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--accent);
  transition: width 1s linear;
}

.countdown {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.waiting-dot {
  display: inline-block;
  width: 0.7em;
  height: 0.7em;
  margin-right: 0.5em;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 1.4s ease-in-out infinite;
}

@keyframes pulse {
  50% {
    opacity: 0.2;
  }
}

.answers {
  display: grid;
  gap: 0.75rem;
  margin: 2rem 0;
}

/* Something to know, not something to press: a bar down the left side with a "!" mark,
   a faint tint, square-ish corners. Buttons are round pills; this never looks like one. */
.caution {
  position: relative;
  margin-bottom: 1.5rem;
  padding: 1rem 1.1rem 1rem 3.4rem;
  border-left: 6px solid currentColor;
  border-radius: 0.35rem;
  background: color-mix(in srgb, currentColor 8%, transparent);
  font-weight: 500;
}

.caution::before {
  content: "!";
  position: absolute;
  top: 1rem;
  left: 0.95rem;
  display: grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border: 2.5px solid currentColor;
  border-radius: 50%;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1;
}

.caution-title {
  margin-bottom: 0.25rem;
  font-weight: 800;
}

/* ---- What to do next: big numbered steps ---- */

.steps {
  display: grid;
  gap: 0.9rem;
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
  counter-increment: step;
  font-weight: 500;
  line-height: 1.35;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.steps .message {
  margin-top: 0.75rem;
}

.step-note {
  display: block;
  margin-top: 0.3rem;
  color: var(--soft);
  font-size: var(--step--1);
  font-weight: 500;
}

/* A written code is copied, not read aloud: one line is enough. */
.code.written {
  margin-bottom: 1.25rem;
  font-size: clamp(3.5rem, 19vw, 6rem);
  line-height: 1;
}

.code.written span {
  display: inline;
}

/* Ten digits on one line; the message below carries them too. */
.code.invite-code {
  font-size: clamp(2.4rem, 12.5vw, 4rem);
  white-space: nowrap;
}

.code.written span + span {
  margin-left: 0.25em;
}

/* The ready-made message to paste into the conversation being checked. */
.message {
  margin: 0;
  padding: 1.1rem 1.2rem 1.2rem;
  border: 3px solid var(--ink);
  border-radius: 1.25rem;
  background: var(--white);
  color: var(--ink);
  --button-bg: var(--ink);
  --button-fg: var(--white);
}

.message-label {
  margin-bottom: 0.35rem;
  color: color-mix(in srgb, var(--ink) 65%, var(--white));
  font-size: var(--step--1);
  font-weight: 700;
}

.message-text {
  margin-bottom: 1rem;
  font-size: var(--step-0);
  font-weight: 600;
  line-height: 1.35;
  user-select: all;
}

.message-actions {
  display: grid;
  gap: 0.6rem;
}

.message-status:empty {
  display: none;
}

.message-status {
  margin: 0.6rem 0 0;
  color: inherit;
}

/* ---- Verdict ---- */

/* Time ran out: a clock face, drawn, so it looks the same everywhere. */
.clock-mark {
  position: relative;
  display: block;
  width: 6.5rem;
  height: 6.5rem;
  margin-bottom: 1.5rem;
  border: 0.6rem solid currentColor;
  border-radius: 50%;
  animation: land 420ms cubic-bezier(0.2, 1.4, 0.4, 1) both;
}

.clock-mark::before,
.clock-mark::after {
  content: "";
  position: absolute;
  left: calc(50% - 0.3rem);
  bottom: 50%;
  width: 0.6rem;
  border-radius: 999px;
  background: currentColor;
  transform-origin: 50% 100%;
}

.clock-mark::before {
  height: 2.1rem;
}

.clock-mark::after {
  height: 1.5rem;
  transform: rotate(90deg);
}

.verdict-mark {
  margin-bottom: 0.5rem;
  font-size: clamp(7rem, 38vw, 12rem);
  font-weight: 800;
  line-height: 1;
  transform-origin: left bottom;
  animation: land 420ms cubic-bezier(0.2, 1.4, 0.4, 1) both;
}

@keyframes land {
  from {
    opacity: 0;
    transform: scale(0.4) rotate(-12deg);
  }
}

.verdict-actions {
  margin-top: 2.5rem;
}

/* ---- Lists, hints and small pieces ---- */

.subtitle {
  margin-bottom: 0.6rem;
  font-size: var(--step-2);
  font-weight: 800;
  font-stretch: 85%;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.hint {
  margin: 0.6rem 0 1.25rem;
  color: var(--soft);
  font-size: var(--step--1);
}

.hint code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.85em;
  overflow-wrap: anywhere;
}

.after {
  margin-top: 2.25rem;
}

.danger {
  color: var(--no);
}

body[data-busy] .button {
  opacity: 0.6;
  pointer-events: none;
}

.contacts,
.rows {
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}

.contacts {
  display: grid;
  gap: 0.6rem;
}

.contact {
  display: grid;
  gap: 0.1rem;
  width: 100%;
  padding: 1rem 1.3rem;
  border: 3px solid var(--ink);
  border-radius: 1.25rem;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 120ms ease;
}

.contact:hover {
  transform: translateY(-2px);
}

.contact-name {
  font-size: var(--step-2);
  font-weight: 800;
  font-stretch: 85%;
  line-height: 1.1;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.contact-meta {
  color: color-mix(in srgb, var(--ink) 65%, var(--white));
  font-size: var(--step--1);
}

.rows li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
}

.quote {
  margin: 0 0 1.5rem;
  padding: 1.1rem 1.3rem;
  border-radius: 1.25rem;
  background: var(--ask-quote);
  color: var(--white);
}

.quote-by {
  font-size: var(--step--1);
  opacity: 0.85;
}

.quote-text {
  margin: 0.35rem 0 0.5rem;
  font-size: var(--step-1);
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

/* ---- Home: the two things people come to do ---- */

.choices {
  display: grid;
  gap: 0.9rem;
  margin: 0 0 2.5rem;
}

.choice {
  display: grid;
  gap: 0.3rem;
  width: 100%;
  min-height: 7rem;
  padding: 1.25rem 1.4rem;
  border: 3px solid var(--ink);
  border-radius: 1.5rem;
  background: var(--ink);
  color: var(--white);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 120ms ease;
}

.choice.code-choice {
  background: var(--white);
  color: var(--ink);
}

.choice:hover {
  transform: translateY(-2px);
}

.choice:active {
  transform: translateY(1px);
}

.choice-title {
  font-size: var(--step-2);
  font-weight: 800;
  font-stretch: 85%;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.choice-text {
  font-size: var(--step--1);
  font-weight: 500;
  opacity: 0.9;
}

.home-more {
  padding-top: 2rem;
  border-top: 3px solid var(--fg);
}

/* ---- Picking a contact ---- */

.search {
  max-width: 24rem;
  margin-bottom: 1rem;
}

.find {
  margin-bottom: 1.25rem;
}

.contacts li[hidden] {
  display: none;
}

.no-match {
  margin-bottom: 1.25rem;
}

/* ---- Where are you talking: big radio tiles ---- */

.channels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  margin: 0 0 1.75rem;
  padding: 0;
  border: 0;
}

.channels legend {
  grid-column: 1 / -1;
  padding: 0;
  margin-bottom: 0.5rem;
}

.channel {
  position: relative;
  display: grid;
  align-content: center;
  min-height: 4.25rem;
  padding: 0.7rem 1rem;
  border: 3px solid var(--ink);
  border-radius: 1rem;
  background: var(--white);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}

.channel input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.channel-note {
  font-size: 0.85rem;
  font-weight: 500;
  color: color-mix(in srgb, var(--ink) 65%, var(--white));
}

.channel:has(input:checked) {
  background: var(--ink);
  color: var(--white);
}

.channel:has(input:checked) .channel-note {
  color: color-mix(in srgb, var(--white) 80%, var(--ink));
}

.channel:has(input:focus-visible) {
  outline: 4px solid var(--fg);
  outline-offset: 3px;
}

/* The safety number is compared, not spoken: set apart with a rule above it. */
.code.safety {
  padding-top: 1rem;
  border-top: 3px solid var(--fg);
  font-size: clamp(5rem, 30vw, 11rem);
}

/* ---- Illustrations: small phones with demo screens ---- */

.subtitle.section {
  margin-top: 3.5rem;
}

.device {
  margin: 0;
}

.device-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.4rem;
  aspect-ratio: 9 / 16;
  padding: 1.1rem 0.6rem 0.7rem;
  border: 0.3rem solid var(--fg);
  border-radius: 1.3rem;
  background: var(--white);
  color: var(--ink);
  overflow: hidden;
}

.device-screen::before {
  content: "";
  position: absolute;
  top: 0.4rem;
  left: 50%;
  width: 1.5rem;
  height: 0.28rem;
  border-radius: 999px;
  background: var(--ink);
  transform: translateX(-50%);
}

.device[data-tone="ask"] .device-screen {
  background: var(--ask);
  color: var(--ask-fg);
}

.device[data-tone="ask"] .mini-code {
  color: var(--ask-accent);
}

.device[data-tone="yes"] .device-screen {
  background: var(--yes);
  color: var(--white);
}

.device-label {
  margin-top: 0.4rem;
  color: var(--soft);
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
}

.mini-title {
  font-size: 0.78rem;
  font-weight: 800;
  font-stretch: 85%;
  line-height: 1.1;
}

.mini-code {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
}

.mini-mark {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
}

.mini-button {
  padding: 0.3rem 0.4rem;
  border: 2px solid currentColor;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  text-align: center;
}

.mini-button.yes {
  border-color: var(--yes);
  background: var(--yes);
  color: var(--white);
}

.mini-button.no {
  border-color: var(--no);
  background: var(--no);
  color: var(--white);
}

/* The question before connecting: are you together? */
.gate {
  margin-top: 2.5rem;
  padding: 1.4rem 1.4rem 0.2rem;
  border: 3px solid var(--fg);
  border-radius: 1.5rem;
}

.gate .answers {
  margin: 1.5rem 0 1.2rem;
}

.update {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding: 0.9rem 1.1rem;
  border: 3px solid var(--fg);
  border-radius: 1rem;
  font-weight: 700;
}

/* A message from the admin page, on every page: informative, never a button. */
.site-notice {
  margin-bottom: 1.5rem;
  padding: 0.85rem 1.1rem;
  border-left: 6px solid currentColor;
  border-radius: 0.35rem;
  background: color-mix(in srgb, currentColor 6%, transparent);
  font-weight: 500;
}

.site-notice.warning {
  border-left-width: 8px;
  background: color-mix(in srgb, currentColor 12%, transparent);
  font-weight: 700;
}

.update .button {
  min-height: 2.75rem;
  padding: 0.4rem 1.2rem;
}

@media (prefers-reduced-motion: reduce) {
  body,
  .button,
  .timer-fill {
    transition: none;
  }

  .waiting-dot,
  .verdict-mark,
  .clock-mark {
    animation: none;
  }

  .logo-dot {
    animation: none;
  }
}

/* ---- Getting started, bringing someone along, not losing the account ---- */

/* A row of small links under buttons; wraps on a phone. */
.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}

.answers .link {
  justify-self: center;
  padding: 0.4rem 0;
}

/* Home with no contacts: the one next step, before the everyday choices. */
.start {
  margin: 0 0 2.5rem;
  padding: 1.4rem 1.4rem 1.2rem;
  border-radius: 1.5rem;
  background: var(--fg);
  color: var(--bg);
}

.start .text {
  color: inherit;
}

.start .button {
  border-color: var(--bg);
  background: var(--bg);
  color: var(--fg);
}

.start .link {
  color: inherit;
}

.start .after {
  margin-top: 1.1rem;
}




/* ---- Invitations ---- */

/* Someone accepted an invitation and waits for a yes: sand means a question is open (D6). */
.approve {
  margin: 0 0 2rem;
  padding: 1.4rem 1.4rem 0.4rem;
  border: 3px solid var(--ask-edge);
  border-radius: 1.5rem;
  background: var(--ask);
  color: var(--ask-fg);
  --fg: var(--ask-fg);
  --button-bg: var(--ask-button-bg);
  --button-fg: var(--ask-button-fg);
}

/* What waits for me: a request or an answer, at the top of home, in the open-question colour. */
.request {
  margin: 0 0 2rem;
  padding: 1.4rem 1.4rem 1.2rem;
  border: 3px solid var(--ask-edge);
  border-radius: 1.5rem;
  background: var(--ask);
  color: var(--ask-fg);
  --fg: var(--ask-fg);
  --button-bg: var(--ask-button-bg);
  --button-fg: var(--ask-button-fg);
}

/* Someone may be pretending to be me: the colour of a no. */
.request.warning {
  border-color: var(--no);
  background: var(--no);
  color: var(--white);
  --fg: var(--white);
  --button-bg: var(--white);
  --button-fg: var(--no);
}

.request-title {
  margin-bottom: 0.4rem;
  font-size: var(--step-1);
  font-weight: 800;
  line-height: 1.15;
}

.request-text {
  margin-bottom: 1.1rem;
}

.request-other {
  margin: 1.4rem 0 0.4rem;
  padding-top: 1rem;
  border-top: 2px solid color-mix(in srgb, currentColor 25%, transparent);
  font-size: var(--step--1);
}

.request-not-me {
  font-weight: 700;
}

.approve .answers {
  margin: 1.2rem 0 1rem;
}

.notice {
  margin: 0 0 1.5rem;
  font-weight: 700;
}

.notice::before {
  content: "✓ ";
}

.invites li {
  align-items: center;
}

/* The printed invitation. Never shown on screen; on paper it is the only thing.
   Lines, not fills: browsers leave backgrounds out unless asked. Sizes in points. */
.print-card {
  display: none;
}

@page {
  size: A4;
  margin: 16mm 18mm 14mm;
}

@media print {
  html,
  body {
    background: #fff !important;
    color: #000;
  }

  .bar,
  .update,
  main > :not(.print-card) {
    display: none !important;
  }

  body {
    min-height: 0;
  }

  /* The screen column (padding, 38rem) would push the card onto a second sheet. */
  .page,
  main {
    max-width: none;
    margin: 0;
    padding: 0;
  }

  .print-card {
    display: flex;
    flex-direction: column;
    /* A4 minus the page margins, with room to spare so it never spills onto a second page. */
    height: 262mm;
    overflow: hidden;
    color: #000;
    font-size: 13pt;
    line-height: 1.4;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .pc-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12pt;
    padding-bottom: 9pt;
    border-bottom: 2pt solid #000;
  }

  .pc-head .logo {
    width: 52mm;
    color: #000;
  }

  .pc-head .logo-dot {
    animation: none;
  }

  .pc-kicker {
    font-size: 9.5pt;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-align: right;
    text-transform: uppercase;
  }

  .pc-title {
    max-width: 160mm;
    margin: 18pt 0 8pt;
    font-size: 34pt;
    font-weight: 800;
    font-stretch: 85%;
    line-height: 1;
    letter-spacing: -0.02em;
  }

  .pc-lead {
    max-width: 150mm;
    margin: 0 0 16pt;
    font-size: 14.5pt;
  }

  .pc-steps {
    display: grid;
    gap: 8pt;
    margin: 0 0 16pt;
    padding: 0;
    list-style: none;
    counter-reset: pc;
  }

  .pc-steps li {
    display: grid;
    grid-template-columns: 26pt 1fr;
    gap: 12pt;
    align-items: center;
    counter-increment: pc;
    font-size: 15pt;
    line-height: 1.25;
  }

  .pc-steps li::before {
    content: counter(pc);
    display: grid;
    place-items: center;
    width: 26pt;
    height: 26pt;
    border: 2pt solid #000;
    border-radius: 50%;
    font-size: 13pt;
    font-weight: 800;
  }

  .pc-boxes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10pt;
    break-inside: avoid;
  }

  .pc-box {
    display: grid;
    gap: 3pt;
    padding: 11pt 14pt 13pt;
    border: 3pt solid #000;
    border-radius: 11pt;
  }

  .pc-box-label {
    font-size: 9.5pt;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
  }

  .pc-box-value {
    font-size: 25pt;
    font-weight: 800;
    font-stretch: 85%;
    line-height: 1.1;
    letter-spacing: -0.01em;
    white-space: nowrap;
  }

  .pc-code {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.03em;
  }

  .pc-until {
    margin: 8pt 0 16pt;
    font-size: 11pt;
  }

  .pc-rule {
    display: grid;
    gap: 3pt;
    padding: 2pt 0 2pt 12pt;
    border-left: 4pt solid #000;
    font-size: 13pt;
    break-inside: avoid;
  }

  .pc-rule .rule-head {
    font-size: 15pt;
  }

  .pc-rule .logo-inline {
    color: #000;
  }

  /* Cut along the dashes: the habit stays on the fridge after the code is used. */
  .pc-keep {
    margin-top: auto;
    break-inside: avoid;
  }

  .pc-cut {
    display: flex;
    align-items: center;
    gap: 8pt;
    margin-bottom: 12pt;
    font-size: 9pt;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .pc-cut::before {
    content: "✂";
    font-size: 13pt;
  }

  .pc-cut::after {
    content: "";
    flex: 1;
    border-top: 1.25pt dashed #000;
  }

  .pc-keep-body {
    padding: 14pt 16pt;
    border: 3pt solid #000;
    border-radius: 11pt;
  }

  .pc-keep-title {
    margin-bottom: 4pt;
    font-size: 19pt;
    font-weight: 800;
    font-stretch: 85%;
    line-height: 1.1;
  }

  .pc-keep-text {
    max-width: 150mm;
    font-size: 13pt;
  }

  .pc-keep-address {
    margin-top: 10pt;
  }

  .pc-keep-address .logo {
    width: 62mm;
    color: #000;
  }

  .pc-keep-address .logo-dot {
    animation: none;
  }
}

/* ---- Icons, the key, situations ---- */

.icon {
  flex: none;
  width: 1.6rem;
  height: 1.6rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* The key, large, at the top of the pages about not losing the account. */
.key-mark {
  display: grid;
  place-items: center;
  width: 5.5rem;
  height: 5.5rem;
  margin-bottom: 1.25rem;
  border: 4px solid var(--fg);
  border-radius: 50%;
  animation: land 420ms cubic-bezier(0.2, 1.4, 0.4, 1) both;
}

.key-mark .icon {
  width: 2.9rem;
  height: 2.9rem;
  stroke-width: 2.2;
}

.lead-text {
  max-width: 34rem;
  margin: 0 0 1.75rem;
  font-size: var(--step-1);
  font-weight: 500;
  line-height: 1.35;
}

.situations {
  display: grid;
  gap: 1rem;
}

.situation {
  display: grid;
  gap: 0.6rem;
  padding: 1.3rem 1.4rem 1.4rem;
  border: 3px solid var(--fg);
  border-radius: 1.5rem;
  background: var(--white);
  color: var(--ink);
}

.situation-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.situation-title {
  font-size: var(--step-1);
  font-weight: 800;
  line-height: 1.15;
}

.situation-text {
  color: color-mix(in srgb, var(--ink) 78%, var(--white));
}

/* The button belongs to its situation, with room above it. */
.situation .button {
  margin-top: 0.6rem;
}

.thief {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-top: 1.75rem;
  color: var(--soft);
  font-size: var(--step--1);
}

.thief .icon {
  width: 1.3rem;
  height: 1.3rem;
  margin-top: 0.15rem;
}

/* ---- Landing: the way in for someone who was given a code ---- */

.got-code-choice {
  min-height: 0;
  margin: 0 0 1rem;
}

.got-code-choice .choice-title {
  font-size: var(--step-1);
}

.lost-link {
  margin: 0 0 3rem;
}

.landing-facts {
  padding-top: 2.25rem;
  border-top: 3px solid var(--fg);
}

/* ---- Sheet: a short message over the page ---- */

.sheet {
  width: min(100% - 2rem, 30rem);
  max-height: calc(100dvh - 2rem);
  margin: auto auto 1rem;
  padding: 0;
  border: 3px solid var(--ink);
  border-radius: 1.75rem;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 1.5rem 3rem rgb(0 0 0 / 0.25);
}

.sheet[open] {
  animation: sheet-up 260ms cubic-bezier(0.2, 1, 0.4, 1) both;
}

.sheet::backdrop {
  background: rgb(23 20 15 / 0.55);
}

.sheet-body {
  padding: 1.6rem 1.5rem 0.4rem;
  --fg: var(--ink);
  --bg: var(--paper);
}

.sheet .key-mark {
  width: 4.5rem;
  height: 4.5rem;
}

.sheet .key-mark .icon {
  width: 2.3rem;
  height: 2.3rem;
}

#sheet-title:focus {
  outline: none;
}

.sheet .answers {
  margin: 1.5rem 0 1.2rem;
}

@keyframes sheet-up {
  from {
    transform: translateY(2rem);
    opacity: 0;
  }
}

@media (min-width: 40rem) {
  .sheet {
    margin: auto;
  }
}

/* ---- Invitations on home ---- */

.invites {
  display: grid;
  gap: 0.6rem;
  margin: 0 0 2rem;
}

.invites-title {
  margin-bottom: 0.2rem;
  font-size: var(--step-1);
  font-weight: 800;
}

.invite-card {
  position: relative;
  display: grid;
  gap: 0.15rem;
  width: 100%;
  padding: 0.95rem 3rem 1rem 1.2rem;
  border: 3px solid var(--ink);
  border-radius: 1.25rem;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  text-align: left;
}

button.invite-card {
  cursor: pointer;
  transition: transform 120ms ease;
}

button.invite-card:hover {
  transform: translateY(-2px);
}

.invite-card.still {
  border-style: dashed;
  padding-right: 1.2rem;
}

.invite-name {
  font-weight: 800;
  line-height: 1.2;
}

.invite-meta {
  color: color-mix(in srgb, var(--ink) 65%, var(--white));
  font-size: var(--step--1);
}

.invite-go {
  position: absolute;
  top: 50%;
  right: 1.1rem;
  font-size: 2rem;
  line-height: 0;
}

.invite-dismiss {
  justify-self: start;
  margin-top: 0.3rem;
}

.rows .tag {
  margin-right: 0.5rem;
  vertical-align: 0.1em;
}

@media (prefers-reduced-motion: reduce) {
  .key-mark,
  .sheet[open] {
    animation: none;
  }
}

/* ---- Konto: keys ---- */

/* Whether the account survives a lost device: what it means and what to do, together. */
.key-status {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 1rem;
  row-gap: 0.35rem;
  align-items: center;
  margin: 0.75rem 0 1.5rem;
  padding: 1.3rem 1.4rem 1.4rem;
  border: 3px solid var(--ink);
  border-radius: 1.5rem;
  background: var(--white);
  color: var(--ink);
}

.key-status-mark {
  grid-row: span 2;
  align-self: start;
  display: grid;
  place-items: center;
  width: 3.2rem;
  height: 3.2rem;
  border: 3px solid currentColor;
  border-radius: 50%;
}

.key-status-title {
  align-self: end;
  font-size: var(--step-1);
  font-weight: 800;
  line-height: 1.15;
}

.key-status-text {
  align-self: start;
  font-size: var(--step--1);
  line-height: 1.45;
  opacity: 0.85;
}

.key-status .button {
  grid-column: 1 / -1;
  margin-top: 1rem;
}

/* At risk: inverse ink. Not red, which means "not that person" (D6). */
.key-status.risk {
  --button-bg: var(--paper);
  --button-fg: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.key-status.unknown {
  border-style: dashed;
}

.keys {
  display: grid;
  gap: 0.6rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.key {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.95rem 1.15rem;
  border: 2px solid var(--line);
  border-radius: 1.15rem;
}

.key.here {
  border: 3px solid var(--fg);
}

.contacts-list .key {
  padding-block: 0.8rem;
}

.key .icon {
  width: 1.5rem;
  height: 1.5rem;
}

/* The key on this device: a green check in a circle; others a quiet key. */
.key-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 2px solid var(--line);
  border-radius: 50%;
}

.key-icon.here {
  border-color: var(--yes);
  background: var(--yes);
  color: #fff;
}

.key-icon .icon {
  width: 1.3rem;
  height: 1.3rem;
}

.key-where {
  color: var(--soft);
  font-size: var(--step--1);
  font-weight: 700;
}

.key-where.here {
  color: var(--yes);
}

/* "Fjern" asks first, in the row itself. */
.key.asking {
  flex-wrap: wrap;
  border: 3px solid var(--no);
}

.confirm-row {
  flex-basis: 100%;
  padding-top: 0.75rem;
  border-top: 2px solid var(--line);
}

.confirm-text {
  margin-bottom: 0.75rem;
  font-weight: 700;
  line-height: 1.35;
}

.confirm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.confirm-actions .button {
  flex: 1 1 9rem;
  min-height: 3rem;
  padding: 0.5rem 1rem;
}

.button.danger {
  border-color: var(--no);
  background: var(--no);
  color: #fff;
}

.key-body {
  display: grid;
  flex: 1;
  gap: 0.2rem;
  min-width: 0;
}

.key-name {
  font-weight: 800;
  line-height: 1.2;
}

.key-meta {
  color: var(--soft);
  font-size: var(--step--1);
}

/* ---- How it works ---- */

/* Home: the way into "how it works". The brand's own screens on a quiet card: white, an ink
   line, one sentence, a plain link. Nothing glows, nothing moves. */
.how-card {
  display: grid;
  gap: 0.4rem;
  margin-top: 2.25rem;
  padding: 0.75rem 0.75rem 1.4rem;
  border: 3px solid var(--ink);
  border-radius: 1.5rem;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

.how-stage {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 5.6rem));
  justify-content: center;
  gap: 0.9rem;
  margin-bottom: 1rem;
  padding: 1.3rem 0.75rem;
  border-radius: 1rem;
  background: var(--paper);
}

/* The middle phone, Thomas's, sits a little higher: the moment that matters. */
.how-stage .device:nth-child(2) {
  transform: translateY(-0.35rem);
}

.how-stage .device-screen {
  padding: 1rem 0.5rem 0.6rem;
  border-width: 0.25rem;
  border-radius: 1.1rem;
}

.how-stage .mini-title {
  font-size: 0.66rem;
}

.how-stage .mini-code {
  font-size: 1.6rem;
}

.how-stage .mini-mark {
  font-size: 2.2rem;
}

.how-stage .mini-button {
  font-size: 0.54rem;
}

/* On a wider screen the phones grow with the card. */
@media (min-width: 40rem) {
  .how-stage {
    grid-template-columns: repeat(3, minmax(0, 7.5rem));
    gap: 1.5rem;
    padding: 1.8rem 1rem;
  }
}

.how-card-title,
.how-card-text,
.how-card-link {
  margin-inline: 0.65rem;
}

.how-card-title {
  font-size: var(--step-2);
  font-weight: 800;
  font-stretch: 85%;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.how-card-text {
  max-width: 30rem;
  color: color-mix(in srgb, var(--ink) 75%, var(--white));
}

.how-card-link {
  justify-self: start;
  margin-top: 0.6rem;
  font-weight: 700;
}

.how-card-link::after {
  content: " →";
}

.how-card:hover .how-card-link {
  text-decoration-thickness: 3px;
}


/* ---- Step by step: one screen at a time ---- */

.slides {
  margin: 1.5rem 0 2rem;
  padding: 0.75rem 0.75rem 1.2rem;
  border: 3px solid var(--ink);
  border-radius: 1.5rem;
  background: var(--white);
  color: var(--ink);
  touch-action: pan-y;
}

/* Fixed height, so the buttons below never jump as the screens change. */
.slide-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: 19rem;
  padding: 1.4rem 1rem 1rem;
  border-radius: 1rem;
  background: var(--paper);
  user-select: none;
}

.slide-stage .device {
  width: 8.5rem;
}

.slide-stage.pair .device {
  width: 7rem;
}

.slide-stage .device-screen {
  padding: 1.3rem 0.7rem 0.8rem;
  border-radius: 1.5rem;
}

.slide-stage .mini-title {
  font-size: 0.92rem;
}

.slide-stage .mini-code {
  font-size: 2.4rem;
}

.slide-stage .mini-mark {
  font-size: 3.3rem;
}

.slide-stage .mini-button {
  font-size: 0.74rem;
}

.slide-stage.pair .mini-title {
  font-size: 0.8rem;
}

.slide-stage.pair .mini-code {
  font-size: 2rem;
}

.slide-progress {
  display: grid;
  grid-auto-flow: column;
  gap: 0.4rem;
  margin: 1.1rem 0.65rem 0;
}

.slide-progress span {
  height: 4px;
  border-radius: 4px;
  background: var(--line);
  transition: background-color 200ms ease;
}

.slide-progress span.on {
  background: var(--ink);
}

.slide-copy {
  min-height: 9.5rem;
  margin: 1rem 0.65rem 0;
}

.slide-count {
  color: var(--soft);
  font-size: var(--step--1);
  font-weight: 700;
}

.slide-title {
  margin: 0.2rem 0 0.4rem;
  font-size: var(--step-1);
  font-weight: 800;
  line-height: 1.15;
}

.slide-text {
  color: color-mix(in srgb, var(--ink) 78%, var(--white));
}

.slide-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin: 1.1rem 0.65rem 0;
}

.slide-nav .button {
  white-space: nowrap;
}

/* Keyboard focus stays inside the card. */
.slide-nav .button:focus-visible {
  outline-offset: 1px;
}

.slide-prev:disabled {
  opacity: 0.3;
  cursor: default;
  transform: none;
}

/* A short slide in the direction of travel, only for the show that moved. */
.slides.moved .slide-stage > *,
.slides.moved .slide-copy {
  animation: slide-in 280ms cubic-bezier(0.2, 0.9, 0.3, 1) both;
}

.slides.moved.back .slide-stage > *,
.slides.moved.back .slide-copy {
  animation-name: slide-in-back;
}

@keyframes slide-in {
  from {
    transform: translateX(1.5rem);
    opacity: 0;
  }
}

@keyframes slide-in-back {
  from {
    transform: translateX(-1.5rem);
    opacity: 0;
  }
}

@media (min-width: 40rem) {
  .slide-stage {
    min-height: 22rem;
  }

  .slide-stage .device {
    width: 10rem;
  }

  .slide-stage.pair .device {
    width: 8.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .slides.moved .slide-stage > *,
  .slides.moved .slide-copy {
    animation: none;
  }
}

/* Read by screen readers, not shown. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---- Landing: what it protects against, and what it does not ---- */

.threats {
  margin: 0 0 3rem;
  padding-top: 2.25rem;
  border-top: 3px solid var(--fg);
}

.threat-list {
  display: grid;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.threat-list li {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.threat-mark {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 2.5px solid var(--fg);
  border-radius: 50%;
}

.threat-mark .icon {
  width: 1.35rem;
  height: 1.35rem;
}

.threat-title {
  font-weight: 800;
  line-height: 1.25;
}

.threat-text {
  margin-top: 0.2rem;
  color: var(--soft);
  font-size: var(--step--1);
}

.threat-limit {
  margin-top: 1.25rem;
  padding: 1rem 1.2rem;
  border: 2px dashed var(--fg);
  border-radius: 1rem;
  font-size: var(--step--1);
}

/* ---- Privacy policy ---- */

.policy section {
  margin-bottom: 1.5rem;
}

.policy address {
  font-style: normal;
}

.policy-list {
  max-width: 34rem;
  margin: 0 0 1.25rem;
  padding-left: 1.2rem;
}

.policy-list li + li {
  margin-top: 0.55rem;
}

.policy-items {
  display: grid;
  gap: 0.9rem;
  max-width: 34rem;
  margin: 0 0 1.25rem;
}

.policy-items dt {
  font-weight: 800;
}

.policy-items dd {
  margin: 0.15rem 0 0;
}

/* A detail still to be filled in before launch (web/privacy.js, CONTROLLER). */
mark.todo {
  padding: 0 0.2em;
  background: var(--ask);
  color: var(--ask-fg);
}

.page-foot {
  margin-top: 2.5rem;
}

/* ---- A code before an account (PLAN.md D13) ---- */

.found-ok {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
  padding: 0.3rem 0.85rem 0.3rem 0.55rem;
  border-radius: 999px;
  background: var(--yes);
  color: var(--white);
  font-size: var(--step--1);
  font-weight: 700;
}

.found-ok .icon {
  width: 1.2em;
  height: 1.2em;
}

.found-new,
.found-have {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 3px solid var(--line);
}

.found-have .text {
  margin-bottom: 1rem;
}

/* Konto: the name, and a link to change it, on one line when there is room. */
.name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 1rem;
  margin-bottom: 0.5rem;
}

/* ---- About and questions (web/about.js) ---- */

.about .lead {
  margin-bottom: 1rem;
}

.about .button.wide {
  margin-top: 0.75rem;
  text-decoration: none;
}

.about-section {
  margin-top: 3.5rem;
}

.about-section > .subtitle {
  margin-bottom: 1.1rem;
}

.about-section > .text {
  margin-bottom: 1.25rem;
}

/* Everyday situations: cards, one column on a phone, two where there is room. */
.about-cards {
  display: grid;
  gap: 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.about-cards li {
  padding: 1.1rem 1.25rem 1.2rem;
  border: 3px solid var(--fg);
  border-radius: 1.25rem;
  background: var(--card, transparent);
}

.about-card-title {
  margin: 0 0 0.35rem;
  font-size: var(--step-1);
  font-weight: 800;
  line-height: 1.15;
}

@media (min-width: 40rem) {
  .about-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Questions: each opens in place, so the page stays short and a question can be linked. */
.faq {
  border-top: 2px solid var(--line);
}

.faq details {
  border-bottom: 2px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3rem;
  padding: 0.85rem 0;
  font-weight: 800;
  line-height: 1.25;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: none;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "–";
}

.faq details > .text {
  padding-bottom: 1.1rem;
}

/* ---- Konto: the end of the page ---- */

.account-end {
  margin-top: 2.5rem;
}

/* Deleting the account: set apart and quiet, never next to everyday links. */
.danger-zone {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 2px solid var(--line);
}

.danger-title {
  margin-bottom: 0.35rem;
  font-size: var(--step-0);
  font-weight: 800;
}

.danger-zone .hint {
  margin-bottom: 0.5rem;
}

/* The small links at the bottom of every page. */
.site-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--soft);
  font-size: var(--step--1);
}

.site-foot a {
  display: inline-block;
  padding: 0.35rem 0;
  color: inherit;
  text-underline-offset: 0.2em;
}

.site-foot a:hover {
  color: var(--fg);
}
