/* ITS product page (/its). Uses the site tokens from styles.css. */

.its-skip {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--pink); color: #0E0E10; font-weight: 600;
  padding: 10px 16px; border-radius: var(--radius-sm);
}
.its-skip:focus { top: 12px; }

.its a:focus-visible, .its button:focus-visible, .its select:focus-visible,
.its input:focus-visible, .its textarea:focus-visible, .its summary:focus-visible,
.navbar a:focus-visible, .navbar button:focus-visible {
  outline: 2px solid var(--teal); outline-offset: 3px;
}

.its .wrap { max-width: 1120px; margin: 0 auto; }
.its .measure { max-width: 680px; }

/* ---------- status labels: the only three ---------- */
.status {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'Space Mono', monospace; font-size: 10px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 3px; line-height: 1.2; white-space: nowrap;
}
.status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-demonstrated { color: #0E0E10; background: var(--teal); }
.status-demonstrated::before { background: #0E0E10; }
.status-proposed { color: var(--pink); border: 1.5px solid var(--pink); }
.status-planned { color: var(--text-muted); border: 1.5px dashed #4a4852; }
.status-planned::before { background: transparent; border: 1.5px solid currentColor; width: 5px; height: 5px; }

/* ---------- hero ---------- */
.its-hero {
  padding: 72px 0 64px;
  border-bottom: 1.5px solid var(--border);
  background:
    linear-gradient(180deg, rgba(14,14,16,0) 0%, #0E0E10 100%),
    radial-gradient(circle, #26262C 1px, transparent 1px) 0 0 / 22px 22px,
    #0E0E10;
}
.its-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.its-kicker {
  font-family: 'Space Mono', monospace; font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 20px;
}
.its-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.08; margin-bottom: 24px; letter-spacing: -0.01em; }
.its-hero h1 em { font-style: normal; color: var(--pink); }
.its-answer { font-size: 18px; line-height: 1.6; color: var(--text-primary); max-width: 600px; margin-bottom: 24px; }
.its-answer strong { font-weight: 600; }
.its-state {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
  font-family: 'Space Mono', monospace; font-size: 12px; color: var(--text-muted);
  border-left: 2px solid var(--teal); padding: 6px 0 6px 14px; margin-bottom: 32px;
}
.its-state b { color: var(--text-primary); font-weight: 700; }
.its-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.its-dates { font-family: 'Space Mono', monospace; font-size: 11px; color: var(--soft-muted); margin: 0; }

.its-shot {
  margin: 0; border: 1.5px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; background: #16161A; box-shadow: var(--shadow-lift);
}
.its-shot-bar {
  display: flex; align-items: center; gap: 6px; padding: 9px 12px;
  border-bottom: 1.5px solid var(--border); background: #121215;
}
.its-shot-bar span { width: 8px; height: 8px; border-radius: 50%; background: #2e2e36; }
.its-shot-bar code { margin-left: 8px; font-family: 'Space Mono', monospace; font-size: 10px; color: var(--soft-muted); }
.its-shot img { width: 100%; height: auto; display: block; }
.its-shot figcaption, .its-gallery figcaption {
  font-size: 13px; color: var(--text-muted); padding: 12px 16px; border-top: 1.5px solid var(--border); line-height: 1.5;
}

/* ---------- section scaffolding ---------- */
.its-sec { padding: 88px 0; border-bottom: 1.5px solid var(--border); }
.its-sec.alt { background: #121215; }
.its-head { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 0 24px; margin-bottom: 44px; }
.its-num { font-family: 'Space Mono', monospace; font-size: 12px; color: var(--soft-muted); padding-top: 10px; border-top: 1.5px solid var(--border); }
.its-head h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 14px; }
.its-head p { color: var(--text-muted); font-size: 16px; max-width: 680px; margin: 0; }
.its-head .status { margin-bottom: 14px; }
.its-body { margin-left: 112px; }

/* legend */
.its-legend {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
  margin-top: 40px; padding: 20px; border: 1.5px solid var(--border); border-radius: var(--radius-md); background: rgba(22,22,26,0.7);
}
.its-legend p { font-size: 13px; color: var(--text-muted); margin: 10px 0 0; line-height: 1.5; }

/* problems */
.its-problems { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.its-problems li { padding: 20px 0; border-top: 1.5px solid var(--border); display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; }
.its-problems li b { display: block; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; font-size: 16px; }
.its-problems li span.k { font-family: 'Space Mono', monospace; font-size: 11px; color: var(--pink); padding-top: 3px; }
.its-problems li p { color: var(--text-muted); margin: 0; font-size: 15px; }

/* capability cards */
.its-caps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.its-cap { border: 1.5px solid var(--border); border-radius: var(--radius-md); padding: 24px; background: #16161A; display: flex; flex-direction: column; gap: 12px; }
.its-cap h3 { font-size: 1.25rem; margin: 4px 0 0; }
.its-cap p { color: var(--text-muted); font-size: 14.5px; margin: 0; }
.its-cap .proof { margin-top: auto; padding-top: 12px; border-top: 1px dashed #2e2e36; font-family: 'Space Mono', monospace; font-size: 11px; color: var(--soft-muted); line-height: 1.5; }

.its-planned { margin-top: 40px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.its-planned article { border: 1.5px dashed #3a3842; border-radius: var(--radius-md); padding: 20px 24px; }
.its-planned h3 { font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: 16px; margin: 12px 0 6px; }
.its-planned p { color: var(--text-muted); font-size: 14px; margin: 0; }

/* flow */
.its-flow-figure { margin: 0 0 32px; border: 1.5px solid var(--border); border-radius: var(--radius-lg); background: #0E0E10; padding: 20px; overflow-x: auto; }
.its-flow-figure svg { display: block; width: 100%; min-width: 760px; height: auto; }
.its-steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.its-steps li { counter-increment: step; border-top: 2px solid var(--teal); padding: 16px 0 0; }
.its-steps li.gate { border-top-color: var(--pink); }
.its-steps li .st { font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: 16px; margin-bottom: 6px; }
.its-steps li .st::before { content: counter(step, decimal-leading-zero) "  "; font-family: 'Space Mono', monospace; font-size: 12px; color: var(--soft-muted); font-weight: 400; }
.its-steps li p { color: var(--text-muted); font-size: 14px; margin: 0; }
.its-loop { margin-top: 28px; padding: 16px 20px; border-left: 2px solid var(--teal); background: rgba(113,201,203,0.06); color: var(--text-primary); font-size: 15px; }

/* knowledge */
.its-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.its-ledger { border: 1.5px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.its-ledger div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 18px 20px; border-top: 1.5px solid var(--border); }
.its-ledger div:first-child { border-top: 0; }
.its-ledger .lt { font-family: 'Space Mono', monospace; font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--teal); padding-top: 3px; }
.its-ledger p { margin: 0; color: var(--text-muted); font-size: 14.5px; }
.its-ledger p b { color: var(--text-primary); font-weight: 600; }

/* pilot */
.its-pilot-note { border: 1.5px solid var(--pink); border-radius: var(--radius-md); padding: 18px 22px; margin-bottom: 32px; font-size: 15px; background: rgba(233,42,151,0.05); }
.its-pilot-note p { margin: 0; }
.its-pilot { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1.5px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.its-pilot li { padding: 22px 24px; border-right: 1.5px solid var(--border); border-bottom: 1.5px solid var(--border); }
.its-pilot li:nth-child(3n) { border-right: 0; }
.its-pilot li:nth-last-child(-n+3) { border-bottom: 0; }
.its-pilot .st { font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: 16px; margin-bottom: 8px; }
.its-pilot p { color: var(--text-muted); font-size: 14px; margin: 0 0 10px; }
.its-pilot .uses { font-family: 'Space Mono', monospace; font-size: 10.5px; color: var(--teal); margin: 0; line-height: 1.5; }
.its-define { margin-top: 28px; color: var(--text-muted); font-size: 15px; }
.its-define b { color: var(--text-primary); }

.its-apps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.its-apps article { border: 1.5px solid var(--border); border-radius: var(--radius-md); padding: 24px; }
.its-apps h3 { font-size: 1.2rem; margin: 14px 0 8px; }
.its-apps p { color: var(--text-muted); font-size: 14.5px; margin: 0; }

/* security */
.its-sec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.its-sec-grid article { border: 1.5px solid var(--border); border-radius: var(--radius-md); padding: 24px; background: #16161A; }
.its-sec-grid h3 { font-size: 1.2rem; margin: 12px 0 10px; }
.its-sec-grid ul { display: grid; gap: 8px; }
.its-sec-grid li { color: var(--text-muted); font-size: 14.5px; padding-left: 16px; position: relative; }
.its-sec-grid li::before { content: ''; position: absolute; left: 0; top: 0.65em; width: 6px; height: 1.5px; background: var(--teal); }
.its-limits { margin-top: 24px; border: 1.5px dashed #3a3842; border-radius: var(--radius-md); padding: 20px 24px; }
.its-limits h3 { font-family: 'Space Mono', monospace; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 10px; font-weight: 700; }
.its-limits ul { display: grid; gap: 6px; }
.its-limits li { color: var(--text-muted); font-size: 14px; }

/* screenshots */
.its-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.its-gallery figure { margin: 0; border: 1.5px solid var(--border); border-radius: var(--radius-md); overflow: hidden; background: #16161A; }
.its-gallery figure.wide { grid-column: 1 / -1; }
.its-gallery a { display: block; }
.its-gallery img { width: 100%; height: auto; display: block; }
.its-gallery figcaption b { color: var(--text-primary); font-weight: 600; }
.its-gallery-note { margin-top: 16px; font-size: 13px; color: var(--soft-muted); }

/* inquiry */
.its-inquiry { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.its-inquiry .its-head { grid-template-columns: 1fr; }
.its-inquiry .its-num { display: none; }
.its-form .form-group select {
  width: 100%; padding: 12px 16px; background: #16161A; border: 1.5px solid #26262C;
  border-radius: var(--radius-sm); font-family: 'DM Sans', sans-serif; font-size: 14px; color: #F4F2EE;
}
.its-form .form-group select:focus { border-color: var(--pink); }
.its-form .form-group label { font-size: 10px; color: var(--text-muted); }
.its-form .req { color: var(--pink); }
.its-form .form-success { background: rgba(113,201,203,0.1); border-color: rgba(113,201,203,0.4); color: var(--teal); }
.its-form .form-error { color: #F4F2EE; }
.its-two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.its-contact-alt { color: var(--text-muted); font-size: 14px; margin-top: 24px; }
.its-contact-alt a { color: var(--pink); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .its-hero-grid, .its-split, .its-inquiry { grid-template-columns: 1fr; gap: 40px; }
  .its-caps, .its-apps, .its-pilot { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .its-pilot li:nth-child(3n) { border-right: 1.5px solid var(--border); }
  .its-pilot li:nth-child(2n) { border-right: 0; }
  .its-pilot li:nth-last-child(-n+3) { border-bottom: 1.5px solid var(--border); }
  .its-pilot li:nth-last-child(-n+2) { border-bottom: 0; }
  .its-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .its-body { margin-left: 0; }
  .its-head { grid-template-columns: 1fr; }
  .its-num { border-top: 0; padding-top: 0; margin-bottom: 8px; }
}
@media (max-width: 640px) {
  .its-hero { padding: 48px 0 44px; }
  .its-sec { padding: 64px 0; }
  .its-caps, .its-apps, .its-pilot, .its-problems, .its-planned, .its-sec-grid, .its-gallery, .its-steps, .its-legend, .its-two { grid-template-columns: 1fr; }
  .its-pilot li { border-right: 0 !important; border-bottom: 1.5px solid var(--border) !important; }
  .its-pilot li:last-child { border-bottom: 0 !important; }
  .its-ledger div { grid-template-columns: 1fr; gap: 6px; }
  .its-flow-figure { display: none; }
  .its-answer { font-size: 17px; }
}

.its-steps li .st, .its-pilot .st { display: block; }
.its-ledger .lt { font-weight: 700; margin: 0; line-height: 1.4; }

/* fixes after visual review */
.its ol { list-style: none; }
.its-cap .status, .its-sec-grid .status, .its-apps .status, .its-planned .status { align-self: flex-start; }
.its-sec-grid article, .its-apps article, .its-planned article { display: flex; flex-direction: column; align-items: flex-start; }
.its .its-legend { margin-top: 48px; }
.its-plain { font-size: 16px; line-height: 1.6; color: var(--text-muted); max-width: 600px; margin: -8px 0 24px; padding-left: 16px; border-left: 3px solid var(--teal); }
.its-plain strong { color: var(--text-primary); font-weight: 600; }
.its-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.its-h2-sub { display: block; margin-top: 10px; font-family: 'Space Mono', monospace; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal); line-height: 1.5; }
.its-qa { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.its-qa-item { border: 1.5px solid var(--border); border-radius: var(--radius-md); padding: 24px; background: #16161A; }
.its-qa-item h3 { font-size: 1.15rem; margin-bottom: 10px; }
.its-qa-item p { color: var(--text-muted); font-size: 15px; line-height: 1.6; }
@media (max-width: 640px) { .its-qa { grid-template-columns: 1fr; } }
