/* SECTION 4: What we do (agent B, v14, 2026-10-01).
   Sola's "Features" pattern: a left-aligned head, then rows that alternate text | product view inside the frame.
   The product views reuse the .mock card from sections.css (same 13px/500 type, head, "Sample data" pill) on the
   dotted surface panel of How it works. Every selector starts with .what. */

/* ---------- head ---------- */
/* Integrator (v14): the same head as How it works, Comparison, Pricing and Security: own top line with the section's
   dots, centred eyebrow + h2, 96/64 padding (64/40 on phones). */
.what .what-head {
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  padding: 96px 32px 64px;
  border-top: 1px solid var(--token-line);
  text-align: center;
}

/* ---------- rows ---------- */
.what .what-rows { border-top: 1px solid var(--token-line); }
.what .what-row {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: 420px;
}
.what .what-row + .what-row { border-top: 1px solid var(--token-line); }

.what .what-text {
  display: flex; flex-direction: column; justify-content: center; gap: 20px;
  padding: 56px 48px 56px 32px;
  min-width: 0;
}
.what .is-flip .what-text { order: 2; padding: 56px 32px 56px 48px; }

.what .what-n {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 12px; font-weight: 500; line-height: 1.5; letter-spacing: 0.02em; text-transform: uppercase;
  color: var(--token-grey-7a);
}
.what .what-copy { display: flex; flex-direction: column; gap: 16px; max-width: 480px; }
.what .what-copy h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 32px; font-weight: 400; line-height: 1.15; letter-spacing: -0.02em;
  color: var(--token-ink);
  text-wrap: balance;
}
.what .what-copy p {
  font-size: 16px; font-weight: 500; line-height: 1.5; letter-spacing: -0.03em;
  color: var(--token-grey-61);
  text-wrap: pretty;
}

/* the product side: the dotted surface of How it works' views */
.what .what-view {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  padding: 56px 48px;
  min-width: 0;
  border-left: 1px solid var(--token-line);
  background:
    radial-gradient(circle at 1px 1px, rgba(0, 0, 0, .07) 1px, transparent 1.4px) 0 0 / 14px 14px,
    var(--token-surface);
}
.what .is-flip .what-view { border-left: 0; border-right: 1px solid var(--token-line); }

/* ---------- the mock card, scaled up for the wider panel ---------- */
.what .what-mock { width: min(420px, 100%); padding: 16px 18px 16px; }
.what .what-mock .mock-head { margin-bottom: 14px; }
.what .what-k { color: var(--token-grey-61); }
.what .what-clock-top b, .what .what-deadline b, .what .what-v, .what .what-big, .what .what-day { font-feature-settings: "tnum"; }

/* 1 · decision card: expected award vs. what a loss would cost, then the verdict */
.what .what-cmp { display: flex; flex-direction: column; gap: 14px; padding: 2px 0 16px; }
.what .what-cmp-row {
  display: grid; grid-template-columns: 1fr auto; align-items: baseline; row-gap: 8px;
}
.what .what-v { font-size: 18px; font-weight: 600; letter-spacing: -0.03em; color: var(--token-ink); }
.what .what-bar {
  grid-column: 1 / -1;
  position: relative; height: 6px; border-radius: 3px; background: #efeee8; overflow: hidden;
}
.what .what-bar i {
  position: absolute; left: 0; top: 0; bottom: 0; width: var(--w);
  border-radius: 3px; background: #0E7A57;
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 1.1s cubic-bezier(.2, .8, .2, 1) .55s;
}
.what .what-bar.is-fee i { background: var(--token-grey-7a); transition-delay: .7s; }
.what .what-view.in .what-bar i { transform: none; }

.what .what-verdict {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 10px 10px 14px;
  border-radius: 10px;
  background: #EFF7F3;
  box-shadow: inset 0 0 0 1px rgba(14, 122, 87, .16);
}
.what .what-verdict .what-k { color: #0E7A57; font-weight: 600; }
.what .what-file {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 14px 4px 8px; border-radius: 30px;
  background: #0E7A57; color: var(--token-white);
  font-size: 13px; font-weight: 600; letter-spacing: -0.02em;
  box-shadow: 0 1px 2px rgba(14, 122, 87, .3);
}
.what .what-file svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* 2 · payment clock: one bar per insurer on a 45-day scale, the 30-day deadline as a tick */
.what .what-clock { display: flex; flex-direction: column; }
.what .what-axis, .what .what-clock-line { display: grid; grid-template-columns: 1fr 88px; column-gap: 14px; align-items: center; }
.what .what-axis {
  position: relative; height: 18px; margin-bottom: 2px;
  font-family: "Geist Mono", ui-monospace, monospace; font-size: 10.5px; letter-spacing: 0.02em; text-transform: uppercase;
  color: var(--token-grey-7a);
}
.what .what-axis span:first-child { grid-column: 1; }
.what .what-axis-mark { position: absolute; left: calc((100% - 102px) * .6667); transform: translateX(-50%); white-space: nowrap; }
.what .what-clock-row { padding: 12px 0 13px; border-top: 1px solid #efeee8; }
.what .what-clock-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.what .what-clock-top b { font-weight: 600; }
.what .what-track { position: relative; height: 6px; border-radius: 3px; background: #efeee8; }
.what .what-track i { position: absolute; top: 0; bottom: 0; }
.what .what-on, .what .what-over {
  transform-origin: left center; transform: scaleX(0);
  transition: transform 1s cubic-bezier(.2, .8, .2, 1) .55s;
}
.what .what-on { left: 0; width: var(--w); border-radius: 3px 0 0 3px; background: #b9b6ab; }
.what .what-on.is-green { background: #0E7A57; border-radius: 3px; }
.what .what-over { left: var(--l); width: var(--w); border-radius: 0 3px 3px 0; background: #B3261E; transition-delay: 1.3s; transition-duration: .6s; }
.what .what-view.in .what-on, .what .what-view.in .what-over { transform: none; }
.what .what-track .what-mark { left: 66.67%; top: -4px; bottom: -4px; width: 1.5px; margin-left: -.75px; border-radius: 1px; background: var(--token-ink); }
.what .what-day { justify-self: end; font-size: 12px; font-weight: 600; color: var(--token-grey-54); white-space: nowrap; }
.what .what-day.is-red { color: #B3261E; }

.what .what-pill {
  flex: none;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 8px 2px 7px; border-radius: 30px;
  font-size: 11px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.5;
}
.what .what-pill i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.what .what-pill.is-amber { background: #FCF1E1; color: #8A5310; }
.what .what-pill.is-amber i { background: #B06A12; }
.what .what-pill.is-green { background: #E6F4EE; color: #0E7A57; }

/* 3 · denials: the two kinds side by side, their split, and the next deadline */
.what .what-split { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.what .what-split > div {
  display: flex; flex-direction: column; gap: 6px;
  padding: 12px 14px 12px;
  border-radius: 10px;
  background: var(--token-surface);
  box-shadow: inset 0 0 0 1px #ebeae4;
}
.what .what-split .what-k { display: flex; align-items: center; gap: 7px; font-size: 12.5px; }
.what .what-sw { width: 8px; height: 8px; border-radius: 2px; background: var(--brand-accent); flex: none; }
.what .what-sw.is-dark { background: #1F3D35; }
.what .what-big { font-size: 30px; font-weight: 600; line-height: 1.1; letter-spacing: -0.04em; color: var(--token-ink); }
.what .what-split-bar { display: flex; gap: 3px; height: 6px; margin: 14px 0 4px; }
.what .what-split-bar i {
  border-radius: 3px; background: var(--brand-accent);
  transform-origin: left center; transform: scaleX(0);
  transition: transform 1s cubic-bezier(.2, .8, .2, 1) .55s;
}
.what .what-split-bar i + i { background: #1F3D35; transition-delay: .7s; }
.what .what-view.in .what-split-bar i { transform: none; }
.what .what-deadline {
  display: flex; align-items: center; gap: 10px;
  margin-top: 12px; padding-top: 12px;
  border-top: 1px solid #efeee8;
}
.what .what-deadline span:nth-child(2) { color: var(--token-grey-61); }
.what .what-deadline b { margin-left: auto; padding: 2px 8px; border-radius: 6px; background: #efeee8; font-size: 12px; font-weight: 600; color: var(--token-ink); }
.what .what-cal { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #efeee8; color: var(--token-grey-54); }
.what .what-cal svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }

/* ---------- tablet (810–1199): rows stack, text above its view ---------- */
@media (max-width: 1199px) {
  .what .what-row { grid-template-columns: 1fr; min-height: 0; }
  .what .what-text, .what .is-flip .what-text { order: 0; padding: 40px 32px 44px; gap: 28px; }
  .what .what-copy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 40px; max-width: none; }
  .what .what-copy h3 { font-size: 30px; }
  .what .what-view, .what .is-flip .what-view { padding: 56px 32px; border: 0; border-top: 1px solid var(--token-line); }
  .what .what-mock { width: min(440px, 100%); }
}

/* ---------- phone (< 810) ---------- */
@media (max-width: 809px) {
  .what .what-head { padding: 64px 24px 40px; gap: 14px; }
  .what .what-text, .what .is-flip .what-text { padding: 32px 24px 36px; gap: 20px; }
  .what .what-copy { display: flex; gap: 12px; }
  .what .what-copy h3 { font-size: 26px; }
  .what .what-copy p { font-size: 15px; }
  .what .what-view, .what .is-flip .what-view { padding: 28px 16px; }
  .what .what-mock { padding: 14px 14px 14px; }
  .what .what-axis, .what .what-clock-line { grid-template-columns: 1fr 80px; column-gap: 10px; }
  .what .what-axis-mark { left: calc((100% - 90px) * .6667); }
  .what .what-big { font-size: 26px; }
}

/* without JS the views never get .in: show the bars at full length (the .no-js class is set on <html> by index.html) */
.no-js .what .what-bar i, .no-js .what .what-on, .no-js .what .what-over, .no-js .what .what-split-bar i { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .what .what-bar i, .what .what-on, .what .what-over, .what .what-split-bar i { transition: none; transform: none; }
}
