/* mailcatchr marketing site. Self-contained, no framework.
   Inter via Google Fonts; dark palette with a violet accent.
   Mobile-first: base rules target small screens, min-width queries add
   the wider layouts. */

:root {
  --bg: #0a0b10;
  --bg-alt: #0e1018;
  --surface: #141725;
  --surface-2: #1a1e30;
  --border: #262c44;
  --border-soft: #1d2236;
  --text: #eef0f8;
  --muted: #a3abc2;
  --faint: #737b98;
  --accent: #6d5df6;
  --accent-2: #9f7cff;
  --accent-hover: #8273ff;
  --accent-soft: rgba(109, 93, 246, 0.13);
  --green: #4ade80;
  --radius: 14px;
  --max: 1120px;
  --gutter: 20px;
  --nav-h: 64px;
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 10px 30px rgba(0, 0, 0, 0.35);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (min-width: 640px) {
  :root { --gutter: 24px; --nav-h: 68px; }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Safety net: nothing may widen the page on a phone. */
  overflow-x: clip;
}

img, svg { max-width: 100%; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container-narrow { max-width: 780px; }

/* Anchor targets land below the sticky nav. */
section[id] { scroll-margin-top: calc(var(--nav-h) + 16px); }

::selection { background: rgba(109, 93, 246, 0.4); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Scroll reveals. .reveal is only ever added by JS, so the page is fully
   visible without it. */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.2rem + 3.6vw, 3.4rem); letter-spacing: -0.03em; font-weight: 800; line-height: 1.08; }
h2 { font-size: clamp(1.55rem, 1.1rem + 2vw, 2.3rem); letter-spacing: -0.02em; }
h3 { font-size: 1.08rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

a { color: inherit; }

.gradient-text {
  background: linear-gradient(92deg, var(--accent-2), var(--accent) 60%, #5ea2ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  text-align: center;
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
}

/* ── Buttons ─────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  color: var(--text);
  transition: background 0.15s ease, border-color 0.15s ease,
    color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

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

.btn-primary {
  background: linear-gradient(180deg, var(--accent-hover), var(--accent));
  color: #fff;
  box-shadow: 0 4px 16px rgba(109, 93, 246, 0.35),
    0 1px 0 rgba(255, 255, 255, 0.18) inset;
}

.btn-primary:hover {
  background: linear-gradient(180deg, #8e80ff, #7565ff);
  box-shadow: 0 6px 22px rgba(109, 93, 246, 0.45),
    0 1px 0 rgba(255, 255, 255, 0.18) inset;
}

.btn-ghost { border-color: var(--border); background: rgba(255, 255, 255, 0.02); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-2); }

.btn-lg { min-height: 50px; padding: 13px 26px; font-size: 1.02rem; border-radius: 12px; }
.btn-block { display: flex; width: 100%; margin-top: auto; }

/* ── Nav ─────────────────────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(10, 11, 16, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  height: var(--nav-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(160deg, var(--accent-2), var(--accent));
  color: #fff;
  box-shadow: 0 2px 10px rgba(109, 93, 246, 0.4);
}

.brand-mark svg { width: 17px; height: 17px; }
.brand-mark.sm { width: 24px; height: 24px; border-radius: 7px; box-shadow: none; }
.brand-mark.sm svg { width: 13px; height: 13px; }

.nav-links {
  display: none;
  gap: 26px;
  margin-right: auto;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.15s;
}

.nav-links a:hover { color: var(--text); }

.nav-cta { display: flex; gap: 8px; }
.nav-cta .btn-ghost { display: none; }
.nav-cta .btn { min-height: 38px; padding: 7px 14px; font-size: 0.9rem; }

/* Hamburger: only on small screens. */
.nav-toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .icon-close { display: none; }
.nav.is-open .nav-toggle .icon-close { display: block; }
.nav.is-open .nav-toggle .icon-menu { display: none; }

.nav-menu {
  display: none;
  border-top: 1px solid var(--border-soft);
  background: rgba(10, 11, 16, 0.97);
}

.nav.is-open .nav-menu { display: block; }

.nav-menu .container {
  display: flex;
  flex-direction: column;
  padding-top: 8px;
  padding-bottom: 16px;
}

.nav-menu a {
  padding: 13px 4px;
  border-bottom: 1px solid var(--border-soft);
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}

.nav-menu a:last-of-type { border-bottom: none; }

.nav-menu .menu-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.nav-menu .menu-actions .btn { width: 100%; }

@media (min-width: 640px) {
  .nav-inner { gap: 30px; }
  .brand { margin-right: 0; }
  .nav-cta { gap: 10px; }
  .nav-cta .btn-ghost { display: inline-flex; }
  .nav-cta .btn { min-height: 40px; padding: 8px 18px; font-size: 0.93rem; }
}

@media (min-width: 760px) {
  .nav-links { display: flex; }
  .nav-toggle, .nav-menu { display: none !important; }
}

/* ── Hero ────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  padding: 56px 0 56px;
  overflow: hidden;
  background:
    radial-gradient(70% 45% at 20% 0%, rgba(109, 93, 246, 0.18), transparent 70%),
    radial-gradient(45% 38% at 90% 20%, rgba(94, 162, 255, 0.1), transparent 70%),
    var(--bg);
}

/* Faint dot grid over the hero, fading out toward the bottom. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 78%);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 78%);
  pointer-events: none;
}

.hero .container { position: relative; }

.hero-grid {
  display: grid;
  /* minmax(0, …) so the mockup's nowrap text can't widen the column. */
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.hero-grid > * { min-width: 0; }

@media (min-width: 640px) {
  .hero { padding: 80px 0 72px; }
}

@media (min-width: 921px) {
  .hero { padding: 96px 0 80px; }
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; }
}

.eyebrow-badge {
  display: inline-block;
  margin: 0 0 18px;
  padding: 5px 13px;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: var(--accent-soft);
  color: var(--accent-2);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.lede {
  max-width: 540px;
  margin: 16px 0 26px;
  color: var(--muted);
  font-size: 1.05rem;
}

@media (min-width: 640px) {
  .lede { font-size: 1.13rem; margin: 18px 0 30px; }
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-cta .btn { width: 100%; }

@media (min-width: 520px) {
  .hero-cta { flex-direction: row; flex-wrap: wrap; gap: 14px; }
  .hero-cta .btn { width: auto; }
}

.hero-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  margin: 24px 0 0;
  color: var(--faint);
  font-size: 0.88rem;
}

@media (min-width: 520px) {
  .hero-points { flex-direction: row; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; }
}

.hero-points li { position: relative; padding-left: 20px; }

.hero-points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

/* ── Hero inbox mockup ───────────────────────────────────────────────── */

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

/* Glow behind the mockup. */
.hero-visual::before {
  content: "";
  position: absolute;
  inset: -8% -6%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(109, 93, 246, 0.22), transparent 70%);
  filter: blur(8px);
  pointer-events: none;
}

.inbox-card {
  position: relative;
  width: 100%;
  min-width: 0;
  max-width: 480px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-card), 0 30px 80px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

@media (min-width: 921px) {
  .inbox-card {
    transform: perspective(1400px) rotateY(-5deg) rotateX(2deg);
    transition: transform 0.4s ease;
  }
  .hero-visual:hover .inbox-card { transform: perspective(1400px) rotateY(0) rotateX(0); }
}

/* Assertion toast: a static row under the card on small screens, a
   floating overlay on wide ones. */
.assert-toast {
  position: relative;
  z-index: 2;
  order: 2;
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: 100%;
  padding: 10px 15px;
  border-radius: 11px;
  background: rgba(16, 19, 30, 0.92);
  border: 1px solid rgba(74, 222, 128, 0.35);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  font-size: 0.8rem;
  color: var(--muted);
}

.assert-toast .check {
  display: grid;
  place-items: center;
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(74, 222, 128, 0.16);
  color: var(--green);
  font-weight: 700;
  font-size: 0.75rem;
}

.assert-toast code {
  font-family: var(--mono);
  color: var(--text);
  font-size: 0.78rem;
}

@media (min-width: 921px) {
  .assert-toast {
    position: absolute;
    left: -18px;
    bottom: 34px;
    white-space: nowrap;
    animation: toast-float 5s ease-in-out infinite;
  }
}

@keyframes toast-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

.inbox-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-soft);
}

.window-dots { display: flex; gap: 6px; flex: none; }

.window-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}

.window-dots i:first-child { background: #ff5f57; }
.window-dots i:nth-child(2) { background: #febc2e; }
.window-dots i:nth-child(3) { background: #28c840; }

.inbox-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  font-family: var(--mono);
}

.inbox-live {
  margin-left: auto;
  display: flex;
  align-items: center;
  flex: none;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
}

.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5); }
  70% { box-shadow: 0 0 0 7px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.inbox-rows { padding: 6px 8px; }

.mail-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 10px;
  border-radius: 10px;
}

.mail-row.is-new { background: var(--accent-soft); }

.mail-avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(160deg, #7c5dfa, #5546c8);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
}

.mail-avatar.av-2 { background: linear-gradient(160deg, #38bdf8, #2a6fd6); }
.mail-avatar.av-3 { background: linear-gradient(160deg, #34d399, #1f9d6e); }
.mail-avatar.av-4 { background: linear-gradient(160deg, #fbbf24, #d97706); }

.mail-meta { display: flex; flex-direction: column; flex: 1 1 0; min-width: 0; }
.mail-meta strong { font-size: 0.88rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mail-meta span {
  font-size: 0.78rem;
  color: var(--faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: var(--mono);
}

.mail-time { margin-left: auto; flex: none; font-size: 0.76rem; color: var(--faint); }

.inbox-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-top: 1px solid var(--border-soft);
  font-size: 0.82rem;
  color: var(--muted);
}

.inbox-foot .check { color: var(--green); font-weight: 700; }

/* ── Sections ────────────────────────────────────────────────────────── */

.section { padding: 64px 0; }

@media (min-width: 640px) { .section { padding: 96px 0; } }

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.section h2 { text-align: center; margin-bottom: 40px; }

.section-lede {
  text-align: center;
  color: var(--muted);
  max-width: 600px;
  margin: -26px auto 36px;
}

@media (min-width: 640px) {
  .section h2 { margin-bottom: 48px; }
  .section-lede { margin: -32px auto 40px; }
}

/* ── Feature grid ────────────────────────────────────────────────────── */

.grid { display: grid; gap: 16px; }

@media (min-width: 640px) { .grid { gap: 20px; } }

.features { grid-template-columns: 1fr; }

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

.card {
  min-width: 0;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

@media (min-width: 640px) { .card { padding: 28px; } }

.features .card:hover { border-color: var(--accent); transform: translateY(-3px); }

.card p { color: var(--muted); margin-bottom: 0; font-size: 0.94rem; }

.card-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  border-radius: 11px;
  background: var(--accent-soft);
  border: 1px solid rgba(109, 93, 246, 0.25);
  color: var(--accent-2);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.features .card:hover .card-icon {
  background: linear-gradient(160deg, var(--accent-2), var(--accent));
  border-color: transparent;
  color: #fff;
}

.card-icon svg { width: 21px; height: 21px; }

/* ── How it works ────────────────────────────────────────────────────── */

.how-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

@media (min-width: 921px) {
  .how-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; }
}

.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.steps li {
  position: relative;
  padding: 14px 0 14px 58px;
  counter-increment: step;
}

.steps li + li::before {
  content: "";
  position: absolute;
  left: 20px;
  top: -14px;
  height: 28px;
  border-left: 1px dashed var(--border);
}

.steps .step-num {
  position: absolute;
  left: 0;
  top: 12px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid rgba(109, 93, 246, 0.3);
  color: var(--accent-2);
  font-weight: 800;
  font-size: 0.95rem;
}

.steps h3 { margin-bottom: 4px; }
.steps p { margin: 0; color: var(--muted); font-size: 0.94rem; }
.steps code {
  font-family: var(--mono);
  font-size: 0.86em;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  padding: 1px 6px;
  border-radius: 6px;
}

.code-panel {
  min-width: 0;
  background: #0d0f18;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-card), 0 24px 60px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.code-tabs {
  display: flex;
  gap: 2px;
  padding: 8px 8px 0;
  border-bottom: 1px solid var(--border-soft);
  background: var(--surface);
}

.code-tab {
  padding: 9px 14px;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: 9px 9px 0 0;
  background: transparent;
  color: var(--faint);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.code-tab.is-active {
  background: #0d0f18;
  border-color: var(--border-soft);
  color: var(--text);
  margin-bottom: -1px;
}

.code-panel pre {
  margin: 0;
  padding: 18px 20px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.6;
  color: #d5d9ea;
  tab-size: 2;
}

.code-panel pre[hidden] { display: none; }

.code-panel .c { color: #6b7390; }
.code-panel .k { color: #c792ea; }
.code-panel .s { color: #9ce0a5; }
.code-panel .f { color: #82aaff; }

/* ── Pricing ─────────────────────────────────────────────────────────── */

.billing-toggle {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 32px;
}

.toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 10px;
  padding: 9px 16px;
  font: inherit;
  font-size: 0.93rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.toggle-btn.is-active {
  border-color: var(--accent);
  color: var(--text);
  background: var(--accent-soft);
}

.pill {
  font-size: 0.7rem;
  background: linear-gradient(160deg, var(--accent-2), var(--accent));
  color: #fff;
  border-radius: 99px;
  padding: 2px 9px;
}

.plans {
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  max-width: 1020px;
  margin: 0 auto;
}

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

.plan { display: flex; flex-direction: column; padding-top: 28px; }

.plan ul {
  list-style: none;
  padding: 0;
  margin: 4px 0 26px;
  color: var(--muted);
  font-size: 0.93rem;
}

.plan ul li {
  padding: 8px 0 8px 28px;
  position: relative;
  border-bottom: 1px solid var(--border-soft);
}

.plan ul li:last-child { border-bottom: none; }

.plan ul li::before {
  content: "✓";
  position: absolute;
  left: 3px;
  color: var(--accent-2);
  font-weight: 700;
}

.price { margin: 6px 0 0; display: flex; align-items: baseline; gap: 6px; }
.price .amount { font-size: 2.4rem; font-weight: 800; letter-spacing: -0.03em; }
.price .per { color: var(--muted); font-size: 0.95rem; }

.price-sub {
  color: var(--faint);
  font-size: 0.82rem;
  margin: 2px 0 14px;
  min-height: 1.3em;
}

.plan-tag {
  color: var(--muted);
  font-size: 0.92rem;
  border-top: 1px solid var(--border-soft);
  padding-top: 14px;
}

@media (min-width: 720px) { .plan-tag { min-height: 2.5em; } }

.plan-includes {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.plan-featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 18px 50px rgba(109, 93, 246, 0.18);
  position: relative;
  /* Room for the flag on phones, where the cards stack. */
  margin-top: 10px;
}

@media (min-width: 720px) { .plan-featured { margin-top: 0; } }
@media (min-width: 940px) { .plan-featured { transform: scale(1.035); } }

.plan-flag {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(160deg, var(--accent-2), var(--accent));
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: 99px;
  padding: 3px 14px;
  margin: 0;
  white-space: nowrap;
  box-shadow: 0 3px 12px rgba(109, 93, 246, 0.4);
}

.fine-print {
  text-align: center;
  color: var(--faint);
  font-size: 0.84rem;
  margin-top: 28px;
}

.fine-print + .fine-print { margin-top: 8px; }

/* ── FAQ ─────────────────────────────────────────────────────────────── */

details {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px 18px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-card);
}

@media (min-width: 640px) { details { padding: 6px 22px; } }

details summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.98rem;
  list-style: none;
  position: relative;
  padding: 14px 34px 14px 0;
}

details summary::-webkit-details-marker { display: none; }

details summary::after {
  content: "+";
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent-2);
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1;
}

details[open] summary::after { content: "–"; }

details p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.94rem;
}

/* ── CTA band + footer ───────────────────────────────────────────────── */

.cta-band { text-align: center; }

.cta-panel {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: 44px 22px;
  border-radius: 22px;
  border: 1px solid rgba(109, 93, 246, 0.35);
  background:
    radial-gradient(80% 120% at 50% 0%, rgba(109, 93, 246, 0.16), transparent 70%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: var(--shadow-card), 0 24px 70px rgba(109, 93, 246, 0.12);
  overflow: hidden;
}

@media (min-width: 640px) { .cta-panel { padding: 64px 40px; } }

.cta-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(to bottom, black, transparent 70%);
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 70%);
  pointer-events: none;
}

.cta-panel > * { position: relative; }

.cta-panel h2 { margin-bottom: 10px; }

.cta-sub { color: var(--muted); margin-bottom: 28px; }

.cta-panel .btn { max-width: 100%; }

.cta-note { color: var(--faint); font-size: 0.85rem; margin: 18px 0 0; }

.footer {
  border-top: 1px solid var(--border-soft);
  padding: 30px 0;
  color: var(--faint);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

@media (min-width: 640px) {
  .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; }
}

.footer-brand { display: flex; align-items: center; gap: 10px; }

.footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 20px; }
.footer a { color: var(--faint); text-decoration: none; transition: color 0.15s; }
.footer a:hover { color: var(--text); }
