/* ─── Homepage extended sections (Approach / Outcomes / Walkthrough / Why /
       Foundation / FAQ / Final CTA) — ported from h.html ──────────────── */

/* Section-local design tokens. Kept scoped under .h-sections so they don't
   leak into the rest of the site. */
.h-sections {
  --hs-bg:        #f8f9fc;
  --hs-bg-2:      #eef0f7;
  --hs-ink:       #232532;
  --hs-ink-soft:  #424766;
  --hs-muted:     #757a97;
  --hs-line:      #d4d9ea;
  --hs-mint:      #3661ed;
  --hs-mint-2:    #5b7df0;
  --hs-mint-soft: #e0ebfe;
  --hs-navy:      #1f212e;
  --hs-navy-2:    #2d3044;
  --hs-navy-line: #424766;

  font-family: 'Inter', system-ui, sans-serif;
  color: var(--hs-ink);
  -webkit-font-smoothing: antialiased;
}

.h-sections .mono {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hs-mint);
  font-weight: 500;
}

.h-sections h1,
.h-sections h2,
.h-sections h3,
.h-sections h4 {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.04;
  color: var(--hs-ink);
  margin: 0;
}
.h-sections h2 { font-size: clamp(36px, 4.6vw, 64px); letter-spacing: -0.03em; }
.h-sections h3 { font-size: clamp(22px, 2vw, 30px); letter-spacing: -0.02em; }
.h-sections p  { color: var(--hs-ink-soft); line-height: 1.55; margin: 0; }
.h-sections .lede {
  color: var(--hs-ink-soft);
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.5;
  max-width: 760px;
}
.h-sections .serif-i {
  font-family: 'Instrument Sans', sans-serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.h-sections .link-u {
  color: var(--hs-mint);
  text-decoration: underline;
  text-underline-offset: 4px;
  font-weight: 500;
  font-size: 14px;
}

/* Visible-when-scrolled animation hook (no JS — sections render visible). */
.h-sections .reveal { opacity: 1; transform: none; }

/* Each section breathes from the global section { padding: 120px 0 } rule. */
.h-sections .h-section { background: var(--hs-bg); }
.h-sections .h-section + .h-section { border-top: 1px solid var(--hs-line); }
.h-sections .h-section#approach { padding-top: 64px; }

/* ─── Approach (3 steps) ──────────────────────────────────────────────── */
.h-sections .steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--hs-line);
  background: #fff;
}
.h-sections .step {
  padding: 36px 32px 40px;
  border-right: 1px solid var(--hs-line);
}
.h-sections .step:last-child { border-right: none; }
.h-sections .step .num { margin-bottom: 18px; }
.h-sections .step h3 { margin-bottom: 14px; }
.h-sections .step p { font-size: 15px; }

/* ─── Outcomes (2×2 cards + engine band) ──────────────────────────────── */
.h-sections .outcome {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.h-sections .out-card {
  background: #fff;
  border: 1px solid var(--hs-line);
  border-radius: 14px;
  padding: 30px 32px 32px;
  box-shadow: 0 1px 0 rgba(14, 27, 44, 0.02);
}
/* Product-image placeholder slot at the top of an outcome card */
.h-sections .out-card-img {
  width: calc(100% + 64px);
  margin: -30px -32px 26px;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(54, 97, 237, 0.12), transparent 60%),
    linear-gradient(180deg, var(--hs-bg-2) 0%, #fff 100%);
  border-bottom: 1px solid var(--hs-line);
  border-radius: 14px 14px 0 0;
}
.h-sections .out-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 14px 14px 0 0;
}

/* When .h-sections is just hosting the outcome grid inside the hero (not a
   full section), it shouldn't inherit the global section padding. */
.idx2-outcomes-host { margin-top: 56px; }
.idx2-outcomes-host .outcome { margin: 0; }
.h-sections .out-card .head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.h-sections .out-tile {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--hs-mint-2) 0%, var(--hs-mint) 100%);
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 6px 16px -8px rgba(54, 97, 237, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.h-sections .out-tile svg { width: 22px; height: 22px; }
.h-sections .out-card .head h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.h-sections .out-card h4.title {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.18;
  margin: 0 0 14px;
}
.h-sections .out-card .card-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: cardstep;
}
.h-sections .out-card .card-list li {
  counter-increment: cardstep;
  position: relative;
  padding: 10px 0 10px 36px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--hs-ink-soft);
  border-top: 1px solid var(--hs-line);
}
.h-sections .out-card .card-list li:first-child { border-top: none; padding-top: 4px; }
.h-sections .out-card .card-list li::before {
  content: counter(cardstep);
  position: absolute;
  left: 0;
  top: 10px;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--hs-mint);
  color: #fff;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 6px -2px rgba(54, 97, 237, 0.55);
}
.h-sections .out-card .card-list li:first-child::before { top: 4px; }

/* Skills engine band — full-width inside the .outcome grid */
.h-sections .engine {
  grid-column: 1 / -1;
  background: var(--hs-navy);
  border: 1px solid var(--hs-navy-line);
  border-radius: 14px;
  padding: 28px 32px 30px;
  color: #e8eaf2;
  position: relative;
  overflow: hidden;
}
.h-sections .engine::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--hs-mint-2), transparent);
  opacity: 0.55;
}
.h-sections .engine-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.h-sections .engine-head .l {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.h-sections .engine-tile {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(180deg, #2A2347 0%, #1B1638 100%);
  border: 1px solid #3B3470;
  display: grid;
  place-items: center;
  color: #C5BEFF;
  flex-shrink: 0;
}
.h-sections .engine-tile svg { width: 20px; height: 20px; }
.h-sections .engine-eyebrow {
  font-family: 'Geist Mono', monospace;
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #adb2ce;
  margin-bottom: 6px;
}
.h-sections .engine-eyebrow .sep { color: #424766; margin: 0 8px; }
.h-sections .engine-title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: #fff;
  line-height: 1.2;
}
.h-sections .engine-title .dim { color: #adb2ce; font-weight: 400; }
.h-sections .engine-sub { color: #adb2ce; font-size: 14.5px; margin-top: 8px; }
.h-sections .engine-tag-r {
  font-family: 'Geist Mono', monospace;
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8e93af;
  padding-top: 6px;
}
.h-sections .engine-divider {
  height: 1px;
  background: var(--hs-navy-line);
  margin: 22px 0 18px;
}
.h-sections .engine-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.h-sections .engine-label {
  font-family: 'Geist Mono', monospace;
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8e93af;
  margin-bottom: 14px;
}
.h-sections .skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.h-sections .skill-pill {
  padding: 10px 18px;
  border-radius: 8px;
  background: #2d3044;
  border: 1px solid #424766;
  color: #e8eaf2;
  font-size: 14.5px;
  font-weight: 500;
  transition: background 0.2s, border-color 0.2s;
}
.h-sections .skill-pill:hover { background: #3a3f55; border-color: #5c6280; }
.h-sections .skill-pill.custom {
  background: transparent;
  border: 1px dashed #6D5DF6;
  color: #A99CFF;
}

/* ─── Walkthrough video + dashboard strip ─────────────────────────────── */
.h-sections .video-frame {
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--hs-line);
  background: var(--hs-bg-2);
  box-shadow: 0 30px 80px -40px rgba(31, 33, 46, 0.35);
}
.h-sections .video-aspect {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
}
.h-sections .video-aspect > .video-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.h-sections .video-poster {
  background:
    linear-gradient(135deg, rgba(31, 33, 46, 0.55) 0%, rgba(45, 48, 68, 0.55) 100%),
    linear-gradient(135deg, #1f212e 0%, #2d3044 100%);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 18px;
  color: #fff;
  transition: filter 0.2s ease;
}
.h-sections .video-poster::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.10) 0%, rgba(0, 0, 0, 0.35) 100%);
  pointer-events: none;
}
.h-sections .video-poster:hover { filter: brightness(1.08); }
.h-sections .video-play {
  position: relative;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s, background 0.25s;
  box-shadow: 0 12px 36px -10px rgba(0, 0, 0, 0.45);
}
.h-sections .video-poster:hover .video-play { transform: scale(1.08); background: var(--hs-mint); }
.h-sections .video-play svg { width: 32px; height: 32px; color: #fff; margin-left: 4px; }
.h-sections .video-play-label {
  position: relative;
  font-family: 'Geist Mono', monospace;
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #fff;
}

.h-sections .dash-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 1100px;
  margin: 48px auto 0;
}
.h-sections .dash-tile {
  background: #fff;
  border: 1px solid var(--hs-line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(14, 27, 44, 0.02);
  transition: transform 0.25s, box-shadow 0.25s;
}
.h-sections .dash-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -20px rgba(14, 27, 44, 0.18);
}
.h-sections .dash-preview {
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: var(--hs-bg-2);
  border-bottom: 1px solid var(--hs-line);
}
.h-sections .dash-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.h-sections .dash-caption {
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--hs-ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.h-sections .dash-caption .tag {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hs-muted);
}

/* ─── Why purpose-built — ask + cost-of-status-quo + comparison table ─── */
.h-sections .ask-card {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  padding: 14px 22px;
  border: 1px solid var(--hs-line);
  background: #fff;
  border-radius: 999px;
  margin-bottom: 32px;
}
.h-sections .ask-label {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hs-muted);
}
.h-sections .ask-text {
  margin: 0;
  font-family: 'Instrument Sans', sans-serif;
  font-style: italic;
  font-size: 22px;
  color: var(--hs-ink);
}
.h-sections .ask-text .q-mark { color: var(--hs-mint); font-size: 24px; }

.h-sections .quo {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--hs-line);
  background: #fff;
}
.h-sections .quo-cell {
  padding: 36px 32px 40px;
  border-right: 1px solid var(--hs-line);
}
.h-sections .quo-cell:last-child { border-right: none; }
.h-sections .quo-cell h3 { margin: 14px 0 12px; }
.h-sections .quo-cell p { font-size: 15px; margin-bottom: 22px; }
.h-sections .quo-cell .divider {
  height: 1px;
  background: var(--hs-line);
  margin: 18px 0;
}
.h-sections .stat {
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.h-sections .stat .big {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 64px;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--hs-ink);
}
.h-sections .stat .lbl {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hs-muted);
  max-width: 160px;
}

.h-sections .table {
  border: 1px solid var(--hs-line);
  background: #fff;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}
.h-sections .table .thead {
  background: var(--hs-navy);
  color: #fff;
  padding: 18px 28px;
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}
.h-sections .table .thead.right {
  background: var(--hs-navy);
  border-left: 1px solid var(--hs-navy-line);
  color: #adb2ce;
}
.h-sections .thead .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hs-mint);
}
.h-sections .bucket-head {
  grid-column: 1 / -1;
  background: var(--hs-bg-2);
  padding: 14px 28px;
  font-family: 'Geist Mono', monospace;
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hs-ink);
  border-top: 1px solid var(--hs-line);
  display: flex;
  align-items: center;
  gap: 10px;
}
.h-sections .bucket-head .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hs-mint);
}
.h-sections .cell {
  padding: 28px;
  border-top: 1px solid var(--hs-line);
}
.h-sections .cell.right {
  border-left: 1px solid var(--hs-line);
  color: var(--hs-muted);
}
.h-sections .cell h4 {
  font-size: 18px;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
  font-weight: 600;
}
.h-sections .cell p { font-size: 14.5px; line-height: 1.55; }
.h-sections .cell.right p { color: var(--hs-muted); }

/* ─── Foundation cards ────────────────────────────────────────────────── */
.h-sections .foundation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.h-sections .found-card {
  background: #fff;
  border: 1px solid var(--hs-line);
  border-radius: 14px;
  padding: 30px 32px 32px;
}
.h-sections .found-card .head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.h-sections .found-ico {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--hs-mint-soft);
  color: var(--hs-mint);
  display: grid;
  place-items: center;
}
.h-sections .found-ico svg { width: 20px; height: 20px; }
.h-sections .found-card h3 { font-size: 20px; font-weight: 600; }
.h-sections .found-card p {
  font-size: 14.5px;
  color: var(--hs-ink-soft);
  margin-bottom: 14px;
}
.h-sections .found-card ul { list-style: none; padding: 0; margin: 0; }
.h-sections .found-card ul li {
  padding: 8px 0 8px 24px;
  position: relative;
  font-size: 14px;
  color: var(--hs-ink-soft);
  border-top: 1px solid var(--hs-line);
}
.h-sections .found-card ul li:first-child { border-top: none; }
.h-sections .found-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--hs-mint);
  border-bottom: 2px solid var(--hs-mint);
  transform: rotate(-45deg);
}
.h-sections .found-cta {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

/* ─── FAQ accordion ───────────────────────────────────────────────────── */
.h-sections .faq-list {
  border-top: 1px solid var(--hs-line);
  margin-top: 48px;
}
.h-sections details.faq-item {
  border-bottom: 1px solid var(--hs-line);
  padding: 22px 0;
}
.h-sections details.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 18px;
  font-weight: 500;
  color: var(--hs-ink);
  letter-spacing: -0.01em;
}
.h-sections details.faq-item summary::-webkit-details-marker { display: none; }
.h-sections details.faq-item .plus {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  position: relative;
  border: 1px solid var(--hs-line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  transition: background 0.2s, border-color 0.2s;
}
.h-sections details.faq-item .plus::before,
.h-sections details.faq-item .plus::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 1.6px;
  background: var(--hs-ink);
  transition: transform 0.25s, background 0.25s;
}
.h-sections details.faq-item .plus::after { transform: rotate(90deg); }
.h-sections details[open].faq-item .plus { background: var(--hs-ink); border-color: var(--hs-ink); }
.h-sections details[open].faq-item .plus::before,
.h-sections details[open].faq-item .plus::after { background: #fff; }
.h-sections details[open].faq-item .plus::after { transform: rotate(0); }
.h-sections details.faq-item .answer {
  margin-top: 14px;
  padding-right: 42px;
  color: var(--hs-ink-soft);
  font-size: 15.5px;
  line-height: 1.6;
  max-width: 880px;
}
.h-sections details.faq-item .answer a { color: var(--hs-mint); }

/* ─── Final CTA (dark hero band) ──────────────────────────────────────── */
.h-sections .h-section.final {
  background: #1f212e;
  padding: 140px 0 160px;
  border-top: none;
}
.h-sections .h-section.final h2 {
  color: #fff;
  font-size: clamp(48px, 7vw, 112px);
  letter-spacing: -0.04em;
  line-height: 0.98;
}
.h-sections .h-section.final h2 .il {
  font-family: 'Instrument Sans', sans-serif;
  font-style: italic;
  color: var(--hs-mint-2);
  font-weight: 400;
}
.h-sections .h-section.final p {
  color: #adb2ce;
  margin-top: 22px;
  max-width: 660px;
}
.h-sections .h-section.final .row {
  display: flex;
  gap: 20px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.h-sections .h-section.final .btn {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.005em;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid var(--hs-ink);
  background: var(--hs-ink);
  color: var(--hs-bg);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.25s, background 0.25s, color 0.25s, border-color 0.25s;
}
.h-sections .h-section.final .btn:hover {
  background: var(--hs-mint);
  border-color: var(--hs-mint);
  color: #fff;
  transform: translateY(-1px);
}
.h-sections .h-section.final .btn-lt {
  background: var(--hs-mint);
  color: #fff;
  border-color: var(--hs-mint);
}
.h-sections .h-section.final .btn-lt:hover {
  background: #fff;
  border-color: #fff;
  color: var(--hs-navy);
}
.h-sections .h-section.final .btn.ghost {
  background: transparent;
  color: #fff;
  border-color: #424766;
}
.h-sections .h-section.final .btn.ghost:hover {
  background: #fff;
  color: var(--hs-navy);
  border-color: #fff;
}
.h-sections .h-section.final .btn .arrow { transition: transform 0.25s; }
.h-sections .h-section.final .btn:hover .arrow { transform: translateX(3px); }

/* ─── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .h-sections .outcome,
  .h-sections .engine-split,
  .h-sections .table,
  .h-sections .foundation-grid,
  .h-sections .steps,
  .h-sections .quo,
  .h-sections .dash-strip { grid-template-columns: 1fr; }
  .h-sections .cell.right { border-left: none; }
  .h-sections .step,
  .h-sections .quo-cell {
    border-right: none;
    border-bottom: 1px solid var(--hs-line);
  }
  .h-sections .step:last-child,
  .h-sections .quo-cell:last-child { border-bottom: none; }
}
@media (max-width: 640px) {
  .h-sections .h-section { padding: 80px 0; }
  .h-sections .h-section.final { padding: 96px 0 112px; }
}
