/* Wapim SEOEngineer — palette taken from the app icon: cyan -> emerald on deep
   navy. Deliberately not the purple/pink gradient every AI product ships; this
   is a developer instrument and should read as one. */

:root {
  --bg:        #070B14;
  --bg-2:      #0A1020;
  --surface:   #0E1420;
  --surface-2: #131A2A;
  --line:      #1E2739;
  --line-2:    #2A3550;
  --fg:        #EEF2F8;   /* 15.8:1 on --bg */
  --mut:       #96A1B8;   /*  7.4:1 on --bg — above AA for body text */
  --mut-2:     #78839A;   /*  5.2:1 on --bg — AA even at 13px */
  --cyan:      #22D3EE;
  --emerald:   #34D399;
  --grad: linear-gradient(135deg, var(--cyan) 0%, var(--emerald) 100%);

  --r-sm: 10px;
  --r:    14px;
  --r-lg: 20px;

  --t-fast: 150ms cubic-bezier(.4, 0, .2, 1);
  --t:      220ms cubic-bezier(.4, 0, .2, 1);
  --glow:   0 0 0 1px rgba(34,211,238,.28), 0 12px 40px rgba(34,211,238,.13);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.65 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
        Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--emerald); }

/* Keyboard users must always see where they are. */
a:focus-visible, button:focus-visible, .btn:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}
button, .btn { cursor: pointer; }

.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 24px; }
.narrow { max-width: 760px; }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7,11,20,.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t), background var(--t);
}
.site-header.scrolled { border-bottom-color: var(--line); background: rgba(7,11,20,.92); }
.nav { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; color: var(--fg); font-size: 15px; letter-spacing: -.01em; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--mut); font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--fg); }
.nav-links a.btn { color: #04121A; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 22px; border-radius: var(--r);
  font-size: 14.5px; font-weight: 600; letter-spacing: -.005em;
  border: 1px solid var(--line-2);
  background: var(--surface-2); color: var(--fg);
  transition: transform var(--t-fast), border-color var(--t-fast),
              background var(--t-fast), box-shadow var(--t-fast);
}
.btn:hover { transform: translateY(-2px); background: #17203A; color: var(--fg); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--grad); color: #04121A; border-color: transparent; font-weight: 700; }
.btn-primary:hover { box-shadow: var(--glow); color: #04121A; }
.btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.btn svg { width: 17px; height: 17px; flex: none; }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; padding: 96px 0 88px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-image: url("/assets/hero.webp");
  background-size: cover; background-position: center right;
  opacity: .5;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--bg) 8%, rgba(7,11,20,.72) 46%, rgba(7,11,20,.2) 100%),
              linear-gradient(180deg, transparent 55%, var(--bg) 100%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero-inner { max-width: 640px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 13px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(14,20,32,.7);
  font-size: 12.5px; font-weight: 600; color: var(--mut);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--emerald); flex: none; }

h1 {
  font-size: clamp(38px, 6vw, 62px); line-height: 1.05;
  letter-spacing: -.035em; font-weight: 800; margin: 22px 0 20px;
}
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: clamp(16px, 2vw, 18.5px); color: var(--mut); max-width: 560px; margin: 0 0 34px; }
.hero-cta { display: flex; gap: 13px; flex-wrap: wrap; }
.hero-meta { margin-top: 26px; font-size: 13px; color: var(--mut-2); display: flex; gap: 20px; flex-wrap: wrap; }
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta svg { width: 15px; height: 15px; color: var(--emerald); }

/* ---------------------------------------------------------------- sections */
.section { padding: 84px 0; position: relative; }
.section-head { max-width: 660px; margin-bottom: 46px; }
h2 { font-size: clamp(27px, 3.6vw, 38px); line-height: 1.15; letter-spacing: -.028em; font-weight: 750; margin: 0 0 14px; }
h3 { font-size: 17px; font-weight: 650; letter-spacing: -.012em; margin: 0 0 8px; }
.sub { color: var(--mut); font-size: 16.5px; margin: 0; }

/* ---------------------------------------------------------------- cards */
.grid { display: grid; gap: 18px; }
.g-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 26px;
  transition: border-color var(--t), transform var(--t), background var(--t);
}
.card:hover { border-color: var(--line-2); transform: translateY(-3px); background: var(--surface-2); }
.card p { color: var(--mut); font-size: 14.5px; margin: 0; }

.icon-badge {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 16px;
  background: rgba(34,211,238,.09); border: 1px solid rgba(34,211,238,.22); color: var(--cyan);
}
.icon-badge svg { width: 20px; height: 20px; }

/* ---------------------------------------------------------------- pricing */
.pricing { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); align-items: stretch; }
.plan { display: flex; flex-direction: column; position: relative; }
.plan.featured {
  border-color: rgba(34,211,238,.4);
  background: linear-gradient(180deg, rgba(34,211,238,.05), transparent 55%), var(--surface);
}
.plan.featured::before {
  content: "Most popular"; position: absolute; top: -11px; left: 26px;
  background: var(--grad); color: #04121A;
  font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  padding: 4px 11px; border-radius: 999px;
}
.plan-name { font-size: 14px; font-weight: 700; color: var(--mut); }
.price { font-size: 44px; font-weight: 800; letter-spacing: -.04em; margin: 10px 0 2px; }
.price small { font-size: 14px; font-weight: 500; color: var(--mut); letter-spacing: 0; }
.plan-note { font-size: 13px; color: var(--mut-2); margin: 0 0 22px; }
.feat { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; }
.feat li { display: flex; gap: 10px; font-size: 14.5px; align-items: flex-start; }
.feat svg { width: 17px; height: 17px; flex: none; margin-top: 2px; color: var(--emerald); }
.feat .no { color: var(--mut-2); }
.feat .no svg { color: var(--mut-2); }
.plan .btn { width: 100%; margin-top: auto; }

/* ---------------------------------------------------------------- compare */
.compare { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.compare-scroll { overflow-x: auto; }
.compare table { width: 100%; border-collapse: collapse; min-width: 520px; }
.compare th, .compare td { padding: 15px 20px; text-align: left; font-size: 14.5px; border-bottom: 1px solid var(--line); }
.compare thead th { background: var(--surface-2); font-size: 12.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--mut); font-weight: 700; }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare td:first-child { color: var(--mut); }
.compare td:last-child { color: var(--fg); font-weight: 500; }

/* ---------------------------------------------------------------- split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split img { border-radius: var(--r-lg); border: 1px solid var(--line); }
.quote { border-left: 2px solid var(--cyan); padding: 4px 0 4px 20px; margin: 26px 0 0; color: var(--mut); font-size: 15px; }
.quote code { color: var(--cyan); font-size: 13.5px; }

/* ---------------------------------------------------------------- cta band */
.band {
  border: 1px solid var(--line); border-radius: 26px;
  background: radial-gradient(120% 160% at 50% 0%, rgba(34,211,238,.12), transparent 62%), var(--surface);
  padding: 62px 32px; text-align: center;
}
.band h2 { margin-bottom: 12px; }
.band .sub { margin-inline: auto; max-width: 520px; }
.band .hero-cta { justify-content: center; margin-top: 30px; }

/* ---------------------------------------------------------------- footer */
footer { border-top: 1px solid var(--line); padding: 42px 0; margin-top: 90px; }
.foot { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; font-size: 13.5px; color: var(--mut-2); }
.foot a { color: var(--mut); }
.foot a:hover { color: var(--fg); }
.foot .spacer { margin-left: auto; }

/* ---------------------------------------------------------------- prose */
.prose h2 { font-size: 21px; margin: 38px 0 10px; }
.prose p, .prose li { color: var(--mut); font-size: 15.5px; }
.prose code {
  background: var(--surface-2); border: 1px solid var(--line);
  padding: 2px 6px; border-radius: 6px; font-size: 13.5px; color: var(--cyan);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.lbl { display: block; font-size: 12.5px; color: var(--mut); margin: 24px 0 8px; font-weight: 600; }
textarea {
  width: 100%; background: var(--bg-2); color: var(--fg);
  border: 1px solid var(--line); border-radius: var(--r); padding: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px; line-height: 1.6; resize: vertical;
}
.steps { counter-reset: s; list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.steps li { counter-increment: s; position: relative; padding-left: 40px; color: var(--mut); font-size: 15px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: -1px;
  width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
  background: rgba(34,211,238,.1); border: 1px solid rgba(34,211,238,.25);
  color: var(--cyan); font-size: 12.5px; font-weight: 700;
}

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1024px) {
  .g-3, .pricing { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 34px; }
  .hero { padding: 74px 0 68px; }
}
@media (max-width: 768px) {
  .nav-links a:not(.btn) { display: none; }
  .g-3, .pricing { grid-template-columns: 1fr; }
  .section { padding: 62px 0; }
  .hero-bg { background-position: 70% center; opacity: .34; }
  .band { padding: 46px 22px; }
}
@media (max-width: 420px) {
  .wrap { padding-inline: 18px; }
  .hero-cta .btn { width: 100%; }
  .price { font-size: 38px; }
}

/* ---------------------------------------------------------------- motion */
/* Only hide pre-animation when JS is actually present to reveal it again. */
.js [data-anim] { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js [data-anim] { opacity: 1 !important; transform: none !important; }
}

/* ---------------------------------------------------------------- billing toggle */
.billing {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  margin-bottom: 34px;
}
.billing button {
  border: 0; background: transparent; color: var(--mut);
  font: inherit; font-size: 14px; font-weight: 600;
  padding: 9px 18px; border-radius: 999px;
  transition: color var(--t-fast), background var(--t-fast);
  display: inline-flex; align-items: center; gap: 8px;
}
.billing button:hover { color: var(--fg); }
.billing button[aria-pressed="true"] { background: var(--grad); color: #04121A; }
.save-pill {
  font-size: 11px; font-weight: 800; letter-spacing: .03em;
  padding: 3px 8px; border-radius: 999px;
  background: rgba(52,211,153,.14); color: var(--emerald);
  border: 1px solid rgba(52,211,153,.3);
}
.billing button[aria-pressed="true"] .save-pill {
  background: rgba(4,18,26,.18); color: #04121A; border-color: rgba(4,18,26,.25);
}
.price-swap { display: none; }
.price-swap.on { display: block; }
.plan .term-note { font-size: 12.5px; color: var(--emerald); margin: 0 0 18px; font-weight: 600; }
