/* ================================================
   Social Posting Engine - style.css
   ================================================ */

/*
  Colossal Sans - the brand typeface, shared with the other Colossal
  properties. Self-hosted from a versioned folder under its real name so
  DevTools and font inspectors report "Colossal Sans". Bump the folder
  (colossal-sans-v2) when the font is revised: the filenames are otherwise
  stable, so a cached copy would survive the change.

  This replaced Urbanist + Figtree from Google Fonts. Self-hosting drops two
  preconnects and a render-blocking third-party stylesheet from every page,
  and the whole family is 108 KB served from the same origin.
*/
@font-face { font-family: "Colossal Sans"; src: url("/fonts/colossal-sans-v1/ColossalSans-ExtraLight.woff2") format("woff2"); font-weight: 200; font-style: normal; font-display: swap; }
@font-face { font-family: "Colossal Sans"; src: url("/fonts/colossal-sans-v1/ColossalSans-Light.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Colossal Sans"; src: url("/fonts/colossal-sans-v1/ColossalSans-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Colossal Sans"; src: url("/fonts/colossal-sans-v1/ColossalSans-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Colossal Sans"; src: url("/fonts/colossal-sans-v1/ColossalSans-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Colossal Sans"; src: url("/fonts/colossal-sans-v1/ColossalSans-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Colossal Sans"; src: url("/fonts/colossal-sans-v1/ColossalSans-ExtraBold.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }

:root {
  --bg:          #080b12;
  --bg-2:        #0d1220;
  --bg-card:     rgba(255,255,255,0.035);
  --bg-band:     rgba(255,255,255,0.018);
  --border:      rgba(255,255,255,0.08);
  --border-2:    rgba(255,255,255,0.14);
  --text:        #eef0f8;
  --text-2:      #8892aa;
  --text-3:      #3d4a63;
  --accent:      #6366f1;
  --accent-lt:   #818cf8;
  --accent-glow: rgba(99,102,241,0.22);
  --cyan:        #22d3ee;
  --violet:      #a855f7;
  --green:       #10b981;
  --r:           12px;
  --r-sm:        8px;
  --r-lg:        20px;
  --max:         1100px;
  --ease:        0.2s ease;
  /* Display and body are the same family now; the weight difference at each
     use site carries the hierarchy. Kept as two names so the distinction
     stays expressible without touching every rule. */
  --font-d:      "Colossal Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-b:      "Colossal Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* Form controls do not inherit font-family; without this they render in the
   browser's own default (Arial-like on Windows) while everything around them
   uses the brand face. */
button, input, select, textarea, optgroup { font-family: inherit; }
/* overflow-y: scroll keeps the scrollbar visible on every page, so the
   layout does not shift sideways between short and long pages. */
html { scroll-behavior: smooth; overflow-y: scroll; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-b);
  font-size: 18px;
  line-height: 1.65;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1,h2,h3,h4 { font-family: var(--font-d); line-height: 1.1; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---- BUTTONS ---- */
.btn-primary {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent); color: #fff;
  font-family: var(--font-b); font-weight: 600; font-size: 16px;
  padding: 10px 20px; border-radius: var(--r-sm); border: none; cursor: pointer;
  transition: background var(--ease), box-shadow var(--ease);
  white-space: nowrap;
}
.btn-primary:hover { background: var(--accent-lt); box-shadow: 0 0 28px var(--accent-glow); }
.btn-primary.btn-lg { padding: 14px 28px; font-size: 18px; border-radius: var(--r); }

.btn-ghost {
  display: inline-flex; align-items: center;
  color: var(--text-2); font-size: 16px; font-weight: 500;
  padding: 10px 16px; border-radius: var(--r-sm);
  transition: color var(--ease), background var(--ease);
}
.btn-ghost:hover { color: var(--text); background: var(--bg-card); }

.btn-outline {
  display: flex; align-items: center; justify-content: center; width: 100%;
  color: var(--text); font-family: var(--font-b); font-weight: 600; font-size: 16px;
  padding: 12px 20px; border-radius: var(--r-sm);
  border: 1px solid var(--border-2); background: transparent; cursor: pointer;
  transition: border-color var(--ease), background var(--ease);
}
.btn-outline:hover { border-color: var(--accent); background: var(--accent-glow); }

.btn-link {
  color: var(--text-2); font-size: 16px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 4px;
  transition: color var(--ease);
}
.btn-link:hover { color: var(--text); }

/* ---- SECTION COMMON ---- */
.section-header { text-align: center; margin-bottom: 64px; }
.section-header h2 { font-size: clamp(30px, 5vw, 52px); font-weight: 800; }
.section-sub { margin-top: 14px; color: var(--text-2); font-size: 18px; }

/* ---- NAV ---- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(8,11,18,0.82); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; gap: 32px;
  max-width: var(--max); margin: 0 auto; padding: 0 24px; height: 64px;
}
.logo {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-d); font-weight: 700; font-size: 16px;
  color: var(--text); white-space: nowrap;
}
.logo-mark {
  width: 28px; height: 28px;
  background: url("/favicon.svg") center / contain no-repeat;
  flex-shrink: 0;
}
.nav-links { display: flex; align-items: center; gap: 2px; flex: 1; }
.nav-links a {
  color: var(--text-2); font-size: 16px; font-weight: 500;
  padding: 6px 12px; border-radius: var(--r-sm);
  transition: color var(--ease), background var(--ease);
}
.nav-links a:hover { color: var(--text); background: var(--bg-card); }
.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 8px; margin-left: auto;
}
.nav-toggle span {
  display: block; width: 20px; height: 1.5px;
  background: var(--text-2); border-radius: 2px;
}
.nav-mobile {
  display: none; flex-direction: column; gap: 0;
  padding: 8px 24px 16px; border-top: 1px solid var(--border);
}
.nav-mobile a {
  color: var(--text-2); font-size: 16px; font-weight: 500;
  padding: 11px 0; border-bottom: 1px solid var(--border);
}
.nav-mobile .mobile-cta { margin-top: 12px; border-bottom: none; display: flex; width: 100%; justify-content: center; }
.nav-mobile.open { display: flex; }

/* ---- HERO ---- */
.hero { position: relative; padding: 96px 0 88px; overflow: hidden; }
.hero-glow {
  position: absolute; top: -100px; left: 50%; transform: translateX(-50%);
  width: 1000px; height: 700px; pointer-events: none;
  background: radial-gradient(ellipse at 50% 30%, rgba(99,102,241,0.16) 0%, transparent 62%);
}
.hero-container {
  display: grid; grid-template-columns: 5fr 6fr; gap: 56px; align-items: start;
}

.hero-heading {
  font-size: clamp(36px, 4.8vw, 64px); font-weight: 800;
  letter-spacing: -0.025em; margin-bottom: 24px; line-height: 1.08;
}
.hero-heading em {
  font-style: normal;
  background: linear-gradient(125deg, var(--accent) 20%, var(--cyan) 80%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-sub {
  font-size: 18px; color: var(--text-2); line-height: 1.75;
  margin-bottom: 40px; max-width: 420px;
}
.hero-cta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }

/* API mock */
.api-mock {
  background: var(--bg-2); border: 1px solid var(--border-2);
  border-radius: var(--r-lg);
  box-shadow: 0 16px 60px rgba(99,102,241,0.14), 0 0 0 1px var(--border);
  overflow: hidden; font-family: 'Fira Code', 'Cascadia Code', 'Courier New', monospace;
}
.api-mock-header {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.025);
}
.mock-dots { display: flex; gap: 5px; }
.mock-dots span { width: 10px; height: 10px; border-radius: 50%; }
.mock-dots span:nth-child(1) { background: #ff5f57; }
.mock-dots span:nth-child(2) { background: #febc2e; }
.mock-dots span:nth-child(3) { background: #28c840; }
.api-method-tag {
  font-size: 16px; font-weight: 700; letter-spacing: 0.06em;
  background: rgba(99,102,241,0.2); color: var(--accent-lt);
  padding: 2px 7px; border-radius: 4px;
}
.api-url { font-size: 16px; color: var(--text-3); }
.api-mock-body { padding: 0; }
.code-block { padding: 16px 20px; }
.request-block { border-bottom: 1px solid var(--border); }
.code-label {
  font-size: 16px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 10px;
}
.code-line { font-size: 16px; line-height: 1.8; }
.c-key   { color: var(--accent-lt); }
.c-str   { color: #fbbf24; }
.c-ok    { color: var(--green); }
.c-punc  { color: var(--text-3); }
.api-response-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 20px; background: rgba(16,185,129,0.06);
  border-top: 1px solid rgba(16,185,129,0.15);
  border-bottom: 1px solid rgba(16,185,129,0.15);
}
.status-badge.ok {
  font-size: 16px; font-weight: 700; color: var(--green);
  background: rgba(16,185,129,0.15); padding: 2px 8px; border-radius: 4px;
}
.status-time { font-size: 16px; color: var(--text-3); margin-left: auto; }
.api-platforms-bar {
  display: flex; align-items: center; gap: 6px; padding: 12px 20px;
  border-top: 1px solid var(--border); background: rgba(255,255,255,0.015);
  font-family: var(--font-b);
}
.plat {
  font-size: 16px; font-weight: 600; color: var(--text-3);
  padding: 3px 10px; border-radius: 6px; border: 1px solid var(--border);
}
.plat.active { color: var(--accent-lt); border-color: rgba(99,102,241,0.4); background: rgba(99,102,241,0.1); }
.plat.muted  { color: var(--text-3); opacity: 0.6; }

/* ---- PROOF BAR ---- */
.proof-bar {
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 32px 24px;
}
/* Page sections alternate plain and tinted from the proof bar down:
   proof (tint), features, how (tint), pricing, faq (tint), cta, footer (tint).
   Keep the order alternating when a section is added or removed. */
.proof-bar, .how, .faq, .footer { background: var(--bg-band); }
.how, .faq { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.proof-inner {
  max-width: var(--max); margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 20px;
}
.proof-label { font-size: 16px; color: var(--text-3); font-weight: 500; }
.proof-stats { display: flex; align-items: center; gap: 36px; }
.proof-stat { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.proof-stat strong { font-family: var(--font-d); font-size: 32px; font-weight: 800; line-height: 1; }
.proof-stat span { font-size: 16px; color: var(--text-3); font-weight: 500; }
.proof-div { width: 1px; height: 44px; background: var(--border); }

/* ---- FEATURES ---- */
.features { padding: 120px 0; }
.features-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.feature-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r); padding: 32px;
  transition: border-color var(--ease), background var(--ease);
}
.feature-card:hover { border-color: var(--border-2); background: rgba(255,255,255,0.05); }
.feat-icon {
  width: 42px; height: 42px; border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.icon-blue   { background: rgba(59,130,246,0.14);  color: #60a5fa; }
.icon-indigo { background: rgba(99,102,241,0.14);  color: var(--accent-lt); }
.icon-violet { background: rgba(168,85,247,0.14);  color: #c084fc; }
.icon-cyan   { background: rgba(34,211,238,0.14);  color: var(--cyan); }
.feature-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.feature-card p  { color: var(--text-2); font-size: 16px; line-height: 1.65; }

/* ---- HOW IT WORKS ---- */
.how { padding: 120px 0; }
.steps { display: flex; align-items: flex-start; }
.step {
  flex: 1; padding: 32px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r);
  display: flex; flex-direction: column; gap: 14px;
}
.step-line {
  width: 48px; flex-shrink: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  margin-top: 52px; align-self: flex-start;
}
.step-num {
  font-family: var(--font-d); font-size: 42px; font-weight: 800;
  color: rgba(99,102,241,0.18); line-height: 1;
}
.step h3 { font-size: 18px; font-weight: 700; }
.step p  { color: var(--text-2); font-size: 16px; }

/* ---- PRICING ---- */
.pricing { padding: 120px 0; }
.pricing-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 24px;
}
.pricing-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 36px;
  display: flex; flex-direction: column; gap: 24px; position: relative;
}
.pricing-card.featured {
  border-color: var(--accent); background: rgba(99,102,241,0.06);
  box-shadow: 0 0 48px rgba(99,102,241,0.14);
}
/* The column flex stretches the button to full width, but .btn-primary is
   inline-flex with no justify-content, so its label sat at the left edge. */
.pricing-card .btn-primary { justify-content: center; }
.plan-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff;
  font-size: 16px; font-weight: 700; padding: 4px 14px; border-radius: 6px;
}
.plan-name { font-family: var(--font-d); font-size: 18px; font-weight: 700; }
.plan-price { display: flex; align-items: baseline; gap: 4px; }
.amount { font-family: var(--font-d); font-size: 50px; font-weight: 800; line-height: 1; }
.agency-price { font-size: 32px; }
.period { color: var(--text-3); font-size: 16px; }
.plan-feats { display: flex; flex-direction: column; gap: 11px; flex: 1; }
.plan-feats li { display: flex; align-items: center; gap: 10px; font-size: 16px; color: var(--text-2); }
.plan-feats li svg { color: var(--green); flex-shrink: 0; }

/* ---- FAQ ---- */
.faq { padding: 120px 0; }
.faq-list {
  max-width: 700px; margin: 0 auto;
  border: 1px solid var(--border); border-radius: var(--r); overflow: hidden;
}
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; background: none; border: none; cursor: pointer;
  color: var(--text); font-family: var(--font-b); font-size: 16px; font-weight: 500;
  text-align: left; transition: background var(--ease);
}
.faq-q:hover { background: var(--bg-card); }
.faq-chevron { flex-shrink: 0; color: var(--text-3); transition: transform 0.3s ease; }
.faq-q[aria-expanded="true"] .faq-chevron { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-a.open { max-height: 420px; }
.faq-a p { padding: 12px 24px 24px; color: var(--text-2); font-size: 16px; line-height: 1.7; }

/* ---- FINAL CTA ---- */
.cta-section { padding: 120px 0; }
.cta-box {
  background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(34,211,238,0.05));
  border: 1px solid rgba(99,102,241,0.28); border-radius: var(--r-lg);
  padding: 80px 40px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
}
.cta-box h2 { font-size: clamp(26px, 4vw, 46px); font-weight: 800; }
.cta-box p  { color: var(--text-2); font-size: 18px; max-width: 460px; }

/* ---- WAITLIST ---- */
.waitlist-form { display: flex; flex-wrap: wrap; gap: 10px; width: 100%; max-width: 520px; }
.waitlist-form input[type="email"] {
  flex: 1 1 240px; min-width: 0; padding: 14px 16px; font-size: 17px;
  color: var(--text); background: var(--bg-2); border: 1px solid var(--border-2);
  border-radius: var(--r); transition: border-color var(--ease), box-shadow var(--ease);
}
.waitlist-form input[type="email"]::placeholder { color: var(--text-3); }
.waitlist-form input[type="email"]:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.waitlist-form button[disabled] { opacity: 0.6; cursor: progress; }
.waitlist-status { flex-basis: 100%; min-height: 1.4em; font-size: 16px; color: var(--text-2); }
.waitlist-status.ok { color: var(--green); }
.waitlist-status.err { color: #f87171; }
.waitlist-note { margin-top: 14px; color: var(--text-2); font-size: 16px; max-width: 520px; }
.waitlist-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cta-box .waitlist-form { justify-content: center; }

/* ---- FOOTER ---- */
.footer { border-top: 1px solid var(--border); padding: 48px 0 32px; }
.footer-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; margin-bottom: 36px; flex-wrap: wrap;
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px; }
.footer-nav a {
  color: var(--text-3); font-size: 16px; padding: 6px 12px;
  border-radius: var(--r-sm); transition: color var(--ease);
}
.footer-nav a:hover { color: var(--text); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
}
.footer-bottom p { color: var(--text-3); font-size: 16px; }
.footer-credit a { color: var(--text-2); transition: color var(--ease); }
.footer-credit a:hover { color: var(--text); }

/* ---- SCROLL REVEAL ---- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .hero-container { grid-template-columns: 1fr; text-align: center; }
  .hero-sub { max-width: 100%; }
  .hero-cta, .hero-text .waitlist-form { justify-content: center; margin-left: auto; margin-right: auto; }
  .waitlist-note { margin-left: auto; margin-right: auto; }
  .hero-visual { display: none; }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .nav-toggle { display: flex; }
  .features-grid { grid-template-columns: 1fr; }
  .steps { flex-direction: column; }
  .step-line { width: 2px; height: 28px; align-self: center; margin: 0; background: linear-gradient(180deg, var(--accent), transparent); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .footer-top { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .proof-stats { gap: 20px; }
  .cta-box { padding: 48px 24px; }
  .hero-heading { font-size: clamp(34px, 10vw, 52px); }
}
