/* ─────────────────────────────────────────────────────────────
   Erika · page styles for pricing, API, API reference, MCP, 404 and privacy.
   Loaded after /site.css. Uses the :root tokens from site.css only.
   ───────────────────────────────────────────────────────────── */

/* Small helpers */
.sec--tight{padding-top:calc(var(--sec)*.6)}
.hero__note{margin-top:22px;font:400 13px/1.4 var(--f-mono);color:rgba(252,251,249,.82)}

/* ── Columns: bordered cards in a row (who it's for, built for scale) ── */
.cols{display:grid;grid-template-columns:repeat(4,1fr);border-top:1px solid var(--line)}
.cols--3{grid-template-columns:repeat(3,1fr)}
.cols>div{padding:28px 28px 32px 0}
.cols>div+div{padding-left:28px;border-left:1px solid var(--line)}
.cols--3>div:nth-child(3n+1){padding-left:0;border-left:0}
.cols--3>div:nth-child(n+4){border-top:1px solid var(--line)}
.cols h3{font-size:20px;line-height:1.3;margin-bottom:10px}
.cols p{color:var(--mute);font-size:15px;line-height:1.6}
@media (max-width:1100px){
  .cols,.cols--3{grid-template-columns:1fr 1fr}
  .cols>div,.cols>div+div{padding:24px 24px 28px 0;border-left:0}
  .cols>div:nth-child(2n){padding-left:24px;border-left:1px solid var(--line)}
  .cols>div:nth-child(n+3){border-top:1px solid var(--line)}
}
@media (max-width:620px){
  .cols,.cols--3{grid-template-columns:1fr}
  .cols>div,.cols>div+div,.cols>div:nth-child(2n){padding:22px 0;border-left:0}
  .cols>div+div{border-top:1px solid var(--line)}
}


/* ── Code blocks (API page) ─────────────────────────────────── */
.code{min-width:0}
.code__label{display:block;margin-bottom:10px;font:400 13px/1.4 var(--f-mono);color:var(--mute)}
.code pre{margin:0;background:#0f1411;color:#e8ece9;padding:20px 22px;border-radius:var(--r-card);overflow:auto;font:400 13.5px/1.65 var(--f-mono);tab-size:2}
.code pre code{font:inherit;white-space:pre}
.code+.code{margin-top:24px}
.two--top{align-items:start}
.two--top>*{min-width:0}
@media (min-width:1101px){.two--top{grid-template-columns:minmax(0,1fr) minmax(0,1.15fr)}}
.links{display:flex;flex-wrap:wrap;gap:12px 28px;margin-top:32px}

/* ── Pricing: comparison matrix ─────────────────────────────── */
.mx-wrap{border:1px solid var(--line);border-radius:20px;background:var(--white)}
.mx{width:100%;border-collapse:separate;border-spacing:0;font-size:15px;line-height:1.45}
.mx th,.mx td{padding:14px 18px;text-align:left;vertical-align:middle;border-bottom:1px solid var(--line)}
.mx tbody tr:last-child th,.mx tbody tr:last-child td{border-bottom:0}
.mx thead th{position:sticky;top:76px;z-index:2;background:var(--white);padding-top:20px;padding-bottom:16px;vertical-align:bottom;border-bottom:1px solid var(--ink)}
.mx thead th:first-child{border-top-left-radius:20px}
.mx thead th:last-child{border-top-right-radius:20px}
.mx thead th b{display:flex;align-items:center;gap:8px;font:500 15px/1.2 var(--f-body)}
.mx .mx__p{display:block;margin-top:6px;font:400 22px/1 var(--f-display);letter-spacing:-.02em;white-space:nowrap}
.mx .mx__p small{font:400 13px/1 var(--f-body);color:var(--mute);letter-spacing:0;margin-left:2px}
.mx tbody th{font-weight:400;color:var(--ink-2);width:34%}
.mx td{width:16.5%;color:var(--ink-2)}
.mx .hi{background:var(--paper)}
.mx thead th.hi{background:var(--paper)}
.mx__g th{padding-top:28px;padding-bottom:10px;font:400 13px/1.4 var(--f-mono)!important;color:var(--mute)!important;background:var(--white)}
.mx .y::before,.mx .n::before{content:"";display:block;width:16px;height:16px;background:center/contain no-repeat}
.mx .y::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d0d0c' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E")}
.mx .n::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 12h12'/%3E%3C/svg%3E")}
.mx td.t{font-size:14px}
.mx .mono{font-size:13px;color:var(--mute)}
@media (max-width:860px){
  .mx-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
  .mx{min-width:640px;font-size:14px}
  .mx th,.mx td{padding:12px 12px}
  .mx thead th{position:static}
  .mx tbody th,.mx thead th:first-child{position:sticky;left:0;z-index:1;background:var(--white);box-shadow:1px 0 0 var(--line)}
  .mx tbody th{width:auto;min-width:150px}
  .mx .mx__p{font-size:18px}
}

/* ── Pricing: credits explainer + custom pricing ────────────── */
.credit{background:var(--paper);border-radius:var(--r-card);padding:32px}
.credit .checks{margin-top:0}
.custom{display:grid;grid-template-columns:1fr auto;gap:24px 48px;align-items:center;padding:40px;border:1px solid var(--line);border-radius:20px;background:var(--white)}
.custom h2{font-size:clamp(28px,3vw,36px)}
.custom p{margin-top:12px;color:var(--mute);max-width:620px}
.custom__a{display:flex;align-items:center;gap:20px;flex-wrap:wrap}
@media (max-width:860px){.custom{grid-template-columns:1fr;padding:28px 22px}.credit{padding:24px 20px}}

/* ── 404 ────────────────────────────────────────────────────── */
.e404{min-height:62vh;display:flex;align-items:center;justify-content:center;text-align:center;padding:96px var(--gutter) 24px}
.e404__in{max-width:620px}
.e404 .eye{justify-content:center}
.e404 h1{font-size:clamp(36px,5vw,56px)}
.e404 .lead{margin:20px auto 0}
.e404__a{display:flex;align-items:center;justify-content:center;gap:24px;flex-wrap:wrap;margin-top:36px}
.e404__links{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 22px;margin-top:40px;padding-top:28px;border-top:1px solid var(--line);font-size:15px}
.e404__links a{color:var(--ink-2);text-underline-offset:3px}
@media (max-width:860px){.e404{padding-top:64px}.e404__a{flex-direction:column;gap:14px}}

/* ── Document pages (privacy) ───────────────────────────────── */
.doc{padding-bottom:24px}
.doc .prose{margin-top:48px}
.doc .dochead .eye{margin-bottom:16px}
.doc__back{display:flex;gap:20px;flex-wrap:wrap;margin-top:56px;padding-top:28px;border-top:1px solid var(--line);max-width:720px}
.mx .mx__p--sm{font-size:17px;padding-top:4px;color:var(--ink-2)}

/* ── API reference (generated by scripts/gen-api-reference.mjs) ── */
.refpage .dochead .eye a{color:inherit;text-decoration:none}
.refpage .dochead__meta a{color:var(--ink-2);text-underline-offset:3px}
.ref{display:grid;grid-template-columns:260px minmax(0,1fr);gap:56px;padding:48px 0 calc(var(--sec)*.6)}
.ref__nav{position:sticky;top:96px;align-self:start;max-height:calc(100vh - 120px);overflow:auto;font-size:14px;line-height:1.4}
.ref__nav summary{font:400 13px/1.4 var(--f-mono);color:var(--mute);cursor:pointer;margin-bottom:12px}
.ref__nav ul{list-style:none;margin:0;padding:0}
.ref__nav>details>ul>li{margin-top:14px}
.ref__nav>details>ul>li>a{font-weight:600;color:var(--ink);text-decoration:none}
.ref__nav li ul li{margin-top:6px}
.ref__nav li ul a{display:flex;gap:8px;align-items:baseline;color:var(--ink-2);text-decoration:none}
.ref__nav a:hover{text-decoration:underline;text-underline-offset:3px}
.ref__body.prose{max-width:none;font-size:16px}
.ref__body>section+section{margin-top:72px;padding-top:8px;border-top:1px solid var(--line)}
.ref__op{scroll-margin-top:96px}
.ref__op+.ref__op{margin-top:44px}
.ref__tag,.ref__op[id^="schema-"]{scroll-margin-top:96px}
.ref__op h3{margin-top:1.4em}
.ref__op h4{font:400 13px/1.4 var(--f-mono);color:var(--mute);margin-top:22px}
.ref__ep{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.ref__ep code{word-break:break-all}
.ref__m{display:inline-block;min-width:52px;padding:2px 6px;border:1px solid var(--line);border-radius:6px;font:500 11px/1.5 var(--f-mono);letter-spacing:.04em;text-align:center;color:var(--ink);background:var(--white);flex:none}
.ref__m--post,.ref__m--put,.ref__m--patch{background:var(--paper)}
.ref__m--delete{color:var(--mute)}
.ref__nav .ref__m{min-width:46px;font-size:10px}
.ref__tbl{overflow-x:auto;-webkit-overflow-scrolling:touch}
.ref__tbl table{min-width:560px;font-size:14px}
.ref__tbl td:first-child{white-space:nowrap}
.ref__type{font:400 13px/1.5 var(--f-mono);color:var(--ink-2);max-width:220px}
.ref__note{display:block;margin-top:4px;font:400 12px/1.5 var(--f-mono);color:var(--mute)}
.ref__small{font-size:15px}
.ref__errs{list-style:none;padding:0!important;font-size:14px;color:var(--mute)}
.ref__errs li+li{margin-top:2px}
.ref__errs b{color:var(--ink-2);font:500 13px var(--f-mono);margin-right:6px}
@media (max-width:960px){
  .ref{grid-template-columns:1fr;gap:28px;padding-top:28px}
  .ref__nav{position:static;max-height:none;border:1px solid var(--line);border-radius:var(--r-card);padding:14px 18px}
  .ref__nav summary{margin-bottom:0}
  .ref__nav details[open] summary{margin-bottom:12px}
}

/* ── MCP page: tool catalog ─────────────────────────────────── */
.tools{display:grid;gap:40px}
.tools h3{font-size:20px;margin-bottom:6px}
.tools .small{color:var(--mute);margin-bottom:14px}
.tools__tbl{border:1px solid var(--line);border-radius:var(--r-card);overflow:hidden;background:var(--white)}
.tools__tbl table{width:100%;table-layout:fixed;border-collapse:collapse;font-size:15px;line-height:1.5}
.tools__tbl th,.tools__tbl td{text-align:left;vertical-align:top;padding:12px 18px;border-bottom:1px solid var(--line)}
.tools__tbl tr:last-child td{border-bottom:0}
.tools__tbl th{font:400 13px/1.4 var(--f-mono);color:var(--mute);background:var(--paper)}
.tools__tbl th:first-child{width:30%}
.tools__tbl th:nth-child(2){width:12%}
.tools__tbl td:first-child{font:400 14px/1.5 var(--f-mono);color:var(--ink);overflow-wrap:anywhere}
.mcp-note{margin-top:20px;color:var(--mute)}
.tools__tbl td:nth-child(2){color:var(--mute);font-size:14px;white-space:nowrap}
.tools__tbl td:last-child{color:var(--ink-2)}
@media (max-width:760px){
  .tools__tbl table,.tools__tbl tbody,.tools__tbl tr,.tools__tbl td{display:block}
  .tools__tbl thead{display:none}
  .tools__tbl tr{padding:12px 16px;border-bottom:1px solid var(--line)}
  .tools__tbl tr:last-child{border-bottom:0}
  .tools__tbl td{padding:0;border:0;white-space:normal!important}
  .tools__tbl td+td{margin-top:4px}
}

/* /jobs: WhatsApp + email contact cards */
.jobs-ch{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}
.jobs-card{display:flex;flex-direction:column;padding:32px;border:1px solid var(--line);border-radius:20px;background:var(--white)}
.jobs-card .eye{margin-bottom:12px}
.jobs-card__v{font:600 28px/1.2 var(--f-display);overflow-wrap:anywhere}
.jobs-card__t{margin:16px 0 32px;color:var(--mute);line-height:1.55}
.jobs-card .pill{margin-top:auto;align-self:flex-start}
@media (max-width:760px){.jobs-ch{grid-template-columns:1fr}.jobs-card{padding:24px}.jobs-card__v{font-size:24px}}
