/* KWFS service page — bespoke styles. Loaded after styles.css. */

/* ============ HERO ============ */
.kwfs-hero {
  position: relative;
  padding-top: clamp(56px, 7vw, 96px);
  padding-bottom: clamp(64px, 8vw, 112px);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background:
    radial-gradient(1000px 500px at 85% -5%, rgba(79, 107, 255, 0.07), transparent 60%),
    var(--bg);
}
.kwfs-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}
@media (min-width: 1000px) {
  .kwfs-hero-grid { grid-template-columns: 1.1fr 1fr; }
}
.kwfs-hero-copy h1 {
  font-size: clamp(44px, 6.4vw, 84px);
  letter-spacing: -0.035em;
  line-height: 1.04;
  margin: 14px 0 22px;
}
.kwfs-hero-copy .lead {
  font-size: clamp(16.5px, 1.3vw, 18.5px);
  color: var(--fg-dim);
  max-width: 56ch;
  margin-bottom: 32px;
  line-height: 1.6;
}
.kwfs-hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.kwfs-hero-meta {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--fg-mute);
  text-transform: uppercase;
}
.kwfs-hero-meta .dot { color: var(--accent); margin-right: 4px; }

/* ----- Diagram ----- */
.kwfs-hero-visual {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.kwfs-diagram {
  position: relative;
  width: 100%;
  max-width: 520px;
  display: grid;
  gap: 22px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(400px 200px at 100% 0%, var(--accent-soft), transparent 60%),
    var(--bg-elev);
  box-shadow: 0 24px 60px -28px var(--accent-glow);
}
.kd-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
}
.kd-pill {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.kd-pill-label {
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.kd-pill-text {
  font-size: 15px;
  font-weight: 500;
  color: var(--fg);
}
.kd-pill-search { border-left: 3px solid var(--accent); }
.kd-pill-buy    { border-left: 3px solid var(--accent); }
.kd-pill-rank   { border-left: 3px solid var(--accent); }
.kd-arrow {
  align-self: center;
  font-family: "JetBrains Mono", monospace;
  color: var(--accent);
  font-size: 18px;
  transform: rotate(90deg);
}
.kd-rank-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}
.kd-rank-from {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  color: var(--fg-mute);
  font-weight: 600;
}
.kd-rank-to {
  font-family: "JetBrains Mono", monospace;
  font-size: 16px;
  color: var(--accent);
  font-weight: 700;
}
.kd-rank-line {
  height: 4px;
  border-radius: 2px;
  background: var(--bg-elev-2);
  overflow: hidden;
  position: relative;
}
.kd-rank-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--accent-soft), var(--accent));
  border-radius: 2px;
  animation: kd-fill 2.4s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
}
@keyframes kd-fill {
  from { transform: translateX(-100%); }
  to   { transform: translateX(0); }
}

/* ============ SECTIONS ============ */
.kwfs-section {
  padding-block: clamp(72px, 8vw, 128px);
  border-bottom: 1px solid var(--line);
}
.kwfs-section-alt {
  background:
    radial-gradient(900px 420px at 12% 0%, rgba(79, 107, 255, 0.045), transparent 60%),
    var(--bg-elev);
}

/* ============ CYCLE CARDS ============ */
.kwfs-cycle {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: clamp(48px, 5vw, 72px);
}
@media (min-width: 880px) { .kwfs-cycle { grid-template-columns: repeat(3, 1fr); } }
.kwfs-cycle-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 28px 32px;
  background: var(--bg-elev);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.kwfs-cycle-card > .mono {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}
.kwfs-cycle-card h3 { font-size: 19px; line-height: 1.3; margin: 4px 0; }
.kwfs-cycle-card p { color: var(--fg-dim); font-size: 15.5px; line-height: 1.6; margin: 0; }
.kwfs-cycle-card-broken {
  border-color: var(--line-strong);
  background:
    repeating-linear-gradient(135deg, transparent 0 12px, rgba(229, 72, 77, 0.04) 12px 13px),
    var(--bg-elev);
}
.kwfs-cycle-card-broken > .mono {
  background: rgba(229, 72, 77, 0.12);
  color: var(--danger);
}

/* ============ STEPS ============ */
.kwfs-steps {
  list-style: none;
  padding: 0;
  margin: clamp(48px, 5vw, 72px) 0 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.kwfs-step {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding-block: clamp(28px, 3vw, 40px);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 760px) {
  .kwfs-step { grid-template-columns: 140px 1fr; gap: 48px; align-items: start; }
}
.kwfs-step-num {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 600;
  padding-top: 6px;
}
.kwfs-step-body h3 { font-size: clamp(20px, 2vw, 26px); margin-bottom: 10px; line-height: 1.25; }
.kwfs-step-body p { color: var(--fg-dim); font-size: 16.5px; line-height: 1.7; margin: 0; max-width: 64ch; }

/* ============ WHY GRID ============ */
.kwfs-why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: clamp(48px, 5vw, 72px);
}
@media (min-width: 720px) { .kwfs-why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .kwfs-why-grid { grid-template-columns: repeat(4, 1fr); } }
.kwfs-why {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  background: var(--bg-elev);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.kwfs-why-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.kwfs-why h3 { font-size: 18px; line-height: 1.3; margin: 0; }
.kwfs-why p { font-size: 15px; line-height: 1.6; color: var(--fg-dim); margin: 0; }

/* ============ STATS STRIP ============ */
.kwfs-stats {
  padding-block: clamp(56px, 6vw, 88px);
  background:
    radial-gradient(900px 320px at 50% 0%, rgba(79, 107, 255, 0.07), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.kwfs-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 16px;
  text-align: left;
}
@media (min-width: 760px) { .kwfs-stats-grid { grid-template-columns: repeat(4, 1fr); } }
.kwfs-stat-num {
  font-size: clamp(36px, 4.4vw, 56px);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--fg);
  line-height: 1;
  margin-bottom: 10px;
}
.kwfs-stat-label {
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--fg-mute);
  text-transform: uppercase;
}

/* ============ CASES ============ */
.kwfs-cases {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: clamp(48px, 5vw, 72px);
}
@media (min-width: 760px) { .kwfs-cases { grid-template-columns: repeat(2, 1fr); } }
.kwfs-case {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 30px 30px;
  background: var(--bg-elev);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.kwfs-case-tag {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.kwfs-case-headline {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--fg);
}
.kwfs-case p {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--fg-dim);
  margin: 0;
}
.kwfs-case-result {
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--fg-mute);
  text-transform: uppercase;
}

/* ============ FLYWHEEL ============ */
.kwfs-flywheel {
  margin-top: clamp(48px, 5vw, 72px);
  display: grid;
  gap: 14px;
  max-width: 720px;
  margin-inline: auto;
}
.kwfs-fw-step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  align-items: start;
  padding: 22px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg);
}
.kwfs-fw-step-num {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}
.kwfs-fw-step h4 { font-size: 17px; margin: 0 0 6px; line-height: 1.3; font-weight: 600; }
.kwfs-fw-step p { color: var(--fg-dim); font-size: 14.5px; line-height: 1.55; margin: 0; }
.kwfs-fw-arrow {
  text-align: center;
  font-family: "JetBrains Mono", monospace;
  color: var(--accent);
  font-size: 16px;
}

/* ============ FINAL CTA ============ */
.kwfs-final {
  padding-block: clamp(72px, 8vw, 120px);
  background: var(--bg);
}
.kwfs-final-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 5vw, 72px) clamp(32px, 5vw, 64px);
  background:
    radial-gradient(600px 280px at 100% 0%, var(--accent-soft), transparent 60%),
    var(--bg-elev);
  text-align: left;
  display: grid;
  gap: 16px;
  max-width: 980px;
  margin-inline: auto;
}
.kwfs-final-card h2 {
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -0.025em;
  margin: 6px 0 4px;
  max-width: 22ch;
}
.kwfs-final-card p {
  color: var(--fg-dim);
  font-size: clamp(15.5px, 1.2vw, 17px);
  line-height: 1.6;
  margin: 0 0 16px;
  max-width: 60ch;
}
.kwfs-final-card .btn { justify-self: start; }

/* btn-lg helper if styles.css doesn't have it */
.btn-lg { padding: 14px 22px; font-size: 15px; }
