:root {
  color-scheme: light;
  --ink: #101827;
  --muted: #5b6676;
  --line: #d8dee8;
  --paper: #f7f9fc;
  --panel: #ffffff;
  --teal: #0d9488;
  --teal-dark: #0f766e;
  --amber: #d97706;
  --navy: #172033;
  --shadow: 0 18px 45px rgba(16, 24, 39, 0.16);
}

.marketing-console {
  background: var(--paper);
}

.console-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 80px;
}

.console-heading,
.panel-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.console-heading {
  margin-bottom: 28px;
}

.console-heading h1 {
  margin: 4px 0 8px;
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.console-controls {
  display: flex;
  gap: 10px;
}

.console-controls select,
.console-unlock input {
  min-height: 44px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  padding: 0 12px;
}

.console-unlock {
  max-width: 560px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.console-unlock form {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

.console-unlock label {
  display: grid;
  flex: 1;
  gap: 7px;
  font-weight: 700;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: var(--panel);
}

.metric-grid article {
  min-width: 0;
  padding: 20px;
  border-right: 1px solid var(--line);
}

.metric-grid article:last-child {
  border-right: 0;
}

.metric-grid span,
.panel-heading span {
  color: var(--muted);
  font-size: .82rem;
}

.metric-grid strong {
  display: block;
  margin-top: 8px;
  font-size: 1.65rem;
}

.metric-grid small {
  display: block;
  min-height: 1.2em;
  margin-top: 7px;
  color: var(--muted);
  font-size: .72rem;
  line-height: 1.2;
}

.metric-grid small.positive {
  color: var(--teal-dark);
}

.metric-grid small.negative {
  color: #b42318;
}

.retention-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: center;
  margin-top: 10px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.retention-strip div,
.retention-strip p {
  min-width: 0;
  margin: 0;
  padding: 14px 18px;
  border-right: 1px solid var(--line);
}

.retention-strip div {
  display: grid;
  gap: 3px;
}

.retention-strip div span,
.retention-strip p {
  color: var(--muted);
  font-size: .78rem;
}

.retention-strip div strong {
  font-size: 1.15rem;
}

.retention-strip p {
  grid-column: 1 / -1;
  border-right: 0;
  border-top: 1px solid var(--line);
  line-height: 1.45;
}

.console-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.console-panel {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.console-wide {
  grid-column: 1 / -1;
}

.panel-heading {
  align-items: baseline;
  margin-bottom: 18px;
}

.panel-heading h2 {
  margin: 0;
  font-size: 1.15rem;
}

.table-wrap {
  overflow-x: auto;
}

.console-panel table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}

.console-panel th,
.console-panel td {
  padding: 12px 8px;
  border-top: 1px solid var(--line);
  text-align: left;
}

.console-panel th {
  color: var(--muted);
  font-size: .76rem;
  text-transform: uppercase;
}

.campaign-builder {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.campaign-builder label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 700;
}

.campaign-builder input,
.campaign-builder select,
.console-panel td select {
  min-height: 42px;
  width: 100%;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  padding: 0 10px;
}

.campaign-output {
  grid-column: span 3;
}

.lead-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: min(560px, 100%);
}

.form-trap {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.lead-form label {
  display: grid;
  gap: 6px;
  color: inherit;
  font-weight: 700;
  font-size: .88rem;
}

.lead-form input,
.lead-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel);
  color: var(--ink);
  padding: 11px 12px;
  font: inherit;
}

.lead-form-wide,
.lead-form .form-status {
  grid-column: 1 / -1;
}

.lead-form .form-status {
  min-height: 1.4em;
  margin: 0;
}

@media (max-width: 900px) {
  .metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .metric-grid article:nth-child(3) {
    border-right: 0;
  }

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

  .console-wide {
    grid-column: auto;
  }

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

  .campaign-output {
    grid-column: span 1;
  }

  .retention-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .retention-strip p {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 620px) {
  .console-heading,
  .console-unlock form {
    align-items: stretch;
    flex-direction: column;
  }

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

  .metric-grid article:nth-child(3) {
    border-right: 1px solid var(--line);
  }

  .metric-grid article:nth-child(even) {
    border-right: 0;
  }

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

  .lead-form-wide,
  .lead-form .form-status {
    grid-column: auto;
  }

  .retention-strip {
    grid-template-columns: 1fr;
  }

  .retention-strip div,
  .retention-strip p {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .retention-strip p {
    grid-column: auto;
    border-bottom: 0;
  }
}

.guide-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0 90px;
}

.guide-header {
  max-width: 900px;
  margin-bottom: 30px;
}

.guide-header h1 {
  max-width: 880px;
  margin: 8px 0 20px;
  font-size: clamp(2.5rem, 6vw, 5.6rem);
  line-height: .96;
  letter-spacing: 0;
}

.guide-intro {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1.65;
}

.guide-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 22px;
  color: var(--muted);
  font-size: .85rem;
  font-weight: 700;
}

.guide-cover {
  display: block;
  width: 100%;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.guide-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 740px);
  gap: 70px;
  justify-content: center;
  align-items: start;
  margin-top: 52px;
}

.guide-toc {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 12px;
  padding-left: 16px;
  border-left: 2px solid var(--teal);
}

.guide-toc strong {
  margin-bottom: 3px;
  color: var(--ink);
}

.guide-toc a {
  color: var(--muted);
  text-decoration: none;
}

.guide-content {
  min-width: 0;
}

.guide-content section {
  scroll-margin-top: 90px;
  margin-top: 54px;
}

.guide-content h2 {
  margin: 0 0 18px;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
}

.guide-content h3 {
  margin: 30px 0 8px;
  font-size: 1.2rem;
}

.guide-content p,
.guide-content li {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

.guide-content strong {
  color: var(--ink);
}

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

.guide-content table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  background: var(--panel);
}

.guide-content th,
.guide-content td {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.guide-content th {
  color: var(--ink);
  background: var(--paper);
  font-size: .82rem;
  text-transform: uppercase;
}

.guide-note {
  margin-top: 18px;
  padding: 18px 20px;
  border-left: 3px solid var(--amber);
  background: var(--panel);
}

.guide-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 32px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.guide-cta h2,
.guide-cta p {
  margin: 0;
}

.guide-cta h2 {
  margin-bottom: 8px;
  font-size: 1.35rem;
}

.guide-cta .button {
  flex: 0 0 auto;
}

.guide-sources {
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

@media (max-width: 800px) {
  .guide-layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }

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

  .guide-toc strong {
    grid-column: 1 / -1;
  }

  .guide-cta {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 540px) {
  .guide-shell {
    padding-top: 42px;
  }

  .guide-header h1 {
    font-size: 2.65rem;
  }

  .guide-cover {
    border-radius: 4px;
  }

  .guide-table-wrap {
    overflow: visible;
    border: 0;
  }

  .guide-content table {
    min-width: 0;
    background: transparent;
  }

  .guide-content thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .guide-content tbody {
    display: grid;
    gap: 12px;
  }

  .guide-content tr {
    display: grid;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
  }

  .guide-content td {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: 14px;
    padding: 13px 15px;
  }

  .guide-content td::before {
    content: attr(data-label);
    color: var(--ink);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
  }

  .guide-content td:last-child {
    border-bottom: 0;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

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

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 11px 15px;
  border-radius: 6px;
  color: #111;
  background: var(--amber);
  font-weight: 800;
  transform: translateY(-160%);
  transition: transform .15s ease;
}

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

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 5vw, 64px);
  background: rgba(247, 249, 252, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.1rem;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: #fff;
  background: var(--teal);
}

nav {
  display: flex;
  gap: clamp(12px, 3vw, 28px);
  color: var(--muted);
  font-weight: 650;
}

nav a:hover {
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: 620px;
  display: grid;
  align-items: end;
  padding: 96px clamp(20px, 6vw, 76px) 54px;
  overflow: hidden;
  background: var(--navy);
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 15, 24, 0.92), rgba(10, 15, 24, 0.48) 52%, rgba(10, 15, 24, 0.24));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  color: #fff;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 740px;
  margin-bottom: 22px;
  font-size: clamp(2.7rem, 6vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.hero-copy {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.83);
  font-size: 1.18rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.96rem;
  cursor: pointer;
}

.button.primary {
  color: #fff;
  background: var(--teal);
}

.button.primary:hover {
  background: var(--teal-dark);
}

.button.secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
}

.button.light {
  color: var(--ink);
  border-color: var(--line);
  background: #fff;
}

.button.wide {
  width: 100%;
}

.notice,
.section,
.cta,
footer {
  max-width: 1180px;
  margin: 0 auto;
}

.notice {
  padding: 18px 22px;
  margin-top: 24px;
  border: 1px solid #f1d28b;
  border-radius: 8px;
  background: #fff7df;
  color: #4b3a12;
  line-height: 1.5;
}

.section {
  padding: 86px 20px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-copy {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

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

.plan-card {
  position: relative;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 8px 22px rgba(16, 24, 39, 0.06);
}

.plan-card.featured {
  border-color: rgba(13, 148, 136, 0.45);
  box-shadow: var(--shadow);
}

.badge {
  display: inline-block;
  margin-bottom: 16px;
  padding: 6px 9px;
  border-radius: 999px;
  color: #064e3b;
  background: #ccfbf1;
  font-size: 0.78rem;
  font-weight: 850;
}

.badge.sale {
  color: #7c2d12;
  background: #ffedd5;
}

.compare-price {
  margin-bottom: 2px;
  color: var(--muted);
  font-weight: 750;
  text-decoration: line-through;
}

.price {
  margin-bottom: 4px;
  font-size: 2.4rem;
  font-weight: 900;
}

.price span {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 700;
}

.discount-line {
  margin-bottom: 12px;
  color: #9a3412;
  font-size: 0.9rem;
  font-weight: 850;
}

.plan-fit {
  min-height: 56px;
  color: var(--muted);
  line-height: 1.45;
}

.checkout-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.checkout-note a {
  color: var(--teal-dark);
  font-weight: 800;
}

ul {
  padding: 0;
  margin: 22px 0;
  list-style: none;
}

li {
  padding: 9px 0;
  border-top: 1px solid var(--line);
  color: #263244;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 48px;
  align-items: start;
}

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

.features > div,
.faq details {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.features p,
.faq p,
.cta p {
  color: var(--muted);
  line-height: 1.6;
}

.faq {
  max-width: 900px;
}

details + details {
  margin-top: 12px;
}

summary {
  cursor: pointer;
  font-weight: 850;
}

summary + p {
  margin-top: 14px;
  margin-bottom: 0;
}

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 86px;
  padding: 34px;
  border-radius: 8px;
  color: #fff;
  background: #172033;
}

.cta p {
  max-width: 680px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 34px 20px 42px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  font-weight: 750;
}

.policy-page {
  max-width: 920px;
  margin: 0 auto;
  padding: 82px 20px;
}

.policy-page h1 {
  color: var(--ink);
  font-size: clamp(2.4rem, 5vw, 4.8rem);
}

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

.policy-section {
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.policy-section h2 {
  font-size: 1.45rem;
}

.policy-section p {
  color: var(--muted);
  line-height: 1.7;
}

.status-page {
  max-width: 960px;
  min-height: calc(100vh - 168px);
  margin: 0 auto;
  padding: 88px 20px;
}

.status-page h1 {
  color: var(--ink);
  font-size: clamp(2.5rem, 5vw, 5rem);
}

.status-copy {
  max-width: 740px;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.65;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 34px 0 28px;
}

.status-grid article {
  min-height: 220px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.status-grid h2 {
  font-size: 1.25rem;
}

.status-grid p,
.fine-print {
  color: var(--muted);
  line-height: 1.6;
}

.step-number {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 18px;
  border-radius: 999px;
  color: #fff;
  background: var(--teal);
  font-weight: 900;
}

.status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.config-shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 46px 20px 0;
}

.config-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: end;
  margin-bottom: 24px;
  padding: 34px;
  border: 1px solid #24324a;
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(23, 32, 51, 0.96), rgba(14, 78, 76, 0.88)),
    url("https://images.unsplash.com/photo-1550745165-9bc0b252726f?auto=format&fit=crop&w=1800&q=80") center / cover;
  box-shadow: var(--shadow);
}

.config-hero h1 {
  margin-bottom: 14px;
  font-size: clamp(2.35rem, 5vw, 4.9rem);
}

.config-hero .status-copy {
  color: rgba(255, 255, 255, 0.8);
}

.config-trust {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.config-trust span {
  min-height: 54px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  font-weight: 850;
  line-height: 1.25;
}

.hosting-configurator {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 20px;
  align-items: start;
}

.config-main {
  display: grid;
  gap: 16px;
}

.config-panel,
.summary-card,
.summary-note {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(16, 24, 39, 0.06);
}

.config-panel {
  padding: 24px;
}

.panel-title {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.panel-title h2,
.config-summary h2 {
  margin-bottom: 4px;
  font-size: 1.38rem;
}

.panel-title p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.45;
}

.step-pill {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  color: #fff;
  background: var(--navy);
  font-weight: 900;
}

.plan-options,
.software-grid,
.addon-grid,
.field-grid,
.cycle-row {
  display: grid;
  gap: 12px;
}

.plan-options {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.plan-option,
.software-option,
.cycle-option,
.addon-grid label {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.plan-option {
  display: grid;
  gap: 8px;
  min-height: 214px;
  padding: 18px;
}

.plan-option.featured {
  border-color: rgba(13, 148, 136, 0.5);
}

.plan-option input,
.software-option input,
.cycle-option input {
  width: 18px;
  height: 18px;
}

.plan-option:has(input:checked),
.software-option:has(input:checked),
.cycle-option:has(input:checked),
.addon-grid label:has(input:checked) {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.plan-kicker {
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.plan-option strong {
  font-size: 1.45rem;
}

.plan-ram {
  color: #263244;
  font-weight: 850;
}

.plan-price {
  color: #9a3412;
  font-weight: 900;
}

.plan-price s {
  margin-right: 5px;
  color: var(--muted);
  font-weight: 750;
}

.plan-option small,
.software-option span,
.summary-note p {
  color: var(--muted);
  line-height: 1.45;
}

.cycle-row {
  grid-template-columns: 1fr 1fr auto;
  align-items: stretch;
  margin-top: 14px;
}

.cycle-option {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 10px;
  row-gap: 2px;
  align-items: center;
  padding: 14px;
}

.cycle-option strong {
  grid-column: 2;
  color: var(--muted);
  font-size: 0.86rem;
}

.muted-option {
  opacity: 0.56;
  cursor: not-allowed;
}

.custom-plan-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--teal-dark);
  background: #f8fafc;
  font-weight: 850;
}

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

.compact-software {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 16px;
}

.version-picker {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.version-picker-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.version-picker-head div,
.version-picker-head strong {
  display: grid;
  gap: 3px;
}

.version-picker-head strong {
  font-size: 1.35rem;
}

.version-picker-head span,
#java-auto-label {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.35;
}

.version-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.version-tab,
.version-choice {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.version-tab {
  flex: 0 0 auto;
  padding: 0 13px;
}

.version-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.version-choice {
  padding: 0 8px;
}

.version-tab.active,
.version-choice.active {
  color: #fff;
  border-color: var(--teal);
  background: var(--teal);
}

.software-option {
  display: grid;
  gap: 8px;
  min-height: 118px;
  padding: 15px;
}

.software-option strong {
  font-size: 1.05rem;
}

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

.field-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.field-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.field-grid label,
.wide-field {
  display: grid;
  gap: 8px;
  min-width: 0;
  color: #263244;
  font-weight: 850;
}

.field-grid input,
.field-grid select,
.wide-field textarea,
.billing-form input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

.field-grid select {
  appearance: auto;
}

.subdomain-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.subdomain-field input {
  border: 0;
  border-radius: 0;
}

.subdomain-field span {
  padding: 0 12px;
  color: var(--muted);
  font-weight: 800;
}

.addon-grid.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 14px;
}

.addon-grid label {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 12px;
  color: #263244;
  font-weight: 800;
}

.reveal-toggle {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  cursor: pointer;
}

.reveal-toggle input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.reveal-toggle span {
  display: grid;
  gap: 4px;
}

.reveal-toggle small {
  color: var(--muted);
  line-height: 1.4;
}

.reveal-panel {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.reveal-panel[hidden] {
  display: none;
}

.addon-grid input {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
}

.wide-field {
  margin-top: 16px;
}

.wide-field textarea {
  resize: vertical;
}

.refined-notes textarea {
  min-height: 108px;
}

.config-summary {
  position: sticky;
  top: 86px;
  display: grid;
  gap: 12px;
}

.summary-card,
.summary-note {
  padding: 22px;
}

.summary-card dl {
  margin: 6px 0 18px;
}

.summary-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.summary-card dt {
  color: var(--muted);
}

.summary-card dd {
  margin: 0;
  font-weight: 900;
  text-align: right;
}

.summary-price {
  display: grid;
  gap: 4px;
  margin-bottom: 16px;
  padding: 16px;
  border-radius: 8px;
  background: #f8fafc;
}

.summary-price span {
  color: var(--muted);
  font-weight: 850;
  text-decoration: line-through;
}

.summary-price strong {
  font-size: 2rem;
}

.summary-price small {
  color: var(--muted);
  line-height: 1.4;
}

.fallback-checkout {
  margin-top: 10px;
}

.form-status {
  min-height: 44px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.billing-form {
  display: grid;
  gap: 12px;
  max-width: 520px;
  margin: 28px 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.billing-form label {
  display: grid;
  gap: 8px;
  font-weight: 800;
}

@media (max-width: 820px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero {
    min-height: 580px;
    padding-top: 74px;
  }

  .plans,
  .split,
  .features,
  .status-grid,
  .hosting-configurator,
  .config-hero,
  .config-trust,
  .plan-options,
  .software-grid,
  .compact-software,
  .field-grid,
  .field-grid.three,
  .field-grid.four,
  .addon-grid.compact,
  .cycle-row,
  .version-grid {
    grid-template-columns: 1fr;
  }

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

  .version-tabs {
    flex-wrap: wrap;
    overflow-x: visible;
  }

  .version-tab {
    flex: 1 1 72px;
  }

  .config-summary {
    position: static;
  }

  .plan-fit {
    min-height: auto;
  }

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

@media (min-width: 821px) and (max-width: 1080px) {
  .hosting-configurator,
  .config-hero {
    grid-template-columns: 1fr;
  }

  .config-summary {
    position: static;
  }

  .software-grid,
  .compact-software,
  .field-grid.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --ink: #eef4f8;
    --muted: #a9b5c4;
    --line: #2f3a4b;
    --paper: #0e1420;
    --panel: #151d2b;
    --teal: #14b8a6;
    --teal-dark: #2dd4bf;
    --amber: #f59e0b;
    --navy: #0b1020;
    --shadow: 0 18px 45px rgba(0, 0, 0, 0.34);
  }

  .topbar {
    background: rgba(14, 20, 32, 0.92);
  }

  .button.light,
  .plan-card,
  .features > div,
  .faq details,
  .status-grid article,
  .config-panel,
  .summary-card,
  .summary-note,
  .billing-form,
  .plan-option,
  .software-option,
  .cycle-option,
  .addon-grid label,
  .version-tab,
  .version-choice,
  .subdomain-field,
  .field-grid input,
  .field-grid select,
  .wide-field textarea,
  .billing-form input {
    color: var(--ink);
    background: var(--panel);
  }

  .notice {
    color: #fde68a;
    border-color: #92400e;
    background: #35240c;
  }

  .badge {
    color: #99f6e4;
    background: #134e4a;
  }

  .badge.sale {
    color: #fed7aa;
    background: #7c2d12;
  }

  li,
  .field-grid label,
  .wide-field,
  .plan-ram,
  .addon-grid label {
    color: var(--ink);
  }

  .version-picker,
  .reveal-toggle,
  .custom-plan-link,
  .summary-price {
    color: var(--ink);
    background: #111827;
  }

  .plan-price,
  .discount-line {
    color: #fb923c;
  }

  .version-tab.active,
  .version-choice.active {
    color: #062b28;
    background: var(--teal);
  }
}
