/* -----------------------------------
   Design Tokens
----------------------------------- */

:root {
  --bg: #020617;
  --bg-layer: rgba(15, 23, 42, 0.9);
  --bg-soft: rgba(15, 23, 42, 0.8);
  --bg-card: rgba(15, 23, 42, 0.96);
  --bg-muted: rgba(15, 23, 42, 0.92);

  --border-soft: rgba(148, 163, 184, 0.28);
  --border-strong: rgba(148, 163, 184, 0.55);

  --accent: #6366f1;
  --accent-soft: rgba(99, 102, 241, 0.18);
  --accent-strong: #4f46e5;
  --accent-warm: #f97316;

  --text-main: #e5e7eb;
  --text-strong: #f9fafb;
  --text-muted: #9ca3af;
  --text-soft: #6b7280;

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  --shadow-soft: 0 20px 60px rgba(15, 23, 42, 0.9);

  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Inter", "Segoe UI", sans-serif;

  --max-width: 1120px;

  --transition-fast: 140ms ease-out;
  --transition-med: 220ms ease-out;
}

/* Light theme overrides */
:root[data-theme="light"] {
  --bg: #f9fafb;
  --bg-layer: rgba(255, 255, 255, 0.96);
  --bg-soft: rgba(249, 250, 251, 0.96);
  --bg-card: rgba(255, 255, 255, 0.98);
  --bg-muted: rgba(243, 244, 246, 1);

  --border-soft: rgba(148, 163, 184, 0.3);
  --border-strong: rgba(148, 163, 184, 0.55);

  --text-main: #111827;
  --text-strong: #020617;
  --text-muted: #4b5563;
  --text-soft: #6b7280;

  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.08);
}

/* -----------------------------------
   Reset / Base
----------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body.page {
  font-family: var(--font-sans);
  background:
    radial-gradient(circle at top, rgba(56, 189, 248, 0.25), transparent 55%),
    radial-gradient(circle at bottom left, rgba(129, 140, 248, 0.25), transparent 55%),
    radial-gradient(circle at bottom right, rgba(236, 72, 153, 0.25), transparent 55%),
    var(--bg);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  transition: background 220ms ease-out, color 220ms ease-out;
}

img {
  max-width: 100%;
  display: block;
}

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

/* -----------------------------------
   Layout Helpers
----------------------------------- */

.page__background {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 0 0, rgba(59, 130, 246, 0.25), transparent 55%)
    no-repeat;
  opacity: 0.3;
  mix-blend-mode: screen;
  z-index: -1;
}

.shell {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (min-width: 960px) {
  .shell {
    padding: 0;
  }
}

/* -----------------------------------
   Navigation
----------------------------------- */

header.shell {
  padding-top: 1.1rem;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 1.25rem;
  margin: 0 -1.25rem;
  backdrop-filter: blur(18px);
  background: linear-gradient(
    to bottom,
    rgba(2, 6, 23, 0.98),
    rgba(2, 6, 23, 0.9),
    transparent
  );
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  transition: background var(--transition-med), border-color var(--transition-med),
    transform var(--transition-fast), box-shadow var(--transition-fast);
}

:root[data-theme="light"] .nav {
  background: linear-gradient(
    to bottom,
    rgba(249, 250, 251, 0.98),
    rgba(249, 250, 251, 0.94),
    transparent
  );
  border-bottom-color: rgba(209, 213, 219, 0.7);
}

@media (min-width: 960px) {
  .nav {
    margin: 0;
    border-radius: 999px;
    padding-inline: 1.25rem;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background:
      radial-gradient(circle at 0 0, rgba(96, 165, 250, 0.2), transparent 55%),
      rgba(2, 6, 23, 0.97);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.65);
  }

  :root[data-theme="light"] .nav {
    background:
      radial-gradient(circle at 0 0, rgba(191, 219, 254, 0.5), transparent 60%),
      rgba(255, 255, 255, 0.98);
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
  }
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 0.15rem;
}

:root[data-theme="light"] .nav__logo {
  background: rgba(248, 250, 252, 0.98);
  border-color: rgba(148, 163, 184, 0.45);
}

.nav__logo img {
  display: block;
  width: 32px;
  height: 32px;
}

.nav__logo--large img {
  width: 40px;
  height: 40px;
}

@media (min-width: 768px) {
  .nav__logo img {
    width: 40px;
    height: 40px;
  }

  .nav__logo--large img {
    width: 46px;
    height: 46px;
  }
}

.nav__brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.nav__brand-name {
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: 0.95rem;
}

.nav__brand-tagline {
  font-size: 0.72rem;
  color: var(--text-soft);
}

.nav__links {
  display: none;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.nav__link {
  position: relative;
  padding-block: 0.2rem;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.18rem;
  width: 0;
  height: 1px;
  background: linear-gradient(to right, var(--accent), var(--accent-warm));
  transition: width var(--transition-fast);
}

.nav__link:hover {
  color: var(--text-main);
}

.nav__link:hover::after {
  width: 100%;
}

.nav__actions {
  display: none;
  align-items: center;
  gap: 0.65rem;
}

/* Mobile nav toggle */

.nav__mobile-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.22rem;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(15, 23, 42, 0.95);
  padding: 0;
  cursor: pointer;
}

:root[data-theme="light"] .nav__mobile-toggle {
  background: rgba(248, 250, 252, 0.96);
}

.nav__mobile-toggle span {
  display: block;
  height: 1.7px;
  width: 14px;
  margin-inline: auto;
  background: #e5e7eb;
  border-radius: 999px;
}

:root[data-theme="light"] .nav__mobile-toggle span {
  background: #0f172a;
}

/* Desktop nav */

@media (min-width: 768px) {
  .nav__links {
    display: flex;
  }

  .nav__actions {
    display: flex;
  }

  .nav__mobile-toggle {
    display: none;
  }
}

/* Mobile open state */

.nav--open {
  flex-wrap: wrap;
  align-items: flex-start;
}

.nav--open .nav__links {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-top: 0.75rem;
}

.nav--open .nav__actions {
  display: flex;
  width: 100%;
  margin-top: 0.5rem;
}

/* -----------------------------------
   Buttons
----------------------------------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 0.86rem;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background var(--transition-med),
    border-color var(--transition-med),
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    color var(--transition-fast),
    opacity 120ms ease-out;
  background: transparent;
  color: var(--text-main);
}

.button--lg {
  padding: 0.75rem 1.15rem;
  font-size: 0.93rem;
}

.button__sub {
  font-size: 0.75rem;
  opacity: 0.75;
}

.button--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #eef2ff;
  box-shadow: 0 16px 35px rgba(79, 70, 229, 0.55);
}

.button--primary:hover {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 20px 50px rgba(79, 70, 229, 0.75);
}

.button--ghost {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(148, 163, 184, 0.5);
  color: var(--text-main);
}

:root[data-theme="light"] .button--ghost {
  background: rgba(243, 244, 246, 0.98);
  border-color: rgba(148, 163, 184, 0.55);
}

.button--ghost:hover {
  background: rgba(15, 23, 42, 1);
  border-color: rgba(209, 213, 219, 0.85);
}

:root[data-theme="light"] .button--ghost:hover {
  background: #111827;
  color: #f9fafb;
}

.button--secondary {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(148, 163, 184, 0.4);
  color: var(--text-main);
}

:root[data-theme="light"] .button--secondary {
  background: rgba(248, 250, 252, 1);
  border-color: rgba(148, 163, 184, 0.7);
}

.button--secondary:hover {
  background: rgba(15, 23, 42, 1);
  border-color: rgba(209, 213, 219, 0.9);
}

:root[data-theme="light"] .button--secondary:hover {
  background: #111827;
  color: #f9fafb;
}

.button--outline {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.6);
}

.button--outline:hover {
  background: rgba(15, 23, 42, 0.98);
  color: #e5e7eb;
}

:root[data-theme="light"] .button--outline:hover {
  background: rgba(243, 244, 246, 1);
  color: #111827;
}

.button--loading {
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
}

/* -----------------------------------
   Badges
----------------------------------- */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.7rem;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.badge--soft {
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: var(--text-soft);
}

.badge--accent {
  background: var(--accent-soft);
  border: 1px solid rgba(129, 140, 248, 0.9);
  color: #e0e7ff;
}

/* -----------------------------------
   Hero
----------------------------------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr);
  gap: 2rem;
  padding-top: 2rem;
  padding-bottom: 2.5rem;
}

.hero__content {
  max-width: 540px;
}

.hero__badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero__title {
  margin: 1.2rem 0 0.5rem;
  font-size: clamp(2.35rem, 3vw + 1.8rem, 3.2rem);
  letter-spacing: -0.04em;
  color: var(--text-strong);
}

.hero__title-accent {
  display: block;
  background: linear-gradient(120deg, #a855f7, #60a5fa, #4ade80);
  -webkit-background-clip: text;
  color: transparent;
}

.hero__subtitle {
  margin: 0.5rem 0 1.3rem;
  font-size: 0.97rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.4rem;
}

.hero__meta {
  display: grid;
  gap: 0.5rem;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border-soft);
}

:root[data-theme="light"] .hero__meta {
  background: rgba(249, 250, 251, 0.98);
}

@media (min-width: 640px) {
  .hero__meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.hero__meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.hero__meta-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-soft);
}

.hero__meta-value {
  font-size: 0.86rem;
  color: var(--text-main);
}

.hero__visual {
  display: grid;
  gap: 0.85rem;
  align-content: flex-start;
}

.hero-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 1rem 1rem 0.9rem;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.9));
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

:root[data-theme="light"] .hero-card {
  background: linear-gradient(145deg, #ffffff, #f9fafb);
  border-color: rgba(148, 163, 184, 0.5);
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: conic-gradient(
    from 200deg,
    rgba(96, 165, 250, 0.3),
    rgba(192, 132, 252, 0.45),
    rgba(34, 197, 94, 0.3),
    transparent 60%
  );
  opacity: 0.35;
  mix-blend-mode: screen;
  pointer-events: none;
}

.hero-card__header,
.hero-card__body,
.hero-card__footer {
  position: relative;
  z-index: 1;
}

.hero-card__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.8rem;
}

.hero-card__label {
  font-size: 0.78rem;
  color: var(--text-soft);
}

.hero-card__status {
  font-size: 0.7rem;
  padding: 0.16rem 0.65rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.75);
  background: rgba(15, 23, 42, 0.98);
  color: var(--text-main);
}

:root[data-theme="light"] .hero-card__status {
  background: rgba(249, 250, 251, 1);
}

.hero-card__status--ai {
  border-color: rgba(129, 140, 248, 0.9);
  color: #e0e7ff;
}

.hero-card__body {
  padding: 0.55rem 0.8rem 0.7rem;
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(31, 41, 55, 0.95);
}

:root[data-theme="light"] .hero-card__body {
  background: rgba(249, 250, 251, 0.98);
  border-color: rgba(229, 231, 235, 0.95);
}

.hero-card__line {
  height: 7px;
  border-radius: 999px;
  background: rgba(51, 65, 85, 0.8);
  margin-bottom: 0.4rem;
}

.hero-card__line--title {
  width: 70%;
  background: linear-gradient(90deg, rgba(129, 140, 248, 0.9), rgba(96, 165, 250, 0.9));
}

.hero-card__line--meta {
  width: 45%;
}

.hero-card__line--short {
  width: 55%;
}

.hero-card__line--long {
  width: 92%;
}

.hero-card__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.7rem;
}

.hero-card__pill {
  font-size: 0.72rem;
  padding: 0.22rem 0.6rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.98);
  color: var(--text-soft);
}

:root[data-theme="light"] .hero-card__pill {
  background: rgba(248, 250, 252, 1);
}

.hero-card--secondary {
  border-style: dashed;
  border-color: rgba(148, 163, 184, 0.45);
  box-shadow: none;
}

.hero-card--secondary::before {
  display: none;
}

.hero-card__list {
  position: relative;
  z-index: 1;
  list-style: none;
  padding-left: 0;
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hero-card__list li + li {
  margin-top: 0.25rem;
}

/* Hero responsive */

@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: center;
  }
}

/* -----------------------------------
   Sections
----------------------------------- */

.section {
  padding: 2.5rem 0;
}

.section--muted {
  padding: 1.7rem 0;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 1));
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

:root[data-theme="light"] .section--muted {
  background: radial-gradient(circle at top, #f9fafb, #e5e7eb);
  border-top-color: rgba(209, 213, 219, 0.8);
  border-bottom-color: rgba(209, 213, 219, 0.8);
}

.section--alt {
  background: radial-gradient(circle at 0 0, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.98));
  border-top: 1px solid rgba(15, 23, 42, 1);
  border-bottom: 1px solid rgba(15, 23, 42, 1);
}

:root[data-theme="light"] .section--alt {
  background: radial-gradient(circle at 0 0, #f9fafb, #e5e7eb);
}

.section__inner {
  display: flex;
  flex-direction: column;
  gap: 1.7rem;
}

.section__inner--inline {
  gap: 0.9rem;
}

.section__header {
  max-width: 640px;
}

.section__header h2,
.section__header h1 {
  margin: 0 0 0.4rem;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
}

.section__header p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.section__header--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

/* -----------------------------------
   Trust Strip
----------------------------------- */

.trust-strip {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.86rem;
}

.trust-strip__label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-soft);
}

.trust-strip__items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  color: var(--text-main);
}

.trust-strip__items span {
  padding: 0.32rem 0.7rem;
  border-radius: var(--radius-pill);
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(55, 65, 81, 0.9);
}

:root[data-theme="light"] .trust-strip__items span {
  background: rgba(248, 250, 252, 0.98);
  border-color: rgba(209, 213, 219, 1);
}

/* -----------------------------------
   Grid helpers
----------------------------------- */

.grid {
  display: grid;
  gap: 1rem;
}

.grid--steps {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.grid--templates {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid--pricing {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid--faq {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* -----------------------------------
   Step Cards
----------------------------------- */

.step-card {
  border-radius: var(--radius-md);
  padding: 1rem 1rem 1.1rem;
  background: var(--bg-card);
  border: 1px solid rgba(31, 41, 55, 0.9);
}

:root[data-theme="light"] .step-card {
  background: #ffffff;
  border-color: rgba(209, 213, 219, 0.9);
}

.step-card__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.8);
  font-size: 0.72rem;
  color: var(--text-soft);
  margin-bottom: 0.6rem;
}

.step-card h3 {
  margin: 0 0 0.35rem;
  font-size: 0.98rem;
}

.step-card p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-muted);
}

/* -----------------------------------
   Template Cards
----------------------------------- */

.template-card {
  border-radius: var(--radius-md);
  padding: 1.1rem 1rem 1.2rem;
  background: var(--bg-card);
  border: 1px solid rgba(31, 41, 55, 0.95);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

:root[data-theme="light"] .template-card {
  background: #ffffff;
  border-color: rgba(209, 213, 219, 0.9);
}

.template-card__pill {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;

  /* NEW – match “Core” style */
  background: rgba(129, 140, 248, 0.22);
  border: 1px solid rgba(129, 140, 248, 0.9);
  color: #e5e7eb;
}

.template-card__pill--accent {
  /* Optional slight boost, but same family */
  background: rgba(129, 140, 248, 0.3);
  border-color: rgba(129, 140, 248, 1);
  color: #eef2ff;
}

.template-card h3 {
  margin: 0;
  font-size: 1rem;
}

.template-card p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.template-card__list {
  margin: 0.3rem 0 0.6rem;
  padding-left: 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.template-card__list li + li {
  margin-top: 0.18rem;
}

.template-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* -----------------------------------
   Pricing
----------------------------------- */

.pricing-card {
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.1rem 1.35rem;
  background: var(--bg-card);
  border: 1px solid rgba(55, 65, 81, 0.95);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

:root[data-theme="light"] .pricing-card {
  background: #ffffff;
  border-color: rgba(209, 213, 219, 0.95);
}

.pricing-card--highlight {
  border-color: rgba(129, 140, 248, 0.9);
  box-shadow: 0 18px 45px rgba(79, 70, 229, 0.55);
}

:root[data-theme="light"] .pricing-card--highlight {
  box-shadow: 0 18px 40px rgba(79, 70, 229, 0.2);
}

.pricing-card__badge {
  align-self: flex-start;
  padding: 0.18rem 0.6rem;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.75);
  color: var(--text-soft);
}

:root[data-theme="light"] .pricing-card__badge {
  background: #f3f4f6;
  border-color: rgba(148, 163, 184, 0.9);
}

.pricing-card__badge--accent {
  border-color: rgba(129, 140, 248, 0.85);
  color: #e0e7ff;
}

.pricing-card h3 {
  margin: 0;
  font-size: 1.02rem;
}

.pricing-card__price {
  margin: 0.1rem 0 0.05rem;
  font-size: 1.55rem;
  font-weight: 600;
}

.pricing-card__price-note {
  display: block;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-soft);
}

.pricing-card__copy {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.pricing-card__list {
  margin: 0.4rem 0 0.7rem;
  padding-left: 1rem;
  font-size: 0.83rem;
  color: var(--text-muted);
}

.pricing-card__list li + li {
  margin-top: 0.22rem;
}

.pricing-card__footnote {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  color: var(--text-soft);
}

/* -----------------------------------
   Distribution strip
----------------------------------- */

.distribution {
  font-size: 0.9rem;
  max-width: 680px;
}

.distribution h2 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
}

.distribution p {
  margin: 0.2rem 0 0.4rem;
  color: var(--text-muted);
}

.distribution__dot {
  color: var(--accent-warm);
}

.distribution__hint {
  font-size: 0.82rem;
  color: var(--text-soft);
}

/* -----------------------------------
   FAQ
----------------------------------- */

.faq-item {
  border-radius: var(--radius-md);
  padding: 1rem 1rem 1.05rem;
  background: var(--bg-card);
  border: 1px solid rgba(31, 41, 55, 0.95);
}

:root[data-theme="light"] .faq-item {
  background: #ffffff;
  border-color: rgba(209, 213, 219, 0.95);
}

.faq-item h3 {
  margin: 0 0 0.35rem;
  font-size: 0.98rem;
}

.faq-item p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* -----------------------------------
   Footer
----------------------------------- */

.footer {
  border-top: 1px solid rgba(148, 163, 184, 0.26);
  padding: 1.6rem 0 2rem;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 1), rgba(2, 6, 23, 1));
}

:root[data-theme="light"] .footer {
  background: radial-gradient(circle at top, #f9fafb, #e5e7eb);
  border-top-color: rgba(209, 213, 219, 0.9);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  font-size: 0.82rem;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer__logo-img {
  height: 28px;
  width: auto;
  opacity: 0.9;
}

.footer__name {
  font-weight: 500;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  color: var(--text-soft);
}

.footer__links a:hover {
  color: var(--text-main);
}

.footer__meta {
  color: var(--text-muted);
}

/* Footer layout on larger screens */

@media (min-width: 720px) {
  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* -----------------------------------
   Small tweaks
----------------------------------- */

@media (max-width: 480px) {
  .hero__title {
    font-size: 2.2rem;
  }
}

/* -----------------------------------
   Steps block – "How Aptalion works"
----------------------------------- */

.steps {
  display: grid;
  gap: 1rem;
}

@media (min-width: 900px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.steps__item {
  display: flex;
  gap: 0.9rem;
  padding: 0.85rem 0.95rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(31, 41, 55, 0.95);
  background: radial-gradient(circle at top left, rgba(129, 140, 248, 0.16), transparent),
    rgba(15, 23, 42, 0.98);
}

:root[data-theme="light"] .steps__item {
  background:
    radial-gradient(circle at top left, rgba(129, 140, 248, 0.12), transparent),
    #ffffff;
  border-color: rgba(209, 213, 219, 0.95);
}

.steps__badge {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: #e5e7eb;
  background: radial-gradient(circle at 30% 0%, rgba(129, 140, 248, 0.9), rgba(79, 70, 229, 0.4));
}

.steps__item h3 {
  margin: 0 0 0.2rem;
  font-size: 0.98rem;
}

.steps__item p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-soft);
}

/* -----------------------------------
   Editor overlay (access lock)
----------------------------------- */

.editor-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.96));
  backdrop-filter: blur(18px);
}

.editor-overlay__card {
  max-width: 480px;
  width: 100%;
  margin: 0 1.5rem;
  padding: 1.6rem 1.4rem 1.4rem;
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.5);
  box-shadow: var(--shadow-soft);
  text-align: left;
}

:root[data-theme="light"] .editor-overlay__card {
  background: #ffffff;
  border-color: rgba(148, 163, 184, 0.6);
}

.editor-overlay__card h1 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.editor-overlay__card p {
  margin: 0 0 0.8rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.editor-overlay__footnote {
  margin-top: 0.7rem;
  font-size: 0.78rem;
  color: var(--text-soft);
}

/* -----------------------------------
   Editor (app.html)
----------------------------------- */

.editor-intro {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.editor-intro__text h1 {
  margin: 0 0 0.4rem;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
}

.editor-intro__text p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.editor-intro__meta {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.editor-intro__badge {
  align-self: flex-start;
  padding: 0.16rem 0.7rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.96);
  color: var(--text-soft);
}

.editor-intro__hint {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-soft);
}

@media (min-width: 720px) {
  .editor-intro {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
}

/* Mode banner */

.editor-mode-banner {
  margin-top: 1.1rem;
  border-radius: var(--radius-md);
  padding: 0.6rem 0.8rem;
  font-size: 0.83rem;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(55, 65, 81, 0.95);
  color: var(--text-main);
}

:root[data-theme="light"] .editor-mode-banner {
  background: #ffffff;
  border-color: rgba(209, 213, 219, 0.95);
}

/* Layout */

.editor-layout {
  margin-top: 1.4rem;
  display: grid;
  gap: 1.2rem;
}

@media (min-width: 960px) {
  .editor-layout {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: flex-start;
  }
}

.editor-panel {
  border-radius: var(--radius-lg);
  padding: 1rem 1rem 1.1rem;
  background: var(--bg-card);
  border: 1px solid rgba(31, 41, 55, 0.95);
  box-shadow: var(--shadow-soft);
}

:root[data-theme="light"] .editor-panel {
  background: #ffffff;
  border-color: rgba(209, 213, 219, 0.9);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.editor-panel__header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 0.9rem;
}

.editor-panel__title {
  margin: 0;
  font-size: 1rem;
}

.editor-panel__subtitle {
  margin: 0.15rem 0 0;
  font-size: 0.85rem;
  color: var(--text-soft);
}

/* Left panel groups */

.editor-group {
  margin-top: 1.1rem;
  border-radius: var(--radius-md);
  padding: 0.85rem 0.85rem 0.9rem;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(31, 41, 55, 0.95);
}

:root[data-theme="light"] .editor-group {
  background: #f9fafb;
  border-color: rgba(209, 213, 219, 0.95);
}

.editor-group h3 {
  margin: 0 0 0.6rem;
  font-size: 0.96rem;
}

/* Template selection */

.editor-template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.7rem;
}

.editor-template-option {
  text-align: left;
  border-radius: var(--radius-md);
  padding: 0.6rem 0.65rem 0.7rem;
  border: 1px solid rgba(55, 65, 81, 0.9);
  background: rgba(15, 23, 42, 0.98);
  cursor: pointer;
  transition:
    border-color var(--transition-med),
    background var(--transition-med),
    box-shadow var(--transition-fast),
    transform var(--transition-fast);
}

:root[data-theme="light"] .editor-template-option {
  background: #ffffff;
  border-color: rgba(209, 213, 219, 0.95);
}

.editor-template-option__label {
  display: inline-flex;
  padding: 0.18rem 0.6rem;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;

  /* NEW – brighter, like Core pill */
  background: rgba(129, 140, 248, 0.22);
  border: 1px solid rgba(129, 140, 248, 0.85);
  color: #e5e7eb;
  margin-bottom: 0.3rem;
}

.editor-template-option h4 {
  margin: 0 0 0.2rem;
  font-size: 0.92rem;
}

.editor-template-option p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-soft);
}

.editor-template-option:hover {
  border-color: rgba(129, 140, 248, 0.95);
  box-shadow: 0 14px 30px rgba(79, 70, 229, 0.5);
  transform: translateY(-1px);
}

.editor-template-option--selected {
  border-color: rgba(129, 140, 248, 0.95);
  box-shadow: 0 14px 30px rgba(79, 70, 229, 0.5);
}

/* Form fields */

.editor-form {
  display: grid;
  gap: 0.75rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.field label {
  font-size: 0.8rem;
  color: var(--text-soft);
}

.field input,
.field textarea {
  border-radius: 10px;
  border: 1px solid rgba(75, 85, 99, 0.9);
  background: rgba(15, 23, 42, 0.96);
  color: var(--text-main);
  padding: 0.4rem 0.55rem;
  font-size: 0.86rem;
  outline: none;
  transition:
    border-color 140ms ease-out,
    box-shadow 140ms ease-out,
    background 140ms ease-out;
  resize: vertical;
}

:root[data-theme="light"] .field input,
:root[data-theme="light"] .field textarea {
  background: #ffffff;
  border-color: rgba(209, 213, 219, 1);
}

.field input:focus,
.field textarea:focus {
  border-color: rgba(129, 140, 248, 0.9);
  box-shadow: 0 0 0 1px rgba(129, 140, 248, 0.9);
}

/* Status */

.editor-status {
  font-size: 0.78rem;
  color: var(--text-soft);
}

/* Bottom buttons (second set) */

.editor-actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: flex-start;
}

.editor-actions--hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
}

/* Right panel – preview */

.preview-box {
  border-radius: var(--radius-md);
  padding: 0.8rem;
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(31, 41, 55, 0.95);
  margin-bottom: 0.8rem;
}

:root[data-theme="light"] .preview-box {
  background: #f9fafb;
  border-color: rgba(209, 213, 219, 0.95);
}

.contract-preview {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
}

.contract-preview__page {
  position: relative;
  margin: 0 auto;
  max-width: 620px;
  min-height: 420px;
  padding: 1.3rem 1.4rem 1.8rem;
  border-radius: 12px;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.98));
  border: 1px solid rgba(55, 65, 81, 0.96);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.8);
}

:root[data-theme="light"] .contract-preview__page {
  background: #ffffff;
  border-color: rgba(209, 213, 219, 0.95);
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.1);
}

.contract-preview__body {
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--text-main);
}

.contract-preview__title {
  margin: 0 0 0.55rem;
  font-size: 0.98rem;
  font-weight: 600;
}

.contract-preview__heading {
  margin: 0.8rem 0 0.2rem;
  font-size: 0.86rem;
  font-weight: 600;
}

.contract-preview__paragraph {
  margin: 0.1rem 0;
  font-size: 0.82rem;
  color: var(--text-main);
}

.contract-preview__footer {
  position: absolute;
  left: 1.4rem;
  right: 1.4rem;
  bottom: 1rem;
  font-size: 0.72rem;
  color: var(--text-soft);
  border-top: 1px dashed rgba(75, 85, 99, 0.7);
  padding-top: 0.4rem;
}

.preview-empty {
  font-size: 0.82rem;
  color: var(--text-soft);
}

/* Watermark */

.contract-preview--watermarked::before {
  content: "DEMO · NOT FOR CLIENT USE";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.18);
  pointer-events: none;
  transform: rotate(-28deg);
}

/* Loading */

.editor-loading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
  font-size: 0.82rem;
  color: var(--text-soft);
}

.editor-loading__dots {
  display: inline-flex;
  gap: 0.18rem;
}

.editor-loading__dot {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.85);
  animation: editor-dot 900ms infinite ease-in-out;
}

.editor-loading__dot:nth-child(2) {
  animation-delay: 120ms;
}

.editor-loading__dot:nth-child(3) {
  animation-delay: 240ms;
}

@keyframes editor-dot {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.7;
  }
  30% {
    transform: translateY(-3px);
    opacity: 1;
  }
}

/* Toolbar */

.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  margin-top: 0.9rem;
}

.editor-toolbar__main,
.editor-toolbar__secondary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Footnote */

.editor-footnote {
  margin-top: 0.7rem;
  font-size: 0.8rem;
  color: var(--text-soft);
}

/* -----------------------------------
   Checkout (checkout.html)
----------------------------------- */

.checkout-layout {
  display: grid;
  gap: 1.2rem;
  margin-top: 1.6rem;
}

@media (min-width: 960px) {
  .checkout-layout {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    align-items: flex-start;
  }
}

.checkout-card {
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.15rem 1.2rem;
  background: var(--bg-card);
  border: 1px solid rgba(31, 41, 55, 0.95);
  box-shadow: var(--shadow-soft);
}

:root[data-theme="light"] .checkout-card {
  background: #ffffff;
  border-color: rgba(209, 213, 219, 0.9);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.checkout-card__header h2 {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
}

.checkout-card__header p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.checkout-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.6rem;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.7);
  color: var(--text-soft);
}

:root[data-theme="light"] .checkout-tag {
  background: #f3f4f6;
}

/* Tier choice */

.checkout-tier {
  margin-top: 1rem;
}

.checkout-tier h3 {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
}

.checkout-tier__grid {
  display: grid;
  gap: 0.7rem;
}

@media (min-width: 640px) {
  .checkout-tier__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.checkout-tier__option {
  text-align: left;
  border-radius: var(--radius-md);
  padding: 0.65rem 0.65rem 0.7rem;
  border: 1px solid rgba(55, 65, 81, 0.9);
  background: rgba(15, 23, 42, 0.98);
  cursor: pointer;
  transition:
    border-color var(--transition-med),
    background var(--transition-med),
    box-shadow var(--transition-fast),
    transform var(--transition-fast);
}

:root[data-theme="light"] .checkout-tier__option {
  background: #ffffff;
  border-color: rgba(209, 213, 219, 0.95);
}

.checkout-tier__option--accent {
  border-color: rgba(129, 140, 248, 0.9);
}

.checkout-tier__option--selected {
  border-color: rgba(129, 140, 248, 0.95);
  box-shadow: 0 16px 35px rgba(79, 70, 229, 0.45);
  transform: translateY(-1px);
}

.checkout-tier__label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.checkout-tier__price {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

.checkout-tier__option p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-soft);
}

/* Included list */

.checkout-included {
  margin-top: 1.1rem;
}

.checkout-included h3 {
  margin: 0 0 0.4rem;
  font-size: 0.9rem;
}

.checkout-included__list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.checkout-included__list li + li {
  margin-top: 0.18rem;
}

.checkout-footnote {
  margin-top: 0.85rem;
  font-size: 0.8rem;
  color: var(--text-soft);
}

/* Order side */

.checkout-order__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.checkout-order__row--muted {
  font-size: 0.82rem;
  color: var(--text-soft);
}

.checkout-order__meta {
  margin-top: 0.6rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.checkout-button {
  width: 100%;
  margin-top: 0.9rem;
}

.checkout-disclaimer {
  margin-top: 0.8rem;
  font-size: 0.78rem;
  color: var(--text-soft);
}

/* -----------------------------------
   Simple motion / hover polish
----------------------------------- */

.template-card,
.pricing-card,
.faq-item,
.step-card,
.checkout-card,
.editor-panel {
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    border-color var(--transition-fast),
    background var(--transition-med);
}

.template-card:hover,
.pricing-card:hover,
.faq-item:hover,
.step-card:hover,
.checkout-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.85);
}

:root[data-theme="light"] .template-card:hover,
:root[data-theme="light"] .pricing-card:hover,
:root[data-theme="light"] .faq-item:hover,
:root[data-theme="light"] .step-card:hover,
:root[data-theme="light"] .checkout-card:hover {
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.12);
}
/* Force-hide editor lock in free mode */
:root[data-free-mode="true"] #accessOverlay {
  display: none !important;
}
/* Force-hide editor lock in free mode */
:root[data-free-mode="true"] #accessOverlay {
  display: none !important;
}
/* ----------------------------
   CLEAN BUNDLE SECTION (FINAL)
-----------------------------*/

.bundle-section {
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  background: rgba(15, 23, 42, 0.96);
  border: 1px dashed rgba(148, 163, 184, 0.35);
  margin-top: 2rem;
}

.bundle-grid {
  display: grid;
  gap: 1.6rem;
}

@media (min-width: 760px) {
  .bundle-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Bundle cards (inside dashed box) */
.bundle-card {
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(55, 65, 81, 0.8);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.3rem 1.7rem;
}

/* Coming soon button */
.button--soon {
  width: 100%;
  margin-top: 1.3rem;
  opacity: 0.6;
  pointer-events: none;
  border-radius: var(--radius-pill);
}
.editor-template-option h4 {
  margin: 0 0 0.2rem;
  font-size: 0.92rem;

  /* NEW – make headings clearly white on dark background */
  color: var(--text-strong);
}

.editor-template-option p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-soft);
}
/* Selected template state (sticky glow) */
.editor-template-option.selected,
.editor-template-option.active,
.editor-template-option.is-active,
.editor-template-option[aria-selected="true"],
.editor-template-option[data-selected="true"] {
  border-color: rgba(239, 68, 68, 0.65); /* red */
  box-shadow:
    0 0 0 1px rgba(239, 68, 68, 0.35),
    0 0 0 6px rgba(239, 68, 68, 0.12),
    0 18px 55px rgba(239, 68, 68, 0.18);
  background: linear-gradient(
    180deg,
    rgba(239, 68, 68, 0.08),
    rgba(15, 23, 42, 0.0)
  );
}

/* Optional: make the pill look a bit more “selected” too */
.editor-template-option.selected .editor-template-option__label,
.editor-template-option.active .editor-template-option__label,
.editor-template-option.is-active .editor-template-option__label,
.editor-template-option[aria-selected="true"] .editor-template-option__label,
.editor-template-option[data-selected="true"] .editor-template-option__label {
  background: rgba(239, 68, 68, 0.22);
  border-color: rgba(239, 68, 68, 0.55);
  color: rgba(255,255,255,0.95);
}