/* ==========================================================================
   PostedApi — Design System
   Modern transactional-email layout, original code and artwork.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --yellow: #ffd23f;
  --yellow-soft: #fff3c2;
  --yellow-dark: #f0b90b;
  --ink: #20242c;
  --ink-2: #4c525e;
  --ink-3: #8a90a0;
  --paper: #ffffff;
  --cream: #fffbe9;
  --cream-2: #faf5e3;
  --line: #ece4cb;
  --green: #1f9d57;
  --green-soft: #e3f5ea;
  --red: #de4a2a;
  --red-soft: #fdeae5;
  --blue: #2e6be6;
  --blue-soft: #e8effd;
  --purple: #7a5af8;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(32, 36, 44, .06), 0 2px 8px rgba(32, 36, 44, .05);
  --shadow-md: 0 4px 12px rgba(32, 36, 44, .08), 0 12px 32px rgba(32, 36, 44, .08);
  --shadow-lg: 0 12px 24px rgba(32, 36, 44, .10), 0 32px 64px rgba(32, 36, 44, .12);

  --font-sans: "Avenir Next", Avenir, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;

  --container: 1160px;
  --header-h: 72px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
li { margin-bottom: .35em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
code { font-family: var(--font-mono); font-size: .9em; background: var(--cream-2); padding: .1em .4em; border-radius: 6px; }
pre code, .code-pane code { background: transparent; padding: 0; border-radius: 0; font-size: inherit; color: inherit; }
::selection { background: var(--yellow); color: var(--ink); }

/* ---------- Layout utilities ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 820px; margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.section-cream { background: var(--cream); }
.section-ink { background: var(--ink); color: #f5f1de; }
.section-ink h1, .section-ink h2, .section-ink h3 { color: #fff; }
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

.kicker {
  display: inline-block;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: var(--yellow-soft);
  border: 1px solid var(--line);
  padding: .35em 1em;
  border-radius: 999px;
  margin-bottom: 1.2rem;
}
.lead { font-size: 1.25rem; color: var(--ink-2); max-width: 46ch; }
.text-center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: inherit; font-size: 1rem; font-weight: 700;
  padding: .78em 1.6em; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  text-decoration: none !important; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--yellow); color: var(--ink); border-color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.btn-primary:hover { background: var(--yellow-dark); transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #343a46; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-outline-light:hover { border-color: #fff; }
.btn-sm { font-size: .9rem; padding: .5em 1.2em; }
.btn-lg { font-size: 1.1rem; padding: .9em 2em; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.text-center .btn-row { justify-content: center; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.nav-wrap { display: flex; align-items: center; gap: 32px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.3rem; color: var(--ink); letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand img { height: 34px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links > li { margin: 0; }
.nav-links a.nav-item, .nav-links .nav-item {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 10px;
  color: var(--ink); font-weight: 600; font-size: .98rem; cursor: pointer;
}
.nav-links a.nav-item:hover, .nav-links .nav-item:hover { background: var(--cream); text-decoration: none; }
.nav-spacer { flex: 1; }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-cta a { font-weight: 700; color: var(--ink); }
.nav-cta a:hover { text-decoration: underline; }

/* dropdown */
.has-drop { position: relative; }
.drop-menu {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(6px);
  min-width: 460px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); padding: 14px; opacity: 0; visibility: hidden;
  transition: opacity .15s ease, transform .15s ease; z-index: 50;
}
.has-drop:hover .drop-menu, .has-drop:focus-within .drop-menu, .has-drop.open .drop-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.drop-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.drop-link { display: block; padding: 10px 12px; border-radius: 10px; color: var(--ink); }
.drop-link:hover { background: var(--cream); text-decoration: none; }
.drop-link strong { display: block; font-size: .95rem; }
.drop-link span { font-size: .82rem; color: var(--ink-3); }

.burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.burger span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: .2s; }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 72px; background: linear-gradient(180deg, var(--cream) 0%, #fff 100%); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: .35em; }
.hero .lead { margin-bottom: 1.6em; }
.hero-note { margin-top: 18px; font-size: .9rem; color: var(--ink-3); }
.hero-art { position: relative; }
.hero-art svg { display: block; width: 100%; }

.page-hero { padding: 72px 0 56px; background: linear-gradient(180deg, var(--cream) 0%, #fff 100%); }
.page-hero h1 { max-width: 18ch; }
.page-hero .lead { margin-bottom: 0; }

/* ---------- Logos ---------- */
.logos { padding: 40px 0 8px; }
.logos p { text-align: center; font-size: .85rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 22px; }
.logo-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px 44px; }
.logo-item { font-weight: 800; font-size: 1.25rem; color: var(--ink-3); opacity: .75; letter-spacing: -.02em; display: inline-flex; align-items: center; gap: 8px; }
.logo-item svg { height: 22px; width: auto; fill: currentColor; }

/* ---------- Quote wall (testimonials) ---------- */
.quote-wall { padding: 24px 0 8px; }
.marquee { overflow: hidden; position: relative; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 20px; width: max-content; animation: scroll 55s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-50%); } }
.tweet {
  width: 380px; flex-shrink: 0; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 20px 22px;
  font-size: .95rem;
}
.tweet p { margin-bottom: 12px; }
.tweet-meta { display: flex; align-items: center; gap: 10px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; }
.tweet-meta strong { display: block; font-size: .88rem; line-height: 1.2; }
.tweet-meta span { font-size: .8rem; color: var(--ink-3); }

/* ---------- Code tabs ---------- */
.code-tabs { background: var(--ink); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.code-tabs-bar { display: flex; flex-wrap: wrap; gap: 4px; padding: 10px 12px 0; background: #2a2f3a; border-bottom: 1px solid #3a4150; }
.code-tab {
  font-family: var(--font-mono); font-size: .82rem; color: #aab1c0; background: none;
  border: 0; border-bottom: 2px solid transparent; padding: 8px 14px; cursor: pointer;
}
.code-tab:hover { color: #fff; }
.code-tab.active { color: var(--yellow); border-bottom-color: var(--yellow); }
.code-pane {
  display: none; margin: 0; padding: 18px 0; overflow-x: auto;
  font-family: var(--font-mono); font-size: .86rem; line-height: 1.75;
  color: #e8ebf2; background: #23272f;
}
.code-pane.active { display: block; }
.code-pane pre { margin: 0; }
.code-window { background: var(--ink); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.code-window-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: #2a2f3a; border-bottom: 1px solid #3a4150; }
.code-dot { width: 11px; height: 11px; border-radius: 50%; }
.code-dot.r { background: #ff5f57; } .code-dot.y { background: #febc2e; } .code-dot.g { background: #28c840; }
.code-title { font-family: var(--font-mono); font-size: .78rem; color: #8a92a5; margin-left: 8px; }

pre.code {
  margin: 0; padding: 18px 24px 18px 0; overflow-x: auto;
  font-family: var(--font-mono); font-size: .86rem; line-height: 1.75;
  color: #e8ebf2; background: transparent;
}
/* Editor-style line numbers (lines wrapped in <span class="cl"> by main.js) */
pre.code, .code-pane { counter-reset: line; }
pre.code .cl, .code-pane .cl { display: block; position: relative; padding-left: 3.4em; white-space: pre; min-height: 1.75em; }
pre.code .cl::before, .code-pane .cl::before {
  counter-increment: line; content: counter(line);
  position: absolute; left: 0; width: 2.2em; padding-right: 1em;
  text-align: right; color: #4d5568; user-select: none;
}
pre.code .cl:hover, .code-pane .cl:hover { background: rgba(255, 255, 255, .035); }
pre.code ::selection, .code-pane ::selection { background: #2e6be6; color: #fff; }
pre.code .c, .code-pane .c { color: #7d8598; font-style: italic; }
pre.code .k, .code-pane .k { color: #8ab4ff; }
pre.code .s, .code-pane .s { color: #9fe6a0; }
pre.code .f, .code-pane .f { color: #ffd23f; }
pre.code .n, .code-pane .n { color: #f7a8b8; }
.code-caption { font-size: .85rem; color: var(--ink-3); margin-top: 12px; text-align: center; }

/* ---------- Split / feature rows ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.flip > .split-media { order: 2; }
.split-media svg { display: block; width: 100%; }
.split-body h2 { max-width: 22ch; }
.split-body p { color: var(--ink-2); }
.check { list-style: none; padding: 0; margin: 0 0 1.4em; }
.check li { position: relative; padding-left: 32px; margin-bottom: .6em; }
.check li::before {
  content: ""; position: absolute; left: 0; top: .18em; width: 20px; height: 20px;
  background: var(--green-soft); border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f9d57' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 12px;
}
.x li::before {
  background: var(--red-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23de4a2a' stroke-width='3.2' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 11px;
}
.arrow-link { font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.arrow-link::after { content: "→"; transition: transform .15s ease; }
.arrow-link:hover { text-decoration: none; }
.arrow-link:hover::after { transform: translateX(4px); }

/* ---------- Cards ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-sm); }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--ink-2); margin-bottom: 0; }
.card .icon { width: 52px; height: 52px; border-radius: 14px; background: var(--yellow-soft); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.card .icon svg { width: 26px; height: 26px; }
.card-link { display: block; color: var(--ink); height: 100%; }
.card-link:hover { text-decoration: none; box-shadow: var(--shadow-md); transform: translateY(-3px); transition: .15s ease; }
.card-link h3 { color: var(--blue); }

/* ---------- Stats ---------- */
.stat { text-align: center; padding: 28px 16px; }
.stat-num { font-size: clamp(2.6rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -.03em; display: block; line-height: 1; margin-bottom: 8px; }
.stat-label { color: var(--ink-2); font-weight: 600; }
.happy-bar { display: flex; height: 34px; border-radius: 999px; overflow: hidden; border: 2px solid var(--ink); max-width: 520px; margin: 22px auto 14px; }
.happy-bar span { display: flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 800; color: var(--ink); }
.happy-bar .b1 { background: var(--yellow); flex: 0 0 95%; }
.happy-bar .b2 { background: var(--cream-2); flex: 1; }
.happy-bar .b3 { background: var(--red-soft); flex: 1; }
.happy-legend { display: flex; justify-content: center; gap: 22px; font-size: .9rem; color: var(--ink-2); list-style: none; padding: 0; margin: 0; }
.happy-legend li::before { content: "●"; margin-right: 6px; }
.happy-legend li:nth-child(1)::before { color: var(--yellow-dark); }
.happy-legend li:nth-child(2)::before { color: #d8cfae; }
.happy-legend li:nth-child(3)::before { color: var(--red); }

/* ---------- Steps ---------- */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
.steps li { position: relative; padding: 24px 24px 24px 84px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 22px; top: 22px; width: 40px; height: 40px;
  background: var(--yellow); border: 2px solid var(--ink); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-weight: 800;
}
.steps h3 { margin-bottom: .25em; }
.steps p { margin: 0; color: var(--ink-2); }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; align-items: stretch; }
.price-card { position: relative; background: #fff; border: 2px solid var(--line); border-radius: var(--radius-lg); padding: 30px 26px; display: flex; flex-direction: column; }
.price-card.popular { border-color: var(--ink); box-shadow: 6px 6px 0 var(--yellow); }
.popular-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--yellow); font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: .35em 1.1em; border-radius: 999px; }
.price-card h3 { font-size: 1.15rem; }
.price-card .for { color: var(--ink-2); font-size: .92rem; min-height: 2.6em; }
.price { font-size: 2.5rem; font-weight: 800; letter-spacing: -.03em; margin: .35em 0 .1em; }
.price small { font-size: 1rem; font-weight: 600; color: var(--ink-3); }
.price-sub { font-size: .88rem; color: var(--ink-3); margin-bottom: 1.2em; }
.price-card .ticks { margin-bottom: 1.6em; }
.price-card .btn { margin-top: auto; }
.ticks { list-style: none; padding: 0; margin: 0; font-size: .94rem; }
.ticks li { position: relative; padding-left: 28px; margin-bottom: .55em; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 18px; height: 18px;
  background: var(--green-soft); border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f9d57' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 11px;
}
.ticks li.no::before {
  background: var(--red-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23de4a2a' stroke-width='3.2' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 10px;
}

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
table.table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 720px; }
.table th, .table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.table thead th { background: var(--cream); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
.table tbody tr:last-child td { border-bottom: 0; }
.table td.yes { color: var(--green); font-weight: 700; }
.table td.no { color: var(--red); }
.table .grp td { background: var(--cream-2); font-weight: 800; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }

.addon { display: flex; gap: 20px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.addon .icon { flex-shrink: 0; width: 46px; height: 46px; border-radius: 12px; background: var(--blue-soft); display: flex; align-items: center; justify-content: center; }
.addon h3 { font-size: 1.1rem; margin-bottom: .2em; }
.addon p { margin: 0; color: var(--ink-2); font-size: .94rem; }
.addon .price-tag { font-weight: 800; }

/* ---------- FAQ (details-based) ---------- */
.faq { max-width: 780px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 24px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--ink-3); transition: transform .15s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-body { padding: 0 24px 20px; color: var(--ink-2); }

/* ---------- Big quote ---------- */
.bigquote { max-width: 860px; margin: 0 auto; text-align: center; }
.bigquote blockquote { font-size: clamp(1.3rem, 2.6vw, 1.8rem); font-weight: 700; line-height: 1.4; margin: 0 0 1em; letter-spacing: -.01em; }
.bigquote figcaption { color: var(--ink-2); font-weight: 600; }
.bigquote figcaption span { display: block; font-weight: 400; color: var(--ink-3); font-size: .9rem; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); border-radius: var(--radius-lg); padding: 64px 40px; text-align: center; color: #f5f1de; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; max-width: 22ch; margin-left: auto; margin-right: auto; }
.cta-band p { color: #c9c4ad; max-width: 52ch; margin: 0 auto 1.8em; }
.cta-band .btn-primary { border-color: var(--yellow); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #b9b4a0; padding: 64px 0 32px; margin-top: 88px; font-size: .92rem; }
.site-footer a { color: #d9d4c0; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.footer-brand p { max-width: 30ch; margin-top: 14px; color: #8f8a76; }
.footer-col h4 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items: center; border-top: 1px solid #343a46; margin-top: 48px; padding-top: 24px; font-size: .85rem; }
.footer-status { display: inline-flex; align-items: center; gap: 8px; color: #9fe6a0; font-weight: 700; }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: #28c840; animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(40, 200, 64, .5); } 70% { box-shadow: 0 0 0 8px rgba(40, 200, 64, 0); } 100% { box-shadow: 0 0 0 0 rgba(40, 200, 64, 0); } }

/* ---------- Forms / auth ---------- */
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 2px solid var(--line); border-radius: 12px;
  padding: .7em 1em; transition: border-color .12s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field .hint { font-size: .82rem; color: var(--ink-3); margin-top: 5px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.auth-wrap { min-height: calc(100vh - var(--header-h)); display: flex; align-items: center; padding: 56px 0; background: linear-gradient(180deg, var(--cream), #fff); }
.auth-card { max-width: 460px; margin: 0 auto; background: #fff; border: 2px solid var(--ink); border-radius: var(--radius-lg); box-shadow: 8px 8px 0 var(--yellow); padding: 40px; }
.auth-card h1 { font-size: 1.8rem; }
.auth-alt { text-align: center; margin-top: 20px; font-size: .95rem; color: var(--ink-2); }

/* ---------- Docs / API reference ---------- */
.docs-layout { display: grid; grid-template-columns: 260px 1fr; gap: 48px; align-items: start; }
.docs-sidebar { position: sticky; top: calc(var(--header-h) + 24px); }
.docs-sidebar h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); margin: 22px 0 8px; }
.docs-sidebar ul { list-style: none; padding: 0; margin: 0; }
.docs-sidebar li a { display: block; padding: 6px 12px; border-radius: 8px; color: var(--ink-2); font-size: .94rem; }
.docs-sidebar li a:hover { background: var(--cream); color: var(--ink); text-decoration: none; }
.docs-sidebar li a.active { background: var(--yellow-soft); color: var(--ink); font-weight: 700; }
.docs-content h2 { margin-top: 2.2em; padding-top: .8em; border-top: 1px solid var(--line); }
.docs-content h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.endpoint { display: flex; align-items: center; gap: 12px; background: var(--cream-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 16px; margin: 14px 0 20px; font-family: var(--font-mono); font-size: .92rem; }
.method { font-weight: 800; font-size: .78rem; padding: .25em .8em; border-radius: 6px; letter-spacing: .05em; }
.method.get { background: var(--green-soft); color: var(--green); }
.method.post { background: var(--blue-soft); color: var(--blue); }
.method.put { background: var(--yellow-soft); color: #9a7b00; }
.method.delete { background: var(--red-soft); color: var(--red); }

/* ---------- Blog ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; color: var(--ink); }
.post-card:hover { text-decoration: none; box-shadow: var(--shadow-md); transform: translateY(-3px); transition: .15s; }
.post-thumb { aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--line); }
.post-thumb svg { width: 60%; height: 60%; }
.post-body { padding: 22px; }
.post-tag { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--blue); }
.post-body h3 { font-size: 1.15rem; margin: .4em 0; }
.post-body p { color: var(--ink-2); font-size: .94rem; margin-bottom: 1em; }
.post-meta { margin-top: auto; font-size: .84rem; color: var(--ink-3); }

.prose { max-width: 720px; margin: 0 auto; font-size: 1.08rem; }
.prose h2 { margin-top: 1.8em; }
.prose img { border-radius: var(--radius); }
.prose blockquote { border-left: 4px solid var(--yellow); margin: 1.5em 0; padding: .2em 0 .2em 1.4em; color: var(--ink-2); font-style: italic; }
.post-hero-art { background: var(--cream); border-bottom: 1px solid var(--line); padding: 48px 0; text-align: center; }
.post-hero-art svg { max-width: 420px; width: 80%; }

/* ---------- Avatars (generated identicons, original) ---------- */
.avatar { background: var(--yellow-soft); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; color: var(--ink); font-size: .85rem; border: 1px solid var(--line); }

/* ---------- Misc ---------- */
.badge { display: inline-block; font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: .3em 1em; border-radius: 999px; }
.badge-yellow { background: var(--yellow); color: var(--ink); border: 1.5px solid var(--ink); }
.badge-green { background: var(--green-soft); color: var(--green); }
.badge-blue { background: var(--blue-soft); color: var(--blue); }
.note { background: var(--blue-soft); border-left: 4px solid var(--blue); border-radius: 0 10px 10px 0; padding: 14px 18px; color: #24344d; font-size: .95rem; }
.note.warn { background: var(--yellow-soft); border-left-color: var(--yellow-dark); color: #5c4d10; }

.illo { background: var(--cream); border: 2px solid var(--ink); border-radius: var(--radius-lg); box-shadow: 6px 6px 0 var(--yellow); padding: 24px; }
.illo-plain svg { width: 100%; display: block; }

.compare-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.compare-col { border-radius: var(--radius-lg); padding: 30px; }
.compare-col.us { background: var(--yellow-soft); border: 2px solid var(--ink); }
.compare-col.them { background: var(--cream-2); border: 1px solid var(--line); }
.compare-col h3 { display: flex; align-items: center; gap: 10px; }

/* ---------- Generated imagery ---------- */
.img-pro { display: block; width: 100%; border-radius: var(--radius-lg); border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--yellow); }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid var(--ink); display: inline-block; }
.avatar-sm { width: 36px; height: 36px; }
.icon-img { width: 52px; height: 52px; border-radius: 14px; object-fit: cover; display: block; }
.logo-mark { height: 22px; width: 22px; object-fit: contain; vertical-align: -4px; }
.brand img { border-radius: 9px; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 120px 0; }
.notfound .stamp {
  display: inline-block; border: 4px solid var(--red); color: var(--red); border-radius: 12px;
  font-size: 4rem; font-weight: 800; padding: .2em .6em; transform: rotate(-6deg);
  letter-spacing: .05em; margin-bottom: 32px;
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid, .split { grid-template-columns: 1fr; gap: 40px; }
  .split.flip > .split-media { order: 0; }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-sidebar { position: static; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .section { padding: 56px 0; }
  .grid-2, .grid-3, .grid-4, .pricing-grid, .post-grid, .form-row, .compare-cards { grid-template-columns: 1fr; }
  .nav-links, .nav-cta { display: none; }
  .burger { display: block; margin-left: auto; }
  .site-header.menu-open .nav-links {
    display: flex; flex-direction: column; align-items: stretch; gap: 4px;
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 16px 24px 24px;
  }
  .site-header.menu-open .nav-cta { display: flex; position: absolute; top: calc(var(--header-h) + 260px); left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 0 24px 20px; }
  .drop-menu { position: static; transform: none; min-width: 0; box-shadow: none; border: 0; opacity: 1; visibility: visible; display: none; padding: 0 0 0 14px; }
  .drop-grid { grid-template-columns: 1fr; }
  .has-drop.open .drop-menu { display: block; }
  .tweet { width: 300px; }
  .cta-band { padding: 44px 24px; }
  .footer-grid { grid-template-columns: 1fr; }
}
