/* Interactive tools under /resources/tools.
   Loaded only by tool pages, so the sitewide styles.css does not carry weight
   that 99% of pages never use. Every token here comes from styles.css :root. */

/* ------------------------------------------------------------- listing --- */
.tools-grid {
  display: grid;
  /* auto-FILL, not auto-fit: auto-fit collapses the empty tracks, so while
     there is only one tool the card would stretch the full container width and
     read as a banner rather than a card. auto-fill keeps the track sizes and
     lets the grid fill up naturally as tools are added. */
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.tool-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 30px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s var(--ease-out);
}

a.tool-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.tool-card .card-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--grad-soft);
  color: var(--violet-deep);
}

.tool-card h3 { font-family: var(--font-display); font-size: 1.2rem; margin: 0; }
.tool-card p { color: var(--muted); margin: 0; font-size: 0.96rem; line-height: 1.6; }

.tool-card .tc-badge {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
}
.tc-live { background: rgba(60, 198, 180, 0.16); color: #1f7d70; }
.tc-soon { background: rgba(102, 94, 124, 0.12); color: var(--muted); }
.tool-card.is-soon { opacity: 0.82; }

.tool-card .tc-go {
  margin-top: auto;
  font-weight: 600;
  color: var(--violet-deep);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

/* ---------------------------------------------------------- the builder --- */
.ib-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.ib-head { padding: 22px 26px 0; border-bottom: 1px solid var(--line); }

.ib-steps { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.ib-steps::-webkit-scrollbar { display: none; }

.ib-step {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  padding: 10px 14px 16px;
  border: 0;
  background: none;
  cursor: pointer;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
}
.ib-step[disabled] { cursor: default; opacity: 0.5; }
.ib-step.is-now { color: var(--violet-deep); }
.ib-step.is-done { color: var(--text); }

.ib-step-n {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: rgba(102, 94, 124, 0.12);
  font-size: 0.8rem;
  font-weight: 700;
}
.ib-step.is-now .ib-step-n { background: var(--violet); color: #fff; }
.ib-step.is-done .ib-step-n { background: rgba(113, 72, 230, 0.18); color: var(--violet-deep); }

.ib-prog { height: 3px; background: rgba(102, 94, 124, 0.14); border-radius: 3px; }
.ib-prog span {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: var(--grad);
  transition: width 0.4s var(--ease-out);
}

.ib-body { padding: 30px 26px; }
.ib-q { margin-bottom: 34px; }
.ib-q:last-child { margin-bottom: 0; }

.ib-label {
  display: block;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.ib-help { color: var(--muted); font-size: 0.92rem; margin: 0 0 15px; line-height: 1.55; }

.ib-input {
  width: 100%;
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.ib-input:focus {
  outline: none;
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(113, 72, 230, 0.14);
}
.ib-input-sm { width: 150px; }
.ib-input-xs { width: 74px; text-align: center; }

.ib-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.92rem;
}
.ib-inline-c { justify-content: center; margin-top: 18px; }

.ib-chips { display: flex; flex-wrap: wrap; gap: 9px; }

.ib-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 11px 15px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  font-family: var(--font-body);
  text-align: left;
  transition: border-color 0.18s var(--ease-out), background-color 0.18s var(--ease-out),
    transform 0.18s var(--ease-spring);
}
.ib-chips-wide .ib-chip { flex: 1 1 232px; }
.ib-chips-sm .ib-chip { padding: 7px 11px; }

.ib-chip-l { font-size: 0.95rem; font-weight: 600; color: var(--text); }
.ib-chip-n { font-size: 0.8rem; color: var(--muted); line-height: 1.4; }

.ib-chip.is-on {
  border-color: var(--violet);
  background: rgba(113, 72, 230, 0.07);
}
.ib-chip.is-on .ib-chip-l { color: var(--violet-deep); }

/* Hover only where a pointer exists. On a touchscreen a :hover rule that
   restyles the tapped element makes iOS Safari swallow the first tap, which
   would mean every chip in this wizard needed two taps. */
@media (hover: hover) {
  .ib-chip:hover { border-color: var(--violet); transform: translateY(-2px); }
}

.ib-note {
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--violet);
  background: rgba(113, 72, 230, 0.06);
  color: var(--text);
  font-size: 0.94rem;
  line-height: 1.65;
}

.ib-empty {
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 0.93rem;
  margin: 0 0 14px;
}

/* competitors */
.ib-comp {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  background: var(--paper);
}
.ib-comp-top { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.ib-comp-name { flex: 1; background: var(--surface); }
.ib-comp-lab {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.ib-x {
  width: 36px; height: 36px;
  flex: 0 0 auto;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}
@media (hover: hover) {
  .ib-x:hover { color: var(--coral); border-color: var(--coral); }
}

.ib-add {
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px dashed var(--line);
  background: none;
  color: var(--violet-deep);
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
}
@media (hover: hover) {
  .ib-add:hover { border-color: var(--violet); background: rgba(113, 72, 230, 0.05); }
}

.ib-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 20px 26px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.ib-nav .btn[disabled] { opacity: 0.45; pointer-events: none; }

/* ---------------------------------------------------------- the results --- */
.ib-icp {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--ink-800);
  color: var(--text-inv);
  margin-bottom: 26px;
}
.ib-icp-lab {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #b9a6ff;
  margin-bottom: 9px;
}
.ib-icp-txt {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.24rem;
  line-height: 1.5;
  font-weight: 600;
}

.ib-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 34px;
}
.ib-kpi {
  padding: 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--paper);
  text-align: center;
}
.ib-kpi-n {
  display: block;
  font-family: var(--font-display);
  font-size: 1.72rem;
  font-weight: 800;
  color: var(--violet-deep);
  line-height: 1.1;
}
.ib-kpi-l { display: block; font-size: 0.82rem; color: var(--muted); margin-top: 5px; }

.ib-h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0 0 14px;
  color: var(--text);
}
.ib-p { color: var(--muted); line-height: 1.7; font-size: 0.96rem; }
.ib-p strong { color: var(--text); }

.ib-funnel { display: flex; flex-direction: column; gap: 13px; }
.ib-fr-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 5px;
}
.ib-fr-top strong { font-family: var(--font-display); font-size: 1.05rem; color: var(--text); }
.ib-bar { height: 11px; border-radius: 999px; background: rgba(102, 94, 124, 0.1); overflow: hidden; }
.ib-bar-f {
  display: block;
  height: 100%;
  border-radius: 999px;
  transition: width 0.5s var(--ease-out);
}
.ib-bar-base { background: rgba(102, 94, 124, 0.42); }
.ib-bar-tam { background: #9b7cff; }
.ib-bar-sam { background: var(--violet); }
.ib-bar-live { background: var(--coral); }

.ib-tablewrap { overflow-x: auto; }
.ib-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 640px; }
.ib-table th {
  text-align: left;
  padding: 11px 12px;
  border-bottom: 2px solid var(--line);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.ib-table td { padding: 13px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ib-nm { font-family: var(--font-display); font-weight: 700; white-space: nowrap; }
.ib-sub { display: block; font-size: 0.8rem; color: var(--muted); margin-top: 2px; }

.ib-est {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 5px;
  background: rgba(254, 207, 46, 0.24);
  color: #8a6404;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: help;
}

.ib-verdict {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.79rem;
  font-weight: 700;
  white-space: nowrap;
}
.ib-v-beachhead { background: rgba(60, 198, 180, 0.18); color: #17796c; }
.ib-v-contested { background: rgba(254, 207, 46, 0.24); color: #8a6404; }
.ib-v-expansion { background: rgba(113, 72, 230, 0.13); color: var(--violet-deep); }
.ib-v-watch { background: rgba(102, 94, 124, 0.13); color: var(--muted); }

.ib-method {
  margin-top: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
}
.ib-method summary {
  padding: 15px 18px;
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  font-size: 0.94rem;
}
.ib-method[open] summary { border-bottom: 1px solid var(--line); }
.ib-method > :not(summary) { padding: 0 18px; }
.ib-method p, .ib-method li { color: var(--muted); font-size: 0.9rem; line-height: 1.65; }
.ib-method ul { padding-left: 36px; }
.ib-method > p:last-of-type { padding-bottom: 4px; }
.ib-overrides {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 0 18px 18px;
}
.ib-overrides .ib-inline { margin-top: 0; }

/* ------------------------------------------------------------ lead gate --- */
.ib-gate {
  margin-top: 26px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--ink-800);
  color: var(--text-inv);
}
.ib-gate h3 {
  font-family: var(--font-display);
  font-size: 1.24rem;
  margin: 0 0 8px;
  color: #fff;
}
.ib-gate p { color: var(--muted-inv); margin: 0 0 20px; font-size: 0.95rem; line-height: 1.6; }
.ib-gate .form-fields { display: flex; flex-wrap: wrap; gap: 10px; }
.ib-gate .form-fields input {
  flex: 1 1 190px;
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.97rem;
}
.ib-gate .form-fields input::placeholder { color: rgba(255, 255, 255, 0.42); }
.ib-gate .form-fields input:focus {
  outline: none;
  border-color: #9b7cff;
  background: rgba(255, 255, 255, 0.1);
}
.ib-gate .form-fields button { flex: 0 0 auto; }
.ib-gate-fine { display: block; margin-top: 14px; font-size: 0.82rem; color: var(--muted-inv); }
.ib-gate .form-success { display: none; }
.ib-gate .form-success.is-on { display: block; color: #6ee7a0; font-weight: 600; }

.hp-wrap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 680px) {
  .ib-body, .ib-head { padding-left: 17px; padding-right: 17px; }
  .ib-nav { padding-left: 17px; padding-right: 17px; }
  /* .ib-step-l / .ib-step padding moved to their own 860px query below: the
     labels stop fitting well before the 680px mobile breakpoint. */
  .ib-chips-wide .ib-chip { flex: 1 1 100%; }
  .ib-icp-txt { font-size: 1.06rem; }
  .ib-gate { padding: 20px; }
}

/* ------------------------------------------------- workbench: result tabs --- */
.ib-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.ib-tabs::-webkit-scrollbar { display: none; }

.ib-tab {
  flex: 0 0 auto;
  padding: 11px 16px;
  border: 0;
  border-bottom: 2.5px solid transparent;
  background: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
.ib-tab.is-on { color: var(--violet-deep); border-bottom-color: var(--violet); }
@media (hover: hover) { .ib-tab:hover { color: var(--text); } }

/* ------------------------------------------------------- the ICP artefact --- */
.ib-deflist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
  margin-bottom: 30px;
}
.ib-def {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--paper);
}
.ib-def-k {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.ib-def-v { display: block; font-weight: 600; color: var(--text); line-height: 1.5; }

.ib-list { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-direction: column; gap: 9px; }
.ib-list li {
  padding: 12px 15px 12px 40px;
  border-radius: var(--radius-sm);
  background: var(--paper);
  border: 1px solid var(--line);
  position: relative;
}
.ib-list li strong { display: block; color: var(--text); font-size: 0.96rem; }
.ib-list li span { display: block; color: var(--muted); font-size: 0.86rem; margin-top: 2px; }
.ib-list li::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 15px;
  width: 15px;
  height: 15px;
  border-radius: 4px;
  background: rgba(113, 72, 230, 0.16);
}
.ib-list-yes li::before {
  background: rgba(60, 198, 180, 0.2);
  box-shadow: inset 0 0 0 1.5px rgba(31, 125, 112, 0.4);
}
.ib-list-no li::before {
  background: rgba(255, 100, 117, 0.16);
  box-shadow: inset 0 0 0 1.5px rgba(197, 58, 74, 0.35);
}

.ib-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }

/* ------------------------------------------------ competitor ICP compare --- */
.ib-cmps { display: flex; flex-direction: column; gap: 14px; margin-bottom: 30px; }

.ib-cmp {
  padding: 18px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.ib-cmp-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.ib-cmp-top strong { font-family: var(--font-display); font-size: 1.06rem; color: var(--text); }
.ib-cmp-tag { color: var(--muted); font-size: 0.89rem; margin: 0 0 14px; line-height: 1.55; }

.ib-cmp-row { display: flex; gap: 12px; padding: 7px 0; align-items: baseline; flex-wrap: wrap; }
.ib-cmp-k {
  flex: 0 0 96px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
.ib-cmp-v { flex: 1 1 200px; display: flex; flex-wrap: wrap; gap: 6px; }
.ib-cmp-conf { display: block; margin-top: 12px; font-size: 0.8rem; color: var(--muted); }

.ib-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(102, 94, 124, 0.1);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}
.ib-tag.is-shared { background: rgba(255, 100, 117, 0.14); color: #c53a4a; }
.ib-tag.is-open { background: rgba(60, 198, 180, 0.18); color: #17796c; }
.ib-none { color: var(--muted); font-size: 0.85rem; }

.ib-o-head { background: rgba(255, 100, 117, 0.16); color: #c53a4a; }
.ib-o-adj { background: rgba(254, 207, 46, 0.24); color: #8a6404; }
.ib-o-edge { background: rgba(113, 72, 230, 0.13); color: var(--violet-deep); }
.ib-o-diff { background: rgba(60, 198, 180, 0.18); color: #17796c; }

.ib-ws {
  padding: 18px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--paper);
}
.ib-ws-row { display: flex; gap: 12px; padding: 8px 0; align-items: baseline; flex-wrap: wrap; }

/* -------------------------------------------- competitor input, step four --- */
.ib-comp-url { flex: 1; background: var(--surface); min-width: 150px; }
.ib-go { flex: 0 0 auto; padding: 11px 18px; }
.ib-go[disabled] { opacity: 0.55; pointer-events: none; }

.ib-cx-g { margin-top: 14px; }
.ib-cx-lab {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}
.ib-cx-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line);
  margin-bottom: 4px;
}
.ib-cx-head strong { font-family: var(--font-display); color: var(--text); }
.ib-cx-tag { flex: 1 1 100%; color: var(--muted); font-size: 0.85rem; line-height: 1.5; }
.ib-cx-err {
  margin: 10px 0 0;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 100, 117, 0.1);
  border-left: 3px solid var(--coral);
  color: #a83244;
  font-size: 0.88rem;
  line-height: 1.5;
}

.ib-conf {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ib-conf-reasonable { background: rgba(60, 198, 180, 0.18); color: #17796c; }
.ib-conf-thin { background: rgba(254, 207, 46, 0.24); color: #8a6404; }
.ib-conf-very { background: rgba(255, 100, 117, 0.14); color: #c53a4a; }

.ib-ev { margin: 10px 0 0; font-size: 0.85rem; }
.ib-ev summary { cursor: pointer; color: var(--violet-deep); font-weight: 600; }
.ib-ev ul { margin: 10px 0 0; padding-left: 20px; color: var(--muted); }
.ib-ev li { margin-bottom: 7px; line-height: 1.55; }
.ib-ev q { font-style: italic; }

@media (max-width: 680px) {
  .ib-cmp-k { flex: 1 1 100%; }
  .ib-comp-top { flex-wrap: wrap; }
  .ib-comp-url { flex: 1 1 100%; }
  /* The three result tabs do not fit one line at 375px. They could scroll, but a
     tab clipped at the edge reads as broken rather than scrollable, and shrinking
     the type enough to fit makes them hard to hit. Let them wrap instead: two
     tidy rows, every label fully visible, touch targets intact. */
  .ib-tabs { flex-wrap: wrap; overflow-x: visible; }
  .ib-tab { padding: 11px 12px; font-size: 0.9rem; }
}

/* Five labelled steps need roughly 860px of container to fit. Below that the
   last label clips, which reads as a broken layout rather than a scrollable
   strip, so fall back to numbered circles. This sits above the 680px mobile
   block on purpose: the labels stop fitting long before the phone breakpoint,
   and a 744px tablet or a narrow desktop window hits exactly that gap. */
@media (max-width: 860px) {
  .ib-step-l { display: none; }
  .ib-step { padding: 10px 7px 16px; }
}

/* ------------------------------------------- workbench: research results --- */
.ib-comp.is-empty { background: var(--surface); border-style: dashed; }

.ib-busy {
  margin: 12px 0 0;
  padding: 12px 15px;
  border-radius: var(--radius-sm);
  background: rgba(113, 72, 230, 0.07);
  color: var(--violet-deep);
  font-size: 0.89rem;
  line-height: 1.5;
}

.ib-read { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin-top: 12px; }
.ib-read .ib-cx-lab { flex: 0 0 100%; margin-bottom: 2px; }

.ib-page {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.81rem;
  color: var(--text);
}
.ib-page em { color: var(--muted); font-style: normal; font-size: 0.75rem; }
.ib-page-link { color: var(--violet-deep); font-weight: 600; text-decoration: none; }
@media (hover: hover) { .ib-page-link:hover { border-color: var(--violet); } }

.ib-tag-link { text-decoration: none; }
@media (hover: hover) { .ib-tag-link:hover { background: rgba(113, 72, 230, 0.16); } }

.ib-conf-good { background: rgba(60, 198, 180, 0.22); color: #146b60; }

.ib-seed {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 20px 22px;
  margin-bottom: 30px;
  border-radius: var(--radius);
  background: var(--ink-800);
  color: var(--text-inv);
}
.ib-seed strong { display: block; font-family: var(--font-display); font-size: 1.05rem; color: #fff; }
.ib-seed span { display: block; color: var(--muted-inv); font-size: 0.89rem; margin-top: 4px; line-height: 1.55; max-width: 56ch; }

/* --------------------------------------------------- workbench: lead gate --- */
.ib-lock {
  padding: 30px;
  border-radius: var(--radius);
  background: var(--ink-800);
  color: var(--text-inv);
}
.ib-lock-badge {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(155, 124, 255, 0.2);
  color: #c9b6ff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ib-lock h3 {
  font-family: var(--font-display);
  font-size: 1.34rem;
  color: #fff;
  margin: 14px 0 8px;
}
.ib-lock > p { color: var(--muted-inv); font-size: 0.95rem; line-height: 1.6; margin: 0 0 22px; max-width: 58ch; }

.ib-gf-grid { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 20px; }
.ib-gf { flex: 1 1 100%; }
.ib-gf.is-half { flex: 1 1 calc(50% - 7px); min-width: 190px; }
.ib-gf label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted-inv);
  margin-bottom: 6px;
}
.ib-gf label em { font-style: normal; opacity: 0.7; text-transform: none; letter-spacing: 0; }
.ib-gf .ib-input {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
  color: #fff;
}
.ib-gf .ib-input:focus {
  border-color: #9b7cff;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 3px rgba(155, 124, 255, 0.2);
}
.ib-gf .ib-input.is-bad { border-color: var(--coral); box-shadow: 0 0 0 3px rgba(255, 100, 117, 0.18); }
.ib-lock .ib-cx-err { background: rgba(255, 100, 117, 0.16); color: #ffb4bd; border-left-color: var(--coral); }
.ib-lock-fine { display: block; margin-top: 14px; font-size: 0.81rem; color: var(--muted-inv); line-height: 1.5; }

/* what the tool is, stated plainly above the widget */
.ib-purpose {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 22px;
  margin-bottom: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.ib-purpose .card-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--grad-soft);
  color: var(--violet-deep);
}
.ib-purpose strong { display: block; font-family: var(--font-display); font-size: 1.02rem; color: var(--text); }
.ib-purpose span { display: block; color: var(--muted); font-size: 0.93rem; line-height: 1.6; margin-top: 4px; }

/* once unlocked we already have their details, so the brief form is one button */
.ib-gate.is-known .form-fields input { display: none; }

/* ------------------------------------------------------ teardown: layout --- */
.ib-hero-input { display: flex; gap: 10px; flex-wrap: wrap; }
.ib-hero-input .ib-input { flex: 1 1 260px; font-size: 1.05rem; padding: 15px 17px; }
.ib-hero-input .btn { flex: 0 0 auto; }

.ib-working { padding: 46px 30px; text-align: center; }
.ib-working strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.14rem;
  color: var(--text);
  margin-bottom: 6px;
}
.ib-working span { display: block; color: var(--muted); font-size: 0.93rem; line-height: 1.6; }
.ib-spinner {
  display: block;
  width: 34px;
  height: 34px;
  margin: 0 auto 20px;
  border-radius: 50%;
  border: 3px solid rgba(113, 72, 230, 0.18);
  border-top-color: var(--violet);
  animation: ib-spin 0.8s linear infinite;
}
@keyframes ib-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ib-spinner { animation-duration: 2.4s; } }

.ib-rep-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.ib-rep-name { font-family: var(--font-display); font-size: 1.62rem; margin: 0; color: var(--text); }
.ib-rep-url { font-size: 0.9rem; color: var(--violet-deep); text-decoration: none; }
.ib-rep-tag { color: var(--muted); font-size: 1rem; line-height: 1.6; margin: 0 0 30px; max-width: 68ch; }

/* tags in the report are clickable (click to remove) */
.ib-cmp-v .ib-tag {
  border: 0;
  font-family: var(--font-body);
  cursor: pointer;
}
.ib-cmp-v .ib-tag.is-on { background: rgba(113, 72, 230, 0.13); color: var(--violet-deep); }
@media (hover: hover) {
  .ib-cmp-v .ib-tag:hover { background: rgba(255, 100, 117, 0.16); color: #c53a4a; }
}

.ib-again {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 36px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.ib-back-link {
  border: 0;
  background: none;
  padding: 6px 0;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}
@media (hover: hover) { .ib-back-link:hover { color: var(--text); } }
.ib-lock .ib-back-link { display: block; margin-top: 14px; color: var(--muted-inv); }
@media (hover: hover) { .ib-lock .ib-back-link:hover { color: #fff; } }
