/* Posting Tool — dark creator-tool aesthetic */
:root {
  --bg: #0b0d10;
  --bg-elev: #12161c;
  --bg-card: #161b22;
  --border: #2a3340;
  --border-strong: #3d4a5c;
  --text: #e8edf4;
  --muted: #9aa7b8;
  --faint: #6b7787;
  --accent: #3dff9a;
  --accent-dim: #1fbf6a;
  --accent-glow: rgba(61, 255, 154, 0.18);
  --warn: #ffb020;
  --danger: #ff5c7a;
  --radius: 14px;
  --font: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --max: 1100px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: radial-gradient(1200px 600px at 80% -10%, #14221a 0%, transparent 55%),
    radial-gradient(900px 500px at -10% 20%, #121826 0%, transparent 50%),
    var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  background: rgba(11, 13, 16, 0.78);
  border-bottom: 1px solid rgba(42, 51, 64, 0.8);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-weight: 650;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand:hover {
  text-decoration: none;
}
.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(145deg, var(--accent), #0ea5e9);
  box-shadow: 0 0 0 3px var(--accent-glow);
  flex-shrink: 0;
}
.brand-stack {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand-stack strong {
  font-size: 0.98rem;
  font-weight: 700;
}
.brand-stack small {
  font-size: 0.68rem;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.nav-links {
  display: flex;
  gap: 1.1rem;
  align-items: center;
  font-size: 0.92rem;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
}
.nav-links a:hover {
  color: var(--text);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0.72rem 1.15rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease,
    opacity 0.15s ease;
  text-decoration: none;
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}
.btn-primary {
  background: var(--accent);
  color: #04140c;
  box-shadow: 0 0 0 1px rgba(61, 255, 154, 0.25), 0 10px 30px var(--accent-glow);
}
.btn-primary:hover:not(:disabled) {
  background: #62ffad;
}
.btn-ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--accent-dim);
}
.btn-block {
  width: 100%;
}
.btn-sm {
  padding: 0.5rem 0.85rem;
  font-size: 0.9rem;
}

/* Hero */
.hero {
  padding: 4.5rem 0 3.5rem;
}
.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 860px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--muted);
  font-size: 0.8rem;
  font-family: var(--mono);
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
}
.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}
h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin: 0 0 1rem;
}
.lede {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 38rem;
  margin: 0 0 1.6rem;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.4rem;
}
.platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.chip {
  font-size: 0.78rem;
  font-family: var(--mono);
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: rgba(22, 27, 34, 0.7);
}
.chip-no {
  border-color: rgba(255, 92, 122, 0.35);
  color: #ff9aaf;
  text-decoration: line-through;
  opacity: 0.85;
}

.hero-offer-name {
  margin: 0 0 0.2rem;
  font-size: 1.35rem;
  font-weight: 700;
}
.hero-offer-price {
  margin: 0 0 0.7rem;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.hero-offer-price span {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
}
.hero-offer-desc {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.hero-offer .tier-list {
  margin: 0 0 1rem;
}
.hero-panel {
  background: linear-gradient(180deg, #1a222c, #12161c);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.panel-title {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 0.85rem;
}
.flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}
.flow li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 0.75rem;
  border-radius: 10px;
  background: rgba(11, 13, 16, 0.55);
  border: 1px solid rgba(42, 51, 64, 0.7);
}
.flow .n {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 0.75rem;
  background: var(--accent-glow);
  color: var(--accent);
  border: 1px solid rgba(61, 255, 154, 0.35);
}
.flow strong {
  display: block;
  font-size: 0.95rem;
}
.flow span {
  color: var(--muted);
  font-size: 0.85rem;
}

/* Sections */
section {
  padding: 3.5rem 0;
}
.section-head {
  margin-bottom: 1.75rem;
}
.section-head h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.55rem, 3vw, 2rem);
  letter-spacing: -0.03em;
}
.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 40rem;
}

.grid-3 {
  display: grid;
  gap: 1rem;
}
@media (min-width: 720px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.3rem;
}
.card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Pricing */
.pricing {
  background: linear-gradient(180deg, transparent, rgba(20, 34, 26, 0.35), transparent);
}
.price-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 900px) {
  .price-grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }
}
.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.4rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}
.price-card.featured {
  border-color: rgba(61, 255, 154, 0.45);
  box-shadow: 0 0 0 1px rgba(61, 255, 154, 0.15), var(--shadow);
}
.badge {
  position: absolute;
  top: -0.65rem;
  right: 1rem;
  font-size: 0.72rem;
  font-family: var(--mono);
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: var(--accent);
  color: #04140c;
  font-weight: 700;
}
.tier-name {
  margin: 0;
  font-size: 1.15rem;
}
.tier-price {
  margin: 0;
  font-size: 2.3rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}
.tier-price span {
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0;
}
.tier-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.tier-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.9rem;
  flex: 1;
}
.tier-list li::before {
  content: "✓ ";
  color: var(--accent);
  font-weight: 700;
}
label.field {
  display: grid;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--faint);
  font-family: var(--mono);
}
select {
  width: 100%;
  appearance: none;
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%239aa7b8' d='M1 1l5 5 5-5'/%3E%3C/svg%3E")
    no-repeat right 0.85rem center;
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 0.7rem 2.2rem 0.7rem 0.8rem;
  font: inherit;
  font-size: 0.95rem;
}
select:focus {
  outline: 2px solid rgba(61, 255, 154, 0.35);
  border-color: var(--accent-dim);
}

input[type="text"] {
  width: 100%;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  font: inherit;
  font-size: 0.95rem;
}
input[type="text"]:focus {
  outline: 2px solid rgba(61, 255, 154, 0.35);
  border-color: var(--accent-dim);
}
.github-gate {
  margin: 0 0 1.35rem;
  max-width: 28rem;
}
.field-hint {
  margin: 0.4rem 0 0;
  color: var(--faint);
  font-size: 0.82rem;
}
.policy-note {
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 46rem;
}

.secondary-offers {
  margin-top: 1.75rem;
  display: grid;
  gap: 0.85rem;
}
@media (min-width: 720px) {
  .secondary-offers {
    grid-template-columns: 1.4fr 1fr;
  }
}
.offer-box {
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  background: rgba(18, 22, 28, 0.65);
}
.offer-box h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}
.offer-box p {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.footnote {
  margin: 1.25rem 0 0;
  color: var(--faint);
  font-size: 0.82rem;
}

/* Steps */
.steps {
  display: grid;
  gap: 0.85rem;
  counter-reset: step;
}
@media (min-width: 800px) {
  .steps {
    grid-template-columns: repeat(5, 1fr);
  }
}
.step {
  counter-increment: step;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
}
.step::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 8px;
  margin-bottom: 0.55rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid rgba(61, 255, 154, 0.3);
}
.step h3 {
  margin: 0 0 0.35rem;
  font-size: 0.98rem;
}
.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

/* FAQ */
.faq {
  display: grid;
  gap: 0.65rem;
  max-width: 760px;
}
details.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.9rem 1.1rem;
}
details.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
details.faq-item summary::-webkit-details-marker {
  display: none;
}
details.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--faint);
  font-family: var(--mono);
}
details.faq-item[open] summary::after {
  content: "–";
}
details.faq-item p {
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0 2.5rem;
  color: var(--faint);
  font-size: 0.88rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 1.4rem;
  transform: translateX(-50%) translateY(120%);
  z-index: 80;
  background: #1c2430;
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: 0.85rem 1.15rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  font-size: 0.92rem;
  max-width: min(92vw, 420px);
  transition: transform 0.2s ease;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
}


/* Setup guide page */
.doc-hero {
  padding: 3rem 0 1.5rem;
}
.doc-hero h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin: 0 0 0.75rem;
}
.doc-lede {
  color: var(--muted);
  max-width: 42rem;
  margin: 0 0 1.25rem;
  font-size: 1.05rem;
}
.doc-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.25rem 0 0;
}
.doc-toc a {
  font-size: 0.8rem;
  font-family: var(--mono);
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  text-decoration: none;
  background: rgba(22, 27, 34, 0.7);
}
.doc-toc a:hover {
  color: var(--text);
  border-color: var(--accent-dim);
  text-decoration: none;
}
.doc-main {
  padding: 0 0 4rem;
}
.doc-section {
  margin: 0 0 2.25rem;
  padding: 1.4rem 1.45rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.doc-section h2 {
  margin: 0 0 0.85rem;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}
.doc-section h3 {
  margin: 1.25rem 0 0.55rem;
  font-size: 1.05rem;
}
.doc-section p,
.doc-section li {
  color: var(--muted);
}
.doc-section p {
  margin: 0 0 0.7rem;
}
.doc-section ol,
.doc-section ul {
  margin: 0 0 0.85rem;
  padding-left: 1.25rem;
}
.doc-section li {
  margin: 0 0 0.45rem;
}
.doc-section li strong {
  color: var(--text);
}
.check {
  display: block;
  margin: 0.65rem 0 0.9rem;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(61, 255, 154, 0.28);
  background: rgba(61, 255, 154, 0.07);
  color: var(--text);
  font-size: 0.92rem;
}
.check::before {
  content: "You should see… ";
  color: var(--accent);
  font-weight: 700;
  font-family: var(--mono);
  font-size: 0.8rem;
}
.warn-box {
  margin: 0.85rem 0;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 176, 32, 0.35);
  background: rgba(255, 176, 32, 0.08);
  color: var(--muted);
  font-size: 0.92rem;
}
.warn-box strong {
  color: var(--warn);
}
.note-box {
  margin: 0.85rem 0;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(11, 13, 16, 0.45);
  color: var(--muted);
  font-size: 0.92rem;
}
pre.code,
code.inline {
  font-family: var(--mono);
}
pre.code {
  margin: 0.7rem 0 1rem;
  padding: 0.9rem 1rem;
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #0d1117;
  color: #d7e0ea;
  font-size: 0.84rem;
  line-height: 1.45;
}
code.inline {
  font-size: 0.88em;
  padding: 0.1em 0.35em;
  border-radius: 5px;
  background: rgba(61, 255, 154, 0.08);
  border: 1px solid rgba(61, 255, 154, 0.18);
  color: #b8ffd6;
}
.platform-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 0.75rem 0 1rem;
}
.platform-table th,
.platform-table td {
  text-align: left;
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  vertical-align: top;
}
.platform-table th {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 500;
}
.platform-table td strong {
  color: var(--text);
}
.nav-links a.active {
  color: var(--text);
}

.doc-section.ai-help {
  border-color: rgba(61, 255, 154, 0.35);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

/* Mobile header + hamburger */
html, body { overflow-x: hidden; }
.nav {
  padding-top: env(safe-area-inset-top);
}
.nav-inner {
  position: relative;
  flex-wrap: nowrap;
  min-height: 56px;
  padding: 0.55rem 0;
}
.brand {
  flex: 0 1 auto;
  min-width: 0;
  white-space: nowrap;
}
.nav-toggle {
  display: none;
  flex: 0 0 auto;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-elev);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 0.4rem);
    left: 0;
    right: 0;
    z-index: 50;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: min(70vh, 420px);
    overflow-y: auto;
    padding: 0.45rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(18, 22, 28, 0.98);
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 0.9rem 0.95rem;
    border-radius: 8px;
  }
  .nav-links a:hover { background: rgba(61, 255, 154, 0.08); }
  .nav-links .btn { width: 100%; margin-top: 0.25rem; }
  body.nav-open { overflow: hidden; }
}

.terms-check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: 0.92rem;
  cursor: pointer;
}
.terms-check input {
  margin-top: 0.25rem;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}
.terms-check a { color: var(--accent); }
.terms-note {
  margin: 0.65rem 0 1.1rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.terms-note a { color: var(--accent); }

body.checkout-open { overflow: hidden; }
.checkout-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: end center;
}
.checkout-modal[hidden] { display: none; }
.checkout-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 8, 10, 0.72);
}
.checkout-sheet {
  position: relative;
  width: min(100% - 1.2rem, 28rem);
  margin: 0 0 1rem;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  padding: 1.25rem 1.2rem 1.15rem;
  box-shadow: var(--shadow);
}
.checkout-sheet h3 {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
}
.checkout-item {
  margin: 0 0 1rem;
  color: var(--accent);
  font-weight: 600;
}
.checkout-x {
  position: absolute;
  top: 0.7rem;
  right: 0.75rem;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.checkout-sheet .github-gate,
.checkout-sheet .field { max-width: none; }
.checkout-sheet .btn { margin-top: 1rem; }
@media (min-width: 640px) {
  .checkout-modal { place-items: center; }
  .checkout-sheet { margin: 0; }
}

.need-box {
  margin: 0 0 1.1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(18, 22, 28, 0.7);
}
.need-box h3 {
  margin: 0 0 0.55rem;
  font-size: 1rem;
}
.need-box .tier-list { margin: 0; }
