:root {
  --bg: #f5f2fb;
  --surface: #faf7ff;
  --surface-strong: #fff;
  --text: #1f2933;
  --muted: #5e6a75;
  --primary: #c9adf7;
  --primary-deep: #a184e3;
  --secondary: #0fa3b1;
  --accent: #dec7ff;
  --line: #e8dcc6;
  --shadow-soft: 0 14px 36px rgba(20, 34, 50, 0.1);
  --shadow-card: 0 12px 0 #1f2933;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex; flex-direction: column
}


.site-footer {
    margin-top: auto;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 8% 12%, rgba(222, 199, 255, 0.45), transparent 34%),
    radial-gradient(circle at 88% 24%, rgba(15, 163, 177, 0.28), transparent 32%),
    radial-gradient(circle at 50% 90%, rgba(201, 173, 247, 0.2), transparent 30%),
    linear-gradient(180deg, #fff9ee 0%, #f8f2e9 100%);
}

body.bg-data-grid .page-bg {
  background:
    radial-gradient(circle at 10% 12%, rgba(222, 199, 255, 0.24), transparent 35%),
    radial-gradient(circle at 86% 24%, rgba(22, 105, 136, 0.2), transparent 34%),
    linear-gradient(180deg, #f7f2e8 0%, #efe7d8 100%);
}

body.bg-data-grid .page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(35, 55, 72, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(35, 55, 72, 0.08) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.2) 70%, transparent 100%);
}

.bg-switcher {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(28, 42, 56, 0.15);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 24px rgba(20, 34, 50, 0.12);
  backdrop-filter: blur(6px);
}

.theme-toggle {
  width: auto;
  min-width: 112px;
  height: 30px;
  border: 1px solid rgba(27, 43, 57, 0.2);
  border-radius: 999px;
  background: #fff;
  color: #22313f;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0 0.7rem;
  white-space: nowrap;
}

.bg-switcher button {
  width: 30px;
  height: 30px;
  border: 2px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 150ms ease, border-color 150ms ease;
}

.bg-switcher button:hover {
  transform: translateY(-2px);
}

.bg-switcher button.active {
  border-color: #1b2b39;
}

body.theme-dark {
  --bg: #0f141c;
  --surface: #18212d;
  --surface-strong: #1d2734;
  --text: #e8eef6;
  --muted: #a7b4c4;
  --line: #324050;
  --shadow-soft: 0 16px 36px rgba(3, 8, 13, 0.48);
  --accent: #f4b64a;
}

body.theme-dark .highlight::after {
  background: #7d5dbb;
}

body.theme-dark.bg-data-grid .page-bg {
  background:
    radial-gradient(circle at 10% 12%, rgba(201, 173, 247, 0.24), transparent 35%),
    radial-gradient(circle at 86% 24%, rgba(25, 138, 181, 0.2), transparent 34%),
    linear-gradient(180deg, #151e28 0%, #0f141c 100%);
}

body.theme-dark.bg-data-grid .page-bg::after {
  background-image:
    linear-gradient(rgba(163, 193, 216, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(163, 193, 216, 0.14) 1px, transparent 1px);
}

body.theme-dark .bg-switcher {
  border-color: rgba(218, 228, 238, 0.15);
  background: rgba(14, 21, 30, 0.84);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
}

body.theme-dark .bg-switcher button.active {
  border-color: #dbe5ef;
}

body.theme-dark .theme-toggle {
  background: #243242;
  color: #e8eef6;
  border-color: #3f5368;
}

body.theme-dark .site-header {
  background: rgba(15, 22, 32, 0.86);
  border-bottom-color: rgba(217, 227, 238, 0.12);
}

body.theme-dark .logo,
body.theme-dark h1,
body.theme-dark .price,
body.theme-dark .dashboard-note span {
  color: #e8eef6;
}

body.theme-dark .main-nav a {
  color: #c8d5e3;
}

body.theme-dark .main-nav a:hover {
  background: #223246;
  color: #f2f7fc;
}

body.theme-dark .hamburger-line {
  background: #c8d5e3;
}

body.theme-dark .eyebrow {
  background: #2d3644;
  border-color: #b99ee6;
  color: #e7dbff;
}

body.theme-dark .trust-list,
body.theme-dark .card p,
body.theme-dark .about-panel p,
body.theme-dark .dashboard-note p,
body.theme-dark .plan li {
  color: #b4c1d0;
}

body.theme-dark .closing-cta p {
  color: #b4c1d0;
}

body.theme-dark .closing-cta {
  background-color: #202b39;
}

body.theme-dark .dashboard-note {
  background: #202b39;
  border-color: #36475a;
}

body.theme-dark .card {
  background: #1f2a37;
  border-color: #3b4d63;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}

body.theme-dark .card:hover {
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.34);
}

body.theme-dark .about-tags span {
  background: #283443;
  border-color: #8f76c8;
  color: #e6dcff;
}

body.theme-dark .plan-badge {
  background: #324961;
}

body.theme-dark .btn-secondary,
body.theme-dark .btn-outline {
  background: #243242;
  color: #e8eef6;
  border-color: #455b72;
}

body.theme-dark .btn-outline:hover,
body.theme-dark .btn-secondary:hover {
  box-shadow: 0 6px 0 #1b2632;
}

body.theme-dark .contact-form {
  background: #1f2a37;
  border: 1px solid #3b4d63;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}

body.theme-dark .contact-form label {
  color: #d8e1ec;
}

body.theme-dark .contact-form input,
body.theme-dark .contact-form textarea {
  background: #18212d;
  color: #e8eef6;
  border-color: #455b72;
}

body.theme-dark .contact-form input::placeholder,
body.theme-dark .contact-form textarea::placeholder {
  color: #9fb0c2;
}

.container {
  width: min(100% - 2rem, 1120px);
  margin-inline: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(31, 41, 51, 0.08);
}

.header-grid {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 800;
  font-size: clamp(1.1rem, 1.9vw, 1.45rem);
  color: #142232;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.main-nav a {
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  font-weight: 600;
  color: #22313f;
  transition: background-color 180ms ease, color 180ms ease;
}

.main-nav a:hover {
  background: #efe2ff;
  color: #121a23;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  border: none;
  background: transparent;
  padding: 0.45rem;
  cursor: pointer;
}

.hamburger-line {
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: #22313f;
}

.btn {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 999px;
  border: 2px solid transparent;
  padding: 0.72rem 1.2rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:focus-visible {
  outline: 3px solid rgba(169, 140, 232, 0.35);
  outline-offset: 2px;
}

.btn-secondary,
.btn-outline {
  background: var(--surface-strong);
  color: #1c2a38;
  border-color: #1c2a38;
}

.btn-outline:hover,
.btn-secondary:hover {
  box-shadow: 0 6px 0 #1c2a38;
}

.btn-see-example {
  background: #efe2ff;
}

.btn-see-example:hover {
  background: #e5d3ff;
}

.main-nav .btn-contact-nav:hover {
  background: #dec7ff;
  color: #1c2a38;
}

.hero {
  padding: clamp(3.5rem, 8vw, 6.4rem) 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.2rem, 3vw, 2.8rem);
  align-items: center;
}

.eyebrow {
  margin: 0 0 2rem;
  width: fit-content;
  padding: 0.35rem 0.72rem;
  border-radius: 999px;
  border: 1px solid #dec7ff;
  background: #f4ecff;
  font-family: "Space Mono", monospace;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #7a5cb8;
  letter-spacing: 0.05em;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1.12;
}

h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  color: #152534;
}

.hero-copy h1 {
  margin-top: 1rem;
}

h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.7rem);
}

.highlight {
  position: relative;
  z-index: 1;
}

.highlight::after {
  content: "";
  position: absolute;
  left: -2%;
  bottom: 7%;
  width: 104%;
  height: 42%;
  background: #dec7ff;
  z-index: -1;
  border-radius: 20px;
}

.lead {
  color: var(--muted);
  font-size: clamp(1rem, 1.65vw, 1.2rem);
  margin: 1.2rem 0 1.6rem;
  max-width: 56ch;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.trust-list {
  margin: 1.4rem 0 0;
  padding-left: 1rem;
  color: #3b4752;
}

.trust-list li {
  margin-bottom: 0.4rem;
}

.hero-visual {
  position: relative;
  min-height: 360px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
  padding: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual img {
  width: min(100%, 390px);
  display: block;
}

.dashboard-note {
  position: absolute;
  background: #fff;
  border: 1px solid #d7dce1;
  border-radius: 14px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.09);
  padding: 0.75rem 0.85rem;
}

.dashboard-note span {
  display: block;
  font-weight: 800;
  color: #162534;
}

.dashboard-note p {
  margin: 0.1rem 0 0;
  font-size: 0.86rem;
  color: #4f5c67;
}

.note-a {
  left: -22px;
  top: 12%;
  transform: rotate(-5deg);
}

.note-b {
  right: -20px;
  bottom: 14%;
  transform: rotate(4deg);
}

section {
  padding: clamp(2.5rem, 6vw, 5rem) 0;
}

.section-intro {
  color: var(--muted);
  max-width: 66ch;
  margin: 0.9rem 0 2rem;
}

.features,
.pricing,
.about {
  position: relative;
}

.feature-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.features-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.1fr) minmax(300px, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

.features-copy {
  max-width: 38rem;
}

.features-copy h2 {
  margin-top: -0.8rem;
}

.feature-list {
  display: grid;
  gap: 1rem;
}

.card {
  flex: 1 1 220px;
  background: #fcf8ff;
  border: 1px solid #dec7ff;
  border-radius: 16px;
  box-shadow: 0 16px 34px rgba(122, 92, 184, 0.12);
  padding: 1.15rem;
  transition: transform 180ms ease, box-shadow 180ms ease;
  display: flex;
  flex-direction: column;
}

.card.feature-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: flex-start;
  padding-top: 0.8rem;
}

.feature-card .card-icon {
  width: 3rem;
  height: 3rem;
  min-width: 3rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  margin: 0;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
}

.card.feature-card h3 {
  margin: 0 0 0.35rem;
  text-align: left;
}

.card p {
  margin: 0;
  color: #465460;
  flex: 1;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(122, 92, 184, 0.16);
}

@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
  .card.feature-card {
    grid-template-columns: 1fr;
  }
}

.card-icon {
  width: 106px;
  height: 106px;
  display: block;
  margin-bottom: 0.8rem;
  margin-inline: auto;
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.45rem;
  text-align: center;
}

.about-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: 1fr 1fr;
}

.about-panel,
.about-tags {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  box-shadow: var(--shadow-soft);
  padding: 1.4rem;
}

.about-panel p {
  margin-bottom: 0;
  color: #465460;
}

.about-tags {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 0.7rem;
  row-gap: 1rem;
  align-content: center;
}

.about-tags span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 68px;
  padding: 0.6rem 0.8rem;
  border: 1px dashed #c9adf7;
  border-radius: 0.8rem;
  background: #f4ecff;
  color: #4f3f78;
  font-weight: 700;
  font-size: 0.98rem;
}

.pricing .container {
  text-align: center;
}

.pricing .section-intro {
  margin-inline: auto;
  text-align: center;
}

.pricing-grid {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: stretch;
  text-align: left;
}

.plan {
  flex: 1 1 280px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  box-shadow: var(--shadow-soft);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
}

.plan.featured {
  border: 2px solid #c9adf7;
  position: relative;
}

.pricing-grid .plan:not(.featured) h3 {
  margin-top: 1.65rem;
}

.plan-badge {
  margin: 0 0 0.5rem;
  width: fit-content;
  background: #1a2e3f;
  color: #fff;
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  font-size: 0.82rem;
  font-weight: 700;
}

.price {
  margin: 0.05rem 0 0.8rem;
  font-size: 2rem;
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1.05;
  color: #142232;
}

.price-note {
  margin: 0.8rem 0 0;
  font-size: 0.84rem;
  color: #7b8693;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
}

.plan ul {
  margin: 0 0 1.1rem;
  padding: 0;
  list-style: none;
  flex: 1;
}

.plan .btn {
  margin-top: auto;
}

.plan li {
  margin-bottom: 0.45rem;
  color: #44515c;
}

.plan li::before {
  content: "• ";
  color: var(--secondary);
}

.closing-cta {
  margin-top: 1.4rem;
  padding: 1.2rem;
  border-radius: 1rem;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.closing-cta p {
  margin: 0;
  font-weight: 600;
  color: #34414c;
}

.site-footer {
  background: #162534;
  color: #d8e0e8;
  padding: 1rem 0;
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-grid p {
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 0.9rem;
}

.footer-links a:hover {
  color: #fff;
}

.site-footer .theme-toggle {
  background: transparent;
  color: #d8e0e8;
  border-color: rgba(216, 224, 232, 0.35);
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}

.site-footer .theme-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}

.reveal,
.reveal-delay,
.reveal-delay-2 {
  animation: riseIn 700ms ease both;
}

.reveal-delay {
  animation-delay: 140ms;
}

.reveal-delay-2 {
  animation-delay: 240ms;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-delay,
  .reveal-delay-2,
  .btn,
  .card {
    animation: none;
    transition: none;
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .closing-cta{
    text-align: center;
  }

  .hero-copy {
    text-align: center;
  }

  .eyebrow,
  .hero-actions {
    margin-inline: auto;
    justify-content: center;
    max-width: 70%;
  }

  .lead {
    margin-inline: auto;
    text-align: center;
  }

  .trust-list {
    width: fit-content;
    margin-inline: auto;
    text-align: left;
  }

  .about-panel h2 {
    text-align: center;
  }

  .hero-visual {
    min-height: 320px;
  }

  .note-a {
    left: 10px;
    top: -12px;
  }

  .note-b {
    right: 10px;
    bottom: -14px;
  }
}

@media (max-width: 640px) {
  .card,
  .plan {
    flex: 1 1 100%;
  }

  .closing-cta {
  text-align: center;
}

  .pricing-grid .plan:not(.featured) h3 {
    margin-top: 0;
  }

  
}

@media (max-width: 760px) {
  .menu-toggle {
    display: flex;
  }


  .main-nav {
    display: none;
    position: fixed;
    top: 70px;
    left: 0.8rem;
    right: 0.8rem;
    background: #fff;
    border: 1px solid #dfe5eb;
    border-radius: 1rem;
    box-shadow: var(--shadow-soft);
    padding: 0.65rem;
    flex-direction: column;
    align-items: stretch;
  }

  .main-nav.active {
    display: flex;
  }

  .main-nav a {
    width: 100%;
    text-align: left;
  }

  .header-grid {
    min-height: 70px;
  }

  .closing-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .about-tags {
    grid-template-columns: 1fr;
  }

  .hero-actions .btn {
    padding-inline: 0.9rem;
  }
}

@media (max-width: 520px) {
  html,
  body {
    overflow-x: hidden;
  }

  .container {
    width: min(100% - 1.1rem, 100%);
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-actions .btn {
    width: fit-content;
  }

  .dashboard-note {
    font-size: 0.82rem;
    padding: 0.5rem 0.65rem;
  }

  .note-a {
    left: 4px;
    top: 6px;
    transform: rotate(-3deg);
  }

  .note-b {
    right: 4px;
    bottom: 6px;
    transform: rotate(2deg);
  }

  .hero-visual {
    padding: 0.9rem;
  }

  .card,
  .plan {
    max-width: 100%;
    padding: 1rem;
  }

  .card-icon {
    width: 80px;
    height: 80px;
  }

  .about-panel,
  .about-tags {
    padding: 1rem;
  }

  .about-tags span {
    min-height: 52px;
    font-size: 0.9rem;
    padding: 0.5rem 0.6rem;
  }

  .closing-cta {
    padding: 0.9rem;
  }

  .pricing-grid .plan:not(.featured) h3 {
    margin-top: 0;
  }
}

/* ── Inner pages ── */
.portfolio-main {
  padding: 4rem 0;
}

.card-portfolio {
  padding: 2rem;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
  max-width: 480px;
}

.portfolio-grid img {
  width: 100%;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-soft);
}

/* ── Contact page ── */
.contact-main {
  padding: 4rem 1rem;
}

.contact-wrapper {
  max-width: 1000px;
  margin: 0 auto;
}

.page-title {
  text-align: center;
  margin-bottom: 1rem;
}

.contact-intro {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--muted);
}

.contact-form {
  background: var(--surface-strong);
  padding: 3rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-soft);
}

.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.contact-form-field {
  margin-bottom: 2rem;
}

.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 1.1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 0.5rem;
  font-size: 1.1rem;
  font-family: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form-submit {
  text-align: center;
}

.portfolio-cta {
  margin-top: 1.5rem;
}

@media (max-width: 640px) {
  .contact-form-row {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 1.5rem;
  }
}


/* ── Pricing ── */
.pricing {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.pricing-toggle-wrap {
  display: flex;
  justify-content: center;
  margin: 1.8rem 0 2.2rem;
}

.pricing-toggle {
  display: flex;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
}

.toggle-btn {
  border: none;
  background: transparent;
  border-radius: 999px;
  padding: 0.5rem 1.4rem;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--muted);
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.toggle-btn.active {
  background: #1a2e3f;
  color: #fff;
}

.toggle-badge {
  background: var(--primary);
  color: #1a2e3f;
  border-radius: 999px;
  font-size: 0.72rem;
  padding: 1px 7px;
  font-weight: 700;
}

/* ── Plan split ── */
.plan-split {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.plan-split-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 2rem;
  align-items: start;
}

.plan-split-left .plan-eyebrow {
  margin: 0 0 0.35rem;
}

.plan-split-left h3 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
}

.plan-split-left .plan-tagline {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.plan-split-right {
  display: flex;
  flex-direction: column;
  align-items: flex-center;
  gap: 0.3rem;

}

.plan-split-right .btn {
  margin-top: 1rem;
}

.plan-split-ca {
  padding: 1.4rem 2rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #faf7f2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ca-slider-wrap, .ca-slider-track, .plan-split-ca {
  overflow: visible;
}

body.theme-dark .plan-split-ca {
  background: #1c2736;
}

.plan-split-bottom {
  padding: 1.6rem 2rem;
}

/* ── CA pills ── */
.ca-selector {
  margin-bottom: 1.4rem;
}

.slider-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.ca-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ca-pill {
  border: 1.5px solid var(--line);
  background: transparent;
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.ca-pill:hover {
  border-color: var(--primary-deep);
  color: var(--primary-deep);
}

.ca-pill.active {
  background: var(--primary-deep);
  border-color: var(--primary-deep);
  color: #fff;
}

body.theme-dark .ca-pill {
  color: var(--muted);
  border-color: #3b4d63;
}

body.theme-dark .ca-pill.active {
  color: #fff;
}

/* ── Features ── */
.plan-eyebrow {
  margin: 0 0 0.35rem;
  font-family: "Space Mono", monospace;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary-deep);
}

.plan-tagline {
  margin: 0 0 1.2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.price-note {
  margin: 0.8rem 0 0;
  font-size: 0.84rem;
  color: #7b8693;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
}

.price-sub {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
  text-align: center;
}

.price {
  font-size: 2.4rem;
}

.plan-divider {
  height: 1px;
  background: var(--line);
  margin: 1.2rem 0 1rem;
}

.plan-includes-title {
  margin: 0 0 0.7rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
}

.plan-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.plan-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.9rem;
  color: #44515c;
  line-height: 1.45;
}

body.theme-dark .plan-list li {
  color: #b4c1d0;
}

.plan-list-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem 1.5rem;
}

.check-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary-deep);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

/* ── Closing CTA ── */
.closing-cta {
  margin-top: 1.4rem;
  padding: 1.2rem;
  border-radius: 1rem;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.closing-cta p {
  margin: 0;
  font-weight: 600;
  color: #34414c;
}

body.theme-dark .closing-cta {
  background-color: #202b39;
}

body.theme-dark .closing-cta p {
  color: #b4c1d0;
}

/* ── Responsive ── */
@media (max-width: 760px) {
  .plan-split-top {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }

  .plan-list-grid {
    grid-template-columns: 1fr 1fr;
  }

  .closing-cta {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .plan-split-top,
  .plan-split-ca,
  .plan-split-bottom {
    padding: 1.2rem;
  }

  .plan-list-grid {
    grid-template-columns: 1fr;
  }

  .ca-slider-ticks span {
    font-size: 0.65rem;
  }
  .ca-slider-tooltip {
    font-size: 0.68rem;
    padding: 0.2rem 0.5rem;
  }

  #caSlider::-webkit-slider-thumb {
    width: 18px;
    height: 18px;
  }
  #caSlider::-moz-range-thumb {
    width: 18px;
    height: 18px;
  }

  .ca-slider-tooltip {
    font-size: 0.68rem;
    padding: 25rem 0.5rem;
  }

}

/* ── CA Slider ── */
.ca-slider-wrap {
  width: 90%;
  max-width: 560px;
  position: relative;
  padding-top: 2rem;
  overflow: visible;
}

.ca-slider-tooltip {
  position: absolute;
  top: 0;
  background: var(--primary-deep);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  white-space: nowrap;
  transition: left 160ms ease;
  pointer-events: none;
  white-space: nowrap;
}

.ca-slider-tooltip::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px 4px 0;
  border-style: solid;
  border-color: var(--primary-deep) transparent transparent;
}

.ca-slider-track {
  position: relative;
  height: 6px;
  background: #F7F2E8;
  border-radius: 999px;
}

body.theme-dark .ca-slider-track {
  background: #2a3a4d;
}

.ca-slider-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: var(--primary-deep);
  border-radius: 999px;
  transition: width 160ms ease;
  pointer-events: none;
}

.ca-slider-markers {
  position: absolute;
  top: 50%;
  left: 0px;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.ca-marker {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #F7F2E8;
  border: 2px solid #d4c9b8;
  transition: background 160ms ease, border-color 160ms ease;
  display: block;
  flex-shrink: 0;
}

body.theme-dark .ca-marker {
  background: #2a3a4d;
  border-color: #3b4d63;
}

.ca-marker.active {
  background: var(--primary-deep);
  border-color: var(--primary-deep);
}

#caSlider {
  position: absolute;
  top: 50%;
  left: 0px;
  right: 0;
  width: 100%;
  transform: translateY(-50%);
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  margin: 0;
  padding: 0;
  height: 100%;
  cursor: pointer;
  z-index: 4;
}

#caSlider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary-deep);
  border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  cursor: pointer;
  transition: transform 160ms ease;
}

#caSlider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary-deep);
  border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  cursor: pointer;
}

#caSlider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.ca-slider-ticks {
  display: flex;
  justify-content: space-between;
  margin-top: 0.6rem;
  font-size: 0.76rem;
  color: var(--muted);
  font-family: "Space Mono", monospace;
}

.billing-toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 28px;
}
.billing-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-muted);
  transition: color 0.25s;
}
.billing-label-active {
  color: var(--color-text);
  font-weight: 600;
}
.billing-toggle {
  position: relative;
  width: 52px;
  height: 28px;
  background: black;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: background 0.25s;
}
.billing-toggle.active {
  background: black;
}
.billing-toggle-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), width 0.15s ease;
  pointer-events: none;
}
.billing-toggle:active .billing-toggle-knob {
  width: 28px;
}
.billing-toggle.active .billing-toggle-knob {
  transform: translateX(24px);
}
.billing-toggle.active:active .billing-toggle-knob {
  transform: translateX(18px);
  width: 28px;
}