/* ytapis website — self-contained styles (no Tailwind CDN needed) */

:root {
  --bg: #05060a;
  --bg-2: #090b12;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-2: rgba(255, 255, 255, 0.065);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #f4f4f6;
  --muted: rgba(244, 244, 246, 0.66);
  --dim: rgba(244, 244, 246, 0.44);
  --red: #ff0033;
  --red-2: #c4001f;
  --cyan: #22d3ee;
  --green: #34d399;
  --yellow: #fbbf24;
  --rose: #fb7185;
  --radius: 18px;
  --max: 1180px;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 Inter, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
code, pre, kbd { font-family: var(--mono); }
h1, h2, h3, h4 { letter-spacing: -0.02em; line-height: 1.1; margin: 0; }
h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
h4 { font-size: 0.95rem; font-weight: 700; }
p { margin: 0; }
ul { margin: 0; padding-left: 1.2em; }
li { margin: 0.35em 0; }
strong { color: #fff; font-weight: 700; }
hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }

.skip-link { position: absolute; left: -999px; top: 8px; background: #fff; color: #000; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 6px; }

/* Layout */
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
section.block { padding: 88px 0; position: relative; }
.block-alt { background: rgba(255, 255, 255, 0.015); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.page-hero { padding: 150px 0 56px; position: relative; overflow: hidden; }
.section-head { text-align: center; max-width: 780px; margin: 0 auto 56px; }
.section-head p { margin-top: 16px; color: var(--muted); font-size: 1.1rem; }
.stack > * + * { margin-top: 16px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.center { text-align: center; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; } .mt-5 { margin-top: 48px; }
.mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.small { font-size: 0.875rem; }
.xs { font-size: 0.78rem; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.mono { font-family: var(--mono); }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }

.gradient-text { background: linear-gradient(90deg, #fff 0%, #ff3355 55%, #22d3ee 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grid-bg {
  background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.glow { position: absolute; border-radius: 50%; filter: blur(120px); pointer-events: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 14px; font-weight: 600; font-size: 0.95rem;
  border: 1px solid var(--line-2); background: var(--panel); color: var(--text);
  cursor: pointer; text-decoration: none; transition: background .2s, transform .2s, box-shadow .2s, opacity .2s;
  white-space: nowrap;
}
.btn:hover { background: var(--panel-2); transform: translateY(-1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-primary { background: linear-gradient(135deg, #ff1a4d, #c4001f); border-color: transparent; box-shadow: 0 12px 30px -12px rgba(255, 0, 51, .7); }
.btn-primary:hover { background: linear-gradient(135deg, #ff2d5e, #d4002b); box-shadow: 0 14px 36px -10px rgba(255, 0, 51, .8); }
.btn-light { background: #fff; color: #000; border-color: transparent; }
.btn-light:hover { background: #e6e6ea; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--muted); }
.btn-ghost:hover { color: #fff; background: var(--panel); }
.btn-lg { padding: 16px 28px; font-size: 1.05rem; border-radius: 16px; }
.btn-sm { padding: 7px 12px; font-size: 0.8rem; border-radius: 10px; }
.btn.copied { color: var(--green); border-color: rgba(52, 211, 153, .4); }

/* Cards & badges */
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: background .2s, border-color .2s, transform .2s;
}
.card:hover { background: var(--panel-2); border-color: var(--line-2); }
.card.flat { backdrop-filter: none; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.95rem; }
.card-img { padding: 0; overflow: hidden; }
.card-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-bottom: 1px solid var(--line); }
.card-img .card-body { padding: 22px 24px 24px; }
.icon-tile { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px; border: 1px solid var(--line); }
.icon-tile svg { width: 22px; height: 22px; }
.t-red { color: #ff4d6d; background: rgba(255, 0, 51, .1); }
.t-cyan { color: var(--cyan); background: rgba(34, 211, 238, .1); }
.t-green { color: var(--green); background: rgba(52, 211, 153, .1); }
.t-yellow { color: var(--yellow); background: rgba(251, 191, 36, .1); }
.t-purple { color: #c4b5fd; background: rgba(167, 139, 250, .12); }
.t-pink { color: #f9a8d4; background: rgba(244, 114, 182, .12); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel);
}
.chip { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; background: rgba(255,255,255,.1); color: var(--muted); padding: 3px 8px; border-radius: 999px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600;
  padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.b-ok { color: var(--green); border-color: rgba(52, 211, 153, .3); background: rgba(52, 211, 153, .09); }
.b-warn { color: var(--yellow); border-color: rgba(251, 191, 36, .3); background: rgba(251, 191, 36, .09); }
.b-bad { color: var(--rose); border-color: rgba(251, 113, 133, .3); background: rgba(251, 113, 133, .09); }
.b-info { color: var(--cyan); border-color: rgba(34, 211, 238, .3); background: rgba(34, 211, 238, .08); }
.b-dim { color: var(--dim); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--dim); display: inline-block; }
.dot.ok { background: var(--green); box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); animation: ping 2s infinite; }
.dot.bad { background: var(--rose); }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(52,211,153,.55); } 70% { box-shadow: 0 0 0 9px rgba(52,211,153,0); } 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); } }

.method { font-family: var(--mono); font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 8px; background: rgba(52, 211, 153, .14); color: var(--green); }
.path { font-family: var(--mono); font-size: 0.95rem; color: #fff; word-break: break-all; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-family: var(--mono); font-size: 12px; padding: 4px 9px; border-radius: 8px; background: rgba(255,255,255,.06); color: var(--muted); border: 1px solid var(--line); }

/* Code */
:not(pre) > code { font-family: var(--mono); font-size: .86em; background: rgba(255,255,255,.07); padding: 2px 6px; border-radius: 6px; color: #e2e8f0; word-break: break-word; }
.codebox { background: #0a0c12; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin: 16px 0; }
.codebox-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 14px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.02); }
.codebox-title { font-size: 12.5px; color: var(--dim); font-family: var(--mono); }
.codebox-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.codebox-pre { margin: 0 !important; padding: 16px 18px !important; overflow: auto; max-height: 560px; font-size: 13.5px; line-height: 1.65; background: transparent !important; }
.codebox-pre code { font-family: var(--mono); background: transparent !important; padding: 0 !important; white-space: pre; }
pre.plain { margin: 0; padding: 16px; background: #0a0c12; border: 1px solid var(--line); border-radius: 16px; overflow: auto; font-size: 13.5px; }
.cmd { display: flex; align-items: center; gap: 10px; background: rgba(0,0,0,.45); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin: 10px 0; }
.cmd code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; font-size: 13.5px; color: #86efac; background: transparent; padding: 0; }
.cmd .prompt-sign { color: var(--dim); font-family: var(--mono); }

.hero-code { max-width: 760px; margin: 56px auto 0; }
.hero-code .codebox { box-shadow: 0 30px 80px -30px rgba(255, 0, 51, .35); }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
table.table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table th, .table td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--dim); font-weight: 700; background: rgba(255,255,255,.02); }
.table tr:last-child td { border-bottom: 0; }
.table td:first-child { white-space: nowrap; }
.table .type { font-family: var(--mono); font-size: 13px; color: var(--cyan); }
.table .field { font-family: var(--mono); font-size: 13px; color: #ff6b86; }

/* Notices */
.notice { border-radius: 14px; padding: 14px 16px; border: 1px solid var(--line); font-size: 0.95rem; display: flex; gap: 12px; align-items: flex-start; background: rgba(255,255,255,.03); }
.notice svg { width: 18px; height: 18px; flex: none; margin-top: 3px; }
.notice.warn { border-color: rgba(251, 191, 36, .3); background: rgba(251, 191, 36, .07); color: #fde68a; }
.notice.warn svg { color: var(--yellow); }
.notice.info { border-color: rgba(34, 211, 238, .3); background: rgba(34, 211, 238, .06); color: #a5f3fc; }
.notice.info svg { color: var(--cyan); }
.notice.bad { border-color: rgba(251, 113, 133, .35); background: rgba(251, 113, 133, .07); color: #fecdd3; }
.notice.bad svg { color: var(--rose); }
.notice.ok { border-color: rgba(52, 211, 153, .3); background: rgba(52, 211, 153, .07); color: #a7f3d0; }
.notice.ok svg { color: var(--green); }
.notice p + p { margin-top: 6px; }

/* Tabs */
.tabs { display: flex; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: thin; }
.tab {
  padding: 15px 18px; background: none; border: 0; color: var(--dim); font-weight: 600; cursor: pointer;
  border-bottom: 2px solid transparent; white-space: nowrap; transition: color .2s, background .2s;
}
.tab:hover { color: #fff; }
.tab[aria-selected="true"] { color: #fff; border-bottom-color: var(--red); background: rgba(255,255,255,.04); }
.tab-panel { padding: 26px; }
.tab-panel[hidden] { display: none; }

/* Forms */
.input, input.input, select.input {
  width: 100%; background: rgba(0,0,0,.4); border: 1px solid var(--line); color: var(--text);
  border-radius: 12px; padding: 12px 14px; outline: none; transition: border-color .2s, box-shadow .2s;
}
.input:focus { border-color: rgba(255, 0, 51, .6); box-shadow: 0 0 0 4px rgba(255, 0, 51, .12); }
.label { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--dim); margin-bottom: 8px; }
.form-row { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-row.two { grid-template-columns: 1fr 140px; } }
.search-bar { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); }
.search-bar:focus-within { border-color: rgba(255,0,51,.5); }
.search-bar input { flex: 1; min-width: 0; background: transparent; border: 0; color: #fff; padding: 12px 10px; font-size: 1.02rem; outline: none; }
.quick { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 14px; font-size: 13px; color: var(--dim); align-items: center; }
.pill-btn { padding: 6px 12px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); color: var(--muted); cursor: pointer; font-size: 13px; }
.pill-btn:hover { color: #fff; background: var(--panel-2); }

/* Video results */
.results { display: grid; gap: 14px; }
.vcard { display: flex; flex-direction: column; gap: 16px; padding: 16px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); animation: rise .45s ease both; }
.vcard:hover { background: var(--panel-2); }
@media (min-width: 640px) { .vcard { flex-direction: row; } }
.vthumb { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #12141c; flex: none; }
@media (min-width: 640px) { .vthumb { width: 220px; } }
.vthumb img { width: 100%; height: 100%; object-fit: cover; }
.vthumb .len { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.82); font-size: 11.5px; font-weight: 700; padding: 2px 7px; border-radius: 6px; }
.vthumb .live { position: absolute; left: 8px; top: 8px; background: var(--red); font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 6px; letter-spacing: .05em; }
.vbody { min-width: 0; flex: 1; }
.vtitle { font-weight: 700; font-size: 1.02rem; color: #fff; text-decoration: none; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vtitle:hover { color: #ff6b86; }
.vmeta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--dim); margin-top: 8px; }
.vdesc { font-size: 13.5px; color: var(--muted); margin-top: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vactions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.stat-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.stat { padding: 16px; border-radius: 14px; background: rgba(255,255,255,.035); border: 1px solid var(--line); }
.stat .k { font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--dim); font-weight: 700; }
.stat .v { font-size: 1.35rem; font-weight: 800; margin-top: 4px; font-family: var(--mono); word-break: break-word; }

.skeleton { background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.1), rgba(255,255,255,.04)); background-size: 200% 100%; animation: shimmer 1.3s infinite linear; border-radius: 14px; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Status meta bar in playground */
.meta-bar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; font-size: 13px; color: var(--dim); padding: 12px 16px; border-bottom: 1px solid var(--line); }
.meta-bar .ok { color: var(--green); } .meta-bar .bad { color: var(--rose); }

/* Hero */
.hero { padding: 150px 0 80px; position: relative; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: url("img/hero.jpg") center / cover no-repeat; opacity: .28; pointer-events: none; }
.hero-fade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,6,10,.2) 0%, var(--bg) 92%); pointer-events: none; }
.hero-inner { position: relative; text-align: center; max-width: 900px; margin: 0 auto; }
.hero .lead { margin: 22px auto 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 36px; }
.hero-meta { margin-top: 18px; font-size: 14px; color: var(--dim); display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; align-items: center; }

.stat-band { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; text-align: center; }
@media (min-width: 800px) { .stat-band { grid-template-columns: repeat(4, 1fr); } }
.stat-band > div { padding: 26px 10px; }
.stat-band > div + div { border-left: 1px solid var(--line); }
.stat-band .n { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; letter-spacing: -.02em; }
.stat-band .l { font-size: 13px; color: var(--dim); margin-top: 4px; }

/* Use-case & step blocks */
.steps { counter-reset: step; display: grid; gap: 16px; }
.step { position: relative; padding: 22px 22px 22px 74px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 22px; top: 20px; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; background: linear-gradient(135deg, #ff1a4d, #c4001f); }
.step h3 { margin-bottom: 6px; }
.step p { color: var(--muted); }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* Endpoint blocks */
.ep { padding: 26px; scroll-margin-top: 110px; }
.ep-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.ep-desc { color: var(--muted); margin-top: 12px; }
.ep-grid { display: grid; gap: 18px; margin-top: 18px; }
@media (min-width: 1000px) { .ep-grid.two { grid-template-columns: 1fr 1fr; } }
.toc { display: flex; flex-wrap: wrap; gap: 8px; }
.toc a { font-family: var(--mono); font-size: 12.5px; padding: 6px 10px; border-radius: 9px; background: var(--panel); border: 1px solid var(--line); text-decoration: none; color: var(--muted); }
.toc a:hover { color: #fff; border-color: var(--line-2); }
.filter-input { max-width: 420px; margin: 0 auto 36px; display: block; width: 100%; }
.is-hidden { display: none !important; }

/* Library cards */
.pkg { display: flex; flex-direction: column; gap: 14px; }
.pkg-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.pkg h3 { font-size: 1.1rem; }
.pkg .sub { font-size: 12.5px; color: var(--dim); font-family: var(--mono); margin-top: 4px; }

/* Use case cards */
.uc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }

/* Prompt page */
.prompt-hero-img { border-radius: 24px; overflow: hidden; border: 1px solid var(--line); margin: 36px auto 0; max-width: 980px; box-shadow: 0 40px 100px -40px rgba(255,0,51,.35); }
.prompt-hero-img img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.prompt-box { border: 1px solid rgba(255, 0, 51, .35); border-radius: 22px; overflow: hidden; background: linear-gradient(180deg, rgba(255,0,51,.06), transparent 40%), var(--bg-2); box-shadow: 0 30px 80px -40px rgba(255,0,51,.45); }
.prompt-box-head { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.prompt-box .codebox { margin: 0; border: 0; border-radius: 0; }
.prompt-box .codebox-pre { max-height: 640px; font-size: 13px; }
.tool-card { display: flex; flex-direction: column; gap: 10px; }
.tool-card .file { font-family: var(--mono); font-size: 13px; color: #fff; background: rgba(0,0,0,.4); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.tool-card ol { padding-left: 1.2em; color: var(--muted); font-size: 14.5px; }
.tool-card ol li { margin: 6px 0; }
.tool-card .tool-head { display: flex; align-items: center; gap: 12px; }
.tool-card .tool-head .icon-tile { margin: 0; }
.tool-card h3 { font-size: 1.1rem; }
.tool-card .muted { font-size: 14px; }
.prompt-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.prompt-tab { padding: 9px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); cursor: pointer; font-weight: 600; font-size: 14px; }
.prompt-tab[aria-selected="true"] { color: #fff; background: rgba(255,0,51,.14); border-color: rgba(255,0,51,.5); }

/* Accordions */
details.acc { border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); overflow: hidden; }
details.acc + details.acc { margin-top: 12px; }
details.acc summary { list-style: none; cursor: pointer; padding: 20px 24px; font-weight: 700; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
details.acc summary::-webkit-details-marker { display: none; }
details.acc summary::after { content: "+"; font-size: 22px; font-weight: 400; color: var(--dim); transition: transform .2s; line-height: 1; }
details.acc[open] summary::after { content: "–"; color: #fff; }
details.acc[open] summary { border-bottom: 1px solid var(--line); }
details.acc .acc-body { padding: 18px 24px 22px; color: var(--muted); }
details.acc .acc-body p + p { margin-top: 12px; }

/* Header / nav */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 60; padding: 14px 0; }
.nav-pill {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 12px 10px 16px; border-radius: 18px;
  background: rgba(10, 12, 18, .72); border: 1px solid var(--line);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: linear-gradient(135deg, #ff1a4d, #a10021); box-shadow: 0 8px 22px -6px rgba(255,0,51,.6); }
.brand-mark svg { width: 18px; height: 18px; color: #fff; }
.brand-name { font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; }
.nav-links { display: none; gap: 2px; }
.nav-links a { padding: 8px 11px; border-radius: 10px; color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; white-space: nowrap; }
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav-links a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.1); }
.nav-links a.nav-cta { color: #ffd6de; background: rgba(255,0,51,.14); border: 1px solid rgba(255,0,51,.3); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.gh-link { display: none; color: var(--muted); text-decoration: none; font-size: 14px; padding: 8px 10px; border-radius: 10px; }
.gh-link:hover { color: #fff; }
.menu-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); color: #fff; cursor: pointer; }
.menu-btn svg { width: 22px; height: 22px; }
.mobile-menu { margin-top: 10px; padding: 12px; border-radius: 18px; background: rgba(10,12,18,.96); border: 1px solid var(--line); display: grid; gap: 4px; backdrop-filter: blur(16px); }
.mobile-menu[hidden] { display: none; }
.mobile-menu a { padding: 12px 14px; border-radius: 12px; color: var(--muted); text-decoration: none; }
.mobile-menu a:hover { background: rgba(255,255,255,.06); color: #fff; }
.mobile-menu .btn { margin-top: 8px; }
@media (min-width: 1200px) {
  .nav-links { display: flex; }
  .gh-link { display: inline-block; }
  .menu-btn { display: none; }
  .mobile-menu { display: none !important; }
}
@media (max-width: 1199px) { .nav-right .btn { display: none; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 28px; margin-top: 40px; background: rgba(255,255,255,.012); }
.footer-grid { display: grid; gap: 36px; grid-template-columns: 1.4fr repeat(2, 1fr); }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.6fr repeat(3, 1fr); } }
.footer-grid a { display: block; color: var(--muted); text-decoration: none; font-size: 14.5px; padding: 4px 0; }
.footer-grid a:hover { color: #fff; }
.foot-h { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); margin-bottom: 10px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--dim); }

/* Reveal animation */
.js .reveal { transition: opacity .7s ease, transform .7s ease; }
.js .reveal:not(.in) { opacity: 0; transform: translateY(14px); }

/* Responsive tweaks */
@media (max-width: 640px) {
  section.block { padding: 64px 0; }
  .page-hero { padding: 124px 0 40px; }
  .hero { padding: 124px 0 60px; }
  .step { padding-left: 22px; padding-top: 70px; }
  .step::before { top: 18px; left: 22px; }
  .tab-panel { padding: 18px; }
  .card { padding: 20px; }
  .btn-lg { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
.text-white{color:#fff}
