/* D-iQ.ai — marketing site for AI-powered business software.
   Aesthetic: black background, moody, modern. Sibling of easynow.life. */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --bg: #000;
  --bg-soft: #0a0a0d;
  --ink: #f5f5f7;
  /* Body text lightened from #a8a8b3 → #E8E8EC so paragraphs read at
     a higher contrast level without going pure white (per the
     CHANGE 2 operator brief). --ink-faint stays as the tertiary
     helper-text color. */
  --ink-dim: #E8E8EC;
  --ink-faint: #6a6a76;
  --accent: #A855F7;        /* violet */
  --accent-2: #3B8DFF;      /* indigo-blue */
  --accent-grad: linear-gradient(90deg, var(--accent-2), var(--accent));
  --ring: rgba(168, 85, 247, 0.55);
  --line: #1d1d24;
  --line-soft: #15151b;
  /* Border tint that visually belongs to the indigo→violet brand palette.
     Rest state for all bordered surfaces (cards, work tiles, inputs).
     Hover/focus uses --line-accent-strong. */
  /* CHANGE 7b: brightened by ~0.2 alpha to push the violet/indigo line
     reading more clearly on the dark canvas. Companion change is
     bumping 2px card borders to 2.5px in the same commit. */
  --line-accent: rgba(135, 101, 249, 0.55);
  --line-accent-strong: rgba(168, 85, 247, 0.85);
  --card-bg: #0c0c11;
  --input-bg: #111114;
  --max-w: 1100px;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--ink); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem clamp(1rem, 3vw, 2rem);
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}

.brand {
  font-size: clamp(1.6rem, 2.4vw, 1.95rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  /* The hyphen in "D-iQ" was a soft line-break candidate when the
     flex header narrowed on mobile — the wordmark wrapped to two
     lines. nowrap + flex-shrink:0 keep the brand a single unit
     even when the nav side claims width. */
  white-space: nowrap;
  flex-shrink: 0;
}

/* Shared D-iQ wordmark treatment.
   Applied to the header brand and every body mention of D-iQ so
   the visual contract lives in one rule. */
.wordmark {
  background: var(--accent-grad);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.95rem;
  color: var(--ink);
}
/* Nav default = white ink; hover/focus = accent-gradient text.
   The trick: gradient is always painted via background + background-clip text,
   but -webkit-text-fill-color: var(--ink) hides it until hover when
   the fill is transitioned to transparent — revealing the gradient
   smoothly without a layout shift. */
.site-nav a {
  color: var(--ink);
  background: var(--accent-grad);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: currentColor;
  transition: -webkit-text-fill-color 140ms ease, color 140ms ease;
}
.site-nav a:hover,
.site-nav a:focus-visible {
  -webkit-text-fill-color: transparent;
}

/* Login chip — FILLED brand gradient. THIRD attempt at the visible
   pop, with root cause documented.
   ROOT CAUSE (2026-05-16 i_20260516T1020Z_diq5fixes CHANGE 3):
   prior attempts (cabc739 gradient ring, 8f07795 filled gradient)
   used selector `.site-nav__login` (specificity 0,1,0) but the
   parent `.site-nav a` rule (0,1,1) wins by one element token in
   the cascade. The parent's `background-clip: text` + `text-fill:
   currentColor` therefore overrode the chip's `background-clip:
   padding-box`, clipping the gradient to glyph shape and leaving
   the padding area transparent — visually a black chip with white
   text (the body's bg color shows through). Fix is a specificity
   bump to `.site-nav a.site-nav__login` (0,2,1) so the chip's
   background-clip wins. Documented in logan addendum 14 so this
   doesn't recur on a fourth iteration. */
.site-nav a.site-nav__login {
  padding: 0.4rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  background: transparent;
  -webkit-background-clip: padding-box;
          background-clip: padding-box;
  -webkit-text-fill-color: #fff;
  color: #fff;
  transition: filter 140ms ease, border-color 140ms ease;
}
.site-nav a.site-nav__login:hover,
.site-nav a.site-nav__login:focus-visible {
  -webkit-text-fill-color: #fff;
  border-color: var(--accent);
}

/* Signup chip — the new primary CTA in the header. Uses the same
   filled-gradient treatment the login chip used to wear; login is
   now the outline ghost so signup carries the visual weight per the
   post-launch hotfix dispatch. Selector specificity (0,2,1) matches
   .site-nav a.site-nav__login so it wins the cascade against the
   parent .site-nav a background-clip rule. */
.site-nav a.site-nav__signup {
  padding: 0.4rem 0.95rem;
  border: 0;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  background: var(--accent-grad);
  -webkit-background-clip: padding-box;
          background-clip: padding-box;
  -webkit-text-fill-color: #fff;
  color: #fff;
  transition: filter 140ms ease;
}
.site-nav a.site-nav__signup:hover,
.site-nav a.site-nav__signup:focus-visible {
  -webkit-text-fill-color: #fff;
  filter: brightness(1.12);
}

/* Hamburger button — hidden on desktop, shown when the nav collapses
   below 768px (Issue 3 post-launch hotfix). Inline span bars keep the
   icon dependency-free (no SVG, no font icon). */
.site-nav__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease;
}

.site-nav__toggle:hover,
.site-nav__toggle:focus-visible {
  border-color: var(--accent);
  outline: none;
}

.site-nav__toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 160ms ease, opacity 160ms ease;
}

/* Tablet/mobile breakpoint — collapse the nav into a dropdown
   panel under the hamburger. Below 768px the nav is hidden by
   default; the toggle script flips [data-open="true"] to reveal
   it absolutely below the header. */
@media (max-width: 767px) {
  .site-header {
    position: sticky;
    top: 0;
  }
  .site-nav__toggle {
    display: inline-flex;
  }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    right: clamp(1rem, 3vw, 2rem);
    left: clamp(1rem, 3vw, 2rem);
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
    margin-top: 0.5rem;
    padding: 0.85rem 1rem;
    background: rgba(8, 8, 12, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--line-accent);
    border-radius: 14px;
    box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.8);
  }
  .site-nav[data-open="true"] {
    display: flex;
  }
  .site-nav a {
    padding: 0.55rem 0.6rem;
    font-size: 1rem;
    border-radius: 8px;
  }
  /* Mobile chip variants get their own row treatment — full-width
     fill so they read as call-to-actions, not nav links. */
  .site-nav a.site-nav__login,
  .site-nav a.site-nav__signup {
    text-align: center;
    padding: 0.6rem 0.95rem;
  }
  .site-nav__toggle[aria-expanded="true"] .site-nav__toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .site-nav__toggle[aria-expanded="true"] .site-nav__toggle-bar:nth-child(2) {
    opacity: 0;
  }
  .site-nav__toggle[aria-expanded="true"] .site-nav__toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

@media (max-width: 480px) {
  .site-nav { gap: 0.4rem; font-size: 0.95rem; }
}

/* ---------- Main layout ---------- */

main {
  flex: 1 0 auto;
  width: 100%;
  margin: 0 auto;
  max-width: var(--max-w);
  padding: 0 clamp(1rem, 3vw, 2rem);
}

/* CHANGE 3a: tightened from clamp(2.5rem, 6vw, 5rem) so top-level
   sections don't leave large empty gaps between content blocks. */
section { padding: clamp(1.5rem, 3.5vw, 3rem) 0; }

.section__title {
  display: inline-block;
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  padding: 0.06em 0.04em 0.18em;
  margin: 0 0 0.5rem;
  /* Brand gradient on every section H2 site-wide. H3 .card__title
     stays bold-white (different selector + the inline H3 rules don't
     reset background-clip). inline-block + asymmetric padding keep
     descenders (g/y/p) from clipping under the background-clip:text
     glyph mask. */
  background: linear-gradient(90deg, #3B8DFF 0%, #A855F7 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}

.section__lede {
  color: var(--ink-dim);
  font-size: clamp(1rem, 1.6vw, 1.1rem);
  max-width: 60ch;
  margin: 0 0 2rem;
  line-height: 1.55;
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding-top: clamp(1.5rem, 4vw, 3rem);
}

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: left;
  }
}

.headline {
  font-size: clamp(1.75rem, 5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 1rem;
}

.headline__dots {
  color: var(--ink-faint);
  font-weight: 500;
}

.headline__accent {
  display: inline-block;
  background: var(--accent-grad);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}

.subhead {
  color: var(--ink-dim);
  font-size: clamp(1rem, 1.7vw, 1.15rem);
  line-height: 1.55;
  margin: 0 0 1.75rem;
  max-width: 52ch;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__blob {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 1011px;
  margin: 0 auto;
  background:
    radial-gradient(closest-side, rgba(168, 85, 247, 0.10), rgba(59, 141, 255, 0.05) 55%, transparent 75%);
  border-radius: 50%;
}

@media (max-width: 480px) {
  .hero__blob { max-width: 92vw; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 120ms ease, filter 120ms ease, border-color 120ms ease, background 120ms ease, color 120ms ease;
  white-space: nowrap;
}

.btn--primary {
  color: #fff;
  background: var(--accent-grad);
}
.btn--primary:hover { filter: brightness(1.08); color: #fff; }
.btn--primary:active { transform: translateY(1px); }
.btn--primary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn--ghost {
  color: var(--ink);
  background: transparent;
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--ink); }
.btn--ghost:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* (.trust-row two-column wrapper removed in CHANGE 4 of
   i_20260516T1020Z_diq5fixes — the how-cta panel duplicated the
   hero CTA so it was deleted, and the trust section reverted to
   its full-width single-section layout.) */

/* ---------- Trust ---------- */

.trust {
  border-top: 1px solid var(--line-soft);
}

.trust__panel {
  background: var(--card-bg);
  border: 2.5px solid var(--line-accent-strong);
  border-radius: 14px;
  padding: 1.5rem 1.75rem;
  max-width: 72ch;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.trust__panel > * {
  margin: 0;
}

.trust__panel-title {
  /* H2 inside the panel inherits the .section__title gradient + spacing
     but doesn't need the bottom margin since flex gap handles it. */
  margin: 0;
}

.trust__panel p {
  color: var(--ink-dim);
  font-size: clamp(1rem, 1.6vw, 1.1rem);
  line-height: 1.6;
  margin: 0 0 1rem;
}

.trust__panel p:last-child {
  margin-bottom: 0;
}

.trust-name {
  background: var(--accent-grad);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  font-weight: 600;
}

a.trust-name {
  text-decoration: underline;
  text-decoration-color: var(--line-accent-strong);
  text-underline-offset: 3px;
}

a.trust-name:hover {
  text-decoration-color: var(--accent);
}

/* (.how-cta family removed in CHANGE 4 of i_20260516T1020Z_diq5fixes
   — the section was a duplicate of the hero CTA so the HTML was
   deleted on marketing/index.html. The /how-it-works page does
   NOT use .how-cta.) */

/* (.late-cta rules removed in CHANGE 4 of uniformity dispatch
   i_20260516T0925Z_diquniformity — the late-cta section was folded
   into the contact section as a supporting lede.) */

/* ---------- Services ---------- */

.services {
  border-top: 1px solid var(--line-soft);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (max-width: 700px) {
  .services__grid { grid-template-columns: 1fr; }
}

.card {
  background: var(--card-bg);
  border: 2.5px solid var(--line-accent-strong);
  border-radius: 14px;
  padding: 1.25rem 1.25rem 1.4rem;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.card:hover {
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.12);
  transform: translateY(-1px);
}

.card__title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
}

.card__body {
  color: var(--ink-dim);
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0;
}

/* ---------- Work ---------- */

.work {
  border-top: 1px solid var(--line-soft);
}

.work__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (max-width: 700px) {
  .work__grid { grid-template-columns: 1fr; }
}

.work__item {
  background: var(--card-bg);
  border: 2.5px solid var(--line-accent-strong);
  border-radius: 14px;
  padding: 1.5rem;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.work__item:hover {
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.12);
  transform: translateY(-1px);
}

.work__title {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 0.6rem;
  letter-spacing: -0.01em;
}

.work__body {
  color: var(--ink-dim);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 0.85rem;
}

.work__tags {
  font-size: 0.8rem;
  color: var(--ink-faint);
  margin: 0;
  letter-spacing: 0.02em;
}

/* ---------- Contact ---------- */

.contact {
  border-top: 1px solid var(--line-soft);
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 560px;
}

.contact__hp { position: absolute; left: -9999px; }

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field__label {
  font-size: 0.85rem;
  color: var(--ink-dim);
  letter-spacing: 0.01em;
}

.field__optional {
  color: var(--ink-faint);
  font-weight: 400;
}

.field__input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-size: 1rem;
  font-family: inherit;
  background: var(--input-bg);
  color: var(--ink);
  border: 2.5px solid var(--line-accent-strong);
  border-radius: 10px;
  outline: none;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
.field__input::placeholder { color: #5a5a66; }
.field__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--ring);
}

.field__input--textarea {
  resize: vertical;
  min-height: 6rem;
  line-height: 1.5;
}

.contact__row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.contact__status {
  margin: 0;
  color: var(--ink-dim);
  font-size: 0.95rem;
}
.contact__status--ok {
  color: var(--ink);
  font-weight: 600;
  padding: 0.55rem 0.9rem;
  background: rgba(168, 85, 247, 0.10);
  border: 2.5px solid var(--line-accent-strong);
  border-radius: 10px;
}

/* ---------- Footer ---------- */

.site-footer {
  flex-shrink: 0;
  border-top: 1px solid var(--line-soft);
  padding: 2rem clamp(1rem, 3vw, 2rem) 2.5rem;
  text-align: center;
  color: var(--ink-faint);
  font-size: 0.9rem;
}

.site-footer p { margin: 0; }
.site-footer__small {
  margin-top: 0.35rem !important;
  font-size: 0.8rem;
  color: #4a4a55;
}

/* ---------- How it works page ---------- */

.howitworks {
  display: block;
  padding: clamp(1.5rem, 4vw, 3rem) 0 0;
  /* No max-width here so the two-column hero can use full content
     width; body sections re-apply max-width on their own paragraphs
     and lists. */
}

/* (Site-wide .section__title now carries the gradient + descender
   padding directly — see the rule above. This .howitworks scope
   used to be the only place with the gradient, but CHANGE 1 in
   the uniformity dispatch i_20260516T0925Z_diquniformity promoted
   it sitewide. No selector left here intentionally; see
   .section__title.) */

/* ---- Hero image (FIX 3 + layout pivot) ---- */
/* Renders the Frenchie JPG at its natural portrait aspect (864 × 1080),
   no cropping. Width fills the right column of the two-column hero;
   height auto-scales preserving aspect; max-height caps the column
   so it doesn't blow out vertically on tall viewports. */
.howitworks__hero-image {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  /* Drop max-height + card-bg backing: the image renders at the
     column width × its natural aspect (864/1080 portrait), and the
     border hugs the image edge with zero letterbox padding. The
     two-column hero column ratio (1.1fr text / 0.9fr image) already
     keeps the image height reasonable on every viewport tested. */
  border: 2.5px solid var(--line-accent-strong);
  border-radius: 14px;
  margin: 0;
}

/* ---- Sample finding card (FIX 4) ---- */
.howitworks__finding-framing {
  color: var(--ink-dim);
  font-size: clamp(1rem, 1.6vw, 1.1rem);
  margin: 0 0 0.85rem;
}
.finding-card {
  margin: 0 0 0.5rem;
}
.finding-card__head {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  justify-content: space-between;
}
.finding-card__title {
  margin: 0 0 0.25rem;
}
.finding-card__tag {
  background: rgba(168, 85, 247, 0.15);
  color: var(--ink-dim);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.7rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  flex: 0 0 auto;
}
.finding-card__chart {
  display: grid;
  gap: 0.45rem;
  margin: 0.85rem 0 0.6rem;
}
.finding-bar {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  column-gap: 0.6rem;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  background:
    linear-gradient(to right,
      rgba(59, 141, 255, 0.35) 0,
      rgba(168, 85, 247, 0.35) var(--bar, 100%),
      transparent var(--bar, 100%)),
    rgba(255, 255, 255, 0.03);
}
.finding-bar__label {
  font-size: 0.92rem;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.finding-bar__value {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88rem;
  color: var(--ink-dim);
}
.finding-card__summary {
  color: var(--ink-dim);
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0.5rem 0 0.85rem;
}
.finding-card__cta {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.45rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: not-allowed;
  opacity: 0.65;
}

/* ---- Tiers comparison table (FIX 5) ---- */
.tiers-table-wrapper {
  overflow-x: auto;
  margin: 0.5rem 0 0;
}
.tiers-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: clamp(0.9rem, 1.5vw, 1rem);
}
.tiers-table th,
.tiers-table td {
  text-align: left;
  vertical-align: top;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--line-soft);
}
.tiers-table thead th {
  font-weight: 700;
  background: var(--card-bg);
  border-bottom: 2px solid var(--line-accent-strong);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
}
.tiers-table__col {
  background: var(--accent-grad);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.tiers-table tbody th[scope="row"] {
  width: 16ch;
  font-weight: 600;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.02);
}
.tiers-table tbody td {
  color: var(--ink-dim);
  line-height: 1.55;
}
.tiers-table__cta-row td {
  padding-top: 1rem;
  border-bottom: 0;
}

/* CHANGE 2 (i_20260516T1020Z_diq5fixes): Standard tier CTA gets a
   persistent gradient outline at rest so it visually balances against
   the Enterprise filled-gradient button. Both buttons visible without
   hover; the outline-vs-filled difference still preserves the tier
   hierarchy (Standard = outlined, Enterprise = filled). Same
   padding-box + border-box double-bg trick as the .site-nav a.site-nav__login
   chip used to use before CHANGE 3 root-caused that. */
.tiers-table__cta-row .btn--ghost {
  border: 2px solid transparent;
  background-image: linear-gradient(var(--bg), var(--bg)), var(--accent-grad);
  background-origin: padding-box, border-box;
  background-clip: padding-box, border-box;
  color: #fff;
}
.tiers-table__cta-row .btn--ghost:hover,
.tiers-table__cta-row .btn--ghost:focus-visible {
  filter: brightness(1.12);
  border-color: transparent;
  color: #fff;
}
.tiers-table__cta-row th {
  border-bottom: 0;
  background: transparent;
}
@media (max-width: 600px) {
  /* Stacked rows: hide thead, expose data-tier as inline label */
  .tiers-table thead { display: none; }
  .tiers-table,
  .tiers-table tbody,
  .tiers-table tr,
  .tiers-table th,
  .tiers-table td { display: block; width: 100%; }
  .tiers-table tbody tr {
    border-bottom: 1px solid var(--line-soft);
    padding: 0.5rem 0;
  }
  .tiers-table tbody th[scope="row"] {
    background: transparent;
    padding: 0.25rem 0;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ink-dim);
    width: auto;
    border-bottom: 0;
  }
  .tiers-table tbody td {
    padding: 0.25rem 0 0.4rem;
    border-bottom: 0;
  }
  .tiers-table tbody td::before {
    content: attr(data-tier) ": ";
    color: var(--ink);
    font-weight: 600;
    background: var(--accent-grad);
    -webkit-background-clip: text;
            background-clip: text;
    color: transparent;
    margin-right: 0.4rem;
  }
  .tiers-table__cta-row td::before {
    content: none;
  }
}

.howitworks__hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding-bottom: clamp(1.5rem, 4vw, 2.5rem);
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

@media (max-width: 820px) {
  .howitworks__hero {
    grid-template-columns: 1fr;
    /* Text first, image second on mobile so the H1 is the first
       thing a reader sees. */
  }
}

.howitworks__hero-text {
  max-width: 60ch;
}

.howitworks__title {
  font-size: clamp(1.75rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 1.25rem;
}

.howitworks__lede {
  color: var(--ink-dim);
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  line-height: 1.6;
  margin: 0 0 1rem;
  max-width: 60ch;
}

.howitworks__section {
  padding: clamp(0.9rem, 2vw, 1.5rem) 0;
  border-top: 1px solid var(--line-soft);
  /* Body sections keep the original 76ch reading column even though the
     hero above grew to full content width. */
  max-width: 76ch;
}

.howitworks__section:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.howitworks__section p {
  color: var(--ink-dim);
  font-size: clamp(1rem, 1.6vw, 1.1rem);
  line-height: 1.6;
  margin: 0 0 1rem;
  max-width: 60ch;
}

.howitworks__section p strong {
  color: var(--ink);
  font-weight: 700;
}

.howitworks__list {
  color: var(--ink-dim);
  font-size: clamp(1rem, 1.6vw, 1.1rem);
  line-height: 1.6;
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  max-width: 60ch;
}

.howitworks__list li {
  margin: 0 0 0.35rem;
}

.howitworks__cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin: 1rem 0 1.25rem;
}

/* ---- CHANGE 1: premium gold icons on the three What-you-connect cards.
   2026-05-16 update (i_20260516T1020Z_diq5fixes): bumped sizing to
   ~36px desktop / 30px mobile so the polished 3D fills read at a
   marketing-page scale, not a UI-icon scale. */
.card--icon {
  position: relative;
  padding-right: 3.5rem;
}
.card__icon {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  display: block;
  z-index: 2;
}
@media (max-width: 480px) {
  .card--icon { padding-right: 3rem; }
  .card__icon { width: 30px; height: 30px; top: 0.85rem; right: 0.85rem; }
}

/* (.howitworks__slice-note removed in CHANGE 5 of
   i_20260516T1045Z_diqcopyrev — the slice paragraph migrated into
   the Confidentiality section as a second paragraph, so the
   under-cards closing-note styling is no longer needed.) */

/* ---- CHANGE 2: What-we-do-with-it + finding card side-by-side ---- */
.howitworks__what-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 2.5vw, 2rem);
  align-items: start;
  max-width: none;
}
.howitworks__what-row > section {
  padding: 0;
  border-top: 0;
}
.howitworks__what-text,
.howitworks__what-finding {
  max-width: 60ch;
}
@media (max-width: 820px) {
  .howitworks__what-row { grid-template-columns: 1fr; }
}

/* ---- CHANGE 3: What-you-control + Confidentiality paired row ---- */
.howitworks__pair-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: clamp(1rem, 2.5vw, 2.5rem);
  align-items: start;
  max-width: none;
}
.howitworks__pair-row > section {
  padding: 0;
  border-top: 0;
}
.howitworks__pair-col {
  max-width: 60ch;
}
.howitworks__pair-divider {
  width: 1px;
  align-self: stretch;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--accent-2) 25%,
    var(--accent) 75%,
    transparent
  );
  opacity: 0.55;
}
@media (max-width: 820px) {
  .howitworks__pair-row { grid-template-columns: 1fr; }
  .howitworks__pair-divider {
    width: 60%;
    height: 1.5px;
    margin: 0 auto;
    background: linear-gradient(
      to right,
      transparent,
      var(--accent-2) 25%,
      var(--accent) 75%,
      transparent
    );
  }
}

/* ---- CHANGE 4 + 5: tighten Two tiers spacing + visible col headers ---- */
[aria-labelledby="tiers"] {
  padding-top: 0.5rem;
}
.tiers-table thead th.tiers-table__col {
  background: var(--accent-grad);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* CHANGE 3: visual hierarchy on the three "What you connect" cards.
   Card 1 (Upload your data)             = subtle line accent
   Card 2 (Send us your data automatically) = medium accent-strong
   Card 3 (Read-only database access)    = full brand-gradient border
   The progression maps to ingestion depth — each card visually
   communicates "more integration = more brand commitment." Scoped to
   aria-labelledby="connect" so the tiers + finding-card sections
   aren't affected. */
[aria-labelledby="connect"] .howitworks__cards .card:nth-child(1) {
  border-color: var(--line-accent);
}
[aria-labelledby="connect"] .howitworks__cards .card:nth-child(2) {
  border-color: var(--line-accent-strong);
}
[aria-labelledby="connect"] .howitworks__cards .card:nth-child(3) {
  border: 2.5px solid transparent;
  background:
    linear-gradient(var(--card-bg), var(--card-bg)) padding-box,
    var(--accent-grad) border-box;
}

.howitworks__contact {
  font-family: var(--mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  color: var(--ink);
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.7rem 0.9rem;
  display: inline-block;
}

.howitworks__cta {
  margin-top: 1.5rem;
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  /* hero-blob.js also detects this and renders the blob statically. */
}

/* ============================================================
   Spotlight glow (2026-05-18 polish, FIX round 2) — pointer-
   tracking radial gradient overlay site-wide. JS in
   scripts/spotlight-glow.js feeds the CSS variables via a
   single document-level pointermove listener. Touch devices
   skip the JS entirely; the static gradient border remains as
   fallback.

   Round-2 fixes per operator visual review:
   1. EFFECT TOO SUBTLE — bumped radius from 240px to 400px,
      opacity at center from 0.18 to 0.42, added mid-radius
      stop and mix-blend-mode: screen so the glow lights up
      against the dark card-bg.
   2. COVERAGE TOO NARROW — selector set expanded to every
      gradient-bordered container site-wide (4 home + 14
      how-it-works cards + work__items + trust__panel +
      howitworks pair-cols + howitworks what-text/finding
      panels + contact form). ~20+ containers vs the prior 4.
   ============================================================ */

.card,
.work__item,
.trust__panel,
.contact__form,
.howitworks__finding-framing,
.howitworks__pair-col,
.howitworks__what-text,
.howitworks__what-finding {
  position: relative;
  --spotlight-x: 50%;
  --spotlight-y: 50%;
  --spotlight-opacity: 0;
}

.card::after,
.work__item::after,
.trust__panel::after,
.contact__form::after,
.howitworks__finding-framing::after,
.howitworks__pair-col::after,
.howitworks__what-text::after,
.howitworks__what-finding::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: var(--spotlight-opacity, 0);
  transition: opacity 220ms ease;
  background: radial-gradient(
    400px circle at var(--spotlight-x) var(--spotlight-y),
    rgba(59, 141, 255, 0.42) 0%,
    rgba(168, 85, 247, 0.24) 35%,
    rgba(168, 85, 247, 0.08) 60%,
    transparent 78%
  );
  z-index: 1;
  mix-blend-mode: screen;
}

/* Keep card content above the overlay. .card__icon is excluded — it has
   its own position: absolute (top-right corner) and its own z-index: 2
   in the .card__icon rule above. Without this :not() exclusion the
   universal `position: relative` here overrides the icon's absolute
   positioning and the icon falls back into the document flow at the
   top of the card, overlapping the .card__title text. */
.card > *:not(.card__icon),
.work__item > *,
.trust__panel > *,
.contact__form > *,
.howitworks__finding-framing > *,
.howitworks__pair-col > *,
.howitworks__what-text > *,
.howitworks__what-finding > * {
  position: relative;
  z-index: 2;
}
