/* Tokens come from DESIGN.md section 2.2. scripts/site-guard.sh checks every colour here against that table. */
@font-face {
  font-family: "Outfit";
  src: url("/assets/outfit-extrabold-bb3ff715.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --page: #f6f7f9;
  --card: #ffffff;
  --fill: #eceef2;
  --line: #e3e6eb;
  --ink: #0f1115;
  --ink2: #5b616e;
  --on-ink: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #0e0f12;
    --card: #16181d;
    --fill: #23262d;
    --line: #2a2e36;
    --ink: #f2f3f5;
    --ink2: #9aa0ab;
    --on-ink: #0f1115;
  }

}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 1.0625rem/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-wrap: break-word;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  padding: 0.5rem 1rem;
  background: var(--ink);
  color: var(--on-ink);
}

.skip:focus {
  left: 1rem;
  top: 1rem;
}

.wrap {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.wrap.wide {
  max-width: 64rem;
}

/* Header and footer */
header.site {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  padding: 1rem 0 0.5rem;
}

.header-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-family: "Outfit", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: #6a4fd8;
  text-decoration: none;
}

@media (prefers-color-scheme: dark) {
  .brand {
    color: #a592ff;
  }
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

nav li {
  margin: 0;
}

header.site a,
footer.site a {
  display: inline-flex;
  align-items: center;
  min-width: 1.5rem;
  min-height: 2rem;
}

header.site .brand {
  min-height: 2.75rem;
}

a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
  border-radius: 2px;
}

[aria-current] {
  font-weight: 700;
  text-decoration-thickness: 2px;
}

footer.site {
  margin-top: 1.5rem;
  padding: 1.5rem 0 2.5rem;
  color: var(--ink2);
  font-size: 0.9375rem;
}

footer.site a {
  color: var(--ink2);
}

footer.site nav + nav,
footer.site nav + p,
footer.site p + p {
  margin-top: 0.5rem;
}

footer.site p {
  margin-bottom: 0;
}

/* Text */
main {
  padding: 1.5rem 0 1rem;
}

h1,
h2 {
  font-family: "Outfit", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 800;
}

h1 {
  margin: 0 0 0.75rem;
  font-size: 2rem;
  line-height: 1.2;
}

h2 {
  margin: 2.25rem 0 0.5rem;
  font-size: 1.4rem;
  line-height: 1.25;
}

h3 {
  margin: 1.5rem 0 0.25rem;
  font-size: 1.0625rem;
  line-height: 1.4;
}

p,
ul,
ol {
  margin: 0 0 1rem;
}

li {
  margin-bottom: 0.35rem;
}

.meta,
.small {
  color: var(--ink2);
  font-size: 0.9375rem;
}

.card {
  margin: 1.5rem 0;
  padding: 1.25rem 1.25rem 0.25rem;
  background: var(--card);
  border-radius: 22px;
}

.card > :first-child {
  margin-top: 0;
}

.card ul {
  padding-left: 1.25rem;
}

.chip {
  display: inline-block;
  padding: 0 0.625rem;
  border-radius: 999px;
  background: var(--fill);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.5rem;
}

/* Contact form on the support pages. Fields are fills with a 1 px ink2 edge, so the edge keeps 3:1 against the page. */
form.contact {
  margin: 1rem 0 0;
}

.field {
  margin: 0 0 1rem;
}

.field label {
  display: block;
  margin: 0 0 0.375rem;
  font-weight: 600;
}

.hint {
  color: var(--ink2);
  font-weight: 400;
}

.field input,
.field textarea {
  display: block;
  width: 100%;
  min-height: 2.75rem;
  margin: 0;
  padding: 0.625rem 0.875rem;
  border: 0;
  border-radius: 14px;
  background: var(--fill);
  color: var(--ink);
  font: inherit;
  outline: 1px solid var(--ink2);
  outline-offset: -1px;
  appearance: none;
}

.field textarea {
  min-height: 10rem;
  resize: vertical;
}

.field input:focus-visible,
.field textarea:focus-visible,
form.contact button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

form.contact button {
  min-height: 2.75rem;
  margin: 0.25rem 0 1rem;
  padding: 0 1.75rem;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--on-ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  appearance: none;
}

/* The honeypot is out of sight and out of the tab order. Real visitors never fill it. */
.hp {
  position: absolute;
  left: -999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Home page */
.hero {
  display: grid;
  gap: 1.5rem;
  padding-top: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.25rem, 7vw, 3.5rem);
  line-height: 1.08;
}

.hero p {
  max-width: 36rem;
}

.store-badge-slot {
  margin: 1.25rem 0 0.5rem;
}

.get-status {
  margin: 0;
  font-weight: 600;
}

.store-badge {
  display: inline-block;
  margin: 0.75rem;
}

.store-badge img {
  display: block;
  height: 3rem;
  width: auto;
}

.qr {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .qr {
    display: block;
    max-width: 18rem;
  }
}

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

.home section h2 {
  margin-top: 0;
  font-size: clamp(1.6rem, 4.5vw, 2.1rem);
  line-height: 1.15;
}

.home section > p {
  max-width: 36rem;
}

.cards {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
  margin: 1.5rem 0 0;
}

.cards .card {
  margin: 0;
  padding-bottom: 0.5rem;
}

.cards .card h3 {
  margin-top: 0;
}

.tiers {
  margin-bottom: 0.75rem;
}

.price {
  max-width: 36rem;
  margin: 1.5rem 0 1rem;
  padding: 1rem 1.25rem;
  background: var(--fill);
  border-radius: 22px;
}

.price p {
  margin: 0;
}

.screen {
  margin: 0;
}

.screen img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 22px;
  background: var(--card);
  outline: 1px solid var(--line);
  outline-offset: -1px;
}

.screen figcaption {
  margin-top: 0.75rem;
  color: var(--ink2);
  font-size: 0.9375rem;
}

.screen {
  max-width: 18rem;
}

.split {
  display: grid;
  gap: 1.5rem;
}

.closing {
  padding-bottom: 1rem;
}

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

@media (min-width: 56rem) {
  .hero:has(.screen),
  .split:has(.screen) {
    grid-template-columns: minmax(0, 1fr) 18rem;
    gap: 3rem;
    align-items: center;
  }

  .hero:has(.screen) {
    padding-top: 2.5rem;
  }
}
