/* Public landing page. Palette: ink #17202e, register teal #0f5c63, white, mist #eef4f4, seal green #1d7a4c, amber #a15c07 */
:root {
  --l-ink: #17202e;
  --l-ink-2: #1f2a3b;
  --l-ink-line: #34445b;
  --l-teal: #0f5c63;
  --l-teal-bright: #5fc4c9;
  --l-mist: #eef4f4;
  --l-seal: #1d7a4c;
  --l-seal-bright: #4cc38a;
  --l-amber: #a15c07;
  --l-amber-bright: #e3a33b;
  --l-on-ink: #c9d3df;
  --l-on-ink-dim: #93a4b8;
}
main.landing { padding: 0; }
main.landing ~ .footer { background: #fff; margin-top: 0; }
body:has(main.landing) { background: #fff; }

.nav a.nav-cta { background: var(--l-teal); color: #fff; }
.nav a.nav-cta:hover { background: #137079; }
.nav-badge { display: inline-block; min-width: 18px; padding: 0 6px; margin-left: 4px; border-radius: 9px; background: var(--l-amber-bright); color: var(--l-ink); font-size: 11px; font-weight: 600; line-height: 18px; text-align: center; }

.btn-lg { padding: 12px 20px; font-size: 15px; min-height: 46px; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.32); }
.btn-ghost:hover { background: rgba(255,255,255,.08); filter: none; }
.btn:focus-visible, .samples button:focus-visible { outline: 2px solid var(--l-teal-bright); outline-offset: 2px; }

/* ---------------------------------------------------------- hero */
.hero-band { background: var(--l-ink); color: #fff; padding: 64px 0 76px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero-copy h1 { color: #fff; font-size: clamp(2.1rem, 4.4vw, 3.25rem); line-height: 1.1; max-width: 13em; margin-bottom: 20px; }
.lede { color: var(--l-on-ink); font-size: 18px; line-height: 1.6; max-width: 33em; margin: 0; }
.hero-ctas { margin-top: 28px; gap: 12px; }
.coverage { color: var(--l-on-ink-dim); font-size: 14px; line-height: 1.55; max-width: 36em; margin: 26px 0 0; padding-left: 12px; border-left: 2px solid var(--l-ink-line); }

.journey { margin: 0; background: var(--l-ink-2); border: 1px solid var(--l-ink-line); border-radius: 16px; padding: 22px 22px 18px; }
.journey-context { color: var(--l-on-ink-dim); font-size: 14px; margin-bottom: 8px; }
.journey-req { display: block; font-family: var(--mono); font-size: 12.5px; color: #cfe9ea; background: #141b26; border-radius: 6px; padding: 9px 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.track { display: grid; grid-template-columns: auto 1fr auto 1fr auto; align-items: start; margin: 26px 0 24px; }
.node { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 13px; color: var(--l-on-ink); text-align: center; width: 92px; }
.node-icon { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: #26344a; border: 1px solid var(--l-ink-line); color: #dbe6ee; transition: border-color .3s, box-shadow .3s, color .3s; }
.node-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.node-api .node-icon { background: var(--l-teal); border-color: #1b7c85; color: #fff; }
.wire { position: relative; height: 2px; margin-top: 25px; background: repeating-linear-gradient(90deg, var(--l-ink-line) 0 6px, transparent 6px 10px); }
.pulse { position: absolute; top: -4px; left: 0; width: 10px; height: 10px; border-radius: 50%; opacity: 0; }
.pulse.out { background: var(--l-teal-bright); box-shadow: 0 0 10px var(--l-teal-bright); }
.pulse.back { background: var(--l-seal-bright); box-shadow: 0 0 10px var(--l-seal-bright); }
.journey[data-ok="false"] .pulse.back { background: var(--l-amber-bright); box-shadow: 0 0 10px var(--l-amber-bright); }

.journey[data-phase="out"] #pOut { animation: travel .7s ease-in-out forwards; }
.journey[data-phase="out"] #pOut2 { animation: travel .7s ease-in-out .75s forwards; }
.journey[data-phase="back"] #pBack2 { animation: travel-back .7s ease-in-out forwards; }
.journey[data-phase="back"] #pBack { animation: travel-back .7s ease-in-out .75s forwards; }
@keyframes travel { 0% { left: 0; opacity: 1; } 92% { opacity: 1; } 100% { left: calc(100% - 10px); opacity: 0; } }
@keyframes travel-back { 0% { left: calc(100% - 10px); opacity: 1; } 92% { opacity: 1; } 100% { left: 0; opacity: 0; } }

.journey[data-phase="out"] #nApp .node-icon,
.journey[data-phase="lookup"] #nReg .node-icon { border-color: var(--l-teal-bright); color: var(--l-teal-bright); box-shadow: 0 0 0 6px rgba(95,196,201,.14); }
.journey[data-phase="back"] #nApi .node-icon,
.journey[data-phase="done"] #nApp .node-icon { border-color: var(--l-seal-bright); box-shadow: 0 0 0 6px rgba(76,195,138,.14); }
.journey[data-ok="false"][data-phase="done"] #nApp .node-icon { border-color: var(--l-amber-bright); box-shadow: 0 0 0 6px rgba(227,163,59,.16); }

.ticket { display: flex; align-items: center; justify-content: space-between; gap: 14px; background: #fff; color: var(--l-ink); border-radius: 10px; padding: 14px 16px; opacity: .22; transform: translateY(6px); transition: opacity .4s, transform .4s; }
.journey[data-phase="done"] .ticket { opacity: 1; transform: none; }
.ticket-name { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; }
.ticket-meta { color: #5d6676; font-size: 13px; margin-top: 2px; }
.seal { flex: none; display: inline-flex; align-items: center; gap: 6px; border: 2px solid var(--l-seal); color: var(--l-seal); border-radius: 999px; padding: 5px 12px 5px 9px; font-weight: 600; font-size: 14px; opacity: 0; }
.seal svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.journey[data-ok="false"] .seal { border-color: var(--l-amber); color: var(--l-amber); padding-left: 12px; }
.journey[data-ok="false"] .seal svg { display: none; }
.journey[data-phase="done"] .seal { opacity: 1; animation: stamp .35s cubic-bezier(.3,1.6,.6,1) both; }
@keyframes stamp { from { transform: scale(1.7) rotate(-8deg); opacity: 0; } to { transform: scale(1) rotate(-3deg); opacity: 1; } }
.journey[data-phase="done"] .seal { transform: rotate(-3deg); }
.journey-foot { color: var(--l-on-ink-dim); font-size: 13px; margin-top: 12px; opacity: 0; transition: opacity .3s; }
.journey[data-phase="done"] .journey-foot { opacity: 1; }

/* ---------------------------------------------------------- shared bands */
.band { padding: 84px 0; }
.band-mist { background: var(--l-mist); }
.band-ink { background: var(--l-teal); color: #fff; }
.section-title { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 12px; }
.section-lede { color: #4f5a6a; font-size: 17px; line-height: 1.6; max-width: 40em; margin: 0 0 36px; }
.band-ink .section-title { color: #fff; }
.band-ink .section-lede { color: #d4ebec; }

/* ---------------------------------------------------------- how it works (a real sequence, so numbered) */
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; padding: 0; margin: 28px 0 0; }
.steps li { counter-increment: step; border-top: 2px solid var(--l-teal); padding-top: 18px; }
.steps li::before { content: counter(step); display: block; font-family: var(--serif); font-size: 2.6rem; font-weight: 600; color: var(--l-teal); line-height: 1; margin-bottom: 14px; }
.steps h3 { font-size: 1.2rem; margin-bottom: 8px; }
.steps p { color: #4f5a6a; margin: 0; max-width: 34ch; }

/* ---------------------------------------------------------- demo */
.demo-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 32px; align-items: start; }
.demo-form { background: #fff; border: 1px solid #d6e0e0; border-radius: 14px; padding: 24px; box-shadow: 0 1px 2px rgba(23,32,46,.05), 0 12px 32px -18px rgba(23,32,46,.25); }
.demo-form-head { border-bottom: 1px solid #e3eaea; padding-bottom: 14px; margin-bottom: 6px; }
.demo-form-head strong { font-family: var(--serif); font-size: 1.25rem; display: block; }
.demo-form-head span { color: #5d6676; font-size: 14px; }
.demo-form label { margin-top: 14px; }
.demo-submit { width: 100%; margin-top: 20px; }
.demo-submit:disabled { opacity: .6; cursor: progress; }
.demo-result { margin-top: 14px; padding: 12px 14px; border-radius: 8px; font-size: 14.5px; line-height: 1.5; }
.demo-result:empty { display: none; }
.demo-result.is-ok { background: #e6f4ec; color: #165c39; border: 1px solid #b9e0c9; }
.demo-result.is-warn { background: #fdf2e2; color: #7a4506; border: 1px solid #f0d3a6; }
.samples { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 20px; font-size: 13px; color: #5d6676; }
.samples button { font: inherit; color: var(--l-teal); background: #fff; border: 1px solid #c9d8d8; border-radius: 999px; padding: 5px 11px; cursor: pointer; }
.samples button:hover { border-color: var(--l-teal); background: var(--l-mist); }

.pipeline { list-style: none; margin: 0; padding: 4px 20px; background: #fff; border: 1px solid #d6e0e0; border-radius: 14px; }
.pipeline li { display: grid; grid-template-columns: 18px 1fr auto; gap: 12px; align-items: start; padding: 13px 0; border-bottom: 1px dashed #d6e0e0; }
.pipeline li:last-child { border-bottom: 0; }
.pipeline .dot { width: 14px; height: 14px; margin-top: 3px; border-radius: 50%; border: 2px solid #b8c6c6; transition: background .2s, border-color .2s; }
.pipeline li.active .dot { border-color: var(--l-teal); background: var(--l-teal); animation: ping 0.6s ease-out infinite; }
.pipeline li.done .dot { border-color: var(--l-seal); background: var(--l-seal); }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(15,92,99,.45); } 100% { box-shadow: 0 0 0 9px rgba(15,92,99,0); } }
.pipeline strong { font-size: 14.5px; }
.pipeline small { display: block; color: #6b7585; font-size: 13px; }
.pipeline em { font-style: normal; font-family: var(--mono); font-size: 12px; color: var(--l-seal); padding-top: 2px; }
.code-card { margin-top: 16px; background: var(--l-ink); border-radius: 14px; overflow: hidden; }
.code-head { padding: 10px 16px; background: var(--l-ink-2); color: var(--l-on-ink-dim); font-family: var(--mono); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.code-card pre { background: none; border-radius: 0; min-height: 236px; margin: 0; padding: 16px; white-space: pre-wrap; word-break: break-word; }

/* ---------------------------------------------------------- industries */
.ind-grid { display: grid; grid-template-columns: 250px 1fr; gap: 40px; align-items: start; }
.ind-tabs { display: flex; flex-direction: column; border-left: 1px solid #d6e0e0; }
.ind-tabs button { all: unset; cursor: pointer; padding: 12px 16px; margin-left: -1px; border-left: 3px solid transparent; font-size: 15px; color: #4f5a6a; }
.ind-tabs button:hover { color: var(--l-ink); }
.ind-tabs button[aria-selected="true"] { border-left-color: var(--l-teal); color: var(--l-teal); font-weight: 600; background: var(--l-mist); }
.ind-tabs button:focus-visible { outline: 2px solid var(--l-teal); outline-offset: -2px; }
.ind-panel { outline: none; min-height: 380px; }
.ind-panel.swap { animation: swap .25s ease-out; }
@keyframes swap { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.ind-panel h3 { font-size: 1.45rem; margin-bottom: 10px; }
.ind-problem { font-size: 16.5px; line-height: 1.6; color: #3c4655; max-width: 62ch; margin: 0 0 22px; }
.ind-flow { list-style: none; counter-reset: f; padding: 0; margin: 0 0 22px; position: relative; }
.ind-flow li { counter-increment: f; position: relative; padding: 0 0 16px 44px; max-width: 62ch; line-height: 1.5; }
.ind-flow li::before { content: counter(f); position: absolute; left: 0; top: -2px; width: 28px; height: 28px; border-radius: 50%; background: var(--l-mist); border: 1.5px solid var(--l-teal); color: var(--l-teal); font-weight: 600; font-size: 13px; display: grid; place-items: center; }
.ind-flow li::after { content: ""; position: absolute; left: 14px; top: 28px; bottom: 2px; width: 1.5px; background: #c9d8d8; }
.ind-flow li:last-child::after { display: none; }
.ind-call { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; background: var(--l-ink); border-radius: 8px; padding: 10px 14px; margin-bottom: 18px; }
.ind-call span { color: var(--l-on-ink-dim); font-size: 13px; }
.ind-call code { color: #cfe9ea; font-size: 13px; word-break: break-all; }
.ind-wins { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.ind-wins li { position: relative; padding-left: 22px; font-size: 14.5px; color: #3c4655; }
.ind-wins li::before { content: ""; position: absolute; left: 2px; top: 4px; width: 10px; height: 6px; border-left: 2px solid var(--l-seal); border-bottom: 2px solid var(--l-seal); transform: rotate(-45deg); }

/* ---------------------------------------------------------- privacy */
.privacy-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.privacy-list { list-style: none; padding: 0; margin: 0; }
.privacy-list li { padding: 14px 0 14px 30px; border-bottom: 1px solid rgba(255,255,255,.16); color: #d4ebec; position: relative; line-height: 1.5; }
.privacy-list li:last-child { border-bottom: 0; }
.privacy-list li::before { content: ""; position: absolute; left: 2px; top: 20px; width: 11px; height: 6px; border-left: 2px solid #9fe0c0; border-bottom: 2px solid #9fe0c0; transform: rotate(-45deg); }
.privacy-list strong { color: #fff; }

/* ---------------------------------------------------------- access */
.access-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.access-form { background: #fff; border: 1px solid #d6e0e0; border-radius: 14px; padding: 24px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------------------------------------------------------- responsive */
@media (max-width: 900px) {
  .hero-band { padding: 40px 0 52px; }
  .hero-grid, .demo-grid, .ind-grid, .privacy-grid, .access-grid { grid-template-columns: 1fr; gap: 32px; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .band { padding: 56px 0; }
  .ind-tabs { flex-direction: row; overflow-x: auto; border-left: 0; border-bottom: 1px solid #d6e0e0; scrollbar-width: none; }
  .ind-tabs button { border-left: 0; border-bottom: 3px solid transparent; margin: 0 0 -1px; white-space: nowrap; padding: 10px 14px; }
  .ind-tabs button[aria-selected="true"] { border-bottom-color: var(--l-teal); }
  .ind-panel { min-height: 0; }
}
@media (max-width: 480px) {
  .node { width: 70px; font-size: 12px; }
  .node-icon { width: 42px; height: 42px; }
  .wire { margin-top: 21px; }
  .journey { padding: 16px; }
  .ticket { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .pulse, .ind-panel.swap, .journey[data-phase="done"] .seal, .pipeline li.active .dot { animation: none !important; }
  .ticket, .journey-foot, .node-icon { transition: none; }
}

/* grid columns may shrink below their content's natural width (long request lines, code) */
.hero-grid > *, .demo-grid > *, .ind-grid > *, .privacy-grid > *, .access-grid > * { min-width: 0; }
body:has(main.landing) .topbar { background: var(--l-ink); }
