/* DuckIn Labs landing page.
   White ground, ink type, one yellow highlight. Luckiest Guy is reserved for the logo;
   everything else is Plus Jakarta Sans. Cards: 2px ink border, 24px radius, 4px hard shadow.
   Dark "night city" mode: html[data-theme="dark"] overrides the tokens below. */

:root {
  /* Brand palette (constant in both themes) */
  --duck: #FFB800;
  --sunny: #FFD21F;
  --sky: #8FD3FF;
  --lime: #A6E23A;
  --tangerine: #FF8A3D;
  --grass: #3DBE13;
  --white: #FFFFFF;

  /* Theme tokens */
  --surface: #FFFFFF;
  --ink: #111111;
  --shadow: #111111;
  --on-ink: #FFFFFF;
  --body: #3D382E;
  --muted: #5C5546;
  --band: #F6F4EE;
  --line-1: #E5DECB;
  --line-2: #F0EAD8;
  --line-3: #B9AE90;
  --sky-soft: #E3F4FF;
  --lime-soft: #EEF9D6;
  --link-hover: #7A5600;
  --panel: #8FD3FF;
  --marquee-bg: #111111;
  --marquee-fg: #FFFFFF;
  --hello-bg: #111111;
  --hello-border: #111111;
  --hello-min: 0px;
  --mark-fg: inherit;
  --mark-h: 34%;
  --mark-y: 88%;
  --logo-fill: #FFB800;
  --logo-stroke: 1.5px #111111;
  --logo-ts: 2px 2px 0 #111111;

  --display: "Luckiest Guy", system-ui, sans-serif;
  --text: "Plus Jakarta Sans", system-ui, sans-serif;

  color-scheme: light;
}

html[data-theme="dark"] {
  --surface: #17150F;
  --ink: #F6F4EE;
  --shadow: #FFB800;
  --on-ink: #111111;
  --body: #D8D2C2;
  --muted: #B9AE90;
  --band: #221E17;
  --line-1: #3A342A;
  --line-2: #3A342A;
  --line-3: #3A342A;
  --sky-soft: #15324A;
  --lime-soft: #233517;
  --link-hover: #FFD21F;
  --panel: #0F1630;
  --marquee-bg: #FFD21F;
  --marquee-fg: #111111;
  --hello-bg: linear-gradient(90deg, #111111 0%, rgba(17, 17, 17, 0.88) 42%, rgba(17, 17, 17, 0) 78%), url("/assets/night-rain.webp") 70% center / cover no-repeat;
  --hello-border: #FFB800;
  --hello-min: 380px;
  --mark-fg: #111111;
  --mark-h: 80%;
  --mark-y: 70%;
  --logo-fill: #FFD21F;
  --logo-stroke: 0px transparent;
  --logo-ts: 0 0 10px rgba(255, 184, 0, 0.45);

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--text);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h2 { font-size: 36px; font-weight: 800; letter-spacing: -1px; line-height: 1.15; }

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid #1D5F9E;
  outline-offset: 3px;
  border-radius: 8px;
}
html[data-theme="dark"] a:focus-visible,
html[data-theme="dark"] button:focus-visible,
html[data-theme="dark"] summary:focus-visible { outline-color: var(--sky); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Theme-specific elements */
.dark-only { display: none; }
html[data-theme="dark"] .dark-only { display: block; }
html[data-theme="dark"] .light-only { display: none; }

/* Circular reveal when switching theme (View Transitions API) */
::view-transition-old(root),
::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { z-index: 2; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--ink);
  color: var(--on-ink);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  z-index: 10;
}
.skip:focus { left: 16px; }

/* ── Logo (the only place Luckiest Guy appears) ── */
.logo {
  font-family: var(--display);
  font-size: 21px;
  line-height: 1;
  color: var(--logo-fill);
  -webkit-text-stroke: var(--logo-stroke);
  paint-order: stroke fill;
  text-shadow: var(--logo-ts);
  letter-spacing: 0.5px;
}
.logo-sm { font-size: 17px; }

/* ── Links & buttons ── */
.link {
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 2px;
  align-self: flex-start;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.link:hover { color: var(--link-hover); border-color: var(--duck); }

.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--on-ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  padding: 15px 26px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--duck);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--duck); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--duck); }

.btn-yellow {
  display: inline-block;
  font: inherit;
  background: var(--sunny);
  color: #111111;
  text-decoration: none;
  font-weight: 800;
  font-size: 16px;
  padding: 14px 24px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.btn-yellow:hover { transform: translateY(-2px); }

.text-btn {
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  background: none;
  color: var(--white);
  border: none;
  border-bottom: 2px solid var(--white);
  padding: 0 0 2px;
  cursor: pointer;
}

/* ── Header ── */
.site-header {
  padding-top: 22px;
  padding-bottom: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-badge { width: 40px; height: 40px; }
html[data-theme="dark"] .brand-badge {
  border-radius: 999px;
  box-shadow: 0 0 0 2px var(--sunny), 0 0 14px rgba(255, 210, 31, 0.55);
}
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; font-size: 15px; font-weight: 600; }
.nav a { text-decoration: none; text-underline-offset: 4px; }
.nav a:not(.nav-cta):hover { text-decoration: underline; }
.nav-cta {
  background: var(--ink);
  color: var(--on-ink);
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
}

/* Theme toggle: a sun knob that slides over and becomes a crescent moon */
.theme-toggle {
  position: relative;
  width: 58px;
  height: 32px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: var(--band);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.theme-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--sunny);
  border: 2px solid var(--ink);
  transition: transform 0.5s cubic-bezier(0.7, 0, 0.3, 1), background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
html[data-theme="dark"] .theme-knob {
  transform: translateX(26px);
  background: transparent;
  border-color: transparent;
  box-shadow: inset -7px -3px 0 0 var(--sunny);
}
.no-transition, .no-transition * { transition: none !important; }

/* ── Language switch (EN / ID) ── */
.lang-switch {
  display: inline-flex;
  border: 2px solid var(--ink);
  border-radius: 999px;
  overflow: hidden;
  flex-shrink: 0;
}
.lang-switch a {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-decoration: none !important;
  padding: 5px 10px;
  line-height: 1.2;
}
.lang-switch a[aria-current="true"] { background: var(--ink); color: var(--on-ink); }
.lang-switch a:not([aria-current="true"]):hover { background: var(--band); }

/* ── Hero ── */
.hero {
  padding-top: 56px;
  padding-bottom: 96px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px;
}
.hero-copy {
  flex: 1 1 480px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.eyebrow { font-size: 14px; font-weight: 700; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.dot { position: relative; width: 8px; height: 8px; display: inline-block; }
.dot-ping, .dot-core { position: absolute; inset: 0; border-radius: 999px; background: var(--grass); }
.hero-title { font-size: clamp(44px, 5.4vw, 68px); font-weight: 800; line-height: 1.04; letter-spacing: -2px; }
.word-wrap {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}
.word-wrap-mark { padding: 0 4px 0.1em; margin: 0 -4px -0.1em; }
.word { display: inline-block; }
.mark {
  color: var(--mark-fg);
  background-image: linear-gradient(var(--sunny), var(--sunny));
  background-repeat: no-repeat;
  background-size: 100% var(--mark-h);
  background-position: 0 var(--mark-y);
  padding: 0 4px;
  margin: 0 -4px;
}
.lede { font-size: 19px; color: var(--body); max-width: 470px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }

.hero-art { flex: 1 1 400px; min-width: 0; display: flex; justify-content: center; }
.hero-panel {
  position: relative;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1 / 1;
  background: var(--panel);
  border: 2px solid var(--ink);
  border-radius: 28px;
  box-shadow: 4px 4px 0 var(--shadow);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}
.panel-fx {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: 26px;
}
.fx-layer { position: absolute; inset: 0; display: none; }
.fx-layer canvas { width: 100%; height: 100%; display: block; }
.mascot {
  position: relative;
  z-index: 1;
  width: 64%;
  height: auto;
  margin-bottom: -6px;
  cursor: pointer;
  transform-origin: 50% 100%;
}
.hero-label {
  position: absolute;
  z-index: 2;
  top: 22px;
  right: 22px;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
}
.quip {
  position: absolute;
  z-index: 3;
  left: 20px;
  top: 22px;
  max-width: 52%;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: 16px 16px 16px 4px;
  box-shadow: 3px 3px 0 var(--shadow);
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
  opacity: 0;
  pointer-events: none;
}

/* ── Marquee ── */
.marquee {
  background: var(--marquee-bg);
  color: var(--marquee-fg);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  overflow: hidden;
  margin-bottom: 96px;
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.marquee-track { display: flex; width: max-content; padding: 16px 0; }
.marquee-group { display: flex; align-items: center; gap: 32px; padding-right: 32px; flex-shrink: 0; }
.marquee-group span { white-space: nowrap; }
.marquee-group i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--duck);
  border: 2px solid var(--marquee-fg);
  flex-shrink: 0;
}

/* ── Section heads ── */
.section-head { display: flex; flex-direction: column; gap: 8px; }
.section-head p { font-size: 17px; color: var(--muted); }

/* ── Products ── */
.products,
.changelog { padding-bottom: 96px; display: flex; flex-direction: column; gap: 32px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 28px; }
.product {
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: 24px;
  box-shadow: 4px 4px 0 var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease;
}
.product:hover { box-shadow: 6px 6px 0 var(--shadow); }

.preview { border-bottom: 2px solid var(--ink); padding: 28px 28px 0; display: flex; justify-content: center; }
.preview-job { background: var(--sky-soft); }
.preview-expense { background: var(--lime-soft); }
.window {
  width: 100%;
  max-width: 380px;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-bottom: none;
  border-radius: 14px 14px 0 0;
  padding: 16px 16px 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
}
.window-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; }
.window-head > span { font-size: 11px; color: var(--muted); }
.window-head .big { font-size: 16px; font-weight: 800; color: var(--ink); }
.app-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  border: 1.5px solid var(--line-1);
  border-radius: 10px;
}
.pill { font-size: 10px; font-weight: 800; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; }
.pill-orange { background: #FFE2CF; color: #9A3412; }
.pill-blue { background: #DCEFFF; color: #1D5F9E; }
.pill-green { background: #DDF5CC; color: #1F7A0A; }
.bar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; border: 1.5px solid var(--ink); }
.tx-row { display: flex; justify-content: space-between; padding: 6px 2px; border-bottom: 1.5px solid var(--line-2); }
.tx-row:last-child { border-bottom: none; }
.neg { color: #C2410C; font-weight: 800; }
.pos { color: #1F7A0A; font-weight: 800; }
html[data-theme="dark"] .neg { color: #FF9F66; }
html[data-theme="dark"] .pos { color: #8EE36B; }

.product-body { padding: 24px 28px 28px; display: flex; flex-direction: column; gap: 12px; flex-grow: 1; }
.product-body p { color: var(--body); }
.product-body .link { margin-top: auto; }
.product-id { display: flex; align-items: center; gap: 12px; }
.product-id h3 { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; line-height: 1.2; }
.product-kind { font-size: 13px; font-weight: 600; color: var(--muted); }
.product-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 2px solid var(--ink);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  flex-shrink: 0;
}
.product-icon img { width: 44px; height: auto; margin-bottom: -4px; }

.next {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 2px dashed var(--line-3);
  border-radius: 18px;
  padding: 18px 24px;
}
.next p { font-weight: 600; }
.next strong { font-weight: 800; }
.next span { color: var(--muted); }

/* ── What's new ── */
.log-card {
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: 24px;
  box-shadow: 4px 4px 0 var(--shadow);
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.log li {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-top: 1.5px solid var(--line-2);
  font-weight: 600;
  color: var(--body);
}
.log-date { font-size: 13px; font-weight: 700; color: var(--muted); }

/* ── How we build ── */
.how { background: var(--band); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.how-inner { padding-top: 80px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 40px; }
.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px; }
.principle { display: flex; flex-direction: column; gap: 10px; border-top: 2px solid var(--ink); padding-top: 20px; }
.principle img { width: 52px; height: auto; }
.principle h3 { font-size: 19px; font-weight: 800; }
.principle p { font-size: 15px; color: var(--body); }

/* ── FAQ ── */
.faq {
  padding-top: 96px;
  display: flex;
  flex-wrap: wrap;
  gap: 40px 56px;
}
.faq-head { flex: 1 1 260px; display: flex; flex-direction: column; gap: 8px; }
.faq-head p { font-size: 17px; color: var(--muted); }
.faq-duck {
  width: 100%;
  max-width: 320px;
  height: auto;
  margin-top: 16px;
  -webkit-mask-image: linear-gradient(#000 70%, transparent);
  mask-image: linear-gradient(#000 70%, transparent);
}
.faq-list { flex: 2 1 480px; min-width: 0; border-bottom: 2px solid var(--ink); }
.faq-item { border-top: 2px solid var(--ink); padding: 20px 0; }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 19px;
  font-weight: 800;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { padding-top: 10px; max-width: 600px; color: var(--body); overflow: hidden; }
.faq-plus {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  position: relative;
  display: block;
}
.faq-plus::before,
.faq-plus::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: var(--ink);
  border-radius: 2px;
}
.faq-plus::before { width: 12px; height: 2px; margin: -1px 0 0 -6px; }
.faq-plus::after { width: 2px; height: 12px; margin: -6px 0 0 -1px; }
/* Open state without JS (or before JS loads) */
.faq-item[open] .faq-plus { transform: rotate(45deg); background: var(--sunny); }
.faq-item[open] .faq-plus::before,
.faq-item[open] .faq-plus::after { background: #111111; }
.js .faq-item[open] .faq-plus { transform: none; background: transparent; }
.js .faq-item[open] .faq-plus::before,
.js .faq-item[open] .faq-plus::after { background: var(--ink); }
.faq-plus.is-open::before,
.faq-plus.is-open::after { background: #111111 !important; }

/* ── Say hi ── */
.hello { padding-top: 96px; padding-bottom: 96px; }
.hello-box {
  background: var(--hello-bg);
  min-height: var(--hello-min);
  color: var(--white);
  border: 2px solid var(--hello-border);
  border-radius: 28px;
  padding: 44px 48px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  overflow: hidden;
}
.hello-copy { display: flex; flex-direction: column; gap: 10px; flex: 1 1 420px; min-width: 0; }
.hello-copy > p { font-size: 17px; color: #D8D2C2; }
.hello-duck { width: 170px; height: auto; margin: -20px 0 -60px; transform-origin: 50% 90%; }

.sent { margin-top: 10px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.sent[hidden] { display: none; }
.sent-title { font-size: 19px; font-weight: 800; color: var(--sunny); }

.idea-form { margin-top: 10px; display: flex; flex-direction: column; gap: 14px; max-width: 520px; }
.idea-form[hidden] { display: none; }
.topics { display: flex; flex-wrap: wrap; gap: 8px; }
.topic {
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 999px;
  border: 2px solid #5C5546;
  background: transparent;
  color: #D8D2C2;
  cursor: pointer;
  transition: border-color 0.15s ease;
}
.topic:hover { border-color: #D8D2C2; }
.topic[aria-checked="true"] { background: var(--sunny); border-color: var(--sunny); color: #111111; font-weight: 800; }
.idea-form textarea,
.idea-form input {
  width: 100%;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: #111111;
  background: var(--white);
  border: 2px solid var(--white);
  border-radius: 14px;
  padding: 12px 14px;
  outline: none;
}
.idea-form textarea { resize: vertical; min-height: 96px; }
.idea-form textarea:focus,
.idea-form input:focus { border-color: var(--sunny); }
.idea-form ::placeholder { color: #6B6455; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-alt { font-size: 14px; font-weight: 600; color: #D8D2C2; }

/* ── Footer ── */
.site-footer { border-top: 2px solid var(--ink); }
.footer-inner {
  padding-top: 28px;
  padding-bottom: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  font-weight: 600;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-note { color: var(--muted); }

/* ── 404 ── */
.lost { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.lost-card {
  max-width: 440px;
  width: 100%;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 14px;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: 24px;
  box-shadow: 4px 4px 0 var(--shadow);
  padding: 32px 24px;
}
.lost-art { position: relative; width: 190px; }
.lost-art img { width: 190px; height: auto; transform-origin: 50% 100%; cursor: pointer; }
.lost-q { position: absolute; font-weight: 800; opacity: 0; }
.lost-q1 { left: -14px; top: 6px; font-size: 34px; color: var(--ink); }
.lost-q2 { right: -6px; top: -10px; font-size: 26px; color: var(--tangerine); }
.lost-q3 { right: -22px; top: 46px; font-size: 20px; color: #1D5F9E; }
html[data-theme="dark"] .lost-q3 { color: var(--sky); }
.lost-card h1 { font-size: 34px; font-weight: 800; letter-spacing: -1px; }
.lost-card p { color: var(--muted); }
.no-js .lost-q { opacity: 1; }

/* ── Legal pages (privacy, terms) ── */
.legal { max-width: 760px; padding-top: 40px; padding-bottom: 96px; }
.legal h1 { font-size: clamp(36px, 5vw, 52px); font-weight: 800; letter-spacing: -1.5px; line-height: 1.1; }
.legal-kicker { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: 8px; }
.legal-meta { margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--muted); }
.legal-summary {
  margin-top: 32px;
  background: var(--sky-soft);
  border: 2px solid var(--ink);
  border-radius: 20px;
  box-shadow: 4px 4px 0 var(--shadow);
  padding: 22px 26px;
}
.legal-summary h2 { font-size: 20px; letter-spacing: -0.3px; }
.legal-summary ul { margin: 10px 0 0; }
.legal-toc {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.legal-toc a {
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border: 1.5px solid var(--line-3);
  border-radius: 999px;
  padding: 5px 12px;
}
.legal-toc a:hover { border-color: var(--ink); }
.legal section { margin-top: 40px; scroll-margin-top: 24px; }
.legal section h2 { font-size: 24px; letter-spacing: -0.5px; }
.legal h3 { margin: 20px 0 0; font-size: 17px; font-weight: 800; }
.legal p, .legal li { color: var(--body); }
.legal section p { margin-top: 12px; }
.legal ul { margin: 12px 0 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.legal a { text-underline-offset: 3px; }
.legal a:hover { color: var(--link-hover); }
.legal code {
  font-size: 0.9em;
  background: var(--band);
  border: 1px solid var(--line-1);
  border-radius: 6px;
  padding: 1px 6px;
}
.legal strong { color: var(--ink); }
.footer-links a[aria-current="page"] { text-decoration-thickness: 2px; }
@media (max-width: 760px) {
  .legal { padding-top: 16px; padding-bottom: 64px; }
  .legal-summary { padding: 18px 20px; }
}

/* ── Small screens ── */
@media (max-width: 760px) {
  h2 { font-size: 30px; }
  .nav { gap: 16px; font-size: 14px; }
  .hero { padding-top: 24px; padding-bottom: 64px; gap: 40px; }
  .hero-title { letter-spacing: -1.5px; }
  .lede { font-size: 17px; }
  .marquee { margin-bottom: 64px; font-size: 15px; }
  .products, .changelog { padding-bottom: 64px; }
  .cards { grid-template-columns: 1fr; }
  .preview { padding: 20px 20px 0; }
  .product-body { padding: 20px 22px 24px; }
  .log-card { padding: 20px 22px; }
  .how-inner { padding-top: 56px; padding-bottom: 56px; }
  .principles { grid-template-columns: 1fr; gap: 28px; }
  .faq { padding-top: 64px; gap: 24px; }
  .faq-item summary { font-size: 17px; }
  .hello { padding-top: 64px; padding-bottom: 64px; }
  .hello-box { padding: 32px 24px 0; }
  html[data-theme="dark"] .hello-box {
    padding-bottom: 32px;
    --hello-bg: linear-gradient(180deg, rgba(17, 17, 17, 0.92) 0%, rgba(17, 17, 17, 0.8) 100%), url("/assets/night-rain.webp") 70% center / cover no-repeat;
  }
  .hello-duck { width: 140px; margin: 0 auto -10px; }
}
@media (max-width: 420px) {
  .site-header { justify-content: center; }
  .brand { width: 100%; justify-content: center; }
  .nav { gap: 10px; font-size: 13px; justify-content: center; }
  .lang-switch a { padding: 5px 8px; }
  .nav-how { display: none; }
  .nav-cta { padding: 8px 14px; }
}

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