:root {
  color-scheme: light dark;
  --bg: #f4f6f2;
  --panel: #ffffff;
  --text: #14251e;
  --muted: #65716b;
  --line: rgba(20,37,30,.13);
  --accent: #153f31;
  --accent-soft: #e7efe9;
  --accent-text: #ffffff;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111713;
    --panel: #18211c;
    --text: #eef4f0;
    --muted: #a3aea8;
    --line: rgba(238,244,240,.13);
    --accent: #8bc9ad;
    --accent-soft: #23372e;
    --accent-text: #102018;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; }
.page {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 60px;
}
.nav {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.nav > div { display: flex; gap: 18px; }
.nav a { text-decoration: none; font-size: 13px; }
.nav a[aria-current="page"] { font-weight: 800; }
.brand { font-size: 17px !important; font-weight: 850; letter-spacing: -.03em; }
.home-hero {
  margin-top: 26px;
  padding: 54px;
  border-radius: 28px;
  background: var(--accent);
  color: var(--accent-text);
}
.eyebrow {
  margin: 0;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .12em;
}
h1 {
  margin: 14px 0 0;
  max-width: 820px;
  font-size: clamp(42px, 7vw, 72px);
  line-height: .98;
  letter-spacing: -.055em;
}
.policy h1 { color: var(--text); font-size: clamp(38px, 6vw, 60px); }
.lead {
  margin: 22px 0 0;
  max-width: 720px;
  color: inherit;
  opacity: .86;
  font-size: 16px;
  line-height: 1.7;
}
.policy .lead { color: var(--muted); opacity: 1; }
code {
  padding: 3px 6px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--text);
}
.home-hero code { background: rgba(255,255,255,.13); color: inherit; }
.chips { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips span {
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  font-size: 11px;
}
.cards {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
}
.cards article, .callout, .policy section {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
}
.cards h2, .callout h2, .policy h2 { margin: 0; font-size: 18px; }
.cards p, .callout p, .policy p, .policy li {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.callout { margin-top: 16px; }
.button-link {
  display: inline-block;
  margin-top: 8px;
  padding: 11px 14px;
  border-radius: 11px;
  background: var(--accent);
  color: var(--accent-text);
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
}
.policy { margin-top: 38px; }
.policy section { margin-top: 12px; }
.policy ul, .policy ol { padding-left: 22px; }
.updated { margin-top: 24px !important; font-size: 11px !important; }
footer {
  margin-top: 24px;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}
@media (max-width: 700px) {
  .home-hero { padding: 30px; }
  .cards { grid-template-columns: 1fr; }
  footer { flex-direction: column; gap: 6px; }
}


/* LocalType Pro purchase page */
.upgrade-hero {
  margin-top: 26px;
  padding: 44px;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, .7fr);
  gap: 30px;
  align-items: center;
  border-radius: 28px;
  background: var(--accent);
  color: var(--accent-text);
}

.upgrade-hero h1 {
  color: inherit;
}

.price-card {
  padding: 26px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 20px;
  background: rgba(255,255,255,.09);
  backdrop-filter: blur(12px);
}

.price-card > span,
.plan-tag {
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .1em;
}

.price-card strong {
  display: block;
  margin-top: 10px;
  font-size: 38px;
  letter-spacing: -.04em;
}

.price-card p {
  margin: 5px 0 0;
  color: rgba(255,255,255,.74);
  font-size: 12px;
}

.payment-button {
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}

.price-card .payment-button {
  width: 100%;
  margin-top: 20px;
  text-align: center;
  background: white;
  color: #153f31;
}

.payment-button:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.status-copy {
  margin-top: 10px !important;
  color: var(--muted) !important;
  font-size: 11px !important;
  line-height: 1.5 !important;
}

.price-card .status-copy {
  color: rgba(255,255,255,.72) !important;
}

.status-copy[data-tone="success"] {
  color: #2f765d !important;
}

.status-copy[data-tone="error"] {
  color: #a33939 !important;
}

.plan-compare {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
}

.plan-compare article,
.activation-panel,
.trust-strip article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
}

.plan-compare .pro-card {
  border-color: color-mix(in srgb, var(--accent) 34%, var(--line));
  box-shadow: 0 18px 55px color-mix(in srgb, var(--accent) 8%, transparent);
}

.plan-compare h2 {
  margin: 8px 0 0;
}

.plan-compare ul {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}

.plan-compare li {
  position: relative;
  padding-left: 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.plan-compare li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 850;
}

.activation-panel {
  margin-top: 16px;
}

.activation-panel > div:first-child > p:not(.eyebrow) {
  max-width: 700px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.restore-form {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr 1.25fr auto;
  gap: 10px;
  align-items: end;
}

.restore-form label span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.restore-form input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
}

.activation-result {
  margin-top: 20px;
  padding: 20px;
  border-radius: 15px;
  background: var(--accent-soft);
}

.activation-result h3 {
  margin: 8px 0 0;
}

.activation-result p {
  color: var(--muted);
  font-size: 12px;
}

.activation-result textarea {
  width: 100%;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  resize: vertical;
  background: var(--panel);
  color: var(--text);
  font: 11px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.activation-actions {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.secondary-payment {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
}

.trust-strip {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px;
}

.trust-strip p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.hidden {
  display: none !important;
}

@media (max-width: 820px) {
  .upgrade-hero,
  .plan-compare,
  .trust-strip {
    grid-template-columns: 1fr;
  }

  .restore-form {
    grid-template-columns: 1fr;
  }
}
