:root {
  --ink: #1c1915;
  --muted: #5c564c;
  --paper: #f6f1e7;
  --card: #fffdf8;
  --line: #e2d8c8;
  --accent: #3f7fdf;
  --accent-ink: #17386d;
  --warn: #8a4b12;
  --warn-bg: #fff4e5;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 480px at 100% -10%, #d9e8ff 0%, transparent 55%),
    var(--paper);
  color: var(--ink);
  font: 18px/1.6 "Segoe UI", system-ui, sans-serif;
}

a { color: var(--accent-ink); }

a:hover { color: var(--accent); }

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 3;
  padding: 8px 12px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 8px;
}

.skip:focus { top: 12px; color: var(--paper); }

.brand a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; }

.brand-logo {
  display: block;
  height: 96px;
  width: auto;
  border-radius: 12px;
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.9rem;
}

.crumbs li + li::before {
  content: "/";
  margin: 0 8px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 14px 6vw;
  background: rgba(246, 241, 231, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.brand {
  margin: 0;
  font-family: Georgia, "Iowan Old Style", Palatino, serif;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}

.brand span { color: var(--muted); font-size: 0.85rem; margin-left: 8px; }

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}

.site-header nav a {
  text-decoration: none;
  font-size: 0.95rem;
}

.nav-drop {
  position: relative;
}

.nav-drop summary {
  list-style: none;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--accent-ink);
}

.nav-drop summary::-webkit-details-marker { display: none; }

.nav-drop summary::after {
  content: "";
  display: inline-block;
  margin-left: 6px;
  border: 4px solid transparent;
  border-top-color: currentColor;
  vertical-align: 2px;
}

.nav-drop ul {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 4;
  min-width: 11rem;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(28, 25, 21, 0.1);
}

.nav-drop li a {
  display: block;
  padding: 6px 14px;
}

.nav-drop:has(a[aria-current="page"]) > summary {
  font-weight: 700;
  border-bottom: 2px solid var(--accent);
}

.compare-scroll { overflow-x: auto; }

.compare-table { min-width: 640px; font-size: 0.92rem; }

.compare-table caption {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.compare-banner th {
  padding: 14px 12px;
  color: #fff;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.95rem;
  border-bottom: 0;
}

.compare-banner th:first-child { background: #1e1b4b; }

.compare-banner th:nth-child(2) { background: #2563eb; }

.compare-banner th:nth-child(3) { background: #5b21e6; }

.compare-banner strong,
.compare-banner span,
.compare-banner em { display: block; font-style: normal; font-weight: 400; }

.compare-banner strong { font-size: 1.05rem; font-weight: 700; }

.compare-banner em { font-size: 0.8rem; opacity: 0.85; }

.compare-cols th {
  text-align: center;
  background: #f6f4ee;
}

.compare-cols th:first-child { text-align: left; }

.compare-group th {
  background: #f3efe6;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.75rem;
  color: var(--muted);
}

.compare-table tbody th {
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.92rem;
  color: var(--ink);
  font-weight: 400;
}

.compare-table tbody th strong { display: block; font-weight: 700; }

.compare-table tbody th span,
.compare-table tfoot span,
.mark-text {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.85rem;
}

.compare-table td { text-align: center; width: 28%; }

.compare-table tfoot th,
.compare-table tfoot td { background: #f6f4ee; }

.compare-table tfoot th {
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.95rem;
  color: var(--ink);
}

.compare-table tfoot strong { display: block; }

.mark { font-weight: 700; }

.mark.yes { color: #16833b; }

.mark.no { color: #b42318; }

.compare-note {
  margin: 12px 0 0;
  padding: 10px 14px;
  background: #f3e8ff;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.pricing-card {
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.pricing-card h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.price {
  margin: 0;
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.2;
}

.price span,
.pricing-meta {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--muted);
}

.pricing-buy {
  display: inline-block;
  margin-top: 4px;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--accent-ink);
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
}

button.pricing-buy {
  font: inherit;
  font-size: 0.9rem;
  border: 0;
  cursor: default;
}

button.lite-cta {
  display: inline-block;
  margin: 8px 0 4px;
  padding: 16px 24px;
  border-radius: 12px;
  background: #17386d;
  color: #fff;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 24px rgba(23, 56, 109, 0.35);
}

button.lite-cta:hover {
  background: #3f7fdf;
  color: #fff;
}

a.pricing-buy.lite-cta {
  display: inline-block;
  margin: 8px 0 4px;
  padding: 16px 24px;
  border-radius: 12px;
  background: #17386d;
  color: #fff;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 24px rgba(23, 56, 109, 0.35);
  border: 0;
  cursor: default;
  text-decoration: none;
  white-space: nowrap;
}

a.pricing-buy.lite-cta:hover {
  background: #3f7fdf;
  color: #fff;
}

.pricing-buy:hover { background: var(--accent); color: #fff; }

.site-header nav a[aria-current="page"] {
  font-weight: 700;
  border-bottom: 2px solid var(--accent);
}

main {
  width: min(920px, 92vw);
  margin: 0 auto;
  padding: 36px 0 80px;
}

header.page-intro h1,
article h2,
section h2 {
  font-family: Georgia, "Iowan Old Style", Palatino, serif;
  line-height: 1.2;
  font-weight: 700;
}

header.page-intro h1 { font-size: clamp(2rem, 4vw, 3.1rem); margin: 0 0 12px; }

.lede { font-size: 1.15rem; color: var(--muted); }

article, .card, section.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 24px;
  margin: 18px 0;
}

figure {
  margin: 16px 0;
}

figure img, figure svg {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
}

figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th, td {
  text-align: left;
  vertical-align: top;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
}

th { font-size: 0.8rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }

code, .example {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.88em;
}

.example {
  display: block;
  overflow-x: auto;
  padding: 12px 14px;
  background: #1c1915;
  color: #f6f1e7;
  border-radius: 10px;
}

.note, .todo {
  border-left: 4px solid var(--accent);
  padding: 10px 14px;
  background: #eef4ff;
  border-radius: 0 10px 10px 0;
}

.todo {
  border-left-color: var(--warn);
  background: var(--warn-bg);
}

.toc a { display: block; padding: 4px 0; }

.unit h3 { margin-bottom: 4px; }

.meta { color: var(--muted); font-size: 0.9rem; }

footer.site-foot {
  width: min(920px, 92vw);
  margin: 0 auto 40px;
  color: var(--muted);
  font-size: 0.9rem;
}

body.home main,
body.home footer.site-foot {
  width: min(1080px, 92vw);
}

.home-hero { margin-bottom: 8px; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 8px;
}

.product-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 24px;
  margin: 0;
}

.product-card h2 {
  font-family: Georgia, "Iowan Old Style", Palatino, serif;
  line-height: 1.2;
  margin: 0 0 8px;
}

.product-kicker {
  margin: 0 0 6px;
  color: var(--accent-ink);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: center;
  margin-bottom: 0;
}

.support-form {
  display: grid;
  gap: 14px;
}

.support-form label {
  display: grid;
  gap: 6px;
  font-size: 0.95rem;
}

.support-form input,
.support-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.support-form textarea { min-height: 160px; resize: vertical; }

.support-form .form-error {
  margin: 0;
  color: var(--warn);
}

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 800px) {
  .product-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  article, .card, section.panel, .product-card { padding: 16px; }
  .brand-logo { height: 72px; }
}
