/* Neytom marketing design system — loaded last on marketing pages.
   One palette, one type scale, one container, one radius. */
:root {
  --accent: #0058b0;
  --accent-hover: #004a94;
  --accent-ink: #0058b0;
  --accent-soft: #eaf2fc;
  --text: #0b1220;
  --text-strong: #0b1220;
  --muted: #475467;
  --subtle: #667085;
  --border: #e4e7ec;
  --border-strong: #d0d5dd;
  --bg: #ffffff;
  --bg-alt: #f6f8fb;
  --card: #ffffff;
  --ok: #12805c;
  --warn: #b54708;
  --bad: #c0362c;
  --radius: 6px;
  --radius-md: 6px;
  --container: 1200px;
  --gutter: 24px;
  --fs-xs: 13px;
  --fs-sm: 15px;
  --fs-body: 17px;
  --fs-lead: 20px;
  --fs-h3: 22px;
  --fs-h2: 32px;
  --fs-h1: clamp(36px, 3.2vw + 12px, 52px);
  --shadow-card: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-raised: 0 4px 16px rgba(16, 24, 40, 0.08);
}

/* ---------- Base ---------- */
html { font-size: 17px; }
body.hp, .hp {
  background: var(--bg);
  color: var(--text);
  font-family: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.hp-bg { display: none !important; }
.hp a { color: var(--accent); text-underline-offset: 2px; }
.hp a:hover { color: var(--accent-hover); }
.hp p a, .hp li a { text-decoration: none; font-weight: 600; }
.hp p a:hover, .hp li a:hover { text-decoration: underline; }
.hp h1, .hp h2, .hp h3 { color: var(--text-strong); font-weight: 700; letter-spacing: -0.015em; }
.hp h1 { font-size: var(--fs-h1); line-height: 1.1; letter-spacing: -0.025em; margin: 0 0 20px; max-width: 18ch; }
.hp h2, .hp .hp-h2-inline { font-size: var(--fs-h2); line-height: 1.15; margin: 0 0 12px; max-width: 30ch; }
.hp h3 { font-size: var(--fs-h3); line-height: 1.25; }
.hp .hp-lead, .hp .hp-plans-lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--muted); max-width: 62ch; margin: 0 0 32px; }
.hp strong { font-weight: 600; }

/* ---------- One container ---------- */
.hp-wrap, .hp-wrap.hp-wrap-wide, .hp-wrap-wide {
  width: min(var(--container), 100% - 2 * var(--gutter));
  max-width: none;
  margin-inline: auto;
}
.hp-product-grid, .hp-plans-row, .hp-plans.hp-plans-row { max-width: none !important; margin-inline: 0 !important; }
main > section, .hp-section-tight { padding-block: 88px; }
.hp-section-gray, .hp-isolation, #faq { background: var(--bg-alt); }
.hp-paths, #plans { background: var(--bg); }

/* ---------- Header ---------- */
.hp-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
  box-shadow: none;
  backdrop-filter: saturate(1.2) blur(8px);
}
.hp-header .neytom-brand__tag { display: none; }
.hp-header .neytom-brand__name { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; color: var(--text); }
.hp-nav-link { font-size: var(--fs-sm); font-weight: 600; color: var(--text); border-radius: var(--radius); }
.hp-nav-link:hover { color: var(--accent); background: transparent; }
.hp-nav-link.is-active { color: var(--accent); background: var(--accent-soft); }
.hp-header-actions { gap: 8px; }

/* ---------- Buttons ---------- */
.hp .hp-btn {
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--radius);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0;
  box-shadow: none;
  transform: none !important;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.hp .hp-btn-sm { min-height: 38px; padding: 0 16px; }
.hp .hp-btn-lg { min-height: 50px; padding: 0 28px; font-size: var(--fs-body); }
.hp .hp-btn-primary { background: var(--accent); border: 1px solid var(--accent); color: #fff; }
.hp .hp-btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.hp .hp-btn-ghost,
.hp .hp-header-actions .hp-btn-ghost,
.hp .hp-hero-actions .hp-btn-ghost,
.hp .hp-cta-box-secondary { background: #fff; border: 1px solid var(--border-strong); color: var(--text); }
.hp .hp-btn-ghost:hover { border-color: var(--accent); color: var(--accent); background: #fff; }
.hp .hp-btn-text { background: transparent; border: 1px solid transparent; color: var(--text); }
.hp .hp-btn-text:hover { color: var(--accent); }

/* ---------- Badges ---------- */
.hp .hp-plan-tag {
  display: inline-flex; align-items: center;
  height: 24px; padding: 0 8px;
  border-radius: var(--radius);
  background: var(--accent-soft); color: var(--accent);
  border: 0;
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0; text-transform: none;
}
.hp .hp-plan-tag--promo { background: #e7f5ef; color: var(--ok); }
.hp .hp-plan-tag--stopped { background: var(--bg-alt); color: var(--subtle); }

/* ---------- Hero ---------- */
.hp-hero-split { padding-block: 96px 80px; background: var(--bg); }
.hp-hero-split-grid--iso { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.hp-hero-kicker {
  display: inline-block; margin: 0 0 16px;
  font-size: var(--fs-sm); font-weight: 600; color: var(--accent);
  letter-spacing: 0; text-transform: none;
  background: none; border: 0; padding: 0;
}
.hp .hp-sub { font-size: var(--fs-lead); line-height: 1.5; color: var(--muted); max-width: 56ch; margin: 0 0 32px; }
.hp-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 28px; }
.hp-hero-facts { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; list-style: none; font-size: var(--fs-sm); color: var(--muted); }
.hp-hero-facts li { display: inline-flex; align-items: center; gap: 8px; }
.hp-hero-facts li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--border-strong); }
.hp-isocard {
  margin: 0; background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-raised); overflow: hidden;
}
.hp-isocard-row { display: grid; gap: 4px; padding: 22px 24px; border-bottom: 1px solid var(--border); }
.hp-isocard-label { font-size: var(--fs-xs); font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: 0.06em; }
.hp-isocard-row strong { font-size: var(--fs-body); font-weight: 700; color: var(--text); }
.hp-isocard-meta { font-size: var(--fs-sm); color: var(--muted); }
.hp-isocard figcaption { padding: 16px 24px; background: var(--bg-alt); font-size: var(--fs-sm); }

/* ---------- Proof band ---------- */
.hp-proof-band { padding: 0; background: var(--bg); }
.hp-proof-band-list {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0; padding: 0; list-style: none;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.hp-proof-band-list li {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 20px 12px; font-size: var(--fs-sm); color: var(--muted); text-align: center;
}
.hp-proof-band-list li + li { border-left: 1px solid var(--border); }
.hp-proof-band-list a { color: var(--text); font-weight: 600; text-decoration: none; }
.hp-proof-band-list a:hover { color: var(--accent); }
.hp-status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: none; animation: none; }

/* ---------- Isolation diagram (monochrome) ---------- */
.hp .hp-h2-left, .hp .hp-lead-left { margin-left: 0; text-align: left; }
.hp-iso-panel { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: none; }
.hp-iso-panel-title { font-size: var(--fs-body); font-weight: 700; color: var(--text); }
.hp-iso-panel-body { font-size: var(--fs-sm); color: var(--muted); }
.hp-iso-site, .hp-iso-site--noisy, .hp-iso-pool, .hp-iso-lxc, .hp-iso-lxc--dim {
  background: var(--bg-alt) !important; border: 1px solid var(--border) !important; color: var(--muted) !important;
  border-radius: var(--radius) !important; box-shadow: none !important;
}
.hp-iso-site--noisy { border-color: var(--border-strong) !important; color: var(--text) !important; }
.hp-iso-spike { background: var(--text) !important; color: #fff !important; border-radius: 4px !important; }
.hp-iso-lxc--yours { background: var(--accent-soft) !important; border: 1px solid var(--accent) !important; color: var(--text) !important; border-radius: var(--radius) !important; box-shadow: none !important; }
.hp-iso-lxc strong, .hp-iso-lxc--yours strong { color: var(--text) !important; }
.hp-iso-connectors span { background: var(--border-strong) !important; }
.hp-iso-caption { font-size: var(--fs-sm); color: var(--muted); }
.hp-isolation-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding: 0; list-style: none; }
.hp-isolation-grid li { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; display: grid; gap: 4px; box-shadow: none; }
.hp-isolation-grid strong { font-size: var(--fs-body); color: var(--text); }
.hp-isolation-grid span { font-size: var(--fs-sm); color: var(--muted); }

/* ---------- Cards: products & plans ---------- */
.hp-product-grid { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 20px !important; }
.hp-plans.hp-plans-row { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 20px !important; }
.hp-product-grid .hp-plan,
.hp-plans-row .hp-plan {
  display: grid !important;
  grid-template-rows: auto auto auto auto 1fr auto;
  align-content: start;
  background: #fff !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow-card) !important;
  padding: 28px 24px !important;
  transform: none !important;
}
.hp-product-grid .hp-plan:hover, .hp-plans-row .hp-plan:hover { border-color: var(--border-strong) !important; box-shadow: var(--shadow-raised) !important; }
.hp-plans-row .hp-plan.is-featured, .hp-product-grid .hp-plan.is-featured { border: 2px solid var(--accent) !important; padding: 27px 23px !important; }
.hp-plans-row .hp-plan.is-selected:not(.is-featured) { border: 1px solid var(--border) !important; box-shadow: var(--shadow-card) !important; }
.hp-plan::before, .hp-plan-ring { display: none !important; }
.hp-plan-tag-slot { min-height: 24px; margin: 0 0 16px !important; display: flex; gap: 6px; flex-wrap: wrap; }
.hp .hp-plan h3 { font-size: var(--fs-h3) !important; margin: 0 0 4px !important; }
.hp .hp-plan-for { font-size: var(--fs-sm) !important; color: var(--muted) !important; margin: 0 0 20px !important; min-height: 0 !important; }
.hp-plan-price-slot { min-height: 44px; margin: 0 0 20px !important; display: flex; align-items: flex-end; }
.hp .hp-plan-price {
  font-size: 30px !important; font-weight: 700 !important; color: var(--text) !important;
  letter-spacing: -0.02em; line-height: 1.1; font-variant-numeric: tabular-nums;
}
.hp-product-grid .hp-plan-price { font-size: var(--fs-lead) !important; }
.hp .hp-plan-price small { font-size: var(--fs-sm); font-weight: 400; color: var(--muted); margin-left: 2px; }
.hp .hp-plan.is-free-promo .hp-plan-price { color: var(--ok) !important; }
.hp .hp-plan-specs, .hp .hp-plan-points, .hp .hp-plan ul {
  background: none !important; border: 0 !important; padding: 0 !important; margin: 0 0 24px !important;
  list-style: none; display: grid; gap: 10px;
}
.hp .hp-plan li {
  position: relative; padding-left: 24px !important; font-size: var(--fs-sm) !important; line-height: 1.45; color: var(--text) !important;
  background: none !important; font-weight: 400 !important;
}
.hp .hp-plan li::before {
  content: "" !important; position: absolute; left: 2px; top: 0.42em;
  width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg); background: none !important; color: transparent !important;
}
.hp .hp-plan .hp-plan-cta, .hp .hp-plan .hp-btn { align-self: end; width: 100%; }
.hp-plan-note, .hp-plan-fine { font-size: var(--fs-xs) !important; color: var(--subtle) !important; }
.hp-plans-head { margin: 0 0 32px; }
.hp-plans-title-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.hp-billing-toggle { border: 1px solid var(--border-strong); border-radius: var(--radius); background: #fff; padding: 3px; box-shadow: none; }
.hp-billing-btn { border-radius: 4px !important; font-size: var(--fs-sm); font-weight: 600; min-height: 36px; }
.hp-billing-btn.is-active { background: var(--accent) !important; color: #fff !important; }
.hp-billing-save { color: var(--ok); font-weight: 600; }
.hp-plans-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 32px; }
.hp-plans-note { flex-basis: 100%; margin: 8px 0 0; font-size: var(--fs-sm); color: var(--muted); }
.hp-domain-widget { margin-top: 32px; background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: none; }
.hp-domain-widget label { font-size: var(--fs-body); font-weight: 600; color: var(--text); }
.hp-domain-widget input[type="text"] { min-height: 44px; border: 1px solid var(--border-strong); border-radius: var(--radius); font-size: var(--fs-body); padding: 0 14px; background: #fff; }
.hp-domain-widget-note { font-size: var(--fs-sm); color: var(--muted); }

/* ---------- Risk band, FAQ, final CTA ---------- */
.hp-risk-band { background: var(--bg) !important; }
.hp-risk-inner { display: flex; justify-content: space-between; align-items: center; gap: 32px; border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; }
.hp-risk-inner .hp-lead { margin: 0; }
.hp-faq-list { max-width: 820px !important; margin-top: 8px !important; }
.hp-faq-item { border: 0 !important; border-bottom: 1px solid var(--border) !important; border-radius: 0 !important; background: transparent !important; padding: 20px 0 !important; margin: 0 !important; }
.hp-faq-item summary { font-size: var(--fs-body) !important; font-weight: 600 !important; color: var(--text) !important; }
.hp-faq-item p { font-size: var(--fs-sm) !important; color: var(--muted) !important; line-height: 1.6 !important; max-width: 68ch; }
.hp-cta-final { background: var(--bg) !important; }
.hp-cta-box { background: var(--accent) !important; border: 0 !important; border-radius: var(--radius) !important; box-shadow: none !important; padding: 64px 32px !important; text-align: center; }
.hp-cta-box h2 { color: #fff !important; margin-inline: auto; }
.hp-cta-box p { color: rgba(255, 255, 255, 0.86) !important; font-size: var(--fs-lead); }
.hp-cta-box .hp-btn-primary { background: #fff !important; color: var(--accent) !important; border-color: #fff !important; }
.hp-cta-box .hp-cta-box-secondary { background: transparent !important; color: #fff !important; border-color: rgba(255, 255, 255, 0.6) !important; }

/* ---------- Footer (dark) ---------- */
.hp-footer { background: #0b1220 !important; color: #c8cfda !important; border-top: 0 !important; padding-block: 64px 32px !important; }
.hp-footer a, .hp-footer button { color: #c8cfda !important; font-size: var(--fs-sm); text-decoration: none; }
.hp-footer a:hover { color: #fff !important; }
.hp-footer-col-title { color: #fff !important; font-size: var(--fs-xs) !important; letter-spacing: 0.08em; }
.hp-footer .neytom-brand__name { color: #fff !important; }
.hp-footer .hp-share-btn { background: transparent !important; border: 1px solid #344054 !important; border-radius: var(--radius) !important; color: #c8cfda !important; }
.hp-footer-trust, .hp-footer-copy, .hp-footer-pay { color: #98a2b3 !important; font-size: var(--fs-xs) !important; border-color: #1d2939 !important; }
.hp-footer hr, .hp-footer-bottom { border-color: #1d2939 !important; }

/* ---------- Cookie banner in system style ---------- */
.neytom-cookie-banner { border-radius: var(--radius) !important; border: 1px solid var(--border) !important; box-shadow: var(--shadow-raised) !important; font-family: inherit !important; }
.neytom-cookie-btn { border-radius: var(--radius) !important; min-height: 40px; font-weight: 600 !important; }
.neytom-cookie-btn--primary { background: var(--accent) !important; border-color: var(--accent) !important; color: #fff !important; }
.neytom-cookie-btn--ghost { background: #fff !important; border: 1px solid var(--border-strong) !important; color: var(--text) !important; }

/* ---------- No decorative motion ---------- */
.hp-plan--3d, .hp-isocard--3d { transform: none !important; }
.hp-plan--3d::before { display: none !important; }
.hp-scroll-progress, .hp-share-rail { display: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hp-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .hp-isolation-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .hp-hero-split-grid--iso { grid-template-columns: 1fr; gap: 40px; }
  .hp-plans.hp-plans-row { grid-template-columns: 1fr !important; max-width: 520px !important; }
  .hp-proof-band-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hp-proof-band-list li:nth-child(3) { border-left: 0; }
  .hp-proof-band-list li:nth-child(n+3) { border-top: 1px solid var(--border); }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; --fs-h2: 26px; --fs-lead: 18px; --fs-body: 16px; }
  html { font-size: 16px; }
  main > section, .hp-section-tight { padding-block: 56px; }
  .hp-hero-split { padding-block: 48px 40px; }
  .hp-product-grid, .hp-isolation-grid { grid-template-columns: 1fr !important; }
  .hp-hero-actions .hp-btn { width: 100%; }
  .hp-risk-inner { flex-direction: column; align-items: stretch; padding: 24px; }
  .hp-cta-box { padding: 40px 20px !important; }
}

/* ---------- Fixes after visual pass ---------- */
.hp-plan-tag-slot { height: 24px; min-height: 24px; }
.hp .hp-plan li::before {
  content: "" !important; left: 0; top: 0.3em; width: 16px; height: 16px;
  border: 0 !important; transform: none !important;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%230058b0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat !important;
}
.hp-plans-title-row { width: 100%; }
.hp-plans-title-block { flex: 1 1 auto; }
.hp-risk-band { padding-top: 0 !important; }
.neytom-brand__mark { border-radius: 6px !important; }
.hp h1 { max-width: 24ch; }
.hp-hero-split .hp-hero-copy h1 { max-width: 18ch; }
.hp-mega .is-active { background: transparent; }

/* ---------- Legal pages inside the shared shell ---------- */
.mp-legal .mp-body .card { background: transparent; border: 0; padding: 0; border-radius: 0; }
.mp-legal .mp-body .sub { font-size: var(--fs-sm); color: var(--subtle); margin: -24px 0 32px; }
.mp-legal .mp-body .note { font-size: var(--fs-sm); color: var(--muted); background: var(--bg-alt); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--radius); padding: 14px 16px; margin: 16px 0; }
.mp-legal .mp-body nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); font-size: var(--fs-sm); }
.mp-legal .mp-body table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); margin: 16px 0; }
.mp-legal .mp-body th, .mp-legal .mp-body td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }

/* ---------- Identical chrome on every public page ---------- */
body.hp, body.nv-app, body.mp-subpage, body.ml-page { background: #fff !important; }
body.nv-app { --ribbon-h: 0px; }
#hpHeader.hp-header { top: 0 !important; }
#hpHeader .hp-header-inner { min-height: 58px; }
#hpHeader .neytom-brand__name { font-size: 19px !important; font-weight: 700 !important; letter-spacing: -0.02em !important; color: #0b1220 !important; }
#hpHeader .neytom-brand__mark { width: 32px !important; height: 32px !important; border-radius: 6px !important; }
#hpHeader .hp-btn { font-family: "Source Sans 3", "Segoe UI", system-ui, sans-serif !important; min-height: 38px; padding: 0 16px; border-radius: 6px !important; font-size: 15px !important; font-weight: 600 !important; box-shadow: none !important; }
#hpHeader .hp-btn-text { background: transparent !important; border: 1px solid transparent !important; color: #0b1220 !important; }
#hpHeader .hp-btn-text:hover { color: #0058b0 !important; }
#hpHeader .hp-btn-primary { background: #0058b0 !important; border: 1px solid #0058b0 !important; color: #fff !important; }
#hpHeader .hp-nav-link { font-family: "Source Sans 3", "Segoe UI", system-ui, sans-serif !important; font-size: 15px !important; font-weight: 600 !important; }
.hp-footer, .hp-footer * { font-family: "Source Sans 3", "Segoe UI", system-ui, sans-serif; }
.mp-legal .mp-body .sub { margin: 0 0 32px; }
#hpHeader.hp-header { border-bottom: 1px solid #e4e7ec !important; background: rgba(255, 255, 255, 0.96) !important; box-shadow: none !important; }
body.nv-app { padding-top: 59px; }
