/* Shared by the content pages: /pricing, /api, /claude, /help, /privacy, /terms.
   Builds on /styles.css tokens (violet accent, Geist, .btn, .eyebrow, .qs, .reveal). */

/* ---------- Page hero ---------- */
.phero { position: relative; overflow: hidden; padding-block: 72px 56px; text-align: center; isolation: isolate; }
.phero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(#eceaf3 1px, transparent 1px), linear-gradient(90deg, #eceaf3 1px, transparent 1px); background-size: 44px 44px; -webkit-mask-image: radial-gradient(ellipse 70% 75% at 50% 0%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 70% 75% at 50% 0%, #000 20%, transparent 75%); }
.phero::after { content: ""; position: absolute; z-index: -1; left: 50%; top: -220px; width: 900px; height: 520px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(124, 58, 237, .13), rgba(124, 58, 237, 0)); pointer-events: none; }
.phero h1 { font-size: clamp(36px, 5.2vw, 62px); font-weight: 750; letter-spacing: -0.04em; line-height: 1.04; max-width: 18ch; margin: 14px auto 0; }
.phero .sub { margin: 18px auto 0; max-width: 640px; color: #4a4f5a; font-size: clamp(16.5px, 1.5vw, 19px); line-height: 1.55; }
.phero-cta { display: flex; justify-content: center; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.grad-text { background: linear-gradient(90deg, #7c3aed, #c026d3 70%, #ec4899); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Section rhythm ---------- */
.csec { padding-block: 88px; }
.csec.tight { padding-block: 56px; }
.csec.soft { background: #faf9fd; border-block: 1px solid #f0edf7; }
.csec-head { max-width: 720px; margin: 0 auto; text-align: center; }
.csec-head h2 { margin-top: 10px; }
.csec-head p { margin: 14px auto 0; color: var(--muted); font-size: 17.5px; max-width: 620px; }

/* ---------- Pills, badges ---------- */
.pill { display: inline-flex; align-items: center; gap: 7px; font: 600 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .07em; padding: 6px 10px; border-radius: 999px; background: #f3effe; color: #6d28d9; white-space: nowrap; }
.pill.live { background: var(--ok-bg); color: var(--ok); }
.pill.new { background: #fff1db; color: #9a4a06; }
.pill.dark { background: #0b0d10; color: #fff; }
.pill .pdot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.live .pdot { animation: pdot 2s infinite; }
@keyframes pdot { 50% { opacity: .35; } }
.mini-badges { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
.mini-badges span { font: 500 13px var(--font); color: #4a4f5a; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; }

/* ---------- Copy buttons + URL box ---------- */
.copy-btn { flex: none; display: inline-flex; align-items: center; gap: 6px; font: 600 12.5px/1 var(--font); color: #e9e6f5; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); border-radius: 8px; padding: 7px 10px; cursor: pointer; transition: background .15s, color .15s; }
.copy-btn:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.copy-btn svg { width: 14px; height: 14px; }
.copy-btn.done { color: #9ef0c4; border-color: rgba(158, 240, 196, .35); }
.copy-btn.light { color: var(--fg); background: #fff; border-color: var(--line); }
.copy-btn.light:hover { background: var(--soft); }
.copy-btn.light.done { color: var(--ok); border-color: #bfe6cf; }
.urlbar { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #ddd6fe; border-radius: 14px; padding: 7px 7px 7px 16px; box-shadow: 0 18px 40px -26px rgba(91, 33, 182, .45); min-width: 0; }
.urlbar code { flex: 1; min-width: 0; font: 500 15px/1.4 var(--mono); color: #2e1065; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.urlbar code::-webkit-scrollbar { display: none; }
.urlbar .btn { flex: none; padding: 11px 16px; font-size: 14.5px; }

/* ---------- Code blocks (tabs, copy, highlight) ---------- */
.cb { background: #0f1117; border: 1px solid #1d2130; border-radius: 14px; overflow: hidden; color: #e6e8ef; min-width: 0; box-shadow: 0 30px 60px -40px rgba(15, 17, 30, .6); }
.cb-bar { display: flex; align-items: center; gap: 6px; padding: 8px 8px 8px 12px; border-bottom: 1px solid #1d2130; background: #141722; min-height: 46px; }
.cb-title { font: 500 12.5px var(--mono); color: #9aa3b8; display: inline-flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cb-tabs { display: flex; gap: 2px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.cb-tabs::-webkit-scrollbar { display: none; }
.cb-tabs button { font: 500 13px var(--font); color: #9aa3b8; background: none; border: 0; border-radius: 7px; padding: 7px 10px; cursor: pointer; white-space: nowrap; }
.cb-tabs button:hover { color: #fff; }
.cb-tabs button[aria-selected="true"] { color: #fff; background: rgba(255, 255, 255, .08); }
.cb-bar .copy-btn { margin-left: auto; }
.cb pre { margin: 0; padding: 16px 18px; overflow-x: auto; font: 13.5px/1.65 var(--mono); tab-size: 2; }
.cb pre code { font: inherit; white-space: pre; }
.cb pre.wrap code { white-space: pre-wrap; overflow-wrap: anywhere; }
.cb [role="tabpanel"][hidden] { display: none; }
.cb-foot { padding: 9px 16px; border-top: 1px solid #1d2130; font: 500 12px var(--mono); color: #7d869c; background: #121520; }
.tk-s { color: #a7e8c6; } .tk-k { color: #c4b5fd; } .tk-n { color: #fcd38b; } .tk-c { color: #6f7891; font-style: italic; } .tk-w { color: #f9a8d4; } .tk-b { color: #93c5fd; } .tk-p { color: #8b93a7; }
.verb { display: inline-block; font: 700 11px/1 var(--mono); letter-spacing: .04em; padding: 5px 7px; border-radius: 6px; background: #ede9fe; color: #5b21b6; }
.cb .verb { background: rgba(196, 181, 253, .16); color: #d8ccff; }

/* ---------- Docs layout: sticky table of contents ---------- */
.docs { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 56px; align-items: start; }
.toc { position: sticky; top: 92px; max-height: calc(100vh - 110px); overflow-y: auto; padding: 4px 0 24px; scrollbar-width: thin; }
.toc b { display: block; font: 600 11.5px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--faint); margin: 18px 0 6px; }
.toc b:first-child { margin-top: 0; }
.toc a { display: flex; align-items: center; gap: 8px; text-decoration: none; color: #363b44; font-size: 14.5px; padding: 6px 10px; border-radius: 8px; border-left: 2px solid transparent; transition: color .15s, background .15s; }
.toc a:hover { color: var(--fg); background: #f6f4fb; }
.toc a.on { color: #5b21b6; background: #f3effe; font-weight: 600; }
.toc .verb { font-size: 9.5px; padding: 3px 5px; }
.toc .pill { font-size: 9.5px; padding: 3px 6px; margin-left: auto; }
.prose h2 { font-size: clamp(26px, 3vw, 32px); text-align: left; letter-spacing: -0.03em; margin: 0; }
.prose h3 { font-size: 19px; letter-spacing: -0.015em; margin: 30px 0 10px; }
.prose p { color: #3f4550; font-size: 16.5px; line-height: 1.65; margin: 12px 0 0; }
.prose p a, .prose li a, .callout a { color: #6d28d9; font-weight: 600; text-decoration: underline; text-decoration-color: rgba(109, 40, 217, .3); text-underline-offset: 3px; }
.prose ul { margin: 12px 0 0; padding-left: 20px; color: #3f4550; display: grid; gap: 6px; }
.prose :not(pre) > code, .ic { font: 500 .88em var(--mono); background: #f3f1f8; color: #3b2a6b; border: 1px solid #ebe7f4; border-radius: 6px; padding: 1px 6px; overflow-wrap: anywhere; }
.dsec { padding-block: 44px; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.dsec:first-child { border-top: 0; padding-top: 0; }
.callout { display: flex; gap: 14px; align-items: flex-start; border: 1px solid #e9e3fb; background: #faf8ff; border-radius: 14px; padding: 16px 18px; margin-top: 18px; color: #3f4550; font-size: 15.5px; }
.callout svg { flex: none; width: 20px; height: 20px; color: #7c3aed; margin-top: 2px; }
.callout b { color: var(--fg); }
.callout.warn { border-color: #f7dfb7; background: #fffaf0; }
.callout.warn svg { color: #b45309; }

/* parameter rows (Resend style) */
.params { margin-top: 16px; border-top: 1px solid var(--line); }
.param { padding: 16px 0; border-bottom: 1px solid var(--line); }
.param-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.param-h code { font: 600 14.5px var(--mono); color: var(--fg); }
.ptype { font: 500 12px var(--mono); color: #6b7280; background: #f4f4f6; border-radius: 6px; padding: 3px 7px; }
.preq { font: 500 12px var(--mono); color: #b42318; background: #fff0ee; border-radius: 6px; padding: 3px 7px; }
.popt { font: 500 12px var(--mono); color: #6b7280; }
.param p { margin-top: 8px; font-size: 15.5px; }
.enum { display: grid; gap: 6px; margin-top: 10px; }
.enum div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 10px; font-size: 14.5px; color: #4a4f5a; }
.enum code { font: 500 13px var(--mono); color: #3b2a6b; align-self: start; justify-self: start; }

/* simple data tables */
.dtable { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 15px; }
.dtable th { text-align: left; font: 600 12px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--faint); padding: 10px 12px; border-bottom: 1px solid var(--line); }
.dtable td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; color: #3f4550; }
.dtable td:first-child { white-space: nowrap; }
.dtable code { font: 500 13.5px var(--mono); color: #3b2a6b; }
.tscroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------- Final CTA band ---------- */
.cta-band { padding-block: 40px 104px; }
.cta-card { position: relative; overflow: hidden; border-radius: 28px; padding: 64px 40px; text-align: center; color: #fff; background: radial-gradient(900px 400px at 15% -10%, rgba(255, 255, 255, .18), transparent 60%), linear-gradient(135deg, #4c1d95 0%, #6d28d9 45%, #a855f7 100%); box-shadow: 0 50px 100px -50px rgba(76, 29, 149, .8); isolation: isolate; }
.cta-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px); background-size: 40px 40px; -webkit-mask-image: radial-gradient(ellipse at 50% 120%, #000, transparent 70%); mask-image: radial-gradient(ellipse at 50% 120%, #000, transparent 70%); }
.cta-card h2 { color: #fff; margin: 0; font-size: clamp(30px, 4vw, 46px); }
.cta-card p { margin: 14px auto 0; max-width: 560px; color: rgba(255, 255, 255, .82); font-size: 18px; }
.cta-card .phero-cta { margin-top: 30px; }
.cta-card .btn { background: #fff; color: #4c1d95; border-color: #fff; }
.cta-card .btn:hover { background: #f3e8ff; }
.cta-card .btn-ghost { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .35); }
.cta-card .btn-ghost:hover { background: rgba(255, 255, 255, .18); }
.cta-card .urlbar { max-width: 560px; margin: 28px auto 0; text-align: left; }

/* ---------- Accordions (help + FAQs) ---------- */
.acc { border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 20px 4px; font-size: 17.5px; font-weight: 600; letter-spacing: -0.01em; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: ""; flex: none; margin-left: auto; width: 26px; height: 26px; border-radius: 50%; background: #f4f2fa url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 3.5v9M3.5 8h9' stroke='%235b21b6' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px no-repeat; transition: transform .25s ease, background-color .2s; }
.acc details[open] summary::after { transform: rotate(45deg); background-color: #ede9fe; }
.acc summary:hover { color: #4c1d95; }
.acc .ans { padding: 0 44px 22px 4px; color: #444b56; font-size: 16px; line-height: 1.65; display: grid; gap: 10px; }
.acc .ans a { color: #6d28d9; font-weight: 600; }
.acc details[open] .ans { animation: ansin .28s ease; }
@keyframes ansin { from { opacity: 0; transform: translateY(-4px); } }

/* Phone "On this page" menu (built by content.js from .toc) */
.toc-m { display: none; }
@media (max-width: 1000px) {
  .toc-m { display: block; position: sticky; top: 74px; z-index: 20; margin: 0 0 8px; background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 28px -20px rgba(30, 20, 60, .45); }
  .toc-m summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 11px 14px; font: 600 12px var(--mono); text-transform: uppercase; letter-spacing: .07em; color: var(--faint); }
  .toc-m summary::-webkit-details-marker { display: none; }
  .toc-m summary b { font: 600 14.5px var(--font); text-transform: none; letter-spacing: 0; color: var(--fg); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .toc-m summary::after { content: ""; margin-left: auto; flex: none; width: 10px; height: 10px; border-right: 2px solid #8b84a3; border-bottom: 2px solid #8b84a3; transform: rotate(45deg) translateY(-3px); transition: transform .2s; }
  .toc-m[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
  .toc-m nav { display: grid; padding: 4px 8px 10px; max-height: 60vh; overflow-y: auto; border-top: 1px solid var(--line); }
  .toc-m nav a { text-decoration: none; color: #363b44; padding: 9px 8px; border-radius: 8px; font-size: 15px; }
  .toc-m nav a.on { background: #f3effe; color: #5b21b6; font-weight: 600; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .docs { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .toc { position: static; max-height: none; display: none; }
}
@media (max-width: 760px) {
  .phero { padding-block: 44px 40px; }
  .csec { padding-block: 64px; }
  .cta-band { padding-block: 24px 72px; }
  .cta-card { padding: 44px 22px; border-radius: 22px; }
  .urlbar { flex-wrap: wrap; padding: 10px; }
  .urlbar code { flex-basis: 100%; font-size: 14px; padding: 4px 4px 2px; }
  .urlbar .btn { width: 100%; }
  .acc .ans { padding-right: 4px; }
  .enum div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .cb pre { font-size: 12.5px; padding: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .pill.live .pdot, .acc details[open] .ans { animation: none; }
}
