/* ============================================================
   builderX — marketing site design system
   Light theme, Nebius-inspired lime accent.

   COLOR NOTE — the constraint that shapes everything here:
   the lime (#E0FF4F) has ~1.13:1 contrast against white. It is
   invisible as text, as an icon, or as a thin border on a light
   page. It reaches 16:1 the other way round — dark text ON lime.

   So the lime is used only as a FILL: buttons, pills, highlight
   blocks, the dark CTA band. Anywhere a small brand-coloured
   mark has to read on white (ticks, eyebrows), it uses
   --accent-ink, a deep olive that clears 4.5:1.

   Type reuses the app's own Archivo + IBM Plex Mono, and the
   white ground now matches the app's light interior.
   ============================================================ */

:root {
  --bg:        #FFFFFF;
  --bg-2:      #FAFAF8;
  --surface:   #FFFFFF;
  --surface-2: #F6F6F2;
  --line:      #E7E7E1;
  --line-2:    #D6D6CE;

  /* Contrast against white, measured: ink 18.8:1, text-2 6.3:1,
     text-3 4.8:1, accent-ink 5.9:1. All clear WCAG AA. text-3 is
     as light as it can go while staying legible — it carries the
     ✕ marks and price sub-lines, which are real content. */
  --ink:       #101215;   /* headings, primary text */
  --text-2:    #5B615E;   /* body copy              */
  --text-3:    #6F7572;   /* de-emphasised          */

  --lime:      #E0FF4F;   /* fills only — never text on white */
  --lime-deep: #CDEE33;   /* hover state for lime fills */
  --lime-wash: #F7FFD6;   /* very light tint for panels */
  --accent-ink:#5C6B00;   /* small brand marks on white — 4.8:1 */

  --dark:      #101215;   /* the CTA band + footer accents */

  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --sans: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --maxw: 1100px;
  --r: 10px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }

/* ---------- layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }

/* ---------- type ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 14px;
}
.eyebrow-muted { color: var(--text-3); }

h1 {
  font-size: clamp(34px, 5.5vw, 58px);
  line-height: 1.06;
  letter-spacing: -.032em;
  font-weight: 700;
}
h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.12;
  letter-spacing: -.024em;
  font-weight: 700;
}
h3 { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }

.lede {
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--text-2);
  max-width: 60ch;
  line-height: 1.62;
}
.muted { color: var(--text-2); }
.small { font-size: 13px; }
.mono  { font-family: var(--mono); }

/* Highlighter. This is the correct way to use the lime on a light
   page: as a block behind dark text, not as coloured text. */
.hl {
  background: var(--lime);
  color: var(--ink);
  padding: 0 .12em;
  border-radius: 3px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 7px;
  border: 1px solid var(--line-2);
  background: var(--bg);
  color: var(--ink);
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
  white-space: nowrap;
}
.btn:hover { background: var(--surface-2); border-color: #BFBFB6; }

.btn-primary {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
  font-weight: 600;
}
.btn-primary:hover {
  background: var(--lime-deep);
  border-color: var(--lime-deep);
  transform: translateY(-1px);
}
.btn-ghost { border-color: transparent; background: transparent; color: var(--text-2); }
.btn-ghost:hover { color: var(--ink); background: var(--surface-2); }
.btn-lg { padding: 13px 24px; font-size: 15px; }
.btn-block { width: 100%; }

/* on the dark CTA band */
.band .btn { background: transparent; border-color: rgba(255,255,255,.28); color: #fff; }
.band .btn:hover { background: rgba(255,255,255,.1); }
.band .btn-primary { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.band .btn-primary:hover { background: var(--lime-deep); border-color: var(--lime-deep); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-in {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  height: 60px; display: flex; align-items: center; gap: 28px;
}
.brand {
  display: flex; align-items: center; gap: 9px;
  font-weight: 700; letter-spacing: -.02em; font-size: 15px;
  white-space: nowrap;
}
.brand-mark {
  width: 22px; height: 22px; border-radius: 5px; flex: none;
  background: var(--lime);
  display: grid; place-items: center;
}
.brand-mark svg { width: 13px; height: 13px; }
.nav-links { display: flex; gap: 22px; margin-left: 6px; }
.nav-links a { font-size: 14px; color: var(--text-2); transition: color .15s; }
.nav-links a:hover { color: var(--ink); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 104px 0 84px; overflow: hidden; }
.hero::before {
  content: '';
  position: absolute; inset: -40% 0 auto 50%;
  width: 980px; height: 640px; transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(224,255,79,.42), rgba(224,255,79,0) 66%);
  pointer-events: none;
}
.grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 76% 56% at 50% 32%, #000 22%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 76% 56% at 50% 32%, #000 22%, transparent 78%);
  opacity: .8;
  pointer-events: none;
}
.hero-in { position: relative; text-align: center; }
.hero .lede { margin: 20px auto 0; }
.hero-cta { display: flex; gap: 12px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }
.hero-note { margin-top: 14px; font-size: 12.5px; color: var(--text-3); font-family: var(--mono); }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em;
  padding: 5px 13px; border-radius: 999px;
  border: 1px solid #C9D96B; background: var(--lime);
  color: var(--ink); margin-bottom: 22px; font-weight: 500;
}
.dot { width: 5px; height: 5px; border-radius: 50%; background: var(--ink); }

/* ---------- workflow strip ---------- */
.flow {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden; margin-top: 56px;
}
.flow-step { background: var(--surface); padding: 20px 18px; }
.flow-step .n { font-family: var(--mono); font-size: 10.5px; color: var(--accent-ink); letter-spacing: .1em; }
.flow-step h3 { margin: 7px 0 5px; }
.flow-step p { font-size: 13px; color: var(--text-2); line-height: 1.5; }

/* ---------- feature cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; margin-top: 44px; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 24px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.card:hover { border-color: var(--line-2); box-shadow: 0 6px 22px -14px rgba(16,18,21,.22); }
.card h3 { margin-bottom: 8px; }
.card p { font-size: 13.5px; color: var(--text-2); line-height: 1.58; }
.card-icon {
  width: 32px; height: 32px; border-radius: 7px; margin-bottom: 14px;
  background: var(--lime); display: grid; place-items: center; color: var(--ink);
}
.card-icon svg { width: 16px; height: 16px; }

.badge {
  display: inline-block; font-family: var(--mono); font-size: 10px;
  letter-spacing: .09em; text-transform: uppercase;
  padding: 2px 7px; border-radius: 4px; margin-left: 7px;
  background: var(--lime); color: var(--ink); font-weight: 500;
}

/* ---------- pricing ---------- */
/* Four tiers squeezed into a grid got cramped, so they scroll
   horizontally instead: each card keeps a comfortable fixed width
   and the row overflows. Same behaviour at every breakpoint, which
   also removes the awkward 2x2 middle state.

   Note on overflow: setting overflow-x makes the Y axis compute to
   auto too, which would clip the "Most popular" badge sitting at
   top:-10px. Hence the padding-top on the track. */
.wrap-wide { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.tiers {
  display: flex;
  gap: 16px;
  margin-top: 44px;
  align-items: stretch;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 16px 0 18px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
}
.tiers::-webkit-scrollbar { height: 8px; }
.tiers::-webkit-scrollbar-track { background: var(--surface-2); border-radius: 99px; }
.tiers::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 99px; }
.tiers::-webkit-scrollbar-thumb:hover { background: #BFBFB6; }

.tier { flex: 0 0 328px; scroll-snap-align: start; }

.scroll-hint {
  font-family: var(--mono); font-size: 11.5px; color: var(--text-3);
  display: flex; align-items: center; gap: 7px; margin-top: 2px;
}
@media (max-width: 560px) { .tier { flex: 0 0 84vw; } }

/* currency picker */
.cur-pick { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-size: 13px; color: var(--text-2); }
.cur-pick select {
  font-family: var(--mono); font-size: 12.5px; padding: 5px 9px;
  border: 1px solid var(--line-2); border-radius: 6px;
  background: var(--bg); color: var(--ink); cursor: pointer;
}
.cur-pick select:focus { outline: none; border-color: var(--accent-ink); box-shadow: 0 0 0 3px rgba(224,255,79,.55); }
.tier {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 28px 24px;
  display: flex; flex-direction: column;
  position: relative;
}
.tier-hot {
  border-color: #C9D96B;
  background: linear-gradient(180deg, var(--lime-wash), transparent 40%), var(--surface);
  box-shadow: 0 18px 44px -26px rgba(16,18,21,.3);
}
.tier-flag {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  font-family: var(--mono); font-size: 10px; letter-spacing: .11em; text-transform: uppercase;
  background: var(--lime); color: var(--ink); padding: 3px 11px;
  border-radius: 999px; font-weight: 600; border: 1px solid #C9D96B;
}
.tier-name { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.tier-for { font-size: 12.5px; color: var(--text-3); margin-top: 3px; min-height: 34px; }
.price { display: flex; align-items: baseline; gap: 5px; margin: 16px 0 4px; }
.price .cur { font-family: var(--mono); font-size: 15px; color: var(--text-2); }
.price .amt { font-size: 38px; font-weight: 700; letter-spacing: -.035em; line-height: 1; }
.price .per { font-size: 13px; color: var(--text-3); }
.price-sub { font-size: 12px; color: var(--text-3); font-family: var(--mono); min-height: 18px; }
.tier .btn { margin: 20px 0 22px; }

.feats { list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; }
/* Not flex: a flex li turns every <b> into its own anonymous flex
   item, which inherits the gap and breaks inline text runs.
   Absolute-positioning the tick keeps the copy in normal flow. */
.feats li { position: relative; padding-left: 22px; color: var(--text-2); line-height: 1.45; }
.feats li b { color: var(--ink); font-weight: 600; }
.tick { position: absolute; left: 0; top: 2px; color: var(--accent-ink); line-height: 1; }
.tick svg { width: 13px; height: 13px; display: block; }
.cross { color: var(--text-3); }
.feat-sep { height: 1px; background: var(--line); margin: 4px 0; }

/* ---------- comparison table ---------- */
.tbl-wrap { overflow-x: auto; margin-top: 40px; border: 1px solid var(--line); border-radius: var(--r); }
table.cmp { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 620px; }
table.cmp th, table.cmp td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); }
table.cmp thead th {
  background: var(--surface-2); font-size: 12px; font-family: var(--mono);
  letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); font-weight: 500;
}
table.cmp td:not(:first-child), table.cmp th:not(:first-child) { text-align: center; }
table.cmp tbody tr:last-child td { border-bottom: 0; }
table.cmp td:first-child { color: var(--text-2); }
table.cmp .yes { color: var(--accent-ink); font-weight: 600; }
table.cmp .no  { color: var(--text-3); }

/* ---------- faq ---------- */
.faq { margin-top: 40px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  padding: 18px 4px; cursor: pointer; font-weight: 500; font-size: 15px;
  list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent-ink); font-size: 19px; flex: none; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq p { padding: 0 4px 20px; color: var(--text-2); font-size: 14px; max-width: 74ch; }

/* ---------- cta band ---------- */
/* Deliberately dark: on an otherwise white page this is the one
   moment of high contrast, and it lets the lime button sing. */
.band {
  border-radius: 14px;
  background: var(--dark);
  color: #fff;
  padding: 52px 36px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.band::before {
  content: '';
  position: absolute; inset: auto auto -60% 50%;
  width: 620px; height: 380px; transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(224,255,79,.20), transparent 68%);
  pointer-events: none;
}
.band h2, .band .lede { position: relative; }
.band .lede { color: rgba(255,255,255,.7); }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 40px 0; margin-top: 24px; }
.foot-in { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
footer .small { color: var(--text-3); font-size: 12.5px; }
.foot-links { display: flex; gap: 20px; }
.foot-links a { font-size: 13px; color: var(--text-2); }
.foot-links a:hover { color: var(--ink); }

/* ---------- auth ---------- */
.auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 40px 24px; position: relative; background: var(--bg-2); }
.auth-card {
  width: 100%; max-width: 396px; position: relative; z-index: 2;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 13px; padding: 32px 30px;
  box-shadow: 0 22px 60px -34px rgba(16,18,21,.36);
}
.auth-card h1 { font-size: 23px; letter-spacing: -.02em; }
.field { margin-top: 15px; }
.field label { display: block; font-size: 12.5px; color: var(--text-2); margin-bottom: 6px; }
.field input {
  width: 100%; font-family: var(--sans); font-size: 14px;
  padding: 10px 12px; border-radius: 7px;
  border: 1px solid var(--line-2); background: var(--bg); color: var(--ink);
}
.field input:focus { outline: none; border-color: var(--accent-ink); box-shadow: 0 0 0 3px rgba(224,255,79,.55); }
.divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--text-3); font-size: 11.5px; font-family: var(--mono); }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.auth-alt { margin-top: 20px; text-align: center; font-size: 13.5px; color: var(--text-2); }
.auth-alt a { color: var(--accent-ink); font-weight: 500; }
.notice {
  margin-top: 15px; padding: 10px 12px; border-radius: 7px; font-size: 13px;
  border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text-2);
}
.notice-warn { border-color: #D9C77A; background: #FDF8E3; color: #6B5A16; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .flow { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .section { padding: 68px 0; }
}
@media (max-width: 520px) {
  .flow { grid-template-columns: 1fr; }
  .band { padding: 36px 22px; }
}
