* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  color-scheme: light;
  --bg: #ffffff;
  --text: #111111;
  --muted: #5e5e5e;
  --border: #e5e5e5;
  --accent: #111111;
  --surface: #fafafa;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f0f0f;
  --text: #f2f2f2;
  --muted: #b5b5b5;
  --border: #2a2a2a;
  --accent: #ffffff;
  --surface: #151515;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
}

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

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-header {
  background: var(--bg);
}

.header-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 0 8px;
}

.top-bar {
  height: 0;
}

.masthead {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.masthead-date {
  justify-self: start;
  color: var(--muted);
  font-size: 0.85rem;
}

.masthead-title {
  justify-self: center;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.masthead-actions {
  justify-self: end;
  display: flex;
  align-items: center;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav-link {
  color: var(--text);
}

body:not(.is-logged-in) .nav-link.requires-auth {
  display: none;
}

.nav-home-icon {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
}

.nav-home-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.account-avatar {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: linear-gradient(135deg, #1d4ed8, #38bdf8);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  letter-spacing: 0.02em;
  padding: 0 4px;
  white-space: nowrap;
}

.account-menu .account-avatar {
  display: none;
}

.account-menu {
  position: relative;
}

.account-trigger {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  border-radius: 10px;
  padding: 6px 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.account-trigger:focus-visible {
  outline: 2px solid #1d4ed8;
  outline-offset: 2px;
}

.account-avatar.large {
  height: 36px;
  font-size: 0.95rem;
}

.account-label {
  display: inline-flex;
  font-size: 0.85rem;
  font-weight: 600;
}

.account-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 220px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  display: none;
  z-index: 20;
}

body.is-logged-in .account-menu.open .account-dropdown {
  display: grid;
  gap: 6px;
}

body.is-logged-in .account-menu:hover .account-dropdown {
  display: grid;
  gap: 6px;
}

body:not(.is-logged-in) .account-dropdown {
  display: none;
}

.account-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 4px 10px;
  border-bottom: 1px solid var(--border);
}

.account-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.account-email {
  font-size: 0.8rem;
  color: var(--muted);
  word-break: break-word;
}

.account-item {
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 0.85rem;
  color: var(--text);
  display: flex;
  align-items: center;
  cursor: pointer;
}

.account-item:hover {
  background: var(--surface);
}

.account-item.logout {
  color: #b42318;
}

body:not(.is-logged-in) .account-item.requires-auth {
  display: none;
}

body.is-logged-in .account-item.sign-in {
  display: none;
}
.theme-toggle {
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 6px 12px;
  border: 1px solid transparent;
  background: linear-gradient(#111111, #111111) padding-box,
    linear-gradient(90deg, #1d4ed8, #38bdf8) border-box;
  color: #ffffff;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1.5;
  height: auto;
  box-shadow: none;
  background-clip: padding-box;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  gap: 6px;
}

.login-button {
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid #111111;
  background: #111111;
  color: #ffffff;
  font-size: 0.85rem;
  height: 32px;
  text-decoration: none;
  white-space: nowrap;
}

.theme-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #ffffff;
}

[data-theme="dark"] .theme-indicator {
  background: #ffffff;
  border-color: #ffffff;
}

.double-rule {
  height: 6px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-top: 0;
}

.social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
}

.social-link.linkedin {
  background: #0a66c2;
  border-color: #0a66c2;
  color: #ffffff;
}

.social-link.facebook {
  background: #1877f2;
  border-color: #1877f2;
  color: #ffffff;
}

.social-link.x {
  background: #000000;
  border-color: #000000;
  color: #ffffff;
}

.social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  display: block;
  shape-rendering: geometricPrecision;
  text-rendering: geometricPrecision;
  image-rendering: optimizeQuality;
}

.social-link.facebook {
  padding-left: 3px;
  padding-top: 1px;
}

@media (max-width: 576px) {
  .account-label {
    display: none;
  }
}


.lead-grid {
  display: grid;
  grid-template-columns: 75% 25%;
  gap: 32px;
  padding: 10px 0 18px;
  border-bottom: 1px solid var(--border);
  align-items: stretch;
}

.lead-main,
.lead-aside {
  display: flex;
  flex-direction: column;
}

.lead-band {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: 12px;
  padding: 18px 20px;
  border: none;
  border-radius: 0;
  background: transparent;
  height: 100%;
  min-height: 180px;
}

.lead-band.lead-carousel {
  grid-template-columns: 25% 75%;
  align-items: stretch;
  gap: 0;
  padding: 0;
  min-height: 200px;
}

.lead-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 2px;
  padding: 20px;
  border-radius: 18px 0 0 18px;
  background-color: #0b0b0f;
  /* backup-svg: data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 260 360' preserveAspectRatio='xMinYMin slice'><rect width='260' height='360' fill='%230b0b0f'/><g fill='%2338bdf8' opacity='0.95'><circle cx='20' cy='24' r='4'/><circle cx='34' cy='42' r='3'/><circle cx='52' cy='64' r='3'/><circle cx='66' cy='86' r='2.5'/><circle cx='82' cy='106' r='2.3'/><circle cx='98' cy='128' r='2.1'/><circle cx='112' cy='150' r='2.0'/><circle cx='124' cy='170' r='1.9'/><circle cx='132' cy='186' r='1.8'/><circle cx='138' cy='196' r='1.6'/></g><g fill='%2338bdf8' opacity='0.75'><circle cx='38' cy='18' r='2.6'/><circle cx='56' cy='38' r='2.4'/><circle cx='74' cy='58' r='2.2'/><circle cx='92' cy='80' r='2.0'/><circle cx='108' cy='104' r='1.8'/><circle cx='124' cy='126' r='1.6'/><circle cx='140' cy='146' r='1.4'/></g><g fill='%23ff2ea0' opacity='0.95'><circle cx='132' cy='206' r='1.8'/><circle cx='142' cy='220' r='1.9'/><circle cx='154' cy='236' r='2.1'/><circle cx='170' cy='252' r='2.4'/><circle cx='188' cy='270' r='2.8'/><circle cx='206' cy='290' r='3.2'/><circle cx='226' cy='312' r='3.6'/><circle cx='240' cy='334' r='4.0'/></g><g fill='%23ff2ea0' opacity='0.7'><circle cx='118' cy='214' r='1.5'/><circle cx='130' cy='230' r='1.7'/><circle cx='146' cy='248' r='2.0'/><circle cx='164' cy='266' r='2.3'/><circle cx='184' cy='286' r='2.8'/><circle cx='204' cy='308' r='3.2'/></g></svg> */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 260 360' preserveAspectRatio='xMinYMin slice'><rect x='0' y='0' width='260' height='360' rx='24' ry='24' fill='%23000000'/><g fill='%2338bdf8'><circle cx='4' cy='6' r='2'/><circle cx='10' cy='14' r='2'/><circle cx='18' cy='24' r='2'/><circle cx='26' cy='36' r='2'/><circle cx='36' cy='50' r='2'/><circle cx='46' cy='66' r='2'/><circle cx='60' cy='84' r='2'/><circle cx='76' cy='104' r='2'/><circle cx='94' cy='124' r='2'/><circle cx='114' cy='144' r='2'/><circle cx='134' cy='164' r='2'/><circle cx='150' cy='176' r='2'/><circle cx='162' cy='186' r='2'/><circle cx='22' cy='8' r='2'/><circle cx='32' cy='18' r='2'/><circle cx='44' cy='30' r='2'/><circle cx='58' cy='46' r='2'/><circle cx='74' cy='64' r='2'/><circle cx='92' cy='84' r='2'/><circle cx='112' cy='104' r='2'/><circle cx='134' cy='124' r='2'/><circle cx='156' cy='144' r='2'/><circle cx='172' cy='160' r='2'/><circle cx='188' cy='174' r='2'/><circle cx='30' cy='4' r='2'/><circle cx='42' cy='14' r='2'/><circle cx='56' cy='28' r='2'/><circle cx='72' cy='44' r='2'/><circle cx='90' cy='62' r='2'/><circle cx='110' cy='82' r='2'/><circle cx='132' cy='104' r='2'/><circle cx='156' cy='126' r='2'/><circle cx='178' cy='146' r='2'/><circle cx='198' cy='164' r='2'/><circle cx='14' cy='40' r='2'/><circle cx='20' cy='56' r='2'/><circle cx='28' cy='74' r='2'/><circle cx='40' cy='94' r='2'/><circle cx='54' cy='116' r='2'/><circle cx='70' cy='138' r='2'/><circle cx='88' cy='156' r='2'/></g><g fill='%23ff2ea0'><circle cx='118' cy='194' r='2'/><circle cx='130' cy='206' r='2'/><circle cx='146' cy='220' r='2'/><circle cx='166' cy='238' r='2'/><circle cx='188' cy='256' r='2'/><circle cx='212' cy='276' r='2'/><circle cx='236' cy='298' r='2'/><circle cx='258' cy='324' r='2'/><circle cx='108' cy='210' r='2'/><circle cx='124' cy='226' r='2'/><circle cx='142' cy='244' r='2'/><circle cx='162' cy='262' r='2'/><circle cx='184' cy='282' r='2'/><circle cx='208' cy='304' r='2'/><circle cx='232' cy='328' r='2'/><circle cx='98' cy='216' r='2'/><circle cx='116' cy='234' r='2'/><circle cx='136' cy='254' r='2'/><circle cx='158' cy='276' r='2'/><circle cx='182' cy='300' r='2'/><circle cx='206' cy='324' r='2'/><circle cx='230' cy='348' r='2'/><circle cx='140' cy='196' r='2'/><circle cx='160' cy='214' r='2'/><circle cx='184' cy='236' r='2'/><circle cx='210' cy='260' r='2'/><circle cx='236' cy='286' r='2'/><circle cx='258' cy='358' r='2'/></g></svg>");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.lead-brand::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -24px;
  transform: translateY(-50%);
  width: 48px;
  height: 120px;
  background: #0b0b0f;
  border-radius: 80px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.lead-brand-clt {
  font-size: 2.2rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.06em;
  line-height: 1.05;
}

.lead-brand-digital {
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(90deg, #1d4ed8, #38bdf8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.05;
}

.lead-carousel-panel {
  position: relative;
  display: block;
  align-items: stretch;
  gap: 0;
  border: none;
  border-radius: 0 18px 18px 0;
  background: transparent;
  padding: 0;
  overflow: hidden;
}

.carousel-viewport {
  overflow: hidden;
  width: 100%;
  height: 100%;
}

.carousel-track {
  display: flex;
  gap: 0;
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease;
}

.carousel-slide {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  background: var(--surface);
  flex: 0 0 100%;
}

.carousel-slide.image-slide {
  padding: 0;
  border: none;
  background: transparent;
  overflow: hidden;
  border-radius: 0;
}

.carousel-slide.image-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 0;
}

.carousel-slide.embed {
  padding: 0;
  border: none;
  background: transparent;
}

.canva-embed {
  position: relative;
  width: 100%;
  height: 0;
  padding-top: 56.25%;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(63, 69, 81, 0.16);
  background: #ffffff;
}

.canva-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  z-index: 2;
}

.carousel-arrow.prev {
  left: 12px;
}

.carousel-arrow.next {
  right: 12px;
}

.carousel-arrow:hover {
  filter: brightness(0.97);
}

.lead-slot h2 {
  font-size: 1.1rem;
  margin: 8px 0;
}

.lead-divider {
  width: 1px;
  height: 150px;
  border-left: 2px dotted var(--border);
}

.placeholder {
  margin-top: 16px;
  color: var(--muted);
}

.promo-card {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  position: sticky;
  top: 24px;
}

.promo-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  margin-top: 14px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  background: #111111;
  color: #ffffff;
  border: 1px solid #111111;
  text-decoration: none;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.promo-cta:hover {
  filter: brightness(0.95);
  transform: translateY(-1px);
}

.subscription-plans .plan-card {
  grid-template-rows: auto 1fr auto;
}

.subscription-plans .plan-header {
  height: 130px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0;
}

.subscription-plans .plan-header-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  margin-bottom: 0;
}

.subscription-plans .plan-name {
  font-size: 1.35rem;
  margin: 0;
}

.subscription-plans .plan-price {
  display: grid;
  gap: 6px;
  justify-items: end;
  text-align: right;
  min-height: 54px;
  align-content: space-between;
}

.subscription-plans .plan-price-main {
  display: flex;
  align-items: baseline;
  gap: 6px;
  justify-content: flex-end;
}

.subscription-plans .plan-amount {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0b0b0b;
}

.subscription-plans .plan-unit {
  font-size: 0.95rem;
  color: #6b7280;
  font-weight: 500;
}

.subscription-plans .plan-billing,
.subscription-plans .plan-save {
  margin: 0;
  color: #6b7280;
  font-size: 0.78rem;
  text-align: right;
}

.subscription-plans .plan-header-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 0;
  min-height: 36px;
}

.subscription-plans .plan-cta-light,
.subscription-plans .plan-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
  background: #0b0b0b;
  text-decoration: none;
  width: 140px;
  min-height: 40px;
  box-shadow: 0 6px 14px rgba(17, 17, 17, 0.16);
  max-width: 100%;
}

.subscription-plans .plan-meta {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #0b0b0b;
  text-align: right;
}

.subscription-plans .plan-save.is-empty {
  visibility: hidden;
}

.subscription-plans .plan-body {
  display: grid;
  gap: 12px;
}

.subscription-plans .plan-desc {
  color: #4b5563;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
  min-height: 4.3rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.subscription-plans .plan-features {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: #111827;
  font-size: 0.92rem;
  line-height: 1.5;
}

.subscription-plans .plan-footer {
  min-height: 0;
}

.ad-hero * {
  color: #111111 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.ad-price-hero {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2f36c6, #5b61e4);
  border: 1px solid rgba(47, 54, 198, 0.6);
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  box-shadow: 0 10px 20px rgba(47, 54, 198, 0.35);
  line-height: 1;
  width: fit-content;
  position: absolute;
  right: -8px;
  bottom: 8px;
  z-index: 3;
}

.price-prefix {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.85);
}

.price-currency {
  font-size: 0.9rem;
}

.price-value {
  font-size: 1.5rem;
}

.price-period {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

.ad-price {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.ad-points {
  display: grid;
  gap: 6px;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

.ad-visual {
  position: relative;
  height: 160px;
  border-radius: 16px;
  overflow: visible;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 10px;
}

.ad-visual-modern {
  height: 160px;
  width: 100%;
  border-radius: 16px;
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  position: relative;
  background: linear-gradient(145deg, #ffffff, #f4f5fb);
  border: 1px solid var(--border);
  box-shadow: 0 12px 24px rgba(17, 17, 17, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  color: var(--text);
  isolation: isolate;
}

.ad-visual-modern > * {
  position: relative;
  z-index: 2;
}

@keyframes cltGradientFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.ad-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--text);
  position: relative;
  z-index: 2;
  max-width: 200px;
  opacity: 1;
  visibility: visible;
}

.ad-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
  background: rgba(17, 17, 17, 0.06);
  border: 1px solid rgba(17, 17, 17, 0.12);
}

.ad-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 2px 0 0;
  color: var(--text);
}

.ad-subtitle {
  font-size: 0.95rem;
  margin: 0;
  color: var(--muted);
}

.ad-eyebrow {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  opacity: 0.85;
}

.ad-price-line {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-weight: 800;
  line-height: 1;
}

.ad-price-line .currency {
  font-size: 1rem;
  vertical-align: super;
}

.ad-price-line .amount {
  font-size: 2.4rem;
}

.ad-price-line .period {
  font-size: 0.75rem;
  opacity: 0.85;
}

.ad-tagline {
  font-size: 0.8rem;
  opacity: 0.95;
}

.ad-cta {
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  background: #111111;
  border: 1px solid #111111;
  color: #ffffff;
  transition: all 0.2s ease;
  position: relative;
  z-index: 2;
  opacity: 1;
  visibility: visible;
  justify-self: start;
}

.ad-cta:hover {
  background: #2a2a2a;
  transform: translateY(-1px);
}


[data-theme="dark"] .ad-visual-modern {
  background: linear-gradient(145deg, #141414, #1c1c1c);
  border-color: #2a2a2a;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .ad-hero {
  background: linear-gradient(145deg, #141414, #1c1c1c);
  border-color: #2a2a2a;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .ad-kicker {
  color: #f2f2f2;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .ad-cta {
  background: #f2f2f2;
  border-color: #f2f2f2;
  color: #111111;
}

.ad-panel {
  position: absolute;
  left: 14px;
  top: 64px;
  width: 120px;
  height: 70px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 0 0 1px rgba(90, 96, 220, 0.15);
  z-index: 1;
}

.ad-ring {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 2px dashed rgba(63, 70, 214, 0.35);
  top: -10px;
  right: 6px;
  z-index: 1;
}

.ad-spark {
  position: absolute;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(90, 96, 220, 0.22);
  bottom: 18px;
  left: 30px;
  transform: rotate(12deg);
  z-index: 1;
}

.ad-lines {
  position: absolute;
  right: 20px;
  bottom: 26px;
  width: 120px;
  height: 36px;
  background: linear-gradient(
    to bottom,
    rgba(63, 70, 214, 0.4) 0 4px,
    transparent 4px 10px,
    rgba(63, 70, 214, 0.25) 10px 14px,
    transparent 14px 20px,
    rgba(63, 70, 214, 0.18) 20px 24px,
    transparent 24px 100%
  );
  border-radius: 10px;
  opacity: 0.9;
  z-index: 1;
}

.card-links {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
}

.card-link {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.card-link:hover {
  color: var(--muted);
}

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

.login-glass {
  margin-top: 16px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  display: grid;
  gap: 10px;
}

[data-theme="dark"] .login-glass {
  background: rgba(20, 20, 20, 0.7);
  border-color: rgba(255, 255, 255, 0.08);
}

.login-glass input {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 0.9rem;
}

.login-glass button {
  padding: 10px 12px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #6f6ee8 0%, #5f5fd6 50%, #4a69d8 100%);
  color: #ffffff;
  cursor: pointer;
  font-size: 0.9rem;
  box-shadow: 0 6px 14px rgba(90, 96, 220, 0.25);
}

.login-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.8rem;
  align-items: flex-start;
}

.login-link {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.login-link:hover {
  color: var(--text);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(12, 12, 12, 0.25);
  backdrop-filter: blur(8px);
  z-index: 1000;
}

.modal-overlay.is-open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
}

.modal-card {
  position: relative;
  width: min(420px, 100%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.modal-card h2 {
  margin-bottom: 16px;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: none;
  background: transparent;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--muted);
}

.modal-form {
  display: grid;
  gap: 12px;
  font-size: 0.85rem;
}

.modal-form label {
  display: grid;
  gap: 6px;
}

.auth-modal {
  width: min(460px, 100%);
  padding: 18px;
}

.auth-form {
  display: grid;
  gap: 10px;
  font-size: 0.9rem;
}

.auth-form label {
  display: grid;
  gap: 6px;
}

.auth-form label.checkbox-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.auth-form input,
.auth-form select {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 0.9rem;
}

.auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.button-outline {
  appearance: none;
  -webkit-appearance: none;
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.auth-links {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.82rem;
  color: var(--muted);
}

.auth-links a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-note {
  color: var(--muted);
  font-size: 0.85rem;
}

.auth-switch {
  margin-top: -2px;
  font-size: 0.85rem;
}

.auth-switch a,
.otp-meta a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.auth-switch a.is-disabled {
  pointer-events: none;
  opacity: 0.6;
}

.otp-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--muted);
}

.otp-timer {
  font-variant-numeric: tabular-nums;
}

.auth-toggle {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border);
  margin-bottom: 14px;
}

.auth-toggle-button {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  background: transparent;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--muted);
}

.auth-toggle-button.is-active {
  background: #111111;
  color: #ffffff;
}

.plan-cta.plan-cta-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.otp-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
}

.otp-hint {
  color: var(--muted);
  font-size: 0.82rem;
}

.session-expired-banner {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: #111111;
  color: #ffffff;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.85rem;
  z-index: 1000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.auth-page {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  background: var(--surface);
  max-width: 520px;
}

.auth-page-compact {
  padding: 18px;
  max-width: 480px;
}

.auth-page-compact .auth-form {
  gap: 10px;
}

.auth-page-compact .auth-form input,
.auth-page-compact .auth-form select {
  padding: 8px 10px;
  font-size: 0.9rem;
}

.input-readonly {
  background: #f3f4f6;
  color: #6b7280;
  border-color: #e5e7eb;
}

.verify-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  background: var(--surface);
  max-width: 460px;
}

.verify-block {
  display: grid;
  gap: 8px;
}

.verify-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.verify-row input {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 0.9rem;
}

.verify-message {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--muted);
  word-break: break-word;
}

.verify-section {
  margin-top: 12px;
}

html.register-mode .verify-row,
body.register-mode .verify-row {
  display: none;
}

html.register-mode #verify-block,
body.register-mode #verify-block {
  display: none !important;
}

html.register-mode #verify-form,
body.register-mode #verify-form {
  display: none !important;
}

html.register-mode #verify-message,
body.register-mode #verify-message {
  display: none !important;
}

.verify-section[hidden] {
  display: none !important;
}

.verify-card .auth-form {
  gap: 8px;
}

.verify-card .auth-form input,
.verify-card .auth-form select {
  padding: 8px 10px;
  font-size: 0.9rem;
}

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

.modal-form input {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 0.9rem;
}

.modal-form button {
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #6f6ee8 0%, #5f5fd6 50%, #4a69d8 100%);
  color: #ffffff;
  cursor: pointer;
  font-size: 0.9rem;
  box-shadow: 0 6px 14px rgba(90, 96, 220, 0.25);
}

.modal-links {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
}

.modal-link {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.modal-link:hover {
  color: var(--text);
}

.small-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

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

.news-card {
  display: grid;
  gap: 8px;
  padding: 0 18px;
  border-left: 1px solid var(--border);
  background: transparent;
  transition: none;
}

.news-card:first-child {
  border-left: none;
  padding-left: 0;
}

.news-card h2 {
  font-size: 1.2rem;
  margin: 0;
}

.eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.summary {
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer {
  padding: 12px 0;
  color: var(--muted);
  font-size: 0.82rem;
  border-top: 1px solid var(--border);
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.footer-social {
  margin-left: auto;
}

.site-footer .social {
  gap: 8px;
}

.site-footer .social-link {
  width: 28px;
  height: 28px;
}

.page {
  padding: 12px 0 96px;
}

.page-header {
  display: grid;
  gap: 12px;
  margin-bottom: 10px;
}

html.register-mode .page,
body.register-mode .page {
  padding-top: 4px;
}

html.register-mode .page-header,
body.register-mode .page-header {
  gap: 6px;
  margin-bottom: 6px;
}

html.register-mode .verify-card,
body.register-mode .verify-card {
  margin-top: 4px;
}

.page-intro {
  color: var(--muted);
  max-width: 720px;
}

.pricing-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: 48px;
}

.plan-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  background: var(--surface);
  display: grid;
  gap: 16px;
  position: relative;
}

.plan-featured {
  border-color: rgba(29, 78, 216, 0.35);
  box-shadow: 0 18px 36px rgba(29, 78, 216, 0.12);
}

.plan-card .plan-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 4px 10px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  border-radius: 999px;
  background: rgba(29, 78, 216, 0.12);
  color: var(--text);
  border: 1px solid rgba(29, 78, 216, 0.25);
}

.plan-header h2 {
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.plan-price {
  font-size: 1.1rem;
  font-weight: 700;
}

.plan-subprice {
  color: var(--muted);
  font-size: 0.9rem;
}

.plan-features {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  padding-left: 18px;
}

.plan-cta {
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(90deg, #1d4ed8, #38bdf8);
  border: 1px solid transparent;
  color: #ffffff;
  width: fit-content;
  box-shadow: none;
  background-clip: padding-box;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

.plan-cta:hover {
  filter: brightness(0.95);
}

.subscription-compare {
  margin-top: 4px;
}

.subscription-plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 12px;
}

.plan-select-plans {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 760px;
  margin: 12px auto 0;
}

.plan-select-plans .plan-card {
  grid-template-rows: auto auto 1fr;
  min-height: 0;
  gap: 4px;
}

.plan-select-plans .plan-header {
  height: auto;
}

.plan-select-plans .plan-header-grid {
  height: auto;
  grid-template-rows: auto;
}

.plan-select-plans .plan-name {
  margin-bottom: 4px;
}

.plan-select-plans .plan-body {
  min-height: 0;
  gap: 4px;
}

.plan-select-plans .plan-desc {
  min-height: 0;
  -webkit-line-clamp: unset;
  margin-top: 0;
}

.plan-select-plans .plan-footer {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.subscription-plans .plan-card {
  --plan-header-height: 132px;
  --plan-body-height: 96px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  padding: 18px 20px 20px;
  display: grid;
  gap: 12px;
  min-height: 520px;
  box-shadow: 0 6px 18px rgba(17, 17, 17, 0.04);
  grid-template-rows: var(--plan-header-height) var(--plan-body-height) 1fr;
}

.subscription-plans .plan-header {
  height: var(--plan-header-height);
  display: flex;
  flex-direction: column;
}

.subscription-plans .plan-header-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1fr;
  column-gap: 16px;
  row-gap: 0;
  height: 100%;
}

.subscription-plans .plan-name {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  font-size: 1.35rem;
  margin: 0;
}

.subscription-plans .plan-price-main {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}
.subscription-plans .plan-unit {
  font-size: inherit;
}

.subscription-plans .plan-unit {
  font-weight: 600;
  color: var(--muted);
}

.subscription-plans .plan-annual {
  display: none;
}


.subscription-plans .plan-save {
  display: none;
}

.subscription-plans .plan-cta {
  grid-column: 1;
  grid-row: 2;
  justify-self: start;
  align-self: center;
}

.subscription-plans .plan-cta-light,
.subscription-plans .plan-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
  background: #0b0b0b;
  text-decoration: none;
  width: 140px;
  min-height: 40px;
  box-shadow: 0 6px 14px rgba(17, 17, 17, 0.16);
  max-width: 100%;
}

.subscription-plans .plan-meta {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  align-self: start;
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  text-align: right;
  white-space: nowrap;
}

.subscription-plans .plan-header-empty {
  grid-column: 2;
  grid-row: 2;
  align-self: center;
  min-height: 1px;
}

.subscription-plans .plan-header-grid--library {
  grid-template-columns: 0.8fr 1.2fr;
  grid-template-rows: auto auto;
}

.subscription-plans .plan-header-grid--library .plan-name {
  grid-column: 1;
  grid-row: 1;
}

.subscription-plans .plan-header-grid--library .plan-meta {
  grid-column: 2;
  grid-row: 1;
  font-size: 1.2rem;
  font-weight: 600;
}

.subscription-plans .plan-header-grid--library .plan-cta--library {
  grid-column: 1;
  grid-row: 2;
  justify-self: start;
  align-self: center;
}


.subscription-plans .plan-billing {
  grid-column: 2;
  grid-row: 2;
  justify-self: end;
  align-self: center;
  margin: 0;
  color: var(--text);
  font-size: 0.86rem;
  font-style: italic;
  font-weight: 700;
  text-align: right;
  line-height: 1.2;
}

.subscription-plans .plan-body {
  display: grid;
  gap: 12px;
  min-height: var(--plan-body-height);
}

.plan-select-plans .plan-card {
  grid-template-rows: auto auto 1fr;
  min-height: 0;
  gap: 4px;
}

.plan-select-plans .plan-header {
  height: auto;
}

.plan-select-plans .plan-header-grid {
  height: auto;
  grid-template-rows: auto;
}

.plan-select-plans .plan-name {
  margin-bottom: 4px;
}

.plan-select-plans .plan-body {
  min-height: 0;
  gap: 4px;
}

.plan-select-plans .plan-desc {
  min-height: 0;
  -webkit-line-clamp: unset;
  margin-top: 0;
}

.subscription-plans .plan-desc {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
  min-height: 100%;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.subscription-plans .plan-features {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.5;
}

.subscription-plans .plan-footer {
  min-height: 0;
}

.plan-rect-pricing {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  display: grid;
  gap: 10px;
}

.plan-choice-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.plan-choice-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  font-size: 0.9rem;
}

.plan-choice-option input {
  accent-color: #1d4ed8;
}

.plan-select-plans .plan-choice-cta {
  grid-column: auto;
  grid-row: auto;
  align-self: flex-start;
  width: auto;
  min-width: 200px;
  padding: 8px 20px;
  white-space: nowrap;
}

.plan-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1rem;
}

.plan-price-row span {
  color: var(--muted);
}

.plan-price-row strong {
  font-size: 1.1rem;
}

.plan-savings {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.95rem;
  color: var(--muted);
}

.plan-savings strong {
  color: var(--text);
}

.compare-grid {
  display: grid;
  gap: 0;
  max-width: 860px;
  margin: 0 auto;
}

.compare-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) repeat(2, minmax(140px, 1fr));
  align-items: stretch;
  column-gap: 14px;
  padding: 0 2px;
}

.compare-header {
  padding-bottom: 8px;
  align-items: end;
}

.compare-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  padding: 0 0 8px 10px;
}

.compare-card-head {
  background: #f9f9f9;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 14px 12px;
  text-align: left;
  display: grid;
  gap: 6px;
}

.compare-card-head.compare-featured {
  box-shadow: 0 10px 24px rgba(17, 17, 17, 0.08);
  border-color: rgba(29, 78, 216, 0.3);
}

.compare-plan {
  font-size: 1rem;
  font-weight: 700;
}

.compare-tagline {
  font-size: 0.82rem;
  color: var(--muted);
}

.compare-price {
  font-size: 1.35rem;
  font-weight: 800;
  color: #111111;
}

.compare-price span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.compare-subprice {
  font-size: 1rem;
  color: #111111;
  font-weight: 700;
}

.compare-feature {
  padding: 12px 8px 12px 10px;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}

.compare-value {
  text-align: center;
  font-weight: 600;
  padding: 12px 10px;
  border-bottom: 1px solid var(--border);
}

.compare-last .compare-value {
  border-bottom: 1px solid var(--border);
}

.compare-value.is-yes::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #12b76a;
  font-size: 1.05rem;
  font-weight: 800;
}

.compare-value.is-no::before {
  content: "✕";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #f04438;
  font-size: 1rem;
  font-weight: 800;
}

.compare-actions {
  padding: 12px 8px 0;
}

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

.choice-form {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  background: var(--surface);
  display: grid;
  gap: 16px;
}

.choice-form label {
  display: grid;
  gap: 8px;
  font-size: 0.9rem;
}

.choice-form select {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 0.95rem;
}

.choice-summary {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  background: var(--surface);
  display: grid;
  gap: 14px;
}


.news-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: block;
  background: var(--bg);
}

.news-content {
  display: grid;
  gap: 8px;
}

.compare-actions .compare-cta {
  margin-top: 12px;
  justify-self: center;
}

.subscription-modal {
  width: min(760px, 92vw);
  padding: 18px;
}

.subscription-modal .modal-body-grid {
  display: grid;
  gap: 12px 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 10px;
}

.subscription-form {
  display: grid;
  gap: 10px;
}

.subscription-form label {
  display: grid;
  gap: 8px;
  font-size: 0.9rem;
}

.subscription-form input,
.subscription-form select {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 0.9rem;
}

.invoice-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  padding: 12px 14px;
  display: grid;
  gap: 10px;
  align-self: start;
}

.invoice-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.invoice-row {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
}

.invoice-total {
  border-top: 1px solid var(--border);
  padding-top: 8px;
  font-size: 0.95rem;
}

.subscription-modal .modal-cta {
  margin-top: 10px;
}

.subscribe-flow {
  display: grid;
  gap: 16px;
  margin-top: 8px;
}

.subscribe-intro {
  color: var(--muted);
  max-width: 640px;
}

.subscribe-form {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  background: var(--surface);
  display: grid;
  gap: 16px;
}

.form-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.subscribe-form label {
  display: grid;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text);
}

.subscribe-form input,
.subscribe-form select {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 0.95rem;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.4;
}

.verify-card .checkbox-row {
  align-items: flex-start;
}

.verify-card .checkbox-row input {
  margin-top: 2px;
  flex: 0 0 auto;
}

.payment-stub,
.confirmation {
  border: 1px dashed var(--border);
  border-radius: 16px;
  padding: 18px 20px;
  background: var(--surface);
  display: grid;
  gap: 12px;
}

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

.plan-matrix {
  margin: 12px 0 48px;
  display: grid;
  gap: 0;
}

.plan-matrix-header,
.plan-matrix-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) repeat(2, minmax(120px, 1fr));
  align-items: center;
  column-gap: 16px;
}

.plan-matrix-header {
  padding: 0 18px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.plan-matrix-row {
  padding: 12px 18px;
}

.plan-matrix-feature {
  font-weight: 600;
  color: var(--text);
}

.plan-matrix-value {
  text-align: center;
  font-weight: 600;
  color: var(--text);
}

.plan-matrix-header span:nth-child(2),
.plan-matrix-header span:nth-child(3) {
  background: var(--surface);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: 16px 16px 0 0;
  padding: 12px 0;
  font-weight: 700;
  color: var(--text);
}

.plan-matrix-row span:nth-child(2),
.plan-matrix-row span:nth-child(3) {
  background: var(--surface);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-top: 1px solid var(--border);
  padding: 10px 0;
}

.plan-matrix-row:last-child span:nth-child(2),
.plan-matrix-row:last-child span:nth-child(3) {
  border-bottom: 1px solid var(--border);
  border-radius: 0 0 16px 16px;
}

.plan-matrix-value.is-yes::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #e6f6ed;
  color: #1f7a3a;
  font-size: 0.85rem;
  font-weight: 700;
}

[data-theme="dark"] .plan-matrix-header {
  color: var(--muted);
}

[data-theme="dark"] .plan-matrix-value.is-yes::before {
  background: rgba(31, 122, 58, 0.2);
  color: #7ceaa6;
}

.pricing-table {
  display: grid;
  gap: 16px;
}

.pricing-table h2 {
  font-size: 1.4rem;
  margin: 0;
}

.table-wrap {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.table-wrap th,
.table-wrap td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.table-wrap thead {
  background: rgba(17, 17, 17, 0.04);
}

.table-wrap tbody tr:last-child td {
  border-bottom: none;
}

[data-theme="dark"] .plan-card,
[data-theme="dark"] .table-wrap {
  background: #141414;
  border-color: #2a2a2a;
}

[data-theme="dark"] .subscription-plans .plan-card {
  background: #141414;
  border-color: #2a2a2a;
}

[data-theme="dark"] .subscription-plans .plan-name,
[data-theme="dark"] .subscription-plans .plan-meta,
[data-theme="dark"] .subscription-plans .plan-price-main,
[data-theme="dark"] .subscription-plans .plan-billing {
  color: #f2f2f2;
}

[data-theme="dark"] .subscription-plans .plan-unit {
  color: #b5b5b5;
}

[data-theme="dark"] .subscription-plans .plan-desc {
  color: #c9c9c9;
}

[data-theme="dark"] .subscription-plans .plan-features {
  color: #e5e5e5;
}

[data-theme="dark"] .plan-badge {
  color: #f2f2f2;
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.25);
}

[data-theme="dark"] .table-wrap thead {
  background: rgba(255, 255, 255, 0.04);
}

.contact-grid {
  display: grid;
  gap: 32px;
  margin-top: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.contact-brief {
  display: grid;
  gap: 24px;
  margin-top: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: start;
}

.contact-card {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  display: grid;
  gap: 12px;
}

.contact-qr {
  justify-items: center;
  text-align: center;
}

.qr-box {
  width: 180px;
  height: 180px;
  border-radius: 12px;
  border: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}

.qr-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
  width: 150px;
  height: 150px;
}

.qr-grid span {
  background: rgba(17, 17, 17, 0.15);
  border-radius: 2px;
}

.contact-qr-note {
  font-size: 0.85rem;
  color: var(--muted);
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.contact-form label {
  display: grid;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--muted);
}

.contact-form input,
.contact-form textarea {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 0.95rem;
}

.contact-form button {
  padding: 10px 12px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #6f6ee8 0%, #5f5fd6 50%, #4a69d8 100%);
  color: #ffffff;
  cursor: pointer;
  font-size: 0.95rem;
  box-shadow: 0 6px 14px rgba(90, 96, 220, 0.25);
}

.contact-details {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  display: grid;
  gap: 10px;
}

.about-grid {
  display: grid;
  gap: 24px;
  margin-top: 24px;
  align-items: start;
  grid-template-columns: 1fr 1.1fr;
}

.about-map {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  padding: 20px;
  display: flex;
  justify-content: flex-start;
}

.about-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  padding: 24px;
  line-height: 1.6;
}

.map-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 10px;
}

.map-pin {
  fill: #e53935;
}

@media (max-width: 992px) {
  .lead-grid {
    grid-template-columns: 65% 35%;
    gap: 24px;
    padding: 8px 0 40px;
  }

  .lead-band {
    padding: 20px;
    gap: 14px;
  }

  .promo-card {
    padding: 18px;
    gap: 12px;
  }

  .promo-body {
    padding: 14px;
  }

  .news-grid {
    padding: 40px 0 56px;
    gap: 20px;
  }

  .news-card {
    padding: 18px;
  }

  .pricing-grid,
  .contact-grid,
  .contact-brief {
    gap: 20px;
  }

  .plan-card,
  .contact-card,
  .contact-form,
  .about-card {
    padding: 18px;
  }
}

@media (max-width: 992px) {
  .nav {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .masthead {
    grid-template-columns: 1fr;
    justify-content: flex-start;
    gap: 8px;
  }

  .masthead-date {
    order: 3;
  }

  .masthead-title {
    order: 1;
  }

  .masthead-actions {
    order: 2;
  }

  .masthead-actions {
    position: static;
  }

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

  .news-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .news-card {
    min-width: 0;
    border-left: none;
    padding: 0;
  }

  .news-card h2,
  .news-card .summary,
  .news-card .eyebrow {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .promo-card {
    position: static;
    top: auto;
  }

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

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

  .subscription-plans {
    grid-template-columns: 1fr;
  }

  .plan-select-plans {
    grid-template-columns: 1fr;
  }

  .plan-rect {
    min-height: 0;
  }
}

@media (max-width: 992px) and (orientation: landscape) {
  .site-header {
    padding-top: 8px;
  }
}

@media (max-width: 768px) {
  .lead-grid {
    grid-template-columns: 1fr;
  }

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

  .lead-divider {
    width: 100%;
    height: 1px;
    border-left: 0;
    border-top: 2px dotted var(--border);
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 16px;
  }

  .nav {
    gap: 12px;
    font-size: 0.8rem;
  }

  .masthead-title {
    font-size: 1.6rem;
  }
}

@media (max-width: 576px) and (orientation: portrait) {
  .site-header {
    padding-top: 8px;
  }

  .masthead {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "title actions"
      "date date";
    align-items: center;
    gap: 6px 8px;
  }

  .masthead-title {
    grid-area: title;
    justify-self: start;
    font-size: 1.35rem;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .masthead-actions {
    grid-area: actions;
    justify-self: end;
  }

  .masthead-date {
    grid-area: date;
    justify-self: center;
    text-align: center;
    margin: 2px 0 4px;
  }

  .nav {
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.7rem;
    letter-spacing: 0.04em;
  }

  .lead-grid {
    gap: 18px;
    padding: 6px 0 32px;
  }

  .lead-band {
    padding: 16px;
    gap: 12px;
    min-height: 0;
  }

  .lead-slot h2 {
    font-size: 1rem;
  }

  .promo-card {
    padding: 14px;
    gap: 10px;
  }

  .promo-body {
    padding: 12px;
  }

  .promo-title {
    font-size: 1.1rem;
  }

  .promo-copy {
    font-size: 0.85rem;
  }

  .promo-cta {
    padding: 8px 14px;
    font-size: 0.8rem;
  }

  .news-grid {
    padding: 32px 0 40px;
    gap: 16px;
  }

  .news-card {
    padding: 16px;
  }

  .news-card:first-child {
    padding-left: 16px;
  }

  .plan-matrix-header,
  .plan-matrix-row {
    grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 1fr));
    column-gap: 8px;
  }

  .plan-matrix-header {
    padding: 10px 12px;
    font-size: 0.68rem;
  }

  .plan-matrix-row {
    padding: 10px 12px;
  }

  .plan-matrix-feature,
  .plan-matrix-value {
    font-size: 0.85rem;
  }

  .compare-row {
    grid-template-columns: minmax(0, 1fr) repeat(2, minmax(0, 1fr));
    column-gap: 10px;
    padding: 0 4px;
  }

  .compare-card-head {
    padding: 12px 10px 10px;
  }

  .compare-plan {
    font-size: 0.9rem;
  }

  .compare-price {
    font-size: 0.95rem;
  }

  .compare-feature,
  .compare-value {
    font-size: 0.82rem;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .plan-matrix-feature,
  .plan-matrix-value {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .subscription-modal .modal-body-grid {
    grid-template-columns: 1fr;
  }

  .subscribe-form {
    padding: 16px;
  }

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

  .payment-stub,
  .confirmation {
    padding: 14px 16px;
  }

  .plan-card,
  .contact-card,
  .contact-form,
  .about-card {
    padding: 16px;
  }

  .pricing-grid,
  .contact-grid,
  .contact-brief {
    gap: 16px;
  }
}

@media (max-width: 420px) and (orientation: portrait) {
  .nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 8px;
    font-size: 0.65rem;
    letter-spacing: 0.02em;
  }

  .nav-link {
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

/* ============================================================
   MOBILE ENHANCEMENTS  (appended)
   ============================================================ */

/* 1. Fix specificity: collapse lead-carousel to single column at ≤700px.
      .lead-band.lead-carousel (2 classes) beats the generic .lead-band rule
      in the existing 700px block, so we fix it here with explicit override. */
@media (max-width: 768px) {
  .lead-band.lead-carousel {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .lead-brand {
    border-radius: 0;
    min-height: 80px;
  }
}

/* 2. Carousel: allow page scroll vertically; JS handles horizontal swipe */
.carousel-viewport {
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  cursor: default;
}

/* 3. Account dropdown overflow guard on small screens */
@media (max-width: 576px) {
  .account-dropdown {
    max-width: calc(100vw - 32px);
    right: 0;
    left: auto;
  }
}

/* 4. Nav link touch targets: slightly more padding on tablets */
@media (max-width: 992px) {
  .nav-link {
    padding-top: 5px;
    padding-bottom: 5px;
  }
}

/* 5. Hamburger navigation (≤ 576px)
      .nav-toggle lives as first child of <nav class="nav" id="site-nav">.
      On wide screens it is hidden. On narrow screens links are collapsed
      behind the toggle and revealed when nav has class .nav-open.
   -------------------------------------------------------- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  align-self: center;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 576px) {
  .nav-toggle {
    display: flex;
    order: 99;        /* float to right edge of the flex bar */
    margin-left: auto;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0;
    padding: 4px 0;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
  }

  /* Collapse links and home icon by default */
  .nav .nav-home-icon,
  .nav .nav-link {
    display: none;
  }

  /* Open state — reveal as full-width rows beneath the toggle bar */
  .nav.nav-open .nav-link {
    display: block;
    width: 100%;
    padding: 12px 4px;
    border-top: 1px solid var(--border);
    white-space: normal;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
  }

  .nav.nav-open .nav-home-icon {
    display: inline-flex;
    order: 1;
    padding: 10px 4px;
    border-top: 1px solid var(--border);
    width: 100%;
  }
}

@media (max-width: 420px) {
  .container {
    padding: 0 12px;
  }

  .masthead {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "title actions"
      "date date";
    gap: 6px;
  }

  .masthead-title {
    justify-self: start;
  }

  .masthead-actions {
    justify-self: end;
  }

  .masthead-date {
    justify-self: start;
    text-align: left;
  }

  .header-actions {
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 8px;
  }

  .subscription-plans .plan-header-grid,
  .subscription-plans .plan-header-grid--library {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    row-gap: 8px;
  }

  .subscription-plans .plan-price-main,
  .subscription-plans .plan-meta,
  .subscription-plans .plan-billing,
  .subscription-plans .plan-header-grid--library .plan-meta {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .plan-choice-options {
    grid-template-columns: 1fr;
  }

  .plan-select-plans .plan-choice-cta {
    width: 100%;
    min-width: 0;
    white-space: normal;
  }

  .plan-price-row,
  .plan-savings {
    gap: 10px;
    flex-wrap: wrap;
  }

  .compare-row {
    column-gap: 8px;
    padding: 0;
  }

  .compare-feature,
  .compare-value,
  .plan-matrix-feature,
  .plan-matrix-value {
    font-size: 0.78rem;
  }

  .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 390px) {
  .container {
    padding: 0 10px;
  }

  .masthead-title {
    font-size: 1.2rem;
  }

  .masthead-date {
    font-size: 0.78rem;
  }

  .lead-grid {
    gap: 14px;
    padding: 4px 0 24px;
  }

  .lead-band,
  .promo-card,
  .news-card,
  .plan-card,
  .contact-card,
  .contact-form,
  .about-card {
    padding: 12px;
  }

  .news-card:first-child {
    padding-left: 12px;
  }

  .news-grid {
    gap: 12px;
    padding: 24px 0 30px;
  }

  .nav.nav-open .nav-link {
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    padding: 10px 4px;
  }

  .subscription-plans .plan-name {
    font-size: 1.15rem;
  }

  .subscription-plans .plan-price-main,
  .subscription-plans .plan-meta {
    font-size: 1.05rem;
  }

  .plan-matrix-header,
  .plan-matrix-row,
  .compare-row {
    column-gap: 6px;
  }

  .plan-matrix-header,
  .plan-matrix-feature,
  .plan-matrix-value,
  .compare-feature,
  .compare-value {
    font-size: 0.74rem;
  }
}

@media (max-width: 375px) {
  .masthead-title {
    font-size: 1.12rem;
  }

  .header-actions {
    gap: 8px;
  }

  .lead-slot h2 {
    font-size: 0.95rem;
  }

  .promo-title {
    font-size: 1rem;
  }

  .promo-copy,
  .news-card p,
  .contact-form label,
  .about-card p {
    font-size: 0.82rem;
  }

  .subscription-plans .plan-billing {
    font-size: 0.8rem;
  }
}

/* Keep CLT brand + carousel side-by-side on phones by scaling content down */
@media (max-width: 576px) {
  .lead-band.lead-carousel {
    grid-template-columns: minmax(88px, 28vw) minmax(0, 1fr);
    gap: 0;
    min-height: 160px;
  }

  .lead-brand {
    padding: 10px 8px;
    border-radius: 12px 0 0 12px;
    min-height: 0;
  }

  .lead-brand::after {
    display: none;
  }

  .lead-brand-clt {
    font-size: clamp(1.05rem, 4.2vw, 1.4rem);
    letter-spacing: 0.04em;
  }

  .lead-brand-digital {
    font-size: clamp(0.95rem, 3.8vw, 1.25rem);
  }

  .lead-carousel-panel,
  .carousel-viewport,
  .carousel-track {
    min-width: 0;
  }

  .carousel-arrow {
    width: 30px;
    height: 30px;
    font-size: 1rem;
  }

  .carousel-arrow.prev {
    left: 6px;
  }

  .carousel-arrow.next {
    right: 6px;
  }
}

@media (max-width: 420px) {
  .lead-band.lead-carousel {
    grid-template-columns: minmax(76px, 26vw) minmax(0, 1fr);
  }
}
