/*
  Barcoder website — shared styles (site/barcoder/style.css).
  Self-contained: system fonts only, no external resources, no scripts.
  Brand colours from SPEC §6:
    accent (any text, links, buttons)  #00745D light / #34E5B0 dark
    mint   (fills without text only)   #00A982 light / #34E5B0 dark
    indigo (secondary)                 #4338CA light / #8C85FF dark
  Light and dark follow the system (prefers-color-scheme).
*/

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --bg-soft: #f2f6f4;
  --surface: #ffffff;
  --header-bg: rgba(255, 255, 255, 0.86);
  --text: #0e1a17;
  --text-2: #45524e;
  --line: rgba(14, 26, 23, 0.12);
  --accent: #00745d;
  --accent-hover: #005c4a;
  --on-accent: #ffffff;
  --mint: #00a982;
  --mint-tint: rgba(0, 169, 130, 0.12);
  --indigo: #4338ca;
  --indigo-tint: rgba(67, 56, 202, 0.1);
  --glow-1: rgba(67, 56, 202, 0.16);
  --glow-2: rgba(0, 169, 130, 0.16);
  --shadow: 0 1px 2px rgba(14, 26, 23, 0.05), 0 10px 30px rgba(14, 26, 23, 0.06);
  --icon-shadow: 0 14px 34px rgba(67, 56, 202, 0.28), 0 4px 10px rgba(14, 26, 23, 0.1);
  --phone-band: #a9afad;
  --phone-shadow: 0 2px 4px rgba(14, 26, 23, 0.12), 0 28px 50px -18px rgba(14, 26, 23, 0.42);
  --window-shadow: drop-shadow(0 1px 1.5px rgba(14, 26, 23, 0.18)) drop-shadow(0 16px 28px rgba(14, 26, 23, 0.14));
  --menu-shadow: 0 2px 6px rgba(14, 26, 23, 0.08), 0 14px 34px rgba(14, 26, 23, 0.16);
  --radius-s: 12px;
  --radius-m: 20px;
  --radius-l: 28px;
  --wrap: 1100px;
  --gutter: 16px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "PingFang HK", "PingFang TC", "Noto Sans TC", "Noto Sans CJK TC", Arial, sans-serif;
  --font-display: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang HK", "PingFang TC", "Noto Sans TC", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b100f;
    --bg-soft: #101816;
    --surface: #141d1b;
    --header-bg: rgba(11, 16, 15, 0.82);
    --text: #edf3f1;
    --text-2: #a7b4b0;
    --line: rgba(237, 243, 241, 0.14);
    --accent: #34e5b0;
    --accent-hover: #6cefc8;
    --on-accent: #00281e;
    --mint: #34e5b0;
    --mint-tint: rgba(52, 229, 176, 0.13);
    --indigo: #8c85ff;
    --indigo-tint: rgba(140, 133, 255, 0.15);
    --glow-1: rgba(140, 133, 255, 0.16);
    --glow-2: rgba(52, 229, 176, 0.12);
    --shadow: none;
    --icon-shadow: 0 14px 40px rgba(52, 229, 176, 0.16), 0 4px 12px rgba(0, 0, 0, 0.5);
    --phone-band: #4b5250;
    --phone-shadow: 0 28px 54px -16px rgba(0, 0, 0, 0.75);
    --window-shadow: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.55));
    --menu-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
  }
}

/*
  Fonts per language (system fonts only). zh-Hant-HK takes the Hong Kong forms; zh-Hans, ja and ko their own CJK
  fonts (:lang(zh-Hans) must follow :lang(zh), which also matches it); th keeps SF for Latin text and names the Thai
  fonts for the rest.
*/
html:lang(zh) {
  --font: "PingFang HK", "PingFang TC", -apple-system, BlinkMacSystemFont, "Noto Sans TC", "Noto Sans CJK TC", "Helvetica Neue", Arial, sans-serif;
  --font-display: "PingFang HK", "PingFang TC", ui-rounded, -apple-system, BlinkMacSystemFont, "Noto Sans TC", Arial, sans-serif;
}

html:lang(zh-Hans) {
  --font: "PingFang SC", -apple-system, BlinkMacSystemFont, "Noto Sans SC", "Noto Sans CJK SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-display: "PingFang SC", ui-rounded, -apple-system, BlinkMacSystemFont, "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
}

html:lang(ja) {
  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", -apple-system, BlinkMacSystemFont, "Noto Sans JP", "Noto Sans CJK JP", "Yu Gothic", Meiryo, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Hiragino Sans", "Hiragino Kaku Gothic ProN", ui-rounded, -apple-system, BlinkMacSystemFont, "Noto Sans JP", "Yu Gothic", Meiryo, Arial, sans-serif;
}

html:lang(ko) {
  --font: "Apple SD Gothic Neo", -apple-system, BlinkMacSystemFont, "Noto Sans KR", "Noto Sans CJK KR", "Malgun Gothic", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Apple SD Gothic Neo", ui-rounded, -apple-system, BlinkMacSystemFont, "Noto Sans KR", "Malgun Gothic", Arial, sans-serif;
}

html:lang(th) {
  --font: -apple-system, BlinkMacSystemFont, "Thonburi", "Sukhumvit Set", "Noto Sans Thai", "Noto Sans Thai UI", "Leelawadee UI", Tahoma, "Helvetica Neue", Arial, sans-serif;
  --font-display: ui-rounded, -apple-system, BlinkMacSystemFont, "Thonburi", "Sukhumvit Set", "Noto Sans Thai", "Leelawadee UI", Tahoma, Arial, sans-serif;
}

/* Base */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

html:lang(zh) body,
html:lang(ja) body,
html:lang(th) body {
  line-height: 1.75;
}

/* Korean breaks lines between words, not inside them (long strings still wrap: overflow-wrap above). */
html:lang(ko) body {
  word-break: keep-all;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

a:hover {
  color: var(--accent-hover);
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

strong {
  font-weight: 650;
}

kbd {
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg-soft);
  color: var(--text);
  font: 600 0.9em var(--font-mono);
  white-space: nowrap;
}

.nowrap {
  white-space: nowrap;
}

code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  overflow-wrap: anywhere;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

@media (min-width: 720px) {
  :root {
    --gutter: 32px;
  }
}

.skip {
  position: absolute;
  top: -200px;
  left: var(--gutter);
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-s);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
}

.skip:focus {
  top: 12px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
}

.header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 16px;
  min-height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  color: var(--text);
  font: 650 1.0625rem/1 var(--font-display);
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand:hover {
  color: var(--text);
}

.brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
}

.nav a {
  display: inline-block;
  padding: 10px 0;
  color: var(--text-2);
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text);
}

.nav a[aria-current="page"] {
  font-weight: 600;
}

.nav-wide {
  display: none;
}

@media (min-width: 800px) {
  .nav-wide {
    display: list-item;
  }
}

/* Privacy leaves the header below 480 px (it stays in the footer), so brand, Support and the language menu keep
   one row down to 320 px in every language. */
.nav-mid {
  display: none;
}

@media (min-width: 480px) {
  .nav-mid {
    display: list-item;
  }
}

/*
  Language menu (header) and language list (footer): every page lists the same 14 languages in the same order,
  each name in its own language, linking to the same page in that language. No script: <details> opens the menu.
*/

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}

.nav-lang {
  position: relative;
}

.lang-menu summary {
  display: block;
  padding: 9px 0;
  color: var(--text-2);
  list-style: none;
  cursor: pointer;
  white-space: nowrap;
}

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

.lang-menu summary:hover,
.lang-menu[open] summary {
  color: var(--text);
}

.lang-menu summary:focus-visible {
  border-radius: 6px;
}

.lang-menu svg {
  display: inline-block;
  vertical-align: middle;
}

.lang-icon {
  width: 22px;
  height: 22px;
}

.lang-chevron {
  width: 13px;
  height: 13px;
  margin-left: 1px;
}

.lang-menu[open] .lang-chevron {
  transform: rotate(180deg);
}

.lang-list {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 60;
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(7, auto);
  gap: 2px 4px;
  max-height: calc(100vh - 80px);
  margin: 0;
  padding: 6px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: var(--surface);
  box-shadow: var(--menu-shadow);
  list-style: none;
}

.nav .lang-list a {
  display: block;
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--text);
  white-space: nowrap;
}

.nav .lang-list a:hover {
  background: var(--bg-soft);
  color: var(--text);
}

.nav .lang-list a[aria-current="page"] {
  color: var(--accent);
  font-weight: 650;
}

/* Each language name in the fonts of its own script, whatever the language of the page. */
.lang-list a,
.footer-langs a {
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

.lang-list a:lang(zh-Hant),
.footer-langs a:lang(zh-Hant) {
  font-family: "PingFang HK", "PingFang TC", "Noto Sans TC", "Noto Sans CJK TC", sans-serif;
}

.lang-list a:lang(zh-Hans),
.footer-langs a:lang(zh-Hans) {
  font-family: "PingFang SC", "Noto Sans SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
}

.lang-list a:lang(ja),
.footer-langs a:lang(ja) {
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
}

.lang-list a:lang(ko),
.footer-langs a:lang(ko) {
  font-family: "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
}

.lang-list a:lang(th),
.footer-langs a:lang(th) {
  font-family: -apple-system, BlinkMacSystemFont, "Thonburi", "Sukhumvit Set", "Noto Sans Thai", "Leelawadee UI", Tahoma, sans-serif;
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 60px;
  text-align: center;
}

.hero::before {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(560px 420px at 44% 30%, var(--glow-1), transparent 70%),
    radial-gradient(560px 420px at 57% 42%, var(--glow-2), transparent 70%);
  -webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 45%, transparent 100%);
  content: "";
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-icon {
  width: 128px;
  height: 128px;
  border-radius: 29px;
  box-shadow: var(--icon-shadow);
}

.hero h1 {
  margin: 28px 0 0;
  font: 700 clamp(2.75rem, 9vw, 4.5rem)/1.04 var(--font-display);
  letter-spacing: -0.035em;
}

.lead {
  max-width: 33em;
  margin: 18px auto 0;
  color: var(--text-2);
  font-size: clamp(1.125rem, 2.6vw, 1.375rem);
  line-height: 1.5;
  text-wrap: balance;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.fineprint {
  margin: 18px 0 0;
  color: var(--text-2);
  font-size: 0.9375rem;
}

.hero .fineprint {
  text-wrap: balance;
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 10px 22px 10px 18px;
  border: 1px solid transparent;
  border-radius: 16px;
  font-weight: 600;
  line-height: 1.25;
  text-align: left;
  text-decoration: none;
}

.button svg {
  flex: none;
  width: 26px;
  height: 26px;
}

.button-title {
  display: block;
  font-size: 1rem;
  text-wrap: balance;
}

.button-sub {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
}

.button-primary,
.button-primary:hover {
  color: var(--on-accent);
}

.button-primary {
  background: var(--accent);
}

.button-primary:hover {
  background: var(--accent-hover);
}

.button-secondary,
.button-secondary:hover {
  color: var(--text);
}

.button-secondary {
  border-color: var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.button-secondary:hover {
  border-color: var(--accent);
}

.button-secondary .button-sub {
  color: var(--text-2);
}

@media (max-width: 520px) {
  .cta .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  .button {
    transition: background-color 0.15s ease, border-color 0.15s ease;
  }
}

/* Sections */

.section {
  padding: 72px 0;
}

.section-soft {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.9375rem;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.section h2,
.page h2 {
  margin: 0;
  font: 700 clamp(1.75rem, 4.6vw, 2.5rem)/1.15 var(--font-display);
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.section-lead {
  max-width: 40em;
  margin: 14px 0 0;
  color: var(--text-2);
  font-size: 1.125rem;
}

.cards,
.steps,
.checks {
  display: grid;
  gap: 16px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.cards,
.steps {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17.5rem), 1fr));
}

.checks {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr));
}

.card,
.steps li,
.checks li {
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.card,
.steps li {
  padding: 24px;
}

.card h3,
.steps h3 {
  margin: 16px 0 6px;
  font: 650 1.1875rem/1.3 var(--font-display);
  letter-spacing: -0.01em;
}

.card p,
.steps p {
  margin: 0;
  color: var(--text-2);
}

.card-icon {
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: var(--radius-s);
  background: var(--mint-tint);
  color: var(--accent);
}

.mac .card-icon {
  background: var(--indigo-tint);
  color: var(--indigo);
}

.codes {
  max-width: 52em;
  margin: 28px 0 0;
  color: var(--text-2);
  font-size: 0.9375rem;
}

.codes strong {
  color: var(--text);
}

.steps {
  counter-reset: step;
}

.steps li {
  counter-increment: step;
}

.steps li {
  display: grid;
  grid-template-columns: 36px 1fr;
  align-content: start;
  align-items: center;
  column-gap: 14px;
}

.steps li::before {
  display: grid;
  grid-row: 1;
  grid-column: 1;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font: 700 1rem/1 var(--font-display);
  content: counter(step);
}

.steps h3 {
  grid-row: 1;
  grid-column: 2;
  margin: 0;
}

.steps p {
  grid-column: 1 / -1;
  margin-top: 12px;
}

.checks li {
  position: relative;
  padding: 20px 20px 20px 60px;
  color: var(--text-2);
}

.checks h3 {
  margin: 0 0 2px;
  color: var(--text);
  font: 650 1.0625rem/1.45 var(--font);
}

.checks p {
  margin: 0;
}

.checks li::before,
.checks li::after {
  position: absolute;
  content: "";
}

.checks li::before {
  top: 22px;
  left: 20px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
}

.checks li::after {
  top: 27px;
  left: 29px;
  width: 6px;
  height: 11px;
  border: solid var(--on-accent);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

.after-list {
  margin: 24px 0 0;
}

/*
  Product screenshots (assets/iphone-*, assets/mac-*), shown at most at their @2x size. Browsers load WebP
  through <picture> (the JPEG/PNG in <img src> is the fallback), the dark variants through
  (prefers-color-scheme: dark) sources.
  iPhone: the image is the bare screen (360 and 600 px wide); .phone draws the device in proportion to the
  6.9-inch iPhone the screenshots come from (440 pt wide display, 62 pt corner radius, 125 x 37 pt Dynamic
  Island 11.5 pt from the top). Padding and margins in % refer to the width, so the frame scales with the
  image: bezel 2 % of the phone width, screen = 96 %, screen radius 62/440 of the screen width.
  Mac: window captures with transparent rounded corners. Up to 560 px wide the wide window is replaced by a
  detail of it (square corners, rounded here), so its text is drawn larger.
*/

.shots {
  margin: 44px 0 0;
}

.shot {
  margin: 0;
}

.shot figcaption {
  max-width: 26em;
  margin: 16px auto 0;
  color: var(--text-2);
  font-size: 0.9375rem;
  line-height: 1.5;
  text-align: center;
  text-wrap: balance;
}

/* Chinese and Japanese captions break only at punctuation, spaces and the <wbr> between phrases, never inside a word
   (without keep-all both may break between any two characters, so the <wbr> hints would do nothing; Korean keeps its
   words whole through the body rule). */
:lang(zh) .shot figcaption,
:lang(ja) .shot figcaption {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.phones {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(14px, 5vw, 64px);
}

.shot-phone {
  flex: 0 1 270px;
  min-width: 0;
}

.phone {
  position: relative;
  padding: 2%;
  border-radius: 15.53% / 7.31%;
  background: #050606;
  box-shadow: 0 0 0 2px var(--phone-band), var(--phone-shadow);
}

.phone picture,
.shot-window picture {
  display: block;
}

.phone img {
  width: 100%;
  height: auto;
  border-radius: 14.09% / 6.49%;
}

.phone::before {
  position: absolute;
  top: 0;
  left: 50%;
  width: 27.27%;
  margin-top: 4.51%;
  aspect-ratio: 125 / 37;
  border-radius: 999px;
  background: #000;
  transform: translateX(-50%);
  content: "";
}

.mac-shots {
  display: grid;
  grid-template-columns: minmax(0, 320fr) minmax(0, 560fr);
  align-items: start;
  gap: 48px 40px;
  max-width: 920px;
  margin-right: auto;
  margin-left: auto;
}

.shot-wide {
  grid-column: 1 / -1;
}

.shot-window img {
  width: 100%;
  height: auto;
  filter: var(--window-shadow);
}

@media (min-width: 720px) {
  .shot-phone + .shot-phone {
    margin-top: 72px;
  }
}

@media (max-width: 719px) {
  .shots {
    margin-top: 36px;
  }

  .shot figcaption {
    margin-top: 12px;
    font-size: 0.875rem;
  }

  .mac-shots {
    gap: 36px 16px;
  }
}

@media (max-width: 560px) {
  .mac-shots {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Stacked, the menu bar panel (320 pt) is drawn at about the scale of the Output window (560 pt) below it. */
  .shot-menubar picture {
    max-width: 200px;
    margin: 0 auto;
  }

  /* The detail of the wide window has square corners. */
  .shot-wide img {
    border-radius: 12px;
  }
}

/* Requirements and download */

.req-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: 16px;
  margin-top: 36px;
}

.req-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.req-card h3 {
  margin: 0;
  font: 700 1.5rem/1.2 var(--font-display);
  letter-spacing: -0.015em;
}

.facts {
  display: grid;
  gap: 8px;
  margin: 16px 0 24px;
  padding: 0;
  color: var(--text-2);
  list-style: none;
}

.facts li {
  position: relative;
  padding-left: 22px;
}

.facts li::before {
  position: absolute;
  top: 0.62em;
  left: 2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  content: "";
}

.req-card .button {
  margin-top: auto;
}

.req-card .fineprint {
  margin: 0 0 20px;
  font-size: 0.875rem;
}

@media (max-width: 520px) {
  .req-card {
    padding: 22px;
  }

  .req-card .button {
    width: 100%;
  }
}

@media (max-width: 719px) {
  .hero {
    padding: 48px 0 40px;
  }

  .section {
    padding: 56px 0;
  }
}

@media (max-width: 560px) {
  .card {
    display: grid;
    grid-template-columns: 44px 1fr;
    align-content: start;
    align-items: center;
    column-gap: 14px;
    padding: 20px;
  }

  .card .card-icon {
    grid-row: 1;
    grid-column: 1;
  }

  .card h3 {
    grid-row: 1;
    grid-column: 2;
    margin: 0;
  }

  .card p {
    grid-column: 1 / -1;
    margin-top: 12px;
  }
}

/* Text pages (privacy, support) */

.page {
  padding: 56px 0 80px;
}

.page .wrap {
  max-width: calc(780px + 2 * var(--gutter));
}

.page h1 {
  margin: 0;
  font: 700 clamp(2.125rem, 6vw, 3rem)/1.1 var(--font-display);
  letter-spacing: -0.03em;
}

.page .meta {
  margin: 10px 0 0;
  color: var(--text-2);
}

.page h2 {
  margin: 52px 0 4px;
  font-size: clamp(1.375rem, 3.4vw, 1.75rem);
}

.page h3 {
  margin: 28px 0 8px;
  font: 650 1.125rem/1.35 var(--font-display);
  letter-spacing: -0.005em;
}

.page p,
.page li {
  color: var(--text-2);
}

.page p {
  margin: 0 0 12px;
}

.page ul,
.page ol {
  margin: 0 0 12px;
  padding-left: 1.3em;
}

.page li + li {
  margin-top: 6px;
}

.page strong {
  color: var(--text);
}

.summary,
.contact-card {
  margin: 28px 0 0;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--bg-soft);
}

.summary p,
.contact-card p {
  color: var(--text);
}

.summary p:last-child,
.contact-card p:last-child {
  margin-bottom: 0;
}

.contact-card h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.contact-email {
  font-size: 1.125rem;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.toc {
  margin: 28px 0 0;
}

.toc h2 {
  margin: 0 0 10px;
  color: var(--text-2);
  font: 650 0.9375rem/1.3 var(--font);
  letter-spacing: 0.01em;
}

.toc ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc li + li {
  margin-top: 0;
}

.toc a {
  display: inline-block;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.9375rem;
  text-decoration: none;
}

.toc a:hover {
  border-color: var(--accent);
  color: var(--text);
}

/* Footer */

.site-footer {
  padding: 32px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--text-2);
  font-size: 0.9375rem;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
}

.footer-row p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  display: inline-block;
  padding: 8px 0;
  color: var(--text-2);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.footer-links a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.footer-langs ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 18px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.footer-langs a {
  display: inline-block;
  padding: 6px 0;
  color: var(--text-2);
  text-decoration: none;
}

.footer-langs a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.footer-langs a[aria-current="page"] {
  color: var(--text);
  font-weight: 600;
}

.legal {
  max-width: 52em;
  margin: 16px 0 0;
  font-size: 0.8125rem;
  line-height: 1.5;
}

@media print {
  .site-header {
    position: static;
  }

  .skip,
  .nav,
  .cta,
  .footer-langs,
  .hero::before {
    display: none;
  }
}
