:root {
  --bg: #f7f8fb;
  --text: #1f2937;
  --muted: #6b7280;
  --primary: #4f46e5;
  --primary-700: #4338ca;
  --border: #e5e7eb;
  --white: #fff;
  --shadow: 0 12px 26px rgba(2, 6, 23, .08);
  --radius: 16px;
  --container: 980px;
}

* {
  box-sizing: border-box
}

html,
body {
  margin: 0;
  padding: 0
}

body {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
  box-sizing: border-box;
}

.narrow {
  max-width: 720px
}

/* Header */
.header { background:#fff; border-bottom:1px solid #eef2f7; }
.sticky { position: sticky; top: 0; z-index: 50; }
.header-inner { display:flex; align-items:center; justify-content:space-between; padding:10px 0; }
.logo-img { height:32px; width:auto; display:block; }
.brand { display:flex; align-items:center; gap:8px; text-decoration:none; color:inherit; }
.brand-title { font-weight:700; font-size:1.1rem; }

.header .container {
  padding: 0.5rem 1rem;
  /* top/bottom 8px, left/right 16px */
}

.hero--lavender {
  background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 50%, #ede9fe 100%);
  text-align: center;
  padding: 72px 20px;
  color: #111;
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.hero-title .highlight {
  color: var(--primary);
}

.hero-strapline {
  font-size: 1.25rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 20px;
}

.hero-lead {
  max-width: 720px;
  margin: 0 auto 28px;
  font-size: 1.125rem;
  line-height: 1.6;
  color: #1f2937;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

@media (max-width: 640px) {
  .hero-title { font-size: 2rem; }
  .hero-strapline { font-size: 1.1rem; }
  .hero-lead { font-size: 1rem; }
  .hero--lavender { padding: 56px 16px; }
}

/* Optional: make header sticky */
.sticky {
  position: sticky;
  top: 0;
  z-index: 50;
}

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

.how-card {
  padding: 28px 20px;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 12px;
  background: #fff;
  text-align: center;
  position: relative;
}

@keyframes popIn {
  0% { transform: scale(0.6); opacity: 0; }
  80% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--primary, #4f46e5);
  color: var(--primary, #4f46e5);
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;

  /* animation setup */
  opacity: 0;
  transform: scale(0.6);
  animation: popIn 0.5s ease-out forwards;
}

/* Delay each number slightly for a cascade effect */
.how-card:nth-child(1) .step-num { animation-delay: 0.1s; }
.how-card:nth-child(2) .step-num { animation-delay: 0.3s; }
.how-card:nth-child(3) .step-num { animation-delay: 0.5s; }
.how-card:nth-child(4) .step-num { animation-delay: 0.7s; }

/* Sections */
.section {
  padding: 36px 0
}

.section-title {
  margin: 0 0 14px;
  font-size: 1.35rem;
  letter-spacing: .2px
}

/* Card */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

/* Muted utility */
.muted { color: var(--muted); }

/* Features */
.features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
}

.features li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.feat-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.feat-ico .icon {
  width: 28px;
  height: 28px;
  color: var(--primary);
  /* brand indigo */
}

.features h3 {
  margin: 0 0 4px;
  font-size: 1.1rem;
}

.features p {
  margin: 0;
  color: #475569;
  font-size: .95rem;
}

.pill{ display:inline-block; padding:4px 12px; border-radius:999px; font-size:.8rem; font-weight:600; vertical-align:middle; }
.pill--free{ background:#f3f4f6; color:#374151; border:1px solid #e5e7eb; }
.pill--basic{ background:#ecfdf5; color:#065f46; border:1px solid #a7f3d0; }
.pill--pro{ background:#eef2ff; color:#3730a3; border:1px solid #c7d2fe; }
.pill--addon{ background:#fef3c7; color:#92400e; border:1px solid #fcd34d; font-weight:600; }

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

/* Grid (plans) */
.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr))
}

/* wider grid so lines don’t wrap awkwardly */
.plans-grid{
  display:grid;
  gap:28px;
  grid-template-columns:repeat(auto-fit, minmax(340px,1fr));
}
@media (max-width: 900px){ .plans-grid{ grid-template-columns:1fr; } }

.pro-highlight {
  border: 2px solid var(--primary);
  background: linear-gradient(135deg, #eef2ff, #e0e7ff);
  box-shadow: 0 8px 24px rgba(79,70,229,.25);
  transform: translateY(0);
  transition: transform .2s ease, box-shadow .2s ease;
}
.pro-highlight:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(79,70,229,.35);
}

/* glam AI card */
.ai-highlight {
  border: 2px solid #fcd34d;
  background: linear-gradient(135deg, #fff7ed, #fefce8);
  box-shadow: 0 8px 24px rgba(251,191,36,.25);
  transform: translateY(0);
  transition: transform .2s ease, box-shadow .2s ease;
}
.ai-highlight:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(251,191,36,.35);
}

.plan {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  min-height: 360px;
}

/* Single free plan refinements */
.plan--single { max-width: 440px; margin-left:auto; margin-right:auto; }
.plan-header { display:flex; flex-direction:column; gap:6px; }
.plan-header h3 { margin:0; font-size:1.15rem; font-weight:700; display:flex; align-items:center; gap:8px; }
.plan-price-small { font-size:.92rem; color: var(--muted); }

.plan-features { list-style:none; margin:0 0 16px 0; padding:0; display:grid; gap:16px; }
.plan-feature { display:flex; align-items:flex-start; gap:12px; }
.icon-20 { font-size:20px; line-height:20px; width:20px; height:20px; display:inline-flex; align-items:center; justify-content:center; margin-top:2px; }
.plan-feature-title { margin:0 0 2px 0; font-weight:600; }
.plan-feature-desc { margin:0; color: var(--muted); font-size:.95rem; }

.plan-divider { height:1px; background: var(--border); margin: 24px 0; }

/* Button subtle shadow option */
.btn-soft { box-shadow: 0 8px 18px rgba(79, 70, 229, .20); }

.plan .plan-list {
  flex-grow: 1;
  margin: 0 0 16px 18px;
  /* consistent indent */
  padding: 0;
}

.plan .plan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.plan .plan-head h3 {
  margin: 0;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.plan .btn {
  margin-top: auto;
  /* forces button to bottom */
  align-self: center;
  /* or center if you prefer */
}

.plan-note {
  margin: 10px 0 0;
  font-size: .9rem;
  color: #64748b;
  align-self: center;
}

/* Free card (translated from Tailwind spec) */
.free-card { padding:24px; background:rgba(24,24,27,0.95); border:1px solid rgba(255,255,255,0.10); border-radius:24px; box-shadow:0 8px 30px rgba(0,0,0,0.20); backdrop-filter:blur(6px); transition:transform .2s ease, box-shadow .2s ease; }
.free-card:hover { transform: translateY(-2px); box-shadow:0 14px 34px rgba(0,0,0,0.28); }
@media (min-width:640px){ .free-card{ padding:32px; } }
.plan--single.free-card { max-width:448px; }
.free-card .plan-header { display:flex; flex-direction:column; align-items:flex-start; justify-content:flex-start; gap:2px; }
.free-card .plan-title { font-size:1.125rem; font-weight:600; color:#ffffff; margin:0; }
.free-card .plan-badge-row { margin-top:4px; }
.pill-badge { display:inline-flex; align-items:center; padding:2px 8px; font-size:12px; line-height:1; border-radius:999px; background:rgba(99,102,241,0.15); color:#a5b4fc; font-weight:500; }
.plan-meta { margin-top:8px; margin-bottom:24px; color:#9ca3af; }
.plan-meta-inline { margin:4px 0 28px 0; font-size:.875rem; line-height:1.4; color:#9ca3af; display:flex; align-items:center; gap:8px; }
.plan-meta-inline .pill-badge { background:rgba(99,102,241,0.10); color:#a5b4fc; }
/* spacing for free card features */
.free-card .plan-features { gap:24px; margin-top:0; }
.free-card .plan-feature-title { font-weight:500; color:#f3f4f6; margin:0 0 4px 0; }
.free-card .plan-feature-desc { color:#9ca3af; font-size:.875rem; line-height:1.6; margin-top:4px; }
.free-card .plan-divider { background:rgba(255,255,255,0.10); }
.free-card .plan-price-small { font-size:.875rem; }

/* Feature icons */
.feature-icon { display:inline-flex; width:20px; height:20px; color:#c7d2fe; flex-shrink:0; margin-top:3px; }
.feature-icon .icon-svg { width:20px; height:20px; }

/* Calmer CTA button */
.btn-cta { display:inline-flex; width:100%; justify-content:center; align-items:center; padding:12px 20px; border-radius:16px; background:#6366f1; color:#fff; font-weight:500; border:1px solid transparent; box-shadow:0 4px 12px rgba(99,102,241,0.20); text-decoration:none; transition:background-color .2s ease, box-shadow .2s ease, transform .15s ease; }
.btn-cta:hover { background:#4f46e5; box-shadow:0 8px 22px rgba(99,102,241,0.30); transform:translateY(-2px); }
.btn-cta:active { transform:translateY(1px); }
.btn-cta:focus { outline:none; }
.btn-cta:focus-visible { box-shadow:0 0 0 2px #18181b, 0 0 0 4px #818cf8; }

/* Button subtext */
.plan-note-small { margin-top:8px; font-size:.70rem; text-align:center; color:#9ca3af; }

/* Dark mode tweaks scoped to pricing card */
/* Card already dark; minimal hover enhancement */

/* Optional depth variant with light border and frosted backdrop */
.card-depth { border-color: rgba(17,24,39,0.08); background: rgba(255,255,255,0.96); }
@supports (backdrop-filter: blur(6px)) {
  .card-depth { background: rgba(255,255,255,0.85); backdrop-filter: saturate(160%) blur(8px); }
}
.free-card:hover { transform: translateY(-4px); box-shadow:0 18px 40px rgba(0,0,0,0.30); }

@media (prefers-color-scheme: dark) {
  .card-depth { border-color: rgba(255,255,255,0.08); background: rgba(24,24,27,0.92); }
  @supports (backdrop-filter: blur(6px)) {
    .card-depth { background: rgba(24,24,27,0.82); backdrop-filter: saturate(140%) blur(10px); }
  }
}


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

.price {
  color: #475569
}

.badge {
  display: inline-block;
  font-size: .85rem;
  color: #7c3aed;
  background: #f5f3ff;
  border: 1px solid #e9d5ff;
  border-radius: 999px;
  padding: 3px 10px
}

/* Form */
.field {
  margin: 10px 0
}

label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: .95rem
}

input,
select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  font-size: 16px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease
}

input:focus,
select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, .18)
}

.btn-block {
  width: 100%
}

.form-note {
  margin: .6rem 0 0;
  color: #64748b;
  font-size: .9rem
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform .06s ease, background-color .2s ease, box-shadow .2s ease;
  border: 1px solid transparent;
}

.btn:active {
  transform: translateY(1px)
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 22px rgba(79, 70, 229, .25)
}

.btn-primary:hover {
  background: var(--primary-700)
}

.btn-ghost {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text)
}

.btn-ghost:hover {
  border-color: var(--primary)
}

.btn-small {
  display: inline-block;
  padding: 6px 16px;
  /* more breathing room */
  font-size: 0.9rem;
  /* slightly larger so text isn’t cramped */
  font-weight: 600;
  border-radius: 4px;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 14px rgba(79, 70, 229, 0.25);
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-small:hover {
  background: #4f46e5;
  /* fallback for var(--primary) */
  box-shadow: 0 8px 18px rgba(79, 70, 229, 0.35);
}

/* Footer */
.footer {
  padding: 24px 0 40px;
  text-align: center;
  color: #64748b
}

.footer a {
  color: #475569
}

/* Mobile */
@media (max-width: 720px) {
  .header-inner {
    gap: 12px
  }

  .header-nav a {
    display: none
  }

  /* hide text links on small screens */
  .header-nav .btn {
    display: inline-flex
  }

  /* keep the primary CTA visible */
  .logo-img {
    height: 44px
  }
}

.section.faq,
#faq.section {
  width: 100%;
}

.section.faq .container { max-width:820px; margin:0 auto; }
.faq-list{ display:grid; gap:16px; grid-template-columns:1fr; }
.faq-list details{ width:100%; padding:14px 18px; border:1px solid var(--border); border-radius:10px; background:#fff; }
.faq-list summary{ font-weight:700; display:flex; justify-content:space-between; align-items:center; cursor:pointer; }
.faq-list summary::-webkit-details-marker { display:none; }
.faq-list summary::after {
  content: "▾";
  margin-left: 8px;
  transition: transform .15s ease;
}
.faq-list details[open] summary::after { transform: rotate(180deg); }

#faq {
  grid-column: 1 / -1;  /* harmless if not in a grid */
  align-self: stretch;  /* harmless if not in a grid/flex */
}

.cta-footer {
  background: #f9fafb; /* light grey to stand out from page */
  padding: 64px 20px;
  border-radius: 12px;
  margin-top: 48px;
}

.cta-footer h2 {
  margin-bottom: 12px;
}

.cta-footer .btn-lg {
  padding: 14px 32px;
  font-size: 1.125rem;
}
/* Final light theme refinements for Free plan card */
.free-card { background:#ffffff; border:1px solid #e5e7eb; border-radius:24px; box-shadow:0 1px 2px rgba(0,0,0,0.08); transition:all .2s ease; }
.free-card:hover { transform:translateY(-2px); box-shadow:0 4px 6px rgba(0,0,0,0.10); }
.free-card .plan-title { color:#111827; }
.plan-meta-inline { margin:4px 0 28px 0; font-size:.875rem; line-height:1.4; color:#6b7280; }
.free-card .plan-features { gap:20px; }
.free-card .plan-feature-title { color:#111827; }
.free-card .plan-feature-desc { color:#4b5563; }
.feature-icon { color:#4f46e5; margin-top:2px; }
.free-card .plan-divider { background:#f3f4f6; }
.btn-cta { background:#4f46e5; border-radius:12px; box-shadow:0 1px 2px rgba(0,0,0,0.10); }
.btn-cta:hover { background:#4338ca; box-shadow:0 4px 6px rgba(0,0,0,0.12); transform:translateY(-2px); }
.btn-cta:focus-visible { box-shadow:0 0 0 2px #ffffff, 0 0 0 4px #6366f1; }
.plan-note-small { color:#6b7280; }
/* Light theme override for Free plan card */
.free-card { padding:24px; background:#ffffff; border:1px solid #e5e7eb; border-radius:24px; box-shadow:0 1px 2px rgba(0,0,0,0.08); transition:transform .2s ease, box-shadow .2s ease; }
.free-card:hover { transform:translateY(-2px); box-shadow:0 4px 12px rgba(0,0,0,0.12); }
@media (min-width:640px){ .free-card{ padding:32px; } }
.free-card .plan-title { color:#111827; }
.pill-badge { background:#eef2ff; color:#4f46e5; }
.plan-meta-inline { margin:4px 0 28px 0; font-size:.875rem; line-height:1.4; color:#6b7280; display:flex; align-items:center; gap:8px; }
.plan-meta-inline .pill-badge { background:#eef2ff; color:#4f46e5; }
.free-card .plan-feature-title { color:#111827; }
.free-card .plan-feature-desc { color:#4b5563; }
.feature-icon { color:#4f46e5; }
.free-card .plan-divider { background:#f3f4f6; }
.btn-cta { background:#4f46e5; border-radius:12px; box-shadow:0 1px 3px rgba(0,0,0,0.10); }
.btn-cta:hover { background:#4338ca; box-shadow:0 4px 10px rgba(0,0,0,0.16); transform:translateY(-2px); }
.btn-cta:focus-visible { box-shadow:0 0 0 2px #ffffff, 0 0 0 4px #6366f1; }