/* Shared layout for the four candidate designs. Each theme file sets the tokens and its own hero.
   Designed with unslop by Damir Sokolovsky (@heydamir), CC BY 4.0. */
:root {
  --page: #fff; --alt: #f5f5f5; --card: #fff; --raised: #f4f4f5;
  --line: rgba(0,0,0,.08); --line-2: rgba(0,0,0,.14);
  --text: #111; --text-2: #555; --muted: #777;
  --accent: #111; --on-accent: #fff; --quiet-bg: transparent;
  --ok: #16a34a; --warn: #b45309; --bad: #dc2626;
  --sans: system-ui, sans-serif; --mono: ui-monospace, Menlo, monospace; --display: var(--sans);
  --h-weight: 500; --h-track: -0.02em;
  --r-sm: 8px; --r: 12px; --r-lg: 16px; --btn-r: 10px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--text-2); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3 { margin: 0; color: var(--text); font-family: var(--display); font-weight: var(--h-weight); }
h1 { font-size: clamp(40px, 5.6vw, 68px); line-height: 1.04; letter-spacing: var(--h-track); }
h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; letter-spacing: var(--h-track); }
h3 { font-size: 18px; line-height: 1.35; font-weight: 500; letter-spacing: 0; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 60; background: var(--card); padding: 8px 12px; border-radius: 8px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 20px; border-radius: var(--btn-r);
  font: 500 15px/1 var(--sans); text-decoration: none; white-space: nowrap; border: 1px solid transparent; cursor: pointer;
  transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease), transform .15s var(--ease); }
.btn:active { transform: scale(.98); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: calc(var(--btn-r) - 2px); }
.btn-block { width: 100%; margin-top: 20px; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, var(--page)); }
.btn-quiet { background: var(--quiet-bg); color: var(--text); border-color: var(--line-2); }
.btn-quiet:hover { background: var(--raised); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* nav */
.nav { position: relative; z-index: 10; }
.nav-in { height: 72px; display: flex; align-items: center; gap: 40px; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; font: 600 17px/1 var(--sans); }
.mark { width: 22px; height: 22px; }
.nav nav { display: flex; gap: 28px; }
.nav nav a { font-size: 14px; color: var(--text-2); text-decoration: none; transition: color .15s var(--ease); }
.nav nav a:hover { color: var(--text); }
.nav .btn { margin-left: auto; }
@media (max-width: 920px) { .nav nav { display: none; } }

/* hero (themes refine) */
.hero { position: relative; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 500px); gap: 64px; align-items: center; padding: 80px 32px 112px; }
.hero-in > * { min-width: 0; }
.sub { font-size: 19px; line-height: 1.55; max-width: 540px; margin: 24px 0 36px; }
.meta { font: 400 13px/1.4 var(--mono); color: var(--muted); margin-bottom: 24px; }
.fine { font: 400 13px/1.4 var(--mono); color: var(--muted); margin-top: 20px; }
.kv { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.kv span { color: var(--muted); }
.kv b { font-weight: 500; color: var(--text); text-align: right; font-variant-numeric: tabular-nums; }
.kv.bad b { color: var(--bad); }
.ok-tag { font-size: 12px; font-weight: 500; color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); padding: 4px 8px; border-radius: 6px; white-space: nowrap; }
@media (max-width: 900px) { .hero-in { grid-template-columns: 1fr; gap: 48px; padding: 48px 32px 96px; } }
@media (max-width: 640px) { .hero-in { padding: 40px 16px 80px; } }

/* sections */
.sec { padding: 112px 0; }
.sec.alt { background: var(--alt); }
.head { max-width: 660px; margin-bottom: 56px; }
.head p { margin-top: 16px; font-size: 17px; }
.idx { display: none; font: 400 13px/1 var(--mono); color: var(--muted); margin-bottom: 16px; }
.src { display: block; font: 400 12px/1.5 var(--mono); color: var(--muted); margin-top: 12px; }
@media (max-width: 640px) { .sec { padding: 80px 0; } .head { margin-bottom: 40px; } }

.proof-in { display: grid; grid-template-columns: 1.4fr 1fr; gap: 80px; align-items: end; }
.fig { font: var(--h-weight) clamp(88px, 12vw, 152px)/.9 var(--display); color: var(--text); letter-spacing: -.04em; }
.fig-t { font-size: 20px; line-height: 1.5; color: var(--text); max-width: 560px; margin-top: 24px; }
.proof-side { margin: 0; }
.proof-side div { display: grid; grid-template-columns: 112px 1fr; gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); }
.proof-side dt { font: var(--h-weight) 36px/1 var(--display); color: var(--text); letter-spacing: -.02em; }
.proof-side dd { margin: 0; font-size: 15px; }
@media (max-width: 860px) { .proof-in { grid-template-columns: 1fr; gap: 40px; } }

.items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.item { display: flex; flex-direction: column; gap: 12px; }
.item p { font-size: 15px; flex: 1; }
.ex { display: grid; gap: 4px; padding: 16px; border-radius: var(--r-sm); background: var(--raised); font: 400 13px/1.5 var(--mono); color: var(--muted); }
.ex b { font-weight: 500; color: var(--text); font-size: 14px; }
@media (max-width: 900px) { .items { grid-template-columns: 1fr; } }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line-2); }
.steps li { padding: 20px 20px 0 0; }
.steps li + li { padding-left: 20px; border-left: 1px solid var(--line); }
.n { display: block; font: 500 12px/1 var(--mono); color: var(--muted); margin-bottom: 16px; }
.steps b { display: block; color: var(--text); font-weight: 500; font-size: 16px; line-height: 1.35; }
.steps p { font-size: 14px; margin-top: 4px; }
.steps .key .n { color: var(--accent); }
.terms { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 64px; margin: 64px 0 0; }
.terms dt { font-size: 13px; color: var(--muted); }
.terms dd { margin: 4px 0 8px; font: var(--h-weight) 40px/1 var(--display); color: var(--text); letter-spacing: -.02em; }
.terms span { font-size: 14px; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 16px 0; border-left: 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 40px 1fr; }
  .steps .n { margin: 4px 0 0; grid-row: span 2; }
  .terms { grid-template-columns: 1fr; gap: 28px; }
}

.tbl { overflow-x: auto; }
.tbl table { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th, .tbl td { text-align: left; padding: 16px 20px 16px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl thead th { font-weight: 500; color: var(--text); border-bottom-color: var(--line-2); padding-bottom: 12px; }
.tbl tbody th { font-weight: 500; color: var(--text); width: 22%; }
.compare td:last-child { color: var(--text); }
.compare thead th:last-child { color: var(--accent); }
.plans thead th span { display: block; font: var(--h-weight) 26px/1.25 var(--display); color: var(--text); margin-top: 4px; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.plans tr.cta th, .plans tr.cta td { border-bottom: 0; padding-top: 24px; }
@media (max-width: 640px) { .tbl table { min-width: 560px; } }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 80px; align-items: center; }
.split.top { align-items: start; }
.split > * { min-width: 0; }
.list { margin: 0 0 32px; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.list li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--text); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 48px; } }

.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.sl-h { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--muted); }
.sl-amt { font: var(--h-weight) 44px/1 var(--display); color: var(--text); letter-spacing: -.03em; margin: 24px 0 8px; font-variant-numeric: tabular-nums; }
.sl-t { font-size: 14px; margin-bottom: 16px; }

.code { margin: 0; padding: 24px; background: #111214; color: #e8e8ea; border-radius: var(--r-lg); font: 400 13px/1.7 var(--mono); overflow-x: auto; }
.c-m { color: #8a8f98; }

.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; padding: 20px 0; color: var(--text); font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 20px; font-size: 15px; max-width: 600px; }

.closing { border-top: 1px solid var(--line); }
.closing-in { display: grid; justify-items: start; gap: 28px; }
.closing h2 { font-size: clamp(34px, 4.6vw, 56px); max-width: 780px; }
.closing .src { margin-top: -12px; }

.foot { background: var(--alt); padding: 64px 0 96px; font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.foot-grid p { margin-top: 16px; max-width: 320px; }
.foot-grid h4 { margin: 0 0 12px; font-size: 13px; font-weight: 500; color: var(--text); }
.foot-grid a:not(.brand) { display: block; padding: 4px 0; text-decoration: none; color: var(--text-2); }
.foot-grid a:not(.brand):hover { color: var(--text); }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }

/* comparison switcher: fixed, neutral, the same on every design */
.switch { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 50; display: flex; align-items: center; gap: 2px; padding: 4px;
  border-radius: 12px; background: rgba(20, 20, 22, .92); box-shadow: 0 8px 24px rgba(0, 0, 0, .2); font: 500 13px/1 system-ui, sans-serif; max-width: calc(100vw - 32px); overflow-x: auto; }
.switch span { color: #8a8f98; padding: 0 8px 0 10px; }
.switch a { color: #d4d4d8; text-decoration: none; padding: 8px 10px; border-radius: 8px; white-space: nowrap; transition: background-color .15s var(--ease); }
.switch a:hover { background: rgba(255, 255, 255, .08); }
.switch a[aria-current] { background: #f4f4f5; color: #111; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
