/* ============================================================
   home.css — Linear-clean homepage (below-fold)
   ============================================================ */

.home-section-inner {
  max-width: var(--content-max, 1120px);
  margin: 0 auto;
  padding: var(--home-section-py) var(--home-section-px);
}
.home-kicker {
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px;
}
.home-title {
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: var(--text);
  margin: 0 0 10px;
}
.home-lede {
  font-size: 1.02rem;
  color: var(--muted);
  max-width: var(--home-text-measure);
  margin: 0 0 36px;
  line-height: 1.6;
}

/* ── How it works: Linear-style product stage ───────────── */
.home-process {
  background: var(--bg);
  border-bottom: 1px solid var(--home-divider);
  padding-bottom: 0;
}
.home-process-intro {
  padding-bottom: 28px;
}
.home-process-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 40px;
  margin: 0;
  padding: 28px 0 8px;
  list-style: none;
  border-top: 1px solid var(--border);
  text-align: center;
}
.home-process-step {
  padding: 0;
  max-width: 280px;
  margin: 0 auto;
  width: 100%;
}
.home-process-idx {
  display: block;
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: .08em;
  margin: 0 0 12px;
  line-height: 1;
}
.home-process-step h3 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.home-process-step p {
  margin: 0 auto;
  color: var(--muted);
  line-height: 1.6;
  font-size: .95rem;
}
.home-how-premium-link {
  display: inline-block;
  margin-top: 10px;
  font-weight: 600;
  font-size: .9rem;
}

.home-stage {
  position: relative;
  overflow: hidden;
  margin: 0 var(--home-section-px);
  max-width: var(--content-max, 1120px);
  margin-left: auto;
  margin-right: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  aspect-ratio: 1200 / 640;
}
.home-stage-art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.home-stage-art.home-stage-art--light,
.home-stage-art.home-stage-art--dark {
  position: absolute;
  inset: 0;
}
@media (max-width: 860px) {
  .home-process-list {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 24px;
  }
  .home-process-step {
    max-width: 360px;
  }
  .home-stage {
    margin-left: var(--home-section-px);
    margin-right: var(--home-section-px);
  }
}

/* ── Life Leverage ──────────────────────────────────────── */
.home-leverage {
  background: var(--white);
  border-bottom: 1px solid var(--home-divider);
}
.home-leverage-inner {
  max-width: var(--content-max, 1120px);
  margin: 0 auto;
  padding: var(--home-section-py) var(--home-section-px);
}
.home-leverage-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 48px;
  align-items: end;
}
.home-leverage-title {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 650;
  letter-spacing: -0.035em;
  margin: 0 0 12px;
}
.home-leverage-desc {
  color: var(--muted);
  max-width: 52ch;
  margin: 0 0 20px;
  line-height: 1.65;
}
.home-leverage-pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: .875rem;
  color: var(--subtle);
}
.home-leverage-actions { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.home-leverage-note { margin: 0; font-size: .8rem; color: var(--muted); }
@media (max-width: 768px) {
  .home-leverage-panel { grid-template-columns: 1fr; gap: 24px; }
}

/* ── Growth bento ───────────────────────────────────────── */
.home-growth {
  background: var(--bg);
  border-bottom: 1px solid var(--home-divider);
}
.home-growth-inner {
  max-width: var(--content-max, 1120px);
  margin: 0 auto;
  padding: var(--home-section-py) var(--home-section-px);
}
.home-growth-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.home-growth-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  padding: 24px;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.home-growth-card[data-growth-area="health"],
.home-growth-card[data-growth-area="productivity"],
.home-growth-card[data-growth-area="money"] {
  grid-row: auto;
  background: var(--white);
}
.home-growth-media { display: none; }
.home-growth-body {
  padding: 0;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.home-growth-card-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 8px;
}
.home-growth-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--primary-soft);
  color: var(--primary);
  flex-shrink: 0;
  position: relative;
}
.home-growth-icon::before {
  content: "";
  display: block;
  width: 26px;
  height: 26px;
  background-color: currentColor;
  -webkit-mask: center / contain no-repeat;
  mask: center / contain no-repeat;
}
.home-growth-icon--health::before {
  -webkit-mask-image: url("/assets/img/categories/health/health-mark.svg?v=20260813");
  mask-image: url("/assets/img/categories/health/health-mark.svg?v=20260813");
}
.home-growth-icon--productivity::before {
  -webkit-mask-image: url("/assets/img/categories/productivity/productivity-mark.svg?v=20260813");
  mask-image: url("/assets/img/categories/productivity/productivity-mark.svg?v=20260813");
}
.home-growth-icon--money::before {
  -webkit-mask-image: url("/assets/img/categories/money/money-mark.svg?v=20260813");
  mask-image: url("/assets/img/categories/money/money-mark.svg?v=20260813");
}
.home-growth-icon svg {
  display: block;
  width: 26px;
  height: 26px;
}
.home-growth-card h3 {
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--text);
}
.home-growth-sub {
  color: var(--muted);
  margin: 0 0 14px;
  line-height: 1.55;
  font-size: 0.92rem;
}
.home-growth-tools {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0 0 4px;
  border-top: 1px solid var(--border);
}
.home-growth-chip {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text) !important;
  font-size: .9rem;
  font-weight: 500;
  text-decoration: none !important;
  background: transparent;
}
.home-growth-chip:link,
.home-growth-chip:visited,
.home-growth-chip:active {
  color: var(--text) !important;
}
.home-growth-chip:last-child { border-bottom: 0; }
.home-growth-chip:hover,
.home-growth-chip:focus-visible {
  color: var(--primary) !important;
  text-decoration: none !important;
}
.home-growth-chip:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}
.home-growth-chip-icon {
  display: inline-flex;
  width: 1.25rem;
  justify-content: center;
  line-height: 1.35;
  opacity: 0.9;
}
.home-growth-chip-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.home-growth-chip-title {
  font-weight: 600;
  letter-spacing: -0.01em;
}
.home-growth-chip-sub {
  font-size: 0.8rem;
  font-weight: 450;
  color: var(--muted);
  line-height: 1.4;
}
.home-growth-chip:hover .home-growth-chip-sub,
.home-growth-chip:focus-visible .home-growth-chip-sub {
  color: color-mix(in srgb, var(--primary) 70%, var(--muted));
}
.home-growth-actions {
  margin-top: auto;
  padding-top: 16px;
}
.home-growth-btn {
  min-height: 44px;
  width: 100%;
  justify-content: center;
}
@media (max-width: 960px) {
  .home-growth-grid { grid-template-columns: 1fr; }
}

/* ── Premium hubs (contained row, not full-bleed blast) ─── */
#premium-services-slider-mount {
  border-bottom: 1px solid var(--home-divider);
  background: var(--bg);
}
.premium-services-slider {
  max-width: var(--content-max, 1120px);
  margin: 0 auto;
  padding: var(--home-section-py) var(--home-section-px);
}
.premium-slider-viewport { position: relative; overflow: hidden; }
.premium-slider-track {
  display: flex;
  width: 300%;
  transition: transform 0.4s var(--ease-out);
}
.premium-slide {
  flex: 0 0 33.333%;
  width: 33.333%;
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 32px;
  align-items: center;
}
.premium-slide-media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-2);
  aspect-ratio: 4 / 3;
  position: relative;
}
.premium-slide-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.premium-slide-media img.fs-theme-img--light,
.premium-slide-media img.fs-theme-img--dark {
  position: absolute;
  inset: 0;
}
.premium-slide-placeholder { display: none; }
.premium-slide-content h3 {
  font-size: 1.35rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  margin: 0 0 10px;
}
.premium-slide-content p {
  color: var(--muted);
  margin: 0 0 20px;
  line-height: 1.6;
}
.premium-slide-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.premium-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.premium-slider-prev { left: 0; }
.premium-slider-next { right: 0; }
.premium-slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.premium-slider-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: var(--border);
  cursor: pointer;
}
.premium-slider-dot.is-active { background: var(--primary); }
@media (max-width: 768px) {
  .premium-slide { grid-template-columns: 1fr; }
  .premium-slide-media { aspect-ratio: 16 / 9; }
  .premium-slider-btn { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .premium-slider-track { transition: none; }
}

/* ── Continue ───────────────────────────────────────────── */
.home-continue {
  background: var(--white);
  border-bottom: 1px solid var(--home-divider);
}
.home-continue-inner {
  max-width: var(--content-max, 1120px);
  margin: 0 auto;
  padding: var(--home-section-py) var(--home-section-px);
}
.home-continue-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
}
.home-continue-copy {
  min-width: 0;
}
.home-continue-title {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 650;
  letter-spacing: -0.035em;
  margin: 0 0 10px;
}
.home-continue-lede {
  color: var(--muted);
  max-width: 46ch;
  margin: 0 0 22px;
  line-height: 1.6;
}
.home-continue-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}
.home-continue-points li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 550;
  letter-spacing: -0.01em;
  line-height: 1.4;
}
.home-continue-point-dot {
  width: 7px;
  height: 7px;
  margin-top: 0.45em;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}
.home-continue-notes {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.55;
  max-width: 52ch;
}
.home-continue-notes li {
  position: relative;
  padding-left: 16px;
  margin: 0 0 8px;
}
.home-continue-notes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--border);
}
.home-continue-notes li:last-child { margin-bottom: 0; }
.home-continue-premium { margin: 0 0 20px; }
.home-continue-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.home-continue-secondary-link {
  font-weight: 600;
  font-size: .9375rem;
  color: var(--text);
}
.home-continue-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg);
  aspect-ratio: 4 / 3;
}
.home-continue-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.home-continue-media img.home-stage-art--light,
.home-continue-media img.home-stage-art--dark,
.home-continue-media img.fs-theme-img--light,
.home-continue-media img.fs-theme-img--dark {
  position: absolute;
  inset: 0;
}
@media (max-width: 860px) {
  .home-continue-panel {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .home-continue-media {
    order: -1;
    aspect-ratio: 16 / 9;
    max-height: 280px;
  }
}
@media (max-width: 560px) {
  .home-continue-points { grid-template-columns: 1fr; }
}

/* ── FAQ accordion ──────────────────────────────────────── */
.home-guide {
  background: var(--bg);
  border-bottom: 1px solid var(--home-divider);
}
.home-guide-inner {
  max-width: var(--content-max, 1120px);
  margin: 0 auto;
  padding: var(--home-section-py) var(--home-section-px);
}
.home-guide-inner h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 650;
  letter-spacing: -0.035em;
  margin: 0 0 8px;
}
.home-guide-intro {
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 62ch;
}
.home-guide-faq-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 40px;
  align-items: start;
}
.home-guide-col {
  min-width: 0;
}
.home-guide-item { border-top: 1px solid var(--border); }
.home-guide-col .home-guide-item:last-child { border-bottom: 1px solid var(--border); }
.home-guide-q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  background: none;
  border: 0;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 550;
  text-align: left;
  color: var(--text);
  cursor: pointer;
}
.home-guide-q-icon {
  display: inline-flex;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.8;
  color: var(--muted);
}
.home-guide-q-icon svg {
  display: block;
  width: 16px;
  height: 16px;
}
.home-guide-q:hover .home-guide-q-icon,
.home-guide-item.is-open .home-guide-q-icon {
  opacity: 1;
  color: var(--primary);
}
.home-guide-q-label {
  flex: 1;
  min-width: 0;
  line-height: 1.35;
}
.home-guide-q .chevron {
  color: var(--muted);
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
  margin-left: auto;
}
.home-guide-a {
  display: none;
  padding: 0 0 16px;
  color: var(--muted);
  line-height: 1.65;
}
.home-guide-item.is-open .home-guide-a,
.home-guide-a[style*="display: block"] { display: block; }
@media (max-width: 768px) {
  .home-guide-faq-cols {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .home-guide-col + .home-guide-col .home-guide-item:first-child {
    border-top: 0;
  }
}

/* ── Quiet CTA ──────────────────────────────────────────── */
.cta-block.home-cta {
  background: var(--white);
  border-top: 0;
  padding: 0;
  text-align: left;
}
.home-cta-inner {
  max-width: var(--content-max, 1120px);
  margin: 0 auto;
  padding: var(--home-section-py) var(--home-section-px);
}
.home-cta-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  align-items: center;
}
.home-cta-sparky {
  margin: 0;
  display: flex;
  justify-content: center;
}
.home-cta-sparky-img {
  width: 300px;
  height: 300px;
  object-fit: contain;
}
.home-cta-copy h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  color: var(--text);
  margin: 0 0 8px;
}
.home-cta-sub {
  color: var(--muted);
  margin: 0 0 20px;
  max-width: 46ch;
}
@media (max-width: 640px) {
  .home-cta-layout { grid-template-columns: 1fr; }
  .home-cta-sparky { display: none; }
}

/* ── Blog ───────────────────────────────────────────────── */
#all-tools-blog {
  padding: var(--home-section-py) 0;
  border-top: 1px solid var(--home-divider);
  background: var(--bg);
}
#all-tools-blog .section-inner {
  max-width: var(--content-max, 1120px);
  margin: 0 auto;
  padding: 0 var(--home-section-px);
}
#all-tools-blog .related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
#all-tools-blog .tool-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: stretch;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: none;
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  min-height: 0;
}
#all-tools-blog .tool-card:hover {
  text-decoration: none;
  border-color: color-mix(in srgb, var(--primary) 35%, var(--border));
}
#all-tools-blog .blog-card-img {
  aspect-ratio: 16 / 10;
  border-radius: 0;
  overflow: hidden;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
#all-tools-blog .blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
#all-tools-blog .tool-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
  padding: 16px 18px 6px;
  color: var(--text);
}
#all-tools-blog .tool-card p {
  margin: 0;
  padding: 0 18px 8px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
#all-tools-blog .tool-card .arrow {
  color: var(--primary);
  font-size: .85rem;
  font-weight: 600;
  padding: 0 18px 16px;
  margin-top: auto;
}
@media (max-width: 960px) {
  #all-tools-blog .related-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  #all-tools-blog .related-grid { grid-template-columns: 1fr; }
}

.home-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s var(--ease-out), transform .55s var(--ease-out);
}
.home-reveal.is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .home-reveal { opacity: 1; transform: none; }
}

/* Theme marketing art swap (final) */
img.fs-theme-img--dark,
img.home-stage-art--dark { display: none !important; }
html[data-theme="dark"] img.fs-theme-img--light,
html[data-theme="dark"] img.home-stage-art--light { display: none !important; }
html[data-theme="dark"] img.fs-theme-img--dark,
html[data-theme="dark"] img.home-stage-art--dark { display: block !important; }
