:root {
  --bg: #f3efe6;
  --bg-elevated: #fffdf8;
  --ink: #1c1a16;
  --muted: #6f6a62;
  --line: color-mix(in oklab, var(--ink) 12%, transparent);
  --line-strong: color-mix(in oklab, var(--ink) 22%, transparent);
  --accent: #1c1a16;
  --accent-fg: #f3efe6;
  --device: #0c0c0d;
  --device-fg: #f3f0e8;

  --font-display: "Fraunces", "Times New Roman", serif;
  --font-sans: "Outfit", ui-sans-serif, system-ui, sans-serif;

  --text-xs: 0.75rem;
  --text-sm: 0.9375rem;
  --text-base: 1.0625rem;
  --text-lg: clamp(1.125rem, 1rem + 0.4vw, 1.25rem);
  --text-xl: clamp(1.75rem, 1.2rem + 1.4vw, 2.35rem);
  --text-hero: clamp(2.6rem, 1.4rem + 5vw, 5.4rem);

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 72px;
  --space-9: 112px;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 28px;

  --shadow: 0 24px 60px -36px rgb(28 26 22 / 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --wrap: min(1120px, calc(100% - 40px));
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--bg);
  color: var(--ink);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.55;
  background: var(--bg);
  color: var(--ink);
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.12;
  text-wrap: balance;
  margin: 0;
}

p {
  text-wrap: pretty;
  margin: 0;
}

button:not(:disabled),
[role="button"]:not(:disabled),
.btn {
  cursor: pointer;
}

::selection {
  background: var(--ink);
  color: var(--bg);
}

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

.kicker {
  margin: 0;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.muted {
  color: var(--muted);
}

/* Nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  width: var(--wrap);
  margin: 0 auto;
  padding: var(--space-4) 0;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.brand svg {
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  font-size: var(--text-sm);
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
}

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

.nav-end {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lang-switch button {
  width: 30px;
  height: 20px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  overflow: hidden;
  background: #fff;
  line-height: 0;
  cursor: pointer;
}

.lang-switch button svg {
  width: 100%;
  height: 100%;
  display: block;
}

.lang-switch button.is-on {
  outline: 2px solid var(--ink);
  outline-offset: 1px;
}

.legal-bind {
  margin: 0 0 var(--space-4);
  font-size: var(--text-sm);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-fg);
  font-family: inherit;
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  transition:
    transform 150ms var(--ease),
    opacity 150ms var(--ease);
}

.btn:hover {
  opacity: 0.88;
}

.btn:active {
  transform: scale(0.98);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

.btn-ghost:hover {
  opacity: 1;
  background: color-mix(in oklab, var(--ink) 5%, transparent);
}

.btn-light {
  background: var(--device-fg);
  color: var(--device);
}

/* Hero */

.hero {
  padding: var(--space-8) 0 var(--space-6);
}

.hero-copy {
  max-width: 18em;
}

.hero h1 {
  margin-top: var(--space-4);
  font-size: var(--text-hero);
}

.hero-lead {
  margin-top: var(--space-5);
  max-width: 36rem;
  font-size: var(--text-lg);
  color: var(--muted);
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
  font-size: var(--text-sm);
  color: var(--muted);
}

.hero-meta strong {
  display: block;
  color: var(--ink);
  font-weight: 500;
}

/* Device + compare */

.stage {
  padding-bottom: var(--space-9);
}

.device {
  background: var(--device);
  color: var(--device-fg);
  border-radius: var(--radius-xl);
  padding: 12px;
  box-shadow: var(--shadow);
}

.device-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px 14px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--device-fg) 55%, transparent);
}

.device-dots {
  display: flex;
  gap: 6px;
}

.device-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: color-mix(in oklab, var(--device-fg) 22%, transparent);
}

.compare {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 3 / 2;
  background: #111;
  touch-action: none;
  user-select: none;
  container-type: size;
}

.compare img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.compare-before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 52%;
  overflow: hidden;
}

.compare-before img {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100cqw;
  height: 100cqh;
  max-width: none;
  object-fit: cover;
  filter: saturate(0.55) contrast(0.86) sepia(0.18);
}

.compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 52%;
  width: 24px;
  transform: translateX(-50%);
  cursor: ew-resize;
}

.compare-handle::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: #ded9ce;
}

.compare-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 36px;
  height: 36px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #f3f0e8;
  color: #0c0c0d;
  display: grid;
  place-items: center;
}

.compare-label {
  position: absolute;
  top: 12px;
  z-index: 2;
  padding: 5px 9px;
  border-radius: 6px;
  background: rgb(12 12 13 / 0.62);
  color: #f3f0e8;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.compare-label.is-before {
  left: 12px;
}

.compare-label.is-after {
  right: 12px;
}

/* Sections */

.section {
  padding: var(--space-9) 0;
  border-top: 1px solid var(--line);
}

.section-head {
  display: grid;
  gap: var(--space-4);
  max-width: 38rem;
  margin-bottom: var(--space-7);
}

.section h2 {
  font-size: var(--text-xl);
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}

.card h3 {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-2);
}

.card p {
  color: var(--muted);
  font-size: var(--text-sm);
}

.expect {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

.expect ul {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.55rem;
  color: var(--muted);
  font-size: var(--text-sm);
}

.expect li + li {
  margin-top: 0;
}

.expect-yes h3 {
  color: #2c5a3c;
}

.expect-no h3 {
  color: #7a3b32;
}

.vs-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  box-shadow: var(--shadow);
}

.vs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
  min-width: 36rem;
  color: var(--ink);
  background: var(--bg-elevated);
}

.vs-table th,
.vs-table td {
  padding: 1rem 1.15rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-weight: 500;
  line-height: 1.45;
}

.vs-table thead th {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  background: color-mix(in oklab, var(--bg) 55%, var(--bg-elevated));
}

.vs-table tbody th {
  width: 18%;
  white-space: nowrap;
  font-weight: 600;
}

.vs-table tbody tr:nth-child(even) th,
.vs-table tbody tr:nth-child(even) td {
  background: color-mix(in oklab, var(--bg) 40%, var(--bg-elevated));
}

.vs-table tbody tr:last-child th,
.vs-table tbody tr:last-child td {
  border-bottom: 0;
}

.vs-note {
  margin-top: var(--space-4);
  max-width: 40rem;
  font-size: var(--text-xs);
}

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

.step {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: var(--space-4);
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--line);
}

.step b {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
}

.pair {
  display: grid;
  gap: var(--space-6);
  align-items: center;
}

.pair img {
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.pair-copy h2 {
  margin-top: var(--space-3);
}

.pair-copy p {
  margin-top: var(--space-4);
  color: var(--muted);
}

/* Pricing */

.bill-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin: 0 0 var(--space-6);
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
}

.bill-tabs button {
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 500;
}

.bill-tabs button.is-on {
  background: var(--ink);
  color: var(--bg);
}

.legal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  margin: 0 0 var(--space-6);
  border-radius: 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
}

.legal-tabs button {
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: var(--text-sm);
  font-weight: 500;
}

.legal-tabs button.is-on {
  background: var(--ink);
  color: var(--bg);
}

.legal-panel {
  display: none;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  max-width: 46rem;
}

.legal-panel.is-on {
  display: block;
}

.legal-panel h3 {
  margin: 0 0 var(--space-4);
  font-size: var(--text-xl);
}

.legal-panel p,
.legal-panel li {
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.6;
}

.legal-panel p + p,
.legal-panel ul {
  margin-top: var(--space-3);
}

.legal-panel ul {
  margin: var(--space-3) 0 0;
  padding: 0 0 0 1.1rem;
  display: grid;
  gap: 8px;
}

.legal-panel strong {
  color: var(--ink);
  font-weight: 500;
}

.legal-meta {
  margin-top: var(--space-5) !important;
  font-size: var(--text-xs) !important;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.footer-legal a {
  text-decoration: none;
}

.footer-legal a:hover {
  text-decoration: underline;
}

.withdraw-form {
  margin-top: var(--space-4);
  padding: var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg);
}

.withdraw-form .btn {
  justify-self: start;
}

.vat-note {
  margin-top: var(--space-5);
  color: var(--muted);
  font-size: var(--text-sm);
}

.plans {
  display: grid;
  gap: var(--space-4);
}

.plan {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.plan.is-main {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.plan.is-main .muted,
.plan.is-main .kicker {
  color: color-mix(in oklab, var(--bg) 62%, transparent);
}

.price {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 2rem + 2vw, 3.4rem);
  letter-spacing: -0.04em;
  line-height: 1;
}

.price span {
  display: block;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  letter-spacing: 0;
  margin-top: 8px;
}

.plan ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  font-size: var(--text-sm);
}

.plan li::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 10px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.45;
  transform: translateY(-1px);
}

.plan .btn {
  margin-top: auto;
}

/* FAQ */

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

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

.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
}

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

.faq summary::after {
  content: "";
  width: 10px;
  height: 10px;
  margin-top: 6px;
  flex: none;
  border-right: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  transform: rotate(45deg);
  transition: transform 180ms var(--ease);
}

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

.faq p {
  margin-top: var(--space-3);
  color: var(--muted);
  max-width: 42rem;
}

/* Footer */

.footer {
  padding: var(--space-8) 0 var(--space-6);
  border-top: 1px solid var(--line);
  display: grid;
  gap: var(--space-5);
  font-size: var(--text-sm);
  color: var(--muted);
}

.footer strong {
  color: var(--ink);
  font-weight: 500;
}

.footer a {
  color: var(--ink);
  text-decoration: none;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-4);
}

@media (min-width: 720px) {
  .grid-3,
  .feat-grid,
  .expect,
  .plans {
    grid-template-columns: repeat(2, 1fr);
  }

  .pair {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .nav-cta {
    display: inline-flex;
  }
}

@media (min-width: 980px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .feat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .plans {
    grid-template-columns: 1fr 1.08fr 1fr;
  }
}

@media (max-width: 719px) {
  .nav-links a:not(.btn) {
    display: none;
  }

  .lang-switch {
    margin-left: 12px;
  }
}

.form {
  display: grid;
  gap: var(--space-4);
  max-width: 28rem;
}

.form label,
.field-label {
  display: grid;
  gap: 6px;
  font-size: var(--text-sm);
  font-weight: 500;
}

.form input,
.form select,
.form textarea {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  color: var(--ink);
  font: inherit;
}

.form textarea {
  min-height: 88px;
  padding: 10px 12px;
  resize: vertical;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.form.is-wide {
  max-width: 40rem;
}

.form-row label {
  flex: 1;
  min-width: 10rem;
}

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 400;
}

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

.check input {
  margin-top: 4px;
  min-height: auto;
}

.notice {
  padding: var(--space-4);
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  font-size: var(--text-sm);
}

.notice.is-error {
  border-color: color-mix(in oklab, #8a2f2f 45%, var(--line));
}

.audit {
  margin: 0 0 var(--space-6);
  padding: var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.audit-title {
  font-size: 1.1rem;
  margin: 4px 0 12px;
}

.audit-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
  max-height: 22rem;
  overflow: auto;
}

.audit-list li {
  display: grid;
  gap: 2px;
  font-size: var(--text-sm);
}

.audit-list li.is-bad strong {
  color: #8a2f2f;
}

.code-block {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: clamp(1.2rem, 1rem + 1vw, 1.7rem);
  letter-spacing: 0.08em;
  padding: var(--space-5);
  border-radius: var(--radius-md);
  background: var(--ink);
  color: var(--bg);
  text-align: center;
}

.table-wrap {
  overflow-x: auto;
}

table.licenses {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

table.licenses th,
table.licenses td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

table.licenses th {
  font-weight: 500;
  color: var(--muted);
}

table.licenses code {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.85rem;
}

.page-main {
  padding: var(--space-8) 0 var(--space-9);
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
  margin: var(--space-6) 0 var(--space-5);
}

.stats div {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-4);
}

.stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: -0.03em;
}

.stats span {
  color: var(--muted);
  font-size: var(--text-sm);
}

.account-form {
  max-width: none;
  margin: var(--space-5) 0 var(--space-5);
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
  margin: var(--space-5) 0 var(--space-4);
}

.toolbar input[type="search"] {
  flex: 1;
  min-width: 12rem;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--bg-elevated);
  color: var(--ink);
  font: inherit;
}

.filters {
  display: flex;
  gap: 6px;
}

.btn-tiny {
  min-height: 36px;
  padding: 0 10px;
  margin-left: 8px;
}

.btn.is-on {
  background: var(--ink);
  color: var(--bg);
}

tr.is-revoked td {
  opacity: 0.55;
}

tr.activations td {
  padding-top: 0;
  padding-bottom: var(--space-4);
}

.seat {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: var(--text-sm);
}

@media (min-width: 720px) {
  .stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

.pay-box {
  display: grid;
  gap: var(--space-5);
  align-items: start;
  margin-top: var(--space-5);
}

.pay-box .stats {
  margin: 0;
  grid-template-columns: 1fr 1fr;
}

.pay-qr {
  margin: 0;
  padding: var(--space-4);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  text-align: center;
  justify-self: start;
}

.pay-qr svg {
  width: 220px;
  height: 220px;
  display: block;
  margin: 0 auto;
}

.pay-qr figcaption {
  margin-top: var(--space-3);
  color: var(--muted);
  font-size: var(--text-sm);
  max-width: 220px;
}

.pay-box .stats strong {
  font-size: 1.05rem;
  letter-spacing: 0;
  word-break: break-word;
}

@media (min-width: 900px) {
  .pay-box {
    grid-template-columns: 1fr auto;
  }
}

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

  .btn,
  .faq summary::after {
    transition: none;
  }
}
