[hidden] { display: none !important; }
input[type="checkbox"] { width: auto; }
.band { grid-column: 1 / -1; }
.first-screen { align-content: start; }

:root {
  --ink: #1c1915;
  --muted: #5c564c;
  --paper: #fbf8f2;
  --page: #ebe4d6;
  --line: #e0d8c8;
  --card: #fffdf8;
  --green: #0e6b4f;
  --focus: #0f766e;
  color-scheme: light;
}

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

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--page);
  color: var(--ink);
  font: 14px/1.4 "Segoe UI", "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans", "Noto Sans CJK SC", "Noto Sans CJK JP", "Noto Sans KR", "WenQuanYi Micro Hei", "Droid Sans Fallback", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

button,
input { font: inherit; color: inherit; }

a { color: inherit; }

.skip {
  position: absolute;
  left: 8px;
  top: -40px;
  background: var(--paper);
  color: var(--ink);
  padding: 6px 10px;
  z-index: 30;
}

.skip:focus { top: 8px; }

.topnav {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 48px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  background: var(--ink);
  color: #f6f1e7;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.mark {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: linear-gradient(135deg, #e8a317, #0e6b4f);
}

.nav-tag {
  margin: 0;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #ddd4c4;
  font-size: 13px;
}

.lang-menu { position: relative; }

.lang-menu summary {
  list-style: none;
  cursor: pointer;
  height: 32px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  border: 1px solid rgba(246, 241, 231, 0.35);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
}

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

.lang-menu[open] .lang-list {
  display: grid;
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  min-width: 148px;
  padding: 6px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  z-index: 30;
}

.lang-list a {
  display: block;
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 6px;
}

.lang-list a[aria-current="page"] {
  background: var(--ink);
  color: var(--paper);
}

.lang-list a:hover { background: #efe7d8; }

.lang-list a[aria-current="page"]:hover { background: var(--ink); }

main {
  width: min(1400px, 100%);
  margin: 0 auto;
  padding: 4px 16px 2px;
  flex: 1;
}

.first-screen {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px 12px;
  align-content: start;
  align-items: stretch;
}

.intro h1 {
  margin: 0;
  font-size: 28px;
  line-height: 32px;
  letter-spacing: -0.03em;
  font-weight: 760;
}

.intro { min-width: 0; }

.dek {
  margin: 1px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 18px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 6px 10px 6px;
  min-width: 0;
}

.setup-title,
.chart-title,
.takeaway h3,
.offer h3,
.free h2 {
  margin: 0 0 6px;
  font-size: 15px;
  line-height: 18px;
  letter-spacing: -0.01em;
}

fieldset {
  border: 0;
  margin: 0 0 6px;
  padding: 0;
  min-width: 0;
}

legend {
  padding: 0;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 700;
}

.segment {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.segment label {
  position: relative;
  text-align: center;
  padding: 6px 8px;
  cursor: pointer;
  font-size: 13px;
}

.segment input[type="radio"] {
  position: absolute;
  inset: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.segment label:has(input:checked) {
  background: var(--ink);
  color: var(--paper);
}

.segment label:focus-within,
.choice:focus-within,
.price-editor summary:focus-visible,
.lang-menu summary:focus-visible,
button:focus-visible,
.offer-link:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.slider-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: baseline;
  font-size: 12px;
  font-weight: 700;
}

.slider-head output {
  font-weight: 650;
  color: var(--green);
}

input[type="range"] {
  width: 100%;
  margin: 2px 0 6px;
  accent-color: var(--green);
}

.choice {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 6px;
  align-items: center;
  margin: 3px 0;
  font-size: 13px;
}

.choice input[type="radio"] { margin: 0; }

.price-tag { color: var(--muted); font-variant-numeric: tabular-nums; }

.check {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
  margin: 4px 0;
  font-size: 13px;
}

input[type="checkbox"] {
  height: 1rem;
  margin: 0;
  accent-color: var(--green);
}

.money {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.money input[type="number"],
.price-grid input[type="number"] {
  width: 5rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 3px 6px;
  font-variant-numeric: tabular-nums;
}

.note,
.error,
.fine,
.billing-note {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.error { color: #8a3412; }

.price-editor { margin-top: 6px; }

.price-editor summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.price-date { margin: 6px 0 4px; font-size: 12px; color: var(--green); font-weight: 700; }

.price-grid label {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 5rem;
  gap: 6px;
  align-items: center;
  margin-top: 5px;
  font-size: 12px;
}

.unit { color: var(--muted); white-space: nowrap; }

.kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.kpi {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 4px 7px 4px;
  min-width: 0;
}

.kpi h3 {
  margin: 0;
  font-size: 11px;
  line-height: 14px;
  font-weight: 700;
  color: var(--muted);
}

.kpi-value {
  margin: 1px 0 0;
  font-size: 18px;
  line-height: 22px;
  font-weight: 760;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.kpi-detail {
  margin: 0;
  font-size: 12px;
  line-height: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sheet { width: 100%; border-collapse: collapse; margin-top: 4px; font-size: 12.5px; }

.sheet th,
.sheet td {
  padding: 3px 6px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.sheet th { font-size: 11px; color: var(--muted); font-weight: 700; }

.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

.editor-name { font-weight: 700; }

.badge {
  display: inline-block;
  margin-left: 4px;
  padding: 0 4px;
  border-radius: 999px;
  background: #f3ecdf;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  vertical-align: 1px;
}

tr.is-na { color: var(--muted); }

.chart-title { margin: 4px 0; }

.chart canvas {
  width: 100%;
  height: 72px;
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
  font-size: 11px;
}

.legend li { display: inline-flex; align-items: center; gap: 4px; }

.legend .is-na { opacity: 0.45; }

.swatch {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  display: inline-block;
}

.swatch-premiere { background: #c2410c; }
.swatch-capcut { background: #0f766e; }
.swatch-filmora { background: #6d28d9; }
.swatch-resolve { background: #b45309; }
.swatch-videostudio { background: #15803d; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 8px;
  margin-top: 6px;
}

.takeaway,
.offer {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 7px 8px;
  min-width: 0;
  background: #fff;
}

.takeaway ul {
  margin: 0;
  padding-left: 16px;
  font-size: 12.5px;
  line-height: 1.35;
}

.offer { background: #fff8ec; }

.kicker {
  margin: 0 0 4px;
  display: inline-block;
  padding: 1px 6px;
  border-radius: 999px;
  background: #1c1915;
  color: #f6f1e7;
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.disclosure {
  margin: 0 0 4px;
  padding: 5px 7px;
  border: 1px solid #e2c48a;
  border-radius: 8px;
  background: #fff4dc;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.3;
}

.offer h3 { font-size: 14px; }

.offer-headline {
  margin: 0;
  font-size: 16px;
  line-height: 20px;
  font-weight: 760;
  letter-spacing: -0.02em;
}

.offer-line,
.offer-scope { margin: 2px 0 0; font-size: 12.5px; }

.offer-link {
  display: inline-flex;
  align-items: center;
  margin-top: 6px;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  background: var(--ink);
  color: #f6f1e7;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.export-row { display: flex; justify-content: flex-end; margin-top: 4px; }

.export-row button {
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--paper);
  cursor: pointer;
  font-weight: 700;
}

.free h2 { margin-bottom: 2px; }

.free-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}

.free .fine { margin: 0; }

.free-grid h3 {
  display: inline;
  margin: 0;
  font-size: 12px;
}

.free-grid p {
  display: inline;
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
  color: #3f3a34;
}

.free-grid p::before { content: " "; }

.footer {
  height: 28px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  overflow: hidden;
  color: var(--muted);
}

.footer p {
  margin: 0;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px;
  line-height: 16px;
}

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

.missing { max-width: 640px; }

.missing ul { padding-left: 18px; }

.choice > span,
.check > span { min-width: 0; }

@media (min-width: 1100px) {
  .first-screen { grid-template-columns: 332px minmax(0, 1fr); }
  .intro h1 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 1099px) {
  .kpis,
  .split,
  .free-grid { grid-template-columns: 1fr; }
  .nav-tag { display: none; }
}

@media (max-width: 720px) {
  .price-grid label { grid-template-columns: minmax(0, 1fr) 5rem; }
  .price-grid .unit { display: none; }
}
