/* NexGen modern pages (home + marketing pages), stage rebuild 2026-11-18.
   Body styles only: tokens, header, footer and sign-in dialog are in nge-chrome.css.
   Never loaded on Bootstrap (legacy) pages, so plain class names are safe here. */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px; line-height: 1.6; color: var(--text); background: #fff;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
h1, h2, h3, h4, h6 { color: var(--ink); line-height: 1.15; margin: 0; letter-spacing: -.02em; }
a { color: var(--navy-2); }
img { max-width: 100%; height: auto; display: block; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }
:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 2px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; font-size: 15px; line-height: 1; text-decoration: none; white-space: nowrap;
  padding: 12px 20px; border-radius: 12px; border: 1.5px solid transparent; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-lg { padding: 16px 26px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn-gold { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: var(--gold-ink); box-shadow: 0 10px 24px -10px rgba(212, 167, 44, .8); }
.btn-gold:hover { box-shadow: 0 16px 30px -10px rgba(212, 167, 44, .9); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-2); }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: var(--bg-soft); transform: none; }
.btn-outline { background: #fff; color: var(--navy); border-color: #cdd6e6; }
.btn-outline:hover { border-color: var(--navy); }
.btn-light { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-light:hover { background: rgba(255, 255, 255, .2); }
.btn[disabled] { opacity: .65; cursor: wait; transform: none; }

/* ---------- provider hero ---------- */
.provider-hero { position: relative; padding: 56px 0 0; text-align: center; overflow: hidden; }
.provider-in { max-width: 940px; margin: 0 auto; }
.provider-hero h1, .provider-hero h2 { font-size: clamp(34px, 4.6vw, 54px); font-weight: 800; letter-spacing: -.035em; margin: 14px 0 14px; }
.provider-hero .lead { max-width: 640px; margin: 0 auto 40px; }
.provider-hero.provider-second { padding: 40px 0 56px; }
.offerings { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.offering {
  display: flex; flex-direction: column; align-items: flex-start; text-align: left;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.offering:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d2dbea; }
.offering .area-ic { margin-bottom: 14px; }
.offering h3 { font-size: 17px; margin: 0 0 6px; }
.offering p { font-size: 14px; color: var(--muted); margin: 0 0 auto; padding-bottom: 14px; }
.offering .link-arrow { margin-top: 0; font-size: 13.5px; }
.provider-divider { padding: 48px 0 0; text-align: center; }
.provider-divider .kicker { margin-bottom: 6px; }
.provider-divider h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; margin: 10px 0 0; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 64px 0 40px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(600px 400px at 85% 10%, rgba(240, 201, 85, .28), transparent 70%),
    radial-gradient(700px 500px at 10% 0%, rgba(42, 74, 138, .16), transparent 70%),
    radial-gradient(800px 600px at 70% 100%, rgba(29, 55, 104, .10), transparent 70%),
    linear-gradient(180deg, #f8faff, #fff);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(15, 35, 80, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(15, 35, 80, .05) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
}
.hero-in { display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--navy-2);
  background: #fff; border: 1px solid var(--line); padding: 7px 14px; border-radius: 999px; box-shadow: var(--shadow);
}
.pill i { color: var(--gold); }
.hero h1 { font-size: clamp(36px, 4.8vw, 58px); font-weight: 800; margin: 20px 0 18px; letter-spacing: -.035em; }
.grad { background: linear-gradient(100deg, var(--navy-3) 0%, var(--gold) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); max-width: 540px; margin: 0 0 28px; }
.lead-short { margin-bottom: 14px; }
.lead-pts { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; font-size: clamp(16px, 1.4vw, 17.5px); font-weight: 600; color: var(--ink); }
.lead-pts li { display: flex; align-items: center; gap: 12px; }
.lead-pts i { flex: none; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-size: 14px; background: #fff7dc; color: var(--gold-ink); border: 1px solid #f1e2b0; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; font-weight: 600; color: var(--muted); }
.ticks i { color: var(--green); margin-right: 4px; }

/* field to finish: one step per stage of a job (index.py ftf_steps) */
.ftf2 { position: relative; margin: 48px 0 0; background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: 22px; padding: 22px 28px 18px; box-shadow: var(--shadow); }
.ftf2::before { content: ""; position: absolute; inset: -1px; border-radius: 21px; padding: 1px; pointer-events: none;
  background: linear-gradient(120deg, var(--gold-2), transparent 35%, transparent 65%, var(--navy-3));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.ftf2-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.ftf2-end { display: inline-flex; align-items: center; gap: 7px; font-weight: 800; font-size: 13.5px; color: var(--navy); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; white-space: nowrap; }
.ftf2-end i { color: var(--gold); }
.ftf2-end.fin i { color: var(--green); }
.ftf2-mid { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-align: center; }
.ftf2-rail { position: relative; }
.ftf2-rail::before, .ftf2-fill { content: ""; position: absolute; top: 27px; left: calc(50% / var(--n)); height: 4px; border-radius: 4px; }
.ftf2-rail::before { right: calc(50% / var(--n)); background: #e3e8f1; }
.ftf2-fill { width: calc((100% - 100% / var(--n)) * var(--p, 0)); background: linear-gradient(90deg, var(--gold-2), var(--gold)); transition: width .6s ease; z-index: 0; }
.ftf2-track { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(var(--n), 1fr); list-style: none; padding: 0; margin: 0; }
.ftf2-track button { font: inherit; display: flex; flex-direction: column; align-items: center; gap: 7px; width: 100%; background: none; border: 0; padding: 0; cursor: pointer; color: var(--muted); }
.ftf2-track .ic { position: relative; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font-size: 21px; background: #fff;
  border: 2px solid #d6deea; color: var(--navy-2); transition: transform .25s, background .25s, border-color .25s, box-shadow .25s, color .25s; }
.ftf2-track .done .ic { border-color: var(--gold); }
.ftf2-track .on .ic { background: linear-gradient(135deg, var(--gold-2), var(--gold)); border-color: var(--gold); color: var(--gold-ink); transform: scale(1.12);
  box-shadow: 0 0 0 6px rgba(240, 201, 85, .25), 0 10px 20px -8px rgba(212, 167, 44, .8); }
.ftf2-track .ic .dot { position: absolute; top: -3px; right: -3px; border: 2px solid #fff; }
.ftf2-track em { font-style: normal; font-size: 13.5px; font-weight: 700; line-height: 1.25; text-align: center; }
.ftf2-track .on em { color: var(--ink); }
.ftf2 .dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; background: var(--navy-3); }
.ftf2 .dot.ai { background: linear-gradient(135deg, #a78bfa, #6d28d9); }
.ftf2 .dot.auto { background: var(--green); }
.ftf-cap { max-width: 760px; margin: 18px auto 0; text-align: center; padding: 14px 20px; border-radius: 14px; background: var(--bg-soft); border: 1px solid var(--line); animation: ftf-in .35s ease-out; min-height: 84px; }
@keyframes ftf-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.ftf-cap b { display: inline; font-size: 16.5px; color: var(--ink); margin-left: 6px; }
.ftf-cap p { margin: 6px 0 0; font-size: 15.5px; line-height: 1.5; color: var(--text); }
.ftf-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; border-radius: 999px; padding: 3px 9px; color: #fff; background: var(--navy-3); vertical-align: 2px; }
.ftf-tag.ai { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.ftf-tag.auto { background: var(--green); }
.ftf2-key { display: flex; gap: 16px; justify-content: center; margin: 10px 2px 0; font-size: 12px; font-weight: 700; color: var(--muted); }
.ftf2-key span { display: inline-flex; align-items: center; gap: 6px; }
.ftf2-key .dot { width: 9px; height: 9px; }
/* step screenshots (sample-data shots in assets/images/ftf/) */
.ftf-cap.has-shot { max-width: 980px; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px; align-items: center; text-align: left; padding: 14px; }
.ftf-cap[hidden] { display: none; }
.ftf-shot { margin: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #fff; box-shadow: 0 14px 30px -18px rgba(15, 35, 80, .55); }
.ftf-shot img { display: block; width: 100%; height: 300px; object-fit: contain; background: #f6f8fc; }
.ftf-cap.has-shot .ftf-txt { padding-right: 8px; }
.ftf-cap.has-shot b { display: block; margin: 8px 0 0; }

/* hero product mock */
.hero-visual { position: relative; padding: 24px 0; }
.app {
  background: #fff; border-radius: 20px; border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  overflow: hidden; transform: perspective(1400px) rotateY(-6deg) rotateX(3deg); transform-origin: left center;
}
.app-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: var(--navy); }
.app-bar span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .25); }
.app-bar span:first-child { background: #f87171; } .app-bar span:nth-child(2) { background: #fbbf24; } .app-bar span:nth-child(3) { background: #34d399; }
.app-bar em { font-style: normal; color: #cfd9ee; font-size: 12.5px; font-weight: 600; margin-left: 10px; }
.board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 14px; background: var(--bg-soft); }
.col h6 { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 2px 2px 8px; display: flex; justify-content: space-between; }
.col h6 b { background: #e6ebf4; color: var(--navy-2); border-radius: 6px; padding: 1px 6px; font-size: 10.5px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; margin-bottom: 8px;
  font-size: 12px; line-height: 1.35; color: var(--ink); position: relative;
}
.card strong { display: block; font-size: 11px; color: var(--navy-3); }
.card small { display: block; color: var(--muted); font-size: 10.5px; margin-top: 2px; }
.card.hl { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(240, 201, 85, .3); }
.card.done { opacity: .85; }
.tag { display: inline-block; font-style: normal; font-size: 9.5px; font-weight: 700; border-radius: 5px; padding: 2px 6px; margin-top: 6px; }
.t1 { background: #e0ebff; color: #1e4fb3; } .t2 { background: #fdf0c8; color: #7a5800; } .t3 { background: #e9e3ff; color: #5b3fc4; } .t4 { background: #dcfce7; color: #157a3a; }
.float {
  position: absolute; display: flex; gap: 10px; align-items: center; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 12px 14px; box-shadow: var(--shadow-lg); font-size: 13px; animation: bob 6s ease-in-out infinite;
}
.float i { font-size: 20px; }
.float b { display: block; color: var(--ink); font-size: 13px; }
.float small { color: var(--muted); font-size: 11.5px; }
.f1 { top: -6px; right: -14px; } .f1 i { color: var(--green); }
.f2 { bottom: -26px; left: -22px; animation-delay: -3s; } .f2 i { color: var(--gold); }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 24px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.stats div { padding: 22px 16px; text-align: center; }
.stats div + div { border-left: 1px solid var(--line); }
.stats b { display: block; font-size: 30px; font-weight: 800; color: var(--navy); letter-spacing: -.02em; }
.stats span { font-size: 14px; color: var(--muted); font-weight: 600; }

/* ---------- sections ---------- */
.sec { padding: 96px 0; }
.sec.soft { background: var(--bg-soft); }
.sec.dark { background: radial-gradient(900px 500px at 90% 0%, rgba(240, 201, 85, .14), transparent 60%), var(--navy); color: #c7d2e8; }
.sec.dark h2, .sec.dark h3 { color: #fff; }
.head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.head h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; margin: 12px 0 14px; }
.head p { font-size: 18px; color: var(--muted); margin: 0; }
.sec.dark .head p { color: #b5c2dc; }
.kicker { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }

/* how it works */
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; position: relative; }
.flow::before {
  content: ""; position: absolute; top: 34px; left: 10%; right: 10%; height: 2px;
  background: linear-gradient(90deg, rgba(240, 201, 85, .1), rgba(240, 201, 85, .7), rgba(240, 201, 85, .1));
}
.flow li { text-align: center; position: relative; }
.flow-ic {
  position: relative; display: inline-grid; place-items: center; width: 68px; height: 68px; border-radius: 20px;
  background: linear-gradient(145deg, #23407a, #142b5c); border: 1px solid rgba(255, 255, 255, .14);
  color: var(--gold-2); font-size: 24px; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .6); margin-bottom: 18px;
}
.flow-ic em { position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; border-radius: 50%; background: var(--gold-2); color: var(--gold-ink); font-style: normal; font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.flow h3 { font-size: 18px; margin-bottom: 6px; }
.flow p { font-size: 14.5px; margin: 0; }

/* features */
.grid-areas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.area {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.area:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d2dbea; }
.area-hl { background: linear-gradient(150deg, #fffdf4, #fff 60%); border-color: #f1e2b0; }
.area-ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: #eef2fa; color: var(--navy-2); font-size: 19px; margin-bottom: 16px; }
.area-hl .area-ic { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: var(--gold-ink); }
.area h3 { font-size: 19px; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.area h3 small { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.area p { font-size: 14.5px; color: var(--muted); margin: 8px 0 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { font-size: 12px; font-weight: 600; color: var(--navy-2); background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; }
.link-arrow { display: inline-flex; gap: 8px; align-items: center; margin-top: 34px; font-weight: 700; text-decoration: none; }
.link-arrow i { transition: transform .2s; }
.link-arrow:hover i { transform: translateX(4px); }

/* compare */
.compare {
  display: grid; grid-template-columns: 1fr 1fr; max-width: 920px; margin: 0 auto; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.compare > div { padding: 16px 24px; font-size: 15.5px; border-top: 1px solid var(--line); }
.compare .cmp-h { border-top: 0; font-weight: 800; font-size: 15px; padding: 18px 24px; }
.cmp-old { color: var(--muted); }
.cmp-new { color: var(--ink); font-weight: 600; background: #fbfcff; border-left: 1px solid var(--line); }
.cmp-h.cmp-old { background: #fafafa; } .cmp-h.cmp-old i { color: #dc2626; margin-right: 6px; }
.cmp-h.cmp-new { background: var(--navy); color: #fff; border-left: 0; } .cmp-h.cmp-new i { color: var(--gold-2); margin-right: 6px; }

/* pricing */
.bill-toggle { display: flex; width: max-content; margin: -24px auto 36px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.bill-toggle button { font: inherit; font-weight: 700; font-size: 14px; border: 0; background: transparent; color: var(--muted); padding: 9px 18px; border-radius: 999px; cursor: pointer; }
.bill-toggle button.on { background: #fff; color: var(--navy); box-shadow: var(--shadow); }
.bill-toggle em { font-style: normal; font-size: 11px; color: var(--green); margin-left: 4px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.plan { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 30px 26px; }
.plan.popular { border: 2px solid var(--navy); box-shadow: var(--shadow-lg); transform: translateY(-10px); }
.badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--navy); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 14px; border-radius: 999px; white-space: nowrap; }
.plan h3 { font-size: 22px; }
.plan-d { font-size: 14px; color: var(--muted); min-height: 44px; margin: 6px 0 16px; }
.price b { font-size: 46px; font-weight: 800; color: var(--ink); letter-spacing: -.03em; }
.price span { color: var(--muted); font-weight: 600; margin-left: 2px; }
.price-note { font-size: 13px; color: var(--muted); margin: 2px 0 20px; min-height: 20px; }
.plan-meta { list-style: none; padding: 18px 0 0; margin: 20px 0 0; border-top: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--ink); }
.plan-meta li { padding: 3px 0; }
.plan-lead { font-size: 13px; font-weight: 700; color: var(--muted); margin: 16px 0 8px; text-transform: uppercase; letter-spacing: .05em; }
.plan-mods { list-style: none; padding: 0; margin: 0; font-size: 14.5px; }
.plan-mods li { padding: 4px 0; }
.plan-mods i { color: var(--green); margin-right: 8px; font-size: 12px; }
.plan-mods .more { color: var(--muted); padding-left: 20px; }
.save { display: none; margin-top: 16px; font-size: 13px; font-weight: 700; color: var(--green); background: #ecfdf3; border-radius: 8px; padding: 6px 10px; }
.yearly .save { display: inline-block; }
.fine { max-width: 760px; margin: 40px auto 0; text-align: center; font-size: 14px; color: var(--muted); }

/* demo */
.demo { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.demo-copy h2 { font-size: clamp(30px, 3.4vw, 42px); font-weight: 800; margin: 12px 0 14px; }
.demo-copy > p { font-size: 18px; color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 22px 0 28px; }
.checks li { display: flex; gap: 12px; padding: 7px 0; font-weight: 600; color: var(--ink); }
.checks i { flex: none; width: 24px; height: 24px; border-radius: 50%; background: #dcfce7; color: var(--green); display: grid; place-items: center; font-size: 11px; margin-top: 1px; }
.contact-mini { display: flex; flex-wrap: wrap; gap: 10px; }
.contact-mini a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; font-size: 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.demo-card { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 32px; box-shadow: var(--shadow-lg); }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; margin-bottom: 20px; }
.fgrid .full { grid-column: 1 / -1; }
.fgrid label { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink); }
.opt { font-weight: 500; color: var(--muted); }
input, select, textarea {
  display: block; width: 100%; margin-top: 6px; font: inherit; font-size: 16px; font-weight: 500; color: var(--ink);
  background: #fbfcfe; border: 1.5px solid #d6deea; border-radius: 12px; padding: 12px 14px; transition: border-color .15s, box-shadow .15s, background .15s;
}
textarea { resize: vertical; min-height: 92px; }
::placeholder { color: #98a3b8; font-weight: 400; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy-3); background: #fff; box-shadow: 0 0 0 4px rgba(42, 74, 138, .12); }
.form-note { font-size: 13px; color: var(--muted); margin: 12px 0 0; text-align: center; }
.demo-done { text-align: center; padding: 40px 10px; }
.demo-done i { font-size: 48px; color: var(--green); }
.demo-done h3 { font-size: 22px; margin: 14px 0 8px; }

/* faq */
.faq-wrap { max-width: 860px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; margin-bottom: 12px; transition: box-shadow .2s, border-color .2s; }
.faq details[open] { box-shadow: var(--shadow); border-color: #d2dbea; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; font-weight: 700; font-size: 17px; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--bg-soft); display: grid; place-items: center; font-size: 13px; color: var(--navy-2); transition: transform .25s, background .25s; }
.faq details[open] summary i { transform: rotate(45deg); background: var(--gold-2); color: var(--gold-ink); }
.faq details p { margin: 0; padding: 0 24px 22px; color: var(--muted); }

/* closing call-to-action band */
.cta { padding: 0 0 96px; }
.cta-in {
  text-align: center; border-radius: 28px; padding: 64px 32px; color: #c7d2e8; position: relative; overflow: hidden;
  background: radial-gradient(500px 300px at 15% 0%, rgba(240, 201, 85, .35), transparent 70%), radial-gradient(600px 400px at 100% 100%, rgba(42, 74, 138, .9), transparent 70%), var(--navy);
}
.cta-in h2 { color: #fff; font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; }
.cta-in p { font-size: 18px; margin: 12px 0 28px; }
.cta-in .hero-ctas { justify-content: center; }
/* reveal on scroll (only when JS runs) */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; transition-delay: calc(var(--d, 0) * 70ms); }
.js .reveal.in { opacity: 1; transform: none; }
.js .plan.popular.reveal.in { transform: translateY(-10px); }


/* AI add-ons (home) */
.ai { background: radial-gradient(800px 500px at 10% 0%, rgba(240, 201, 85, .16), transparent 60%), radial-gradient(900px 600px at 100% 100%, rgba(42, 74, 138, .7), transparent 60%), #0b1a3f; }
.ai-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 22px; align-items: start; }
.ai-card { position: relative; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); border-radius: 24px; padding: 30px; color: #c7d2e8; }
.ai-card h3 { color: #fff; font-size: 23px; margin: 14px 0 4px; }
.ai-for { color: var(--gold-2); font-weight: 600; font-size: 14.5px; margin: 0 0 16px; }
.ai-ic { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; font-size: 22px; background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: var(--gold-ink); }
.ai-badge { position: absolute; top: 26px; right: 26px; font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 999px; display: inline-flex; gap: 6px; align-items: center; }
.ai-badge.live { background: rgba(22, 163, 74, .16); color: #6ee7a0; }
.ai-badge.live i { font-size: 7px; }
.ai-badge.soon { background: rgba(240, 201, 85, .14); color: var(--gold-2); }
.ai-list { list-style: none; padding: 0; margin: 0 0 20px; }
.ai-list li { display: flex; gap: 10px; padding: 6px 0; font-size: 15px; line-height: 1.55; }
.ai-list i { color: var(--gold-2); margin-top: 5px; font-size: 12px; }
.ai-note { font-size: 14.5px; background: rgba(255, 255, 255, .06); border-radius: 12px; padding: 12px 14px; margin: 0 0 18px; }
.chat { background: #fff; border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow-lg); }
.msg { max-width: 86%; font-size: 13.5px; line-height: 1.45; padding: 10px 13px; border-radius: 14px; color: var(--ink); }
.msg.me { align-self: flex-end; background: var(--navy); color: #fff; border-bottom-right-radius: 4px; }
.msg.bot { align-self: flex-start; background: var(--bg-soft); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg.ok { color: #157a3a; background: #ecfdf3; border-color: #bbf0cf; }
.chat-actions { display: flex; gap: 8px; margin-top: 8px; }
.chat-actions b { background: var(--navy); color: #fff; font-size: 12px; padding: 5px 10px; border-radius: 8px; }
.chat-actions em { font-style: normal; font-size: 12px; padding: 5px 10px; border-radius: 8px; border: 1px solid var(--line); color: var(--muted); }
.ai-foot { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 18px 28px; margin-top: 40px; text-align: center; }
.ai-foot p { margin: 0; font-size: 17px; color: #c7d2e8; }
.ai-foot strong { color: #fff; }

/* ---------- module explainer (nge_modules.py) ---------- */
.chips .mod-chip, .mod-chip { font: inherit; font-size: 12px; font-weight: 600; color: var(--navy-2); background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 999px; padding: 4px 10px; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.chips .mod-chip:hover, .mod-chip:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.mod-link { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: left;
  text-decoration: underline dotted rgba(29, 55, 104, .45); text-underline-offset: 3px; }
.mod-link:hover { color: var(--navy-2); text-decoration-style: solid; }
.stats .stat-btn { font: inherit; width: 100%; background: none; border: 0; padding: 0; cursor: pointer; color: inherit; border-radius: 12px; }
.stats .stat-btn span::after { content: " \2192"; color: var(--gold); }
.stats .stat-btn:hover b { color: var(--navy-3); }
.area .more-mods { display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 700; color: var(--navy-2); }
.ngc-modal.mod-dlg { width: min(620px, calc(100% - 24px)); padding: 30px 30px 24px; text-align: left; max-height: calc(100vh - 32px); overflow-y: auto; }
.mod-dlg .md-area { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; }
.mod-dlg .md-area .area-ic { margin: 0; width: 42px; height: 42px; font-size: 17px; background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: var(--gold-ink); }
.mod-dlg .md-g { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--navy-2); }
.mod-dlg .md-pos { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.ngc.mod-dlg h3, .mod-dlg h3 { text-align: left; font-size: 26px; font-weight: 800; margin: 4px 0 6px; }
.mod-dlg .md-w { font-size: 16px; font-weight: 600; color: var(--ink); margin: 0 0 16px; }
.mod-dlg .md-pts { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; }
.mod-dlg .md-pts li { display: flex; gap: 12px; align-items: flex-start; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; font-size: 15px; color: var(--ink); line-height: 1.45; }
.mod-dlg .md-pts b { flex: none; width: 24px; height: 24px; border-radius: 8px; background: var(--navy); color: var(--gold-2); font-size: 12.5px; display: grid; place-items: center; }
.mod-dlg .md-y { font-size: 14.5px; color: var(--muted); margin: 0 0 12px; padding-left: 12px; border-left: 3px solid var(--gold-2); }
.mod-dlg .mtags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; }
.mod-dlg .mtag { font-size: 12px; font-weight: 700; border-radius: 999px; padding: 4px 10px; background: var(--bg-soft); border: 1px solid var(--line); color: var(--navy-2); }
.mod-dlg .mtag.core { background: var(--navy); border-color: var(--navy); color: #fff; }
.mod-dlg .mtag.add { background: #fffaeb; border-color: #f5e1a4; color: #6b5200; }
.mod-dlg .md-nav { display: flex; justify-content: space-between; gap: 8px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mod-dlg .md-nav button { font: inherit; font-size: 13.5px; font-weight: 700; color: var(--navy-2); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; cursor: pointer; }
.mod-dlg .md-nav button:hover { border-color: var(--navy-2); }
.mod-dlg .md-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.mod-dlg .md-cta .link-arrow { margin: 0; }
.mod-dlg .md-sub { color: var(--muted); margin: 0 0 18px; }
.mod-dlg .md-grp { margin: 0 0 16px; }
.mod-dlg .md-grp h4 { font-size: 14px; font-weight: 800; color: var(--ink); margin: 0 0 8px; display: flex; gap: 8px; align-items: center; }
.mod-dlg .md-grp h4 i { color: var(--gold); }
.mod-dlg .md-grp .mod-chip { font-size: 13px; padding: 6px 12px; }
@media (max-width: 560px) { .ngc-modal.mod-dlg { padding: 24px 18px 18px; } .mod-dlg .md-nav .md-all-btn { display: none; } }

/* ---------- inner pages ---------- */
.phero { position: relative; overflow: hidden; padding: 72px 0 56px; text-align: center; }
.phero-in { max-width: 860px; }
.phero h1 { font-size: clamp(34px, 4.6vw, 54px); font-weight: 800; letter-spacing: -.035em; margin: 14px 0 16px; }
.phero .lead { margin: 0 auto 26px; max-width: 680px; }
.phero .hero-ctas { justify-content: center; }
.phero.left { text-align: left; }
.phero.left .phero-in { margin: 0; }
.phero.left .lead { margin-left: 0; }
.phero.left .hero-ctas { justify-content: flex-start; }
.crumbs { font-size: 13.5px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.crumbs a { text-decoration: none; }

/* readable long-form text: policies, blog posts, about */
.prose { max-width: 760px; margin: 0 auto; font-size: 17px; line-height: 1.75; color: var(--text); }
.prose h2 { font-size: 28px; font-weight: 800; margin: 48px 0 14px; }
.prose h3 { font-size: 21px; font-weight: 700; margin: 34px 0 10px; }
.prose h4 { font-size: 17px; font-weight: 700; margin: 26px 0 8px; }
.prose p, .prose ul, .prose ol { margin: 0 0 18px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--gold); }
.prose a { color: var(--navy-2); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--ink); }
.prose blockquote { margin: 26px 0; padding: 18px 22px; border-left: 4px solid var(--gold); background: var(--bg-soft); border-radius: 0 14px 14px 0; color: var(--ink); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.prose > :first-child { margin-top: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 22px; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--ink); background: var(--bg-soft); }
.updated { font-size: 14px; color: var(--muted); margin: 0 0 30px; }
.toc { position: sticky; top: 96px; align-self: start; font-size: 14px; border-left: 2px solid var(--line); padding-left: 16px; }
.toc b { display: block; color: var(--ink); margin-bottom: 8px; }
.toc a { display: block; color: var(--muted); text-decoration: none; padding: 4px 0; }
.toc a:hover { color: var(--navy); }
.with-toc { display: grid; grid-template-columns: 220px 1fr; gap: 56px; max-width: 1040px; margin: 0 auto; }
.with-toc .prose { margin: 0; }

/* cards and grids */
.grid-2, .grid-3, .grid-4 { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: transform .2s, box-shadow .2s, border-color .2s; }
a.tile { display: block; text-decoration: none; color: inherit; }
a.tile:hover, .tile.hover:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d2dbea; }
.tile h3 { font-size: 19px; margin: 0 0 8px; }
.tile p { font-size: 15px; color: var(--muted); margin: 0; }
.tile .area-ic { margin-bottom: 16px; }
.tile.soft { background: var(--bg-soft); }
.tile.dark { background: var(--navy); border-color: var(--navy); color: #c7d2e8; }
.tile.dark h3 { color: #fff; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.top { align-items: start; }
.split h2 { font-size: clamp(28px, 3.2vw, 40px); font-weight: 800; margin: 12px 0 14px; }
.split p { font-size: 17px; color: var(--muted); }
.num-list { list-style: none; padding: 0; margin: 0; counter-reset: n; }
.num-list li { counter-increment: n; position: relative; padding: 0 0 22px 56px; }
.num-list li::before { content: counter(n); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 12px; background: var(--navy); color: var(--gold-2); font-weight: 800; display: grid; place-items: center; }
.num-list h3 { font-size: 18px; margin: 6px 0 4px; }
.num-list p { margin: 0; color: var(--muted); font-size: 15.5px; }
.note { background: #fffaeb; border: 1px solid #f5e1a4; border-radius: 14px; padding: 16px 18px; font-size: 15px; color: #5c4600; }
.note.info { background: #eef4ff; border-color: #cfdcf7; color: #1e3a70; }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* blog */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card .thumb { aspect-ratio: 16 / 9; background: linear-gradient(135deg, #1d3768, #2a4a8a 60%, #d4a72c); display: grid; place-items: center; color: rgba(255, 255, 255, .9); font-size: 34px; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .body { padding: 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card .meta { font-size: 12.5px; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: .06em; }
.post-card h3 { font-size: 19px; }
.post-card p { font-size: 15px; color: var(--muted); margin: 0; }
.post-card .more { margin-top: auto; padding-top: 8px; font-weight: 700; color: var(--navy-2); font-size: 14.5px; }

/* simple data tables on modern pages */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { background: var(--bg-soft); color: var(--ink); font-weight: 700; font-size: 14px; }
.table tr:last-child td { border-bottom: 0; }
.table td.c, .table th.c { text-align: center; }
.yes { color: var(--green); } .no { color: #c0c7d4; }

/* status pages (thank you, 404) */
.status { text-align: center; padding: 110px 0; }
.status .big { width: 84px; height: 84px; border-radius: 26px; margin: 0 auto 24px; display: grid; place-items: center; font-size: 36px; background: #dcfce7; color: var(--green); }
.status .big.warn { background: #fff3d1; color: var(--gold); }
.status h1 { font-size: clamp(32px, 4vw, 48px); font-weight: 800; margin-bottom: 12px; }
.status p { font-size: 18px; color: var(--muted); max-width: 560px; margin: 0 auto 28px; }
.status .hero-ctas { justify-content: center; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .offerings, .grid-4, .posts { grid-template-columns: repeat(2, 1fr); }
  .with-toc { grid-template-columns: 1fr; gap: 0; }
  .toc { display: none; }
  .grid-areas { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .flow::before { display: none; }
}
@media (max-width: 960px) {
  .ai-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .hero { padding-top: 40px; }
  .hero-in, .demo { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 640px; margin: 0 auto; width: 100%; }
  .app { transform: none; }
  .plans { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .plan.popular, .js .plan.popular.reveal.in { transform: none; }
}
@media (max-width: 640px) {
  .ftf2 { padding: 14px 12px 12px; margin-top: 32px; }
  .ftf-cap { text-align: left; }
  .ftf2-mid { display: none; }
  .ftf2-track .ic { width: 38px; height: 38px; font-size: 14px; }
  .ftf2-rail::before, .ftf2-fill { top: 19px; }
  .ftf-cap.has-shot { grid-template-columns: 1fr; gap: 12px; }
  .ftf-shot img { height: auto; max-height: 220px; }
  .ftf2-track em { display: none; }
  .ftf2-key { justify-content: flex-start; flex-wrap: wrap; }
  .ai-card { padding: 22px; }
  .ai-badge { position: static; margin-bottom: 12px; }
  .offerings, .grid-2, .grid-3, .grid-4, .posts { grid-template-columns: 1fr; }
  .provider-hero { padding-top: 36px; }
  .provider-hero h1 { margin-bottom: 10px; }
  .phero { padding: 48px 0 36px; }
  .prose { font-size: 16px; }
  .status { padding: 72px 0; }
  .wrap { padding: 0 18px; }
  .sec { padding: 68px 0; }
  .head { margin-bottom: 36px; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .board { grid-template-columns: repeat(2, 1fr); }
  .board .col:nth-child(n+3) { display: none; }
  .f1 { right: -4px; } .f2 { left: -4px; }
  .stats { grid-template-columns: 1fr 1fr; margin-top: 36px; }
  .stats div:nth-child(3) { border-left: 0; }
  .stats div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .flow { grid-template-columns: 1fr; text-align: left; }
  .flow li { display: grid; grid-template-columns: 68px 1fr; column-gap: 18px; text-align: left; }
  .flow-ic { grid-row: span 2; margin: 0; }
  .flow h3 { align-self: end; }
  .grid-areas { grid-template-columns: 1fr; }
  .compare { grid-template-columns: 1fr; }
  .compare .cmp-h { display: none; }
  .compare .cmp-old { border-top: 1px solid var(--line); padding-bottom: 6px; text-decoration: line-through; text-decoration-color: rgba(220, 38, 38, .5); }
  .compare .cmp-new { border-top: 0; border-left: 0; padding-top: 0; background: #fff; }
  .compare .cmp-new::before { content: "\2192  "; color: var(--gold); font-weight: 800; }
  .compare > div:nth-child(3) { border-top: 0; }
  .fgrid { grid-template-columns: 1fr; }
  .demo-card { padding: 22px; }
  .cta-in { padding: 48px 22px; border-radius: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
