@import url("https://fonts.googleapis.com/css2?family=Unbounded:wght@600;700&display=swap");

@font-face {
  font-family: "Manrope";
  src: url("/assets/manrope-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #08111f;
  --surface: #111e33;
  --surface-2: #182a46;
  --surface-light: #f4f7fb;
  --text: #f8fbff;
  --text-dark: #0d1a2c;
  --muted: #a9b9d1;
  --muted-dark: #53657d;
  --line: #2a4165;
  --line-light: #d5deeb;
  --blue: #4b82f5;
  --blue-dark: #2458c7;
  --mint: #7de0c3;
  --coral: #ff8a72;
  --max: 1180px;
  --page-pad: 24px;
  --radius: 8px;
  --shadow: 0 20px 52px rgba(0, 7, 20, 0.28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font: 500 16px/1.65 "Manrope", "Segoe UI", sans-serif;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 72px 72px;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { color: var(--mint); }
button, input { font: inherit; }
button { cursor: pointer; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 3px solid var(--mint);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  background: var(--mint);
  color: var(--text-dark);
  padding: 10px 14px;
  border-radius: var(--radius);
}
.skip-link:focus { top: 12px; }

.site-header, .site-footer, .page {
  width: min(var(--max), calc(100% - (var(--page-pad) * 2)));
  margin-inline: auto;
}
.site-header {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 22px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  color: var(--text);
  text-decoration: none;
  font-family: "Unbounded", "Manrope", sans-serif;
  font-size: 15px;
  font-weight: 700;
}
.brand img {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.site-nav-links { display: flex; align-items: center; gap: 4px; }
.site-nav-links a, .search-open {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  padding: 0 9px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.site-nav-links a:hover, .search-open:hover {
  background: var(--surface);
  color: var(--text);
}
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--blue);
  border-radius: var(--radius);
  background: var(--blue);
  color: #fff;
  padding: 0 19px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 800;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.button:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  color: #fff;
  transform: translateY(-2px);
}
.button-secondary { background: transparent; border-color: var(--line); color: var(--text); }
.button-secondary:hover { background: var(--surface-2); border-color: var(--mint); }
.button-muted { background: #66758a; border-color: #66758a; cursor: not-allowed; }
.site-nav > .button { min-height: 42px; padding-inline: 14px; font-size: 13px; }

.breadcrumbs {
  min-height: 50px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}
.breadcrumbs a { text-decoration: none; }

.hero {
  min-height: 430px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(310px, .9fr);
  align-items: center;
  gap: 56px;
  padding: 58px 0 68px;
  border-bottom: 1px solid var(--line);
}
.page-hub .hero { min-height: 560px; }
.hero-copy { max-width: 700px; }
.eyebrow {
  margin: 0 0 14px;
  color: var(--mint);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}
.hero h1, .content-section h2, .faq-section h2, .next-step h2, .card h2 {
  margin: 0;
  font-family: "Unbounded", "Manrope", sans-serif;
  letter-spacing: 0;
}
.hero h1 { max-width: 760px; font-size: 48px; line-height: 1.12; }
.page-hub .hero h1 { font-size: 64px; }
.lead { max-width: 650px; margin: 22px 0 0; color: var(--muted); font-size: 19px; line-height: 1.55; }
.editorial-note {
  max-width: 650px;
  margin: 20px 0 0;
  padding: 12px 14px;
  border-left: 3px solid var(--coral);
  background: rgba(255,138,114,.08);
  color: var(--muted);
  font-size: 14px;
}
.hero-actions, .next-step-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-art {
  position: relative;
  min-height: 330px;
  margin: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.hero-art::before, .hero-art::after {
  content: "";
  position: absolute;
  border: 1px solid var(--line);
  border-radius: 50%;
}
.hero-art::before { width: 270px; height: 270px; }
.hero-art::after { width: 390px; height: 390px; border-color: rgba(125,224,195,.22); }
.hero-logo {
  position: relative;
  z-index: 1;
  width: 196px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #292929;
  box-shadow: 0 16px 44px rgba(0,0,0,.35);
}
.hero-logo img { width: 100%; height: auto; border-radius: 4px; }
.hero-art figcaption {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 2;
  max-width: calc(100% - 36px);
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.status-code { margin: 0 0 12px; color: var(--coral); font-size: 36px; font-weight: 800; }

.content-section {
  display: grid;
  grid-template-columns: minmax(220px, .7fr) minmax(0, 1.3fr);
  gap: 48px;
  padding: 66px 0;
  border-bottom: 1px solid var(--line);
}
.content-section h2, .faq-section h2, .next-step h2 { font-size: 34px; line-height: 1.2; }
.content-section p { max-width: 720px; margin: 0; color: var(--muted); font-size: 18px; }
.steps { display: block; }
.steps ol {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.steps li {
  counter-increment: step;
  min-height: 128px;
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 48px 20px 20px;
}
.steps li::before {
  content: "0" counter(step);
  position: absolute;
  top: 16px;
  left: 20px;
  color: var(--mint);
  font-weight: 800;
}

.card-section { padding: 58px 0; }
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.card {
  min-height: 210px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 22px;
  color: var(--text);
  text-decoration: none;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.card:hover { background: var(--surface-2); border-color: var(--blue); color: var(--text); transform: translateY(-3px); }
.card-index { display: block; max-width: calc(100% - 54px); margin-bottom: 38px; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.card-icon {
  width: 36px;
  height: 36px;
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--mint);
  color: var(--text-dark);
}
.card-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h2 { max-width: calc(100% - 42px); font-size: 24px; line-height: 1.25; }
.card p { max-width: 450px; margin: 12px 0 0; color: var(--muted); }
.card > span:last-child { position: absolute; right: 20px; bottom: 18px; color: var(--mint); font-size: 24px; }

.faq-section { padding: 66px 0; border-top: 1px solid var(--line); }
.faq-section details { border-bottom: 1px solid var(--line); }
.faq-section summary { position: relative; padding: 21px 50px 21px 0; cursor: pointer; list-style: none; font-size: 17px; font-weight: 800; }
.faq-section summary::-webkit-details-marker { display: none; }
.faq-section summary::after { content: "+"; position: absolute; right: 10px; top: 13px; color: var(--mint); font-size: 26px; }
.faq-section details[open] summary::after { content: "−"; }
.faq-section details p { max-width: 760px; margin: 0 0 22px; color: var(--muted); }

.next-step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 32px;
  margin: 48px 0 80px;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}
.next-step p:not(.eyebrow) { max-width: 680px; margin: 14px 0 0; color: var(--muted); }
.next-step-actions { justify-content: flex-end; margin-top: 0; }

.site-footer {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 36px;
  padding: 48px 0 60px;
  border-top: 1px solid var(--line);
}
.site-footer p { max-width: 540px; margin: 18px 0 0; color: var(--muted); }
.site-footer nav { display: flex; align-content: flex-start; justify-content: flex-end; flex-wrap: wrap; gap: 12px 22px; }
.site-footer nav a { color: var(--muted); font-size: 14px; font-weight: 700; }

.search-dialog {
  width: min(680px, calc(100% - 32px));
  max-width: none;
  padding: 0;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  background: var(--surface-light);
  color: var(--text-dark);
  box-shadow: var(--shadow);
}
.search-dialog::backdrop { background: rgba(2, 7, 15, .78); }
.search-bar { display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 18px; border-bottom: 1px solid var(--line-light); }
.search-bar label { grid-column: 1 / -1; color: var(--muted-dark); font-size: 13px; font-weight: 800; }
.search-bar input { min-width: 0; border: 0; background: transparent; padding: 9px 0; color: var(--text-dark); font-size: 20px; }
.search-bar button { border: 0; background: transparent; color: var(--text-dark); font-size: 28px; }
.search-results { min-height: 90px; padding: 8px 18px 18px; }
.search-results a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line-light); text-decoration: none; }
.search-results strong, .search-results span { display: block; }
.search-results span { margin-top: 3px; color: var(--muted-dark); font-size: 14px; }

/* Local Funnel Checkout */
.checkout-body { background: #08111f; }
.checkout-header {
  width: min(var(--max), calc(100% - (var(--page-pad) * 2)));
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-inline: auto;
  border-bottom: 1px solid var(--line);
}
.checkout-header nav { display: flex; gap: 18px; }
.checkout-header nav a { color: var(--muted); font-size: 14px; font-weight: 700; }
.checkout-main { width: min(var(--max), calc(100% - (var(--page-pad) * 2))); margin: 0 auto; padding: 54px 0 84px; }
.checkout-intro { max-width: 760px; margin-bottom: 34px; }
.checkout-intro h1 { margin: 0; font: 700 48px/1.14 "Unbounded", "Manrope", sans-serif; letter-spacing: 0; }
.checkout-intro > p:last-child { max-width: 680px; margin: 18px 0 0; color: var(--muted); font-size: 18px; }
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; align-items: start; gap: 18px; }
.checkout-panel, .checkout-summary {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.checkout-panel { padding: 28px; }
.checkout-summary { position: sticky; top: 18px; padding: 24px; }
.checkout-form { display: grid; gap: 26px; }
.checkout-topline { display: flex; align-items: start; justify-content: space-between; gap: 20px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.checkout-topline span, .checkout-topline b { display: block; }
.checkout-topline span { color: var(--muted); font-size: 13px; }
.checkout-topline b { margin-top: 3px; font-size: 20px; }
.checkout-status { max-width: 300px; color: var(--muted); font-size: 13px; text-align: right; }
.checkout-error { border: 1px solid var(--coral); border-radius: var(--radius); background: rgba(255,138,114,.1); color: #ffd8d0; padding: 13px 15px; }
.checkout-error[hidden], .checkout-field-error[hidden] { display: none; }
.checkout-section { min-width: 0; margin: 0; padding: 0; border: 0; }
.checkout-section legend, .checkout-field > span { display: block; margin-bottom: 12px; color: var(--text); font-size: 18px; font-weight: 800; }
.tariff-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.period-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tariff-card, .period-card, .payment-method-card {
  position: relative;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0d1829;
  padding: 16px;
  cursor: pointer;
}
.tariff-card { min-height: 150px; align-items: flex-start; justify-content: space-between; }
.period-card { min-height: 126px; align-items: flex-start; flex-direction: column; }
.payment-method-card { min-height: 82px; }
.tariff-card:hover, .period-card:hover, .payment-method-card:hover { border-color: var(--blue); }
.tariff-card:has(input:checked), .period-card:has(input:checked), .payment-method-card:has(input:checked) {
  border-color: var(--mint);
  box-shadow: 0 0 0 2px rgba(125,224,195,.16);
}
.tariff-card input, .period-card input, .payment-method-card input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.tariff-card span, .period-card span, .payment-method-card span,
.tariff-card b, .period-card b, .payment-method-card strong,
.tariff-card small, .period-card small, .payment-method-card small { display: block; min-width: 0; overflow-wrap: anywhere; }
.tariff-card b, .period-card b, .payment-method-card strong { color: var(--text); font-size: 16px; }
.tariff-card small, .period-card small, .payment-method-card small { margin-top: 5px; color: var(--muted); font-size: 13px; }
.tariff-card__body { min-width: 0; }
.tariff-card__side { flex: 0 0 auto; min-width: 0; text-align: right; }
.tariff-card__meta { display: block; margin-top: 12px; color: var(--mint); font-size: 12px; font-style: normal; }
.sale-price, .sale-price__row { display: flex; gap: 6px; }
.sale-price { flex-direction: column; align-items: flex-end; }
.sale-price__row { align-items: center; justify-content: flex-end; flex-wrap: nowrap; }
.sale-price__old, .sale-price__current, .sale-price__badge { overflow-wrap: normal !important; white-space: nowrap; word-break: normal; }
.sale-price__old { color: #73839a; font-size: 12px; }
.sale-price__current { color: var(--text); font-size: 17px; }
.sale-price__badge { border-radius: 4px; background: var(--coral); color: #24100b; padding: 2px 5px; font-size: 10px; font-weight: 800; }
.period-card em { margin-top: auto; font-style: normal; }
.period-card .sale-price { align-items: flex-start; }
.period-card .sale-price__row { justify-content: flex-start; }
.checkout-field input {
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0d1829;
  color: var(--text);
  padding: 0 15px;
}
.checkout-field small { display: block; margin-top: 8px; color: var(--muted); }
.checkout-field[data-state="invalid"] input { border-color: var(--coral); }
.checkout-field-error { color: #ffb2a2 !important; }
.payment-method-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.payment-method-card img { flex: 0 0 auto; width: 34px; height: 38px; object-fit: contain; }
.checkout-consent { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; color: var(--muted); font-size: 14px; }
.checkout-consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--mint); }
.checkout-consent a { color: var(--text); }
.checkout-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.checkout-submit { min-width: 230px; }
.checkout-submit:disabled,
.checkout-submit[data-state="incomplete"] { border-color: #40516a; background: #40516a; color: #9aa9bc; transform: none; }
.checkout-submit:disabled { cursor: not-allowed; }
.checkout-submit[data-state="incomplete"]:not(:disabled) { cursor: pointer; }
.checkout-summary > p:first-child { margin: 0 0 12px; color: var(--muted); font-size: 13px; font-weight: 800; text-transform: uppercase; }
.checkout-summary > strong { display: block; min-height: 52px; margin-bottom: 18px; color: var(--text); font: 700 30px/1.2 "Unbounded", "Manrope", sans-serif; }
.checkout-summary .sale-price { align-items: flex-start; }
.checkout-summary .sale-price__row { justify-content: flex-start; }
.checkout-summary .sale-price__current { font-size: 30px; }
.checkout-summary dl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin: 0; padding: 18px 0; border-block: 1px solid var(--line); }
.checkout-summary dt { color: var(--muted); }
.checkout-summary dd { margin: 0; color: var(--text); text-align: right; overflow-wrap: anywhere; }
.checkout-summary > p:last-child { margin: 18px 0 0; color: var(--muted); font-size: 13px; }
.checkout-empty { grid-column: 1 / -1; margin: 0; color: var(--muted); }

@media (max-width: 900px) {
  .checkout-layout { grid-template-columns: 1fr; }
  .checkout-summary { position: static; grid-row: 1; }
}

@media (max-width: 1100px) {
  .site-header { flex-wrap: wrap; padding-block: 16px; }
  .menu-toggle { display: block; }
  .site-nav { display: none; flex-basis: 100%; align-items: stretch; flex-direction: column; margin: 0; padding: 10px 0 4px; }
  .site-nav.is-open { display: flex; }
  .site-nav-links { align-items: stretch; flex-direction: column; }
  .site-nav-links a, .search-open { justify-content: flex-start; width: 100%; }
  .site-nav > .button { width: 100%; }
  .hero { grid-template-columns: 1fr; }
  .hero-art { min-height: 300px; }
  .page-hub .hero h1 { font-size: 52px; }
  .next-step { grid-template-columns: 1fr; }
  .next-step-actions { justify-content: flex-start; }
}

@media (max-width: 720px) {
  :root { --page-pad: 16px; }
  body { font-size: 15px; }
  .brand span { font-size: 14px; }
  .breadcrumbs { padding-block: 10px; }
  .hero, .page-hub .hero { min-height: 0; gap: 28px; padding: 34px 0 46px; }
  .hero h1, .page-hub .hero h1 { font-size: 38px; line-height: 1.16; }
  .lead { font-size: 17px; }
  .hero-art { min-height: 255px; order: -1; }
  .hero-logo { width: 150px; }
  .hero-art::before { width: 210px; height: 210px; }
  .hero-art::after { width: 310px; height: 310px; }
  .hero-actions .button { flex: 1 1 150px; }
  .content-section { grid-template-columns: 1fr; gap: 20px; padding: 48px 0; }
  .content-section h2, .faq-section h2, .next-step h2 { font-size: 28px; }
  .steps ol, .card-grid { grid-template-columns: 1fr; }
  .card { min-height: 190px; }
  .next-step { margin-bottom: 56px; padding: 26px 20px; }
  .next-step-actions .button { width: 100%; }
  .site-footer { grid-template-columns: 1fr; padding-bottom: 44px; }
  .site-footer nav { justify-content: flex-start; }
  .checkout-header { min-height: 68px; }
  .checkout-header nav a:first-child { display: none; }
  .checkout-main { padding: 34px 0 58px; }
  .checkout-intro h1 { font-size: 34px; }
  .checkout-intro > p:last-child { font-size: 16px; }
  .checkout-panel, .checkout-summary { padding: 20px; }
  .checkout-topline { align-items: flex-start; flex-direction: column; }
  .checkout-status { max-width: none; text-align: left; }
  .tariff-list, .period-list, .payment-method-list { grid-template-columns: 1fr; }
  .tariff-card, .period-card { min-height: 116px; }
  .checkout-submit { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .card { transition: none; }
}
