/* Phase B3: features hub, feature pages and builders page. Uses the Phase A components in growvio.css. */

/* Shorter, plainer H1s than the default 6rem display title */
.fx-title {
  max-width: 17ch;
  font-size: clamp(2.35rem, 5.2vw, 4.4rem);
  line-height: 1;
}
.fx-title--wide { max-width: 22ch; }
.fx-hero-proof { display: grid; justify-items: center; }
.fx-hero-proof .proof-strip { width: 100%; max-width: 400px; }
.fx-price-line {
  margin: 16px 0 0;
  color: var(--accent);
  font-weight: 800;
  font-size: 1rem;
}

/* Section header with a plain intro line */
.fx-head { display: grid; gap: 10px; max-width: 760px; margin-bottom: 30px; }
.fx-head h2 {
  margin: 0;
  font-family: "Syne", sans-serif;
  font-size: clamp(1.7rem, 3.4vw, 2.7rem);
  line-height: 1.05;
  text-wrap: balance;
}
.fx-head p { margin: 0; color: var(--muted-dark); line-height: 1.6; font-size: 1.05rem; }
.section:not(.section-light):not(.section-paper) .fx-head p { color: rgba(247, 244, 236, 0.7); }

/* 3-4 benefit labels */
.fx-benefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.fx-benefits--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1060px) {
  .fx-benefits, .fx-benefits--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .fx-benefits, .fx-benefits--3 { grid-template-columns: 1fr; }
}

/* How it works with real timings */
.steps--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.steps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.step-time {
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--accent);
  background: rgba(54, 201, 133, 0.12);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.section-light .step-time, .section-paper .step-time { color: var(--accent-2); background: rgba(18, 107, 70, 0.1); }
.section-light .step h3, .section-paper .step h3 { color: var(--ink); }
.section-light .step p, .section-paper .step p { color: var(--muted-dark); }
@media (max-width: 1060px) {
  .steps--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .steps--3, .steps--4 { grid-template-columns: 1fr; }
  .steps--3 .step, .steps--4 .step { grid-template-columns: 44px 1fr; column-gap: 14px; row-gap: 6px; padding: 18px; }
  .steps--3 .step-num, .steps--4 .step-num { grid-row: 1 / span 3; }
  .steps--3 .step-time, .steps--4 .step-time { grid-column: 2; }
  .steps--3 .step h3, .steps--4 .step h3, .steps--3 .step p, .steps--4 .step p { grid-column: 2; }
}

/* Example text bubble (clearly labelled as example wording) */
.fx-sms {
  display: grid;
  gap: 8px;
  max-width: 440px;
  margin-top: 22px;
}
.fx-sms small {
  color: var(--muted-dark);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.fx-sms p {
  margin: 0;
  padding: 14px 16px;
  border-radius: 18px 18px 18px 4px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-dark);
  line-height: 1.5;
  box-shadow: 0 10px 26px rgba(20, 23, 19, 0.1);
}
.section:not(.section-light):not(.section-paper) .fx-sms small { color: rgba(247, 244, 236, 0.55); }

/* Proof tile: image beside the number */
.fx-proof-copy { display: grid; gap: 18px; min-width: 0; }
.fx-proof-copy h2 {
  margin: 0;
  font-family: "Syne", sans-serif;
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  line-height: 1.05;
  text-wrap: balance;
}
.fx-proof-copy p { margin: 0; color: rgba(247, 244, 236, 0.72); line-height: 1.6; }
.section-light .fx-proof-copy p, .section-paper .fx-proof-copy p { color: var(--muted-dark); }
.fx-proof-copy .stat-tiles { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.fx-honest { font-size: 0.92rem; }

/* Link row to the other systems */
.fx-related {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.fx-related a {
  display: grid;
  gap: 4px;
  height: 100%;
  padding: 16px 18px;
  border: 1px solid rgba(247, 244, 236, 0.12);
  border-radius: var(--radius-lg);
  background: rgba(247, 244, 236, 0.04);
  color: var(--text);
  transition: border-color 200ms var(--ease), transform 200ms var(--ease);
}
.fx-related a:hover { border-color: rgba(54, 201, 133, 0.5); transform: translateY(-2px); }
.fx-related strong { font-size: 1.02rem; }
.fx-related span { color: rgba(247, 244, 236, 0.66); font-size: 0.92rem; line-height: 1.45; }
.fx-related em { color: var(--accent); font-style: normal; font-weight: 800; font-size: 0.9rem; }

.fx-cta-wrap { padding-top: 0; }

/* Hub: one unit per system */
.fx-unit-promise {
  margin: 14px 0 0;
  color: var(--accent);
  font-size: 1.15rem;
  font-style: italic;
  font-weight: 600;
}
.section-light .fx-unit-promise, .section-paper .fx-unit-promise { color: var(--accent-2); }
.fx-unit-title {
  margin: 12px 0 0;
  font-family: "Syne", sans-serif;
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  line-height: 1;
  text-wrap: balance;
}
.fx-labels { display: grid; gap: 14px; margin: 22px 0 0; padding: 0; list-style: none; }
.fx-labels li { display: grid; gap: 2px; padding-left: 16px; border-left: 3px solid var(--accent); }
.section-light .fx-labels li, .section-paper .fx-labels li { border-left-color: var(--accent-2); }
.fx-labels strong { font-size: 1.05rem; }
.fx-labels span { color: rgba(247, 244, 236, 0.7); line-height: 1.5; }
.section-light .fx-labels span, .section-paper .fx-labels span { color: var(--muted-dark); }
.fx-unit-actions { margin-top: 24px; }
.fx-unit .feature-copy .fx-unit-title + .fx-unit-promise { margin-top: 12px; }
.fx-unit .feature-visual { min-height: 0; display: grid; justify-items: center; }
.fx-unit .feature-visual .proof-strip { width: 100%; max-width: 400px; }
.fx-unit .feature-row { align-items: center; }

/* Stat row on the hub and builders page */
.fx-proof-row { padding: clamp(40px, 6vw, 70px) 0; }

/* Sample app screen (drawn, not a real customer) */
.fx-app {
  display: grid;
  gap: 14px;
  width: 100%;
  max-width: 400px;
}
.fx-phone {
  padding: 14px;
  border: 1px solid rgba(247, 244, 236, 0.16);
  border-radius: 34px;
  background: #0b0e0d;
  box-shadow: var(--shadow);
}
.fx-phone-screen {
  display: grid;
  gap: 12px;
  padding: 18px 14px 14px;
  border-radius: 24px;
  background: linear-gradient(180deg, #131917, #0e1210);
}
.fx-app-title { margin: 0; font-size: 1.4rem; font-weight: 800; letter-spacing: -0.02em; color: var(--text); }
.fx-app-sub { margin: -6px 0 0; color: rgba(247, 244, 236, 0.6); font-size: 0.85rem; }
.fx-app-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(247, 244, 236, 0.1);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  background: rgba(247, 244, 236, 0.05);
  color: var(--text);
}
.fx-app-row strong { display: block; font-size: 0.95rem; }
.fx-app-row span { display: block; color: rgba(247, 244, 236, 0.62); font-size: 0.8rem; }
.fx-app-row em {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  color: #06130c;
  background: var(--accent);
  font-style: normal;
  font-size: 0.7rem;
  font-weight: 800;
}
.fx-app-row--warm { border-left-color: var(--warn); }
.fx-app-row--warm em { background: var(--warn); }
.fx-board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.fx-board div {
  display: grid;
  gap: 2px;
  padding: 10px 8px;
  border-radius: 10px;
  background: rgba(247, 244, 236, 0.06);
  text-align: center;
}
.fx-board strong { color: var(--accent); font-size: 1.15rem; }
.fx-board span { color: rgba(247, 244, 236, 0.7); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.fx-sample-note { margin: 0; color: rgba(247, 244, 236, 0.6); font-size: 0.85rem; text-align: center; }
.section-light .fx-sample-note, .section-paper .fx-sample-note { color: var(--muted-dark); }

/* Job-mix list on the builders page */
.fx-jobmix { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.fx-jobmix li {
  padding: 8px 12px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.95rem;
}
.fx-jobmix strong { color: var(--accent-2); margin-right: 4px; }

a.why-card { color: inherit; transition: border-color 200ms var(--ease), transform 200ms var(--ease); }
a.why-card:hover { transform: translateY(-2px); border-color: rgba(54, 201, 133, 0.5); }
.why-card .why-link { color: var(--accent); font-weight: 800; font-size: 0.92rem; }
.section-light .why-card .why-link, .section-paper .why-card .why-link { color: var(--accent-2); }

@media (max-width: 820px) {
  .fx-title { max-width: none; }
  .fx-head { margin-bottom: 22px; }
  .fx-unit .feature-row, .fx-unit .feature-row:nth-child(even) { grid-template-columns: 1fr; }
  .fx-unit .feature-row:nth-child(even) .feature-copy { order: 0; }
}

/* Example text shown in a hero slot */
.fx-sms--hero { margin: 0; max-width: 420px; padding: 22px; border: 1px solid rgba(247, 244, 236, 0.14); border-radius: var(--radius-lg); background: rgba(247, 244, 236, 0.05); }
.fx-sms--hero small { color: rgba(247, 244, 236, 0.6); }
.fx-sms--hero p { font-size: 1.1rem; }
