/* ==========================================================================
   Forma Consulting - Ops Leak Calculator (subpage-specific)
   Tokens, nav, footer, closer and buttons come from styles.css. This file
   holds only what's unique here: the narrow hero copy and the calculator
   card, the leak grid and the lead-capture panel.
   ========================================================================== */

.olc-hero-inner { max-width: 640px; }

.olc { background: var(--offwhite); padding: clamp(64px, 8vw, 108px) 0 clamp(90px, 10vw, 140px); }
.olc-shell-narrow { max-width: 720px; margin: 0 auto; }

/* ---------- The calculator card ---------- */
.olc-card {
  background: var(--white); border: 1px solid var(--hairline-light); border-radius: 8px;
  padding: clamp(28px, 4vw, 40px) clamp(26px, 4vw, 36px);
  box-shadow: 0 1px 2px rgba(4, 12, 22, 0.06), 0 24px 56px -34px rgba(4, 12, 22, 0.28);
}
.olc-q { margin: 0 0 26px; }
.olc-q:last-of-type { margin-bottom: 4px; }
.olc-q label { display: block; font-weight: 700; color: var(--navy); font-size: 1rem; margin-bottom: 12px; }
.olc-row { display: flex; align-items: center; gap: 16px; }
.olc-row input[type=range] { flex: 1; accent-color: var(--teal); height: 6px; }
.olc-val {
  font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--navy);
  min-width: 62px; text-align: right; font-variant-numeric: tabular-nums;
}
.olc-rate-box {
  display: flex; align-items: center; gap: 2px; flex: none;
  border: 1.5px solid var(--hairline-light); border-radius: 7px;
  padding: 8px 12px 8px 14px; min-width: 96px; justify-content: center;
  background: var(--white); transition: border-color 0.2s;
}
.olc-rate-box:focus-within { border-color: var(--teal); }
.olc-rate-sign {
  font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--navy);
}
.olc-rate-num {
  width: 62px; border: 0; background: transparent; font: inherit;
  font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--navy);
  text-align: left; font-variant-numeric: tabular-nums; padding: 0 0 0 2px;
  -moz-appearance: textfield;
}
.olc-rate-num::-webkit-outer-spin-button, .olc-rate-num::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.olc-rate-num:focus-visible { outline: none; }

/* ---------- The result ---------- */
.olc-result { background: var(--navy); color: var(--paper-ink); border-radius: 8px; padding: clamp(26px, 4vw, 34px); margin-top: 30px; text-align: center; }
.olc-result-lead { color: var(--paper-dim); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; margin-bottom: 12px; }
.olc-result-big {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(2.4rem, 5vw, 3.2rem);
  line-height: 1; color: var(--gold); margin-bottom: 8px; font-variant-numeric: tabular-nums;
}
.olc-result-sub { color: var(--paper-ink); font-size: 0.95rem; }
.olc-bar { height: 8px; background: rgba(244, 241, 236, 0.14); border-radius: 6px; margin: 22px auto 0; max-width: 340px; overflow: hidden; }
.olc-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), var(--gold)); border-radius: 6px; transition: width 0.5s var(--ease); }
.olc-note { font-size: 0.75rem; color: var(--paper-dim); margin-top: 16px; letter-spacing: 0.01em; }

/* ---------- Where it leaks ----------
   Three pain-to-fix cards, each one a door into the agent that plugs it:
   numbered kicker up top (same 01/02/03 language as the crew lanes on the
   homepage), the pain in plain words, then a hairline plaque with the
   agent's mascot and what changes once it runs. The whole card is a link
   into that agent's section on the services page. */
.olc-leaks { margin-top: clamp(44px, 5vw, 60px); }
.olc-leaks h2 { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--navy); margin-bottom: 6px; }
.olc-leaks-sub { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 22px; max-width: 52ch; }
.olc-lgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.olc-leak {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--hairline-light); border-radius: 8px;
  padding: 20px 18px 18px;
  transition: border-color 0.25s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.olc-leak:hover, .olc-leak:focus-visible {
  border-color: rgba(14, 42, 71, 0.3); transform: translateY(-3px);
  box-shadow: 0 18px 36px -24px rgba(4, 12, 22, 0.35);
}
.olc-leak-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.olc-leak-num {
  font-family: var(--font-display); font-style: normal; font-weight: 700; font-size: 1.35rem;
  line-height: 1; color: var(--gold); font-variant-numeric: tabular-nums;
}
.olc-leak-tag {
  font-style: normal; font-size: 0.66rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-soft);
}
.olc-leak b { font-family: var(--font-display); color: var(--navy); font-size: 1.12rem; font-weight: 700; line-height: 1.3; margin-bottom: 6px; }
.olc-leak-pain { color: var(--ink-soft); font-size: 0.87rem; line-height: 1.55; margin-bottom: 16px; }
.olc-leak-fix {
  display: flex; gap: 12px; align-items: flex-start;
  margin-top: auto; padding-top: 14px; border-top: 1px solid var(--hairline-light);
}
.olc-leak-avatar { flex: none; width: 34px; height: 34px; display: grid; place-items: center; background: var(--navy); }
.olc-leak-avatar .mascot { width: 20px; height: 21px; }
.olc-leak-fixcopy { color: var(--ink-soft); font-size: 0.85rem; line-height: 1.55; }
.olc-leak-fixcopy i {
  display: block; font-style: normal; font-size: 0.64rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); margin-bottom: 4px;
}
.olc-leak-more { display: inline-flex; align-items: center; gap: 7px; margin-top: 14px; font-weight: 600; font-size: 0.85rem; color: var(--navy); }
.olc-leak-more::after { content: "\2192"; font-weight: 400; transition: transform 0.25s var(--ease); }
.olc-leak:hover .olc-leak-more { color: var(--teal); }
.olc-leak:hover .olc-leak-more::after { transform: translateX(4px); }

/* ---------- Lead capture ---------- */
.olc-cta { margin-top: clamp(44px, 5vw, 60px); background: var(--white); border: 1px solid var(--hairline-light); border-left: 3px solid var(--gold); border-radius: 8px; padding: clamp(26px, 4vw, 32px); }
.olc-cta h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; color: var(--navy); margin-bottom: 8px; }
.olc-cta p { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 20px; max-width: 56ch; }
.olc-form { display: flex; gap: 12px; flex-wrap: wrap; }
.olc-form input[type=email] {
  flex: 1; min-width: 220px; border: 1.5px solid var(--hairline-light); border-radius: 7px;
  padding: 14px 16px; font: inherit; font-size: 0.95rem; color: var(--ink); background: var(--white);
}
.olc-form input[type=email]:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.olc-done { color: var(--teal); font-weight: 700; margin-top: 14px; display: none; }
.olc-err { color: #B8543A; font-weight: 700; margin-top: 12px; font-size: 0.85rem; display: none; }

.olc-foot { text-align: center; color: var(--ink-soft); font-size: 0.85rem; margin-top: clamp(36px, 4vw, 48px); }
.olc-foot b { color: var(--navy); }

@media (max-width: 680px) {
  .olc-lgrid { grid-template-columns: 1fr; }
  .olc-result-big { font-size: 2.2rem; }
}
