/* ==========================================================================
   SparrowiMailer · site.css · v7
   Extends global.css · For marketing pages (home, pricing, about, support,
   faq, blogs, blog/*, auth)
   ========================================================================== */

/* ---------------- Page hero ---------------- */
.page-hero {
  padding: clamp(48px, 9vw, 110px) 0 clamp(40px, 7vw, 80px);
  background: var(--c-bg);
  position: relative;
  overflow: hidden;
}
.page-hero.hero-bold {
  background: radial-gradient(1100px 600px at 100% 0%, rgba(124,58,237,.10), transparent 60%),
              radial-gradient(900px 500px at 0% 100%, rgba(250,204,21,.10), transparent 60%),
              var(--c-bg);
}
.hero-bold--compact { padding-block: clamp(36px, 6vw, 70px) clamp(28px, 5vw, 56px); }
.page-hero__title, .hero-bold__title {
  font-family: var(--f-display);
  font-size: clamp(32px, 6vw, 60px);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.05;
  color: var(--c-ink);
  margin: 12px auto 18px;
  max-width: 22ch;
}
.page-hero__sub {
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--c-text-muted);
  max-width: 60ch;
  margin: 0 auto var(--s-6);
}
/* When hero container is centered, force inner items centered too */
.page-hero .container[style*="text-align:center"] .page-hero__title,
.page-hero .container[style*="text-align:center"] .hero-bold__title,
.page-hero .container[style*="text-align:center"] .page-hero__sub {
  margin-left: auto;
  margin-right: auto;
}
.page-hero .container[style*="text-align:center"] .hero-bold__cta {
  justify-content: center;
}
.hero-bold__cta { display: inline-flex; flex-wrap: wrap; gap: var(--s-2); }

.hero-bold__media {
  margin-top: var(--s-7);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-xl);
  border: 1px solid var(--c-line);
  position: relative;
  aspect-ratio: 16/9;
}
.hero-bold__media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------------- Logo cloud ---------------- */
.logo-cloud {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-5);
  align-items: center;
  opacity: .8;
}
@media (min-width: 481px) { .logo-cloud { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 769px) { .logo-cloud { grid-template-columns: repeat(6, 1fr); } }
.logo-cloud > * { max-width: 110px; margin: 0 auto; opacity: .55; transition: opacity var(--t); }
.logo-cloud > *:hover { opacity: 1; }

/* ---------------- Feature cards ---------------- */
.feat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
}
@media (min-width: 481px) { .feat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1025px) { .feat-grid { grid-template-columns: repeat(3, 1fr); } }
.feat-card {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  box-shadow: var(--sh-sm);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.feat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-md);
  border-color: var(--c-purple);
}
.feat-card__icon {
  width: 48px; height: 48px;
  border-radius: var(--r-md);
  background: var(--c-purple-50); color: var(--c-purple);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: var(--s-3);
}
.feat-card h4 { margin-bottom: 6px; font-size: 18px; }
.feat-card p { color: var(--c-text-muted); font-size: 14.5px; margin: 0; }

/* ---------------- Step cards ---------------- */
.step-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
}
@media (min-width: 769px) { .step-grid { grid-template-columns: repeat(3, 1fr); } }
.step-card {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  position: relative;
}
.step-card__num {
  font-family: var(--f-display);
  font-size: 40px; font-weight: 800;
  color: var(--c-purple);
  opacity: .25;
  position: absolute; top: 16px; right: 20px;
}
.step-card h4 { margin-bottom: 8px; }

/* ---------------- Pricing cards ---------------- */
.price-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
}
@media (min-width: 481px) { .price-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1025px) { .price-grid { grid-template-columns: repeat(3, 1fr); } }
.price-card {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-xl);
  padding: var(--s-7);
  box-shadow: var(--sh-sm);
  display: flex; flex-direction: column;
  position: relative;
}
.price-card--popular {
  border: 2px solid var(--c-purple);
  box-shadow: var(--sh-lg);
  transform: translateY(0);
}
@media (min-width: 1025px) {
  .price-card--popular { transform: translateY(-8px); }
}
.price-card__pill {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--c-purple); color: #fff;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  padding: 5px 14px;
  border-radius: var(--r-pill);
}
.price-card__name { font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--c-text-muted); margin-bottom: 8px; }
.price-card__price {
  font-family: var(--f-display);
  font-size: 44px; font-weight: 800;
  color: var(--c-ink); line-height: 1;
}
.price-card__price small { font-weight: 500; font-size: 14px; color: var(--c-text-muted); }
.price-card__features { list-style: none; padding: 0; margin: var(--s-5) 0; display: grid; gap: 10px; }
.price-card__features li {
  font-size: 14px;
  padding-left: 26px;
  position: relative;
  color: var(--c-text);
}
.price-card__features li::before {
  content: ''; position: absolute; left: 0; top: 3px;
  width: 18px; height: 18px;
  background: var(--c-purple-50); border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' stroke='%237c3aed' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}
.price-card__cta { margin-top: auto; }

.price-toggle {
  display: inline-flex; gap: 2px;
  background: var(--c-bg-alt);
  border-radius: var(--r-pill);
  padding: 4px;
  margin: 0 auto var(--s-6);
}
.price-toggle__btn {
  padding: 8px 18px;
  font-size: 13.5px; font-weight: 600;
  color: var(--c-text-muted);
  background: transparent; border: none;
  border-radius: var(--r-pill);
  cursor: pointer;
  min-height: 36px;
}
.price-toggle__btn.is-active {
  background: var(--c-ink); color: #fff;
  box-shadow: var(--sh-sm);
}

/* ---------------- Testimonials ---------------- */
.tess-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
}
@media (min-width: 769px) { .tess-grid { grid-template-columns: repeat(3, 1fr); } }
.tess-card {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  box-shadow: var(--sh-sm);
}
.tess-card__quote {
  font-size: 16px; line-height: 1.55;
  color: var(--c-ink);
  margin-bottom: var(--s-4);
}
.tess-card__meta { display: flex; align-items: center; gap: 12px; }
.t-avatar-img {
  width: 44px; height: 44px;
  border-radius: var(--r-pill);
  object-fit: cover;
  flex-shrink: 0;
}
.tess-card__name { font-weight: 700; font-size: 14px; color: var(--c-ink); }
.tess-card__role { font-size: 12.5px; color: var(--c-text-muted); }

/* ---------------- FAQ accordion ---------------- */
.faq-list {
  border-top: 1px solid var(--c-line);
}
.faq-item {
  border-bottom: 1px solid var(--c-line);
}
.faq-item__btn {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-3);
  padding: var(--s-4) 0;
  background: transparent; border: none;
  font-size: 16px; font-weight: 600;
  color: var(--c-ink);
  text-align: left;
  cursor: pointer;
  min-height: 56px;
}
.faq-item__btn i { transition: transform var(--t); color: var(--c-purple); }
.faq-item.is-open .faq-item__btn i { transform: rotate(45deg); }
.faq-item__body {
  display: none;
  padding: 0 0 var(--s-4);
  font-size: 14.5px;
  color: var(--c-text-muted);
}
.faq-item.is-open .faq-item__body { display: block; }

/* ---------------- Blog ---------------- */
.blog-feature-v5 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-sm);
  margin-bottom: var(--s-6);
}
@media (min-width: 769px) {
  .blog-feature-v5 { grid-template-columns: 1.2fr 1fr; gap: 0; }
}
.blog-feature-v5__media {
  aspect-ratio: 16/10;
  background-size: cover; background-position: center;
}
.blog-feature-v5__body { padding: var(--s-6); display: flex; flex-direction: column; justify-content: center; }
.blog-feature-v5__body h2 { font-size: clamp(22px, 3vw, 30px); }
.blog-feature-v5__body p { color: var(--c-text-muted); font-size: 15px; }

.blog-card-v5 {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--sh-sm);
  transition: transform var(--t), box-shadow var(--t);
}
.blog-card-v5:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }
.blog-card-v5__media {
  aspect-ratio: 16/10;
  background-size: cover; background-position: center;
}
.blog-card-v5__body { padding: var(--s-5); display: flex; flex-direction: column; gap: 8px; flex: 1; }
.blog-card-v5__body h3 { font-size: 18px; margin: 0; line-height: 1.3; }
.blog-card-v5__body p { color: var(--c-text-muted); font-size: 14px; margin: 0; }
.blog-card-v5__meta { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--c-text-muted); margin-top: auto; padding-top: var(--s-3); border-top: 1px solid var(--c-line-soft); }

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
}
@media (min-width: 481px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1025px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------------- Blog post ---------------- */
/* High-specificity selectors so legacy sparrow.css cannot override these. */
section.post-hero,
body section.post-hero {
  background: linear-gradient(135deg, #4c1d95 0%, #6d28d9 50%, #7c3aed 100%) !important;
  color: #fff !important;
  padding: clamp(48px, 8vw, 80px) 0 !important;
  border-bottom: none !important;
}
section.post-hero h1,
body section.post-hero h1,
section.post-hero .post-hero__title {
  color: #fff !important;
  font-size: clamp(28px, 4.5vw, 44px);
  max-width: 22ch;
  text-shadow: 0 2px 24px rgba(124,58,237,.5);
}
section.post-hero .eyebrow,
body section.post-hero .eyebrow {
  background: rgba(255,255,255,.18) !important;
  color: #fff !important;
  border-color: rgba(255,255,255,.25) !important;
}
section.post-hero .eyebrow .dot { background: var(--c-gold) !important; }
section.post-hero .post-meta,
body section.post-hero .post-meta {
  display: flex; align-items: center; gap: 12px; margin-top: var(--s-4);
  color: rgba(255,255,255,.85) !important; font-size: 14px;
}
section.post-hero .post-meta a,
section.post-hero .post-meta span { color: rgba(255,255,255,.9) !important; }
section.post-hero .post-meta .t-avatar-img { border: 2px solid rgba(255,255,255,.3); }

.post-cover--photo {
  margin: calc(-1 * var(--s-7)) auto var(--s-6);
  max-width: 900px;
  aspect-ratio: 16/9;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-lg);
  background-size: cover; background-position: center;
  border: 6px solid #fff;
}

.post-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6);
  max-width: 1080px;
  margin: 0 auto;
}
@media (min-width: 1025px) {
  .post-layout { grid-template-columns: 220px 1fr; }
}

.post-toc {
  display: none;
}
@media (min-width: 1025px) {
  .post-toc { display: block; position: sticky; top: 88px; align-self: start; }
}
.post-toc h6 { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--c-text-muted); margin-bottom: 12px; }
.post-toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; counter-reset: toc; }
.post-toc ol li { counter-increment: toc; }
.post-toc ol a { font-size: 13.5px; color: var(--c-text-muted); display: block; padding: 5px 0; }
.post-toc ol a::before { content: counter(toc, decimal-leading-zero) "  "; color: var(--c-purple); font-family: var(--f-mono); }
.post-toc ol a:hover { color: var(--c-ink); }

.post-body { font-size: 16px; line-height: 1.7; color: var(--c-text); }
.post-body h2 { margin-top: var(--s-7); font-size: 26px; scroll-margin-top: 90px; }
.post-body h3 { margin-top: var(--s-6); font-size: 20px; }
.post-body p { margin-bottom: var(--s-4); }
.post-body ul, .post-body ol { padding-left: 22px; margin-bottom: var(--s-4); }
.post-body li { margin-bottom: 6px; }
.post-body blockquote {
  margin: var(--s-5) 0;
  padding: 16px 20px;
  border-left: 4px solid var(--c-purple);
  background: var(--c-purple-50);
  font-style: italic;
  color: var(--c-ink);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}
.post-figure { margin: var(--s-5) 0; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-md); }
.post-figure img { width: 100%; display: block; }

.post-share { display: flex; gap: 8px; margin: var(--s-6) 0; padding: var(--s-4); background: var(--c-bg-alt); border-radius: var(--r-md); align-items: center; flex-wrap: wrap; }
.post-share span { font-weight: 600; font-size: 13px; }

.related-strip { margin-top: var(--s-9); padding-top: var(--s-7); border-top: 1px solid var(--c-line); }

/* ---------------- Auth pages ---------------- */
.auth-wrap {
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  grid-template-columns: 1fr;
  background: var(--c-bg);
}
@media (min-width: 769px) {
  .auth-wrap { grid-template-columns: 1fr 1fr; }
}
.auth-form-pane {
  padding: var(--s-7) var(--s-5);
  display: flex; flex-direction: column; justify-content: center;
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
}
@media (min-width: 769px) {
  .auth-form-pane { padding: var(--s-9) var(--s-7); margin: 0; max-width: none; }
}
.auth-form-pane h1 { font-size: 28px; margin-bottom: 6px; }
.auth-form-pane .lead { color: var(--c-text-muted); margin-bottom: var(--s-5); }
.auth-side {
  display: none;
  background: linear-gradient(135deg, var(--c-purple-700), var(--c-purple));
  color: #fff;
  padding: var(--s-9) var(--s-7);
  position: relative;
  overflow: hidden;
}
@media (min-width: 769px) {
  .auth-side { display: flex; flex-direction: column; justify-content: center; }
}
.auth-side h2 { color: #fff; }
.auth-side blockquote { font-size: 18px; line-height: 1.5; margin: var(--s-5) 0; color: rgba(255,255,255,.95); border: none; padding: 0; }

.auth-divider {
  display: flex; align-items: center; gap: var(--s-3);
  margin: var(--s-4) 0;
  color: var(--c-text-muted);
  font-size: 12.5px;
}
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--c-line); }

.btn-google {
  background: #fff; color: var(--c-ink);
  border: 1px solid var(--c-line);
  width: 100%;
  font-weight: 600;
}
.btn-google:hover { background: var(--c-bg-alt); }

/* ---------------- CTA band ---------------- */
.cta-band {
  background: var(--c-ink);
  color: #fff;
  border-radius: var(--r-xl);
  padding: var(--s-7) var(--s-5);
  text-align: center;
  position: relative; overflow: hidden;
}
.cta-band h2 { color: #fff; font-size: clamp(24px, 4vw, 36px); }
.cta-band p { color: #c8c1dc; max-width: 50ch; margin: 0 auto var(--s-5); }
@media (min-width: 769px) {
  .cta-band { padding: var(--s-9) var(--s-8); }
}

/* ============================================================
   v8 — 13" laptop tightening + button safety nets
   ============================================================ */

/* Safety net: ensure ghost & primary hero buttons always have visible text */
.page-hero .btn-pill,
.page-hero .btn {
  color: var(--c-ink, #0b0716) !important;
}
.page-hero .btn-pill--primary,
.page-hero .btn-pill--dark,
.page-hero .btn-pill--gold {
  /* primary/dark keep their own foreground */
}
.page-hero .btn-pill--primary { color: #fff !important; }
.page-hero .btn-pill--dark    { color: #fff !important; }
.page-hero .btn-pill--gold    { color: var(--c-ink, #0b0716) !important; }
.page-hero .btn-pill--ghost {
  color: var(--c-ink, #0b0716) !important;
  border-color: var(--c-line, #e5e7eb) !important;
  background: #fff !important;
}
.page-hero .btn-pill--ghost:hover {
  background: var(--c-bg-alt, #faf9fb) !important;
  border-color: var(--c-ink, #0b0716) !important;
}

/* 13" laptop range (1024-1366) — tighten hero, ensure buttons fit, prevent CTA wrap break */
@media (min-width: 1025px) and (max-width: 1366px) {
  .page-hero,
  .page-hero.hero-bold {
    padding-block: clamp(40px, 5vw, 64px) clamp(32px, 4.5vw, 50px);
  }
  .page-hero__title,
  .hero-bold__title {
    font-size: clamp(34px, 4.4vw, 50px) !important;
    line-height: 1.07;
    max-width: 18ch;
  }
  .page-hero__sub {
    font-size: 15px;
    max-width: 56ch;
  }
  .hero-bold__cta {
    gap: 10px;
  }
  .hero-bold__cta .btn,
  .hero-bold__cta .btn-pill {
    padding: 11px 20px;
    font-size: 14px;
  }
  .hero-bold__media {
    margin-top: var(--s-5);
  }
  /* Slightly narrower container so right edge breathes */
  .page-hero .container {
    max-width: 1140px;
  }
}
