@font-face {
  font-family: "Pretendard Variable";
  font-style: normal;
  font-weight: 45 920;
  font-display: swap;
  src: url("../fonts/PretendardVariable.woff2") format("woff2-variations");
}

:root {
  color-scheme: light;
  --canvas: #f3f0ea;
  --canvas-2: #ebe6dc;
  --ink: #1c1a17;
  --muted: #5c5852;
  --faint: #6a655c;
  --line: rgba(28, 26, 23, 0.12);
  --line-strong: rgba(28, 26, 23, 0.2);
  --accent: #0165fc;
  --accent-hover: #0054d6;
  --accent-text: #004fc4;
  --on-accent: #fff;
  --cinema: #0b0c10;
  --cinema-mid: #12141a;
  --cinema-text: #eef0f6;
  --slot2: #ffe566;
  --purple: #8e2cfb;
  --surface: #14161c;
  --surface-2: #1c1f27;
  --surface-3: #262a35;
  --ui-line: rgba(255, 255, 255, 0.08);
  --ui-line-strong: rgba(255, 255, 255, 0.14);
  --ui-muted: #9aa1ae;
  --danger: #b4232c;
  --radius: 2px;
  --radius-ui: 8px;
  --wrap: 1120px;
  --gutter: 24px;
  --header: 56px;
  --font: "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", "Noto Sans KR", "Hiragino Sans", "Yu Gothic", "Noto Sans JP", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", "Segoe UI", system-ui, sans-serif;
  --focus: 0 0 0 2px var(--canvas), 0 0 0 4px var(--accent);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 12px);
  background: var(--canvas);
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
}

img,
svg,
figure {
  display: block;
  max-width: 100%;
}

figure {
  margin: 0;
}

h1,
h2,
h3,
p,
dl,
dd,
ul {
  margin: 0;
}

a {
  color: var(--accent-text);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover {
  color: var(--ink);
}

:focus {
  outline: none;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -44px;
  z-index: 80;
  padding: 8px 12px;
  background: var(--ink);
  color: var(--canvas);
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 12px;
  color: var(--canvas);
}

.wrap {
  width: min(var(--wrap), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
}

.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;
}

[id] {
  scroll-margin-top: calc(var(--header) + 12px);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header);
  border-bottom: 1px solid var(--line);
  background: var(--canvas);
  background: color-mix(in srgb, var(--canvas) 92%, transparent);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header);
  gap: 16px;
}

.brand-link {
  display: flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.brand-link:hover {
  color: inherit;
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.logo-mark {
  flex: none;
}

.wordmark {
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
}

.wordmark span {
  color: inherit;
  font-weight: inherit;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-nav > a {
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
}

.site-nav > a:hover {
  color: var(--ink);
}

.lang-form {
  display: flex;
  align-items: center;
}

.lang-form select {
  width: auto;
  min-width: 7.5rem;
  height: 32px;
  padding: 0 22px 0 0;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  background-color: transparent;
  background-position: right 0 center;
  color: var(--ink);
  font-size: 13px;
}

.lang-form select:hover {
  border-color: var(--ink);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-inline-end: -10px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.nav-toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.15s ease, top 0.15s ease;
}

.nav-toggle span:first-child {
  top: 18px;
}

.nav-toggle span:last-child {
  top: 25px;
}

.site-header.is-open .nav-toggle span:first-child {
  top: 21.5px;
  transform: rotate(45deg);
}

.site-header.is-open .nav-toggle span:last-child {
  top: 21.5px;
  transform: rotate(-45deg);
}

.nav-toggle:focus-visible {
  box-shadow: var(--focus);
}

/* Buttons & links */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn:hover {
  background: var(--canvas-2);
  color: var(--ink);
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  border-color: transparent;
  color: var(--on-accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--on-accent);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-sm {
  height: 32px;
  padding: 0 12px;
  font-size: 13px;
}

.btn.is-disabled,
.btn:disabled {
  cursor: not-allowed;
  pointer-events: none;
}

.btn-primary.is-disabled,
.btn-primary:disabled {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--muted);
}

.text-link {
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

.text-link:hover {
  color: var(--accent-text);
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(18rem, 0.9fr) minmax(0, 1.1fr);
  min-height: min(36.5rem, calc(72svh - var(--header)));
  align-items: stretch;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 36rem;
  margin-left: max(var(--gutter), calc(50vw - (var(--wrap) / 2)));
  margin-right: clamp(20px, 4vw, 56px);
  padding-block: clamp(28px, 4.5vh, 52px);
}

.hero-copy h1 {
  font-size: clamp(40px, 6.4vw, 68px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.hero-body {
  margin-top: 20px;
  max-width: 38ch;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  margin-top: 32px;
}

.hero-meta {
  margin-top: 18px;
  color: var(--faint);
  font-size: 13px;
}

.hero-note {
  margin-top: 8px;
  color: var(--faint);
  font-size: 13px;
}

.hero-cinema {
  position: relative;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 24px 24px 32px;
  background: var(--cinema);
  overflow: hidden;
}

.hero-cinema::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.45));
}

.sub-stack {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.28em;
  width: max-content;
  max-width: 100%;
}

.sub-line {
  display: inline-block;
  padding: 0.12em 0.48em;
  border-radius: 0.3em;
  font-weight: 650;
  line-height: 1.28;
  letter-spacing: 0.01em;
  background: rgba(0, 0, 0, 0.32);
}

.sub-line.origin {
  font-size: clamp(18px, 2.4vw, 32px);
  color: #fff;
}

.sub-line.second {
  font-size: clamp(16px, 2.1vw, 28px);
  color: var(--slot2);
}

.still-langs {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 14px;
  color: rgba(238, 240, 246, 0.55);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* How */

.how {
  padding: clamp(80px, 12vw, 148px) 0 clamp(72px, 10vw, 120px);
  background: var(--canvas-2);
  border-top: 1px solid var(--line);
}

.how-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  grid-template-areas:
    "copy specimen"
    "note specimen";
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.how-copy {
  grid-area: copy;
}

.specimen {
  grid-area: specimen;
  align-self: end;
  padding-bottom: 6px;
}

.how-note {
  grid-area: note;
  align-self: end;
  max-width: 42ch;
  color: var(--faint);
  font-size: 13.5px;
  line-height: 1.55;
}

.how-copy h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.18;
}

.how-copy .lead {
  margin-top: 20px;
  max-width: 38ch;
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.6;
}

.specimen .label {
  display: block;
  margin-bottom: 8px;
  color: var(--faint);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.specimen .origin,
.specimen .ko {
  margin: 0;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 550;
  letter-spacing: -0.03em;
  line-height: 1.28;
}

.specimen .ko {
  margin-top: 4px;
}

.specimen .pair + .pair {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

/* Panel */

.panel-band {
  padding: clamp(64px, 10vw, 128px) 0;
  overflow: hidden;
  background: var(--canvas);
  border-top: 1px solid var(--line);
}

.panel-split {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.panel-copy h2 {
  font-size: clamp(28px, 3.8vw, 40px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.18;
}

.panel-copy p {
  margin-top: 16px;
  max-width: 36ch;
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.6;
}

.panel-crop {
  position: relative;
  min-height: 420px;
}

.panel-crop .fs-ui {
  position: absolute;
  top: 0;
  right: -12px;
  width: min(360px, 100%);
  transform: scale(1.06);
  transform-origin: top right;
}

/* Product UI (dark, matches the extension) */

.fs-ui {
  border: 1px solid var(--ui-line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--cinema-text);
  font-size: 13px;
  line-height: 1.45;
  overflow: hidden;
}

.panel-mock {
  padding: 12px;
  display: grid;
  gap: 10px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 24px;
}

.panel-head .wordmark {
  color: var(--cinema-text);
}

.slot-card {
  padding: 12px;
  border: 1px solid var(--ui-line);
  border-radius: 12px;
  background: var(--surface);
}

.slot-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.slot-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}

.slot-name::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.slot-card.slot-2 .slot-name::before {
  background: var(--purple);
}

.chip {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 6px;
  border-radius: 5px;
  font-size: 10.5px;
  font-weight: 600;
}

.chip-orig {
  color: var(--ui-muted);
  background: var(--surface-2);
  border: 1px solid var(--ui-line);
}

.chip-tr {
  color: #6b9bff;
  background: rgba(31, 107, 255, 0.16);
}

.switch {
  margin-left: auto;
  width: 36px;
  height: 20px;
  border-radius: 999px;
  background: var(--accent);
  border: 1px solid var(--accent);
  position: relative;
}

.switch::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  right: 2px;
  top: 2px;
  border-radius: 50%;
  background: #fff;
}

.fake-select,
.seg,
.ctl {
  margin-top: 10px;
}

.fake-select {
  height: 30px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface-2);
  border: 1px solid var(--ui-line-strong);
  border-radius: var(--radius-ui);
  color: var(--cinema-text);
}

.seg {
  display: flex;
  height: 28px;
  border: 1px solid var(--ui-line-strong);
  border-radius: var(--radius-ui);
  overflow: hidden;
  background: var(--surface-2);
}

.seg span {
  flex: 1;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 500;
  border-right: 1px solid var(--ui-line);
  color: var(--ui-muted);
}

.seg span:last-child {
  border-right: 0;
}

.seg span.on {
  background: var(--surface);
  color: var(--cinema-text);
  font-weight: 600;
}

.ctl {
  display: grid;
  gap: 6px;
}

.ctl-head {
  display: flex;
  justify-content: space-between;
  color: var(--ui-muted);
  font-size: 12px;
}

.ctl-track {
  height: 4px;
  border-radius: 99px;
  background: var(--surface-3);
  position: relative;
}

.ctl-track b {
  position: absolute;
  inset: 0 auto 0 0;
  width: 46%;
  border-radius: 99px;
  background: var(--accent);
}

.ctl-track b::after {
  content: "";
  position: absolute;
  right: -6px;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  border-radius: 50%;
  background: #fff;
}

.swatches {
  display: flex;
  gap: 8px;
  align-items: center;
}

.swatches em {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-style: normal;
}

.swatches em.on {
  box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px var(--ui-muted);
}

.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: var(--ui-muted);
  font-size: 12.5px;
}

.check-row b {
  width: 15px;
  height: 15px;
  border-radius: 3px;
  background: var(--accent);
  flex: none;
}

/* Engines */

.engines-band {
  padding: clamp(80px, 11vw, 140px) 0;
  background: var(--canvas-2);
  border-top: 1px solid var(--line);
}

.engines-band h2 {
  font-size: clamp(28px, 3.8vw, 40px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.18;
}

.engines-band .intro {
  margin: 14px 0 40px;
  max-width: 46ch;
  color: var(--muted);
}

.engine-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.engine {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
  gap: 12px 32px;
  padding: 22px 0 24px;
  border-bottom: 1px solid var(--line);
}

.engine.is-lead {
  padding-top: 28px;
  padding-bottom: 32px;
}

.engine h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.engine.is-lead h3 {
  font-size: 22px;
  letter-spacing: -0.03em;
}

.engine .place {
  display: block;
  margin-top: 4px;
  color: var(--faint);
  font-size: 12.5px;
  font-weight: 500;
}

.engine .lead {
  color: var(--ink);
  font-size: 15px;
}

.engine .detail {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

/* Changelog */

.changelog-band {
  padding: clamp(48px, 7vw, 80px) 0;
  border-top: 1px solid var(--line);
}

.changelog-band h2 {
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
}

.version-line {
  margin-top: 10px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.version-line span {
  font-weight: 400;
  color: var(--faint);
  font-size: 14px;
}

.change-list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.change-row {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 16px;
  align-items: start;
}

.change-kind {
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
  padding-top: 3px;
}

.change-row p {
  color: var(--ink);
}

.more-link {
  display: inline-block;
  margin-top: 22px;
}

.change-page .changelog-band {
  padding-top: 48px;
  padding-bottom: 96px;
  border-top: 0;
}

.change-page .changelog-band h2 {
  font-size: clamp(28px, 3.4vw, 36px);
  font-weight: 600;
  letter-spacing: -0.035em;
  color: var(--ink);
}

.change-page .entry + .entry {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

/* Close: FAQ + feedback */

.close-band {
  padding: clamp(72px, 10vw, 128px) 0 96px;
  background: var(--canvas-2);
  border-top: 1px solid var(--line);
}

.close-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(40px, 7vw, 88px);
  align-items: start;
}

.faq-block h2,
.feedback-block h2 {
  font-size: clamp(26px, 3.2vw, 34px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.feedback-block .lead {
  margin-top: 12px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.feedback-block .mail-line {
  margin-top: 16px;
}

.feedback-block .flash-err {
  margin-top: 12px;
}

.faq {
  display: grid;
  gap: 0;
  margin-top: 20px;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  min-height: 52px;
  padding: 16px 0;
  font-weight: 600;
  letter-spacing: -0.02em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

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

.faq summary::after {
  content: "";
  width: 8px;
  height: 8px;
  flex: none;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}

.faq details[open] summary::after {
  transform: rotate(225deg);
}

.faq details p {
  margin: 0 0 18px;
  color: var(--muted);
  max-width: 46rem;
}

/* Forms */

.form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.field {
  display: grid;
  gap: 6px;
}

.field span,
.field label {
  color: var(--muted);
  font-size: 13px;
}

.req {
  color: var(--faint);
}

input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea {
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #faf8f4;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
}

textarea {
  height: auto;
  min-height: 140px;
  padding: 10px 12px;
  resize: vertical;
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16' fill='none' stroke='%235c5852' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
}

input:hover,
select:hover,
textarea:hover {
  border-color: rgba(28, 26, 23, 0.35);
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(1, 101, 252, 0.18);
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  margin: 0;
  color: var(--faint);
  font-size: 13px;
  line-height: 1.5;
}

.form-note a {
  color: var(--accent-text);
}

.thanks h2 {
  font-size: clamp(26px, 3vw, 32px);
  letter-spacing: -0.03em;
}

.thanks p {
  margin-top: 10px;
  color: var(--muted);
}

.flash-err {
  color: var(--danger);
  font-size: 14px;
}

/* Footer */

.site-footer {
  padding: 48px 0 40px;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: flex-start;
}

.footer-brand p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: flex-end;
}

.footer-links a,
.footer-muted {
  color: var(--muted);
  font-size: 13.5px;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--ink);
}

.footer-muted {
  opacity: 0.55;
}

.footer-legal {
  margin-top: 28px;
}

.footer-legal p {
  margin: 0;
  max-width: 52rem;
  color: var(--faint);
  font-size: 12.5px;
  line-height: 1.6;
}

/* Legal / admin */

.legal,
.admin-page {
  padding: 56px 0 96px;
}

.legal h1,
.admin-page h1 {
  font-size: clamp(28px, 3.4vw, 36px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.legal .prose {
  max-width: 42rem;
}

.legal .prose h2 {
  margin: 32px 0 8px;
  font-size: 16px;
  font-weight: 600;
}

.legal .prose p,
.legal .prose li {
  color: var(--muted);
}

.legal .prose p + p {
  margin-top: 12px;
}

.legal .prose ul {
  padding-left: 1.2em;
}

.admin-login,
.admin-list {
  max-width: 760px;
}

.ticket {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.ticket-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--faint);
  font-size: 12.5px;
  margin-bottom: 8px;
}

.ticket p {
  margin: 0;
  white-space: pre-wrap;
}

.ticket .ua {
  margin-top: 8px;
  color: var(--faint);
  font-size: 12px;
  word-break: break-all;
}

.admin-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

body.subpage .legal,
body.subpage .admin-page {
  padding-top: 48px;
}

/* Motion */

@media (prefers-reduced-motion: no-preference) {
  .hero-copy {
    animation: rise 0.55s ease both;
  }

  .hero-cinema .sub-stack {
    animation: rise 0.65s ease both;
    animation-delay: 0.1s;
  }
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-copy,
  .hero-cinema .sub-stack,
  .nav-toggle span {
    animation: none;
    transition: none;
  }
}

/* Breakpoints */

@media (max-width: 960px) {
  .hero,
  .how-grid,
  .panel-split,
  .engine,
  .close-grid {
    grid-template-columns: 1fr;
  }

  .how-grid {
    grid-template-areas:
      "copy"
      "specimen"
      "note";
    align-items: start;
    gap: 36px;
  }

  .how-note {
    align-self: start;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 16px;
    background: var(--canvas);
    border-bottom: 1px solid var(--line);
  }

  .site-header.is-open .site-nav {
    display: flex;
  }

  .site-nav > a,
  .site-nav .btn {
    min-height: 44px;
    height: 44px;
    width: 100%;
    justify-content: flex-start;
  }

  .lang-form {
    margin: 8px 0;
  }

  .lang-form select {
    width: 100%;
    height: 44px;
  }

  .hero {
    min-height: 0;
  }

  .hero-copy {
    max-width: none;
    margin-left: var(--gutter);
    margin-right: var(--gutter);
    padding-block: 32px 24px;
  }

  .hero-cinema {
    min-height: 40svh;
  }

  .panel-crop {
    min-height: 0;
  }

  .panel-crop .fs-ui {
    position: relative;
    top: auto;
    right: auto;
    width: min(360px, 100%);
    transform: none;
  }

  .footer-inner {
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .close-grid {
    gap: 0;
  }

  .feedback-block {
    margin-top: 48px;
    padding-top: 48px;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 720px) {
  :root {
    --gutter: 16px;
    --header: 52px;
  }

  .hero-copy h1 {
    font-size: 34px;
    line-height: 1.14;
    letter-spacing: -0.032em;
  }

  .hero-body {
    max-width: none;
    font-size: 16px;
  }

  .hero-cinema {
    aspect-ratio: 16 / 10;
    min-height: 0;
  }

  .how {
    padding: 56px 0 48px;
  }

  .how-copy h2,
  .panel-copy h2,
  .engines-band h2,
  .faq-block h2,
  .feedback-block h2 {
    font-size: 28px;
    line-height: 1.22;
  }

  .specimen .origin,
  .specimen .ko {
    font-size: 22px;
  }

  .panel-band {
    padding: 48px 0 56px;
  }

  .engines-band {
    padding: 56px 0;
  }

  .engine.is-lead h3 {
    font-size: 18px;
  }

  .change-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .close-band {
    padding: 56px 0 72px;
  }
}
