/* ClipReact landing page – tokens follow the app's /styles.css pattern (light, dark by system, dark/light by choice) */
:root {
  --bg: #f7f6fc;
  --bg-alt: #efecf9;
  --surface: #ffffff;
  --surface-2: #f4f1fd;
  --border: #e2ddf0;
  --text: #0b1530;
  --muted: #535b74;
  --accent: #7138ff;
  --accent-hover: #5c22f0;
  --accent-soft: #eee7ff;
  --accent-contrast: #ffffff;
  --accent-text: #5a24e6;
  --grad-from: #7138ff;
  --grad-to: #c04bff;
  --ok: #1f8a4c;
  --yt-red: #ff0033;
  --glow: rgba(113, 56, 255, .16);
  --glow-2: rgba(192, 75, 255, .12);
  --header-bg: rgba(247, 246, 252, .82);
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 6px 20px rgba(16, 24, 40, .06);
  --shadow-lg: 0 2px 6px rgba(16, 24, 40, .06), 0 24px 60px rgba(40, 20, 110, .16);
  --focus: #7138ff;
  --radius: 18px;
  --radius-sm: 12px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1020;
    --bg-alt: #111528;
    --surface: #161a2e;
    --surface-2: #1c2140;
    --border: #2a3052;
    --text: #e9ebf5;
    --muted: #a3aac2;
    --accent: #7138ff;
    --accent-hover: #8452ff;
    --accent-soft: #261f4d;
    --accent-contrast: #ffffff;
    --accent-text: #b8a0ff;
    --grad-from: #a68bff;
    --grad-to: #e08bff;
    --ok: #4cc27f;
    --glow: rgba(154, 120, 255, .20);
    --glow-2: rgba(224, 139, 255, .10);
    --header-bg: rgba(13, 16, 32, .80);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, .35), 0 24px 60px rgba(0, 0, 0, .45);
    --focus: #b197ff;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d1020;
  --bg-alt: #111528;
  --surface: #161a2e;
  --surface-2: #1c2140;
  --border: #2a3052;
  --text: #e9ebf5;
  --muted: #a3aac2;
  --accent: #7138ff;
  --accent-hover: #8452ff;
  --accent-soft: #261f4d;
  --accent-contrast: #ffffff;
  --accent-text: #b8a0ff;
  --grad-from: #a68bff;
  --grad-to: #e08bff;
  --ok: #4cc27f;
  --glow: rgba(154, 120, 255, .20);
  --glow-2: rgba(224, 139, 255, .10);
  --header-bg: rgba(13, 16, 32, .80);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, .35), 0 24px 60px rgba(0, 0, 0, .45);
  --focus: #b197ff;
  color-scheme: dark;
}

/* logo swap: light logo by default, dark logo in dark mode */
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-light { display: none; }
  :root:not([data-theme="light"]) .logo-dark { display: inline-block; }
}
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: inline-block; }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
img, svg { max-width: 100%; }
a { color: var(--accent-text); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -.015em; }
p { margin: 0; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

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

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--accent-contrast);
  padding: 10px 16px; border-radius: 10px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; color: var(--accent-contrast); }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .container { padding: 0 28px; } }
.container.narrow { max-width: 820px; }

section[id] { scroll-margin-top: 76px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px;
  border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 650; font-size: 15.5px; line-height: 1.2; text-decoration: none; text-align: center;
  cursor: pointer; transition: background-color .15s, color .15s, border-color .15s, box-shadow .15s, transform .15s;
}
.btn-sm { min-height: 38px; padding: 7px 16px; font-size: 14.5px; }
.btn-lg { min-height: 52px; padding: 13px 26px; font-size: 16.5px; }
.btn-block { width: 100%; }
.btn-primary {
  background: var(--accent); color: var(--accent-contrast);
  box-shadow: 0 6px 18px -6px var(--accent);
}
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-contrast); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--text); }
.btn-outline { background: transparent; color: var(--accent-text); border-color: var(--accent); }
.btn-outline:hover { background: var(--accent-soft); color: var(--accent-text); }
.btn-light { background: #ffffff; color: #3d16b8; }
.btn-light:hover { background: #f1ebff; color: #2c0e8f; }
.btn-on-dark { background: rgba(255, 255, 255, .1); color: #ffffff; border-color: rgba(255, 255, 255, .45); }
.btn-on-dark:hover { background: rgba(255, 255, 255, .18); color: #ffffff; }
@media (prefers-reduced-motion: no-preference) {
  .btn:hover { transform: translateY(-1px); }
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-bottom-color: var(--border); box-shadow: 0 4px 20px -12px rgba(16, 24, 40, .25); }
.header-row { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; flex: none; border-radius: 8px; }
.brand .logo { height: 32px; width: auto; }
.main-nav { display: none; gap: 4px; margin-left: 20px; }
.main-nav a {
  color: var(--muted); text-decoration: none; font-weight: 550; font-size: 15px;
  padding: 8px 12px; border-radius: 999px;
}
.main-nav a:hover { color: var(--text); background: var(--surface-2); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.login-link {
  color: var(--text); font-weight: 600; font-size: 15px; text-decoration: none;
  padding: 8px 6px; border-radius: 8px; white-space: nowrap;
}
.login-link:hover { color: var(--accent-text); }
.lang-select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  height: 36px; padding: 0 28px 0 12px; border-radius: 999px;
  background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%236b7280' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 11px center;
  border: 1px solid var(--border); color: var(--text);
  font: inherit; font-size: 13px; font-weight: 700; letter-spacing: .04em;
}
.lang-select:hover { border-color: var(--muted); }
.theme-toggle {
  border: 1px solid var(--border); background: var(--surface-2); color: var(--muted); cursor: pointer;
  width: 36px; height: 36px; border-radius: 999px; font-size: 16px; line-height: 1; display: inline-grid; place-items: center;
}
.theme-toggle:hover { color: var(--text); }

@media (min-width: 940px) { .main-nav { display: flex; } }
@media (max-width: 559px) {
  .header-cta { display: none; }
}
@media (max-width: 419px) {
  .brand .logo { height: 26px; } /* the full logo, a little smaller */
  .header-row { gap: 8px; }
  .header-actions { gap: 6px; }
  .login-link { padding: 8px 2px; font-size: 14px; }
}
@media (max-width: 399px) {
  .theme-toggle { display: none; } /* phones: logo, language and sign-in come first (long words like "Se connecter") */
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 48px 0 72px;
  background:
    radial-gradient(60% 55% at 85% 20%, var(--glow), transparent 70%),
    radial-gradient(45% 45% at 10% 0%, var(--glow-2), transparent 70%);
}
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 980px) {
  .hero { padding: 80px 0 104px; }
  .hero-grid { grid-template-columns: 1.02fr 1fr; gap: 56px; }
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 10px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-text);
  font-size: 14px; font-weight: 650;
}
.eyebrow-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffffff 0 15%, #b79cff 40%, #7138ff 100%);
  box-shadow: 0 0 10px 2px rgba(113, 56, 255, .55);
}
.hero h1 {
  margin-top: 18px;
  font-size: clamp(2.15rem, 1.4rem + 3.6vw, 3.75rem);
  font-weight: 800; letter-spacing: -.03em; line-height: 1.06;
}
.hero h1 span { display: block; }
.grad {
  background: linear-gradient(100deg, var(--grad-from), var(--grad-to));
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  padding-bottom: .06em;
}
@media (forced-colors: active) { .grad { color: CanvasText; -webkit-text-fill-color: currentColor; background: none; } }
.lead { margin-top: 20px; font-size: clamp(1.04rem, 1rem + .3vw, 1.2rem); color: var(--muted); max-width: 36em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.cta-row.center { justify-content: center; }
.hero-note { margin-top: 18px; font-size: 14.5px; color: var(--muted); }
.reg-note { margin-top: 12px; font-size: 14.5px; font-weight: 600; color: var(--accent-text); }
.reg-note.on-dark { color: #ffffff; text-align: center; }

/* ---------- hero mock ---------- */
.mock { position: relative; padding: 40px 0 44px; max-width: 640px; width: 100%; margin: 0 auto; }
@media (min-width: 560px) { .mock { padding: 26px 26px 34px; } }
@media (prefers-reduced-motion: reduce) { .mock-bubble .w { transition: none; } }
.mock-window {
  position: relative;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden;
}
.mock-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.dots i:first-child { background: #ff6159; }
.dots i:nth-child(2) { background: #ffbd2e; }
.dots i:nth-child(3) { background: #28c840; }
.mock-title { font-size: 12.5px; font-weight: 600; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.mock-video {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  background: #101833; color: #ffffff;
  container-type: inline-size;
  font-size: 11px;
}
.mock-scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.mock-comment {
  position: absolute; top: 5%; left: 3.5%; width: 44%;
  display: flex; gap: .6em; align-items: flex-start;
  padding: .7em .8em; border-radius: .9em;
  background: rgba(255, 255, 255, .95); color: #0b1530;
  box-shadow: 0 .4em 1.4em rgba(0, 0, 0, .35);
  font-size: 10px; font-size: clamp(8px, 2.25cqw, 14px); line-height: 1.3;
}
.mock-comment .avatar {
  flex: none; width: 2.2em; height: 2.2em; border-radius: 50%;
  background: linear-gradient(135deg, #ffb36b, #ff5f8a);
}
.mock-comment-body { display: flex; flex-direction: column; gap: .15em; min-width: 0; }
.mock-user { font-weight: 700; color: #5a24e6; }
.mock-text { color: #1d2747; }

.mock-ai {
  position: absolute; top: 5%; right: 3.5%;
  padding: .3em .7em; border-radius: 999px;
  background: rgba(13, 16, 32, .72); border: 1px solid rgba(255, 255, 255, .28);
  font-size: 9px; font-size: clamp(7.5px, 1.9cqw, 12px); font-weight: 700; letter-spacing: .03em;
}

.mock-orb {
  position: absolute; left: 4.5%; bottom: 22%; width: 14%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, #ffffff 0 7%, #d6c7ff 16%, #9b74ff 40%, #6a35f5 66%, #3b148f 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .2), 0 0 1.6em .4em rgba(154, 110, 255, .7), 0 0 4em 1.2em rgba(113, 56, 255, .38);
}
.mock-orb .ring {
  position: absolute; inset: -12%; border-radius: 50%;
  border: 2px solid rgba(182, 155, 255, .55); opacity: 0;
}
.mock-name {
  position: absolute; left: 4.5%; width: 14%; bottom: 14.5%; text-align: center;
  font-size: 9px; font-size: clamp(7px, 1.8cqw, 12px); font-weight: 700; letter-spacing: .04em; color: #d9ccff;
}

.mock-bubble {
  position: absolute; left: 22%; right: 4%; bottom: 22%;
  max-width: 64%;
  padding: .55em .85em; border-radius: .9em .9em .9em .3em;
  background: #ffffff; color: #8a91a8;
  box-shadow: 0 .5em 1.6em rgba(0, 0, 0, .35);
  font-size: 12px; font-size: clamp(9px, 3.05cqw, 19px); font-weight: 700; line-height: 1.35;
}
.mock-bubble::before {
  content: ""; position: absolute; left: -.5em; bottom: .55em;
  border-style: solid; border-width: .45em .6em .45em 0;
  border-color: transparent #ffffff transparent transparent;
}
.mock-bubble .w { border-radius: .3em; box-shadow: 0 0 0 .12em transparent; transition: color .12s, background-color .12s, box-shadow .12s; }
.mock-bubble .w.said { color: #0b1530; }
.mock-bubble .w.on { color: #ffffff; background: #7138ff; box-shadow: 0 0 0 .12em #7138ff; }

/* a reaction GIF popping up next to the host's bubble */
.mock-gif {
  position: absolute; right: 5%; bottom: 46%; width: 15%; aspect-ratio: 1; z-index: 1;
  display: grid; place-items: center; border-radius: .8em;
  background: linear-gradient(135deg, #ffd36b, #ff7a59); border: 2px solid #ffffff;
  box-shadow: 0 .5em 1.4em rgba(0, 0, 0, .4);
  font-size: 10px; font-size: clamp(8px, 2.2cqw, 14px);
}
.mock-gif-face { font-size: 2.6em; line-height: 1; }
.mock-gif-tag {
  position: absolute; left: .35em; bottom: .35em; padding: .1em .4em; border-radius: .3em;
  background: rgba(13, 16, 32, .78); color: #ffffff; font-weight: 800; font-size: .8em; letter-spacing: .04em;
}
@media (prefers-reduced-motion: no-preference) {
  .mock-gif { animation: gif-pop 3.2s ease-in-out infinite; }
  @keyframes gif-pop {
    0%, 12% { transform: scale(.4) rotate(-8deg); opacity: 0; }
    20%, 75% { transform: scale(1) rotate(-3deg); opacity: 1; }
    82%, 100% { transform: scale(.9) rotate(-3deg); opacity: 0; }
  }
}

.mock-progress {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.4% 3.5% 2%;
  background: linear-gradient(to top, rgba(0, 0, 0, .65), rgba(0, 0, 0, 0));
}
.mock-progress .track {
  position: relative; height: 4px; height: clamp(3px, .9cqw, 6px); border-radius: 99px;
  background: rgba(255, 255, 255, .28);
}
.mock-progress .buffered { position: absolute; left: 0; top: 0; bottom: 0; width: 64%; border-radius: inherit; background: rgba(255, 255, 255, .35); }
.mock-progress .played { position: absolute; left: 0; top: 0; bottom: 0; width: 34%; border-radius: inherit; background: var(--yt-red); }
.mock-progress .knob {
  position: absolute; right: -6px; top: 50%; width: 12px; height: 12px; margin-top: -6px;
  border-radius: 50%; background: var(--yt-red); box-shadow: 0 0 0 3px rgba(255, 0, 51, .25);
}
.mock-progress .controls { display: flex; align-items: center; gap: .8em; margin-top: .5em; font-size: 9px; font-size: clamp(7px, 1.8cqw, 12px); font-weight: 600; opacity: .92; }
.mock-progress .play { width: 0; height: 0; border-style: solid; border-width: .5em 0 .5em .8em; border-color: transparent transparent transparent #ffffff; }

.chip {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  background: var(--surface); color: var(--text); border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  font-size: 13px; font-weight: 650; white-space: nowrap; max-width: calc(100% - 16px);
}
.chip span { overflow: hidden; text-overflow: ellipsis; }
.chip svg { flex: none; }
.chip-fact { top: 0; right: 8px; color: var(--ok); }
.chip-fact span { color: var(--text); }
.chip-cost { bottom: 0; left: 8px; color: var(--accent-text); }
.chip-cost span { color: var(--text); }
@media (min-width: 560px) {
  .chip-fact { top: 4px; right: 0; }
  .chip-cost { bottom: 4px; left: 0; }
}

@media (prefers-reduced-motion: no-preference) {
  .mock-orb { animation: orb-pulse 1.5s ease-in-out infinite; }
  .mock-orb .ring { animation: orb-ring 2.4s ease-out infinite; }
  .mock-orb .ring.r2 { animation-delay: 1.2s; }
  .mock-progress .played { animation: progress-jump 9s ease-in-out infinite; }
  .chip { animation: chip-float 6s ease-in-out infinite; }
  .chip-cost { animation-delay: -3s; }
}
@keyframes orb-pulse {
  0%, 100% { transform: scale(1); }
  30% { transform: scale(1.08); }
  55% { transform: scale(.98); }
  75% { transform: scale(1.05); }
}
@keyframes orb-ring {
  0% { transform: scale(.85); opacity: .7; }
  100% { transform: scale(1.45); opacity: 0; }
}
/* plays a little, then slides forward like a jump in the reaction */
@keyframes progress-jump {
  0% { width: 30%; }
  42% { width: 36%; }
  52% { width: 58%; }
  90% { width: 64%; }
  100% { width: 30%; }
}
@keyframes chip-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* ---------- sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-tight { padding: clamp(40px, 6vw, 72px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.kicker {
  color: var(--accent-text); font-weight: 750; font-size: 13.5px;
  letter-spacing: .09em; text-transform: uppercase;
}
.section-head h2, .honest h2, .final h2 {
  margin-top: 10px; font-size: clamp(1.75rem, 1.3rem + 1.9vw, 2.6rem); font-weight: 800;
}
.section-sub { margin-top: 14px; color: var(--muted); font-size: 1.07rem; }

/* steps */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 18px; counter-reset: step;
}
@media (min-width: 620px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.step {
  position: relative; padding: 26px 24px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.step-num {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(135deg, var(--grad-from), var(--grad-to)); color: #ffffff;
  font-weight: 800; font-size: 17px; box-shadow: 0 8px 18px -8px var(--accent);
}
.step h3 { margin-top: 18px; font-size: 1.15rem; }
.step p { margin-top: 8px; color: var(--muted); font-size: 15.5px; }

/* features */
.features {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); /* nine cards: three rows of three */
}
.feature {
  padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s;
}
.feature:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); box-shadow: var(--shadow); }
.icon, .aud-icon, .hp-icon, .start-icon {
  display: inline-grid; place-items: center; flex: none;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent-text);
}
.icon svg, .aud-icon svg, .hp-icon svg, .start-icon svg {
  width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.feature h3 { margin-top: 16px; font-size: 1.08rem; }
.feature p { margin-top: 8px; color: var(--muted); font-size: 15px; }

/* languages: the 18 the host comments in, then what comes with them */
.lang-cloud {
  list-style: none; margin: 0 auto; padding: 0; max-width: 880px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
}
.lang-cloud li {
  padding: 8px 16px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  font-weight: 650; font-size: 15px; white-space: nowrap;
  transition: border-color .2s, color .2s;
}
.lang-cloud li:hover { border-color: var(--accent); color: var(--accent-text); }
.lang-facts {
  margin-top: 40px; display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
}
.lang-fact { padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.lang-fact h3 { margin-top: 16px; font-size: 1.08rem; }
.lang-fact p { margin-top: 8px; color: var(--muted); font-size: 15px; }

/* audience */
.audience { display: grid; gap: 20px; }
@media (min-width: 780px) { .audience { grid-template-columns: 1fr 1fr; } }
.aud-card {
  position: relative; overflow: hidden;
  padding: 32px 28px; border-radius: 22px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
}
.aud-card::after {
  content: ""; position: absolute; width: 260px; height: 260px; right: -110px; top: -120px; border-radius: 50%;
  background: radial-gradient(circle, var(--glow), transparent 70%); pointer-events: none;
}
.aud-card h3 { margin-top: 18px; font-size: 1.35rem; }
.aud-card > p { margin-top: 10px; color: var(--muted); }

.checks { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; font-weight: 550; font-size: 15px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent-soft);
}
.checks li::after {
  content: ""; position: absolute; left: 7px; top: calc(.2em + 5px); width: 5px; height: 9px;
  border: solid var(--accent-text); border-width: 0 2px 2px 0; transform: rotate(45deg);
}

/* honesty */
.honest {
  display: grid; gap: 32px; padding: clamp(28px, 4vw, 48px);
  border-radius: 26px; border: 1px solid var(--border);
  background:
    radial-gradient(70% 90% at 0% 0%, var(--glow), transparent 70%),
    var(--surface);
  box-shadow: var(--shadow);
}
@media (min-width: 900px) { .honest { grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; } }
.honest-copy > p:last-child { margin-top: 16px; color: var(--muted); font-size: 1.07rem; }
.honest-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.honest-points li {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 18px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--border);
}
.honest-points h3 { font-size: 1.04rem; }
.honest-points p { margin-top: 4px; color: var(--muted); font-size: 15px; }

/* pricing */
.start-banner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px;
  padding: 20px 24px; margin-bottom: 40px; border-radius: 20px;
  background: linear-gradient(120deg, var(--accent-soft), var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border));
}
.start-banner > div { flex: 1 1 240px; min-width: 0; }
.start-title { font-weight: 800; font-size: 1.15rem; }
.start-desc { color: var(--muted); font-size: 15px; margin-top: 2px; }
.start-banner .btn { flex: none; }
@media (max-width: 479px) { .start-banner .btn { width: 100%; } }

.price-group + .price-group { margin-top: 44px; }
.group-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 18px; }
.group-head h3 { font-size: 1.3rem; }
.group-head p { color: var(--muted); font-size: 15px; }

.plans { display: grid; gap: 20px; }
@media (min-width: 720px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.plan {
  position: relative; display: flex; flex-direction: column;
  padding: 28px 26px; border-radius: 22px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
}
.plan .btn { margin-top: auto; }
.plan .checks { margin-bottom: 24px; }
.plan-featured {
  border: 2px solid var(--accent);
  background:
    radial-gradient(80% 60% at 100% 0%, var(--glow), transparent 70%),
    var(--surface);
  box-shadow: var(--shadow-lg);
}
.plan-badge {
  position: absolute; top: -13px; left: 24px;
  padding: 4px 12px; border-radius: 999px;
  background: linear-gradient(100deg, var(--grad-from), var(--grad-to)); color: #ffffff;
  font-size: 12.5px; font-weight: 750; letter-spacing: .02em;
}
.plan-name { font-size: 1.2rem; font-weight: 750; }
.plan-price { margin-top: 10px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px; }
.plan-price .amount { font-size: 2.4rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.plan-price .per { color: var(--muted); font-weight: 600; }
.plan-credits { margin-top: 6px; font-weight: 650; color: var(--accent-text); }

.packs { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); }
.pack {
  padding: 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border);
}
.pack-credits { font-size: 1.12rem; font-weight: 750; }
.pack-price { margin-top: 6px; font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; }
.pack-meta { color: var(--muted); font-size: 14.5px; margin-top: 2px; }

.price-note {
  margin: 32px auto 0; max-width: 760px; text-align: center;
  color: var(--muted); font-size: 14.5px;
}

/* faq */
.faq { display: grid; gap: 12px; }
.faq details {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  transition: border-color .2s;
}
.faq details[open] { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 18px 56px 18px 22px; font-weight: 700; font-size: 1.04rem; border-radius: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border: solid var(--accent-text); border-width: 0 2px 2px 0; transform: rotate(45deg);
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 22px 20px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

/* final cta */
.final {
  position: relative; overflow: hidden; text-align: center; color: #ffffff;
  padding: clamp(44px, 7vw, 80px) clamp(20px, 5vw, 64px);
  border-radius: 28px;
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(255, 255, 255, .16), transparent 70%),
    linear-gradient(135deg, #5a24e6 0%, #7138ff 45%, #9b3cf0 100%);
  box-shadow: 0 30px 70px -30px rgba(80, 30, 200, .6);
}
.final h2 { position: relative; color: #ffffff; margin-top: 0; }
.final > p { position: relative; margin: 14px auto 0; max-width: 600px; color: rgba(255, 255, 255, .9); font-size: 1.08rem; }
.final .cta-row { position: relative; }
.final-orb {
  position: absolute; width: 340px; height: 340px; right: -120px; bottom: -160px; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, rgba(255, 255, 255, .55), rgba(190, 160, 255, .25) 35%, transparent 68%);
  pointer-events: none;
}
.final :focus-visible { outline-color: #ffffff; }

/* footer */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0 32px; background: var(--bg); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: flex-start; }
.footer-brand .logo { height: 26px; width: auto; }
.footer-brand p { margin-top: 10px; color: var(--muted); font-size: 14.5px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-links a { color: var(--text); text-decoration: none; font-weight: 550; font-size: 15px; padding: 4px 0; }
.footer-links a:hover { color: var(--accent-text); text-decoration: underline; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border);
  color: var(--muted); font-size: 13.5px;
}

/* ---- legal pages (imprint, privacy, terms, withdrawal, cancellation): same header and footer ---- */
.legal-page { padding-top: 40px; padding-bottom: 64px; }
.legal-page h1 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 18px; letter-spacing: -.02em; }
.legal-page h2 { font-size: 19px; margin: 28px 0 8px; }
.legal-page p, .legal-page li { line-height: 1.65; color: var(--text); }
.legal-page ul, .legal-page ol { padding-left: 22px; }
.legal-page li + li { margin-top: 6px; }
.legal-page code { font-size: .92em; background: var(--surface-2); padding: 1px 6px; border-radius: 6px; }
.legal-page .hint { color: var(--muted); font-size: 14px; }
.legal-page .field { display: block; font-size: 13.5px; font-weight: 650; margin-bottom: 6px; }
.legal-page input[type=text], .legal-page input[type=email], .legal-page input[type=date], .legal-page textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface); color: var(--text); font: inherit;
}
.legal-page input:focus, .legal-page textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.legal-page form.cancel { display: grid; gap: 16px; max-width: 540px; margin: 22px 0; }
.legal-page form.cancel .choice { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.legal-page form.cancel .choice label { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.legal-page form.cancel .choice input[type=date] { width: auto; }
.legal-page .banner { padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); }
.legal-page .banner.danger { border-color: #e5484d; color: #e5484d; }
.legal-page .receipt { border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px; background: var(--surface); margin: 22px 0; }
.legal-page .hidden { display: none !important; }

/* a video's public page (/v/<code>) */
.video-page .vp-kicker { margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.video-page h1 { overflow-wrap: anywhere; }
.video-page .vp-notice { border: 1px solid var(--accent); background: var(--accent-soft); border-radius: 12px; padding: 12px 16px; margin: 0 0 12px; line-height: 1.55; }
.video-page .vp-section { border-top: 1px solid var(--border); margin-top: 26px; padding-top: 4px; }
.video-page .vp-list, .video-page .vp-facts, .video-page .vp-said { padding-left: 22px; }
.video-page .vp-list li + li, .video-page .vp-facts li + li, .video-page .vp-said li + li { margin-top: 10px; }
.video-page .vp-facts p, .video-page .vp-said p { margin: 2px 0; }
.video-page .vp-time { font-variant-numeric: tabular-nums; font-weight: 650; }
.video-page .vp-quote { margin: 4px 0 0; color: var(--muted); font-style: italic; }
.video-page .vp-verdict { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--surface-2); }
.video-page .vp-correct { background: #1f9d5522; color: #1f9d55; }
.video-page .vp-wrong { background: #e5484d22; color: #e5484d; }
.video-page .vp-misleading { background: #d9822b22; color: #c06a14; }
.video-page .vp-dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 10px 0; }
.video-page .vp-dl dt { color: var(--muted); }
.video-page .vp-dl dd { margin: 0; font-weight: 600; }
.video-page .vp-check { display: flex; gap: 8px; align-items: flex-start; cursor: pointer; }
.video-page select { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; }
.video-page .vp-foot { margin-top: 34px; }
@media (max-width: 520px) { .video-page .vp-dl { grid-template-columns: 1fr; gap: 2px; } .video-page .vp-dl dd { margin-bottom: 8px; } }

/* Traditional Chinese (Taiwan): its own system fonts first, so the glyphs are the Taiwanese forms */
:root:lang(zh-TW) body { font-family: system-ui, -apple-system, "Segoe UI", Roboto, "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", sans-serif; }

/* "Page not found": an address that does not exist brought the browser to the start page */
.notfound-dialog { max-width: 420px; width: calc(100% - 32px); border: 1px solid var(--border); border-radius: 16px;
  padding: 24px; background: var(--surface); color: var(--text); box-shadow: 0 20px 60px rgba(11, 21, 48, .25); }
.notfound-dialog::backdrop { background: rgba(11, 21, 48, .45); }
.notfound-dialog h2 { margin: 0 0 8px; font-size: 20px; }
.notfound-dialog p { margin: 0 0 18px; color: var(--muted); line-height: 1.5; }
.notfound-dialog form { display: flex; justify-content: flex-end; margin: 0; }
