/* ============================================================================
   Landing page — "Sleek Professional SaaS" design system.
   Tokens taken verbatim from the supplied DESIGN.md; nothing invented here.
   Kept in its own file so the admin panel's app.css stays untouched.
   ========================================================================== */

:root {
  /* surfaces */
  --surface:          #0e131f;
  --surface-lowest:   #080e1a;
  --surface-low:      #161c28;
  --surface-c:        #1a202c;
  --surface-high:     #242a36;
  --surface-highest:  #2f3542;

  /* content */
  --on-surface:       #dde2f3;
  --on-surface-var:   #c2c6d6;
  --outline:          #8c909f;
  --outline-var:      #424754;

  /* accents */
  --primary:          #adc6ff;
  --primary-c:        #4d8eff;
  --on-primary:       #002e6a;
  --secondary:        #c0c1ff;
  --tertiary:         #4edea3;
  --tertiary-c:       #00a572;
  --error:            #ffb4ab;

  /* shape + rhythm (8px base) */
  --r-sm: .125rem;
  --r:    .25rem;
  --r-md: .375rem;
  --r-lg: .5rem;
  --r-xl: .75rem;
  --r-full: 9999px;

  --container: 1280px;
  --gutter: 24px;
  --page-margin: 32px;

  --font-display: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--on-surface);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.wrapper { max-width: var(--container); margin: 0 auto; padding: 0 var(--page-margin); }
@media (max-width: 767px) { .wrapper { padding: 0 16px; } }

/* ---------------------------------------------------------------- type --- */

h1, h2, h3 { font-family: var(--font-display); margin: 0; }

.display {
  font-size: clamp(34px, 6vw, 60px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.03em;
}
.headline {
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -.015em;
}
.headline-md { font-size: 20px; font-weight: 600; line-height: 1.4; }

.body-lg { font-size: 18px; line-height: 1.6; color: var(--on-surface-var); }
@media (max-width: 767px) { .body-lg { font-size: 16px; } }
.body-md { font-size: 14px; line-height: 1.55; color: var(--on-surface-var); }

/* JetBrains Mono, uppercase, tracked — the "pro-tool" signal from DESIGN.md */
.label-caps {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--outline);
}
.mono { font-family: var(--font-mono); }

.accent { color: var(--primary); }

/* --------------------------------------------------------------- chrome --- */

.topnav {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--outline-var);
  background: rgba(14, 19, 31, .72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.topnav .row {
  max-width: var(--container); margin: 0 auto;
  padding: 12px var(--page-margin);
  display: flex; align-items: center; gap: 28px;
}
@media (max-width: 767px) { .topnav .row { padding: 12px 16px; gap: 16px; } }

.logo { display: flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.logo-mark {
  width: 26px; height: 26px; border-radius: var(--r-md);
  background: linear-gradient(160deg, var(--primary-c), #3131c0);
  display: grid; place-items: center;
  font-size: 11px; font-weight: 700; color: #fff; letter-spacing: .02em;
}
.navlinks { display: flex; gap: 22px; margin-left: auto; }
.navlinks a { font-size: 14px; color: var(--on-surface-var); }
.navlinks a:hover { color: var(--on-surface); }
@media (max-width: 900px) { .navlinks { display: none; } }
.nav-cta { display: flex; align-items: center; gap: 10px; margin-left: auto; }
@media (min-width: 901px) { .nav-cta { margin-left: 0; } }

/* -------------------------------------------------------------- buttons --- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--r-md);
  font-family: var(--font-body); font-size: 14px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer;
  transition: filter .15s ease, background .15s ease, border-color .15s ease;
}
.btn-primary {
  background: linear-gradient(180deg, var(--primary-c), #3f7de8);
  color: #fff;
}
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { border-color: var(--outline-var); color: var(--on-surface); background: transparent; }
.btn-ghost:hover { background: var(--surface-high); border-color: var(--surface-highest); }
.btn-lg { padding: 13px 24px; font-size: 15px; }
.btn-block { width: 100%; }

:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: var(--r); }

/* ---------------------------------------------------------------- chips --- */

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: var(--r-full);
  border: 1px solid var(--outline-var); background: var(--surface-low);
}
.chip .dot { width: 6px; height: 6px; border-radius: var(--r-full); background: var(--tertiary); }

.tag {
  display: inline-block; padding: 4px 10px; border-radius: var(--r-full);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em;
  background: rgba(77, 142, 255, .12); color: var(--primary);
  border: 1px solid rgba(77, 142, 255, .25);
}
.tag-green { background: rgba(78, 222, 163, .12); color: var(--tertiary); border-color: rgba(78, 222, 163, .25); }

/* -------------------------------------------------------------- section --- */

.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
@media (max-width: 767px) { .section { padding: 64px 0; } .section-tight { padding: 48px 0; } }
.section-alt { background: var(--surface-lowest); border-block: 1px solid var(--outline-var); }

.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head .headline { margin-bottom: 12px; }

/* ----------------------------------------------------------------- hero --- */

.hero {
  position: relative;
  padding: 88px 0 72px;
  text-align: center;
  overflow: hidden;
}
/* Single ambient wash — the one atmospheric effect on the page. */
.hero::before {
  content: '';
  position: absolute; inset: -40% 0 auto 50%;
  width: 1100px; height: 700px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(77, 142, 255, .16), transparent 70%);
  pointer-events: none;
}
.hero > * { position: relative; }
.hero .display { margin: 20px auto 18px; max-width: 15ch; }
.hero .body-lg { max-width: 56ch; margin: 0 auto; }
.hero-actions { display: flex; gap: 12px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }

/* ------------------------------------------------ SIGNATURE: two answers --- */
/* One URL, two audiences. This duality is the product, so it leads the page. */

.duality { margin-top: 64px; text-align: left; }
.duality-bar {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin-bottom: 18px; flex-wrap: wrap;
}
.duality-url {
  font-family: var(--font-mono); font-size: 14px;
  padding: 9px 16px; border-radius: var(--r-full);
  background: var(--surface-lowest); border: 1px solid var(--outline-var);
  color: var(--on-surface);
}
.duality-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); }
@media (max-width: 900px) { .duality-grid { grid-template-columns: 1fr; } }

.answer {
  background: var(--surface-c); border: 1px solid var(--outline-var);
  border-radius: var(--r-xl); overflow: hidden;
  display: flex; flex-direction: column;
}
.answer-head {
  padding: 14px 18px; border-bottom: 1px solid var(--outline-var);
  background: var(--surface-low);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.answer-who { font-weight: 600; font-size: 14px; }
.answer-ua { font-family: var(--font-mono); font-size: 11px; color: var(--outline); }
.answer-body { padding: 22px 18px; flex: 1; }

/* left: the redirect, shown as a wire trace */
.trace { display: grid; gap: 10px; }
.trace-row { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 12.5px; }
.trace-key { color: var(--outline); min-width: 72px; }
.trace-val { color: var(--on-surface); word-break: break-all; }
.trace-301 {
  display: inline-block; padding: 2px 8px; border-radius: var(--r);
  background: rgba(78, 222, 163, .14); color: var(--tertiary); font-weight: 600;
}
.trace-time { margin-top: 6px; font-family: var(--font-mono); font-size: 12px; color: var(--outline); }
.trace-time strong { color: var(--tertiary); }

/* right: the Facebook card the crawler builds */
.fbcard { border: 1px solid var(--outline-var); border-radius: var(--r-lg); overflow: hidden; background: var(--surface-lowest); }

/*
 * The og:image slot renders a plausible ad creative rather than an empty box.
 * A marketer recognises this instantly as "my ad, correct on Facebook", which is
 * the whole payoff of the panel; a grey placeholder communicated nothing.
 */
.fbcard-img {
  aspect-ratio: 1200 / 630;
  position: relative;
  display: grid; place-items: center; text-align: center;
  background:
    radial-gradient(120% 90% at 22% 12%, rgba(120, 170, 255, .38), transparent 58%),
    radial-gradient(110% 110% at 88% 96%, rgba(49, 49, 192, .55), transparent 62%),
    linear-gradient(145deg, #1b2b4d, #101a33 40%, #0b1220 100%);
  background-color: #101a33;
  overflow: hidden;
}
/* faint diagonal sheen, so the creative reads as art-directed not flat */
.fbcard-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, .07) 50%, transparent 58%);
}
.creative { position: relative; z-index: 1; padding: 10px 18px; }
.creative-eyebrow {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .18em;
  text-transform: uppercase; color: rgba(221, 226, 243, .75);
}
.creative-off {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(30px, 6.4vw, 52px); line-height: .95; letter-spacing: -.035em;
  color: #fff; margin: 8px 0 6px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
}
.creative-sub { font-size: 12px; color: rgba(221, 226, 243, .82); }
.creative-brand {
  position: absolute; z-index: 1; left: 14px; bottom: 12px;
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em;
  color: rgba(221, 226, 243, .7); text-transform: uppercase;
}
.creative-brand span {
  width: 14px; height: 14px; border-radius: 3px;
  background: linear-gradient(160deg, var(--primary-c), #3131c0);
}

/* the three tags the crawler actually read, mirroring the left panel's trace */
.fbcard-tags {
  margin-top: 14px; display: grid; gap: 7px;
  font-family: var(--font-mono); font-size: 11.5px;
}
.fbcard-tags div { display: flex; gap: 8px; }
.fbcard-tags b { color: var(--primary); font-weight: 500; flex: none; }
.fbcard-tags span { color: var(--outline); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fbcard-meta { padding: 12px 14px; border-top: 1px solid var(--outline-var); background: var(--surface-c); }
.fbcard-host { font-family: var(--font-mono); font-size: 11px; color: var(--outline); text-transform: uppercase; letter-spacing: .04em; }
.fbcard-title { font-family: var(--font-display); font-weight: 600; font-size: 15px; margin: 4px 0 3px; line-height: 1.3; }
.fbcard-desc { font-size: 12.5px; color: var(--on-surface-var); line-height: 1.45; }

.duality-note {
  margin-top: 18px; text-align: center;
  font-size: 13px; color: var(--outline);
}
.duality-note strong { color: var(--on-surface-var); font-weight: 500; }

/* ----------------------------------------------------------- trust strip --- */

.strip { border-block: 1px solid var(--outline-var); background: var(--surface-lowest); }
.strip-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  max-width: var(--container); margin: 0 auto;
}
.strip-item { padding: 26px var(--gutter); border-left: 1px solid var(--outline-var); }
.strip-item:first-child { border-left: 0; }
.strip-val { font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.strip-key { margin-top: 4px; }
@media (max-width: 900px) {
  .strip-row { grid-template-columns: 1fr 1fr; }
  .strip-item { padding: 20px 16px; }
  .strip-item:nth-child(3) { border-left: 0; }
  .strip-item:nth-child(n+3) { border-top: 1px solid var(--outline-var); }
}

/* ---------------------------------------------------------------- steps --- */
/* Numbered because this genuinely is a sequence: paste, we read, you share. */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--surface-c); border: 1px solid var(--outline-var);
  border-radius: var(--r-lg); padding: 24px;
}
.step-n {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .05em;
  color: var(--primary); margin-bottom: 14px; display: block;
}
.step h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }

/* ------------------------------------------------------------- features --- */

.features { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); }
@media (max-width: 900px) { .features { grid-template-columns: 1fr; } }
.feature {
  background: var(--surface-c); border: 1px solid var(--outline-var);
  border-radius: var(--r-lg); padding: 24px;
  transition: border-color .15s ease;
}
.feature:hover { border-color: var(--surface-highest); }
.feature-icon {
  width: 36px; height: 36px; border-radius: var(--r-md);
  background: var(--surface-high); border: 1px solid var(--outline-var);
  display: grid; place-items: center; margin-bottom: 16px;
  color: var(--primary);
}
.feature h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }

/* ---------------------------------------------------------------- split --- */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 28px; } }
.split-media {
  border: 1px solid var(--outline-var); border-radius: var(--r-xl);
  overflow: hidden; background: var(--surface-lowest);
}
.split-media img { display: block; width: 100%; height: auto; }
.split .headline { margin: 14px 0 12px; }

.checklist { display: grid; gap: 12px; margin-top: 22px; }
.check { display: flex; gap: 11px; align-items: flex-start; font-size: 14px; }
.check svg { flex: none; margin-top: 2px; color: var(--tertiary); }

/* -------------------------------------------------------------- pricing --- */

.plans { display: grid; gap: var(--gutter); align-items: start; }
.plans-1 { grid-template-columns: minmax(0, 420px); justify-content: center; }
.plans-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 820px; margin: 0 auto; }
.plans-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.plans-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .plans { grid-template-columns: 1fr !important; max-width: 460px; margin: 0 auto; } }

.plan {
  background: var(--surface-c); border: 1px solid var(--outline-var);
  border-radius: var(--r-xl); padding: 26px 24px;
  display: flex; flex-direction: column; position: relative;
}
.plan-featured { border-color: var(--primary-c); background: var(--surface-high); }
.plan-badge {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  padding: 3px 12px; border-radius: var(--r-full);
  background: var(--primary-c); color: #fff;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .05em; white-space: nowrap;
}
.plan-name { font-family: var(--font-display); font-size: 17px; font-weight: 600; }
.plan-price { font-family: var(--font-display); font-size: 38px; font-weight: 700; letter-spacing: -.03em; margin: 10px 0 2px; }
.plan-price .per { font-size: 14px; font-weight: 400; color: var(--outline); letter-spacing: 0; }
.plan-desc { font-size: 13px; color: var(--on-surface-var); min-height: 38px; margin-bottom: 18px; }
.plan-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 11px; flex: 1; }
.plan-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; }
.plan-list svg { flex: none; margin-top: 2px; color: var(--tertiary); }
.plan-list .off { color: var(--outline); }
.plan-list .off svg { color: var(--outline-var); }

.pricing-note { text-align: center; margin-top: 28px; font-size: 13px; color: var(--outline); }

/* ------------------------------------------------------------------ faq --- */

.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq details {
  background: var(--surface-c); border: 1px solid var(--outline-var);
  border-radius: var(--r-lg); padding: 18px 20px;
}
.faq summary {
  cursor: pointer; font-weight: 600; font-size: 15px; list-style: none;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
  font-family: var(--font-display);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--outline); font-weight: 400; font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: '\2013'; }
.faq p { margin: 12px 0 0; color: var(--on-surface-var); font-size: 14px; line-height: 1.6; }

/* ------------------------------------------------------------ final cta --- */

.cta-panel {
  border: 1px solid var(--outline-var); border-radius: var(--r-xl);
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(77, 142, 255, .13), transparent 60%),
    var(--surface-c);
  padding: 56px 32px; text-align: center;
}
.cta-panel .headline { margin-bottom: 12px; }

/* --------------------------------------------------------------- footer --- */

.foot { border-top: 1px solid var(--outline-var); padding: 32px 0; margin-top: 8px; }
.foot-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.foot-links { margin-left: auto; display: flex; gap: 20px; flex-wrap: wrap; }
.foot-links a, .foot small { color: var(--outline); font-size: 13px; }
.foot-links a:hover { color: var(--on-surface-var); }
@media (max-width: 767px) { .foot-links { margin-left: 0; } }
