/* ==========================================================================
   XpressGrow — home page
   ========================================================================== */

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding-block: clamp(56px, 9vw, 104px) clamp(64px, 9vw, 112px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
/* A single, restrained light source — not a gradient wash. */
.hero::after {
  content: "";
  position: absolute;
  top: -32%;
  left: 46%;
  width: 62rem;
  height: 42rem;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(var(--brand-rgb), 0.16), transparent 72%);
  pointer-events: none;
}
.hero-in {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.88fr);
  gap: clamp(36px, 5vw, 68px);
  align-items: start;
}
.hero-h1 { margin-top: 22px; }
.hero-accent {
  background: linear-gradient(96deg, var(--accent-a) 8%, var(--accent-b) 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lede { margin-top: 22px; }
.ink { color: var(--ink); font-weight: 550; }
.hero-cta { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }

.hero-proof {
  display: flex;
  gap: 34px;
  margin: 44px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  flex-wrap: wrap;
}
.hero-proof li { display: flex; flex-direction: column; gap: 5px; }
.hero-proof .num {
  font-family: var(--mono);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.hero-proof .num i { font-style: normal; font-size: 0.82rem; color: var(--ink-3); margin-left: 2px; }
.hero-proof li span:last-child { font-size: 0.78rem; color: var(--ink-3); line-height: 1.45; }

/* ── Hero console — the product's own module, rebuilt in HTML ────────────── */
.console {
  background: linear-gradient(180deg, var(--console-a) 0%, var(--console-b) 100%);
  border: 1px solid var(--line-2);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 28px 70px -22px var(--shadow),
              0 0 0 1px rgba(var(--brand-rgb), 0.06) inset;
}
.console-top { display: flex; align-items: center; justify-content: space-between; }
.console-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.console-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  border: 1px solid var(--line-2);
  border-radius: 20px;
  padding: 3px 8px;
}
.console-live i {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--money);
  box-shadow: 0 0 0 0 rgba(var(--money-rgb), 0.55);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 7px rgba(var(--money-rgb), 0); }
  100% { box-shadow: 0 0 0 0 rgba(var(--money-rgb), 0); }
}

.console-hero { display: flex; align-items: baseline; gap: 8px; margin-top: 12px; }
.console-cur { font-size: 1.4rem; font-weight: 500; color: var(--ink-2); letter-spacing: -0.02em; }
.console-big {
  font-size: clamp(2.3rem, 4.4vw, 3.05rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}
.console-sub { font-size: 0.84rem; margin-top: 6px; color: var(--ink-3); }

.split {
  display: flex;
  height: 26px;
  border-radius: 6px;
  overflow: hidden;
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
}
.split span {
  display: grid;
  place-items: center;
  color: var(--on-money);
  font-weight: 500;
  transition: width 1.1s var(--ease);
}
.split-a { background: linear-gradient(180deg, var(--money-a), var(--money-b)); }
.split-b { background: linear-gradient(180deg, var(--risk-a), var(--risk-b)); color: var(--on-risk); }

.console-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}
.ct {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px 11px;
  background: var(--fill);
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-top-width: 2px;
}
.ct--good { border-top-color: rgba(var(--money-rgb), 0.75); }
.ct--bad  { border-top-color: rgba(var(--risk-rgb), 0.75); }
.ct-k {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.ct-v { font-size: 1.06rem; font-weight: 550; letter-spacing: -0.025em; }
.ct-m { font-size: 0.7rem; color: var(--ink-4); }

.console-act { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.act-row {
  display: grid;
  grid-template-columns: 2px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 9px 0;
}
.act-row + .act-row { border-top: 1px solid var(--line); }
.act-bar { width: 2px; height: 26px; border-radius: 2px; background: var(--warn); }
.act-txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.act-txt strong {
  font-size: 0.8rem;
  font-weight: 550;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.act-txt .dim { font-size: 0.69rem; }
.act-val { font-size: 0.84rem; font-weight: 550; color: var(--ink); }
.console-foot {
  margin-top: 12px;
  font-size: 0.7rem;
  color: var(--ink-4);
  font-style: italic;
}

/* ── Section heads ──────────────────────────────────────────────────────── */
.sec-head { margin-bottom: 44px; }
.sec-head .h2 { margin-top: 16px; }
.sec-head--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: end;
}
.sec-head--split .lede { padding-bottom: 4px; }

/* ── Thesis ─────────────────────────────────────────────────────────────── */
.thesis-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.thesis-card { padding: 26px 24px 24px; position: relative; }
.thesis-n {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--ink-4);
}
.thesis-card .h3 { margin: 14px 0 12px; }
.thesis-card p { font-size: 0.9rem; }
.thesis-tag {
  margin-top: 18px !important;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--ink-4) !important;
}

/* ── Screenshots ────────────────────────────────────────────────────────── */
.shot { margin: 0; }
.shot-frame {
  border: 1px solid var(--line-2);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 34px 80px -30px var(--shadow-deep);
  position: relative;
}
/* Screens are a light UI on a dark page — a hairline keeps them from glaring. */
.shot-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  pointer-events: none;
}
.shot-frame img { width: 100%; height: auto; display: block; }
.shot figcaption {
  margin-top: 16px;
  font-size: 0.86rem;
  color: var(--ink-3);
  line-height: 1.6;
  max-width: 68ch;
}
.shot figcaption strong { color: var(--ink-2); font-weight: 550; }
.shot figcaption em { color: var(--ink-2); font-style: italic; }
.shot--hero { margin-bottom: 56px; }
.shot-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }

/* ── The six capabilities ───────────────────────────────────────────────── */
.six {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(32px, 5vw, 66px);
  align-items: center;
  padding-block: clamp(38px, 5vw, 62px);
}
.six + .six { border-top: 1px solid var(--line); }
/* Alternate sides so the eye zig-zags down the page instead of scanning a column. */
.six--flip .six-copy { order: 2; }
.six-h { margin: 16px 0 18px; }
.six-h em { font-style: italic; color: var(--ink-2); }
.six-pts { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.six-pts li {
  font-size: 0.88rem;
  color: var(--ink-2);
  padding-left: 18px;
  position: relative;
  line-height: 1.55;
}
.six-pts li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand);
}
.six-pts strong { color: var(--ink); font-weight: 550; }
.six-copy .lnk { margin-top: 22px; }
.six-vis { margin: 0; min-width: 0; }

/* ── Field / office divider ─────────────────────────────────────────────────
   The six used to run web -> mobile -> mobile -> web -> mobile -> web, which
   was a ranking by how impressive each felt, not a sequence anyone could
   follow — and it opened on a desktop browser directly under a headline that
   says the intelligence runs on the phone. They now follow the working day:
   the field, then the office. These labels say so out loud rather than leaving
   the reader to infer it. */
.six-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 30px;
}
.six-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.six-divider span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  border: 1px solid var(--line-2);
  border-radius: 20px;
  padding: 5px 12px;
}
.six-divider--first { padding-top: 0; }
/* The divider already separates the halves; a second rule on the next block
   would double up. */
.six-divider + .six { border-top: 0; }

/* ── Console shared chrome (phone / lens / voice / doctor) ──────────────── */
.phone, .lensbox, .voice, .doc {
  background: linear-gradient(180deg, var(--console-a) 0%, var(--console-b) 100%);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  box-shadow: 0 28px 70px -22px var(--shadow);
}

/* ── 02 · Co-pilot phone ────────────────────────────────────────────────── */
.phone { padding: 18px; max-width: 400px; }
.phone-top { display: flex; justify-content: space-between; align-items: center; }
.phone-eyebrow, .phone-sig {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-3);
}
.phone-sig { border: 1px solid var(--line-2); border-radius: 20px; padding: 3px 8px; }
.phone-store { display: block; margin-top: 14px; font-size: 1.02rem; font-weight: 600; letter-spacing: -0.02em; }
.phone-sub { display: block; margin-top: 3px; font-size: 0.74rem; color: var(--ink-3); }
.phone-money {
  margin-top: 14px; padding: 12px 13px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--money-soft);
  display: flex; justify-content: space-between; align-items: baseline;
}
.phone-k { font-family: var(--mono); font-size: 9px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink-3); }
.phone-v { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.03em; }
.phone-row {
  display: flex; gap: 9px; align-items: flex-start;
  padding: 9px 0; font-size: 0.78rem; color: var(--ink-2); line-height: 1.45;
}
.phone-row + .phone-row { border-top: 1px solid var(--line); }
.dot { flex: none; width: 6px; height: 6px; border-radius: 50%; margin-top: 0.42em; }
.dot--good { background: var(--money); }
.dot--bad { background: var(--risk); }
.phone-cta {
  margin-top: 12px; text-align: center;
  background: var(--brand); color: var(--on-brand);
  border-radius: 9px; padding: 10px;
  font-size: 0.82rem; font-weight: 550;
}

/* ── 03 · ShelfLens detection box ───────────────────────────────────────── */
.lensbox { padding: 16px; }
.lens-shelf {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 7px;
  padding: 14px 12px 16px;
  border-radius: 9px;
  background: repeating-linear-gradient(180deg, var(--shelf-a) 0 62px, var(--shelf-b) 62px 66px);
}
.pk {
  position: relative;
  height: 62px;
  border-radius: 5px;
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 5px;
  font-size: 8.5px; font-weight: 550; text-align: center;
  line-height: 1.15;
}
.pk i {
  position: absolute; top: 3px; left: 3px;
  font-style: normal; font-family: var(--mono); font-size: 7.5px;
  background: rgba(0, 0, 0, 0.5); border-radius: 3px; padding: 1px 3px;
}
.pk--hit { border: 1.5px solid var(--money); background: var(--money-soft); color: var(--ink); }
.pk--hit i { color: var(--money); }
.pk--gap {
  border: 1.5px dashed var(--risk); background: var(--risk-soft); color: var(--risk);
  align-items: center; padding-bottom: 0; font-family: var(--mono); letter-spacing: 0.08em;
}
.lens-foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 12px; font-size: 0.72rem; color: var(--ink-3);
}
.lens-foot .num { font-family: var(--mono); font-size: 0.95rem; color: var(--ink); font-weight: 500; }
.lens-foot i { font-style: normal; font-size: 0.68rem; color: var(--ink-3); }

/* ── 05 · Voice ─────────────────────────────────────────────────────────── */
.voice { padding: 18px; max-width: 400px; }
.voice-top { display: flex; align-items: center; gap: 8px; }
.mic {
  width: 8px; height: 8px; border-radius: 50%; background: var(--brand);
  box-shadow: 0 0 0 0 rgba(var(--brand-rgb), 0.6);
  animation: pulse 2.4s infinite;
}
.voice-said {
  margin-top: 14px; font-size: 0.96rem; color: var(--ink);
  font-style: italic; letter-spacing: -0.01em;
}
.voice-said--2 { margin-top: 16px; }
.voice-act {
  margin-top: 9px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 9px;
  background: rgba(255, 255, 255, 0.02);
  display: flex; gap: 10px; align-items: baseline;
  font-size: 0.78rem; color: var(--ink-2);
}
.voice-act--sum { background: var(--money-soft); }
.voice-k {
  flex: none; font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--ink-3);
}
.voice-act b { color: var(--ink); font-weight: 600; }
.voice .console-foot { margin-top: 12px; }

/* ── Stacked visuals ────────────────────────────────────────────────────── */
/* Some blocks carry two visuals — the diagnosis AND the result, the tool AND
   its output. One picture cannot make either of those arguments. */
.six-vis--stack { display: flex; flex-direction: column; gap: 14px; }
.six-cap {
  font-size: 0.74rem;
  color: var(--ink-3);
  font-style: italic;
  margin-top: 2px;
}

/* ── 06 · Doctor ────────────────────────────────────────────────────────── */
.doc { padding: 16px 18px; }
.doc-top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.doc-q { font-family: var(--mono); font-size: 10px; color: var(--ink-2); }
.doc-row {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 10px 0; font-size: 0.78rem; color: var(--ink-2); line-height: 1.5;
}
.doc-row + .doc-row { border-top: 1px solid var(--line); }
.doc-row b { color: var(--ink); font-weight: 550; }
.tick, .cross { flex: none; font-family: var(--mono); font-size: 0.78rem; margin-top: 0.05em; }
.tick { color: var(--money); }
.cross { color: var(--risk); }
.doc-row--bad { background: var(--risk-soft); margin: 0 -18px; padding-inline: 18px; }
.doc-fix {
  margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line);
  font-size: 0.74rem; color: var(--ink-3); font-style: italic;
}

/* ── Breadth strip (the demoted family grid) ────────────────────────────── */
.breadth { background: var(--bg-2); }

/* ── Family grid ────────────────────────────────────────────────────────── */
.fam-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.fam { padding: 24px 22px; display: flex; flex-direction: column; gap: 12px; }
.fam-i {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: 1px solid var(--brand-line);
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand-ink);
}
.fam-i svg { width: 19px; height: 19px; }
.fam p { font-size: 0.88rem; flex: 1; }
.fam-list {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.05em;
  color: var(--ink-3);
  padding-top: 13px;
  border-top: 1px solid var(--line);
  line-height: 1.7;
}
.fam--wide { grid-column: span 3; }
.fam--wide p { max-width: 74ch; }

/* ── Spotlight ──────────────────────────────────────────────────────────── */
.spotlight { background: var(--bg-2); }
.spot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.94fr);
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
}
.spot-copy .h2 { margin: 16px 0 20px; }
.spot-copy .lede + .lede { margin-top: 14px; }
.spot-copy .lnk { margin-top: 24px; }

.spot-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.spec {
  padding: 20px 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.spec:nth-child(2n) { border-right: 0; }
.spec:nth-last-child(-n+2) { border-bottom: 0; }
.spec-k {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.spec-v { font-size: 1.08rem; font-weight: 550; letter-spacing: -0.02em; }
.spec-m { font-size: 0.74rem; color: var(--ink-3); }

/* ── Custom software ────────────────────────────────────────────────────── */
.cust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.cust { padding: 24px 22px; }
.cust .h3 { margin-bottom: 10px; }
.cust p { font-size: 0.88rem; }
.cust-cta { margin-top: 32px; }

/* ── CTA ────────────────────────────────────────────────────────────────── */
.cta { background: var(--bg-2); }
.cta-in { max-width: 660px; }
.cta-in .lede { margin: 18px 0 0; }
.cta-in .hero-cta { margin-top: 28px; }

/* ── Footer extras ──────────────────────────────────────────────────────── */
.footer-blurb { font-size: 0.86rem; margin-top: 16px; max-width: 38ch; }
.footer-addr { font-size: 0.9rem; padding-top: 6px; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1060px) {
  .hero-in { grid-template-columns: 1fr; }
  .console { max-width: 560px; }
  .thesis-grid, .fam-grid, .cust-grid { grid-template-columns: 1fr 1fr; }
  .fam--wide { grid-column: span 2; }
  .spot-grid { grid-template-columns: 1fr; }
  /* Stack the capability blocks, and drop the flip: an alternating layout that
     alternates nothing just reorders copy away from its own visual. */
  .six { grid-template-columns: 1fr; gap: 30px; }
  .six--flip .six-copy { order: 0; }
}
@media (max-width: 760px) {
  .sec-head--split { grid-template-columns: 1fr; gap: 20px; align-items: start; }
  .thesis-grid, .fam-grid, .cust-grid { grid-template-columns: 1fr; }
  .fam--wide { grid-column: span 1; }
  .shot-duo { grid-template-columns: 1fr; gap: 36px; }
  .console-tiles { grid-template-columns: 1fr 1fr; }
  .hero-proof { gap: 24px; }
  /* Six 62px packs will not fit 390px; let the shelf scroll inside its own box
     rather than push the page sideways. */
  .lens-shelf { grid-template-columns: repeat(6, 92px); overflow-x: auto; }
}
@media (max-width: 420px) {
  .spot-specs { grid-template-columns: 1fr; }
  .spec { border-right: 0; }
  .spec:nth-last-child(2) { border-bottom: 1px solid var(--line); }
}

/* ── Inline-style replacements (CSP: style-src 'self', no unsafe-inline) ─── */
/* The hero split bar is a fixed illustrative ratio, so the widths live here
   rather than in a style="--w:47%" attribute. */
.split-a { width: 47%; }
.split-b { width: 53%; }

/* Custom-software "fit" pair. */
.thesis-grid--2 { grid-template-columns: 1fr 1fr; }
.thesis-n--good { color: var(--money); }
.thesis-n--bad  { color: var(--risk); }
@media (max-width: 760px) {
  .thesis-grid--2 { grid-template-columns: 1fr; }
}

/* Slightly tighter lede used inside the ShelfLens spotlight column. */
.lede--tight { font-size: 1rem; }
