:root {
  --purple: #2E1A47;
  --purple-light: #4A2E6E;
  --violet: #6B3FA0;
  --gold: #D4AF37;
  --gold-dark: #B8942E;
  --ink: #1F2937;
  --muted: #6B7280;
  --bg: #FFFFFF;
  --bg-soft: #F7F5FA;
  --border: #E5E1EC;
  --shadow: 0 18px 46px rgba(46, 26, 71, 0.12);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Montserrat, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

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

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

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

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.04em;
  color: var(--purple);
}

.logo span { color: var(--gold-dark); }

.brand-mark {
  width: 32px;
  height: auto;
  display: block;
  flex: 0 0 auto;
}

nav.main a {
  margin-left: 28px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

nav.main a:hover { color: var(--purple); }

.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  transition: transform 0.15s, background 0.15s, box-shadow 0.15s;
}

.btn-gold {
  background: var(--gold);
  color: #1a1a1a;
}

.btn-gold:hover { background: var(--gold-dark); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(212,175,55,0.35); }

.btn-outline {
  border: 1.5px solid var(--purple);
  color: var(--purple);
}

.btn-outline:hover { background: var(--purple); color: #fff; transform: translateY(-2px); }

.hero {
  background: linear-gradient(135deg, #2F1545 0%, #5A2A82 46%, #8E448E 100%);
  padding: 72px 0 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  width: 440px;
  height: 440px;
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 50%;
  right: -140px;
  top: -200px;
  box-shadow: 0 0 0 65px rgba(255,255,255,0.035), 0 0 0 130px rgba(255,255,255,0.024);
  pointer-events: none;
}

.hero::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 50%;
  left: -160px;
  bottom: -180px;
  pointer-events: none;
}

.hero .wrap { position: relative; z-index: 1; }

.hero .eyebrow { color: #EAD8FA; }
.hero h1 { color: #fff; }
.hero .lede { color: rgba(255,255,255,0.86); }

.hero .btn-outline {
  border-color: rgba(255,255,255,0.55);
  color: #fff;
}

.hero .btn-outline:hover { background: #fff; color: var(--purple); }

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gold-dark);
  text-transform: uppercase;
  margin-bottom: 14px;
}

h1 {
  font-size: 42px;
  color: var(--purple);
  margin: 0 0 18px;
  font-weight: 700;
}

h2 {
  font-size: 28px;
  color: var(--purple);
  margin: 0 0 16px;
  font-weight: 700;
}

h3 {
  font-size: 18px;
  color: var(--purple);
  margin: 0 0 10px;
  font-weight: 700;
}

.lede {
  font-size: 18px;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 32px;
}

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

section { padding: 56px 0; }
section.soft { background: var(--bg-soft); }

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

.card {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}

.grid a.card {
  display: block;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 58px rgba(46, 26, 71, 0.18);
  border-color: #D9CEE2;
}

.card ul { padding-left: 18px; margin: 10px 0 0; color: var(--muted); font-size: 14px; }
.card ul li { margin-bottom: 6px; }

.tutorial-strip-section {
  padding: 0 0 56px;
}

.tutorial-strip {
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-left: 5px solid var(--gold);
  border-radius: 18px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 28px;
  justify-content: space-between;
  padding: 28px 34px;
}

.tutorial-strip .eyebrow {
  margin-bottom: 8px;
}

.tutorial-strip h2 {
  font-size: 24px;
  margin-bottom: 8px;
}

.tutorial-strip p {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
  max-width: 660px;
}

table.compare {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

table.compare th, table.compare td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

table.compare th { background: var(--bg-soft); color: var(--purple); }

footer.site {
  background: var(--purple);
  color: #E9E4F2;
  padding: 40px 0;
  margin-top: 40px;
}

footer.site a { color: #E9E4F2; opacity: 0.85; }
footer.site a:hover { opacity: 1; }
footer.site .foot-links { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 14px; font-size: 13px; }
footer.site .footer-tagline {
  color: #D8D1E6;
  margin: 12px 0 0;
  white-space: nowrap;
}
footer.site .wrap {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}

.footer-main {
  min-width: 0;
}

.footer-social {
  margin-left: auto;
  text-align: right;
}

.footer-social-label {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.footer-social-links {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.footer-social-links a {
  align-items: center;
  border: 1px solid rgba(212, 175, 55, 0.55);
  border-radius: 999px;
  display: inline-flex;
  height: 40px;
  justify-content: center;
  opacity: 1;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  width: 40px;
}

.footer-social-links a:hover {
  background: rgba(212, 175, 55, 0.14);
  border-color: var(--gold);
  transform: translateY(-1px);
}

.footer-social-links svg {
  fill: var(--gold);
  height: 18px;
  width: 18px;
}

@media (max-width: 760px) {
  .tutorial-strip {
    align-items: flex-start;
    display: block;
    padding: 24px;
  }

  .tutorial-strip .btn {
    margin-top: 18px;
  }

  footer.site .wrap {
    display: block;
  }

  .footer-social {
    margin-top: 24px;
    text-align: left;
  }

  .footer-social-links {
    justify-content: flex-start;
  }

  footer.site .footer-tagline {
    white-space: normal;
  }
}

@media (min-width: 761px) and (max-width: 980px) {
  .latest-modules-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.pill {
  display: inline-block;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--purple);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  margin: 3px 6px 3px 0;
}

.logo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.pill-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 68px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
}

.pill-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.pill-logo.lg {
  width: 96px;
  height: 68px;
  padding: 8px;
}

.pill-logo.lg img {
  transform: scale(1.6);
}

.pill-logo .icon-mask {
  display: block;
  width: 44px;
  height: 44px;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  background-color: currentColor;
}

.pill-logo.mono {
  color: var(--purple);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.5px;
}

.calc {
  background: var(--purple);
  color: #fff;
  border-radius: 18px;
  padding: 30px;
  box-shadow: 0 18px 46px rgba(39,23,54,.18);
}

.calc h3 { color: #fff; font-size: 22px; margin: 0 0 8px; }
.calc p { color: #D9CEDE; font-size: 14px; margin: 0; }

.calc .controls {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 14px;
  margin-top: 22px;
}

.calc .control label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #CFC0DB;
  margin-bottom: 7px;
}

.calc .control select,
.calc .control input {
  width: 100%;
  padding: 12px 13px;
  border-radius: 10px;
  border: 1px solid var(--purple-light);
  background: #3A2456;
  color: #fff;
  font-size: 15px;
  outline: none;
  box-sizing: border-box;
}

.calc .model-buttons { display: flex; gap: 8px; }

.calc .model-buttons button {
  flex: 1;
  border: 1px solid var(--purple-light);
  background: #3A2456;
  color: #fff;
  padding: 12px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}

.calc .model-buttons button.active {
  background: var(--gold);
  color: #1a1a1a;
  border-color: var(--gold);
}

.calc .billing-toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 4px;
}

.calc .billing-toggle button {
  border: 1px solid var(--purple-light);
  background: #3A2456;
  color: #fff;
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}

.calc .billing-toggle button.active {
  background: var(--gold);
  color: #1a1a1a;
  border-color: var(--gold);
}

.calc .results {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.calc .result {
  background: #3A2456;
  border: 1px solid var(--purple-light);
  border-radius: 12px;
  padding: 16px;
}

.calc .result b {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #CFC0DB;
  margin-bottom: 8px;
  font-weight: 700;
}

.calc .result span { font-size: 21px; font-weight: 800; }

.calc .result.hero-result { border-color: var(--gold); }
.calc .result.hero-result span { color: var(--gold); }

.calc .mini { font-size: 12px; color: #CFC0DB; margin-top: 14px; }

@media (max-width: 760px) {
  .calc .controls { grid-template-columns: 1fr; }
  .calc .results { grid-template-columns: 1fr 1fr; }
}

.callout {
  border: 1px solid var(--gold);
  background: #FFFBEF;
  border-radius: 16px;
  padding: 22px 26px;
  box-shadow: var(--shadow);
}

.feature-spotlight-link {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}

.feature-spotlight-link:hover,
.feature-spotlight-link:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 22px 52px rgba(32,13,55,.13);
}

.latest-modules-head {
  align-items: flex-end;
  display: flex;
  gap: 28px;
  justify-content: space-between;
  margin-bottom: 18px;
}

.latest-modules-head .eyebrow {
  margin-bottom: 8px;
}

.latest-modules-head h2 {
  margin-bottom: 0;
}

.latest-modules-head p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
  max-width: 520px;
}

.latest-modules-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.latest-module-card {
  background: #FFFBEF;
  border: 1px solid var(--gold);
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(46, 26, 71, 0.09);
  color: inherit;
  display: flex;
  flex-direction: column;
  min-height: 210px;
  padding: 20px;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}

.latest-module-card:hover,
.latest-module-card:focus-visible {
  border-color: var(--gold-dark);
  box-shadow: 0 20px 46px rgba(46, 26, 71, 0.14);
  transform: translateY(-3px);
}

.latest-module-card h3 {
  font-size: 17px;
  line-height: 1.25;
  margin-bottom: 10px;
}

.latest-module-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}

.latest-module-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 16px;
}

.latest-module-pills span {
  background: #fff;
  border: 1px solid rgba(212, 175, 55, 0.42);
  border-radius: 999px;
  color: var(--purple);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  padding: 7px 9px;
}

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 760px) {
  .two-col { grid-template-columns: 1fr; }
  nav.main { display: none; }
  h1 { font-size: 32px; }

  .latest-modules-head {
    align-items: flex-start;
    display: block;
  }

  .latest-modules-head p {
    margin-top: 10px;
  }

  .latest-modules-grid {
    grid-template-columns: 1fr;
  }
}

.contact-layout {
  align-items: start;
  display: grid;
  gap: 36px;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
}

.contact-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 32px;
}

.contact-intro,
.contact-fallback,
.contact-card p {
  color: var(--muted);
  font-size: 14px;
}

.contact-form {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.contact-form label {
  color: var(--purple);
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 7px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--ink);
  font: inherit;
  padding: 12px 13px;
  width: 100%;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.16);
  outline: none;
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-form button[disabled] {
  cursor: wait;
  opacity: 0.72;
}

.contact-trap {
  left: -9999px;
  position: absolute;
}

.form-status {
  color: var(--muted);
  font-size: 14px;
  margin: -4px 0 0;
}

.form-status.success {
  color: #166534;
  font-weight: 700;
}

.form-status.error {
  color: #9F1239;
  font-weight: 700;
}

.form-row.split {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr 1fr;
}

.contact-fallback a,
.contact-card a {
  color: var(--purple);
  font-weight: 700;
}

.contact-side {
  display: grid;
  gap: 22px;
}

.next-steps {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}

.next-steps li {
  border-top: 1px solid rgba(46, 26, 71, 0.12);
  padding: 15px 0;
}

.next-steps li:first-child {
  border-top: 0;
  padding-top: 0;
}

.next-steps strong,
.next-steps span {
  display: block;
}

.next-steps strong {
  color: var(--purple);
  font-size: 14px;
}

.next-steps span {
  color: var(--muted);
  font-size: 13px;
  margin-top: 3px;
}

.contact-card {
  box-shadow: none;
}

@media (max-width: 860px) {
  .contact-layout,
  .form-row.split {
    grid-template-columns: 1fr;
  }
}

.module-hero {
  text-align: left;
}

.module-hero .lede {
  margin-left: 0;
  max-width: 760px;
}

.module-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.module-back {
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 999px;
  color: #fff;
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 22px;
  padding: 8px 14px;
}

.module-back:hover {
  background: #fff;
  color: var(--purple);
}

.module-layout {
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  align-items: start;
}

.module-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 30px;
}

.module-panel + .module-panel {
  margin-top: 24px;
}

.module-panel p {
  color: var(--muted);
}

.feature-list,
.audience-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}

.feature-list li,
.audience-list li {
  border-top: 1px solid rgba(46, 26, 71, 0.11);
  color: var(--muted);
  padding: 14px 0;
}

.feature-list li:first-child,
.audience-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.feature-list strong,
.audience-list strong {
  color: var(--purple);
}

.screenshot-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 22px;
}

.screenshot-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.screenshot-card img {
  display: block;
  height: auto;
  width: 100%;
}

.screenshot-popout {
  background: transparent;
  border: 0;
  cursor: zoom-in;
  display: block;
  padding: 0;
  text-align: left;
  width: 100%;
}

.screenshot-placeholder {
  align-items: center;
  background: linear-gradient(135deg, #F7F5FA 0%, #EFE8F6 100%);
  color: var(--purple-light);
  display: flex;
  font-size: 13px;
  font-weight: 700;
  justify-content: center;
  min-height: 180px;
  padding: 24px;
  text-align: center;
}

.screenshot-card figcaption {
  color: var(--muted);
  font-size: 13px;
  padding: 12px 14px 14px;
}

.lightbox {
  background: rgba(31, 20, 45, 0.82);
  border: 0;
  height: 100%;
  margin: 0;
  max-height: none;
  max-width: none;
  padding: 34px;
  width: 100%;
}

.lightbox::backdrop {
  background: rgba(31, 20, 45, 0.82);
}

.lightbox-inner {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  justify-content: center;
}

.lightbox img {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 28px 80px rgba(0,0,0,0.4);
  max-height: calc(100vh - 150px);
  max-width: min(1180px, 94vw);
}

.lightbox-caption {
  color: #fff;
  font-size: 14px;
  margin: 0;
  max-width: 900px;
  text-align: center;
}

.lightbox-close {
  align-self: flex-end;
  background: #fff;
  border: 0;
  border-radius: 999px;
  color: var(--purple);
  cursor: pointer;
  font-weight: 800;
  padding: 9px 14px;
}

.module-side {
  display: grid;
  gap: 22px;
}

.module-video {
  background: var(--purple);
  border-radius: 18px;
  box-shadow: var(--shadow);
  color: #fff;
  padding: 26px;
}

.module-video h3 {
  color: #fff;
}

.module-video p {
  color: rgba(255,255,255,0.78);
  font-size: 14px;
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

@media (max-width: 860px) {
  .module-layout {
    grid-template-columns: 1fr;
  }
}
