/* Moji website: Ember design language (ADR 0018), the same tokens as the app
   (apps/mobile/src/theme/colors.ts). Dark first; light follows the system setting.
   Depth from surface steps only: no shadows, borders, gradients, blur or glow. */

@font-face {
  font-family: 'Bricolage Grotesque';
  font-weight: 800;
  font-display: swap;
  src: url('/assets/fonts/bricolage-grotesque-800.woff') format('woff');
}
@font-face {
  font-family: 'Noto Sans';
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/noto-sans-400.woff') format('woff');
}
@font-face {
  font-family: 'Noto Sans';
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/noto-sans-500.woff') format('woff');
}
@font-face {
  font-family: 'Noto Sans';
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/noto-sans-600.woff') format('woff');
}
@font-face {
  font-family: 'Noto Sans';
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/noto-sans-700.woff') format('woff');
}

:root {
  color-scheme: dark;
  --bg: #16131a;
  --surface: #221f26;
  --raised: #2d2a33;
  --divider: #3a3640;
  --text: #f3f1f5;
  --text-2: #b4aebb;
  --muted: #8a8590;
  --accent: #f1a07b;
  --accent-pressed: #dc8a64;
  --accent-text: #f1a07b;
  --on-accent: #16131a;
  --tint: #3a2a27;
  --paper: #ffffff;

  --display: 'Bricolage Grotesque', 'Noto Sans', system-ui, sans-serif;
  --body: 'Noto Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r-badge: 6px;
  --r-tile: 12px;
  --r-card: 16px;
  --r-sheet: 24px;
  --r-pill: 999px;
  --gutter: 40px;
  --sec-pad: 112px;
  --h1: 76px;
  --h2: 48px;
  --h3: 36px;
  --lead: 19px;
  --header-h: 72px;
}

/* Light: the system setting, unless the visitor picked a theme with the header switch
   (theme.js sets data-theme before the page paints). */
@media (prefers-color-scheme: light) {
  :root:not([data-theme='dark']) {
    color-scheme: light;
    --bg: #f6f4f8;
    --surface: #ffffff;
    --raised: #ebe8ef;
    --divider: #e2dee7;
    --text: #1e1b22;
    --text-2: #5f5966;
    --muted: #6f6977;
    --accent-text: #a4502a;
    --tint: #fce9e0;
  }
  :root:not([data-theme='dark']) .on-dark {
    display: none;
  }
  :root:not([data-theme='dark']) .on-light {
    display: block;
  }
}
:root[data-theme='light'] {
  color-scheme: light;
  --bg: #f6f4f8;
  --surface: #ffffff;
  --raised: #ebe8ef;
  --divider: #e2dee7;
  --text: #1e1b22;
  --text-2: #5f5966;
  --muted: #6f6977;
  --accent-text: #a4502a;
  --tint: #fce9e0;
}
/* Theme-dependent images (the logo) and the switch's icon. */
.on-light {
  display: none;
}
:root[data-theme='light'] .on-dark {
  display: none;
}
:root[data-theme='light'] .on-light {
  display: block;
}

@media (max-width: 1179px) {
  :root {
    --h1: 60px;
  }
}
@media (max-width: 759px) {
  :root {
    --gutter: 20px;
    --sec-pad: 64px;
    --h1: 44px;
    --h2: 34px;
    --h3: 28px;
    --lead: 17px;
    --header-h: 64px;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  /* The bonus bar sticks under the header on wide screens; site.js keeps --bonus-h at its height
     (0 once closed), so a section link does not land under it. */
  scroll-padding-top: calc(var(--header-h) + var(--bonus-h, 0px));
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}
img {
  max-width: 100%;
}
a {
  color: inherit;
}
h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  color: var(--text);
  text-wrap: balance;
}
h1 {
  font-size: var(--h1);
  line-height: 1.02;
  letter-spacing: -0.025em;
}
h2 {
  font-size: var(--h2);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
h3 {
  font-size: 24px;
  line-height: 1.2;
}
p {
  margin: 0;
}
[lang='ja'] {
  font-family: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', var(--body);
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: absolute;
  inset-inline-start: 16px;
  top: -100px;
  z-index: 50;
  padding: 10px 16px;
  border-radius: var(--r-tile);
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus {
  top: 12px;
}
.i12 {
  width: 12px;
  height: 12px;
}
.i14 {
  width: 14px;
  height: 14px;
}
.i16 {
  width: 16px;
  height: 16px;
}
.i18 {
  width: 18px;
  height: 18px;
}
.i20 {
  width: 20px;
  height: 20px;
}
.i22 {
  width: 22px;
  height: 22px;
}
.i24 {
  width: 24px;
  height: 24px;
}
.i26 {
  width: 26px;
  height: 26px;
}
.i40 {
  width: 40px;
  height: 40px;
}
svg[class^='i'] {
  flex-shrink: 0;
}
[dir='rtl'] .flip-rtl {
  transform: scaleX(-1);
}

.wrap {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.narrow-wrap {
  max-width: 840px;
}
.lead {
  font-size: var(--lead);
  line-height: 1.5;
  color: var(--text-2);
  text-wrap: pretty;
}
.grow {
  flex: 1;
}
.section {
  padding-block: var(--sec-pad);
}
.section-bottom {
  padding-bottom: var(--sec-pad);
}
.surface {
  background: var(--surface);
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.stack > h2 {
  text-align: center;
}
.stack-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}
.section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 680px;
}
.section-head.center {
  align-items: center;
  text-align: center;
}
/* A quiet label ("Coming soon"): neutral surface, secondary text, a small accent dot. */
.badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: var(--raised);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 600;
}
.badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.card.raised .badge {
  background: var(--bg);
}
.step-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
}

/* Buttons: the balloon shape, a pill with a sharper bottom-end corner. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding-inline: 20px;
  border: 0;
  border-radius: var(--r-pill);
  border-end-end-radius: var(--r-badge);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}
.btn-primary:hover {
  background: var(--accent-pressed);
}
.btn-secondary {
  background: var(--raised);
  color: var(--text);
}
.btn-sm {
  height: 44px;
}
.btn-lg {
  height: 56px;
  padding-inline: 28px;
  font-size: 17px;
}
.ghost-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding-inline: 12px;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--text-2);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}
.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--raised);
  color: var(--text);
  cursor: pointer;
}
.text-link {
  padding: 10px 12px;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
}
.accent-link {
  padding-block: 10px;
  font-weight: 600;
  text-decoration: none;
  color: var(--accent-text);
}

.narrow-only {
  display: none !important;
}
@media (max-width: 899px) {
  .wide-only {
    display: none !important;
  }
  .narrow-only {
    display: flex !important;
  }
}

/* Bonus bar: sticks under the header on wide screens (not on phones, below); gone for good once
   closed or once this browser signed in (theme.js sets data-bonus-bar before paint). Closing
   fades it and folds its height away (site.js), so the page below slides up instead of jumping. */
.bonus-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 19;
  overflow: hidden;
  background: var(--tint);
  color: var(--text);
  font-size: 14px;
  transition:
    opacity 0.18s ease,
    height 0.32s var(--ease-out) 0.06s;
}
.bonus-bar.is-closing {
  height: 0 !important;
  opacity: 0;
}
:root[data-bonus-bar='off'] .bonus-bar {
  display: none;
}
.bonus-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}
.bonus-bar-body {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  column-gap: 10px;
  row-gap: 2px;
  margin: 0;
  padding-block: 8px;
  padding-inline-start: 36px;
  text-align: center;
}
.bonus-bar-body img {
  flex: none;
}
.bonus-bar-link {
  font-weight: 700;
  color: var(--accent-text);
  white-space: nowrap;
}
.bonus-bar-close {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
}
.bonus-bar-close:hover {
  background: var(--raised);
  color: var(--text);
}
/* Phones get the hero badge instead (.free-line): no bar above the hero there. */
@media (max-width: 759px) {
  .bonus-bar {
    display: none;
  }
}

/* Header: logo at the start, the section links centred, tools and actions at the end. A divider
   appears under it once the page scrolls. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  box-shadow: 0 1px 0 transparent;
  transition: box-shadow 0.2s;
}
.site-header.is-scrolled {
  box-shadow: 0 1px 0 var(--divider);
}
.header-row {
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.logo {
  display: flex;
  justify-self: start;
}
.logo img {
  height: 30px;
  width: auto;
}
.nav-wide {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: var(--r-pill);
  background: var(--surface);
}
.nav-wide a {
  padding: 8px 14px;
  border-radius: var(--r-pill);
  color: var(--text-2);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition:
    color 0.15s,
    background-color 0.15s;
}
.nav-wide a:hover {
  color: var(--text);
}
.nav-wide a[aria-current='true'] {
  background: var(--raised);
  color: var(--text);
}
.header-end {
  justify-self: end;
  display: flex;
  white-space: nowrap;
  align-items: center;
  gap: 8px;
}
.header-tools {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-inline-end: 4px;
}
.tool-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 40px;
  height: 40px;
  padding-inline: 10px;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--text-2);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition:
    color 0.15s,
    background-color 0.15s;
}
.tool-btn:hover,
.tool-btn[aria-expanded='true'] {
  background: var(--surface);
  color: var(--text);
}
.lang-code {
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
@media (max-width: 1099px) {
  .nav-wide a[data-nav='demo'] {
    display: none;
  }
}
@media (max-width: 899px) {
  .header-row {
    grid-template-columns: 1fr auto;
    gap: 12px;
  }
  .nav-wide {
    display: none;
  }
}
.lang-menu {
  position: relative;
}
.lang-list {
  position: absolute;
  inset-inline-end: 0;
  top: 48px;
  z-index: 30;
  width: 220px;
  padding: 8px;
  border-radius: var(--r-card);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.lang-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
  padding-inline: 12px;
  border-radius: var(--r-tile);
  color: var(--text);
  text-decoration: none;
}
.lang-list a[aria-checked='true'] {
  background: var(--raised);
}
.lang-list a[aria-checked='true'] svg {
  color: var(--accent-text);
}
.mobile-menu {
  position: absolute;
  inset-inline: 0;
  top: 100%;
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  background: var(--surface);
  border-bottom: 1px solid var(--divider);
  padding: 12px var(--gutter) 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-menu > a {
  padding: 12px 4px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
}
.mobile-menu-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}
.mobile-menu-actions .btn {
  flex: 1 1 0;
  min-width: max-content;
  white-space: nowrap;
}

/* Hero: the scene fills the section on wide screens, its art on the end side; below 1180 px it
   sits under the text. */
.hero {
  max-width: 1440px;
  margin-inline: auto;
}
/* The words and the scene side by side, the scene in its own column so it never runs under the
   words (its viewBox is cropped to the drawing). Phones stack them, the scene first. */
.hero-row {
  min-height: clamp(560px, 48vw, 760px);
  display: flex;
  align-items: center;
  gap: 32px;
}
.hero-copy {
  flex: 0 1 540px;
  padding-block: 96px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.hero-art {
  flex: 1 1 0;
  min-width: 0;
  width: 100%;
  height: auto;
  max-height: 640px;
  object-fit: contain;
}
/* The search phrase ("AI manga translator") sits inside the h1 as a small accent line above the
   headline, so the page's main heading names what Moji is in every language. */
.hero-eyebrow {
  display: block;
  margin-bottom: 16px;
  font-family: var(--body);
  font-size: var(--lead);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
  color: var(--accent-text);
}
/* The primary button spans the store badges under it. */
.hero-actions {
  display: inline-grid;
  grid-template-columns: auto auto;
  gap: 10px;
  align-self: flex-start;
  margin-top: 8px;
}
.hero-actions .btn {
  grid-column: 1 / -1;
}
.hero-actions .store-badge {
  justify-content: center;
}
.free-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--text-2);
}
/* Phones: the signup bonus as a badge in the bonus bar's colours, which phones don't show. */
@media (max-width: 759px) {
  .free-line {
    align-self: flex-start;
    margin: 0;
    padding: 8px 16px 8px 10px;
    border-radius: var(--r-pill);
    background: var(--tint);
    font-weight: 600;
    color: var(--text);
  }
}
@media (max-width: 1179px) {
  /* Tablets (iPad portrait and landscape): still side by side, the words a little wider. */
  .hero-row {
    min-height: 0;
    padding-block: 48px;
  }
  .hero-copy {
    flex: 1 1 55%;
    padding-block: 0;
  }
  .hero-art {
    flex: 1 1 45%;
  }
}
@media (max-width: 759px) {
  /* Phones: the scene first, the words under it. */
  .hero-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding-block: 8px 0;
  }
  .hero-art {
    order: -1;
    flex: none;
    max-height: 300px;
  }
  .hero-copy {
    flex: none;
    padding-block: 8px 24px;
  }
  .hero-actions {
    display: grid;
    align-self: stretch;
    grid-template-columns: 1fr 1fr;
  }
  .hero-actions .store-badge {
    padding-inline: 10px;
  }
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.store-badges.center {
  justify-content: center;
}
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding-inline: 16px 20px;
  border-radius: var(--r-tile);
  background: var(--text);
  color: var(--bg);
  text-decoration: none;
}
.store-badge span {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.store-badge small {
  font-size: 11px;
}
.store-badge strong {
  font-size: 17px;
}
.store-badge.small {
  height: 48px;
  padding-inline: 14px 18px;
}
.store-badge.small small {
  font-size: 10px;
}
.store-badge.small strong {
  font-size: 15px;
}
a.store-badge {
  transition: transform 0.15s;
}
a.store-badge:hover {
  transform: translateY(-2px);
}
/* Not listed yet (the Chrome extension): the same badge, quiet and not a link. */
.store-badge.is-soon {
  background: var(--raised);
  color: var(--text-2);
}
.store-badge.is-soon strong {
  color: var(--text);
}

/* Demo: before/after slider */
.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 1000px;
}
.chip {
  height: 40px;
  padding-inline: 14px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--raised);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.chip[aria-pressed='true'] {
  background: var(--accent);
  color: var(--on-accent);
}
.field {
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 360px;
}
.field label,
.field-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
}
.select-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 48px;
  padding-inline: 16px 44px;
  border: 0;
  border-radius: var(--r-tile);
  background: var(--raised);
  color: var(--text);
  font: inherit;
  font-weight: 600;
}
.select-wrap > svg:last-child {
  position: absolute;
  inset-inline-end: 16px;
  pointer-events: none;
  color: var(--text-2);
}
/* Custom dropdown (site.js): a button and a listbox popover, used for the demo language on
   phones and the footer's site language. */
.dropdown {
  position: relative;
  width: 100%;
}
.dropdown-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 52px;
  padding-inline: 10px 16px;
  border: 0;
  border-radius: var(--r-tile);
  background: var(--raised);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  text-align: start;
  cursor: pointer;
}
.dropdown-btn[aria-expanded='true'] {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.dropdown-value {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dropdown-caret {
  color: var(--text-2);
  transition: transform 0.15s;
}
.dropdown-btn[aria-expanded='true'] .dropdown-caret {
  transform: rotate(180deg);
}
.lang-chip {
  flex-shrink: 0;
  min-width: 44px;
  padding: 4px 6px;
  border-radius: var(--r-badge);
  background: var(--bg);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-align: center;
}
.dropdown-btn .lang-chip {
  background: var(--accent);
  color: var(--on-accent);
}
.dropdown-list {
  position: absolute;
  inset-inline: 0;
  top: calc(100% + 8px);
  z-index: 15;
  max-height: min(360px, 60vh);
  margin: 0;
  padding: 6px;
  overflow-y: auto;
  overscroll-behavior: contain;
  list-style: none;
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--divider);
}
.dropdown-up .dropdown-list {
  top: auto;
  bottom: calc(100% + 8px);
}
.dropdown-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 6px 10px;
  border-radius: var(--r-tile);
  font-weight: 500;
  cursor: pointer;
}
.dropdown-list li:hover,
.dropdown-list li.is-active {
  background: var(--raised);
}
.dropdown-name {
  flex: 1;
}
.dropdown-check {
  visibility: hidden;
  color: var(--accent-text);
}
.dropdown-list li[aria-selected='true'] {
  font-weight: 700;
}
.dropdown-list li[aria-selected='true'] .dropdown-check {
  visibility: visible;
}
.dropdown-list li[aria-selected='true'] .lang-chip {
  background: var(--accent);
  color: var(--on-accent);
}

.compare {
  margin: 0;
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.compare-box {
  --pos: 50%;
  position: relative;
  width: 100%;
  aspect-ratio: 800 / 1132;
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--raised);
  user-select: none;
  -webkit-user-select: none;
}
.compare-box img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.compare-before {
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}
[dir='rtl'] .compare-before {
  clip-path: inset(0 0 0 calc(100% - var(--pos)));
}
.tag {
  position: absolute;
  top: 12px;
  padding: 4px 10px;
  border-radius: var(--r-badge);
  font-size: 13px;
  font-weight: 600;
}
.tag-start {
  inset-inline-start: 12px;
  background: var(--bg);
  color: var(--text);
}
.tag-end {
  inset-inline-end: 12px;
  background: var(--accent);
  color: var(--on-accent);
}
.compare-line {
  position: absolute;
  top: 0;
  bottom: 0;
  inset-inline-start: var(--pos);
  width: 4px;
  margin-inline-start: -2px;
  background: var(--accent);
  pointer-events: none;
}
.compare-handle {
  position: absolute;
  top: 50%;
  inset-inline-start: var(--pos);
  width: 56px;
  height: 44px;
  margin-inline-start: -28px;
  margin-top: -22px;
  border-radius: var(--r-pill);
  border-end-end-radius: var(--r-badge);
  background: var(--accent);
  color: var(--on-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.compare-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  touch-action: pan-y;
}
.compare-box:has(.compare-range:focus-visible) {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.credit {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

/* Cards */
.cards-3,
.cards-4 {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.cards-3 {
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
}
.cards-4 {
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
}
.card {
  background: var(--surface);
  border-radius: var(--r-card);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}
.card.raised {
  background: var(--raised);
  padding: 32px 24px 24px;
  gap: 12px;
}
.card .badge {
  align-self: center;
}
.card p {
  color: var(--text-2);
}
.card > img {
  width: 120px;
  height: 120px;
}
.h-small {
  font-family: var(--body);
  font-size: 20px;
  font-weight: 700;
}
.icon-tile {
  width: 64px;
  height: 64px;
  border-radius: var(--r-pill);
  background: var(--bg);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Platforms: the real store and browser logos, each with its badge. */
/* Platforms: the devices scene, then one link per platform. */
.platforms-card {
  width: 100%;
  max-width: 1080px;
  margin-top: 8px;
  padding: 32px 32px 40px;
  border-radius: var(--r-sheet);
  background: var(--raised);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.platforms-art {
  width: 100%;
  max-width: 760px;
  height: auto;
}
.platform-links {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px 16px;
}
.platform-links li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
/* One height for all four, tall enough for a label that wraps ("Ouvrir l'application web"). */
.platform-links .store-badge {
  width: 100%;
  max-width: 240px;
  height: auto;
  min-height: 64px;
  padding-block: 6px;
  justify-content: center;
}
.platform-links .store-badge strong {
  font-size: 16px;
}
.platform-links .store-badge img {
  width: 26px;
  height: 26px;
}
/* The "coming soon" badge sits on the card's own colour, so it takes the page's. */
.platform-links .store-badge.is-soon {
  background: var(--bg);
}
@media (max-width: 1079px) {
  .platform-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 559px) {
  .platforms-card {
    padding: 20px 16px 28px;
  }
  .platform-links {
    grid-template-columns: 1fr;
  }
}

/* Features */
.features {
  display: flex;
  flex-direction: column;
  gap: 96px;
}
.feature {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}
.feature.reverse {
  flex-direction: row-reverse;
}
.feature-art {
  flex: 1 1 420px;
  min-width: 0;
  background: var(--surface);
  border-radius: var(--r-sheet);
  padding: 16px;
}
.feature-art > img {
  display: block;
  width: 100%;
  height: auto;
}
.feature-copy {
  flex: 1 1 360px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.feature-copy h3 {
  font-size: var(--h3);
  line-height: 1.1;
  letter-spacing: -0.015em;
}
@media (max-width: 759px) {
  .features {
    gap: 64px;
  }
  .feature,
  .feature.reverse {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
  }
  /* In a column the 420/360 px bases would become heights and leave empty space. */
  .feature-art,
  .feature-copy {
    flex: none;
    width: 100%;
  }
}
.strip-art {
  padding: 32px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.segmented,
.pill-toggle {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: var(--r-pill);
  background: var(--bg);
}
.segmented button,
.pill-toggle button {
  height: 40px;
  padding-inline: 16px;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--text-2);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.segmented button[aria-pressed='true'] {
  background: var(--accent);
  color: var(--on-accent);
}
.phone {
  width: 288px;
  max-width: 100%;
  height: 560px;
  padding: 10px;
  border-radius: 40px;
  background: var(--raised);
}
.phone-screen {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  border-radius: 30px;
  background: var(--paper);
  scrollbar-width: none;
}
.phone-screen::-webkit-scrollbar {
  display: none;
}
.phone-screen img {
  display: block;
  width: 100%;
  height: auto;
}

/* Pricing: price first, then the tokens it buys and what that means. Cards lift and ring in
   the accent under the pointer; the featured one is ringed and raised from the start. */
.pricing-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.pricing-title img {
  width: 46px;
  height: 46px;
}
@media (max-width: 759px) {
  .pricing-title img {
    width: 34px;
    height: 34px;
  }
}
.pill-toggle {
  background: var(--surface);
}
.pill-toggle button {
  height: 44px;
  padding-inline: 22px;
  font-size: 16px;
  transition:
    color 0.15s,
    background-color 0.15s;
}
.pill-toggle button:hover {
  color: var(--text);
}
.pill-toggle button[aria-pressed='true'] {
  background: var(--text);
  color: var(--bg);
}
.price-grid {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  width: 100%;
  max-width: 1080px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr));
  align-items: center;
  gap: 20px;
}
.price-card {
  position: relative;
  background: var(--surface);
  border-radius: var(--r-sheet);
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  outline: 2px solid transparent;
  outline-offset: -2px;
  transition:
    transform 0.2s ease,
    outline-color 0.2s,
    background-color 0.2s;
}
.price-card:hover,
.price-card:focus-within {
  transform: translateY(-8px);
  outline-color: var(--accent);
}
.price-card.featured {
  background: var(--raised);
  outline-color: var(--accent);
  padding-block: 44px 32px;
}
.price-card.featured:hover,
.price-card.featured:focus-within {
  transform: translateY(-8px);
}
.price-card:hover .btn-secondary,
.price-card:focus-within .btn-secondary {
  background: var(--accent);
  color: var(--on-accent);
}
.price-flag {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 6px 16px;
  border-radius: var(--r-pill);
  border-end-end-radius: var(--r-badge);
  background: var(--accent);
  color: var(--on-accent);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.price-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.price-name {
  font-size: 26px;
}
.price-save {
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--bg);
  color: var(--accent-text);
  font-size: 13px;
  font-weight: 700;
}
.price-tokens {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.price-amount {
  display: flex;
  align-items: center;
  gap: 12px;
}
.price-amount img {
  width: 48px;
  height: 48px;
}
.price-amount strong {
  font-family: var(--display);
  font-size: 56px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}
.price-unit {
  color: var(--text-2);
  font-size: 15px;
}
.price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 12px 16px;
  border-radius: var(--r-tile);
  background: var(--bg);
}
.price strong {
  font-size: 24px;
  font-weight: 700;
}
.price span {
  font-size: 15px;
  color: var(--text-2);
}
.price-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.price-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-2);
}
.price-list svg {
  margin-top: 4px;
  color: var(--accent-text);
}
.btn-block {
  width: 100%;
  margin-top: 6px;
}
.price-card .btn {
  transition:
    background-color 0.2s,
    color 0.2s;
}
.price-note {
  max-width: 640px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  text-wrap: pretty;
}
.note-link {
  font-weight: 600;
  color: var(--accent-text);
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.note-link:hover {
  text-decoration-thickness: 2px;
}
.free-strip {
  width: 100%;
  max-width: 1080px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 28px 20px 20px;
  border-radius: var(--r-sheet);
  background: var(--surface);
}
.free-strip > img {
  width: 96px;
  height: 96px;
  flex-shrink: 0;
}
.free-copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.free-copy h3 {
  font-size: 24px;
}
.free-copy p {
  color: var(--text-2);
}
.free-strip .btn {
  flex-shrink: 0;
}
@media (prefers-reduced-motion: reduce) {
  .price-card,
  a.store-badge {
    transition: none;
  }
  .price-card:hover,
  .price-card:focus-within,
  a.store-badge:hover {
    transform: none;
  }
}
@media (max-width: 759px) {
  .price-card.featured {
    order: -1;
  }
  .price-amount strong {
    font-size: 48px;
  }
  .free-strip {
    flex-direction: column;
    text-align: center;
    padding: 24px 20px;
  }
  .free-strip .btn {
    width: 100%;
  }
}

/* FAQ */
.faq {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.faq details {
  background: var(--raised);
  border-radius: var(--r-card);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 16px 20px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq details[open] summary svg {
  transform: rotate(180deg);
}
.faq details p {
  padding: 0 20px 20px;
  color: var(--text-2);
}

/* Footer: on the page background under a divider (the FAQ above is on the surface step);
   brand and badges at the start, three short link columns, a one-line bottom row. */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--divider);
  padding-block: 56px 32px;
}
.footer-grid {
  display: grid;
  /* The contact column takes its content's width, so the support address stays on one line. */
  grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 0.9fr)) auto;
  gap: 40px 32px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.footer-logo img {
  height: 30px;
  width: auto;
}
.footer-tagline {
  max-width: 320px;
  color: var(--text-2);
  font-size: 15px;
  text-wrap: pretty;
}
.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.footer-h {
  margin-bottom: 8px;
  font-family: var(--body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer-col > a {
  padding-block: 6px;
  color: var(--text-2);
  text-decoration: none;
}
.footer-col > a:hover {
  color: var(--text);
}
/* "Cookie settings" (public/consent.js): a button that reads as one of the links above it. */
.footer-col > .footer-link {
  padding: 6px 0;
  border: 0;
  background: none;
  color: var(--text-2);
  font: inherit;
  text-align: start;
  cursor: pointer;
}
.footer-col > .footer-link:hover {
  color: var(--text);
}
.footer-col > .footer-link[hidden] {
  display: none;
}
.footer-mail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  overflow-wrap: anywhere;
}
.footer-lang {
  width: auto;
  margin-top: 10px;
}
.footer-lang .dropdown-btn {
  height: 40px;
  padding-inline: 12px;
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
}
.footer-lang .dropdown-list {
  inset-inline: 0 auto;
  width: 240px;
}
.footer-bottom {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--divider);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 32px;
  font-size: 14px;
  color: var(--muted);
}
.footer-bottom .fine {
  max-width: 720px;
  font-size: 13px;
}
.fine {
  max-width: 640px;
  font-size: 14px;
  color: var(--muted);
  text-wrap: pretty;
}
@media (max-width: 899px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 20px;
  }
  .footer-brand,
  .footer-col:last-child {
    grid-column: 1 / -1;
  }
  .footer-col:last-child {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 20px;
  }
  .footer-col:last-child .footer-h {
    width: 100%;
    margin-bottom: 0;
  }
  .footer-lang {
    margin-top: 0;
  }
}
.theme-btn {
  width: 44px;
  justify-content: center;
  padding: 0;
}

/* Web app placeholder */
.soon {
  min-height: 70vh;
  max-width: 560px;
  margin-inline: auto;
  padding: 72px var(--gutter) 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.soon h1 {
  font-size: var(--h2);
}

/* Motion. Pop-overs (language menu, dropdowns, mobile menu) fade and slide in; site.js keeps them
   in the page until the closing transition ends. Off for visitors who ask for reduced motion. */
:root {
  interpolate-size: allow-keywords;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}
.lang-list,
.dropdown-list {
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top;
  transition:
    opacity 0.18s ease,
    transform 0.22s var(--ease-out);
}
.dropdown-up .dropdown-list {
  transform: translateY(6px) scale(0.98);
  transform-origin: bottom;
}
.lang-list {
  transform-origin: top right;
}
.mobile-menu {
  opacity: 0;
  transform: translateY(-8px);
  transition:
    opacity 0.18s ease,
    transform 0.22s var(--ease-out);
}
.is-open.lang-list,
.is-open.dropdown-list,
.is-open.mobile-menu {
  opacity: 1;
  transform: none;
}
.mobile-menu.is-open > a {
  animation: menu-link-in 0.32s var(--ease-out) both;
}
.mobile-menu.is-open > a:nth-child(2) {
  animation-delay: 0.03s;
}
.mobile-menu.is-open > a:nth-child(3) {
  animation-delay: 0.06s;
}
.mobile-menu.is-open > a:nth-child(4) {
  animation-delay: 0.09s;
}
.mobile-menu.is-open > a:nth-child(5) {
  animation-delay: 0.12s;
}
@keyframes menu-link-in {
  from {
    opacity: 0;
    transform: translateX(-8px);
  }
}
.icon-btn svg,
.tool-btn svg {
  transition: transform 0.3s var(--ease-out);
}
[data-menu-toggle][aria-expanded='true'] svg {
  transform: rotate(90deg);
}
.theme-flip svg {
  animation: theme-flip 0.45s var(--ease-out);
}
@keyframes theme-flip {
  from {
    transform: rotate(-120deg) scale(0.6);
    opacity: 0;
  }
}
/* Theme switch: colours cross-fade instead of jumping. */
.theme-fade,
.theme-fade *,
.theme-fade *::before,
.theme-fade *::after {
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease !important;
}

/* FAQ answers open and close smoothly where the browser can animate to auto height. */
.faq details::details-content {
  height: 0;
  overflow: clip;
  transition:
    height 0.3s var(--ease-out),
    content-visibility 0.3s allow-discrete;
}
.faq details[open]::details-content {
  height: auto;
}
.faq summary svg {
  transition: transform 0.25s var(--ease-out);
}
.faq summary:hover {
  color: var(--accent-text);
}

/* Pricing: switching between plans and packs brings the cards in one after another. */
.price-grid.is-entering .price-card {
  animation: card-in 0.45s var(--ease-out) both;
}
.price-grid.is-entering .price-card:nth-child(2) {
  animation-delay: 0.06s;
}
.price-grid.is-entering .price-card:nth-child(3) {
  animation-delay: 0.12s;
}
@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}
.pill-toggle button,
.segmented button {
  transition:
    color 0.2s,
    background-color 0.25s var(--ease-out);
}

/* Sections fade up as they scroll in (site.js adds .reveal only when it can show them). */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s ease,
    transform 0.7s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .lang-list,
  .dropdown-list,
  .mobile-menu,
  .reveal {
    transition: none;
    transform: none;
  }
  .mobile-menu.is-open > a {
    animation: none;
  }
  .faq details::details-content {
    transition: none;
  }
  .price-grid.is-entering .price-card,
  .theme-flip svg {
    animation: none;
  }
}

/* How it works: one video per way to use Moji, its three steps beside it (the landing page's
   "How it works" section and the web app's Home and dialog) */
.how {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.how-tabs {
  align-self: flex-start;
  flex-wrap: wrap;
  max-width: 100%;
}
.how-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  gap: 20px;
  align-items: center;
}
.how-body.portrait {
  grid-template-columns: minmax(0, 340px) minmax(220px, 1fr);
}
.how-player {
  border-radius: var(--r-tile);
  overflow: hidden;
  background: var(--bg);
}
.how-player video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: var(--bg);
}
.how-body.portrait .how-player video {
  aspect-ratio: 4 / 5;
}
.how-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.how-step {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border: 0;
  border-radius: var(--r-tile);
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: start;
  cursor: pointer;
  transition: background-color 0.15s;
}
.how-step:hover {
  background: var(--raised);
}
.how-step[aria-current='step'] {
  background: var(--raised);
}
.how-step-number {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--raised);
  color: var(--text-2);
  font-weight: 700;
  font-size: 14px;
  transition:
    background-color 0.15s,
    color 0.15s;
}
.how-step[aria-current='step'] .how-step-number {
  background: var(--accent);
  color: var(--on-accent);
}
.how-step-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.how-step-text span {
  color: var(--text-2);
  font-size: 14px;
}
@media (max-width: 759px) {
  .how-body,
  .how-body.portrait {
    grid-template-columns: minmax(0, 1fr);
  }
  .how-body.portrait .how-player {
    width: min(100%, 340px);
    justify-self: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  .how-step,
  .how-step-number {
    transition: none;
  }
}

.how-lead {
  max-width: 640px;
  color: var(--text-2);
}

/* Three tabs on a phone: equal columns, labels wrap instead of the pill breaking into a stack */
@media (max-width: 559px) {
  .how-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-self: stretch;
    border-radius: var(--r-tile);
  }
  .how-tabs button {
    height: auto;
    min-height: 44px;
    padding: 6px 8px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.2;
  }
}

/* 404: the searching mascot, the code as a big accent numeral, the message and the way back. */
.not-found-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}
.not-found {
  flex: 1;
  display: flex;
  align-items: center;
}
.not-found-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding-block: 48px 96px;
  text-align: center;
}
.not-found-inner h1 {
  max-width: 14em;
  font-size: var(--h2);
}
.not-found-inner .lead {
  max-width: 34em;
  color: var(--text-2);
}
.not-found-mascot {
  width: 220px;
  height: 220px;
}
.not-found-code {
  margin-top: -28px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 96px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--accent-text);
}
.not-found-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}
@media (max-width: 559px) {
  .not-found-mascot {
    width: 160px;
    height: 160px;
  }
  .not-found-code {
    margin-top: -20px;
    font-size: 72px;
  }
  .not-found-actions {
    flex-direction: column;
    align-self: stretch;
  }
}

/* Topic pages (src/topic.html) */
/* Their headlines are longer than the landing page's: a step smaller, so they keep to three or
   four lines beside the hero scene. */
.topic-hero h1 {
  font-size: min(var(--h1), 56px);
}
.topic-devices {
  width: 100%;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.topic-devices > img {
  width: 100%;
  height: auto;
}
.topic-devices .store-badges {
  justify-content: center;
}
.topic-more {
  width: 100%;
  max-width: 1080px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.topic-more ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 12px;
}
.topic-link {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  border-radius: var(--r-card);
  background: var(--raised);
  color: var(--text);
  text-decoration: none;
  transition: transform 0.15s ease;
}
.topic-link > span {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.topic-link > span > span {
  color: var(--text-2);
  font-size: 15px;
}
.topic-link svg {
  flex-shrink: 0;
  color: var(--accent-text);
}
.topic-link:hover,
.topic-link:focus-visible {
  transform: translateY(-2px);
}
@media (prefers-reduced-motion: reduce) {
  .topic-link {
    transition: none;
  }
  .topic-link:hover,
  .topic-link:focus-visible {
    transform: none;
  }
}
