/* tenantleak Cloud — public site. Builds on the tokens and components of app.css.
   Red stays reserved for one thing: data crossing from one customer to another. */

/* ---------- header & footer ---------- */
.pub-head nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--ink); text-underline-offset: 7px; text-decoration-thickness: 2px; }
.pub-head nav .btn { color: #fff; }
.pub-head .btn .short { display: none; }

.pub-foot { background: var(--surface); margin-top: 0; }
.pub-foot .brand { color: var(--ink); padding: 0; }
.pub-foot .brand small { color: var(--steel); }
.foot-id p { margin: 10px 0 0; }
.foot-id a { color: var(--ink); }
.pub-foot .foot-nav { flex-direction: column; flex-wrap: nowrap; gap: 8px; min-width: 180px; }
.foot-nav h2 { font: 600 13px/1.3 var(--font); color: var(--ink); margin: 0 0 4px; letter-spacing: 0; }
.foot-nav a { color: var(--steel); text-decoration: none; }
.foot-nav a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- shared blocks ---------- */
.section-rule { border-top: 1px solid var(--line); }
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; align-items: start; }
.split-head h2 { margin-bottom: 12px; }
.split-head p { font-size: 15px; }
.page-intro { padding: 56px 0 36px; }
.page-intro h1 { font-size: clamp(2.1rem, 3.8vw, 3rem); letter-spacing: -0.025em; margin-bottom: 12px; }
.page-intro .lede { margin: 0; }

/* ---------- hero ---------- */
.hero { padding: 48px 0 80px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); line-height: 1.03; letter-spacing: -0.032em; max-width: 15ch; margin-bottom: 22px; }
.hero .lede { margin-bottom: 26px; }
.hero-small { font-size: 13.5px; color: var(--steel); margin-top: 16px; }

/* the exhibit: one request crossing the wall between two customers */
.exhibit { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  box-shadow: 0 24px 48px -32px rgba(19, 24, 32, 0.45); }
.ex-bar { display: flex; justify-content: space-between; gap: 12px; font: 500 12px/1 var(--mono); color: var(--steel);
  padding: 11px 18px; background: #f8f9fa; border-bottom: 1px solid var(--line); }
.lanes { position: relative; padding: 18px 18px 24px; }
.lanes::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; border-left: 2px dashed var(--line-strong); }
.lanes-names { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 34px; }
.tenant { margin: 0; font: 700 15px/1.2 var(--display); }
.tenant small { display: block; font: 400 12px/1.4 var(--font); color: var(--steel); }
.tenant-b { text-align: right; }
.wall-label { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); margin: 0; padding: 2px 6px;
  background: var(--surface); font-size: 11px; color: var(--faint); white-space: nowrap; }
.lanes-row { display: flex; align-items: center; position: relative; }
.obj { flex: 0 0 38%; display: grid; gap: 2px; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--leak); background: var(--leak-bg); }
.obj-kind { font-size: 12.5px; font-weight: 600; color: var(--leak-ink); }
.obj b { font: 700 19px/1.2 var(--display); letter-spacing: -0.01em; }
.obj-owner { font-size: 12px; color: var(--steel); }
.cross { flex: 1; height: 2px; background: var(--leak); position: relative; margin: 0 6px 0 12px; }
.cross::before { content: ""; position: absolute; left: -9px; top: -5px; border: 6px solid transparent; border-right: 9px solid var(--leak); border-left: 0; }
.cross span { position: absolute; left: 50%; bottom: 7px; transform: translateX(-50%); font: 700 11px/1 var(--mono); color: var(--leak);
  background: var(--surface); padding: 2px 4px; white-space: nowrap; }
.who { flex: 0 0 38%; display: grid; gap: 5px; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--surface); }
.who-id { font-size: 12.5px; color: var(--steel); }
.who code, .ex-after code { font-size: 12px; overflow-wrap: anywhere; }
.exhibit .verb { min-width: 0; margin-right: 6px; }
.ex-resp { margin: 0; padding: 14px 18px; background: var(--ink); color: #dfe4ea; font: 12.5px/1.6 var(--mono); white-space: pre; overflow-x: auto; }
.ex-status { color: #ff8796; font-weight: 700; }
.ex-leak { background: rgba(215, 38, 61, 0.34); color: #fff; border-radius: 3px; }
.ex-verdict { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.ex-verdict p { margin: 0; font-size: 14px; }
.ex-verdict .sev { flex: none; margin-top: 1px; }
.ex-after .ex-bar { border-top: 0; }
.ex-after p { margin: 0; padding: 12px 18px 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 14px; }
.ex-sealed { font: 700 12.5px/1 var(--mono); color: var(--sealed); }

/* ---------- what is tested ---------- */
.tests { display: grid; grid-template-columns: 1fr 1fr; border-top: 1.5px solid var(--ink); }
.test { padding: 20px 0; border-bottom: 1px solid var(--line); }
.test:nth-child(odd) { padding-right: 28px; border-right: 1px solid var(--line); }
.test:nth-child(even) { padding-left: 28px; }
.test h3 { margin-bottom: 8px; }
.test code { display: inline-block; background: #e8ebee; color: var(--ink); padding: 3px 8px; border-radius: 4px; margin-bottom: 10px; font-size: 12.5px; }
.test p { margin: 0; font-size: 14.5px; color: var(--steel); }

/* ---------- how it works: a real sequence ---------- */
.flow { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; counter-reset: flow; }
.flow li { counter-increment: flow; position: relative; padding-top: 56px; }
.flow li::before { content: counter(flow); position: absolute; top: 0; left: 0; z-index: 1; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; font: 700 15px/1 var(--display); border: 1.5px solid var(--ink); background: var(--surface); }
.flow li::after { content: ""; position: absolute; top: 19px; left: 38px; right: -32px; height: 1.5px; background: var(--line-strong); }
.flow li:last-child::after { display: none; }
.flow h3 { margin-bottom: 8px; }
.flow p { font-size: 14.5px; color: var(--steel); margin-bottom: 12px; }
.flow code { display: block; font-size: 12px; color: var(--ink-3); overflow-wrap: anywhere; }

/* ---------- issue tracking mock ---------- */
.mock .table td { font-size: 13.5px; }
.mock .table td b { font-weight: 600; display: inline-block; margin-bottom: 4px; }
.mock .verb { min-width: 0; }
.mock .tag { margin-left: 6px; }

/* ---------- safety facts ---------- */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 28px 0 22px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); }
.facts > div { padding: 22px 22px 20px; border-right: 1px solid var(--line); }
.facts > div:last-child { border-right: 0; }
.facts dt { font: 700 1.15rem/1.2 var(--display); margin-bottom: 8px; }
.facts dd { margin: 0; font-size: 14px; color: var(--steel); }

/* ---------- plans summary (home) ---------- */
.plan-lines { list-style: none; padding: 0; margin: 0; border-top: 1.5px solid var(--ink); }
.plan-lines li { display: grid; grid-template-columns: 170px minmax(0, 1fr) 190px; gap: 4px 28px;
  grid-template-areas: "name pitch go" "name extras go"; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.plan-name { grid-area: name; }
.plan-name h3 { margin: 0 0 4px; }
.plan-price { font: 700 1.35rem/1.1 var(--display); }
.plan-price small { font: 400 13px var(--font); color: var(--steel); }
.plan-pitch-line { grid-area: pitch; margin: 0; }
.plan-extras { grid-area: extras; margin: 0; font-size: 13.5px; color: var(--steel); }
.plan-go { grid-area: go; font-weight: 600; white-space: nowrap; justify-self: end; }

/* ---------- FAQ ---------- */
.faq { border-top: 1.5px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 500 20px/1 var(--display); color: var(--steel); flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 10px 0 0; color: var(--steel); font-size: 14.5px; }

/* ---------- closing band ---------- */
.cta-band { background: var(--ink); color: #c9d0d9; padding: 72px 0; }
.cta-band h2 { color: #fff; font-size: clamp(1.9rem, 3.4vw, 2.6rem); letter-spacing: -0.025em; }
.cta-band p { font-size: 1.05rem; margin-bottom: 24px; }
.cta-link { color: #fff; font-weight: 600; }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden; }
.plan { display: flex; flex-direction: column; padding: 30px 28px 32px; border-right: 1px solid var(--line); }
.plan:last-child { border-right: 0; }
.plan-focus { box-shadow: inset 0 4px 0 var(--ink); }
.plan h2 { font-size: 1.3rem; margin-bottom: 14px; }
.plan-amount { margin: 0 0 10px; }
.plan-amount b { font: 700 2.7rem/1 var(--display); letter-spacing: -0.03em; }
.plan-amount span { color: var(--steel); font-size: 14px; }
.plan-pitch { color: var(--steel); min-height: 3.2em; }
.plan .btn { align-self: flex-start; margin: 4px 0 22px; }
.plan-list { list-style: none; padding: 16px 0 0; margin: 0; border-top: 1px solid var(--line); display: grid; gap: 9px; font-size: 14.5px; }
.plan-list li { position: relative; padding-left: 22px; }
.plan-list li::before { content: ""; position: absolute; left: 2px; top: 0.42em; width: 10px; height: 5px;
  border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(-45deg); }
.vat { font-size: 13.5px; color: var(--steel); margin: 14px 0 0; }
.compare th[scope="row"] { background: none; color: var(--ink); font-size: 14px; font-weight: 500; border-bottom: 1px solid var(--line); }
.compare thead th { font-size: 13.5px; color: var(--ink); }
.compare tr:last-child th { border-bottom: 0; }
.compare td { width: 20%; }
.compare th[scope="row"], .compare td { vertical-align: middle; }
.yes { font-weight: 600; }
.no { color: var(--faint); }

/* ---------- security & bot pages ---------- */
.sec-block { padding-top: 40px; padding-bottom: 8px; }
.sec-block .prose > :first-child { margin-top: 0; }
.sec-facts { display: grid; grid-template-columns: max-content 1fr; gap: 12px 24px; margin: 0; }
.sec-facts dt { font-weight: 600; }
.sec-facts dd { margin: 0; }

/* ---------- documentation ---------- */
.docs { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; align-items: start; }
.toc { position: sticky; top: 20px; font-size: 14px; }
.toc h2 { font: 600 13px/1.3 var(--font); color: var(--steel); margin-bottom: 10px; letter-spacing: 0; }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 1px; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 5px 12px; margin-left: -1px; border-left: 2px solid transparent; color: var(--steel); text-decoration: none; }
.toc a:hover { color: var(--ink); border-left-color: var(--ink); }
.doc-body { max-width: 800px; }
.doc-body section { scroll-margin-top: 16px; }
.doc-body section + section { margin-top: 44px; padding-top: 36px; border-top: 1px solid var(--line); }
.doc-body section > h2:first-child { margin-top: 0; }
.doc-body h3 { scroll-margin-top: 16px; }
.doc-dl { display: grid; grid-template-columns: minmax(110px, 13rem) minmax(0, 1fr); gap: 12px 22px; margin: 0 0 1.2em; }
.doc-dl dt { font-weight: 600; }
.doc-dl dd { margin: 0; }
.doc-body .copy-wrap pre.code { padding-right: 80px; }
.endpoints td { font-size: 13.5px; }
.endpoints td:first-child { white-space: nowrap; }
.endpoints .verb { min-width: 44px; }

/* ---------- legal ---------- */
.legal { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; align-items: start; }
.legal-nav { position: sticky; top: 20px; display: grid; gap: 2px; font-size: 14px; }
.legal-nav a { padding: 7px 10px; border-radius: 6px; color: var(--steel); text-decoration: none; }
.legal-nav a:hover { color: var(--ink); background: #e8ebee; }
.legal-nav a[aria-current="page"] { background: var(--ink); color: #fff; }
.legal-body h2 { font-size: 1.15rem; }
.legal-body .table td, .legal-body .table th { font-size: 13.5px; }
.legal-dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 24px; margin: 0 0 1em; }
.legal-dl dt { color: var(--steel); }
.legal-dl dd { margin: 0; }
.todo { background: var(--unsure-bg); color: #6c4800; padding: 1px 6px; border-radius: 4px; font-weight: 600; box-shadow: inset 0 0 0 1px #ecd28c; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow li:nth-child(2)::after { display: none; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts > div:nth-child(2) { border-right: 0; }
  .facts > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 900px) {
  .hero { padding: 24px 0 56px; }
  .hero-grid, .split, .docs, .legal { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .split { gap: 12px; }
  .tests { grid-template-columns: minmax(0, 1fr); }
  .test:nth-child(odd), .test:nth-child(even) { padding-left: 0; padding-right: 0; border-right: 0; }
  .plan-lines li { grid-template-columns: minmax(0, 1fr); grid-template-areas: "name" "pitch" "extras" "go"; gap: 6px; }
  .plan-go { justify-self: start; }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .plan { border-right: 0; border-bottom: 1px solid var(--line); }
  .plan:last-child { border-bottom: 0; }
  .plan-pitch { min-height: 0; }
  .toc, .legal-nav { position: static; }
  .toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); border-left: 0; }
  .toc a { border-left: 0; padding: 4px 0; margin: 0; }
  .legal-nav { display: flex; flex-wrap: wrap; gap: 6px; }
  .legal-nav a { border: 1px solid var(--line-strong); }
  .page-intro { padding: 32px 0 24px; }
  .sec-block { padding-top: 28px; }
}
@media (max-width: 560px) {
  .flow { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .flow li { padding-top: 0; padding-left: 54px; }
  .flow li::after { display: none; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .facts > div:last-child { border-bottom: 0; }
  .doc-dl, .sec-facts, .legal-dl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .doc-dl dd, .sec-facts dd, .legal-dl dd { margin-bottom: 10px; }
  .pub-head nav { gap: 14px; font-size: 14px; }
  .pub-head .brand small { display: none; }
  .pub-head .btn .long { display: none; }
  .pub-head .btn .short { display: inline; }
  .lanes { padding: 14px 12px 20px; }
  .obj, .who { flex-basis: 39%; padding: 8px 9px; }
  .obj b { font-size: 16px; }
  .cross { margin: 0 4px 0 10px; }
  .ex-resp { font-size: 11.5px; padding: 12px 14px; }
  .ex-bar, .ex-verdict, .ex-after p { padding-left: 14px; padding-right: 14px; }
  .compare td { width: auto; }
  .mock .table th, .mock .table td { padding: 10px 8px; }
  .mock .table td { font-size: 13px; }
  .mock .state { white-space: normal; }
}
