/* Quietfall website – one stylesheet, system fonts, no external requests. */

:root {
  --bg: #0a0d1a;
  --bg-deep: #070914;
  --surface: #121731;
  --surface-2: #1a2042;
  --border: #2a3160;
  --border-soft: rgb(143 155 214 / 0.16);
  --text: #dbdbdb;
  --text-muted: #a9adbf; /* 8.7:1 on --bg */
  --accent: #8f9bd6;     /* 7.2:1 on --bg */
  --accent-strong: #b3bcf0;
  --heading: #f4f2ec;
  --focus: #ffd98a;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Hiragino Sans",
    "Apple SD Gothic Neo", "PingFang TC", "Noto Sans", sans-serif;
  --font-display: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;

  --text-hero: clamp(2.5rem, 1.4rem + 4.6vw, 4.6rem);
  --text-h2: clamp(1.9rem, 1.3rem + 2.4vw, 3rem);
  --space-section: clamp(4.5rem, 3rem + 6vw, 8.5rem);

  --radius: 14px;
  --radius-lg: 26px;
  --max: 46rem;
  --max-wide: 72rem;

  --duration-normal: 0.3s;
  --duration-slow: 1.6s;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

:lang(ja) { --font-display: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif; }
:lang(ko) { --font-display: "AppleMyungjo", "Nanum Myeongjo", "Noto Serif KR", serif; }
:lang(zh-Hant) { --font-display: "Songti TC", "PMingLiU", "Noto Serif TC", serif; }

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  background: var(--accent);
  color: var(--bg);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  z-index: 10;
}

.skip-link:focus {
  left: 0.5rem;
}

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

a {
  color: var(--accent-strong);
  text-underline-offset: 0.18em;
}

a:hover {
  color: #fff;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header and navigation */

.site-header {
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  font-weight: 700;
  font-size: 1.2rem;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.brand svg {
  width: 1.6rem;
  height: 1.6rem;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.25rem 0;
}

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

/* Typography */

main {
  padding: 2rem 0 3rem;
}

h1,
h2,
h3 {
  line-height: 1.25;
  color: #fff;
}

h1 {
  font-size: clamp(1.9rem, 6vw, 2.8rem);
  margin: 0.5rem 0 1rem;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 1.4rem;
  margin: 2.5rem 0 0.75rem;
}

h3 {
  font-size: 1.1rem;
  margin: 1.75rem 0 0.5rem;
}

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

li + li {
  margin-top: 0.35rem;
}

.lead {
  font-size: 1.2rem;
  color: var(--text);
}

.muted,
.small {
  color: var(--text-muted);
}

.small {
  font-size: 0.9rem;
}

.eyebrow {
  display: inline-block;
  margin: 0;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Buttons and shared pieces */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.75rem 0 0.75rem;
}

.button {
  display: inline-block;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  border: 1.5px solid var(--accent);
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: transform var(--duration-normal) var(--ease-out-expo),
    box-shadow var(--duration-normal) var(--ease-out-expo), background-color 0.2s, color 0.2s;
}

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

.button:active {
  transform: translateY(0) scale(0.98);
}

.button-primary {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 0 0 0 rgb(143 155 214 / 0), 0 10px 30px -10px rgb(143 155 214 / 0.6);
}

.button-primary:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: var(--bg);
  box-shadow: 0 0 0 6px rgb(143 155 214 / 0.14), 0 14px 36px -10px rgb(143 155 214 / 0.75);
}

.button-secondary,
.button-ghost {
  color: var(--accent-strong);
  border-color: var(--border);
  background: rgb(18 23 49 / 0.55);
}

.button-secondary:hover,
.button-ghost:hover {
  color: #fff;
  border-color: var(--accent);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

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

@media (min-width: 40rem) {
  .price-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.price-grid h3 {
  margin-top: 0;
}

.price {
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.5rem;
}

.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  position: relative;
  padding-left: 1.5rem;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.62em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
}

.no-list,
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  list-style: none;
}

.no-list li,
.chips li {
  margin: 0;
  padding: 0.3rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 0.92rem;
}

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

.landing {
  background:
    radial-gradient(60rem 40rem at 85% -10%, rgb(143 155 214 / 0.16), transparent 60%),
    radial-gradient(50rem 40rem at -10% 40%, rgb(70 60 150 / 0.14), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  background-attachment: fixed;
}

/* Starfield: two layers of tiny dots, one of them twinkling. Pure CSS, no images. */
.landing::before,
.landing::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-repeat: repeat;
}

.landing::before {
  background-image:
    radial-gradient(1px 1px at 20px 30px, rgb(255 255 255 / 0.55), transparent 60%),
    radial-gradient(1px 1px at 140px 90px, rgb(255 255 255 / 0.4), transparent 60%),
    radial-gradient(1.5px 1.5px at 260px 200px, rgb(220 225 255 / 0.5), transparent 60%),
    radial-gradient(1px 1px at 330px 40px, rgb(255 255 255 / 0.35), transparent 60%),
    radial-gradient(1px 1px at 80px 260px, rgb(255 255 255 / 0.3), transparent 60%);
  background-size: 380px 300px;
}

.landing::after {
  background-image:
    radial-gradient(1.5px 1.5px at 60px 120px, rgb(220 225 255 / 0.7), transparent 60%),
    radial-gradient(1px 1px at 410px 260px, rgb(255 255 255 / 0.6), transparent 60%),
    radial-gradient(2px 2px at 300px 60px, rgb(179 188 240 / 0.6), transparent 60%);
  background-size: 520px 420px;
  animation: twinkle 7s ease-in-out infinite alternate;
}

@keyframes twinkle {
  from { opacity: 0.25; }
  to { opacity: 1; }
}

.landing .wrap {
  max-width: var(--max-wide);
  padding: 0 clamp(1rem, 4vw, 2rem);
}

.landing .site-header {
  border-bottom-color: var(--border-soft);
  position: relative;
  z-index: 5;
}

.landing .site-header .wrap {
  flex-wrap: nowrap;
}

.landing .site-nav {
  margin-left: auto;
}

@media (max-width: 40rem) {
  .landing .site-nav {
    display: none;
  }
}

/* Language picker: native <details>, no script. */
.lang-picker {
  position: relative;
}

.lang-picker summary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  list-style: none;
  cursor: pointer;
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  transition: border-color 0.2s, background-color 0.2s;
}

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

.lang-picker summary:hover,
.lang-picker[open] summary {
  border-color: var(--accent);
  background: var(--surface);
}

.lang-picker summary svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
}

.lang-picker ul {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  min-width: 11rem;
  margin: 0;
  padding: 0.4rem;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 24px 48px -16px rgb(0 0 0 / 0.7);
  animation: drop-in 0.25s var(--ease-out-expo);
}

.lang-picker li + li {
  margin-top: 0;
}

.lang-picker a {
  display: block;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
}

.lang-picker a:hover {
  background: var(--surface-2);
}

.lang-picker a[aria-current="page"] {
  color: var(--accent-strong);
  font-weight: 600;
}

@keyframes drop-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.landing main {
  padding: 0;
}

.landing h1,
.landing h2 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--heading);
  letter-spacing: -0.015em;
}

.landing h3 {
  color: var(--heading);
  font-weight: 600;
}

/* Hero */

.hero {
  padding: clamp(2.5rem, 2rem + 4vw, 6rem) 0 clamp(2rem, 1.5rem + 3vw, 4rem);
}

.hero-grid {
  display: grid;
  gap: clamp(2.5rem, 4vw, 4rem);
  align-items: center;
}

@media (min-width: 56rem) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.hero h1 {
  font-size: var(--text-hero);
  line-height: 1.04;
  margin: 1rem 0 1.4rem;
  text-wrap: balance;
}

:lang(ja) .hero h1,
:lang(ko) .hero h1,
:lang(zh-Hant) .hero h1 {
  line-height: 1.25;
  font-size: clamp(2.1rem, 1.3rem + 3.6vw, 3.8rem);
}

.hero .lead {
  max-width: 34rem;
  font-size: clamp(1.08rem, 1rem + 0.4vw, 1.25rem);
  color: var(--text);
}

.hero-copy > * {
  animation: rise 1.2s var(--ease-out-expo) both;
}

.hero-copy > :nth-child(2) { animation-delay: 0.08s; }
.hero-copy > :nth-child(3) { animation-delay: 0.16s; }
.hero-copy > :nth-child(4) { animation-delay: 0.24s; }
.hero-copy > :nth-child(5) { animation-delay: 0.32s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero .no-list {
  margin-top: clamp(2.5rem, 5vw, 4.5rem);
  justify-content: center;
}

.hero .no-list li {
  background: rgb(18 23 49 / 0.6);
  border-color: var(--border-soft);
  color: var(--text-muted);
}

.hero .no-list li::before {
  content: "×";
  margin-right: 0.4rem;
  color: var(--accent);
}

/* Hero visual: the app-icon moon behind a phone that shows tonight's mix. */

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: min(30rem, 120vw);
  animation: rise 1.6s 0.2s var(--ease-out-expo) both;
}

.moon {
  position: absolute;
  top: -1rem;
  right: -2%;
  width: clamp(8rem, 18vw, 12rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 34%, #b9c2ef 0%, var(--accent) 55%, #6f7bb8 100%);
  box-shadow: 0 0 80px 10px rgb(143 155 214 / 0.35), 0 0 220px 60px rgb(143 155 214 / 0.14);
  animation: drift 14s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: translateY(0); }
  to { transform: translateY(14px); }
}

.phone {
  position: relative;
  width: min(17.5rem, 62vw);
  aspect-ratio: 9 / 18.5;
  padding: 0.6rem;
  border-radius: 2.6rem;
  background: linear-gradient(160deg, #2b3158, #11152b 40%, #0c0f1f);
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 0.08),
    0 40px 80px -30px rgb(0 0 0 / 0.9),
    0 0 0 1px rgb(0 0 0 / 0.6);
  transform: rotate(-4deg) translateX(-6%);
}

.phone-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 2.6rem 1.1rem 1.2rem;
  border-radius: 2.1rem;
  overflow: hidden;
  background: radial-gradient(18rem 14rem at 70% 0%, rgb(143 155 214 / 0.18), transparent 70%), var(--bg);
}

.phone-screen::before {
  content: "";
  position: absolute;
  top: 0.7rem;
  left: 50%;
  width: 5.2rem;
  height: 1.35rem;
  border-radius: 999px;
  background: #000;
  transform: translateX(-50%);
}

.phone-kicker {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--heading);
}

.mock-layers {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mock-layers li {
  display: grid;
  gap: 0.45rem;
  margin: 0 0 0.6rem;
  padding: 0.7rem 0.8rem;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  font-size: 0.82rem;
  color: var(--text);
}

.meter {
  position: relative;
  display: block;
  height: 5px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
}

.meter::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #6f7bb8, var(--accent-strong));
  transform-origin: left;
  animation: breathe 6s ease-in-out infinite alternate;
}

.meter-70::after { transform: scaleX(0.7); }
.meter-55::after { transform: scaleX(0.55); animation-delay: -2s; }
.meter-35::after { transform: scaleX(0.35); animation-delay: -4s; }

@keyframes breathe {
  50% { opacity: 0.7; }
}

.mock-fade {
  margin-top: auto;
}

.mock-fade svg {
  display: block;
  width: 100%;
  height: 4rem;
  overflow: visible;
}

.mock-fade p {
  display: flex;
  justify-content: space-between;
  margin: 0.4rem 0 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.curve-area { fill: rgb(143 155 214 / 0.12); }

.curve-line {
  fill: none;
  stroke: var(--accent-strong);
  stroke-width: 2.5;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.curve-dot {
  fill: #fff;
  filter: drop-shadow(0 0 6px var(--accent-strong));
}

.mock-play {
  align-self: center;
  width: 3.2rem;
  height: 3.2rem;
  margin-top: 1rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 30px rgb(143 155 214 / 0.5);
  position: relative;
}

.mock-play::before,
.mock-play::after {
  content: "";
  position: absolute;
  top: 34%;
  width: 4px;
  height: 32%;
  border-radius: 2px;
  background: var(--bg);
}

.mock-play::before { left: 40%; }
.mock-play::after { right: 40%; }

.button-store {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
}

.apple-logo {
  width: 1rem;
  height: 1.15rem;
  fill: currentColor;
  margin-top: -0.15rem;
}

.contact {
  margin-top: 1.5rem;
  color: var(--text-muted);
}

/* Sections */

.section {
  padding: var(--space-section) 0 0;
}

.section h2 {
  font-size: var(--text-h2);
  line-height: 1.1;
  margin: 0.8rem 0 1rem;
  max-width: 22ch;
  text-wrap: balance;
}

:lang(ja) .section h2,
:lang(ko) .section h2,
:lang(zh-Hant) .section h2 {
  line-height: 1.3;
  max-width: none;
}

.section-lead {
  max-width: 40rem;
  font-size: 1.12rem;
  color: var(--text-muted);
}

/* Bento grid of features. The fade, the feature nobody else has, gets the big tile. */

.bento {
  display: grid;
  gap: 1rem;
  margin-top: 2.5rem;
}

@media (min-width: 44rem) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile-fade,
  .tile-wide { grid-column: 1 / -1; }
}

@media (min-width: 64rem) {
  .bento { grid-template-columns: repeat(6, 1fr); }
  .tile { grid-column: span 2; }
  .tile-fade { grid-column: span 4; grid-row: span 2; }
  .tile-wide { grid-column: span 4; }
}

.tile {
  position: relative;
  padding: clamp(1.4rem, 1rem + 1.4vw, 2rem);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgb(26 32 66 / 0.75), rgb(18 23 49 / 0.75));
  border: 1px solid var(--border-soft);
  overflow: hidden;
  transition: transform 0.5s var(--ease-out-expo), border-color 0.3s;
}

.tile:hover {
  transform: translateY(-3px);
  border-color: rgb(143 155 214 / 0.4);
}

.tile h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.tile p {
  margin: 0;
  color: var(--text-muted);
}

.tile-icon {
  width: 1.9rem;
  height: 1.9rem;
  margin-bottom: 1.1rem;
  fill: none;
  stroke: var(--accent-strong);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tile-fade {
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(40rem 20rem at 100% 0%, rgb(143 155 214 / 0.2), transparent 60%),
    linear-gradient(180deg, rgb(26 32 66 / 0.85), rgb(18 23 49 / 0.85));
}

.tile-fade h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.2rem);
  line-height: 1.15;
}

.tile-fade p {
  max-width: 36rem;
  font-size: 1.05rem;
}

.fade-chart {
  width: 100%;
  height: auto;
  margin-top: auto;
  padding-top: 2rem;
  overflow: visible;
}

.fade-chart .grid {
  stroke: var(--border);
  stroke-dasharray: 2 6;
}

.fade-chart path {
  fill: none;
  stroke-linecap: round;
}

.fade-chart .curve-floor {
  stroke: var(--accent-strong);
  stroke-width: 3;
  filter: drop-shadow(0 0 8px rgb(143 155 214 / 0.6));
  animation: reveal var(--duration-slow) 0.3s var(--ease-out-expo) both;
}

.fade-chart .curve-silence {
  stroke: var(--accent);
  stroke-width: 2;
  stroke-dasharray: 5 7;
  opacity: 0.6;
  animation: reveal var(--duration-slow) 0.5s var(--ease-out-expo) both;
}

.fade-chart text {
  fill: var(--accent-strong);
  font-size: 15px;
  font-family: var(--font-sans);
}

.fade-chart text.dim {
  fill: var(--text-muted);
}

@keyframes reveal {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}

.tile-wide .chips {
  margin: 1.2rem 0 0;
}

/* Pricing */

#pricing .price-grid {
  margin-top: 2.5rem;
  gap: 1.25rem;
}

#pricing .card {
  position: relative;
  padding: clamp(1.5rem, 1rem + 1.6vw, 2.2rem);
  border-radius: var(--radius-lg);
  background: rgb(18 23 49 / 0.7);
  border-color: var(--border-soft);
}

#pricing .card-featured {
  background:
    radial-gradient(30rem 16rem at 100% 0%, rgb(143 155 214 / 0.22), transparent 60%),
    var(--surface);
  border-color: rgb(143 155 214 / 0.5);
  box-shadow: 0 30px 80px -40px rgb(143 155 214 / 0.55);
}

#pricing .price {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.4rem, 2rem + 1.5vw, 3.2rem);
  color: var(--heading);
  margin: 0.25rem 0 0.75rem;
}

.badge {
  position: absolute;
  top: 1.4rem;
  right: 1.4rem;
  margin: 0;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--bg);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Privacy band */

.privacy-band .wrap {
  position: relative;
  padding-top: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.privacy-band h2 {
  font-size: clamp(2.4rem, 1.4rem + 4.2vw, 4.6rem);
  max-width: none;
}

/* Closing call to action */

.get {
  padding-bottom: var(--space-section);
  text-align: center;
}

.get h2,
.get .section-lead {
  margin-left: auto;
  margin-right: auto;
}

.actions-center {
  justify-content: center;
}

.landing .site-footer {
  border-top-color: var(--border-soft);
}

.landing .site-footer p {
  max-width: 48rem;
}

/* FAQ */

details:not(.lang-picker) {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.25rem 1rem;
  margin: 0 0 0.75rem;
}

details:not(.lang-picker) summary {
  cursor: pointer;
  font-weight: 600;
  padding: 0.75rem 0;
  color: #fff;
}

details[open]:not(.lang-picker) summary {
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.75rem;
}

/* Legal pages */

.legal h2 {
  font-size: 1.25rem;
}

address {
  font-style: normal;
}

.placeholder {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
  background: var(--surface-2);
  padding: 0.05rem 0.35rem;
  border-radius: 5px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1rem;
  font-size: 0.95rem;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.55rem 0.5rem;
  border-bottom: 1px solid var(--border);
}

th {
  color: #fff;
}

.table-scroll {
  overflow-x: auto;
}

caption {
  text-align: left;
  padding-bottom: 0.4rem;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0 2.5rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin: 0 0 0.75rem;
  padding: 0;
  list-style: none;
}

.site-footer li + li {
  margin-top: 0;
}

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
