/* Vendored by `npm run build -w @kwl/marketing` from packages/design-tokens */
@import url('./kwl-tokens.css');

/* ── Reset ───────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--parchment);
  background-image: radial-gradient(circle, rgba(0, 0, 0, 0.08) 1px, transparent 1px);
  background-size: 22px 22px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  min-height: 100vh;
}

/* ── Free beta strip ─────────────────────────────────────── */
.beta-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 18px;
  padding: 10px 20px;
  background: #111;
  border-bottom: 2px solid #333;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.88);
  text-align: center;
}

.beta-strip__badge {
  font-family: var(--font-hand);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--accent-yellow);
  color: var(--ink);
  padding: 4px 14px;
  border-radius: 999px;
  border: 2px solid var(--accent-yellow);
  flex-shrink: 0;
}

.beta-strip__text {
  max-width: 52rem;
  line-height: 1.45;
}

/* ── Nav ─────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  background: var(--parchment);
  border-bottom: var(--border);
  gap: 16px;
}

.nav__logo {
  font-family: var(--font-hand);
  font-size: 1.3rem;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav__logo-mark {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: var(--border);
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.nav__logo-text {
  line-height: 1.1;
}

.nav__cta {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
  background: var(--accent-yellow);
  border: var(--border);
  border-radius: var(--radius);
  padding: 8px 20px;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.1s,
    box-shadow 0.1s;
}
.nav__cta:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--ink);
}
.nav__cta:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--ink);
}

/* ── Sections ────────────────────────────────────────────── */
section {
  padding: 72px 24px;
}

.container {
  max-width: 860px;
  margin: 0 auto;
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  padding-top: 56px;
  padding-bottom: 44px; /* space for abs-positioned whats-next */
  position: relative;
  overflow: visible;
  background:
    radial-gradient(90% 55% at 15% 0%, rgba(245, 200, 66, 0.45), transparent 55%),
    radial-gradient(70% 50% at 95% 8%, rgba(45, 107, 228, 0.18), transparent 50%);
}

.hero__headline {
  font-family: var(--font-hand);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--ink);
  overflow: visible;
}

.hero__headline em {
  font-style: normal;
  background: none;
  padding: 0 6px;
  position: relative;
  display: inline-block;
}

.hero__circle-svg {
  position: absolute;
  top: -14px;
  right: -22px;
  bottom: -14px;
  left: -22px;
  width: calc(100% + 44px);
  height: calc(100% + 28px);
  overflow: visible;
  pointer-events: none;
  z-index: -1;
  transform: rotate(-2deg);
}

.hero__sub {
  font-size: 1.15rem;
  color: var(--ink-mid);
  max-width: 520px;
  margin-bottom: 36px;
}

.hero__cta-wrap {
  margin-bottom: 20px;
}

.hero__extension-note {
  font-size: 1rem;
  color: var(--ink-light);
  max-width: 440px;
  line-height: 1.5;
}

.hero__extension-note strong {
  color: var(--ink-mid);
}

.hero__whats-next {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 44px;
  margin: 0;
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 0;
}

.hero__whats-next::before,
.hero__whats-next::after {
  content: '';
  flex: 1;
  height: 2.5px;
  background: var(--ink);
}

.hero__whats-next a {
  padding: 0 24px;
  white-space: nowrap;
  color: var(--ink);
  font-family: var(--font-hand);
  font-size: 1.35rem;
  text-decoration: none;
}

/* ── Smart lemming mascot ────────────────────────────────── */
.hero__mascot {
  position: absolute;
  right: max(16px, calc((100vw - 900px) / 2));
  bottom: 22px; /* center of the 44px whats-next strip = the divider line */
  width: clamp(160px, 20vw, 240px);
  pointer-events: none;
  z-index: 2;
}

.hero__mascot img {
  width: 100%;
  height: auto;
  display: block;
}

.hero__mascot::after {
  content: '✦';
  position: absolute;
  top: -8px;
  right: -12px;
  font-size: 1.4rem;
  color: var(--ink);
  line-height: 1;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn-primary {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
  background: var(--accent-yellow);
  border: var(--border);
  border-radius: var(--radius);
  padding: 12px 32px;
  box-shadow: var(--shadow);
  transition:
    transform 0.1s,
    box-shadow 0.1s;
  display: inline-block;
}
.btn-primary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}
.btn-primary:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

/* ── Demo mockup ─────────────────────────────────────────── */
.demo {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 36px;
}

.demo__reader {
  background: #fff;
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 24px;
  max-width: 620px;
  width: 100%;
}

.demo__reader-label {
  font-family: var(--font-hand);
  font-size: 0.75rem;
  color: var(--ink-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.demo__passage {
  font-family: var(--font-ko);
  font-size: 1rem;
  line-height: 2;
  color: var(--ink);
}

[data-kwl-unit] {
  cursor: pointer;
  border-radius: 2px;
}
[data-kwl-unit][data-kwl-word-state='UNKNOWN'] {
  text-decoration: underline wavy var(--accent-red);
  text-underline-offset: 3px;
}
[data-kwl-unit][data-kwl-word-state='SEEN'] {
  border-bottom: 2.5px solid var(--accent-yellow);
}

.demo__hint {
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--ink-light);
  line-height: 1.5;
}

.demo__hint kbd {
  font-family: monospace;
  font-size: 0.8em;
  background: var(--parchment-dark);
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 3px;
  padding: 1px 5px;
}

/* ── Shared section typography ───────────────────────────── */
.section-label {
  font-family: var(--font-hand);
  font-size: 0.85rem;
  color: var(--ink-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-headline {
  font-family: var(--font-hand);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.2;
  margin-bottom: 16px;
}

/* ── Coming soon band ────────────────────────────────────── */
.soon {
  background: linear-gradient(180deg, var(--parchment) 0%, var(--parchment-dark) 100%);
}

.soon__body {
  margin-top: 16px;
  max-width: 580px;
  font-size: 1.05rem;
  color: var(--ink-mid);
  line-height: 1.65;
}

.soon__body mark {
  background: var(--accent-yellow);
  color: var(--ink);
  padding: 0 3px;
  border-radius: 2px;
}

/* ── Extension screenshot mockups ───────────────────────── */
.soon__screenshots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
}

.mock-screen {
  border: 2px solid rgba(0, 0, 0, 0.18);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.1),
    0 1px 4px rgba(0, 0, 0, 0.06);
  font-size: 13px;
}

/* ── Korean news site chrome ─────────────────────────────── */
.mock-news-nav {
  background: #1a1a2e;
  padding: 7px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 2px solid #03c75a;
}

.mock-news-nav__logo {
  font-size: 1.1rem;
  font-weight: 900;
  font-family: Arial, Helvetica, sans-serif;
  color: #03c75a;
  line-height: 1;
  flex-shrink: 0;
}

.mock-news-nav__tabs {
  display: flex;
  gap: 10px;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--font-ko);
  flex-wrap: wrap;
}

.mock-news-nav__tab--on {
  color: #fff;
  font-weight: 700;
  border-bottom: 2px solid #03c75a;
  padding-bottom: 1px;
}

.mock-news-body {
  padding: 12px 14px 16px;
  background: #fff;
}

.mock-news-channel {
  font-family: var(--font-ko);
  font-size: 0.65rem;
  color: #888;
  margin-bottom: 5px;
  font-weight: 700;
}

.mock-news-headline {
  font-family: var(--font-ko);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.55;
  color: #1a1a1a;
  margin-bottom: 12px;
}

/* word state indicators in the mock headline */
.kwl-w--unknown {
  text-decoration: underline wavy #e03c3c;
  text-underline-offset: 2px;
}

.kwl-w--seen {
  border-bottom: 2px solid #f5c842;
}

/* ── Popover components — exact replicas from @kwl/components ─
   Source: packages/components/src/kwlPopoverBaseStyles.ts      */

.hw-word-dictionary,
.hw-sentence-card {
  --kwl-parchment: #fdf6e3;
  --kwl-parchment-dark: #f5eccc;
  --kwl-ink: #1a1209;
  --kwl-ink-mid: #3d2f1a;
  --kwl-ink-light: #7a6648;
  --kwl-blue: #2d6be4;
  --kwl-blue-dim: #1e4ba8;
  --kwl-state-unknown-bg: #fee2e2;
  --kwl-state-seen-bg: #fef9c3;
  --kwl-state-known-bg: #dcfce7;
  --kwl-state-hidden-bg: #f3f4f6;
  --hw-dict-bg: var(--kwl-parchment);
  --hw-dict-surface: var(--kwl-parchment-dark);
  --hw-dict-border: var(--kwl-ink);
  --hw-dict-text: var(--kwl-ink);
  --hw-dict-muted: var(--kwl-ink-mid);
  --hw-dict-dim: var(--kwl-ink-light);
  --hw-dict-accent: var(--kwl-blue);
  --hw-dict-accent-dim: var(--kwl-blue-dim);
  --hw-dict-tab-on: #dbeafe;
  --hw-dict-tab-border: #93c5fd;
  --kwl-border: 2.5px solid var(--kwl-ink);
  --kwl-shadow: 4px 4px 0 var(--kwl-ink);
}

/* Word dictionary card */
.hw-word-dictionary {
  font-family:
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
  color: var(--hw-dict-text);
  background: var(--hw-dict-bg);
  border-radius: 20px 10px 24px 8px;
  border: var(--kwl-border);
  box-shadow: var(--kwl-shadow);
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hw-word-dictionary__head {
  flex-shrink: 0;
  padding: 14px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hw-word-dictionary__head--solo {
  background: var(--hw-dict-surface);
  border-bottom: 2px solid var(--hw-dict-border);
}

.hw-word-dictionary__head--solo[data-kwl-knowledge='UNKNOWN'] {
  background: #fee2e2;
}
.hw-word-dictionary__head--solo[data-kwl-knowledge='SEEN'] {
  background: #fef9c3;
}
.hw-word-dictionary__head--solo[data-kwl-knowledge='KNOWN'] {
  background: #dcfce7;
}
.hw-word-dictionary__head--solo[data-kwl-knowledge='IGNORE'] {
  background: #f3f4f6;
}

.hw-word-dictionary__headline {
  margin: 0;
  font-family: 'Gaegu', system-ui, sans-serif;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--hw-dict-text);
  word-break: break-word;
}

.hw-word-dictionary__states {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.hw-word-dictionary__state {
  margin: 0;
  padding: 5px 13px;
  font-family: 'Permanent Marker', cursive, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.3;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transform: rotate(var(--s-rot, 0deg));
  transition:
    background 0.1s ease,
    box-shadow 0.1s ease,
    transform 0.1s ease,
    opacity 0.12s ease;
}

.hw-word-dictionary__state--UNKNOWN {
  --s-rot: -1.5deg;
  --s-bg: #fee2e2;
  --s-fill: #fca5a5;
  --s-text: #991b1b;
  color: var(--s-text);
  border-radius: 12px 3px 11px 4px;
}
.hw-word-dictionary__state--seen {
  --s-rot: 1deg;
  --s-bg: #fef9c3;
  --s-fill: #fde047;
  --s-text: #78350f;
  color: var(--s-text);
  border-radius: 3px 14px 4px 10px;
}
.hw-word-dictionary__state--known {
  --s-rot: -0.8deg;
  --s-bg: #dcfce7;
  --s-fill: #86efac;
  --s-text: #14532d;
  color: var(--s-text);
  border-radius: 10px 4px 14px 3px;
}
.hw-word-dictionary__state--hidden {
  --s-rot: 2deg;
  --s-bg: #f3f4f6;
  --s-fill: #d1d5db;
  --s-text: #374151;
  color: var(--s-text);
  border-radius: 4px 10px 3px 13px;
}

.hw-word-dictionary__state:not(.hw-word-dictionary__state--inactive) {
  background: var(--s-bg);
  border: 2px solid #1a1a1a;
  box-shadow: 3px 3px 0 #1a1a1a;
}

.hw-word-dictionary__state--inactive {
  background: transparent;
  border: 2px dashed currentColor;
  box-shadow: none;
  opacity: 0.45;
}

.hw-word-dictionary__scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow: visible;
  padding: 6px 6px 6px 0;
}

.hw-word-dictionary__list {
  margin: 0;
  padding: 4px 8px 10px 14px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hw-word-dictionary__sense {
  margin: 0;
  padding: 0;
}

.hw-word-dictionary__sense-label {
  margin: 12px 0 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hw-dict-dim);
}

.hw-word-dictionary__sense-label:first-child {
  margin-top: 0;
}

.hw-word-dictionary__equiv {
  margin: 0 0 6px;
  font-family: 'Permanent Marker', cursive, system-ui, sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--hw-dict-accent);
  line-height: 1.3;
  word-break: break-word;
}

.hw-word-dictionary__explain {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #374151;
  word-break: break-word;
}

.hw-word-dictionary__def-ko {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #4b5563;
  word-break: break-word;
}

.hw-word-dictionary__footer {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px 12px;
  border-top: 2px solid var(--hw-dict-border);
  background: var(--hw-dict-surface);
}

.hw-word-dictionary__source {
  margin: 0;
  font-size: 11px;
  line-height: 1.4;
  color: var(--hw-dict-accent-dim);
  text-align: right;
  flex: 1;
  min-width: 0;
}

.hw-word-dictionary__mine {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--hw-dict-text);
  background: var(--hw-dict-bg);
  border: 2px solid #1a1a1a;
  border-radius: 8px 4px 10px 3px;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.85);
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}

/* Sentence card */
.hw-sentence-card {
  font-family:
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
  color: var(--hw-dict-text);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  pointer-events: auto;
  box-sizing: border-box;
  width: 100%;
}

.hw-sentence-card__tabs {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 6px;
  padding: 0 0 0 10px;
  flex-shrink: 0;
  position: relative;
  z-index: 0;
}

.hw-sentence-card__tab {
  margin: 0;
  padding: 8px 18px 10px;
  font-family: 'Permanent Marker', cursive, system-ui, sans-serif;
  font-size: 11px;
  letter-spacing: 0.08em;
  line-height: 1.2;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  border: 3px solid #1a1a1a;
  border-bottom: none;
  margin-bottom: -3px;
  height: 36px;
  box-sizing: border-box;
  white-space: nowrap;
}

.hw-sentence-card__tab--translate {
  background: #fde68a;
  color: #78350f;
  border-radius: 10px 6px 0 0;
  box-shadow: -1px -2px 0 rgba(0, 0, 0, 0.25);
  transform: rotate(-1.4deg);
}
.hw-sentence-card__tab--simplify {
  background: #bfdbfe;
  color: #1e3a8a;
  border-radius: 8px 10px 0 0;
  box-shadow: -1px -2px 0 rgba(0, 0, 0, 0.25);
  transform: rotate(1.6deg);
}
.hw-sentence-card__tab--analyze {
  background: #bbf7d0;
  color: #14532d;
  border-radius: 11px 7px 0 0;
  box-shadow: -1px -2px 0 rgba(0, 0, 0, 0.25);
  transform: rotate(-0.9deg);
}

.hw-sentence-card__tab--active {
  height: 46px;
  margin-bottom: -4px;
  z-index: 1;
  box-shadow: -2px -3px 0 rgba(0, 0, 0, 0.45);
}
.hw-sentence-card__tab--translate.hw-sentence-card__tab--active {
  background: #fcd34d;
}
.hw-sentence-card__tab--simplify.hw-sentence-card__tab--active {
  background: #93c5fd;
}
.hw-sentence-card__tab--analyze.hw-sentence-card__tab--active {
  background: #6ee7b7;
}

.hw-sentence-card__body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--hw-dict-bg);
  border-radius: 0 20px 24px 10px;
  border: 3px solid #1a1a1a;
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.85);
  position: relative;
  z-index: 2;
}

.hw-sentence-card__head {
  flex-shrink: 0;
  padding: 14px 14px 12px;
  background: var(--hw-dict-surface);
  border-bottom: 2px solid var(--hw-dict-border);
}

.hw-sentence-card__body[data-active-tab='translate'] .hw-sentence-card__head {
  background: #fef9c3;
}
.hw-sentence-card__body[data-active-tab='simplify'] .hw-sentence-card__head {
  background: #dbeafe;
}
.hw-sentence-card__body[data-active-tab='analyze'] .hw-sentence-card__head {
  background: #dcfce7;
}

.hw-sentence-card__headline {
  margin: 0;
  font-family: 'Gaegu', system-ui, sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.35;
  color: var(--hw-dict-text);
  word-break: break-word;
}

.hw-sentence-card__scroll {
  flex: 1 1 auto;
  min-height: 0;
  padding: 14px 14px 12px;
}

.hw-sentence-card__section {
  margin-bottom: 20px;
}
.hw-sentence-card__section:last-child {
  margin-bottom: 4px;
}

.hw-sentence-card__section-label {
  margin: 0 0 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hw-dict-dim);
}

.hw-sentence-card__translation-body {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: #374151;
  word-break: break-word;
}

.hw-sentence-card__footer {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 10px 14px 12px;
  border-top: 2px solid var(--hw-dict-border);
  background: var(--hw-dict-surface);
}

/* Wrapper to give room for the sentence card's hard shadow */
.mock-news-body .hw-sentence-card {
  margin-right: 10px;
  margin-bottom: 10px;
}

/* ── Footer CTA — dark panel ─────────────────────────────── */
.footer-cta {
  text-align: center;
  padding: 80px 24px;
  background: var(--kwl-pop-page);
  position: relative;
  overflow: hidden;
}

.footer-cta__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.footer-cta .container {
  position: relative;
  z-index: 1;
}

.footer-cta__badge {
  display: inline-block;
  font-family: var(--font-hand);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  padding: 6px 18px;
  margin-bottom: 18px;
}

.footer-cta__headline {
  font-family: var(--font-hand);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
  margin-bottom: 12px;
  color: #fff;
}

.footer-cta__sub {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 36px;
}

.footer-cta__note {
  margin-top: 16px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  background: var(--kwl-pop-page);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 32px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer__logo {
  font-family: var(--font-hand);
  font-size: 1rem;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.75);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer__logo-mark {
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
}

.footer a {
  color: rgba(255, 255, 255, 0.4);
  text-underline-offset: 3px;
}
.footer a:hover {
  color: rgba(255, 255, 255, 0.85);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 20px;
}

/* ── Legal / privacy (PIPA notice) ───────────────────────── */
.legal-page .legal {
  padding: 48px 24px 72px;
}

.legal__inner {
  max-width: 40rem;
  margin: 0 auto;
}

.legal__header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: var(--border);
}

.legal__label {
  font-family: var(--font-hand);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mid);
  margin-bottom: 8px;
}

.legal__title {
  font-family: var(--font-hand);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  line-height: 1.2;
  margin-bottom: 10px;
}

.legal__meta {
  font-size: 0.95rem;
  color: var(--ink-mid);
}

.legal__block {
  margin-bottom: 2rem;
}

.legal__block--en {
  padding: 1.25rem 1.35rem;
  background: rgba(255, 255, 255, 0.55);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.legal__h2 {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
  color: var(--ink);
}

.legal__h3 {
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 700;
  margin: 1.25rem 0 0.5rem;
  color: var(--ink);
}

.legal__block p {
  margin-bottom: 0.75rem;
  font-size: 1rem;
  color: var(--ink);
}

.legal__block p:last-child {
  margin-bottom: 0;
}

.legal__list {
  margin: 0.5rem 0 0.75rem 1.25rem;
  font-size: 0.98rem;
}

.legal__list li {
  margin-bottom: 0.45rem;
}

.legal__list--plain {
  list-style: none;
  margin-left: 0;
  padding-left: 0;
}

.legal__list--plain li {
  margin-bottom: 0.5rem;
}

.legal__table-wrap {
  overflow-x: auto;
  margin: 1rem 0;
  border: var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.45);
}

.legal__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.legal__table th,
.legal__table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.legal__table th {
  font-weight: 700;
  background: rgba(0, 0, 0, 0.04);
  width: 38%;
}

.legal__table tr:last-child th,
.legal__table tr:last-child td {
  border-bottom: none;
}

.legal__block a {
  color: var(--ink);
  text-underline-offset: 3px;
}

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

/* ── Legend ──────────────────────────────────────────────── */
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--ink-mid);
  align-items: center;
}

.legend__item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.legend__swatch-unknown {
  display: inline-block;
  width: 28px;
  height: 3px;
  background: repeating-linear-gradient(
    90deg,
    var(--accent-red) 0,
    var(--accent-red) 3px,
    transparent 3px,
    transparent 6px
  );
  border-radius: 2px;
}

.legend__swatch-seen {
  display: inline-block;
  width: 28px;
  height: 3px;
  background: var(--accent-yellow);
  border-radius: 2px;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 720px) {
  .soon__screenshots {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .nav {
    padding: 12px 16px;
  }
  section {
    padding: 52px 16px;
  }
  .demo__reader {
    padding: 16px;
  }
  .hero__mascot {
    display: none;
  }
}
