/* Tolk Translate landing. No framework, no build step. */

@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('/assets/fonts/bricolage-grotesque-latin-wght.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #ffffff;
  --paper-2: #f5f5f7;
  --card: #ffffff;
  --ink: #18181f;
  --ink-2: #5c5c68;
  --line: #e7e7ec;
  --violet: #6d4cff;
  --violet-hover: #5936f0;
  --violet-ink: #ffffff;
  --cyan: #2ec5ff;
  /* Highlighter: the word you're translating, like a marker on paper. */
  --mark: #ffe15a;
  --mark-ink: #18181f;
  --select: #ffefa6;
  /* One dark band for rhythm. */
  --band: #18181f;
  --band-ink: #f5f5f7;
  --band-ink-2: #a9a9b4;
  --band-line: #34343e;
  --band-card: #22222b;
  --shadow: 0 1px 2px rgba(24, 24, 31, 0.06), 0 22px 50px -26px rgba(24, 24, 31, 0.3);
  --ui: 'Bricolage Grotesque', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --read: Charter, 'Bitstream Charter', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #131316;
    --paper-2: #1a1a1f;
    --card: #202026;
    --ink: #f2f2f5;
    --ink-2: #a6a6b1;
    --line: #2d2d35;
    --violet: #a996ff;
    --violet-hover: #bdaeff;
    --violet-ink: #131316;
    --mark: #ecca4c;
    --mark-ink: #131316;
    --select: #5b4b14;
    --band: #211c38;
    --band-ink: #f2f2f5;
    --band-ink-2: #b4afcc;
    --band-line: #3a3456;
    --band-card: #2a2446;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 22px 50px -26px rgba(0, 0, 0, 0.8);
    color-scheme: dark;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--ui);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img,
svg,
picture {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-underline-offset: 0.2em;
}
button,
select {
  font: inherit;
  color: inherit;
}
kbd {
  font: 600 0.82em/1 var(--ui);
  padding: 0.18em 0.42em;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--card);
  white-space: nowrap;
}
:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
  border-radius: 6px;
}
::selection {
  background: var(--select);
}
.sprite {
  position: absolute;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 14px;
  border-radius: 8px;
}
.skip:focus {
  top: 12px;
}

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

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 650;
  font-size: 17px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: var(--violet);
  color: var(--violet-ink);
  box-shadow: 0 8px 22px -10px color-mix(in srgb, var(--violet) 80%, transparent);
}
.btn-primary:hover {
  background: var(--violet-hover);
}
.btn-ghost {
  background: transparent;
  border-color: var(--line);
}
.btn-ghost:hover,
.btn-quiet:hover {
  background: var(--paper-2);
}
.btn-quiet {
  background: transparent;
  min-height: 40px;
  padding: 0 14px;
  font-size: 15px;
  font-weight: 600;
}
.btn-small {
  min-height: 42px;
  padding: 0 16px;
  font-size: 15px;
  border-radius: 12px;
}
.chrome {
  width: 22px;
  height: 22px;
  flex: none;
}
.btn-small .chrome {
  width: 18px;
  height: 18px;
}

/* ------------------------------------------------------------------ header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.header-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 720;
  font-size: 18px;
  letter-spacing: -0.01em;
  text-decoration: none;
  margin-right: auto;
}
.brand-mark {
  width: 30px;
  height: 30px;
}
.nav {
  display: none;
  gap: 4px;
  margin-right: 8px;
}
.nav a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 550;
  color: var(--ink-2);
  padding: 8px 12px;
  border-radius: 10px;
}
.nav a:hover {
  color: var(--ink);
  background: var(--paper-2);
}
.site-header .js-translate-page {
  display: none;
}
@media (max-width: 420px) {
  .brand {
    font-size: 16px;
    gap: 8px;
  }
  .brand-mark {
    width: 26px;
    height: 26px;
  }
  .btn-small {
    padding: 0 12px;
    gap: 6px;
    font-size: 14px;
  }
}
.brand span {
  white-space: nowrap;
}
@media (min-width: 640px) {
  .site-header .js-translate-page {
    display: inline-flex;
  }
}
@media (min-width: 980px) {
  .nav {
    display: flex;
  }
}

/* ------------------------------------------------------------------ type */
h1,
.h2,
h3 {
  margin: 0;
  font-family: var(--ui);
  color: var(--ink);
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.4rem, 1.4rem + 3.6vw, 4.25rem);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 780;
  max-width: 15ch;
}
.h2 {
  font-size: clamp(1.9rem, 1.3rem + 2.2vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 740;
  max-width: 20ch;
}
h3 {
  font-size: 1.2rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-weight: 680;
}
.lead {
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 34em;
  margin: 24px 0 0;
  text-wrap: pretty;
}
.sub {
  color: var(--ink-2);
  font-size: 1.08rem;
  max-width: 36em;
  margin: 18px 0 0;
  text-wrap: pretty;
}
.fine {
  font-size: 14px;
  color: var(--ink-2);
  margin: 14px 0 0;
}

/* ------------------------------------------------------------------ hero */
.hero {
  padding: clamp(36px, 6vw, 88px) 0 clamp(24px, 3vw, 40px);
}
.hero-grid {
  display: grid;
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}
@media (min-width: 980px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  }
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* The demo: a page from "somewhere on the web", in a reading serif. */
.demo {
  position: relative;
  margin: 0;
}
.browser {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 44px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
}
.dots {
  display: flex;
  gap: 6px;
}
.dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line);
}
.url {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  color: var(--ink-2);
  background: var(--card);
  border-radius: 8px;
  padding: 4px 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.article {
  padding: clamp(22px, 4vw, 40px) clamp(20px, 4vw, 44px) clamp(28px, 4vw, 44px);
  font-family: var(--read);
  cursor: text;
}
.article-title {
  font-family: var(--read);
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  line-height: 1.15;
  font-weight: 700;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}
.article-text {
  font-size: clamp(1.1rem, 1rem + 0.35vw, 1.28rem);
  line-height: 1.7;
  margin: 0;
}
.article-text + .article-text {
  margin-top: 14px;
}
.article-text.muted {
  color: var(--ink-2);
}
.demo-hint {
  margin-top: 16px;
  font-size: 15px;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  gap: 8px;
}
.demo-hint::before {
  content: '';
  width: 14px;
  height: 14px;
  flex: none;
  background: var(--violet);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
}
.demo-live {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

/* Highlight on the word being translated, with a one-off sparkle. */
.hl {
  /* A marker stroke, slightly shorter than the line box, like ink on paper. */
  background: linear-gradient(176deg, transparent 10%, var(--mark) 10%, var(--mark) 90%, transparent 90%);
  color: var(--mark-ink);
  border-radius: 3px;
  padding: 0 2px;
  margin: 0 -2px;
  position: relative;
}
.hl::after {
  content: '';
  position: absolute;
  right: -7px;
  top: -9px;
  width: 12px;
  height: 12px;
  background: var(--violet);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  animation: spark 0.6s ease-out both;
}
@keyframes spark {
  from {
    transform: scale(0) rotate(-90deg);
    opacity: 0;
  }
  60% {
    transform: scale(1.3) rotate(10deg);
    opacity: 1;
  }
}

.cursor {
  position: absolute;
  z-index: 6;
  width: 22px;
  height: 22px;
  pointer-events: none;
  transition: transform 0.9s cubic-bezier(0.45, 0, 0.2, 1), opacity 0.3s;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25));
}
.cursor.click::after {
  content: '';
  position: absolute;
  left: -10px;
  top: -10px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--violet);
  animation: ping 0.5s ease-out 2;
}
@keyframes ping {
  from {
    transform: scale(0.3);
    opacity: 1;
  }
  to {
    transform: scale(1.4);
    opacity: 0;
  }
}

/* ------------------------------------------------------------------ bubble (mirrors the extension) */
.gb {
  position: absolute;
  z-index: 5;
  width: min(360px, calc(100% - 16px));
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(20, 16, 60, 0.2), 0 2px 8px rgba(20, 16, 60, 0.08);
  font: 400 14px/1.4 var(--ui);
  animation: pop 0.16s ease-out;
  overflow: hidden;
}
/* Transform only: text stays fully opaque, so it is readable (and measurable) from the first frame. */
@keyframes pop {
  from {
    transform: translateY(6px) scale(0.96);
  }
}
.gb-head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 8px 7px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.gb-head .mini-logo {
  width: 18px;
  height: 18px;
}
.gb-langs {
  color: var(--ink-2);
  flex: 1;
}
.gb-langs b {
  color: var(--ink);
  font-weight: 650;
}
.gb-btn {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  padding: 0;
}
.gb-btn:hover {
  background: var(--paper-2);
  color: var(--ink);
}
.gb-btn svg {
  width: 17px;
  height: 17px;
}
.gb-body {
  padding: 10px 12px 12px;
}
.gb-src {
  font-size: 13px;
  color: var(--ink-2);
}
.gb-ipa {
  font-size: 12px;
  color: var(--ink-2);
}
.gb-row {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  margin-top: 8px;
}
.gb-tr {
  flex: 1;
  font-size: 17px;
  line-height: 1.4;
}
.gb-dict {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
}
.gb-pos {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--violet);
}
.gb-dict ul {
  list-style: none;
  margin: 2px 0 0;
  padding: 0;
  display: grid;
  gap: 2px;
}
.gb-term {
  font-weight: 650;
  margin-right: 6px;
}
.gb-rev {
  color: var(--ink-2);
}

/* ------------------------------------------------------------------ sections */
.section {
  padding: clamp(64px, 9vw, 120px) 0;
}
.section-tint {
  background: var(--paper-2);
}
.split {
  display: grid;
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
}
.split > *,
.hero-grid > * {
  min-width: 0;
}
.mini-panel {
  flex-wrap: wrap;
  row-gap: 6px;
  border-radius: 18px;
}
@media (min-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .split-rev > :first-child {
    order: 2;
  }
}

/* Features: three primary ways, then a quieter list. */
.features {
  margin-top: clamp(36px, 5vw, 56px);
  display: grid;
  gap: 36px 40px;
}
@media (min-width: 820px) {
  .features {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.feature {
  padding-top: 22px;
  border-top: 2px solid var(--ink);
}
.feature p {
  color: var(--ink-2);
  margin: 10px 0 0;
}
.ico {
  width: 30px;
  height: 30px;
  color: var(--violet);
  margin-bottom: 16px;
}
.feature-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 28px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 18px 40px;
}
@media (min-width: 820px) {
  .feature-list {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.feature-list li,
.facts li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  color: var(--ink-2);
}
.feature-list strong {
  color: var(--ink);
  font-weight: 650;
}
.ico-s {
  width: 22px;
  height: 22px;
  flex: none;
  margin-top: 2px;
  color: var(--ink-2);
}
.facts .ico-s {
  color: var(--violet);
}

/* Steps: a real sequence, so numbers carry meaning. */
.steps {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  gap: 20px;
}
.steps li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  color: var(--ink-2);
}
.steps strong {
  color: var(--ink);
  font-weight: 650;
}
.step-n {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 720;
  font-size: 15px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--ink);
}

/* Mini page with the extension's page panel. */
.mini {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 18px;
}
.mini-panel,
.page-panel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 5px 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  box-shadow: 0 6px 24px rgba(20, 16, 60, 0.12);
  font-size: 13px;
  max-width: 100%;
}
.mini-logo {
  width: 18px;
  height: 18px;
  flex: none;
}
.mini-langs,
.page-panel-from {
  color: var(--ink-2);
  white-space: nowrap;
}
.seg {
  display: inline-flex;
  background: var(--paper-2);
  border-radius: 999px;
  padding: 2px;
}
.seg button {
  border: 0;
  background: transparent;
  color: var(--ink-2);
  font-weight: 650;
  font-size: 12.5px;
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
}
.seg button[aria-pressed='true'] {
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.14);
}
.mini-page {
  font-family: var(--read);
  padding: 22px 8px 6px;
  transition: opacity 0.18s ease;
}
.mini-page.is-swapping {
  opacity: 0;
}
.mini-title {
  font-family: var(--read);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 10px;
}
.mini-page p {
  margin: 0 0 12px;
  font-size: 1.1rem;
  line-height: 1.65;
}
.mini-page a {
  color: var(--violet);
}

.shot img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

/* Compare: five steps against two. */
.compare {
  margin-top: clamp(32px, 5vw, 52px);
  display: grid;
  gap: 20px;
}
@media (min-width: 820px) {
  .compare {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}
.compare-col {
  border-radius: 18px;
  padding: 28px;
  border: 1px dashed color-mix(in srgb, var(--ink-2) 45%, transparent);
}
.compare-tolk {
  border: 2px solid var(--violet);
  background: var(--card);
}
.flow {
  list-style: none;
  counter-reset: flow;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.flow li {
  counter-increment: flow;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.08rem;
}
.flow li::before {
  content: counter(flow);
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 720;
  border: 1px solid var(--line);
  color: var(--ink-2);
}
.flow-long li {
  color: var(--ink-2);
}
.compare-tolk .flow li::before {
  background: var(--violet);
  border-color: var(--violet);
  color: var(--violet-ink);
}
.compare-note {
  margin: 20px 0 0;
  color: var(--ink-2);
}

/* Speed bars */
.bars {
  margin: 0;
  display: grid;
  gap: 14px;
}
.bar-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 14px;
  align-items: center;
}
.bar-label {
  font-weight: 650;
}
.bar-value {
  font-weight: 720;
  font-variant-numeric: tabular-nums;
}
.bar {
  grid-column: 1 / -1;
  height: 14px;
  border-radius: 999px;
  background: var(--paper-2);
  overflow: hidden;
}
.section-tint .bar {
  background: var(--card);
}
.bar i {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: inherit;
  background: var(--mark);
}
.bar-tolk i {
  /* 163 KB of 2.74 MB */
  width: max(5.7%, 10px);
}
.bar-row-other .bar i {
  background: color-mix(in srgb, var(--ink-2) 55%, transparent);
}
.bar-row-other .bar-label,
.bar-row-other .bar-value {
  color: var(--ink-2);
}
.facts {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

/* Privacy */
.privacy {
  margin: clamp(32px, 5vw, 48px) 0 0;
  display: grid;
  gap: 28px 40px;
}
@media (min-width: 720px) {
  .privacy {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1040px) {
  .privacy {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.privacy dt {
  font-weight: 700;
  font-size: 1.15rem;
  padding-top: 18px;
  border-top: 2px solid var(--ink);
}
.privacy dd {
  margin: 8px 0 0;
  color: var(--ink-2);
}
#privacy .fine {
  margin-top: 32px;
}

/* Languages marquee */
.marquee {
  margin-top: 40px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 12px;
  width: max-content;
  animation: marquee 60s linear infinite;
}
.marquee:hover .marquee-track {
  animation-play-state: paused;
}
.marquee-track li {
  font-size: clamp(1.2rem, 1rem + 1vw, 1.7rem);
  font-weight: 600;
  padding: 10px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  white-space: nowrap;
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* FAQ */
.faq-wrap {
  display: grid;
  gap: 32px;
}
@media (min-width: 900px) {
  .faq-wrap {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    align-items: start;
  }
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq details:first-child {
  border-top: 1px solid var(--line);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  font-weight: 650;
  font-size: 1.1rem;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '';
  flex: none;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--ink-2);
  border-bottom: 2px solid var(--ink-2);
  transform: rotate(45deg) translate(-3px, -3px);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after {
  transform: rotate(225deg) translate(-3px, -3px);
}
.faq details p {
  margin: 0 0 22px;
  color: var(--ink-2);
  max-width: 62ch;
}

/* Final CTA */
.final {
  padding: clamp(72px, 10vw, 140px) 0;
  background: var(--paper-2);
  text-align: center;
}
.final-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.final .h2 {
  max-width: 16ch;
  margin-bottom: 32px;
  font-size: clamp(2.2rem, 1.4rem + 3vw, 3.8rem);
}
.final-star {
  width: 44px;
  height: 44px;
  margin-bottom: 24px;
  fill: var(--violet);
}

/* Footer */
.site-footer {
  padding: 40px 0 48px;
  border-top: 1px solid var(--line);
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}
.footer-row .brand {
  margin-right: 0;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  flex: 1;
}
.footer-nav a {
  color: var(--ink-2);
  font-size: 15px;
  text-decoration: none;
}
.footer-nav a:hover {
  color: var(--ink);
  text-decoration: underline;
}
.site-footer .fine {
  margin: 0;
  width: 100%;
}

/* Page panel for "Translate this page" */
.page-panel {
  position: fixed;
  z-index: 50;
  top: 80px;
  right: 16px;
  animation: pop 0.16s ease-out;
}
.page-panel[hidden] {
  display: none;
}
.page-panel-select {
  border: 0;
  background: transparent;
  font-weight: 650;
  font-size: 13px;
  padding: 4px 2px;
  border-radius: 8px;
  cursor: pointer;
}
.panel-close {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  padding: 0;
}
.panel-close svg {
  width: 15px;
  height: 15px;
}
.panel-close:hover {
  background: var(--paper-2);
  color: var(--ink);
}
@media (max-width: 520px) {
  .page-panel {
    left: 8px;
    right: 8px;
    top: auto;
    bottom: 12px;
    justify-content: space-between;
  }
}
[data-t].is-swapping {
  opacity: 0;
}
[data-t] {
  transition: opacity 0.18s ease;
}

/* Long German compound words in narrow phones */
.article-text,
.mini-page p {
  overflow-wrap: break-word;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .marquee-track {
    animation: none;
    flex-wrap: wrap;
    width: auto;
    justify-content: center;
  }
  .marquee {
    -webkit-mask-image: none;
    mask-image: none;
  }
}

/* ------------------------------------------------------------------ dark band (one per page) */
.section-band {
  background: var(--band);
  color: var(--band-ink);
}
.section-band .h2,
.section-band h3 {
  color: var(--band-ink);
}
.section-band .compare-col {
  border-color: var(--band-line);
}
.section-band .flow-long li,
.section-band .compare-note {
  color: var(--band-ink-2);
}
.section-band .flow li::before {
  border-color: var(--band-line);
  color: var(--band-ink-2);
}
.section-band .compare-tolk {
  background: var(--band-card);
  border-color: var(--violet);
}
.section-band .compare-tolk .flow li::before {
  background: var(--violet);
  border-color: var(--violet);
  color: var(--violet-ink);
}
.section-band :focus-visible {
  outline-color: var(--band-ink);
}
