
:root {
  color-scheme: light;
  --sans: system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Noto Sans Arabic", "Noto Sans Hebrew", "Noto Sans Devanagari", "Noto Sans Thai", "Noto Sans JP", "Noto Sans KR", "Noto Sans SC", "Noto Sans TC", sans-serif;
  --serif: Georgia, "Iowan Old Style", Palatino, "Palatino Linotype", "Songti SC", "Songti TC", "Noto Serif", serif;
  --bg: #f3f0e8;
  --bg-2: #fffcf6;
  --ink: #1c1915;
  --muted: #5f5a52;
  --line: #e3dccf;
  --accent: #0e6d68;
  --accent-2: #d7f3ef;
  --on-accent: #f7fffd;
  --rail: #1b2836;
  --shadow: 0 30px 70px rgba(28, 25, 21, 0.08);
  --warn: #8a5a12;
  --warn-bg: #fbf3df;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #101418;
    --bg-2: #171d24;
    --ink: #f4efe6;
    --muted: #b7b1a6;
    --line: #2c3540;
    --accent: #8fd9d1;
    --accent-2: #163532;
    --on-accent: #10211f;
    --rail: #0c1218;
    --shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
    --warn: #f0d7a2;
    --warn-bg: #2a2418;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #101418;
  --bg-2: #171d24;
  --ink: #f4efe6;
  --muted: #b7b1a6;
  --line: #2c3540;
  --accent: #8fd9d1;
  --accent-2: #163532;
  --on-accent: #10211f;
  --rail: #0c1218;
  --shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
  --warn: #f0d7a2;
  --warn-bg: #2a2418;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(900px 420px at 80% -10%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
}
a { color: inherit; }
img { max-width: 100%; }
.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
header.nav {
  position: sticky; top: 0; z-index: 5;
  backdrop-filter: blur(16px);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav-row { display: flex; align-items: center; gap: 22px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; text-decoration: none; letter-spacing: -0.02em; }
.brand-name { white-space: nowrap; }
.mark { width: 28px; height: 28px; border-radius: 8px; background: var(--rail); color: white; display: grid; place-items: center; font-size: 12px; flex-shrink: 0; }
nav.links { display: flex; gap: 18px; margin-inline-start: 12px; }
nav.links a { text-decoration: none; color: var(--muted); font-size: 15px; display: inline-flex; align-items: center; min-height: 44px; }
nav.links a:hover, nav.links a[aria-current="page"] { color: var(--ink); }
.nav-row .spacer { margin-inline-start: auto; }
.btn, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 16px; border-radius: 999px;
  text-decoration: none; font-weight: 600; font-size: 15px;
  white-space: nowrap; flex-shrink: 0;
}
.btn { background: var(--accent); color: var(--on-accent); }
.btn-ghost { border: 1px solid var(--line); background: transparent; }
.icon-btn { border: 1px solid var(--line); background: transparent; color: var(--ink); border-radius: 999px; min-height: 44px; padding: 0 12px; cursor: pointer; white-space: nowrap; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; font: inherit; font-weight: 600; font-size: 15px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 560; letter-spacing: -0.03em; line-height: 1.15; margin: 0; line-break: strict; }
h1 { font-size: clamp(40px, 6vw, 72px); }
h2 { font-size: clamp(32px, 4vw, 48px); }
.lede { font-size: 20px; color: var(--muted); max-width: 46rem; }
.hero { padding: 72px 0 36px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.kicker { color: var(--accent); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; margin-bottom: 14px; }
section { padding: 72px 0; }
.grid-3, .grid-2 { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: 1.1fr 0.9fr; align-items: start; }
.card, .mock, table { background: var(--bg-2); border: 1px solid var(--line); border-radius: 18px; }
.card { padding: 22px; }
.card h3 { font-size: 24px; line-height: 1.3; margin-bottom: 10px; }
.card p, .prose p { color: var(--muted); }
.soon { display: inline-block; margin-inline-start: 8px; font-family: var(--sans); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--warn); background: var(--warn-bg); border-radius: 999px; padding: 2px 8px; vertical-align: middle; }
.mock { box-shadow: var(--shadow); overflow: hidden; }
.mock-top { display: flex; height: 360px; }
.rail { width: 72px; background: var(--rail); color: #d5dde6; padding: 14px 8px; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.rail span { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-size: 11px; }
.rail span.on { background: #2f6f8f; color: white; }
.sheet { flex: 1; padding: 16px 18px; }
.sheet header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.pill { height: 28px; width: 46%; border-radius: 8px; background: color-mix(in srgb, var(--line) 70%, var(--bg)); }
table { width: 100%; border-collapse: collapse; overflow: hidden; }
th, td { text-align: start; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 15px; vertical-align: top; }
th { font-size: 13px; color: var(--muted); font-weight: 560; }
.note { font-size: 13px; color: var(--muted); }
.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge { border: 1px solid var(--line); background: var(--bg-2); border-radius: 999px; padding: 6px 10px; font-size: 13px; }
.shot-box { border: 1px dashed var(--line); border-radius: 12px; min-height: 88px; display: grid; place-items: center; padding: 16px; color: var(--muted); font-size: 14px; text-align: center; }
ol.steps { padding-left: 0; list-style: none; counter-reset: step; }
ol.steps li { counter-increment: step; margin: 14px 0; padding-left: 42px; position: relative; }
ol.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 999px; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-size: 13px; }
.search { width: min(420px, 100%); border: 1px solid var(--line); background: var(--bg-2); color: var(--ink); border-radius: 999px; padding: 10px 14px; }
.price { font-family: var(--serif); font-size: 52px; margin: 8px 0; }
.price span { font-family: var(--sans); font-size: 16px; color: var(--muted); }
.banner { background: var(--warn-bg); color: var(--warn); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin: 18px 0; }
footer { border-top: 1px solid var(--line); padding: 28px 0 48px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 22px; }
footer a { color: var(--muted); display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--muted) 45%, transparent); }
footer a:hover { color: var(--ink); text-decoration-color: var(--ink); }
.prose { max-width: 46rem; }
.prose h2 { font-size: 32px; margin: 28px 0 8px; }
ul.clean { padding-left: 18px; color: var(--muted); }
.table-scroll { overflow-x: auto; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip { position: absolute; inset-inline-start: 12px; top: -40px; background: var(--accent); color: var(--on-accent); padding: 8px 12px; z-index: 9; }
.skip:focus { top: 8px; }
.mobile-nav { display: none; position: relative; flex-shrink: 0; }
.mobile-nav summary { cursor: pointer; list-style: none; min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--ink); }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav nav { position: absolute; inset-inline-end: 0; inset-inline-start: auto; top: calc(100% + 8px); background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: grid; gap: 4px; min-width: min(240px, calc(100vw - 32px)); z-index: 6; box-shadow: var(--shadow); }
.mobile-nav nav a { display: flex; align-items: center; min-height: 44px; padding: 0 8px; border-radius: 8px; text-decoration: none; }
.mobile-nav nav a:hover { background: var(--accent-2); }
.lang { position: relative; }
.lang summary { cursor: pointer; list-style: none; min-height: 44px; display: flex; align-items: center; color: var(--muted); }
.lang summary::-webkit-details-marker { display: none; }
.lang-menu { position: absolute; inset-inline-end: 0; inset-inline-start: auto; top: 46px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 8px; max-height: min(70vh, 480px); overflow: auto; min-width: 220px; z-index: 6; display: grid; }
.lang-menu a { text-decoration: none; padding: 10px 8px; border-radius: 8px; min-height: 44px; display: flex; align-items: center; }
.lang-menu a[aria-current="true"] { background: var(--accent-2); }
.menu-tools { display: grid; gap: 4px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.mobile-nav .lang { position: static; }
.mobile-nav .lang summary,
.mobile-nav #theme,
.mobile-nav .icon-btn {
  width: 100%;
  justify-content: flex-start;
  min-height: 44px;
  padding: 0 8px;
  border-radius: 8px;
  color: var(--ink);
  border: 0;
  background: transparent;
  font-weight: 600;
}
.mobile-nav .lang summary:hover,
.mobile-nav #theme:hover,
.mobile-nav .icon-btn:hover { background: var(--accent-2); }
.mobile-nav .lang-menu {
  position: static;
  inset: auto;
  max-height: min(45vh, 320px);
  min-width: 0;
  width: 100%;
  margin-top: 4px;
  box-shadow: none;
}
.prose a,
.card p a,
.card li a,
.lede a,
.note a,
.consent a,
.hero > p a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.prose a:hover,
.card p a:hover,
.card li a:hover,
.lede a:hover,
.note a:hover,
.consent a:hover,
.hero > p a:hover { text-decoration-thickness: 2px; }
main h2 a, main h3 a, .card h2 a, .card h3 a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: color-mix(in srgb, var(--ink) 40%, transparent);
}
main h2 a:hover, main h3 a:hover, .card h2 a:hover, .card h3 a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}
details.card summary { cursor: pointer; list-style: none; }
details.card summary::-webkit-details-marker { display: none; }
details.card[open] { padding-bottom: 8px; }
main section .wrap:not(.grid-3):not(.grid-2) > article + article { margin-top: 20px; }
#guides article + article { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
[dir="rtl"] th, [dir="rtl"] td { text-align: right; }
[dir="rtl"] ol.steps li { padding-left: 0; padding-right: 42px; }
[dir="rtl"] ol.steps li::before { left: auto; right: 0; }
[dir="rtl"] ul.clean { padding-left: 0; padding-right: 18px; }
.toc { border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin: 18px 0; background: var(--bg-2); }
.toc ol { margin: 8px 0 0; padding-inline-start: 18px; }
.consent { position: fixed; inset-inline: 0; bottom: 0; z-index: 8; background: var(--bg-2); border-top: 1px solid var(--line); padding: 12px 0; box-shadow: 0 -10px 30px rgba(28, 25, 21, 0.08); }
.consent .wrap { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.consent p { margin: 0; max-width: 46rem; }
.consent button { min-height: 44px; }
.post-meta { color: var(--muted); font-size: 14px; }
.calc label { display: block; margin: 12px 0; }
.calc input, form.card input, form.card textarea { width: min(520px, 100%); min-height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: var(--bg); color: var(--ink); font: inherit; }
form.card textarea { min-height: 140px; }
form.card label { display: block; margin: 12px 0; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 860px) {
  nav.links, .nav-see { display: none; }
  .mobile-nav { display: block; }
  .nav-row { gap: 10px; flex-wrap: nowrap; min-height: 60px; padding-block: 8px; }
  .wrap { width: min(1120px, calc(100% - 32px)); }
  .brand { gap: 8px; flex: 0 0 auto; font-size: 16px; }
  .brand-name { direction: ltr; }
  .nav-cta {
    flex: 0 1 auto;
    min-width: 0;
    padding: 0 14px;
    font-size: 14px;
    line-height: 1.2;
    white-space: normal;
    text-align: center;
  }
  .grid-3, .grid-2 { display: grid; grid-template-columns: 1fr; gap: 20px; }
  .mock-top { display: flex; flex-direction: column; height: auto; }
  .rail { width: auto; flex-direction: row; }
  h1 { font-size: 34px; overflow-wrap: break-word; }
  h2, h3 { overflow-wrap: break-word; }
  .card { padding: 20px; }
  .card h3 { font-size: 22px; line-height: 1.3; margin-bottom: 10px; }
  section { padding: 64px 0; }
  .hero { padding: 56px 0 40px; }
  footer { padding: 32px 0 56px; }
}
@media (min-width: 640px) and (max-width: 860px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr 1fr; }
  .nav-cta { max-width: none; font-size: 15px; padding: 0 16px; white-space: nowrap; }
}

/* sd20: let long CTA labels wrap inside cards (uk/ru pricing overflowed at 375/768) */
.card .btn, .card .btn-ghost { white-space: normal; text-align: center; max-width: 100%; padding-block: 8px; }
.grid-2 > * { min-width: 0; }

/* sd23 a11y: row headers in comparison tables; card titles promoted to h2 for heading order */
tbody th[scope="row"] { font-size: 15px; color: inherit; font-weight: 560; }
.card h2.h3 { font-size: 24px; line-height: 1.3; margin-bottom: 10px; }
@media (max-width: 860px) { .card h2.h3 { font-size: 22px; } }
