/* ==================================================
   HOME — editorial landing, scoped to body.sf-home-page
   Loaded after public.css. One idea per section, generous
   whitespace, the domain bar is the whole hero.
================================================== */

/* ---- discipline: no decorative motion, content visible without JS ---- */
.sf-home-page .btn-primary::before { display: none !important; }
.sf-home-page .sf-hero::before { display: none; }
.sf-home-page .sf-status-dot.is-idle { animation: none; box-shadow: none; }
.sf-home-page .reveal,
.sf-home-page .reveal-stagger > * {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
  transition: none !important;
}

/* header CTA stays discreet — the hero already is the scanner */
.sf-home-page .sf-header .sf-header-right .btn-primary {
  background: transparent;
  color: var(--sf-fg);
  border-color: var(--sf-border-strong);
}
.sf-home-page .sf-header .sf-header-right .btn-primary:hover {
  background: transparent;
  border-color: var(--sf-fg);
}

/* section rhythm */
.sf-home-page main > section.sf-section { padding: 96px 0; }
.sf-home-page .sf-hero + section.sf-section { padding-top: 40px; }
.sf-home-page .sf-section h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  line-height: 1.12;
  letter-spacing: -0.028em;
  max-width: 18ch;
}
.sf-home-page .sf-section p.sub { font-size: 1.05rem; max-width: 560px; }

/* ==================================================
   01 — HERO / DOMAIN BAR
================================================== */
.sf-home-page .sf-hero.is-scanner {
  padding: 64px 0 76px;
  text-align: center;
}
.sf-home-page .sf-hero.is-scanner .wrap {
  max-width: 860px;
  min-height: 0;
}
.sf-home-page .sf-hero.is-scanner .sf-hero-copy { max-width: 820px; margin: 0 auto; }
.sf-home-page .sf-hero.is-scanner h1 {
  font-size: clamp(1.85rem, 3.9vw, 2.8rem);
  line-height: 1.12;
  letter-spacing: -0.032em;
  margin: 22px auto 20px;
  max-width: 720px;
}
.sf-home-page .sf-hero.is-scanner p.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.18rem);
  line-height: 1.6;
  color: var(--sf-muted);
  max-width: 600px;
  margin: 0 auto 34px;
}

/* the bar: two clear elements — a field to type in, a button to send ---- */
.sf-home-page .sf-hero.is-scanner .sf-scanner,
.sf-home-page .sf-close .sf-scanner { max-width: 720px; margin: 0 auto; width: 100%; }
.sf-home-page .sf-scanner-row {
  gap: 12px;
  align-items: stretch;
}
.sf-home-page .sf-scanner-row input[type="text"] {
  flex: 1;
  min-width: 0;
  padding: 17px 20px;
  font-size: 16px;
  background: var(--sf-surface);
  border: 1px solid var(--sf-border-strong);
  border-radius: var(--sf-radius-md);
  box-shadow: 0 1px 2px rgba(17, 17, 19, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.sf-home-page .sf-scanner-row input[type="text"]:focus {
  outline: none;
  border-color: var(--sf-primary);
  box-shadow: 0 0 0 3px var(--sf-primary-bg);
}
.sf-home-page .sf-scanner-row .btn.btn-primary {
  flex: none;
  background: var(--sf-primary);
  color: #fff;
  border-radius: var(--sf-radius-md);
  padding: 16px 30px;
  font-size: 15px;
}
.sf-home-page .sf-scanner-row .btn.btn-primary:hover { background: var(--sf-primary-hover); }
.sf-home-page .sf-scanner-hint {
  margin-top: 14px;
  font-size: 13px;
  color: var(--sf-muted-2);
}
.sf-home-page .sf-scanner-competitors { max-width: 720px; margin-left: auto; margin-right: auto; }

@media (max-width: 560px) {
  .sf-home-page .sf-scanner-row {
    flex-direction: column;
    gap: 10px;
  }
  .sf-home-page .sf-scanner-row input[type="text"] { width: 100%; }
  .sf-home-page .sf-scanner-row .btn.btn-primary { width: 100%; }
}

/* ==================================================
   02 — THE PROBLEM (editorial)
================================================== */
.sf-problem .wrap { max-width: 1120px; }
.sf-problem-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 72px;
  align-items: center;
}
.sf-problem-statement {
  font-size: clamp(1.8rem, 3.2vw, 2.7rem);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.03em;
  margin: 0;
  max-width: 15ch;
}
.sf-problem-statement em {
  font-style: normal;
  color: var(--sf-primary);
}
.sf-problem-body > p {
  margin: 0 0 20px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--sf-muted);
}
.sf-problem-body > p:first-child { color: var(--sf-fg); }
.sf-problem-list {
  list-style: none;
  margin: 26px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--sf-border);
}
.sf-problem-list li {
  padding: 14px 0;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--sf-fg);
  border-top: 1px solid var(--sf-border);
}
.sf-problem-list li:first-child { border-top: 0; }
.sf-problem-list li span {
  display: block;
  margin-top: 5px;
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--sf-muted);
}

/* ==================================================
   03 — WHAT THE AUDIT LOOKS AT
================================================== */
.sf-scope .wrap { max-width: 1180px; }
.sf-scope-rows {
  margin-top: 8px;
  border-top: 1px solid var(--sf-border-strong);
}
.sf-scope-row {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 48px;
  padding: 34px 0;
  border-bottom: 1px solid var(--sf-border);
}
.sf-scope-row-label .k {
  display: block;
  font-family: var(--sf-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sf-primary);
  margin: 0 0 8px;
}
.sf-scope-row-label p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--sf-muted);
}
.sf-scope-items {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 0;
  font-size: 1.06rem;
  line-height: 1.7;
  color: var(--sf-fg);
}
.sf-scope-items span:not(:last-child)::after {
  content: "·";
  margin: 0 12px;
  color: var(--sf-muted-2);
}

/* ==================================================
   04 — PIPELINE / TIMELINE
================================================== */
.sf-home-page #pipeline::before { display: none; }
.sf-home-page #pipeline .sf-section-head { margin-bottom: 64px; }
.sf-home-page #pipeline .wrap { max-width: 1180px; }
.sf-home-page #pipeline h2 { max-width: 20ch; }

.sf-flow {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
  position: relative;
}
.sf-flow::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 5px;
  height: 1px;
  background: var(--sf-border-strong);
}
.sf-flow-step { position: relative; padding-right: 12px; }
.sf-flow-step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--sf-surface);
  border: 1px solid var(--sf-border-strong);
}
.sf-flow-step:first-child::before { background: var(--sf-primary); border-color: var(--sf-primary); }

/* a quiet loop: the six markers fill one after another, like the pipeline
   being built, then reset. The only motion on the page — kept slow and small. */
@keyframes sfFlowFill {
  0%       { background: var(--sf-surface); border-color: var(--sf-border-strong); box-shadow: 0 0 0 0 rgba(109, 91, 255, 0); }
  6%       { background: var(--sf-primary); border-color: var(--sf-primary); box-shadow: 0 0 0 6px var(--sf-primary-bg); }
  15%, 78% { background: var(--sf-primary); border-color: var(--sf-primary); box-shadow: 0 0 0 0 rgba(109, 91, 255, 0); }
  90%, 100%{ background: var(--sf-surface); border-color: var(--sf-border-strong); box-shadow: 0 0 0 0 rgba(109, 91, 255, 0); }
}
.sf-home-page .sf-flow-step::before { animation: sfFlowFill 6.5s ease-in-out infinite; }
.sf-home-page .sf-flow-step:nth-child(1)::before { animation-delay: 0s; }
.sf-home-page .sf-flow-step:nth-child(2)::before { animation-delay: 0.45s; }
.sf-home-page .sf-flow-step:nth-child(3)::before { animation-delay: 0.9s; }
.sf-home-page .sf-flow-step:nth-child(4)::before { animation-delay: 1.35s; }
.sf-home-page .sf-flow-step:nth-child(5)::before { animation-delay: 1.8s; }
.sf-home-page .sf-flow-step:nth-child(6)::before { animation-delay: 2.25s; }
@media (prefers-reduced-motion: reduce) {
  .sf-home-page .sf-flow-step::before { animation: none; }
}

.sf-flow-num {
  display: block;
  font-family: var(--sf-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--sf-muted-2);
  margin: 26px 0 10px;
}
.sf-flow-step h3 {
  font-size: 1.02rem;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.sf-flow-step p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--sf-muted);
}

/* ==================================================
   04b — GROWTH / 90-DAY ORGANIC CHART
   The chart SVG animates itself in via `.reveal.is-visible`
   in public.css; on the editorial home the whole page is
   motion-free, so pin every chart element to its end state.
================================================== */
.sf-home-page #growth .wrap { max-width: 1120px; }
.sf-home-page #growth .sf-dash { margin-top: 8px; }
.sf-home-page .sf-dash-chart .area-fill { opacity: 1 !important; transition: none !important; }
.sf-home-page .sf-dash-chart .curve-line,
.sf-home-page .sf-dash-chart .curve-line-2 {
  stroke-dashoffset: 0 !important;
  animation: none !important;
}
.sf-home-page .sf-dash-chart .curve-dot {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}
.sf-home-page .sf-dash-chart .curve-halo { display: none !important; }
.sf-home-page #growth .sf-section-foot-note { margin-top: 22px; }

/* ==================================================
   05 — PRICING — three distinct cards with real air
   between them, the middle one lifted. The earlier
   "seamless single box" made the cards feel cramped
   and its overflow:hidden sliced the featured badge.
================================================== */
.sf-home-page #pricing .wrap { max-width: 1140px; }
.sf-home-page .pricing-grid {
  gap: 22px;
  padding-top: 16px;            /* headroom so the floating badge is never clipped */
  align-items: stretch;
}
.sf-home-page .pricing-card {
  border: 1px solid var(--sf-border);
  border-radius: var(--sf-radius-lg);
  box-shadow: none;
  background: var(--sf-surface);
  padding: 40px 32px 32px;
}
.sf-home-page .pricing-card.featured {
  border-color: var(--sf-primary);
  background: var(--sf-primary-bg);
  box-shadow: 0 20px 50px -30px rgba(109, 91, 255, 0.45);
}
.sf-home-page .pricing-card .pricing-badge {
  position: absolute;
  top: -13px;
  left: 32px;
  background: var(--sf-primary);
}
/* a touch more breathing room between the blocks inside each card */
.sf-home-page .pricing-name { margin-bottom: 18px; }
.sf-home-page .pricing-price { margin-bottom: 18px; }
.sf-home-page .pricing-tagline { margin-bottom: 22px; }
.sf-home-page .pricing-highlight { margin-bottom: 22px; }
.sf-home-page .pricing-features-details { margin-bottom: 18px; }
.sf-home-page .pricing-microline { margin-top: 4px; }

.sf-home-page .sf-pricing-steps { display: none; }
.sf-home-page .sf-quality-badges { display: none; }

@media (max-width: 900px) {
  .sf-home-page .pricing-grid { grid-template-columns: 1fr; max-width: 440px; gap: 30px; }
}

/* ==================================================
   06 — FINAL CTA (mirror of the hero)
================================================== */
.sf-home-page #contact { padding: 96px 0; }
.sf-home-page .sf-close {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.sf-home-page .sf-close h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  line-height: 1.12;
  letter-spacing: -0.028em;
  margin: 0 auto 30px;
  max-width: 16ch;
}
.sf-home-page .sf-close .sf-scanner { margin: 0 auto 16px; }
.sf-home-page .sf-close-secondary {
  margin: 0;
  font-size: 0.9rem;
  color: var(--sf-muted-2);
}
.sf-home-page .sf-close-secondary a {
  color: var(--sf-muted);
  text-underline-offset: 3px;
}
.sf-home-page .sf-close-secondary a:hover { color: var(--sf-fg); }

/* ==================================================
   RESPONSIVE
================================================== */
@media (max-width: 960px) {
  .sf-problem-grid { grid-template-columns: 1fr; gap: 36px; }
  .sf-problem-statement { max-width: 22ch; }
  .sf-flow { grid-template-columns: 1fr; gap: 0; }
  .sf-flow::before { left: 5px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .sf-flow-step { padding: 20px 0 20px 30px; }
  .sf-flow-step::before { top: 22px; }
  .sf-flow-num { margin-top: 0; }
  .sf-scope-row { grid-template-columns: 1fr; gap: 16px; padding: 28px 0; }
}

@media (max-width: 640px) {
  .sf-home-page main > section.sf-section { padding: 68px 0; }
  .sf-home-page .sf-hero.is-scanner { padding: 44px 0 56px; }
  .sf-scope-items { font-size: 0.98rem; }
}

@media (prefers-reduced-motion: reduce) {
  .sf-home-page .sf-scanner-row { transition: none; }
}
