:root {
  --ink: #0b1220;
  --text: #0f172a;
  --muted: #64748b;
  --muted-2: #94a3b8;
  --teal: #0d9488;
  --teal-dark: #0f766e;
  --teal-soft: #ccfbf1;
  --mint: #6ee7b7;
  --surface: #f8fafc;
  --white: #ffffff;
  --border: #e2e8f0;
  --slate: #f1f5f9;
  --danger: #dc2626;
  --radius: 12px;
  --radius-ctl: 8px;
  --header: 72px;
  --font: "Inter", "Segoe UI", Helvetica, Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--white);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, summary { font: inherit; }
summary { cursor: pointer; }
summary::-webkit-details-marker { display: none; }

.skip {
  position: absolute;
  left: 16px;
  top: -40px;
  background: var(--ink);
  color: var(--white);
  padding: 8px 12px;
  border-radius: var(--radius-ctl);
  z-index: 50;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: var(--radius-ctl);
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  background: transparent;
}
.btn--primary { background: var(--teal); color: var(--white); }
.btn--primary:hover { background: var(--teal-dark); }
.btn--secondary { background: var(--white); color: var(--text); border-color: var(--border); }
.btn--secondary:hover { background: var(--surface); }
.btn--ink { background: var(--ink); color: var(--white); }
.btn--ink:hover { background: #111827; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.brand--light { color: var(--white); }
.brand__mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--teal);
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.site-header__bar {
  min-height: var(--header);
  max-width: 1440px;
  margin-inline: auto;
  padding: 12px clamp(20px, 5vw, 80px);
  display: flex;
  align-items: center;
  gap: 24px;
}
.site-nav { margin-right: auto; display: flex; align-items: center; flex: 1; min-width: 0; }
.nav-check {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.site-nav__toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-ctl);
  padding: 0;
}
.site-nav__links { display: flex; align-items: center; gap: 22px; }
.site-nav__links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}
.site-nav__links a[aria-current="page"],
.site-nav__links a.is-emphasis,
.site-nav__links a:hover { color: var(--text); font-weight: 600; }
.nav-login, .nav-langs { display: none; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.site-nav__bars,
.site-nav__bars::before,
.site-nav__bars::after {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
}
.site-nav__bars { position: relative; }
.site-nav__bars::before,
.site-nav__bars::after { content: ""; position: absolute; left: 0; }
.site-nav__bars::before { top: -5px; }
.site-nav__bars::after { top: 5px; }
.site-header__actions { display: flex; align-items: center; gap: 16px; }
.login-link { text-decoration: none; font-size: 14px; font-weight: 600; color: var(--text); }

.lang { position: relative; }
.lang__btn {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  padding: 6px 2px;
}
.lang__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 72px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}
.lang__menu a {
  display: block;
  text-decoration: none;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}
.lang__menu a[aria-current="true"] { color: var(--teal); font-weight: 600; }

.hero {
  background: var(--surface);
  padding: 96px clamp(20px, 5vw, 80px);
}
.hero__inner {
  width: min(760px, 100%);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 28px;
}
.pill {
  display: inline-flex;
  align-items: center;
  background: var(--teal-soft);
  color: var(--teal-dark);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
}
.hero h1 {
  font-size: clamp(36px, 4.6vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 700;
}
.hero__lead { color: var(--muted); font-size: 18px; line-height: 1.55; max-width: 640px; }
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hero__trust { color: var(--muted); font-size: 13px; }
.hero--pricing { padding-block: 12px 28px; }
.hero--pricing .hero__inner { width: min(960px, 100%); }
.crumbs-bar { width: min(1280px, 100%); margin: 0 auto 8px; text-align: left; }
.hero--pricing h1 { font-size: clamp(32px, 4vw, 44px); max-width: none; }
.eyebrow--teal { color: var(--teal); font-size: 14px; font-weight: 600; }
.bill-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.bill-toggle button {
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.bill-toggle button.is-on { background: var(--ink); color: var(--white); }

.band { padding: 80px clamp(20px, 5vw, 80px); }
.band--white { background: var(--white); }
.band--surface { background: var(--surface); }
.band--ink { background: var(--ink); color: var(--white); }
.band--teal { background: var(--teal); color: var(--white); }
.band__inner { width: min(1280px, 100%); margin-inline: auto; }
.band__inner--center { text-align: center; }
.section-head { display: grid; gap: 12px; justify-items: center; margin-bottom: 40px; }
.section-head h2, .band h2 {
  font-size: clamp(26px, 3vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.display { font-size: clamp(28px, 3.4vw, 36px) !important; }
.section-head p, .lede { color: var(--muted); font-size: 16px; line-height: 1.55; }
.eyebrow { font-size: 14px !important; font-weight: 600 !important; color: var(--muted); letter-spacing: 0; }
.muted-on-dark { color: var(--muted-2); font-size: 16px; line-height: 1.55; margin: 16px 0 24px; }
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; }
.split .lede { margin-top: 16px; }

.steps, .plans, .stats, .nets { width: 100%; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: left; }
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.card h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.steps .card h3 { font-size: 20px; }
.card p { color: var(--muted); font-size: 14px; line-height: 1.55; }
.step-num {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--teal);
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
}

.pub {
  background: #060b16;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px 20px 8px;
  text-align: left;
}
.pub__kicker { color: var(--teal); font-size: 13px; font-weight: 500; }
.pub h3 { color: var(--white); font-size: 18px; font-weight: 600; margin: 8px 0 12px; }
.pub li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
}
.status { font-size: 12px; font-weight: 600; }
.status--ok { color: var(--mint); }
.status--wait { color: var(--muted-2); }

.nets { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }
.nets a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--white);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.ws-card { padding: 8px 8px 12px; }
.ws-card__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 12px 8px;
}
.ws-card__head h3 { margin: 0; font-size: 13px; font-weight: 600; color: var(--muted); }
.ws-card__head p { font-size: 12px; color: var(--muted-2); }
.ws-card li {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
}
.ws-card__name { font-size: 14px; font-weight: 600; }
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--teal);
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
}
.role { color: var(--teal); font-size: 12px; font-weight: 600; }

.code {
  margin: 0;
  background: #060b16;
  color: var(--teal-soft);
  border-radius: var(--radius);
  padding: 20px 22px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.65;
  text-align: left;
  overflow: auto;
}

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stats strong { display: block; font-size: 32px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.stats span { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; font-weight: 500; }

.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: left; }
.plan {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 220px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.plan h3 { color: var(--teal); font-size: 14px; font-weight: 600; }
.plan__price { font-size: 36px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.plan__limit { color: var(--muted); font-size: 14px; }
.plan .btn { margin-top: auto; width: 100%; }
.plan--featured { background: var(--ink); border-color: var(--ink); }
.plan--featured .plan__price { color: var(--white); }
.plan--featured .plan__limit,
.plan--featured .plan__features { color: var(--white); }
.plan--featured .plan__limit { color: var(--muted-2); }
.plans--full .plan { min-height: 420px; position: relative; }
.plan__badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--teal);
  color: var(--white);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.plan__price small { font-size: 14px; font-weight: 400; color: var(--muted); margin-left: 2px; }
.plan--featured .plan__price small { color: var(--muted-2); }
.plan__features { display: grid; gap: 8px; margin: 8px 0 16px; }
.plan__features li { font-size: 13px; display: flex; gap: 8px; align-items: flex-start; }
.plan__features li::before { content: "✓"; color: var(--teal); font-weight: 700; }
.addons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; text-align: left; }
.addon {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: grid;
  gap: 8px;
}
.addon h3 { font-size: 16px; font-weight: 600; }
.addon__price { color: var(--teal); font-size: 24px; font-weight: 700; }
.addon p:last-child { color: var(--muted); font-size: 13px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  text-align: left;
  display: grid;
  gap: 10px;
  align-content: start;
}
.feature__mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--teal-soft);
  color: var(--teal);
  display: grid;
  place-items: center;
  font-size: 16px;
}
.feature h2 { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.feature p { color: var(--muted); font-size: 14px; line-height: 1.55; }

.faq { width: min(760px, 100%); margin-inline: auto; display: grid; gap: 12px; text-align: left; }
.faq article {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.faq h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.faq p { color: var(--muted); font-size: 14px; line-height: 1.55; }

.cta .band__inner { display: grid; justify-items: center; gap: 16px; }
.cta p { font-size: 16px; }

.site-footer { background: var(--ink); color: var(--muted-2); padding: 48px clamp(20px, 5vw, 80px); }
.site-footer__top {
  width: min(1280px, 100%);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 32px;
}
.site-footer__brand p { margin-top: 12px; max-width: 220px; font-size: 13px; line-height: 1.5; }
.site-footer h2 { color: var(--white); font-size: 13px; font-weight: 600; margin-bottom: 12px; }
.site-footer li + li { margin-top: 8px; }
.site-footer a { color: var(--muted-2); text-decoration: none; font-size: 13px; }
.site-footer a:hover { color: var(--white); }
.site-footer__bottom {
  width: min(1280px, 100%);
  margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
}

.cookie {
  position: fixed;
  z-index: 40;
  right: 16px;
  bottom: 16px;
  width: min(380px, calc(100% - 24px));
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}
.cookie[hidden] { display: none; }
.cookie p { margin: 0; font-size: 13px; line-height: 1.35; color: var(--text); }
.cookie a { color: var(--teal); }
.cookie__actions { display: flex; gap: 6px; flex-wrap: wrap; }
.cookie__actions .btn { min-height: 30px; padding: 4px 8px; font-size: 12px; }
.cookie__prefs { display: grid; gap: 6px; margin-top: 6px; }
.cookie__prefs label { display: grid; gap: 1px; font-size: 12px; }
.cookie__prefs span { color: var(--muted); font-size: 11px; }
.cookie-settings {
  margin-left: 16px;
  background: none;
  border: 0;
  color: var(--muted-2);
  text-decoration: underline;
  cursor: pointer;
}
.crumbs { margin: 0; }
.crumbs ol { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 6px; color: var(--muted); font-size: 13px; }
.crumbs a { color: var(--teal-dark); text-decoration: none; }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 8px; color: var(--muted-2); }
.prose { display: grid; gap: 12px; max-width: 760px; }
.prose h2 { font-size: 22px; margin-top: 12px; }
.prose p, .prose li { color: var(--muted); }
.prose ul { list-style: disc; padding-left: 18px; }
.feature h2 a { color: inherit; text-decoration: none; }
.feature h2 a:hover { color: var(--teal-dark); }

.hero__inner--left { align-items: flex-start; text-align: left; width: min(820px, 100%); }
.sheet-list { display: grid; gap: 0; }
.sheet-list a {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 8px 28px;
  padding: 22px 0;
  border-top: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
}
.sheet-list li:last-child a { border-bottom: 1px solid var(--border); }
.sheet-list time { color: var(--muted); font-size: 13px; padding-top: 4px; }
.sheet-list h2 { font-size: 22px; letter-spacing: -0.02em; font-weight: 700; }
.sheet-list p { grid-column: 2; color: var(--muted); font-size: 15px; line-height: 1.55; max-width: 62ch; }
.sheet-list a:hover h2 { color: var(--teal-dark); }
.sheet-list--case { grid-template-columns: 1fr; gap: 16px; }
.sheet-list--case a {
  grid-template-columns: 1fr;
  border: 1px solid var(--border);
  border-left: 4px solid var(--ink);
  border-radius: 12px;
  padding: 22px 24px;
}
.sheet-list--case li:last-child a { border-bottom: 1px solid var(--border); }
.sheet-list--case p { grid-column: auto; }
.sheet-list--case time { display: none; }
.sheet {
  width: min(820px, calc(100% - 40px));
  margin: 12px auto 64px;
}
.sheet__head { display: grid; gap: 14px; padding: 8px 0 28px; text-align: left; }
.sheet__head h1 {
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 700;
  max-width: none;
}
.sheet__lead { color: var(--muted); font-size: 18px; line-height: 1.55; }
.sheet__head time { color: var(--muted); font-size: 13px; }
.sheet__body { display: grid; gap: 28px; }
.sheet__body h2 { font-size: 22px; letter-spacing: -0.02em; font-weight: 700; margin-bottom: 8px; }
.sheet__body p { color: var(--text); font-size: 16px; line-height: 1.65; }
.sheet--case { width: min(880px, calc(100% - 40px)); }
.sheet--case .sheet__head { border-bottom: 1px solid var(--border); margin-bottom: 8px; }

@media (max-width: 1100px) {
  .plans, .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .site-footer__top { grid-template-columns: 1fr 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .site-nav__toggle { display: inline-flex; }
  .nav-login, .nav-langs { display: flex; }
  .nav-langs { gap: 12px; padding: 8px 10px; }
  .site-header__actions .lang,
  .login-link { display: none; }
  .site-nav { position: relative; margin-right: 0; flex: 0; }
  .site-nav__links {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    min-width: 220px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 8px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.1);
  }
  .nav-check:checked ~ .site-nav__links { display: flex; }
  .site-nav__links a { padding: 8px 10px; }
  .site-header__bar { flex-wrap: nowrap; }
  .split, .steps, .stats { grid-template-columns: 1fr; }
  .hero { padding-block: 64px; }
  .band { padding-block: 56px; }
  .login-link { display: none; }
  .addons, .feature-grid { grid-template-columns: 1fr; }
  .sheet-list a, .sheet-list--case a { grid-template-columns: 1fr; }
  .sheet-list p { grid-column: auto; }
}
@media (max-width: 640px) {
  .plans, .site-footer__top { grid-template-columns: 1fr; }
  .cookie { left: 12px; right: 12px; width: auto; }
  .hero__cta .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
