/* ==========================================================================
   COMPAS — compasbg.com
   Modern responsive site styles
   ========================================================================== */

:root {
  --navy-950: #050d19;
  --navy-900: #071426;
  --navy-800: #0a1e36;
  --navy-700: #0f2b4a;
  --ink: #102138;
  --text: #25364f;
  --muted: #5c6f88;
  --bg: #f5f8fc;
  --card: #ffffff;
  --line: #e3eaf3;

  --brand: #0a7fc4;
  --brand-dark: #07659e;
  --cyan: #29abe2;
  --green: #7fbf3f;
  --green-dark: #5f9c2a;
  --red: #e32636;
  --yellow: #fdb913;

  --radius: 20px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 10px rgba(10, 30, 54, 0.05);
  --shadow-md: 0 22px 45px -24px rgba(10, 30, 54, 0.28);
  --shadow-lg: 0 45px 90px -40px rgba(5, 18, 40, 0.5);

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;

  --container: 1180px;
  --header-h: 76px;
  --stripe: 3px;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--stripe) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--stripe);
  z-index: 70;
  background: linear-gradient(90deg, var(--red) 0%, #f28c28 22%, var(--yellow) 42%, var(--green) 62%, var(--cyan) 82%, var(--brand) 100%);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 800;
}

p {
  margin: 0;
}

button {
  font: inherit;
}

::selection {
  background: var(--cyan);
  color: #06101f;
}

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

.section {
  padding: clamp(72px, 9vw, 112px) 0;
  position: relative;
}

.section--soft {
  background:
    radial-gradient(800px 400px at 100% 0%, rgba(41, 171, 226, 0.06), transparent 65%),
    var(--bg);
}

.section--white {
  background: #fff;
}

.section--dark {
  background:
    radial-gradient(900px 520px at 85% 0%, rgba(41, 171, 226, 0.16), transparent 60%),
    radial-gradient(700px 480px at 5% 100%, rgba(127, 191, 63, 0.08), transparent 60%),
    linear-gradient(160deg, var(--navy-800) 0%, var(--navy-900) 55%, var(--navy-950) 100%);
  color: rgba(229, 238, 249, 0.78);
}

.section--dark h2,
.section--dark h3 {
  color: #fff;
}

.skip-link {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 200;
  padding: 12px 18px;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  box-shadow: var(--shadow-md);
  transform: translateY(-180%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: none;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #2cb4ef 0%, var(--brand) 60%, var(--brand-dark) 100%);
  box-shadow: 0 16px 32px -16px rgba(10, 127, 196, 0.75);
}

.btn-primary:hover {
  box-shadow: 0 22px 38px -18px rgba(10, 127, 196, 0.85);
}

.btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.11);
}

.btn-outline {
  color: var(--ink);
  border-color: var(--line);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
  border-color: rgba(10, 127, 196, 0.35);
  color: var(--brand-dark);
}

.btn-light {
  color: var(--navy-900);
  background: #fff;
  box-shadow: 0 16px 34px -20px rgba(0, 0, 0, 0.6);
}

.btn-lg {
  min-height: 54px;
  padding: 0 28px;
  font-size: 1rem;
}

.btn-sm {
  min-height: 42px;
  padding: 0 18px;
  font-size: 0.875rem;
}

.btn-block {
  width: 100%;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  top: var(--stripe);
  inset-inline: 0;
  z-index: 60;
  color: #fff;
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.site-header.is-scrolled,
.site-header.header-solid {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow: 0 1px 0 var(--line), 0 18px 36px -30px rgba(10, 30, 54, 0.4);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.brand-mark {
  width: 46px;
  height: auto;
  filter: drop-shadow(0 4px 10px rgba(4, 15, 30, 0.28));
  transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
  transform: rotate(-4deg) scale(1.03);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: 0.09em;
}

.brand-tag {
  margin-top: 4px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 12.5px;
  letter-spacing: 0.02em;
  opacity: 0.68;
}

.brand-logo {
  display: block;
  height: 40px;
  width: auto;
}

.footer-logo {
  display: block;
  height: 46px;
  width: auto;
}

.about-logo {
  display: block;
  height: 54px;
  width: auto;
}

/* Logo variant per header state: transparent header sits over the dark hero,
   scrolled / solid headers get a white background. */
.site-header .brand-logo--on-light {
  display: none;
}

.site-header.is-scrolled .brand-logo--on-dark,
.site-header.header-solid .brand-logo--on-dark {
  display: none;
}

.site-header.is-scrolled .brand-logo--on-light,
.site-header.header-solid .brand-logo--on-light {
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav > a:not(.btn) {
  position: relative;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.925rem;
  font-weight: 600;
  color: inherit;
  opacity: 0.82;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.main-nav > a:not(.btn):hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.08);
}

.site-header.is-scrolled .main-nav > a:not(.btn):hover,
.site-header.header-solid .main-nav > a:not(.btn):hover {
  background: rgba(10, 127, 196, 0.08);
  color: var(--brand-dark);
}

.main-nav > a:not(.btn).is-active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--green));
}

.nav-cta {
  margin-left: 10px;
  min-height: 44px;
  padding: 0 20px;
  font-size: 0.9rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  cursor: pointer;
}

.site-header.is-scrolled .nav-toggle,
.site-header.header-solid .nav-toggle {
  border-color: var(--line);
  background: #fff;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  padding: calc(var(--header-h) + var(--stripe) + 74px) 0 clamp(72px, 9vw, 110px);
  background:
    radial-gradient(1000px 700px at 82% 6%, rgba(41, 171, 226, 0.22), transparent 58%),
    radial-gradient(760px 560px at 4% 96%, rgba(127, 191, 63, 0.12), transparent 62%),
    linear-gradient(155deg, #06101f 0%, #081a30 48%, #0a2138 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 30%, transparent 75%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 560px;
  height: 560px;
  right: -140px;
  bottom: -260px;
  border-radius: 50%;
  border: 1px solid rgba(41, 171, 226, 0.16);
  box-shadow: 0 0 0 90px rgba(41, 171, 226, 0.04), 0 0 0 180px rgba(41, 171, 226, 0.025);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(40px, 6vw, 76px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow--light {
  color: rgba(146, 216, 248, 0.95);
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(222, 238, 251, 0.88);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  backdrop-filter: blur(8px);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(127, 191, 63, 0.18);
  animation: pulse 2.6s ease-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(127, 191, 63, 0.18); }
  50% { box-shadow: 0 0 0 8px rgba(127, 191, 63, 0.05); }
}

.hero h1 {
  margin-top: 22px;
  color: #fff;
  font-size: clamp(2.55rem, 5.4vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.grad-text {
  background: linear-gradient(100deg, #63d5ff 0%, #9fe0ff 30%, #b5e98a 75%, #d7f39a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  max-width: 55ch;
  margin-top: 24px;
  color: rgba(220, 234, 248, 0.72);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: clamp(36px, 5vw, 54px) 0 0;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-stats > div {
  padding-right: clamp(24px, 4vw, 44px);
  margin-right: clamp(24px, 4vw, 44px);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-stats > div:last-child {
  padding-right: 0;
  margin-right: 0;
  border-right: 0;
}

.hero-stats dt {
  font-size: clamp(1.6rem, 2.7vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1.1;
}

.hero-stats dd {
  margin: 6px 0 0;
  font-size: 0.84rem;
  color: rgba(206, 224, 242, 0.62);
  letter-spacing: 0.01em;
}

.hero-visual {
  position: relative;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 8% 4% 16% 10%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(41, 171, 226, 0.32), transparent 68%);
  filter: blur(42px);
}

.hero-media {
  position: relative;
  aspect-ratio: 4 / 3.35;
  border-radius: var(--radius-lg);
  overflow: visible;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow-lg);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(6, 16, 31, 0.02) 35%, rgba(6, 16, 31, 0.55) 100%);
  pointer-events: none;
}

.hero-chip {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 17px;
  border-radius: 16px;
  background: rgba(9, 26, 46, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  animation: float 7s ease-in-out infinite;
}

.hero-chip strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.2;
}

.hero-chip span {
  display: block;
  font-size: 0.72rem;
  color: rgba(209, 228, 245, 0.66);
  line-height: 1.3;
}

.hero-chip .chip-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  color: #c9f0ff;
  background: rgba(41, 171, 226, 0.18);
  border: 1px solid rgba(41, 171, 226, 0.25);
}

.hero-chip--speed {
  top: 22px;
  left: -24px;
  animation-delay: -1.5s;
}

.hero-chip--speed .chip-icon {
  color: var(--navy-900);
  background: linear-gradient(135deg, var(--green), #b5e98a);
  border-color: transparent;
}

.hero-chip--ip {
  right: -20px;
  bottom: 26px;
  animation-delay: -3.5s;
}

.hero-media .media-note {
  position: absolute;
  left: 22px;
  bottom: 20px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(6, 16, 31, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(229, 241, 252, 0.82);
  font-size: 0.76rem;
  backdrop-filter: blur(10px);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* --------------------------------------------------------------------------
   Section headings
   -------------------------------------------------------------------------- */

.section-head {
  max-width: 700px;
  margin: 0 auto clamp(38px, 5vw, 58px);
  text-align: center;
}

.section-head h2 {
  margin-top: 14px;
  font-size: clamp(1.9rem, 3.6vw, 3rem);
}

.section-head p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.02rem;
}

.section--dark .section-head p {
  color: rgba(210, 226, 242, 0.66);
}

/* --------------------------------------------------------------------------
   Features
   -------------------------------------------------------------------------- */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.feature-card {
  position: relative;
  padding: 30px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--green));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(10, 127, 196, 0.22);
  box-shadow: var(--shadow-md);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 15px;
  color: var(--brand);
  background: linear-gradient(145deg, rgba(41, 171, 226, 0.12), rgba(127, 191, 63, 0.1));
  border: 1px solid rgba(41, 171, 226, 0.16);
}

.feature-icon .icon {
  width: 24px;
  height: 24px;
}

.feature-card h3 {
  margin-top: 20px;
  font-size: 1.08rem;
  letter-spacing: -0.015em;
}

.feature-card p {
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.925rem;
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   Plans
   -------------------------------------------------------------------------- */

.plans-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: clamp(34px, 4.5vw, 52px);
}

.plans-head .section-head {
  margin: 0;
  text-align: left;
  max-width: 640px;
}

.plans-head .section-head p {
  max-width: 54ch;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 30px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.plan-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.plan-card h3 {
  font-size: 1.15rem;
  letter-spacing: -0.015em;
}

.plan-desc {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.88rem;
}

.plan-speed {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 22px;
  color: var(--ink);
}

.plan-speed .num {
  font-size: clamp(2.6rem, 4vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
}

.plan-speed .unit {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.plan-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  margin-top: 14px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.price-main {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.price-main small {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--muted);
}

.price-bgn {
  font-size: 0.85rem;
  color: var(--muted);
}

.plan-features {
  display: grid;
  gap: 11px;
  margin: 24px 0 28px;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.5;
}

.plan-features .icon {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--green-dark);
}

.plan-card .btn {
  margin-top: auto;
}

.plan-badge {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  padding: 7px 13px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--green), #a6d96a);
  color: #17320a;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 10px 24px -10px rgba(5, 18, 40, 0.55);
}

.plan-card--featured {
  border-color: transparent;
  background:
    radial-gradient(500px 300px at 90% 0%, rgba(41, 171, 226, 0.28), transparent 60%),
    linear-gradient(165deg, #0e2b4d 0%, #081a30 55%, #06101f 100%);
  color: rgba(225, 237, 250, 0.8);
  box-shadow: 0 34px 70px -34px rgba(5, 18, 40, 0.7);
}

.plan-card--featured:hover {
  box-shadow: 0 44px 80px -34px rgba(5, 18, 40, 0.8);
}

.plan-card--featured h3,
.plan-card--featured .plan-speed,
.plan-card--featured .price-main {
  color: #fff;
}

.plan-card--featured .plan-desc,
.plan-card--featured .plan-speed .unit,
.plan-card--featured .price-main small,
.plan-card--featured .price-bgn {
  color: rgba(203, 222, 240, 0.62);
}

.plan-card--featured .plan-price {
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.plan-card--featured .plan-features li {
  color: rgba(226, 238, 250, 0.86);
}

.plan-card--featured .plan-features .icon {
  color: #b5e98a;
}

.plans-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 30px;
  color: var(--muted);
  font-size: 0.86rem;
}

.plans-note p {
  max-width: 70ch;
}

.plans-note .btn {
  color: var(--muted);
}

.plans-note .btn:hover {
  color: var(--brand-dark);
}

/* Custom (negotiable) business plan */

.plan-card--custom {
  margin-top: 24px;
  flex-direction: row;
  align-items: center;
  gap: clamp(20px, 4vw, 44px);
  border-style: dashed;
  border-color: rgba(10, 127, 196, 0.35);
  padding: 30px 34px;
}

.plan-card--custom:hover {
  transform: none;
  box-shadow: var(--shadow-sm);
  border-color: rgba(10, 127, 196, 0.6);
}

.custom-plan-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.custom-plan-copy .plan-desc {
  max-width: 62ch;
}

.plan-features--inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
}

.plan-features--inline li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  font-size: 0.8rem;
  line-height: 1.3;
  white-space: nowrap;
}

.plan-features--inline .icon {
  width: 15px;
  height: 15px;
}

.custom-plan-side {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
}

.plan-card--custom .plan-price {
  justify-content: center;
  margin: 0;
  padding: 0;
  border-bottom: 0;
}

.plan-card--custom .price-main {
  font-size: 1.2rem;
  white-space: nowrap;
}

@media (max-width: 420px) {
  .plan-features--inline li {
    white-space: normal;
  }
}

.print-brand {
  display: none;
}

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(40px, 6vw, 76px);
  align-items: start;
}

.about-visual {
  position: sticky;
  top: calc(var(--header-h) + var(--stripe) + 28px);
}

.about-panel {
  position: relative;
  overflow: hidden;
  padding: 38px 36px 42px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(6, 16, 31, 0.55) 0%, rgba(6, 16, 31, 0.88) 100%),
    url("../img/fibre.jpg") center / cover no-repeat;
  color: #fff;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.about-panel::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  top: -150px;
  right: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(41, 171, 226, 0.4), transparent 68%);
  filter: blur(18px);
}

.about-brand {
  display: flex;
  align-items: center;
  gap: 13px;
}

.about-brand .about-logo {
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.5));
}

.about-brand .brand-name {
  font-size: 28px;
}

.about-brand .brand-tag {
  font-size: 14px;
  opacity: 0.72;
}

.about-quote {
  position: relative;
  margin: 64px 0 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(238, 246, 255, 0.92);
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  line-height: 1.5;
  letter-spacing: -0.015em;
}

.about-quote .quote-mark {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: 52px;
  line-height: 0.5;
  color: var(--cyan);
}

.about-since {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
}

.about-since strong {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1;
  color: var(--green);
}

.about-since span {
  font-size: 0.8rem;
  color: rgba(219, 234, 248, 0.7);
  line-height: 1.35;
}

.about-copy h2 {
  margin-top: 14px;
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
}

.about-copy > p {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.75;
}

.timeline {
  display: grid;
  gap: 0;
  margin-top: 34px;
  border-left: 2px solid var(--line);
}

.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 16px;
  padding: 0 0 24px 24px;
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 7px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--brand);
  box-shadow: 0 0 0 4px rgba(10, 127, 196, 0.1);
}

.timeline .year {
  font-weight: 800;
  color: var(--brand-dark);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.timeline strong {
  display: block;
  color: var(--ink);
  font-size: 0.96rem;
}

.timeline p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Documents
   -------------------------------------------------------------------------- */

.docs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.doc-card {
  display: flex;
  flex-direction: column;
  padding: 26px 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.doc-card:hover {
  transform: translateY(-5px);
  border-color: rgba(10, 127, 196, 0.24);
  box-shadow: var(--shadow-md);
}

.doc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.doc-type {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border-radius: 8px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.doc-type--pdf {
  color: #b3121f;
  background: rgba(227, 38, 54, 0.09);
}

.doc-type--doc {
  color: #1c5fa8;
  background: rgba(41, 171, 226, 0.12);
}

.doc-type--page {
  color: #4c7a1f;
  background: rgba(127, 191, 63, 0.14);
}

.doc-icon {
  color: rgba(16, 33, 56, 0.25);
}

.doc-card h3 {
  margin-top: 18px;
  font-size: 1.02rem;
  line-height: 1.35;
}

.doc-card p {
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

.doc-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--brand-dark);
  font-size: 0.875rem;
  font-weight: 700;
}

.doc-link .icon {
  width: 17px;
  height: 17px;
  transition: transform 0.2s ease;
}

.doc-card:hover .doc-link .icon {
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-width: 780px;
  gap: clamp(40px, 6vw, 72px);
  align-items: start;
}

.contact-copy h2 {
  margin-top: 14px;
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
}

.contact-copy > p {
  margin-top: 16px;
  max-width: 48ch;
  color: rgba(210, 226, 242, 0.68);
  font-size: 0.98rem;
}

.contact-list {
  display: grid;
  gap: 22px;
  margin-top: 36px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-item .ci-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  color: #bde9ff;
  background: rgba(41, 171, 226, 0.12);
  border: 1px solid rgba(41, 171, 226, 0.22);
}

.contact-item h3 {
  color: #fff;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
}

.contact-item p,
.contact-item a {
  margin-top: 4px;
  color: rgba(211, 227, 243, 0.72);
  font-size: 0.92rem;
  line-height: 1.6;
}

.contact-item a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hours-card {
  margin-top: 26px;
  padding: 20px 22px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.hours-card h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(232, 242, 252, 0.9);
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hours-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.88rem;
}

.hours-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.hours-row span {
  color: rgba(203, 220, 238, 0.62);
}

.hours-row strong {
  color: #fff;
  font-weight: 700;
  text-align: right;
}

.form-card {
  padding: clamp(26px, 3.4vw, 40px);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-lg);
  color: var(--text);
}

.form-card h3 {
  color: var(--ink);
  font-size: 1.3rem;
}

.form-card > p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.contact-form {
  display: grid;
  gap: 18px;
  margin-top: 26px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.field label .req {
  color: var(--red);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfdff;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.92rem;
  line-height: 1.4;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.field textarea {
  min-height: 128px;
  resize: vertical;
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235c6f88' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 42px;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: #c9d6e6;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(10, 127, 196, 0.12);
}

.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  justify-content: space-between;
}

.form-note {
  max-width: 32ch;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.5;
}

.form-status {
  margin: 0;
  padding: 0;
  color: var(--green-dark);
  font-size: 0.85rem;
  font-weight: 600;
  display: none;
}

.form-status.is-visible {
  display: block;
}

.form-status.is-error {
  color: #b3121f;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  position: relative;
  background: var(--navy-950);
  color: rgba(203, 220, 238, 0.64);
  padding: 72px 0 0;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), #f28c28, var(--yellow), var(--green), var(--cyan), var(--brand));
  opacity: 0.8;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1.1fr 0.9fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-brand .brand {
  color: #fff;
}

.footer-brand p {
  margin-top: 18px;
  max-width: 36ch;
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-col h4 {
  margin-bottom: 16px;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-col ul {
  display: grid;
  gap: 11px;
}

.footer-col a {
  color: rgba(203, 220, 238, 0.64);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: #fff;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  line-height: 1.55;
}

.footer-contact .icon {
  width: 17px;
  height: 17px;
  margin-top: 3px;
  color: var(--cyan);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 0 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
  color: rgba(185, 203, 222, 0.5);
}

.footer-bottom a:hover {
  color: #fff;
}

.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover {
  color: var(--brand-dark);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   Legal page
   -------------------------------------------------------------------------- */

.page-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + var(--stripe) + 62px) 0 64px;
  color: #fff;
  background:
    radial-gradient(900px 500px at 85% 0%, rgba(41, 171, 226, 0.2), transparent 60%),
    linear-gradient(155deg, #06101f 0%, #081a30 55%, #0a2138 100%);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 50% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 90% at 50% 40%, #000 20%, transparent 75%);
  pointer-events: none;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  color: rgba(196, 218, 238, 0.56);
  font-size: 0.8rem;
}

.breadcrumbs a:hover {
  color: #fff;
}

.breadcrumbs .sep {
  opacity: 0.5;
}

.page-hero h1 {
  max-width: 900px;
  color: #fff;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1.1;
}

.page-hero p {
  max-width: 72ch;
  margin-top: 16px;
  color: rgba(213, 229, 244, 0.68);
  font-size: 1rem;
}

.legal-wrap {
  padding: clamp(48px, 6vw, 76px) 0 clamp(64px, 8vw, 100px);
}

.legal-layout {
  display: grid;
  grid-template-columns: 278px minmax(0, 1fr);
  gap: clamp(28px, 4vw, 52px);
  align-items: start;
}

.toc-card {
  position: sticky;
  top: calc(var(--header-h) + var(--stripe) + 24px);
  padding: 24px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.toc-card h2 {
  margin: 0 0 14px;
  padding: 0 6px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.toc-summary {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
}

.toc-summary::-webkit-details-marker {
  display: none;
}

.toc-summary::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-right: 4px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.toc-details[open] .toc-summary::after {
  transform: rotate(-135deg);
}

.toc-list {
  display: grid;
  gap: 3px;
}

.toc-list a {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 9px;
  color: var(--text);
  font-size: 0.83rem;
  line-height: 1.4;
  transition: background 0.2s ease, color 0.2s ease;
}

.toc-list a:hover,
.toc-list a.is-active {
  background: rgba(10, 127, 196, 0.08);
  color: var(--brand-dark);
}

.toc-roman {
  flex: none;
  min-width: 24px;
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding-top: 1px;
}

.legal-article {
  padding: clamp(26px, 4.5vw, 56px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.legal-intro {
  display: grid;
  gap: 14px;
  padding-bottom: 26px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: 0.96rem;
}

.legal-intro p:first-child {
  padding-left: 16px;
  border-left: 3px solid var(--brand);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.65;
}

.legal-section {
  padding-top: 30px;
  scroll-margin-top: calc(var(--header-h) + var(--stripe) + 20px);
}

.legal-section + .legal-section {
  margin-top: 30px;
  border-top: 1px solid var(--line);
}

.legal-section h2 {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
  font-size: clamp(1.15rem, 1.9vw, 1.4rem);
  line-height: 1.3;
}

.legal-section h2 .roman {
  color: var(--brand);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.legal-section h3 {
  margin: 26px 0 12px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.legal-section p {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 0.925rem;
  line-height: 1.75;
}

.legal-section ul {
  display: grid;
  gap: 8px;
  margin: 12px 0 16px;
  padding-left: 4px;
}

.legal-section li {
  position: relative;
  padding-left: 20px;
  color: var(--text);
  font-size: 0.915rem;
  line-height: 1.7;
}

.legal-section li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.66em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.clause {
  padding-left: 4px;
}

.clause-num {
  color: var(--brand-dark);
  font-weight: 800;
  margin-right: 2px;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

.legal-meta a {
  color: var(--brand-dark);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Reveal animation
   -------------------------------------------------------------------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.js .reveal-delay-1 { transition-delay: 0.08s; }
.js .reveal-delay-2 { transition-delay: 0.16s; }
.js .reveal-delay-3 { transition-delay: 0.24s; }
.js .reveal-delay-4 { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .features-grid,
  .docs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr;
  }

  .footer-col--legal {
    grid-column: span 1;
  }
}

@media (max-width: 960px) {
  :root {
    --header-h: 70px;
  }

  .main-nav > a:not(.btn) {
    padding: 10px 11px;
    font-size: 0.88rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 54px;
  }

  .hero {
    padding-top: calc(var(--header-h) + var(--stripe) + 54px);
  }

  .hero-visual {
    max-width: 640px;
    width: 100%;
    margin-inline: auto;
  }

  .hero-chip--speed {
    left: 12px;
  }

  .hero-chip--ip {
    right: 12px;
  }

  .plans-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .plan-card--featured {
    grid-column: span 2;
    order: -1;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-visual {
    position: static;
    max-width: 620px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .legal-layout {
    grid-template-columns: 1fr;
  }

  .to-top {
    display: none;
  }

  .toc-card {
    position: static;
  }

  .toc-title {
    display: none;
  }

  .toc-summary {
    display: flex;
  }

  .toc-details .toc-list {
    padding-top: 14px;
  }

  .toc-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 840px) {
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: calc(var(--stripe) + var(--header-h) + 10px);
    left: 16px;
    right: 16px;
    z-index: 59;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    color: var(--ink);
    box-shadow: 0 30px 60px -30px rgba(5, 18, 40, 0.45);
    max-height: calc(100svh - var(--header-h) - 30px);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  }

  .main-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .main-nav > a:not(.btn) {
    padding: 13px 14px;
    border-radius: 10px;
    font-size: 0.98rem;
    opacity: 1;
  }

  .main-nav > a:not(.btn).is-active::after {
    display: none;
  }

  .main-nav > a:not(.btn).is-active {
    background: rgba(10, 127, 196, 0.08);
    color: var(--brand-dark);
  }

  .nav-cta {
    margin: 8px 0 0;
    min-height: 48px;
  }

  .no-scroll {
    overflow: hidden;
  }

  .plans-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .plans-head .section-head {
    text-align: left;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 34px;
  }

  .footer-brand {
    grid-column: span 2;
  }

  .hero-stats > div {
    padding-right: 26px;
    margin-right: 26px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 32px, var(--container));
  }

  .brand-mark {
    width: 40px;
  }

  .brand-logo {
    height: 34px;
  }

  .footer-logo {
    height: 40px;
  }

  .about-logo {
    height: 46px;
  }

  .brand-name {
    font-size: 20px;
  }

  .brand-tag {
    font-size: 11px;
  }

  .hero h1 {
    font-size: clamp(2.3rem, 11vw, 3.2rem);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
  }

  .hero-stats > div {
    padding-right: 14px;
    margin-right: 14px;
  }

  .hero-stats dt {
    font-size: 1.45rem;
  }

  .hero-stats dd {
    font-size: 0.72rem;
    line-height: 1.4;
  }

  .hero-media {
    aspect-ratio: 4 / 3.6;
  }

  .hero-chip {
    padding: 10px 12px;
  }

  .hero-chip .chip-icon {
    width: 32px;
    height: 32px;
  }

  .hero-chip strong {
    font-size: 0.85rem;
  }

  .hero-chip span {
    font-size: 0.66rem;
  }

  .hero-chip--speed {
    top: 12px;
    left: 10px;
  }

  .hero-chip--ip {
    right: 10px;
    bottom: 14px;
  }

  .hero-media .media-note {
    display: none;
  }

  .features-grid,
  .docs-grid,
  .plans-grid {
    grid-template-columns: 1fr;
  }

  .plan-card--featured {
    grid-column: auto;
    order: 0;
  }

  .feature-card {
    padding: 24px 22px;
  }

  .plan-card {
    padding: 26px 22px;
  }

  .about-panel {
    padding: 30px 24px 32px;
  }

  .about-quote {
    margin-top: 48px;
    font-size: 1.1rem;
  }

  .timeline li {
    grid-template-columns: 64px 1fr;
    gap: 12px;
    padding-left: 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .plan-card--custom {
    flex-direction: column;
    align-items: stretch;
    padding: 26px 22px;
  }

  .custom-plan-side {
    width: 100%;
  }

  .custom-plan-side .btn {
    width: 100%;
  }

  .form-foot {
    flex-direction: column;
    align-items: stretch;
  }

  .form-foot .btn {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .to-top {
    right: 14px;
    bottom: 14px;
  }

  .toc-list {
    grid-template-columns: 1fr;
  }

  .legal-section p,
  .legal-section li {
    font-size: 0.9rem;
  }

  .legal-article {
    border-radius: 20px;
  }
}

@media (max-width: 400px) {
  .brand-tag {
    display: none;
  }

  .brand-logo {
    height: 30px;
  }
}

/* --------------------------------------------------------------------------
   Print (tariffs)
   -------------------------------------------------------------------------- */

@media print {
  body {
    background: #fff;
  }

  body::before,
  .site-header,
  .hero,
  .features,
  .about,
  .documents,
  .contact,
  .site-footer,
  .to-top,
  .plans-head .btn,
  .plans-note .btn,
  .skip-link {
    display: none !important;
  }

  .plans {
    padding: 0;
    background: #fff !important;
  }

  .print-brand {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 26px;
  }

  .print-brand img {
    width: 170px;
    height: auto;
  }

  .print-brand strong {
    display: block;
    color: #000;
    font-size: 15px;
  }

  .print-brand span {
    color: #555;
    font-size: 12px;
  }

  .plans-grid {
    gap: 12px;
  }

  .plan-card,
  .plan-card--featured {
    border: 1px solid #ccc;
    background: #fff !important;
    color: #000 !important;
    box-shadow: none;
    break-inside: avoid;
  }

  .plan-card--featured h3,
  .plan-card--featured .plan-speed,
  .plan-card--featured .price-main,
  .plan-card--featured .plan-features li,
  .plan-card--featured .plan-desc,
  .plan-card--featured .price-bgn,
  .plan-card--featured .plan-speed .unit,
  .plan-card--featured .price-main small {
    color: #000 !important;
  }

  .plan-card--featured .plan-price {
    border-bottom-color: #ddd;
  }

  .plan-card .btn {
    display: none;
  }

  .plan-card--custom {
    border-style: solid;
  }

  .plan-features--inline li {
    border-color: #ccc;
    background: #fff;
  }

  .plan-badge {
    position: static;
    align-self: flex-start;
    display: inline-block;
    transform: none;
    margin-bottom: 10px;
    background: #eee !important;
    color: #000 !important;
    box-shadow: none;
  }

  a[href]::after {
    content: "";
  }
}
