:root {
  --ink: #1e1e1e;
  --ink-soft: #343434;
  --paper: #f8f8f3;
  --white: #ffffff;
  --signal: #d1f704;
  --signal-dark: #b9db00;
  --muted: #696b67;
  --line: #dcded5;
  --line-dark: #484a46;
  --blue: #3867ff;
  --danger: #a33a32;
  --radius-sm: 10px;
  --radius: 20px;
  --radius-lg: 32px;
  --shadow: 0 16px 50px rgba(30, 30, 30, 0.09);
  --container: 1200px;
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  line-height: 1.06;
  letter-spacing: -0.035em;
}

h1 {
  margin-bottom: 28px;
  font-size: clamp(3rem, 7.2vw, 6.7rem);
  font-weight: 690;
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(2.15rem, 4.5vw, 4.4rem);
  font-weight: 670;
}

h3 {
  margin-bottom: 14px;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 650;
}

p:last-child {
  margin-bottom: 0;
}

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

.narrow {
  width: min(calc(100% - 40px), 820px);
  margin-inline: auto;
}

.section {
  padding: clamp(76px, 10vw, 140px) 0;
}

.section-small {
  padding: 64px 0;
}

.section-dark {
  background: var(--ink);
  color: var(--white);
}

.section-white {
  background: var(--white);
}

.section-signal {
  background: var(--signal);
}

.section-header {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  gap: 80px;
  align-items: end;
  margin-bottom: 52px;
}

.section-header h2 {
  max-width: 900px;
  margin-bottom: 0;
}

.section-header > p {
  max-width: 540px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 1.1rem;
}

.section-dark .section-header > p,
.section-dark .muted {
  color: #b9bbb4;
}

.eyebrow {
  margin-bottom: 20px;
  color: #62645f;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.section-dark .eyebrow {
  color: var(--signal);
}

.lead {
  max-width: 760px;
  color: #4f514e;
  font-size: clamp(1.18rem, 2vw, 1.45rem);
  line-height: 1.5;
}

.section-dark .lead {
  color: #d7d8d3;
}

.microcopy {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.muted {
  color: var(--muted);
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 10px 16px;
  transform: translateY(-150%);
  border-radius: 8px;
  background: var(--signal);
  color: var(--ink);
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header */

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid rgba(30, 30, 30, 0.08);
  background: rgba(248, 248, 243, 0.92);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand {
  flex: 0 0 auto;
}

.brand img {
  width: 154px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(15px, 2vw, 29px);
}

.nav-link,
.nav-login {
  position: relative;
  padding: 8px 0;
  color: #3f413e;
  font-size: 0.92rem;
  font-weight: 580;
  text-decoration: none;
  white-space: nowrap;
}

button.nav-link {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}

.nav-link::after {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--signal-dark);
  content: "";
  transition: transform 180ms ease;
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-dropdown-trigger svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  transition: transform 180ms ease;
}

.nav-dropdown.is-open .nav-dropdown-trigger svg {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  z-index: 10;
  top: calc(100% + 24px);
  left: -18px;
  display: grid;
  width: 292px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: 0 20px 45px rgba(25, 27, 23, 0.14);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 160ms ease, transform 160ms ease;
  visibility: hidden;
}

.nav-dropdown.is-open .nav-dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
}

.nav-dropdown-link {
  display: grid;
  gap: 2px;
  padding: 11px 12px;
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
}

.nav-dropdown-link strong {
  font-size: 0.9rem;
}

.nav-dropdown-link span {
  color: var(--muted);
  font-size: 0.73rem;
  line-height: 1.35;
}

.nav-dropdown-link:hover,
.nav-dropdown-link:focus-visible,
.nav-dropdown-link.is-active {
  background: var(--signal-soft);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: 8px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 11px;
  border: 0;
  border-radius: 10px;
  background: transparent;
}

.nav-toggle > span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
  transition: transform 180ms ease, opacity 180ms ease;
}

/* Buttons */

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 13px 23px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 680;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform 170ms ease, box-shadow 170ms ease, background 170ms ease;
}

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

.button-primary {
  background: var(--signal);
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(177, 209, 0, 0.17);
}

.button-primary:hover {
  background: #dcff18;
  box-shadow: 0 14px 28px rgba(177, 209, 0, 0.25);
}

.button-secondary {
  border-color: var(--ink);
  background: transparent;
  color: var(--ink);
}

.section-dark .button-secondary,
.hero .button-secondary {
  border-color: #666963;
  color: var(--white);
}

.button-small {
  min-height: 42px;
  padding: 10px 18px;
  font-size: 0.88rem;
}

.text-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: inherit;
  font-weight: 680;
}

.text-link::after {
  content: "→";
  transition: transform 160ms ease;
}

.text-link:hover::after {
  transform: translateX(4px);
}

/* Homepage hero */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
}

.hero::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.055) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,0.055) 1px, transparent 1px);
  background-size: 52px 52px;
  content: "";
  mask-image: linear-gradient(to right, black, transparent 77%);
}

.hero::after {
  position: absolute;
  top: 9%;
  right: -7%;
  width: min(46vw, 660px);
  aspect-ratio: 1;
  border: 1px solid rgba(209, 247, 4, 0.25);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(209, 247, 4, 0.035), 0 0 0 140px rgba(209, 247, 4, 0.018);
  content: "";
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: min(850px, calc(100vh - 82px));
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.65fr);
  gap: 70px;
  align-items: center;
  padding-block: 90px 100px;
}

.hero h1 {
  max-width: 910px;
  margin-bottom: 30px;
}

.hero h1 span {
  color: var(--signal);
}

.hero .lead {
  max-width: 720px;
  margin-bottom: 36px;
  color: #d7d8d3;
}

.hero .microcopy {
  color: #aeb0aa;
}

.price-panel {
  position: relative;
  z-index: 2;
  padding: 32px;
  border: 1px solid #4b4d48;
  border-radius: var(--radius-lg);
  background: rgba(36, 37, 34, 0.82);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(16px);
}

.price-panel-label {
  margin-bottom: 24px;
  color: #aeb0aa;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.hero-price {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 22px 0;
  border-top: 1px solid #4b4d48;
}

.hero-price strong {
  color: var(--signal);
  font-size: 2.8rem;
  letter-spacing: -0.06em;
  line-height: 1;
}

.hero-price span {
  color: #d6d7d2;
  font-size: 0.98rem;
}

.hero-price:last-of-type {
  border-bottom: 1px solid #4b4d48;
}

.price-panel-note {
  margin: 22px 0 0;
  color: #aeb0aa;
  font-size: 0.88rem;
}

/* Logo/compatibility strip */

.compatibility-strip {
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.compatibility-inner {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 34px;
  align-items: center;
  padding: 28px 0;
}

.compatibility-inner > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.compatibility-logos {
  display: flex;
  overflow: hidden;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
}

.compatibility-logos img {
  width: auto;
  height: 30px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.65;
}

.compatibility-logos .wordmark {
  color: #656762;
  font-size: 1rem;
  font-weight: 720;
  white-space: nowrap;
}

/* Cards, icons and grids */

.icon {
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
}

.icon-wrap {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  margin-bottom: 34px;
  border-radius: 14px;
  background: var(--signal);
  color: var(--ink);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

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

.card-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.feature-card {
  position: relative;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: transform 170ms ease, box-shadow 170ms ease, border-color 170ms ease;
}

a.feature-card {
  text-decoration: none;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: #c6c8bd;
  box-shadow: var(--shadow);
}

.feature-card p {
  color: var(--muted);
}

.feature-card .text-link {
  margin-top: 16px;
  color: var(--ink);
}

.section-dark .feature-card {
  border-color: #41433f;
  background: #282926;
}

.section-dark .feature-card p {
  color: #b9bbb4;
}

.section-dark .feature-card .text-link {
  color: var(--white);
}

.connection-card {
  min-height: 340px;
}

.connection-card::after {
  position: absolute;
  right: 32px;
  bottom: 28px;
  color: #bcdb10;
  content: "0" counter(card-counter);
  font-family: var(--font-mono);
  font-size: 0.74rem;
}

.connection-grid {
  counter-reset: card-counter;
}

.connection-grid .connection-card {
  counter-increment: card-counter;
}

.path-card {
  display: flex;
  min-height: 300px;
  flex-direction: column;
  justify-content: space-between;
}

.guide-section-intro {
  max-width: 760px;
  margin: 0 auto 50px;
  text-align: center;
}

.guide-section-intro h2 {
  margin-bottom: 16px;
}

.guide-section-intro p {
  color: var(--muted);
  font-size: 1.1rem;
}

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

.platform-guide-card {
  display: flex;
  min-height: 470px;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  flex-direction: column;
}

.platform-guide-card-header {
  text-align: center;
}

.platform-guide-mark {
  display: inline-flex;
  width: 62px;
  height: 62px;
  align-items: center;
  justify-content: center;
  margin-bottom: 26px;
  border-radius: 18px;
  background: var(--signal);
  color: var(--ink);
  font-family: var(--font-mono);
  font-weight: 800;
}

.platform-guide-card h3 {
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.platform-guide-card-header p {
  min-height: 78px;
  color: var(--muted);
}

.platform-guide-links {
  display: grid;
  gap: 9px;
  margin-top: 20px;
}

.platform-guide-links a {
  display: flex;
  min-height: 62px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--white);
  text-decoration: none;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  transition: border-color 170ms ease, transform 170ms ease;
}

.platform-guide-links a:hover {
  border-color: #afb2a4;
  transform: translateX(3px);
}

.platform-guide-links strong {
  font-size: 0.96rem;
}

.platform-guide-links span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-align: right;
  text-transform: uppercase;
}

.platform-overview-link {
  display: inline-flex;
  margin-top: auto;
  padding-top: 25px;
  font-weight: 750;
  text-decoration: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.platform-overview-link:hover span {
  transform: translateX(3px);
}

.platform-overview-link span {
  transition: transform 170ms ease;
}

.section-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.profile-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 25px 0 8px;
}

.profile-list span {
  display: flex;
  min-height: 56px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--white);
  font-weight: 650;
  align-items: center;
}

.support-card {
  min-height: 270px;
}

.rate-search {
  display: grid;
  max-width: 620px;
  gap: 9px;
  margin-bottom: 24px;
}

.rates-options .feature-card .status-tag {
  margin-bottom: 24px;
}

.rates-bundle-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.65fr);
  gap: 60px;
  align-items: end;
  padding-top: clamp(46px, 6vw, 76px);
  margin-bottom: 28px;
}

.rates-bundle-heading h3 {
  margin-bottom: 0;
  font-size: clamp(2rem, 3.6vw, 3.5rem);
}

.rates-bundle-heading > p {
  margin-bottom: 4px;
  color: var(--muted);
}

.rate-search label {
  font-weight: 700;
}

.rate-results,
.rate-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.rate-table-wrap {
  max-height: 720px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.rate-table-wrap .data-table {
  border: 0;
  border-radius: 0;
}

.rate-table thead {
  position: sticky;
  z-index: 1;
  top: 0;
  box-shadow: 0 1px 0 var(--line);
}

.rate-table th:last-child,
.rate-table td:last-child {
  text-align: right;
}

.rate-table tr[hidden] {
  display: none;
}

.rate-empty {
  padding: 30px;
  margin: 0;
  text-align: center;
}

.rate-note {
  margin-top: 14px;
}

.check-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 25px 0;
  list-style: none;
}

.check-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.check-list .icon {
  width: 19px;
  height: 19px;
  margin-top: 3px;
  color: #789100;
}

.section-dark .check-list .icon {
  color: var(--signal);
}

/* Calculator */

.calculator-section {
  background: var(--white);
}

.calculator-shell {
  display: grid;
  overflow: visible;
  grid-template-columns: 1fr 0.83fr;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.calculator-inputs {
  padding: clamp(32px, 5vw, 64px);
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  background: var(--white);
}

.calculator-inputs h3,
.calculator-result h3 {
  margin-bottom: 30px;
  font-size: 1.35rem;
}

.form-grid {
  display: grid;
  gap: 25px;
}

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

.field label,
.field > span:first-child {
  font-size: 0.92rem;
  font-weight: 670;
}

.field small {
  color: var(--muted);
  font-size: 0.8rem;
}

.input-control {
  appearance: none;
  width: 100%;
  min-height: 58px;
  padding: 13px 17px;
  border: 1px solid #cfd1c9;
  border-radius: 13px;
  background: var(--paper);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.25;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.input-control:hover {
  border-color: #aeb1a7;
}

.input-control:focus,
.input-control:focus-visible {
  border-color: #859800;
  outline: 0;
  box-shadow: 0 0 0 4px rgba(209, 247, 4, 0.34);
}

.input-control::placeholder {
  color: #9b9e97;
  opacity: 1;
}

select.input-control {
  padding-right: 48px;
  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='%231e1e1e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 17px center;
}

input[type="number"].input-control {
  appearance: textfield;
  text-align: center;
}

input[type="number"].input-control::-webkit-inner-spin-button,
input[type="number"].input-control::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

.number-control {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  overflow: hidden;
  border: 1px solid #cfd1c9;
  border-radius: 13px;
  background: var(--paper);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.number-control:hover {
  border-color: #aeb1a7;
}

.number-control:focus-within {
  border-color: #859800;
  box-shadow: 0 0 0 4px rgba(209, 247, 4, 0.34);
}

.number-control .input-control {
  min-width: 0;
  border: 0;
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.number-stepper {
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 1.35rem;
  font-weight: 500;
  transition: background 150ms ease;
}

.number-stepper:hover {
  background: rgba(209, 247, 4, 0.2);
}

.number-stepper:active {
  background: rgba(209, 247, 4, 0.38);
}

.enhanced-native-select {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.custom-select {
  position: relative;
  min-width: 0;
}

.custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  cursor: pointer;
  text-align: left;
}

.custom-select-trigger svg {
  width: 18px;
  flex: 0 0 auto;
  transition: transform 160ms ease;
}

.custom-select.is-open .custom-select-trigger {
  border-color: #859800;
  box-shadow: 0 0 0 4px rgba(209, 247, 4, 0.34);
}

.custom-select.is-open .custom-select-trigger svg {
  transform: rotate(180deg);
}

.custom-select-menu {
  position: absolute;
  z-index: 40;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  display: none;
  max-height: 280px;
  padding: 7px;
  overflow-y: auto;
  border: 1px solid #cfd1c9;
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 18px 45px rgba(30, 30, 30, 0.16);
}

.custom-select.is-open .custom-select-menu {
  display: grid;
  gap: 3px;
}

.custom-select-option {
  width: 100%;
  padding: 11px 13px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.custom-select-option:hover,
.custom-select-option:focus-visible {
  outline: 0;
  background: #f1f5dc;
}

.custom-select-option.is-selected {
  background: var(--signal);
  font-weight: 680;
}

input[type="checkbox"] {
  appearance: none;
  display: inline-grid;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  place-content: center;
  border: 1px solid #aeb1a7;
  border-radius: 6px;
  background: var(--white);
  cursor: pointer;
}

input[type="checkbox"]::before {
  width: 10px;
  height: 6px;
  transform: translateY(-1px) rotate(-45deg) scale(0);
  border-bottom: 2px solid var(--ink);
  border-left: 2px solid var(--ink);
  content: "";
  transition: transform 120ms ease;
}

input[type="checkbox"]:checked {
  border-color: var(--signal-dark);
  background: var(--signal);
}

input[type="checkbox"]:checked::before {
  transform: translateY(-1px) rotate(-45deg) scale(1);
}

input[type="checkbox"]:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 4px rgba(209, 247, 4, 0.34);
}

.calculator-result {
  display: flex;
  flex-direction: column;
  padding: clamp(32px, 5vw, 64px);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  background: var(--ink);
  color: var(--white);
}

.calculation-lines {
  display: grid;
  gap: 15px;
  margin-bottom: 26px;
}

.calculation-line {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #d2d3ce;
}

.calculation-line strong {
  color: var(--white);
  font-weight: 590;
}

.calculation-total {
  padding-top: 22px;
  border-top: 1px solid #4b4d48;
}

.calculation-total .calculation-line:last-child {
  align-items: flex-end;
  margin-top: 10px;
}

.calculation-total .calculation-line:last-child strong {
  color: var(--signal);
  font-size: 2.15rem;
  letter-spacing: -0.05em;
  line-height: 1;
}

.capacity-summary {
  padding: 15px 17px;
  margin: 26px 0;
  border: 1px solid #52544f;
  border-radius: 12px;
  color: #d6d7d1;
  font-size: 0.9rem;
}

.calculator-result .button {
  width: 100%;
  margin-top: auto;
}

.calculator-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 20px;
}

.calculator-links a {
  color: #c7c9c2;
  font-size: 0.84rem;
}

/* Platform/profile styles */

.profile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.profile-chip {
  display: flex;
  min-height: 74px;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line-dark);
  border-radius: 14px;
  background: #282926;
  font-weight: 650;
}

.profile-chip strong {
  color: var(--white);
}

.profile-chip span:first-child {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: var(--signal);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.split-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(430px, 1.1fr);
  gap: clamp(50px, 8vw, 110px);
  align-items: center;
}

.technical-panel {
  position: relative;
  min-height: 470px;
  padding: 34px;
  overflow: hidden;
  border: 1px solid #464844;
  border-radius: var(--radius-lg);
  background: #242522;
}

.technical-panel::before {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(#595b55 1px, transparent 1px);
  background-size: 20px 20px;
  content: "";
  opacity: 0.4;
}

.flow-diagram {
  position: relative;
  z-index: 1;
  display: grid;
  height: 100%;
  min-height: 400px;
  grid-template-columns: 1fr 60px 1fr 60px 1fr;
  align-items: center;
}

.flow-node {
  padding: 22px 12px;
  border: 1px solid #62645f;
  border-radius: 14px;
  background: #30312e;
  text-align: center;
}

.flow-node strong {
  display: block;
  margin-bottom: 5px;
}

.flow-node span {
  color: #afb1aa;
  font-size: 0.75rem;
}

.flow-node.is-sipflex {
  border-color: var(--signal);
  box-shadow: 0 0 0 5px rgba(209,247,4,0.08);
}

.flow-line {
  position: relative;
  height: 1px;
  background: var(--signal);
}

.flow-line::after {
  position: absolute;
  top: -4px;
  right: 0;
  width: 8px;
  height: 8px;
  transform: rotate(45deg);
  border-top: 1px solid var(--signal);
  border-right: 1px solid var(--signal);
  content: "";
}

.code-window {
  position: relative;
  overflow: hidden;
  border: 1px solid #464844;
  border-radius: var(--radius);
  background: #222320;
}

.code-window-bar {
  display: flex;
  gap: 7px;
  padding: 15px 18px;
  border-bottom: 1px solid #464844;
}

.code-window-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #666863;
}

.code-window pre {
  min-height: 300px;
  padding: 28px;
  margin: 0;
  overflow-x: auto;
  color: #dcddd8;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.75;
}

.code-window .code-accent {
  color: var(--signal);
}

/* Page heroes and breadcrumbs */

.page-hero {
  padding: clamp(80px, 11vw, 150px) 0 clamp(70px, 9vw, 120px);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 80px;
  align-items: end;
}

.page-hero h1 {
  max-width: 850px;
  font-size: clamp(3rem, 6.4vw, 6rem);
}

.page-hero-copy .lead {
  margin-bottom: 0;
}

.page-hero-aside {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.page-hero-compact {
  padding-block: 74px;
}

.page-hero-compact h1 {
  font-size: clamp(2.8rem, 5.7vw, 5.3rem);
}

.breadcrumbs {
  margin-bottom: 36px;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  list-style: none;
}

.breadcrumbs li:not(:last-child)::after {
  margin-left: 8px;
  content: "/";
}

.breadcrumbs a {
  text-decoration: none;
}

/* Tables */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  background: #f1f2ec;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table td:last-child,
.data-table th:last-child {
  text-align: right;
}

.price-big {
  display: flex;
  align-items: baseline;
  gap: 0.16em;
  margin-bottom: 18px;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 1;
}

.price-big small {
  font-size: 0.28em;
  font-weight: 680;
  letter-spacing: 0;
  line-height: 1.15;
}

.page-hero-aside .price-big + p {
  margin-bottom: 24px;
}

/* FAQs */

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  display: flex;
  min-height: 80px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
  font-size: 1.12rem;
  font-weight: 650;
  list-style: none;
}

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

.faq-list summary::after {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 21px;
  text-align: center;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details > div {
  max-width: 760px;
  padding: 0 0 28px;
  color: var(--muted);
}

/* Documentation */

.docs-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 70px;
  align-items: start;
}

.docs-sidebar {
  position: sticky;
  top: 112px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.docs-sidebar strong {
  display: block;
  margin-bottom: 14px;
}

.docs-sidebar a {
  display: block;
  padding: 7px 0;
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
}

.docs-sidebar a:hover {
  color: var(--ink);
}

.docs-content {
  max-width: 820px;
}

.docs-content h2 {
  padding-top: 36px;
  margin-top: 38px;
  border-top: 1px solid var(--line);
  font-size: clamp(1.9rem, 3.2vw, 2.7rem);
}

.docs-content h2:first-child {
  padding-top: 0;
  margin-top: 0;
  border-top: 0;
}

.docs-content h3 {
  margin-top: 32px;
}

.docs-content pre {
  padding: 24px;
  overflow-x: auto;
  border-radius: 15px;
  background: var(--ink);
  color: #ebede5;
  font-family: var(--font-mono);
  font-size: 0.83rem;
  line-height: 1.7;
}

/* Asterisk cookbook */

.is-hidden {
  display: none !important;
}

.cookbook-section {
  background: var(--white);
}

.cookbook {
  display: grid;
  gap: 34px;
}

.cookbook-form,
.cookbook-output {
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.cookbook-heading,
.cookbook-output-top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 35px;
  margin-bottom: 34px;
}

.cookbook-heading h2,
.cookbook-output-top h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.protocol-field {
  min-width: min(100%, 390px);
}

.cookbook-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 34px;
  align-items: start;
  column-gap: 34px;
  row-gap: 26px;
}

.cookbook-grid > .field {
  grid-template-rows: minmax(1.5em, auto) 58px minmax(1.45em, auto);
}

.cookbook-advanced {
  margin-top: 32px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cookbook-advanced summary {
  position: relative;
  padding: 22px 42px 22px 0;
  cursor: pointer;
  font-size: 1.06rem;
  font-weight: 680;
  list-style: none;
}

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

.cookbook-advanced summary::after {
  position: absolute;
  top: 20px;
  right: 4px;
  color: var(--muted);
  content: "+";
  font-size: 1.5rem;
  line-height: 1;
}

.cookbook-advanced[open] summary::after {
  content: "−";
}

.cookbook-advanced-panel {
  padding: 6px 0 30px;
}

.cookbook-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.cookbook-fieldset legend {
  margin-bottom: 12px;
  font-weight: 680;
}

.cookbook-fieldset small {
  color: var(--muted);
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.checkbox-grid label,
.cookbook-check {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
}

.cookbook-check {
  align-self: end;
}

.cookbook-actions {
  margin-top: 30px;
}

.cookbook-actions button {
  cursor: pointer;
}

.cookbook-error {
  min-height: 1.6em;
  margin: 14px 0 0;
  color: var(--danger);
  font-weight: 620;
}

.cookbook-output {
  background: var(--ink);
  color: var(--white);
}

.cookbook-output .eyebrow {
  color: var(--signal);
}

.cookbook-output .button-secondary {
  border-color: #666963;
  color: var(--white);
}

.cookbook-file {
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: #151515;
}

.cookbook-file-header {
  display: flex;
  min-height: 55px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--line-dark);
}

.cookbook-file-header strong {
  font-family: var(--font-mono);
  font-size: 0.88rem;
}

.copy-button {
  padding: 7px 12px;
  border: 1px solid #5d6059;
  border-radius: 999px;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 680;
}

.copy-button:hover {
  border-color: var(--signal);
  color: var(--signal);
}

.cookbook-file pre {
  margin: 0;
  padding: 24px;
  overflow-x: auto;
  color: #e8e9e4;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.65;
}

.copy-status {
  min-height: 1.6em;
  color: var(--signal);
}

.callout {
  padding: 20px 22px;
  margin: 28px 0;
  border-left: 4px solid var(--signal-dark);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: #eff4d7;
}

.callout-warning {
  border-left-color: #cb6d31;
  background: #fff0e6;
}

.steps {
  display: grid;
  gap: 22px;
  padding: 0;
  counter-reset: steps;
  list-style: none;
}

.steps li {
  position: relative;
  min-height: 52px;
  padding-left: 67px;
  counter-increment: steps;
}

.steps li::before {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--signal);
  content: counter(steps);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
}

.status-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #edf5ca;
  color: #536200;
  font-size: 0.74rem;
  font-weight: 700;
}

.status-tag::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #789100;
  content: "";
}

/* Contact and legal */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.contact-card {
  min-height: 230px;
}

.legal-content {
  max-width: 850px;
}

.legal-content h2 {
  margin-top: 50px;
  font-size: 2rem;
}

.legal-content h3 {
  margin-top: 30px;
  font-size: 1.25rem;
}

.legal-content li,
.legal-content p {
  color: #51534f;
}

/* Final CTA */

.final-cta {
  background: var(--signal);
}

.final-cta-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 80px;
  align-items: center;
}

.final-cta h2 {
  max-width: 800px;
  margin-bottom: 16px;
}

.final-cta .eyebrow,
.final-cta .microcopy {
  color: #485300;
}

.final-cta .button-primary {
  background: var(--ink);
  color: var(--white);
  box-shadow: none;
}

.final-cta .button-secondary {
  border-color: var(--ink);
}

/* Footer */

.site-footer {
  padding: 78px 0 24px;
  background: var(--ink);
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 60px;
}

.footer-brand img {
  width: 150px;
  height: auto;
  margin-bottom: 24px;
}

.footer-brand p {
  max-width: 320px;
  color: #afb1aa;
}

.footer-brand a,
.footer-grid > div:not(.footer-brand) a {
  display: block;
  width: fit-content;
  margin: 7px 0;
  color: #c7c9c2;
  font-size: 0.9rem;
  text-decoration: none;
}

.footer-grid h2 {
  margin-bottom: 20px;
  color: #f1f2ed;
  font-size: 0.83rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-grid a:hover,
.footer-brand a:hover {
  color: var(--signal);
}

.footer-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding-top: 34px;
  margin-top: 64px;
  border-top: 1px solid #42443f;
}

.footer-bottom p {
  max-width: 790px;
  margin: 0;
  color: #8f918b;
  font-size: 0.76rem;
}

.footer-bottom div {
  display: flex;
  gap: 20px;
}

.footer-bottom a {
  color: #b5b7b1;
  font-size: 0.78rem;
}

/* Simple reveal enhancement */

.js [data-reveal] {
  transform: translateY(18px);
  opacity: 0;
  transition: transform 500ms ease, opacity 500ms ease;
}

.js [data-reveal].is-visible {
  transform: translateY(0);
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

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

  .site-nav {
    position: fixed;
    top: 82px;
    right: 0;
    bottom: 0;
    left: 0;
    display: none;
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 25px 20px 50px;
    background: var(--paper);
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-link {
    padding: 16px 5px;
    border-bottom: 1px solid var(--line);
    font-size: 1.08rem;
  }

  .nav-dropdown {
    border-bottom: 1px solid var(--line);
  }

  .nav-dropdown > .nav-link {
    width: 100%;
    justify-content: space-between;
    border-bottom: 0;
  }

  .nav-dropdown-menu {
    position: static;
    display: none;
    width: auto;
    margin: 0 5px 12px;
    padding: 6px;
    border-radius: 12px;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    transition: none;
    visibility: visible;
  }

  .nav-dropdown.is-open .nav-dropdown-menu {
    display: grid;
  }

  .nav-dropdown-link {
    padding: 11px 12px;
  }

  .nav-link::after {
    display: none;
  }

  .nav-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 26px 0 0;
  }

  .nav-login {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--ink);
    border-radius: 999px;
  }

  .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-grid {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-block: 100px;
  }

  .hero-copy {
    max-width: 820px;
  }

  .price-panel {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 25px;
  }

  .price-panel-label,
  .price-panel-note {
    grid-column: 1 / -1;
  }

  .hero-price {
    border-bottom: 1px solid #4b4d48;
  }

  .card-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .split-feature {
    grid-template-columns: 1fr;
  }

  .technical-panel,
  .code-window {
    max-width: 800px;
  }

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

  .page-hero-aside {
    max-width: 620px;
  }
}

@media (max-width: 800px) {
  .container,
  .narrow {
    width: min(calc(100% - 30px), var(--container));
  }

  .section-header {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .rates-bundle-heading {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .compatibility-inner {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .compatibility-logos {
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 7px;
  }

  .card-grid,
  .card-grid-2,
  .card-grid-4,
  .platform-guide-grid,
  .profile-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .platform-guide-grid {
    max-width: 620px;
    margin-inline: auto;
  }

  .platform-guide-card {
    min-height: 0;
  }

  .platform-guide-card-header p {
    min-height: 0;
  }

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

  .calculator-shell {
    grid-template-columns: 1fr;
  }

  .calculator-inputs {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }

  .calculator-result {
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  }

  .cookbook-heading,
  .cookbook-output-top {
    align-items: stretch;
    flex-direction: column;
  }

  .protocol-field {
    width: 100%;
  }

  .cookbook-grid,
  .checkbox-grid {
    grid-template-columns: 1fr 1fr;
  }

  .page-hero-grid {
    gap: 35px;
  }

  .final-cta-inner {
    grid-template-columns: 1fr;
    gap: 34px;
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }

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

  .docs-sidebar {
    position: static;
  }

  .flow-diagram {
    min-height: 560px;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 48px 1fr 48px 1fr;
  }

  .flow-line {
    width: 1px;
    height: 48px;
    margin: auto;
  }

  .flow-line::after {
    top: auto;
    right: -4px;
    bottom: 0;
  }

  .data-table th,
  .data-table td {
    padding: 15px;
  }
}

@media (max-width: 520px) {
  .header-inner {
    min-height: 72px;
  }

  .site-nav {
    top: 72px;
  }

  .brand img {
    width: 132px;
  }

  .hero-grid {
    padding-block: 74px 80px;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 15vw, 4.35rem);
  }

  .hero::after {
    top: 40%;
    right: -50%;
    width: 110vw;
  }

  .price-panel {
    display: block;
    padding: 25px;
  }

  .button-row {
    align-items: stretch;
    flex-direction: column;
  }

  .button-row .button {
    width: 100%;
  }

  .feature-card {
    padding: 28px;
  }

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

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

  .section-actions .button {
    width: 100%;
  }

  .calculator-inputs,
  .calculator-result {
    padding: 30px 24px;
  }

  .cookbook-form,
  .cookbook-output {
    padding: 26px 20px;
  }

  .cookbook-grid,
  .checkbox-grid {
    grid-template-columns: 1fr;
  }

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

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

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