/* ==============================
   1. BASE RESET & GLOBAL DEFAULTS
   ============================== */
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font:
    16px/1.6 "DM Sans",
    Arial,
    sans-serif;
}
body.modal-open {
  overflow: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
}
img {
  display: block;
  max-width: 100%;
}
[hidden] {
  display: none !important;
}
.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}
.skip-link {
  position: fixed;
  z-index: 3000;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  color: #fff;
  background: var(--brand);
  border-radius: 8px;
  transform: translateY(-160%);
}
.skip-link:focus {
  transform: translateY(0);
}
:focus-visible {
  outline: 3px solid rgba(98, 92, 240, 0.48);
  outline-offset: 3px;
}

/* ==============================
   2. NAVIGATION & HEADER
   ============================== */
/* Sticky header, desktop navigation, and primary account actions. */
.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  background: rgba(255, 255, 255, 0.84);
  border-bottom: 1px solid rgba(231, 231, 241, 0.85);
  backdrop-filter: blur(18px);
}
.navigation {
  display: flex;
  align-items: center;
  min-height: 76px;
  gap: 30px;
}
.brand {
  font:
    800 23px/1 Manrope,
    sans-serif;
  letter-spacing: -1.2px;
}
.brand span,
.eyebrow,
.feature-card a,
.faq-list a {
  color: var(--brand);
}
.nav-menu,
.nav-menu ul,
.nav-actions {
  display: flex;
  align-items: center;
}
.nav-menu {
  flex: 1;
  justify-content: space-between;
}
.nav-menu ul {
  gap: 28px;
  padding: 0;
  margin: 0 0 0 auto;
  list-style: none;
}
.nav-menu a,
.text-action {
  color: #4b5269;
  font-size: 14px;
  font-weight: 700;
}
.nav-menu a:hover,
.text-action:hover {
  color: var(--brand);
}
.nav-actions {
  gap: 18px;
}
.text-action {
  padding: 7px 2px;
  background: transparent;
  border: 0;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 0 22px;
  color: #fff;
  background: var(--brand);
  border: 1px solid var(--brand);
  border-radius: 12px;
  box-shadow: 0 12px 25px rgba(98, 92, 240, 0.22);
  font-weight: 700;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}
.button:hover {
  background: var(--brand-deep);
  box-shadow: 0 17px 32px rgba(98, 92, 240, 0.28);
  transform: translateY(-2px);
}
.button--small {
  min-height: 42px;
  padding: 0 17px;
  border-radius: 10px;
  font-size: 14px;
}
.button--ghost {
  color: var(--brand);
  background: #fff;
  border-color: #dcddf2;
  box-shadow: none;
}
.button--ghost:hover {
  color: var(--brand);
  background: #f1f1ff;
  box-shadow: none;
}
.button--light {
  color: var(--brand);
  background: #fff;
  border-color: #fff;
}
.button--block {
  width: 100%;
}
.mobile-cta-bar {
  position: fixed;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 150;
  display: none !important;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(231, 231, 241, 0.9);
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(25, 28, 63, 0.12);
  backdrop-filter: blur(12px);
}
.mobile-cta-bar .button {
  min-height: 46px;
  font-size: 15px;
}
.menu-button {
  display: none;
  padding: 8px;
  background: transparent;
  border: 0;
}
.menu-button span {
  display: block;
  width: 23px;
  height: 2px;
  margin: 4px;
  background: var(--ink);
  border-radius: 2px;
  transition:
    transform 0.2s,
    opacity 0.2s;
}

/* ==============================
   3. HERO & SOCIAL PROOF
   ============================== */
/* Hero copy, product preview, and decorative background effects. */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 104px 0 88px;
  background: linear-gradient(120deg, #fff 8%, #f5f5ff 63%, #eeeeff);
}
.hero-orb {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(20px);
  pointer-events: none;
}
.hero-orb--one {
  top: -230px;
  right: -170px;
  width: 570px;
  height: 570px;
  border: 1px solid rgba(98, 92, 240, 0.12);
  background: rgba(179, 176, 255, 0.15);
}
.hero-orb--two {
  right: 34%;
  bottom: -280px;
  width: 420px;
  height: 420px;
  background: rgba(184, 242, 228, 0.18);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.01fr 0.99fr;
  align-items: center;
  gap: 65px;
}
.eyebrow {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0 0 17px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}
.hero h1,
.section-heading h2,
.final-cta h2 {
  margin: 0;
  font:
    800 clamp(32px, 4vw, 48px)/1.1 Manrope,
    sans-serif;
  letter-spacing: -2.3px;
}
.hero h1 {
  max-width: 620px;
  font-size: clamp(43px, 5vw, 66px);
}
.hero h1 span {
  color: var(--brand);
}
.hero-description {
  max-width: 535px;
  margin: 25px 0 31px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-trust-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}
.proof-points {
  display: flex;
  gap: 33px;
  margin-top: 26px;
}
.proof-points div {
  display: grid;
}
.proof-points strong {
  font:
    800 21px Manrope,
    sans-serif;
  letter-spacing: -0.7px;
}
.proof-points span {
  color: var(--muted);
  font-size: 13px;
}
.product-preview {
  position: relative;
  aspect-ratio: 1 / 1;
}
.product-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 7px solid rgba(255, 255, 255, 0.82);
  border-radius: 20px;
  box-shadow: 0 28px 66px rgba(40, 40, 102, 0.21);
}
.growth-card {
  position: absolute;
  z-index: 2;
  bottom: 35px;
  left: -34px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #fff;
  border-radius: 13px;
  box-shadow: 0 15px 30px rgba(29, 30, 75, 0.14);
}
.growth-card > span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #087a52;
  background: #d8f7e9;
  border-radius: 9px;
  font-weight: 800;
}
.growth-card small,
.growth-card strong {
  display: block;
}
.growth-card small {
  color: var(--muted);
  font-size: 11px;
}
.growth-card strong {
  font-size: 17px;
}
/* Customer-logo strip directly below the hero. */
.logo-strip {
  border-bottom: 1px solid var(--line);
}
.logo-strip .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 105px;
  color: #8c91a5;
  font:
    700 20px Manrope,
    sans-serif;
  letter-spacing: -1px;
}
.logo-strip small {
  color: #9ba0b1;
  font:
    700 11px "DM Sans",
    sans-serif;
  letter-spacing: 1px;
}

/* ==============================
   4. SHARED SECTIONS, FEATURES & CARDS
   ============================== */
/* Reusable content-section spacing and heading treatment. */
.section {
  padding: 108px 0;
}
.section--soft {
  background: var(--soft);
}
.section-heading {
  max-width: 700px;
  margin: 0 auto 55px;
  text-align: center;
}
.section-heading .eyebrow {
  justify-content: center;
}
.section-heading > p:last-child {
  max-width: 590px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 17px;
}
.section-heading--left {
  margin-left: 0;
  text-align: left;
}
.section-heading--left .eyebrow {
  justify-content: flex-start;
}
.section-heading a {
  color: var(--brand);
  font-weight: 700;
}
/* Shared grid foundations for feature, pricing, and testimonial cards. */
.feature-grid,
.pricing-grid,
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 21px;
}
.pricing-grid {
  align-items: stretch;
  gap: 24px;
}
.feature-card,
.price-card,
.testimonial-grid figure {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.feature-card {
  padding: 34px;
  transition:
    transform 0.22s,
    box-shadow 0.22s,
    border-color 0.22s;
}
.feature-card:hover {
  border-color: #cfcff5;
  box-shadow: var(--shadow);
  transform: translateY(-5px);
}
.feature-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 28px;
  color: #4d4fd9;
  background: #e8e7ff;
  border-radius: 14px;
  font-size: 23px;
}
.feature-icon--mint {
  color: #11875e;
  background: #dcf8ed;
}
.feature-icon--gold {
  color: #b87400;
  background: #fff1d0;
}
.feature-card h3,
.process h3,
.price-card h3 {
  margin: 0 0 11px;
  font:
    700 20px Manrope,
    sans-serif;
  letter-spacing: -0.6px;
}
.feature-card p {
  min-height: 78px;
  margin: 0 0 19px;
  color: var(--muted);
}
.feature-card a {
  font-size: 14px;
  font-weight: 700;
}
/* Product adoption metrics band. */
.metrics {
  color: #fff;
  background: linear-gradient(115deg, #4845ba, #706ff1);
}
.metrics .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 49px 0;
  text-align: center;
}
.metrics strong {
  font:
    800 42px Manrope,
    sans-serif;
  letter-spacing: -2px;
}
.metrics p {
  margin: 3px 0 0;
  color: #dcddff;
  font-size: 14px;
}

/* ==============================
   5. PROCESS, PRICING & TESTIMONIALS
   ============================== */
/* Three-step product onboarding timeline. */
.process {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 52px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.process::before {
  content: "";
  position: absolute;
  top: 27px;
  right: 16.5%;
  left: 16.5%;
  height: 1px;
  background: #dcdcf1;
}
.process li {
  position: relative;
  z-index: 1;
}
.process li > span {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 26px;
  color: var(--brand);
  background: #eeedff;
  border: 8px solid #fff;
  border-radius: 50%;
  outline: 1px solid #dddcef;
  font:
    800 14px Manrope,
    sans-serif;
}
.process p {
  max-width: 295px;
  margin: 0;
  color: var(--muted);
}
/* Subscription plan cards and billing controls. */
.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 28px 30px 30px;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}
.price-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(26, 27, 72, 0.08);
}
.plan-label {
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  margin-bottom: 12px;
  color: var(--brand-deep);
  background: #efeeff;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.plan-label--featured {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
}
.price-card > p {
  min-height: 45px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
}
.price-card--featured {
  color: #fff;
  background: linear-gradient(180deg, #4e4ae4 0%, #3b37b5 100%);
  border: 1px solid rgba(98, 92, 240, 0.34);
  box-shadow: 0 18px 42px rgba(98, 92, 240, 0.2);
}
.price-card--featured h3,
.price-card--featured p,
.price-card--featured .price,
.price-card--featured .price small,
.price-card--featured li,
.price-card--featured .button {
  color: #fff;
}
.price-card--featured .price small,
.price-card--featured p,
.price-card--featured li {
  opacity: 0.92;
}
.price-card--featured ul {
  border-top-color: rgba(255, 255, 255, 0.18);
  border-bottom-color: rgba(255, 255, 255, 0.18);
}
.price-card--featured .button {
  background: #fff;
  color: var(--brand-deep);
  border-color: #fff;
  box-shadow: none;
}
.price-card--featured .button:hover {
  background: #f3f3ff;
}
.price-card--featured li::before {
  color: #beffdc;
}
.popular {
  position: absolute;
  top: -14px;
  left: 50%;
  padding: 5px 12px;
  color: #fff;
  background: #11162d;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 99px;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.price {
  margin: 0;
  font:
    800 46px Manrope,
    sans-serif;
  letter-spacing: -2px;
}
.price sup {
  font-size: 22px;
  vertical-align: 16px;
}
.price small {
  color: var(--muted);
  font:
    500 13px "DM Sans",
    sans-serif;
  letter-spacing: 0;
}
.price-card ul {
  display: grid;
  flex: 1;
  gap: 10px;
  padding: 22px 0 26px;
  margin: 20px 0 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  list-style: none;
  color: #485067;
  font-size: 14px;
}
.price-card li::before {
  content: "\2713";
  margin-right: 9px;
  color: #1caa72;
  font-weight: 800;
}
.price-card .button {
  margin-top: auto;
}
/* Customer testimonials and reviewer details. */
.testimonial-grid figure {
  padding: 30px;
  margin: 0;
}
.stars {
  margin-bottom: 19px;
  color: #f4a922;
  font-size: 15px;
  letter-spacing: 2px;
}
.testimonial-grid blockquote {
  min-height: 110px;
  margin: 0 0 25px;
  color: #434a61;
  line-height: 1.75;
}
.testimonial-grid figcaption {
  display: flex;
  align-items: center;
  gap: 11px;
}
.testimonial-grid figcaption > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #fff;
  background: #5f58b8;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
}
.testimonial-grid .avatar--rose {
  background: #d77a7a;
}
.testimonial-grid .avatar--teal {
  background: #348b86;
}
.testimonial-grid figcaption strong,
.testimonial-grid figcaption small {
  display: block;
}
.testimonial-grid figcaption small {
  color: var(--muted);
  font-size: 12px;
}

/* ==============================
   6. FAQ, FOOTER & FINAL CTA
   ============================== */
/* FAQ accordion and its supporting copy. */
.faq-layout {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  align-items: start;
  gap: 80px;
}
.faq-list {
  display: grid;
  gap: 12px;
}
.faq-list details {
  padding: 0 21px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
}
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  cursor: pointer;
  font:
    700 15px Manrope,
    sans-serif;
  list-style: none;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary span {
  color: var(--brand);
  font-size: 21px;
  font-weight: 400;
}
.faq-list details[open] summary span {
  transform: rotate(45deg);
}
.faq-list details p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14px;
}
/* Full-width call to action before the footer. */
.final-cta {
  position: relative;
  overflow: hidden;
  padding: 108px 0;
  color: #fff;
  background:
    radial-gradient(circle at 12% 0%, #7979fa 0, transparent 36%),
    linear-gradient(125deg, #37339b, #605ee5);
  text-align: center;
}
.final-cta .container {
  max-width: 740px;
}
.final-cta .eyebrow {
  justify-content: center;
  color: #d8d8ff;
}
.final-cta > div > p:not(.eyebrow) {
  max-width: 560px;
  margin: 20px auto 30px;
  color: #e8e8ff;
  font-size: 17px;
}
/* Footer navigation, creator links, and copyright row. */
footer {
  padding-top: 68px;
  color: #c8cad8;
  background: #141629;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1.4fr;
  gap: 42px;
}
.footer-grid .brand {
  color: #fff;
}
.footer-grid p {
  margin: 15px 0 0;
  font-size: 14px;
  line-height: 1.7;
}
.footer-grid h2 {
  margin: 3px 0 14px;
  color: #fff;
  font:
    700 14px Manrope,
    sans-serif;
}
.footer-grid > div > a:not(.brand) {
  display: block;
  width: max-content;
  margin: 9px 0;
  font-size: 14px;
}
.footer-grid a:hover {
  color: #fff;
}
.github-link {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  margin-top: 14px !important;
  padding: 9px 11px;
  border: 1px solid #3c4058;
  border-radius: 8px;
}
.github-link:hover {
  border-color: #797cff;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding: 27px 0;
  margin-top: 57px;
  border-top: 1px solid #2a2d42;
  color: #9297ad;
  font-size: 13px;
}
.footer-bottom p {
  margin: 0;
}

/* ==============================
   7. AUTHENTICATION & MODALS
   ============================== */
/* Authentication dialog, form feedback, and modal backdrop. */
.auth-modal {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  visibility: hidden;
  opacity: 0;
  transition:
    visibility 0.2s,
    opacity 0.2s;
}
.auth-modal.is-open {
  visibility: visible;
  opacity: 1;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 28, 0.64);
  backdrop-filter: blur(5px);
}
.auth-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 440px);
  padding: 35px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.26);
  transform: translateY(12px) scale(0.985);
  transition: transform 0.2s;
}
.auth-modal.is-open .auth-dialog {
  transform: none;
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 35px;
  height: 35px;
  color: #50566c;
  background: transparent;
  border: 0;
  border-radius: 8px;
  font-size: 28px;
  line-height: 1;
}
.modal-close:hover {
  background: var(--soft);
}
.auth-dialog h2 {
  margin: 0;
  font:
    800 27px Manrope,
    sans-serif;
  letter-spacing: -1px;
}
.auth-intro {
  margin: 8px 0 23px;
  color: var(--muted);
  font-size: 14px;
}
.auth-dialog form {
  display: grid;
}
.auth-dialog label {
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 700;
}
.auth-dialog input {
  width: 100%;
  min-height: 47px;
  padding: 0 13px;
  margin-bottom: 17px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #d9dbe6;
  border-radius: 9px;
  outline: 0;
}
.auth-dialog input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(98, 92, 240, 0.13);
}
.password-field {
  position: relative;
}
.password-field input {
  padding-right: 58px;
}
.password-toggle {
  position: absolute;
  top: 8px;
  right: 7px;
  padding: 7px;
  color: var(--brand);
  background: transparent;
  border: 0;
  font-size: 12px;
  font-weight: 700;
}
.form-message {
  min-height: 20px;
  margin-bottom: 7px;
  color: #bf3545;
  font-size: 13px;
}
.auth-links {
  margin: 20px 0 0;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}
.auth-links button {
  padding: 0;
  color: var(--brand);
  background: transparent;
  border: 0;
  font-weight: 700;
}
.toast {
  position: fixed;
  z-index: 2000;
  right: 20px;
  bottom: 20px;
  max-width: 340px;
  padding: 13px 17px;
  color: #fff;
  background: #20243b;
  border-radius: 10px;
  box-shadow: var(--shadow);
  transform: translateY(20px);
  visibility: hidden;
  opacity: 0;
  transition: 0.2s;
}
.toast.is-visible {
  transform: none;
  visibility: visible;
  opacity: 1;
}

/* ==============================
   8. CHAT WIDGET, CHECKOUT & SESSION CONTROLS
   ===================================== */
/* Signed-in account label, chat widget, and checkout interface. */
.account-status {
  max-width: 148px;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.linkedin-link {
  margin-top: 9px !important;
}
.chat-widget {
  position: fixed;
  z-index: 999;
  right: 24px;
  bottom: 24px;
}
.chat-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 16px;
  color: #fff;
  background: linear-gradient(135deg, #625bff, #4841d4);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  box-shadow: 0 13px 30px rgba(75, 68, 211, 0.3);
  font-size: 14px;
  font-weight: 700;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.chat-toggle:hover {
  box-shadow: 0 17px 34px rgba(75, 68, 211, 0.38);
  transform: translateY(-2px);
}
.chat-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}
.chat-panel {
  position: absolute;
  right: 0;
  bottom: 62px;
  display: grid;
  width: min(380px, calc(100vw - 32px));
  overflow: hidden;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(19, 20, 51, 0.22);
}
.chat-panel[hidden] {
  display: none;
}
.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 17px;
  color: #fff;
  background: linear-gradient(125deg, #37339b, #635bff);
}
.chat-header > div {
  display: grid;
  grid-template-columns: 10px 1fr;
  column-gap: 8px;
  align-items: center;
}
.chat-header strong {
  font-size: 14px;
}
.chat-header small {
  grid-column: 2;
  color: #e4e3ff;
  font-size: 11px;
}
.chat-status {
  width: 8px;
  height: 8px;
  background: #61e3ae;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(97, 227, 174, 0.2);
}
.chat-header button {
  width: 30px;
  height: 30px;
  padding: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 0;
  border-radius: 8px;
  font-size: 23px;
  line-height: 1;
}
.chat-messages {
  display: grid;
  align-content: start;
  gap: 13px;
  min-height: 250px;
  max-height: 330px;
  padding: 16px;
  overflow-y: auto;
  background: color-mix(in srgb, var(--soft) 65%, var(--surface));
}
.chat-message {
  display: grid;
  gap: 4px;
  max-width: 88%;
}
.chat-message--user {
  justify-self: end;
}
.chat-bubble {
  padding: 10px 12px;
  border-radius: 12px 12px 12px 3px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.45;
}
.chat-message--user .chat-bubble {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
  border-radius: 12px 12px 3px 12px;
}
.chat-time {
  color: var(--muted);
  font-size: 10px;
}
.chat-message--user .chat-time {
  text-align: right;
}
.typing-indicator {
  display: inline-flex;
  gap: 4px;
  width: max-content;
  padding: 11px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px 12px 12px 3px;
}
.typing-indicator span {
  width: 5px;
  height: 5px;
  background: #9297ad;
  border-radius: 50%;
}
.quick-replies {
  display: flex;
  gap: 7px;
  padding: 10px 14px;
  overflow-x: auto;
  border-top: 1px solid var(--line);
}
.quick-replies button {
  flex: 0 0 auto;
  padding: 6px 9px;
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 7%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--brand) 22%, var(--line));
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}
.chat-form {
  display: grid;
  grid-template-columns: 1fr 39px;
  gap: 8px;
  padding: 10px 14px 7px;
  border-top: 1px solid var(--line);
}
.chat-form input {
  min-width: 0;
  min-height: 39px;
  padding: 0 11px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 9px;
  outline: 0;
  font-size: 13px;
}
.chat-form input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.13);
}
.chat-form button {
  color: #fff;
  background: var(--brand);
  border: 0;
  border-radius: 9px;
  font-size: 18px;
  font-weight: 700;
}
.clear-chat {
  justify-self: center;
  padding: 0 0 12px;
  color: var(--muted);
  background: transparent;
  border: 0;
  font-size: 11px;
  font-weight: 700;
}
.clear-chat:hover {
  color: var(--brand);
}
.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;
}
body.dark-theme .account-status {
  color: #c7c8dd;
}
body.dark-theme .chat-panel {
  background: #242340;
  border-color: #45436a;
}
body.dark-theme .chat-messages {
  background: #1b1a31;
}
body.dark-theme .chat-bubble,
body.dark-theme .typing-indicator {
  background: #29284a;
  border-color: #45436a;
}
body.dark-theme .chat-form input {
  color: #fff;
  background: #1b1a31;
  border-color: #45436a;
}
body.dark-theme .quick-replies {
  border-color: #45436a;
}
body.dark-theme .quick-replies button {
  color: #d9d8ff;
  background: #302f52;
  border-color: #57557d;
}
body.dark-theme .chat-form {
  border-color: #45436a;
}
.checkout-dialog {
  width: min(100%, 500px);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}
.card-preview {
  display: grid;
  min-height: 154px;
  padding: 20px;
  margin: 0 0 18px;
  color: #fff;
  background:
    radial-gradient(
      circle at 12% 15%,
      rgba(255, 255, 255, 0.28),
      transparent 24%
    ),
    linear-gradient(135deg, #24214f, #635bff 62%, #31a989);
  border-radius: 16px;
  box-shadow: 0 16px 34px rgba(42, 42, 107, 0.2);
}
.card-preview > div {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.card-preview > div:last-child {
  align-items: flex-end;
}
.card-preview span,
.card-preview small {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.card-preview strong {
  align-self: center;
  margin-top: 34px;
  font:
    800 20px Manrope,
    sans-serif;
  letter-spacing: 0.04em;
}
.checkout-summary {
  padding: 16px;
  margin: 0 0 20px;
  background: linear-gradient(135deg, #f3f2ff, #fafaff);
  border: 1px solid #deddf9;
  border-radius: 13px;
}
.checkout-summary > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.checkout-summary span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.checkout-summary strong {
  color: var(--brand);
  font:
    800 24px Manrope,
    sans-serif;
  letter-spacing: -1px;
}
.checkout-summary small {
  color: var(--muted);
  font:
    500 11px "DM Sans",
    sans-serif;
  letter-spacing: 0;
}
.checkout-summary ul {
  display: grid;
  gap: 5px;
  padding: 13px 0 0;
  margin: 12px 0 0;
  border-top: 1px solid #deddf9;
  color: var(--muted);
  font-size: 12px;
  list-style: none;
}
.checkout-summary li::before {
  content: "\2713";
  margin-right: 7px;
  color: #1caa72;
  font-weight: 800;
}
.checkout-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}
.checkout-dialog label span {
  color: var(--muted);
  font-weight: 500;
}
body.dark-theme .checkout-summary {
  background: #2d2c50;
  border-color: #4a4972;
}
body.dark-theme .checkout-summary ul {
  border-color: #4a4972;
}

/* ==============================
   9. THEME CONTROLS & DARK-MODE SURFACES
   ============================== */
/* Theme toggle control and dark-mode visual overrides. */
.theme-toggle {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: 0.2s;
}
.theme-toggle:hover {
  color: var(--brand);
  border-color: var(--brand);
  background: #f4f3ff;
}
.theme-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.billing-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin-top: 27px;
  background: #ebebf6;
  border-radius: 11px;
}
.billing-toggle button {
  padding: 8px 12px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
}
.billing-toggle button.is-selected {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 2px 7px rgba(30, 31, 70, 0.1);
}
.billing-toggle span {
  color: #16835a;
  font-size: 11px;
}
.testimonial-grid figcaption img {
  width: 44px;
  height: 44px;
  border: 2px solid #fff;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 3px 9px rgba(30, 31, 70, 0.14);
}
.github-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}
.nav-menu a.is-active {
  color: var(--brand);
}

/* Dark-theme surfaces override their corresponding light components. */
body.dark-theme {
  --ink: #f5f4ff;
  --muted: #b4b4c9;
  --soft: #1d1c35;
  --line: #393851;
  --surface: #151427;
  --shadow: 0 22px 55px rgba(0, 0, 0, 0.28);
  background: var(--surface);
}
body.dark-theme .site-header {
  background: rgba(21, 20, 39, 0.88);
}
body.dark-theme .hero {
  background: linear-gradient(120deg, #151427, #202045 65%, #1c1a3c);
}
body.dark-theme .hero-orb--one {
  background: rgba(120, 113, 255, 0.16);
}
body.dark-theme .hero-orb--two {
  background: rgba(50, 174, 142, 0.11);
}
body.dark-theme .product-preview img {
  border-color: rgba(255, 255, 255, 0.12);
}
body.dark-theme .feature-card,
body.dark-theme .price-card,
body.dark-theme .testimonial-grid figure,
body.dark-theme .faq-list details,
body.dark-theme .auth-dialog {
  background: #242340;
  border-color: var(--line);
}
body.dark-theme .button--ghost {
  color: #d9d8ff;
  background: #29284a;
  border-color: #4a4972;
}
body.dark-theme .button--ghost:hover {
  background: #353461;
}
body.dark-theme .billing-toggle {
  background: #31304f;
}
body.dark-theme .billing-toggle button.is-selected {
  color: #fff;
  background: #48466d;
}
body.dark-theme .feature-card p,
body.dark-theme .price-card li,
body.dark-theme .testimonial-grid blockquote {
  color: #d1d1df;
}
body.dark-theme .price-card ul {
  border-color: var(--line);
}
body.dark-theme .theme-toggle {
  color: #f5f4ff;
  background: #29284a;
  border-color: #4a4972;
}
body.dark-theme .growth-card {
  color: #202038;
}
body.dark-theme .auth-dialog input {
  color: #fff;
  background: #1b1a31;
  border-color: #4a4972;
}
body.dark-theme .modal-close {
  color: #f5f4ff;
}
body.dark-theme .modal-close:hover {
  background: #333154;
}
body.dark-theme .logo-strip {
  border-color: var(--line);
}
body.dark-theme .logo-strip .container {
  color: #a8a8c1;
}
body.dark-theme .price-card--featured {
  border-color: #8b88ff;
}
body.dark-theme .faq-list summary,
body.dark-theme .auth-links,
body.dark-theme .auth-dialog h2 {
  color: #f5f4ff;
}

/* ==============================
   10. VISUAL POLISH, ANIMATIONS & REFINEMENTS
   ============================== */
body {
  letter-spacing: -0.01em;
}
/* Final visual refinements: elevated header, textured hero, and card motion. */
.site-header {
  box-shadow: 0 1px 0 rgba(24, 26, 63, 0.02);
}
.brand {
  letter-spacing: -1.5px;
}
.brand span {
  position: relative;
}
.brand span::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -5px;
  left: 0;
  height: 2px;
  background: currentColor;
  border-radius: 99px;
  opacity: 0.35;
}
.nav-menu a {
  position: relative;
}
.nav-menu a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 2px;
  background: var(--brand);
  border-radius: 99px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}
.nav-menu a:hover::after,
.nav-menu a.is-active::after {
  transform: scaleX(1);
}
.hero {
  min-height: 690px;
  padding-top: 125px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.46) 1px, transparent 1px),
    linear-gradient(90deg, rgba(98, 92, 240, 0.05) 1px, transparent 1px),
    linear-gradient(120deg, #fff 8%, #f5f5ff 63%, #eeeeff);
  background-size:
    48px 48px,
    48px 48px,
    auto;
}
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 16%;
  left: 44%;
  width: 1px;
  height: 160px;
  background: linear-gradient(transparent, rgba(98, 92, 240, 0.2), transparent);
  transform: rotate(32deg);
}
.hero h1 {
  max-width: 680px;
  font-size: clamp(46px, 5.4vw, 74px);
  line-height: 1.04;
}
.hero-description {
  max-width: 570px;
  font-size: 18px;
}
.product-preview {
  aspect-ratio: 1.5 / 1;
  filter: drop-shadow(0 32px 30px rgba(40, 40, 102, 0.12));
}
.product-preview img {
  border-width: 6px;
  border-radius: 24px;
  box-shadow: 0 28px 66px rgba(40, 40, 102, 0.2);
  transition: transform 0.35s ease;
}
.product-preview:hover img {
  transform: translateY(-7px) rotate(0.35deg);
}
.growth-card {
  animation: float-card 4s ease-in-out infinite;
}
@keyframes float-card {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}
.logo-strip {
  background: rgba(255, 255, 255, 0.7);
}
.section-heading h2 {
  max-width: 680px;
  margin-inline: auto;
  font-size: clamp(34px, 4vw, 52px);
}
.section-heading > p:last-child {
  line-height: 1.7;
}
.feature-card,
.price-card,
.testimonial-grid figure,
.faq-list details {
  box-shadow: 0 8px 28px rgba(35, 38, 83, 0.035);
}
.feature-card:hover,
.price-card:hover,
.testimonial-grid figure:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 52px rgba(35, 38, 83, 0.11);
}
.price-card,
.testimonial-grid figure {
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}
.price-card--featured {
  transform: translateY(-8px);
}
.price-card--featured:hover {
  transform: translateY(-13px);
}
.metrics {
  background: linear-gradient(110deg, #37339b, #625bff 55%, #807af4);
}
.final-cta {
  background:
    radial-gradient(
      circle at 80% 5%,
      rgba(155, 151, 255, 0.55),
      transparent 30%
    ),
    radial-gradient(
      circle at 5% 100%,
      rgba(51, 201, 163, 0.2),
      transparent 26%
    ),
    linear-gradient(125deg, #302b91, #635bff);
}
body.dark-theme .hero {
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 135, 255, 0.06) 1px, transparent 1px),
    linear-gradient(120deg, #151427, #202045 65%, #1c1a3c);
  background-size:
    48px 48px,
    48px 48px,
    auto;
}
body.dark-theme .logo-strip {
  background: #151427;
}
body.dark-theme .feature-card,
body.dark-theme .price-card,
body.dark-theme .testimonial-grid figure,
body.dark-theme .faq-list details {
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}
