:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --ink: #1d2536;
  --muted: #5f6981;
  --line: #dde4ef;
  --brand: #0050c8;
  --brand-strong: #00398f;
  --accent: #00c458;
  --accent-strong: #00b451;
  --hero: #0b1634;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Plus Jakarta Sans", sans-serif;
  overflow-x: clip;
}

img,
video,
iframe,
canvas {
  max-width: 100%;
  height: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.header-inner {
  width: calc(100% - 24px);
  margin: 0 auto;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
}

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

.site-header nav {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.site-header nav a {
  text-decoration: none;
  color: #3a4357;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}

.main-nav {
  flex: 1;
  min-width: 0;
}

.public-mobile-nav {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.mobile-nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid #d6e1f2;
  background: #ffffff;
  padding: 10px 9px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.mobile-nav-toggle span {
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: #2d4168;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header.menu-open .mobile-nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.menu-open .mobile-nav-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.menu-open .mobile-nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 1.5vw, 30px);
  margin: 0;
  padding: 0;
}

.nav-menu > li {
  position: relative;
}

.dropdown > a::after {
  content: "▾";
  display: inline-block;
  margin-left: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #6c7790;
  transition: transform 0.18s ease, color 0.18s ease;
}

.dropdown:hover > a::after,
.dropdown:focus-within > a::after {
  transform: rotate(180deg);
  color: #0f3d9b;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  list-style: none;
  padding: 10px 0;
  display: none;
  min-width: 200px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  border: 1px solid #dde4ef;
  z-index: 60;
}

.dropdown::after {
  content: "";
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
  height: 10px;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  display: block;
}

.dropdown-menu li {
  padding: 0;
}

.dropdown-menu li a {
  display: block;
  padding: 9px 16px;
  text-decoration: none;
  color: #182744;
  font-size: 14px;
  font-weight: 600;
}

.dropdown-menu li a:hover,
.dropdown-menu li a:focus-visible {
  background: #f2f6ff;
  color: #0f3d9b;
  outline: none;
}

.login-btn {
  text-decoration: none;
  padding: 11px 26px;
  border-radius: 999px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-strong) 100%);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.12);
}

.site-header--logo-only .header-inner {
  justify-content: center;
}

.site-header--logo-only .brand {
  margin-inline: auto;
}

.checkout-header-contact {
  margin: 0;
  padding: 0 14px 12px;
  text-align: center;
  color: #d9e4ff;
  background: linear-gradient(180deg, #0b1634 0%, #070f24 100%);
  font-size: clamp(18px, 2.1vw, 24px);
  line-height: 1.35;
}

.checkout-header-contact a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
}

.wrap {
  width: min(1200px, calc(100% - 36px));
  margin: 22px auto 60px;
  display: grid;
  gap: 18px;
}

.home-page .wrap {
  width: 100%;
  margin: 0;
  gap: 0;
}

.checkout-page .wrap {
  margin-top: 18px;
}

/* Home hero */
.dm-hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 25% -10%, #25376a 0%, #0b1634 56%), #0b1634;
  padding: clamp(66px, 8vw, 110px) 20px clamp(80px, 9vw, 126px);
  margin-bottom: 0;
}

.dm-hero::before,
.dm-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  opacity: 0.24;
  pointer-events: none;
}

.dm-hero::before {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, #28355f 0%, transparent 72%);
  right: -120px;
  top: 8px;
}

.dm-hero::after {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, #22325c 0%, transparent 73%);
  right: 120px;
  bottom: -180px;
}

.dm-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

.dm-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(42px, 6.1vw, 90px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.dm-hero p {
  margin: 18px auto 0;
  color: #d5ddf0;
  font-size: clamp(18px, 2.2vw, 36px);
  line-height: 1.5;
  max-width: 900px;
}

.dm-hero .bold-line {
  color: #ffffff;
  font-weight: 700;
  font-size: clamp(20px, 2.25vw, 32px);
}

.hero-cta-row {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  text-decoration: none;
  border-radius: 999px;
  padding: 14px 30px;
  font-weight: 800;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-accent {
  color: #fff;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-strong) 100%);
  box-shadow: 0 10px 24px rgba(0, 80, 200, 0.35), inset 0 -2px 0 rgba(0, 0, 0, 0.14);
}

.btn-outline {
  color: #1f3361;
  border: 1px solid #c9d8f4;
  background: #ffffff;
  box-shadow: inset 0 -2px 0 rgba(31, 51, 97, 0.05);
}

.checkout-footer {
  background: #05090f;
  border-top: 1px solid #141b2a;
  justify-content: center;
  gap: clamp(24px, 8vw, 96px);
  padding: 22px 20px;
}

.checkout-footer a {
  color: #ffffff;
  font-size: clamp(13px, 1.5vw, 18px);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
}

@media (max-width: 1120px) {
  .nav-menu {
    gap: 14px;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }
}

.btn-dark-outline {
  color: #e6ecfb;
  border: 1px solid rgba(230, 236, 251, 0.45);
  background: rgba(255, 255, 255, 0.04);
}

.trust-strip {
  background: #f4f8f8;
  border-top: 1px solid #e4e9ee;
  border-bottom: 1px solid #e4e9ee;
  padding: 28px 18px 32px;
  text-align: center;
}

.trust-strip p {
  margin: 0;
  color: #6b7489;
  font-size: 15px;
  font-weight: 600;
}

.logo-row {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  gap: clamp(24px, 5vw, 72px);
  flex-wrap: wrap;
}

.logo-row span {
  color: #7f8798;
  font-size: clamp(22px, 2.1vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.home-section {
  width: 100%;
  margin: 0;
  padding: clamp(30px, 4vw, 52px) max(20px, 7vw);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-left: none;
  border-right: none;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.home-section h2 {
  margin: 0;
  color: #1f2b47;
  font-size: clamp(30px, 4.1vw, 56px);
  line-height: 1.13;
  letter-spacing: -0.02em;
}

.home-section p,
.home-section li {
  color: #4d5874;
  font-size: clamp(17px, 1.6vw, 24px);
  line-height: 1.65;
}

.home-section ul {
  margin: 10px 0 0;
  padding-left: 22px;
}

.home-section.centered {
  text-align: center;
}

.section-subtext {
  margin: 12px auto 0;
  max-width: 860px;
}

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

.problem-card {
  border: 1px solid #e2e8ef;
  border-radius: 14px;
  background: #f8fcfb;
  padding: 24px;
  text-align: center;
  box-shadow: 0 10px 22px rgba(35, 48, 70, 0.06);
}

.problem-card h3 {
  margin: 0;
  color: #26334f;
  font-size: clamp(23px, 2.4vw, 34px);
  line-height: 1.3;
}

.problem-card p {
  margin: 10px 0 0;
}

.home-section.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: clamp(30px, 4vw, 52px) max(20px, 7vw);
  border: none;
  background: #f6f8fc;
  box-shadow: none;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  padding: clamp(24px, 3vw, 34px);
  box-shadow: 0 14px 30px rgba(20, 27, 44, 0.06);
}

.panel.soft {
  background: linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
}

.panel h2 {
  margin: 0;
  color: #1f2b47;
  font-size: clamp(28px, 3vw, 44px);
}

.panel p,
.panel li {
  color: #4d5874;
  font-size: clamp(16px, 1.4vw, 22px);
  line-height: 1.65;
}

.bold-line {
  font-weight: 700;
  color: #203053;
}

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

.check-list li::before {
  content: "✓";
  color: #00b451;
  font-weight: 800;
  margin-right: 8px;
}

.before-after {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: clamp(30px, 4vw, 52px) max(20px, 7vw);
  border: none;
  background: #ffffff;
  box-shadow: none;
}

.plan-row {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.plan-chip {
  border: 1px solid #d7dfec;
  border-radius: 12px;
  background: #f7fbff;
  padding: 12px;
  display: grid;
  gap: 4px;
}

.plan-chip strong {
  color: #1e2a47;
  font-size: 16px;
}

.plan-chip span {
  color: #0050c8;
  font-size: 17px;
  font-weight: 700;
}

.plan-chip small {
  color: #6c7896;
  font-size: 13px;
}

.faq-block details {
  margin-top: 12px;
  border: 1px solid #dde4ef;
  border-radius: 10px;
  background: #fbfdff;
  padding: 12px 14px;
}

.faq-block summary {
  cursor: pointer;
  font-size: clamp(16px, 1.3vw, 21px);
  font-weight: 700;
  color: #26334f;
}

.final-cta-panel {
  text-align: center;
  background: linear-gradient(180deg, #0f1b39 0%, #0b1735 100%);
  border: none;
  margin-bottom: 0;
  padding: clamp(40px, 5vw, 72px) max(20px, 7vw);
}

.final-cta-panel h2,
.final-cta-panel p {
  color: #ebf0fb;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 18px 24px;
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.site-footer a {
  text-decoration: none;
  color: #3b4760;
  font-size: 14px;
  font-weight: 600;
}

.card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: clamp(20px, 2.4vw, 28px);
  box-shadow: 0 12px 28px rgba(17, 28, 49, 0.06);
  min-width: 0;
}

/* Baseline styles for non-home public pages */
.wrap > .card h1 {
  margin: 0 0 12px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.1;
}

.wrap > .card h2 {
  margin: 0 0 10px;
  font-size: clamp(26px, 3vw, 38px);
}

.wrap > .card p,
.wrap > .card li {
  font-size: clamp(16px, 1.3vw, 20px);
  line-height: 1.65;
  color: #4f5a73;
  overflow-wrap: anywhere;
}

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

.post-list li {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  background: #f8fbff;
}

.post-list a {
  color: #203155;
  text-decoration: none;
  font-weight: 700;
}

details {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfdff;
  padding: 10px 12px;
}

summary {
  cursor: pointer;
  font-weight: 700;
  color: #26334f;
}

.forbidden-wrap {
  min-height: calc(100vh - 180px);
  display: grid;
  place-items: center;
  padding: 22px 0;
}

.forbidden-card {
  width: min(620px, 100%);
  border-radius: 18px;
  border: 1px solid #d6e0ef;
  background: #fff;
  box-shadow: 0 14px 34px rgba(12, 22, 40, 0.1);
  padding: clamp(22px, 3vw, 34px);
  text-align: center;
}

.forbidden-eyebrow {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #5871a5;
}

.forbidden-card h1 {
  margin: 10px 0 0;
  font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif;
  font-size: clamp(32px, 4.5vw, 52px);
  color: #122347;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.forbidden-card p {
  margin: 10px 0 0;
  color: #5a6d94;
  font-size: 16px;
  line-height: 1.55;
}

.forbidden-actions {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.forbidden-btn {
  text-decoration: none;
  border-radius: 999px;
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 800;
  border: 1px solid transparent;
}

.forbidden-btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #0050c8 0%, #00398f 100%);
  box-shadow: 0 10px 24px rgba(0, 80, 200, 0.24);
}

.forbidden-btn-ghost {
  color: #21457f;
  background: #eef4ff;
  border-color: #d4e1f8;
}

@media (max-width: 1150px) {
  .site-header nav a {
    font-size: 13px;
  }

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

@media (max-width: 920px) {
  .site-header:not(.site-header--logo-only) .header-inner {
    width: calc(100% - 20px);
    min-height: 72px;
    height: auto;
    padding: 8px 0;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: center;
    gap: 8px;
  }

  .site-header:not(.site-header--logo-only) .brand {
    grid-column: 2;
    justify-self: center;
  }

  .site-header:not(.site-header--logo-only) .brand-logo {
    height: 38px;
  }

  .site-header:not(.site-header--logo-only) .mobile-nav-toggle {
    display: inline-flex;
    grid-column: 3;
    justify-self: end;
  }

  .site-header:not(.site-header--logo-only) .public-mobile-nav {
    display: none;
    grid-column: 1 / -1;
    border-top: 1px solid #dbe4f3;
    margin-top: 6px;
    padding-top: 10px;
    padding-bottom: 4px;
    width: 100%;
  }

  .site-header.menu-open:not(.site-header--logo-only) .public-mobile-nav {
    display: grid;
    gap: 10px;
  }

  .site-header:not(.site-header--logo-only) .main-nav,
  .site-header:not(.site-header--logo-only) nav {
    width: 100%;
    display: block;
  }

  .site-header:not(.site-header--logo-only) .nav-menu {
    display: grid;
    gap: 4px;
    overflow: visible;
  }

  .site-header:not(.site-header--logo-only) .nav-menu > li > a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f7fbff;
    border: 1px solid #d9e4f5;
  }

  .site-header:not(.site-header--logo-only) .dropdown::after {
    display: none;
  }

  .site-header:not(.site-header--logo-only) .dropdown-menu {
    position: static;
    min-width: 0;
    border: 0;
    box-shadow: none;
    padding: 6px 0 2px 14px;
  }

  .site-header:not(.site-header--logo-only) .dropdown .dropdown-menu {
    display: none;
  }

  .site-header:not(.site-header--logo-only) .dropdown.open .dropdown-menu {
    display: block;
  }

  .site-header:not(.site-header--logo-only) .dropdown > a::after {
    margin-left: auto;
  }

  .site-header:not(.site-header--logo-only) .dropdown.open > a::after {
    transform: rotate(180deg);
  }

  .site-header:not(.site-header--logo-only) .dropdown-menu li a {
    padding: 9px 12px;
  }

  .site-header:not(.site-header--logo-only) .login-btn {
    width: 100%;
    justify-content: center;
    margin-top: 2px;
  }

  .problem-grid,
  .home-section.split,
  .before-after,
  .plan-row {
    grid-template-columns: 1fr;
  }

  .dm-hero h1 {
    font-size: clamp(36px, 10vw, 62px);
  }

  .dm-hero p {
    font-size: clamp(18px, 4.4vw, 26px);
  }

  .home-section,
  .home-section.split,
  .before-after {
    padding-left: 16px;
    padding-right: 16px;
  }

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

  .btn {
    width: 100%;
  }

  .wrap {
    width: calc(100% - 20px);
    margin: 14px auto 44px;
  }
}
