/* ===========================================================
   NLPFix — shared stylesheet
   "Fix the NLP of LLMs. Get your fix of great NLP."
   =========================================================== */

:root {
  --navy: #0b1437;
  --navy-2: #111d4a;
  --indigo: #2a3a7c;
  --teal: #18c2a8;
  --teal-dark: #0e9d88;
  --accent: #5b8cff;
  --ink: #12182b;
  --slate: #4a5573;
  --muted: #6b7693;
  --line: #e4e8f2;
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --bg-card: #ffffff;
  --ok: #18a957;
  --warn: #e0a300;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(16,24,43,.06), 0 2px 8px rgba(16,24,43,.05);
  --shadow-md: 0 6px 24px rgba(16,24,43,.10);
  --shadow-lg: 0 18px 50px rgba(11,20,55,.18);
  --maxw: 1140px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { line-height: 1.18; letter-spacing: -0.02em; color: var(--navy); margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.22rem; font-weight: 700; }
p { margin: 0 0 1rem; color: var(--slate); }
a { color: var(--teal-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }
.section.tight { padding: 56px 0; }
.bg-soft { background: var(--bg-soft); }
.bg-navy { background: linear-gradient(165deg, var(--navy) 0%, var(--navy-2) 55%, var(--indigo) 100%); color: #dfe5f5; }
.bg-navy h1, .bg-navy h2, .bg-navy h3 { color: #fff; }
.center { text-align: center; }
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: .14em;
  font-size: .76rem; font-weight: 700; color: var(--teal-dark);
  margin-bottom: 14px;
}
.bg-navy .eyebrow { color: var(--teal); }
.lead { font-size: 1.18rem; color: var(--slate); max-width: 720px; }
.bg-navy .lead { color: #c2cbe6; }
.center .lead { margin-left: auto; margin-right: auto; }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: 10px; font-weight: 650;
  font-size: .98rem; cursor: pointer; border: 1px solid transparent;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--teal); color: #06241f; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--teal-dark); color: #042019; box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal-dark); }
.bg-navy .btn-ghost { color: #fff; border-color: rgba(255,255,255,.28); }
.bg-navy .btn-ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn-lg { padding: 16px 30px; font-size: 1.04rem; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.86); backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.28rem; color: var(--navy); letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand .fix { color: var(--teal-dark); }
.brand .mark {
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, var(--teal), var(--accent));
  display: grid; place-items: center; color: #fff; font-size: .95rem; font-weight: 800;
  box-shadow: var(--shadow-sm);
}
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--slate); font-weight: 550; font-size: .96rem; }
.nav-links a:hover { color: var(--navy); text-decoration: none; }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.5rem; cursor: pointer; color: var(--navy); }

@media (max-width: 860px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; gap: 16px;
    position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; padding: 22px 24px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }
}

/* ---------- Hero ---------- */
.hero { padding: 96px 0 80px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero .pill {
  display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 600;
  background: rgba(24,194,168,.12); color: var(--teal); border: 1px solid rgba(24,194,168,.3);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 span.grad {
  background: linear-gradient(100deg, var(--teal), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.hero-stats { display: flex; gap: 34px; margin-top: 42px; flex-wrap: wrap; }
.hero-stats .num { font-size: 1.8rem; font-weight: 800; color: #fff; }
.hero-stats .lbl { font-size: .85rem; color: #aab4d4; }

@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- Code / terminal card ---------- */
.code-card {
  background: #0a1130; border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); overflow: hidden; font-family: var(--mono); font-size: .86rem;
}
.code-head { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
.code-head .dot { width: 11px; height: 11px; border-radius: 50%; }
.code-head .dot.r { background: #ff5f57; } .code-head .dot.y { background: #febc2e; } .code-head .dot.g { background: #28c840; }
.code-head .file { margin-left: 10px; color: #8893bd; font-size: .8rem; }
.code-body { padding: 18px 20px; line-height: 1.7; color: #cdd6f4; overflow-x: auto; }
.code-body .c { color: #6b7bb0; }
.code-body .k { color: #7aa2ff; }
.code-body .s { color: #9ae6b4; }
.code-body .n { color: #f6c177; }
.code-body .p { color: #c4a7e7; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #d3dbf0; }
.card .ico {
  width: 46px; height: 46px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(24,194,168,.16), rgba(91,140,255,.16));
  font-size: 1.4rem; margin-bottom: 16px;
}
.card h3 { margin-bottom: 8px; }
.card p { font-size: .95rem; margin: 0; }

/* feature row with check */
.feature { display: flex; gap: 14px; align-items: flex-start; }
.feature .chk {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%;
  background: rgba(24,194,168,.15); color: var(--teal-dark);
  display: grid; place-items: center; font-weight: 800; font-size: .9rem; margin-top: 2px;
}
.feature h4 { margin: 0 0 4px; color: var(--navy); font-size: 1.05rem; }
.feature p { margin: 0; font-size: .94rem; }

/* ---------- Extractor catalog ---------- */
.cat-toolbar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 36px; }
.chip {
  border: 1px solid var(--line); background: #fff; color: var(--slate);
  padding: 8px 16px; border-radius: 999px; font-size: .9rem; font-weight: 550; cursor: pointer;
  transition: all .12s ease;
}
.chip:hover { border-color: var(--teal); color: var(--teal-dark); }
.chip.active { background: var(--navy); color: #fff; border-color: var(--navy); }

.ex-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.ex-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #d3dbf0; }
.ex-card .top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.ex-card .ico { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center;
  font-size: 1.25rem; background: linear-gradient(135deg, rgba(24,194,168,.16), rgba(91,140,255,.16)); }
.ex-card h3 { font-size: 1.08rem; margin: 0; }
.ex-card .desc { font-size: .92rem; color: var(--slate); flex: 1; margin: 0 0 16px; }
.ex-card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.ex-card .tag {
  font-size: .72rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase;
  color: var(--indigo); background: rgba(42,58,124,.08); padding: 3px 9px; border-radius: 6px;
}
.ex-card .foot { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 14px; }
.ex-card .foot .price { font-weight: 700; color: var(--navy); font-size: .95rem; }
.ex-card .foot .price small { font-weight: 500; color: var(--muted); }
.badge-mcp { font-size: .68rem; font-weight: 700; color: var(--teal-dark); background: rgba(24,194,168,.12);
  border: 1px solid rgba(24,194,168,.3); padding: 2px 8px; border-radius: 6px; letter-spacing: .04em; }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: stretch; }
@media (max-width: 920px) { .price-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }
.plan {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px;
  display: flex; flex-direction: column; box-shadow: var(--shadow-sm); position: relative;
}
.plan.featured { border: 2px solid var(--teal); box-shadow: var(--shadow-lg); transform: translateY(-6px); }
.plan .ribbon {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--teal); color: #06241f; font-weight: 700; font-size: .76rem;
  padding: 5px 16px; border-radius: 999px; letter-spacing: .04em; text-transform: uppercase;
}
.plan h3 { font-size: 1.3rem; margin-bottom: 4px; }
.plan .plan-sub { font-size: .92rem; color: var(--muted); margin-bottom: 20px; min-height: 42px; }
.plan .amount { font-size: 2.7rem; font-weight: 800; color: var(--navy); letter-spacing: -.03em; }
.plan .amount small { font-size: .95rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan .amount-note { font-size: .85rem; color: var(--muted); margin-bottom: 22px; }
.plan ul { list-style: none; margin: 0 0 26px; padding: 0; flex: 1; }
.plan ul li { padding: 9px 0; font-size: .94rem; color: var(--slate); display: flex; gap: 10px; align-items: flex-start; border-bottom: 1px solid #f0f3fa; }
.plan ul li::before { content: "✓"; color: var(--teal-dark); font-weight: 800; }
.plan ul li.off { color: var(--muted); }
.plan ul li.off::before { content: "—"; color: var(--line); }
.plan .btn { width: 100%; justify-content: center; }

/* toggle */
.bill-toggle { display: inline-flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 6px; margin: 0 auto 44px; box-shadow: var(--shadow-sm); }
.bill-toggle button { border: 0; background: none; padding: 9px 20px; border-radius: 999px; font-weight: 600; font-size: .92rem; color: var(--slate); cursor: pointer; }
.bill-toggle button.active { background: var(--navy); color: #fff; }
.bill-toggle .save { color: var(--teal-dark); font-weight: 700; font-size: .82rem; }

/* comparison table */
.cmp { width: 100%; border-collapse: collapse; margin-top: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cmp th, .cmp td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); font-size: .95rem; }
.cmp th { background: var(--bg-soft); font-weight: 700; color: var(--navy); }
.cmp td.y { color: var(--ok); font-weight: 700; }
.cmp td.n { color: var(--muted); }
.cmp tr:last-child td { border-bottom: 0; }
.cmp .col-hi { background: rgba(24,194,168,.05); }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 24px; }
.step { display: flex; gap: 18px; align-items: flex-start; }
.step .n {
  counter-increment: step; flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px;
  background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.1rem;
}
.step .n::before { content: counter(step); }
.step h3 { margin-bottom: 4px; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--teal-dark), var(--accent)); border-radius: 20px; padding: 56px; text-align: center; color: #fff; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.92); }
.cta-band .btn-primary { background: #fff; color: var(--navy); }
.cta-band .btn-primary:hover { background: #eaf7f4; color: var(--navy); }
.cta-band .btn-ghost { color: #fff; border-color: rgba(255,255,255,.5); }

/* ---------- Logos / trust ---------- */
.trust-row { display: flex; flex-wrap: wrap; gap: 14px 40px; align-items: center; justify-content: center; opacity: .8; }
.trust-row span { font-weight: 700; color: var(--muted); font-size: 1.05rem; letter-spacing: .02em; }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; margin: 0 auto; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px 22px; margin-bottom: 14px; background: #fff; }
.faq summary { cursor: pointer; font-weight: 650; color: var(--navy); padding: 16px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--teal-dark); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 18px; margin: 0; }

/* ---------- Forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow-md); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .9rem; color: var(--navy); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: .96rem; color: var(--ink); background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(24,194,168,.15); }
.field textarea { resize: vertical; min-height: 120px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #aab4d4; padding: 64px 0 32px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 16px; letter-spacing: .02em; }
.site-footer a { color: #aab4d4; display: block; padding: 5px 0; font-size: .92rem; }
.site-footer a:hover { color: var(--teal); text-decoration: none; }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 44px; padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .86rem; color: #7e89ac; }

/* ---------- Misc ---------- */
.tag-inline { display: inline-block; font-size: .78rem; font-weight: 700; color: var(--teal-dark);
  background: rgba(24,194,168,.12); padding: 3px 10px; border-radius: 6px; }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
hr.soft { border: 0; border-top: 1px solid var(--line); margin: 0; }
.kicker-num { font-size: 2.6rem; font-weight: 800; color: var(--teal-dark); letter-spacing: -.02em; }
