/* =========================================================================
   Resume AI Optimizer — marketing site
   Design system + page styles. Single stylesheet, no dependencies.
   ========================================================================= */

/* -------- Tokens ---------------------------------------------------------- */
:root {
  /* brand */
  --indigo-50:  #eef2ff;
  --indigo-100: #e0e7ff;
  --indigo-200: #c7d2fe;
  --indigo-300: #a5b4fc;
  --indigo-400: #818cf8;
  --indigo-500: #6366f1;
  --indigo-600: #4f46e5;
  --indigo-700: #4338ca;
  --indigo-800: #3730a3;
  --indigo-900: #312e81;
  --violet-500: #8b5cf6;
  --violet-600: #7c3aed;
  --violet-700: #6d28d9;
  --fuchsia-500: #d946ef;
  --pink-500: #ec4899;

  /* neutrals — warm */
  --stone-50:  #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-300: #d6d3d1;
  --stone-400: #a8a29e;
  --stone-500: #78716c;
  --stone-600: #57534e;
  --stone-700: #44403c;
  --stone-800: #292524;
  --stone-900: #1c1917;

  /* status */
  --emerald-500: #10b981;
  --emerald-600: #059669;
  --amber-500:   #f59e0b;
  --rose-500:    #f43f5e;

  /* gradients */
  --grad-hero:    linear-gradient(135deg, #312e81 0%, #4f46e5 45%, #7c3aed 100%);
  --grad-mesh:    radial-gradient(at 20% 10%, rgba(99,102,241,0.35) 0, transparent 45%),
                  radial-gradient(at 80% 0%, rgba(168,85,247,0.32) 0, transparent 50%),
                  radial-gradient(at 60% 90%, rgba(236,72,153,0.22) 0, transparent 55%);
  --grad-button:  linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  --grad-soft:    linear-gradient(135deg, #eef2ff 0%, #faf5ff 100%);

  /* shadows */
  --shadow-sm:  0 1px 2px rgba(28,25,23,0.06);
  --shadow-md:  0 4px 12px rgba(28,25,23,0.08);
  --shadow-lg:  0 12px 32px rgba(28,25,23,0.10);
  --shadow-xl:  0 24px 60px rgba(28,25,23,0.16);
  --shadow-glow: 0 18px 40px -12px rgba(79,70,229,0.45);

  /* type scale */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: var(--font-sans);
  --leading-tight: 1.15;
  --leading-snug:  1.35;
  --leading-base:  1.6;
  --leading-loose: 1.75;

  /* radii */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --r-2xl: 28px;
  --r-pill: 999px;

  /* layout */
  --container-max: 1200px;
  --container-pad: clamp(1rem, 4vw, 2rem);
  --section-y: clamp(4rem, 8vw, 6.5rem);

  /* color roles */
  --bg:        var(--stone-50);
  --bg-elev:   #ffffff;
  --bg-tint:   var(--indigo-50);
  --text:      var(--stone-900);
  --text-mute: var(--stone-500);
  --text-soft: var(--stone-600);
  --border:    var(--stone-200);
  --primary:   var(--indigo-600);
  --primary-fg:#ffffff;
}

/* -------- Reset / base ---------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/var(--leading-base) var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; cursor: pointer; }
:focus-visible {
  outline: 2px solid var(--indigo-500);
  outline-offset: 2px;
  border-radius: 4px;
}
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--stone-900); color: #fff;
  padding: 0.6rem 1rem; border-radius: 0 0 var(--r-md) 0;
  z-index: 100;
}
.skip-link:focus { left: 0; }

h1, h2, h3, h4, h5 {
  margin: 0 0 0.5em;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: var(--leading-tight);
  color: var(--stone-900);
}
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
h4 { font-size: 1rem; font-weight: 700; }
p  { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

/* -------- Layout ---------------------------------------------------------- */
.container { max-width: var(--container-max); margin: 0 auto; padding-inline: var(--container-pad); }
.section   { padding-block: var(--section-y); }
.section--tint  { background: var(--bg-tint); }
.section--dark  {
  background: var(--stone-900);
  color: var(--stone-100);
}
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark a { color: var(--indigo-300); }

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--indigo-50);
  padding: 0.4rem 0.85rem;
  border-radius: var(--r-pill);
  margin-bottom: 1.25rem;
}
.section--dark .eyebrow {
  color: #c7d2fe;
  background: rgba(99,102,241,0.15);
}
.section-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head p { font-size: 1.1rem; color: var(--text-soft); }
.section-head--center { margin-inline: auto; text-align: center; }

/* -------- Buttons --------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--r-lg);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn .icon { width: 18px; height: 18px; }
.btn--primary {
  background: var(--grad-button);
  color: var(--primary-fg);
  box-shadow: var(--shadow-glow);
}
.btn--primary:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--stone-300);
}
.btn--ghost:hover { background: var(--stone-100); }
.btn--on-dark {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border-color: rgba(255,255,255,0.28);
  backdrop-filter: blur(8px);
}
.btn--on-dark:hover { background: rgba(255,255,255,0.2); }
.btn--white {
  background: #fff; color: var(--indigo-700);
  box-shadow: var(--shadow-md);
}
.btn--white:hover { transform: translateY(-1px); }
.btn--lg { padding: 1rem 1.85rem; font-size: 1rem; }
.btn--sm { padding: 0.55rem 1rem; font-size: 0.85rem; border-radius: var(--r-md); }

/* -------- Header ---------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,250,249,0.85);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(231,229,228,0.7);
}
.site-header__inner {
  display: flex; align-items: center; gap: 1rem;
  height: 64px;
}
.site-header__brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  color: var(--text); font-weight: 700;
  text-decoration: none;
}
.site-header__brand:hover { text-decoration: none; }
.brand-mark {
  width: 32px; height: 32px;
  display: inline-flex;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(99,102,241,0.35);
}
.brand-mark svg { width: 100%; height: 100%; border-radius: 8px; }
.brand-name { font-size: 1rem; letter-spacing: -0.01em; }
.site-nav {
  display: none;
  margin-inline-start: auto;
  gap: 1.6rem;
  font-size: 0.92rem;
}
.site-nav a { color: var(--text-soft); font-weight: 500; }
.site-nav a:hover { color: var(--text); text-decoration: none; }
.site-header__actions {
  display: flex; align-items: center; gap: 0.6rem;
  margin-inline-start: auto;
}
@media (min-width: 880px) {
  .site-nav { display: flex; }
  .site-header__actions { margin-inline-start: 0; }
}

/* -------- Language switcher ---------------------------------------------- */
.lang-switch { position: relative; }
.lang-switch summary {
  list-style: none;
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--stone-200);
  border-radius: var(--r-md);
  background: #fff;
  font-size: 0.85rem;
  color: var(--text-soft);
  cursor: pointer;
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary .icon { width: 16px; height: 16px; }
.lang-switch__current { display: none; }
@media (min-width: 540px) { .lang-switch__current { display: inline; } }
.lang-switch__menu {
  position: absolute; top: calc(100% + 6px); right: 0;
  min-width: 220px;
  max-height: 60vh; overflow-y: auto;
  background: #fff; border: 1px solid var(--stone-200);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  padding: 0.4rem;
  display: grid; gap: 1px;
  z-index: 60;
}
.lang-switch__menu li a {
  display: block;
  padding: 0.55rem 0.75rem;
  color: var(--text);
  font-size: 0.9rem;
  border-radius: var(--r-sm);
}
.lang-switch__menu li a:hover { background: var(--indigo-50); text-decoration: none; }
[dir="rtl"] .lang-switch__menu { right: auto; left: 0; }

/* -------- Hero ------------------------------------------------------------ */
.hero {
  position: relative;
  background: var(--grad-hero);
  color: #fff;
  padding-block: clamp(4.5rem, 10vw, 7rem) clamp(3rem, 6vw, 5rem);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--grad-mesh);
  opacity: 0.9;
  z-index: -1;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 22px 22px;
  background-position: 0 0;
  mask-image: radial-gradient(ellipse at top, #000 30%, transparent 70%);
  z-index: -1;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: center;
}
@media (min-width: 960px) {
  .hero__inner { grid-template-columns: 1.1fr 0.9fr; }
}
.hero__copy { max-width: 640px; }
.hero__pre {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  color: #fff;
  padding: 0.4rem 0.85rem;
  border-radius: var(--r-pill);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 1.5rem;
}
.hero__pre .icon { width: 14px; height: 14px; }
.hero h1 { color: #fff; }
.hero__lede {
  font-size: clamp(1.05rem, 1.7vw, 1.2rem);
  color: rgba(255,255,255,0.88);
  max-width: 560px;
  margin-bottom: 1.75rem;
}
.hero__cta-row {
  display: flex; flex-wrap: wrap; gap: 0.75rem;
  margin-bottom: 1.75rem;
}
.hero__proof {
  display: flex; flex-wrap: wrap; gap: 1.25rem 2rem;
  color: rgba(255,255,255,0.78);
  font-size: 0.85rem;
}
.hero__proof-item { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero__proof .icon { width: 16px; height: 16px; color: rgba(255,255,255,0.85); }

/* phone mockup */
.device-frame {
  position: relative;
  width: min(320px, 100%);
  margin-inline: auto;
  aspect-ratio: 9 / 19.5;
  background: #0d0c14;
  border-radius: 44px;
  padding: 12px;
  box-shadow: var(--shadow-xl), inset 0 0 0 1px rgba(255,255,255,0.04);
  filter: drop-shadow(0 30px 60px rgba(28,25,23,0.45));
}
.device-frame::before {
  content: "";
  position: absolute; top: 14px; left: 50%;
  transform: translateX(-50%);
  width: 90px; height: 26px;
  background: #0d0c14;
  border-radius: 0 0 18px 18px;
  z-index: 2;
}
.device-frame__screen {
  width: 100%; height: 100%;
  border-radius: 32px;
  overflow: hidden;
  background: #fff;
  position: relative;
}
.device-frame__screen img {
  width: 100%; height: 100%; object-fit: cover; object-position: top;
  display: block;
}
.hero__device-stack {
  position: relative;
  display: grid;
  place-items: center;
}
.hero__device-stack .device-frame { transform: rotate(-2deg); }
.hero__device-stack .device-frame--back {
  position: absolute; left: 28%; top: 6%;
  transform: rotate(6deg) scale(0.92);
  opacity: 0.85;
  filter: drop-shadow(0 20px 50px rgba(28,25,23,0.35));
  z-index: -1;
}
@media (max-width: 640px) {
  .hero__device-stack .device-frame--back { display: none; }
}

/* -------- Logo / store-badge strip --------------------------------------- */
.proof-strip {
  padding-block: 2rem;
  border-bottom: 1px solid var(--border);
  background: #fff;
}
.proof-strip__inner {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 1.25rem 2.5rem;
  color: var(--text-mute);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.proof-strip__item { display: inline-flex; align-items: center; gap: 0.5rem; }
.proof-strip__item .icon { width: 18px; height: 18px; color: var(--indigo-500); }

/* -------- Feature grid ---------------------------------------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px)  { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .feature-grid { grid-template-columns: repeat(4, 1fr); } }
.feature-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 1.5rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--indigo-200);
  box-shadow: var(--shadow-lg);
}
.feature-card__icon {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--grad-soft);
  color: var(--indigo-600);
  border-radius: var(--r-md);
  margin-bottom: 1rem;
}
.feature-card__icon .icon { width: 22px; height: 22px; }
.feature-card h3 { margin-bottom: 0.4rem; }
.feature-card p  { color: var(--text-soft); font-size: 0.95rem; margin: 0; }

/* -------- How it works (steps) ------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  counter-reset: step;
}
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }
.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 1.75rem 1.5rem 1.5rem;
}
.step__num {
  position: absolute; top: -18px; left: 1.5rem;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--grad-button);
  color: #fff; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
}
.step h3 { margin: 0.25rem 0 0.5rem; }
.step p  { color: var(--text-soft); margin: 0; }

/* -------- Spotlight (alt-row feature explainers) ------------------------- */
.spotlight {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  padding-block: clamp(3rem, 6vw, 5rem);
}
.spotlight + .spotlight { border-top: 1px solid var(--border); }
@media (min-width: 880px) {
  .spotlight { grid-template-columns: 1fr 1fr; }
  .spotlight--reverse > .spotlight__media { order: -1; }
}
.spotlight__copy h2 { margin-top: 0; }
.spotlight__copy ul { margin-top: 1.25rem; display: grid; gap: 0.55rem; }
.spotlight__copy li {
  display: flex; gap: 0.55rem; align-items: flex-start;
  color: var(--text-soft); font-size: 0.97rem;
}
.spotlight__copy li .icon {
  width: 20px; height: 20px; flex: none;
  color: var(--emerald-600); margin-top: 2px;
}
.spotlight__media {
  position: relative;
  background: var(--grad-soft);
  border-radius: var(--r-2xl);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid var(--indigo-100);
  display: grid; place-items: center;
  min-height: 320px;
  overflow: hidden;
}
.spotlight__media img {
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xl);
  max-height: 480px;
  width: auto;
}

/* -------- Templates gallery ---------------------------------------------- */
.template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}
.template-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  display: block;
  color: inherit;
  text-decoration: none;
}
a.template-card:hover { text-decoration: none; }
.template-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--indigo-200); }
.template-card__preview {
  aspect-ratio: 8.5 / 11;
  background: var(--stone-100);
  border-bottom: 1px solid var(--border);
  display: grid; place-items: center;
  font-weight: 700;
  color: var(--stone-400);
  position: relative;
  overflow: hidden;
}
.template-card__preview img { width: 100%; height: 100%; object-fit: cover; }
.template-card__body { padding: 0.85rem 1rem 1rem; }
.template-card__name { font-weight: 700; font-size: 0.95rem; margin: 0; }
.template-card__tag { font-size: 0.78rem; color: var(--text-mute); margin-top: 2px; }

/* -------- Pricing --------------------------------------------------------- */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: stretch;
}
@media (min-width: 720px) { .pricing-grid { grid-template-columns: repeat(3, 1fr); } }
.pricing-grid--two { max-width: 860px; margin-inline: auto; }
@media (min-width: 720px) { .pricing-grid.pricing-grid--two { grid-template-columns: repeat(2, 1fr); } }
.plan {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 1.75rem;
  display: flex; flex-direction: column;
  position: relative;
}
.plan--featured {
  border-color: var(--indigo-500);
  box-shadow: 0 0 0 4px rgba(99,102,241,0.12), var(--shadow-lg);
  background: linear-gradient(180deg, #fff 0%, #f5f3ff 100%);
}
.plan__badge {
  position: absolute; top: -12px; right: 1.5rem;
  background: var(--grad-button); color: #fff;
  padding: 0.25rem 0.75rem;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em;
  border-radius: var(--r-pill);
  text-transform: uppercase;
}
.plan h3 { margin-bottom: 0.25rem; }
.plan__price-row { display: flex; align-items: baseline; gap: 0.4rem; margin-bottom: 0.25rem; }
.plan__price { font-size: 2rem; font-weight: 800; }
.plan__per { color: var(--text-mute); font-size: 0.9rem; }
.plan__hint { color: var(--text-mute); font-size: 0.85rem; margin-bottom: 1.25rem; }
.plan ul { display: grid; gap: 0.5rem; margin-bottom: 1.5rem; }
.plan li { display: flex; gap: 0.5rem; color: var(--text-soft); font-size: 0.92rem; }
.plan li .icon { width: 18px; height: 18px; color: var(--emerald-600); flex: none; margin-top: 3px; }
.plan .btn { margin-top: auto; width: 100%; }

/* -------- FAQ ------------------------------------------------------------- */
.faq {
  display: grid; gap: 0.75rem;
  max-width: 820px; margin-inline: auto;
}
.faq details {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1rem 1.25rem;
  transition: border-color 0.18s ease;
}
.faq details[open] { border-color: var(--indigo-300); box-shadow: var(--shadow-sm); }
.faq summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  width: 14px; height: 14px;
  border-right: 2px solid var(--text-mute);
  border-bottom: 2px solid var(--text-mute);
  transform: rotate(45deg);
  transition: transform 0.18s ease;
  flex: none;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq p { color: var(--text-soft); margin: 0.75rem 0 0; }

/* -------- Final CTA ------------------------------------------------------- */
.cta-banner {
  background: var(--grad-hero);
  color: #fff;
  padding-block: clamp(3rem, 6vw, 5rem);
  text-align: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.cta-banner::before {
  content: ""; position: absolute; inset: 0;
  background: var(--grad-mesh); opacity: 0.7; z-index: -1;
}
.cta-banner h2 { color: #fff; }
.cta-banner p { color: rgba(255,255,255,0.85); max-width: 640px; margin-inline: auto; }
.cta-banner .btn--primary { background: #fff; color: var(--indigo-700); box-shadow: var(--shadow-lg); }
.cta-banner .btn--primary:hover { background: #fafafa; filter: none; }

/* -------- Footer ---------------------------------------------------------- */
.site-footer {
  background: var(--stone-900);
  color: var(--stone-300);
  padding-block: 3rem 2rem;
  font-size: 0.92rem;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
}
@media (min-width: 720px) {
  .site-footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
}
.site-footer h4 {
  color: #fff; font-size: 0.78rem; letter-spacing: 0.12em;
  text-transform: uppercase; margin-bottom: 0.85rem;
}
.site-footer ul li { margin-bottom: 0.45rem; }
.site-footer a { color: var(--stone-300); }
.site-footer a:hover { color: #fff; }
.site-footer__brand { max-width: 280px; }
.site-footer__brand .brand-mark { width: 36px; height: 36px; margin-bottom: 0.85rem; }
.site-footer__tagline { color: var(--stone-300); margin-bottom: 1rem; }
.site-footer__copy { color: var(--stone-500); font-size: 0.82rem; margin: 0; }

/* -------- Icon utility ---------------------------------------------------- */
.icon {
  width: 1em; height: 1em;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
  display: inline-block;
  vertical-align: -0.125em;
}

/* -------- Subhero (used by inner pages instead of full hero) ------------- */
.subhero {
  position: relative;
  padding-block: clamp(4rem, 8vw, 6rem) clamp(2.5rem, 5vw, 4rem);
  background: linear-gradient(180deg, var(--indigo-50) 0%, #fff 100%);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  isolation: isolate;
}
.subhero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(at 10% 0%, rgba(99,102,241,0.18) 0, transparent 45%),
    radial-gradient(at 90% 0%, rgba(168,85,247,0.16) 0, transparent 50%);
  z-index: -1;
}
.subhero__inner { max-width: 760px; }
.subhero h1 { margin-bottom: 1rem; }
.subhero__lede {
  font-size: clamp(1.05rem, 1.7vw, 1.2rem);
  color: var(--text-soft);
  margin-bottom: 1.75rem;
  max-width: 640px;
}
.subhero__cta-row { display: flex; gap: 0.6rem; flex-wrap: wrap; }

/* -------- Comparison table ----------------------------------------------- */
.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  font-size: 0.95rem;
}
.compare-table thead th {
  background: var(--stone-100);
  color: var(--stone-900);
  font-weight: 700;
  text-align: center;
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
}
.compare-table thead th:first-child { text-align: left; }
.compare-table thead th.is-pro {
  background: linear-gradient(180deg, var(--indigo-50) 0%, #fff 100%);
  color: var(--indigo-700);
}
.compare-table tbody td {
  padding: 0.85rem 1.25rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-soft);
}
.compare-table tbody td:first-child { text-align: left; font-weight: 500; color: var(--text); }
.compare-table tbody tr:nth-child(even) td { background: rgba(245,245,244,0.4); }
.compare-table tbody td.is-yes { color: var(--emerald-600); }
.compare-table tbody td.is-no  { color: var(--stone-400); }
.compare-table tbody td .icon { width: 18px; height: 18px; vertical-align: -3px; }

/* -------- FAQ groups ----------------------------------------------------- */
.faq-group { margin-bottom: 2.5rem; }
.faq-group:last-child { margin-bottom: 0; }
.faq-group__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--indigo-700);
  margin-bottom: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

/* -------- Inner-page CTA (smaller than the homepage banner) -------------- */
.cta-card {
  background: var(--grad-soft);
  border: 1px solid var(--indigo-100);
  border-radius: var(--r-2xl);
  padding: clamp(2rem, 4vw, 3rem);
  display: grid; gap: 1rem;
  text-align: center;
  margin-block: clamp(2rem, 4vw, 3rem);
}
.cta-card h2 { margin: 0; }
.cta-card p { color: var(--text-soft); max-width: 600px; margin-inline: auto; }
.cta-card .hero__cta-row { justify-content: center; margin-top: 0.5rem; }
.cta-card .btn--on-dark {
  background: #fff; color: var(--indigo-700);
  border-color: var(--indigo-200);
}

/* -------- Reduced motion -------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
