/* =========================================================
   meldra.ai — site styles
   Brand: cobalt #0b4fd0 · signal lime #e2ff3b · night #070d1a
   ========================================================= */
:root {
    --ink: #0b1220;
    --ink-2: #3b4658;
    --ink-3: #6b7588;
    --paper: #ffffff;
    --soft: #f5f7fb;
    --soft-2: #eef2f8;
    --line: #e3e8f0;
    --cobalt: #0b4fd0;
    --cobalt-deep: #08389a;
    --cobalt-tint: #eaf1ff;
    --lime: #e2ff3b;
    --night: #070d1a;
    --night-2: #0d1628;
    --night-3: #14203a;
    --night-line: #22304d;
    --night-text: #a7b3c9;
    --ok: #12a36f;
    --warn: #e07b12;
    --radius: 12px;
    --radius-lg: 18px;
    --max: 1240px;
    --sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
    --shadow: 0 1px 2px rgba(11,18,32,.06), 0 12px 32px -12px rgba(11,18,32,.18);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 140px; -webkit-text-size-adjust: 100%; }
body { font-family: var(--sans); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
ul { list-style: none; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 28px; }
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.2vw, 4.25rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); letter-spacing: -0.03em; }
h3 { font-size: 1.3rem; letter-spacing: -0.015em; line-height: 1.25; }
p { text-wrap: pretty; }
.nw { white-space: nowrap; }

.kicker { display: inline-block; font-family: var(--mono); font-size: 12.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--cobalt); margin-bottom: 18px; }
.dark .kicker, .hero .kicker, .page-hero:not(.light) .kicker, .ptile.dk .kicker { color: var(--lime); }
.lede { font-size: 1.2rem; color: var(--ink-2); max-width: 40em; }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 24px; border-radius: 8px; font-weight: 600; font-size: 15.5px; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background .18s, color .18s, border-color .18s; white-space: nowrap; }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14.5px; }
.btn-primary { background: var(--cobalt); color: #fff; }
.btn-primary:hover { background: var(--cobalt-deep); }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-lime:hover { background: #f0ff8a; }
.btn-outline { border-color: #c9d2e0; color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--ink); }
.btn-ghost-light { border-color: rgba(255,255,255,.3); color: #fff; }
.btn-ghost-light:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.arrow { transition: transform .18s; }
.btn:hover .arrow, .tlink:hover .arrow { transform: translateX(3px); }
.tlink { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--cobalt); text-decoration: none; font-size: 15.5px; }
.tlink:hover { text-decoration: underline; text-underline-offset: 4px; }
.dark .tlink, .ptile.dk .tlink { color: var(--lime); }

/* ---------- Announcement ---------- */
.announce { background: var(--night); color: #dbe3f0; font-size: 14px; text-align: center; padding: 10px 44px; position: relative; }
.announce a { color: var(--lime); font-weight: 600; text-decoration: none; margin-left: 8px; white-space: nowrap; }
.announce a:hover { text-decoration: underline; }
.announce .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); margin-right: 10px; vertical-align: middle; box-shadow: 0 0 0 4px rgba(226,255,59,.15); }
.announce-close { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: #8a97ad; cursor: pointer; width: 28px; height: 28px; font-size: 20px; line-height: 1; }
.announce.hidden { display: none; }

/* ---------- Header / mega menu ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; height: 76px; gap: 36px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 1.5rem; letter-spacing: -0.045em; flex: none; }
.brand svg { width: 34px; height: 34px; }
.mainnav { display: flex; align-items: stretch; height: 100%; flex: 1; }
.mainnav > ul { display: flex; align-items: stretch; gap: 2px; }
.mainnav > ul > li { display: flex; align-items: center; }
.nav-trigger { display: inline-flex; align-items: center; gap: 6px; height: 100%; padding: 0 14px; background: none; border: 0; cursor: pointer; font-size: 15.5px; font-weight: 500; color: var(--ink); text-decoration: none; position: relative; }
.nav-trigger::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 3px; background: var(--cobalt); transform: scaleX(0); transition: transform .2s; }
.nav-trigger:hover::after, .nav-item.open .nav-trigger::after, .nav-trigger.current::after { transform: scaleX(1); }
.nav-trigger .chev { width: 10px; height: 10px; transition: transform .2s; }
.nav-item.open .chev { transform: rotate(180deg); }
.header-cta { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.header-cta .signin { font-size: 15px; font-weight: 500; text-decoration: none; color: var(--ink-2); padding: 0 10px; white-space: nowrap; }
.header-cta .signin:hover { color: var(--ink); }

.mega { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 24px 48px -16px rgba(11,18,32,.22); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s, transform .18s, visibility 0s .18s; }
.nav-item.open .mega { opacity: 1; visibility: visible; transform: none; transition: opacity .18s, transform .18s; }
.mega-inner { display: grid; grid-template-columns: 1fr 1fr 1.1fr; padding: 32px 28px 36px; max-width: var(--max); margin: 0 auto; }
.mega-inner.cols-3 { grid-template-columns: 1fr 1fr 1fr 1.1fr; }
.mega-col { padding: 0 28px; }
.mega-col + .mega-col { border-left: 1px solid var(--line); }
.mega-col h5 { font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.mega-col h5 i { width: 8px; height: 8px; border-radius: 2px; background: var(--cobalt); display: inline-block; }
.mega-col h5 i.dk { background: var(--night); box-shadow: inset 0 0 0 2px var(--lime); }
.mega-col a { display: block; padding: 9px 12px; margin: 0 -12px; border-radius: 8px; text-decoration: none; }
.mega-col a:hover { background: var(--soft); }
.mega-col a strong { display: block; font-weight: 600; font-size: 15.5px; color: var(--ink); }
.mega-col a span { display: block; font-size: 13.5px; color: var(--ink-3); line-height: 1.45; margin-top: 2px; }
.mega-feature { background: var(--night); color: #fff; border-radius: var(--radius-lg); padding: 26px; margin-left: 28px; display: flex; flex-direction: column; text-decoration: none; }
.mega-feature .kicker { margin-bottom: 10px; color: var(--lime); }
.mega-feature strong { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; }
.mega-feature p { color: var(--night-text); font-size: 14.5px; margin: 8px 0 18px; }
.mega-feature .tlink { margin-top: auto; color: var(--lime); }

.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; color: var(--ink); }

/* ---------- Hero ---------- */
.hero, .page-hero { background: var(--night); color: #fff; position: relative; overflow: hidden; isolation: isolate; padding: 0; }
.hero::before, .page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(900px 520px at 85% 15%, rgba(11,79,208,.5), transparent 60%), radial-gradient(600px 400px at 0% 100%, rgba(226,255,59,.06), transparent 60%); }
.hero::after, .page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 56px 56px; mask-image: linear-gradient(180deg, #000, transparent 90%); -webkit-mask-image: linear-gradient(180deg, #000, transparent 90%); }
.hero .wrap { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; padding-top: 92px; padding-bottom: 100px; }
.hero h1 { margin-bottom: 24px; }
.hero h1 em, .page-hero h1 em { font-style: normal; color: var(--lime); }
.hero .lede, .page-hero:not(.light) .lede { color: var(--night-text); }
.hero .lede { margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 14px; color: #8693ab; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 16px; height: 16px; color: var(--lime); }

.page-hero.light { background: var(--soft); color: var(--ink); border-bottom: 1px solid var(--line); }
.page-hero.light::before { background: radial-gradient(800px 420px at 90% 0%, rgba(11,79,208,.10), transparent 60%); }
.page-hero.light::after { background-image: linear-gradient(rgba(11,18,32,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(11,18,32,.04) 1px, transparent 1px); }
.page-hero .wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; padding-top: 80px; padding-bottom: 88px; }
.page-hero.simple .wrap { grid-template-columns: minmax(0, 860px); padding-bottom: 76px; }
.page-hero h1 { font-size: clamp(2.4rem, 4.6vw, 3.75rem); margin-bottom: 22px; }
.page-hero .lede { margin-bottom: 32px; }
.page-hero.simple .lede { margin-bottom: 0; }
.crumb { font-family: var(--mono); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 18px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; color: #8693ab; }
.page-hero.light .crumb { color: var(--ink-3); }
.status { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status.live { background: #e3f6ee; color: #0b7a52; }
.status.partner { background: var(--cobalt-tint); color: var(--cobalt); }
.status.partner.dk { background: rgba(226,255,59,.12); color: var(--lime); }

/* Sub navigation (product pages) */
.subnav { position: sticky; top: 76px; z-index: 50; background: rgba(255,255,255,.95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); padding: 0; }
.subnav .wrap { display: flex; align-items: center; gap: 28px; height: 58px; overflow-x: auto; scrollbar-width: none; }
.subnav .wrap::-webkit-scrollbar { display: none; }
.subnav strong { font-size: 15px; font-weight: 600; white-space: nowrap; }
.subnav a { font-size: 14.5px; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.subnav a:hover { color: var(--cobalt); }
.subnav .btn { margin-left: auto; color: #fff; }

/* ---------- App window mockups ---------- */
.app { background: #fff; border-radius: 14px; box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 40px 80px -24px rgba(0,0,0,.6); overflow: hidden; color: var(--ink); font-size: 13px; text-align: left; min-width: 0; }
.app.on-light { box-shadow: 0 0 0 1px var(--line), 0 30px 60px -28px rgba(11,18,32,.35); }
.app-bar { display: flex; align-items: center; gap: 14px; height: 40px; padding: 0 14px; background: #f3f5f9; border-bottom: 1px solid var(--line); }
.app-bar .dots { display: flex; gap: 6px; flex: none; }
.app-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: #d5dbe6; }
.app-bar .url { flex: 1; max-width: 280px; margin: 0 auto; height: 24px; border-radius: 6px; background: #fff; border: 1px solid var(--line); font-family: var(--mono); font-size: 11px; color: var(--ink-3); display: flex; align-items: center; justify-content: center; gap: 6px; overflow: hidden; white-space: nowrap; }
.app-bar .url svg { width: 10px; height: 10px; flex: none; }
.app-bar .sp { width: 46px; flex: none; }
.app-tabs { display: flex; gap: 2px; padding: 6px 10px 0; background: #fff; border-bottom: 1px solid var(--line); }
.app-tab { border: 0; background: none; cursor: pointer; font-size: 12.5px; font-weight: 600; color: var(--ink-3); padding: 8px 12px 10px; border-bottom: 2px solid transparent; display: inline-flex; align-items: center; gap: 7px; margin-bottom: -1px; }
.app-tab i { width: 8px; height: 8px; border-radius: 2px; background: currentColor; opacity: .6; }
.app-tab.active { color: var(--ink); border-bottom-color: var(--cobalt); }
.app-tab.active i { opacity: 1; background: var(--cobalt); }
.app-view { display: none; }
.app-view.active { display: grid; }
.app-view.static { display: grid; }

/* Smart meter view */
.sm-view { grid-template-columns: 148px minmax(0, 1fr); min-height: 384px; }
.side { background: var(--night-2); color: #9fb0ca; padding: 14px 10px; display: flex; flex-direction: column; gap: 2px; font-size: 12px; }
.side .side-brand { display: flex; align-items: center; gap: 7px; color: #fff; font-weight: 700; font-size: 13.5px; letter-spacing: -0.03em; padding: 2px 6px 14px; }
.side .side-brand svg { width: 20px; height: 20px; }
.side span { padding: 7px 8px; border-radius: 6px; display: flex; align-items: center; gap: 8px; }
.side span i { width: 11px; height: 11px; border-radius: 3px; border: 1.5px solid currentColor; opacity: .7; flex: none; }
.side span.on { background: var(--night-3); color: #fff; }
.side span.on i { border-color: var(--lime); background: var(--lime); opacity: 1; }
.main { padding: 16px; display: grid; gap: 12px; align-content: start; background: #f7f9fc; min-width: 0; }
.main-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.main-head b { font-size: 14px; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip { font-family: var(--mono); font-size: 10.5px; padding: 3px 8px; border-radius: 5px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; min-width: 0; }
.kpi small { display: block; font-size: 10px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; font-family: var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi strong { display: block; font-size: 18px; letter-spacing: -0.02em; margin-top: 3px; white-space: nowrap; }
.kpi strong.ok { color: var(--ok); }
.kpi strong.warn { color: var(--warn); }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 12px; min-width: 0; overflow: hidden; }
.panel-title { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 8px; }
.spark { width: 100%; height: 80px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.tbl th { text-align: left; font-weight: 500; color: var(--ink-3); font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .05em; padding: 0 6px 6px; }
.tbl td { padding: 6px; border-top: 1px solid var(--line); font-family: var(--mono); white-space: nowrap; }
.tbl tr.gap td { background: #fff6eb; }
.pill { font-family: var(--mono); font-size: 9.5px; font-weight: 600; padding: 2px 7px; border-radius: 4px; letter-spacing: .04em; }
.pill.ok { background: #e3f6ee; color: #0b7a52; }
.pill.gap { background: #ffe9cf; color: #a24f00; }

/* Insight view */
.in-view { grid-template-columns: minmax(0, 1fr); min-height: 384px; background: #f7f9fc; align-content: start; }
.in-top { display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-bottom: 1px solid var(--line); background: #fff; }
.in-top .file { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11.5px; white-space: nowrap; overflow: hidden; }
.in-top .chip { margin-left: auto; }
.xls { background: #1d6f42; color: #fff; font-size: 9px; font-weight: 700; padding: 2px 5px; border-radius: 3px; font-family: var(--mono); }
.in-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 12px; padding: 14px 16px 16px; }
.chat { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.msg { padding: 9px 12px; border-radius: 10px; font-size: 12.5px; line-height: 1.45; max-width: 96%; }
.msg.user { background: var(--cobalt); color: #fff; align-self: flex-end; border-bottom-right-radius: 3px; }
.msg.bot { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 3px; }
.msg.bot b { display: block; font-size: 11px; color: var(--cobalt); margin-bottom: 3px; }
.steps-mini { display: grid; gap: 3px; font-size: 11.5px; color: var(--ink-2); margin-top: 4px; }
.steps-mini span::before { content: "✓ "; color: var(--ok); font-weight: 700; }
.askbox { margin-top: auto; display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; font-size: 12px; color: var(--ink-3); }
.askbox b { margin-left: auto; width: 22px; height: 22px; border-radius: 6px; background: var(--cobalt); display: grid; place-items: center; color: #fff; font-size: 12px; flex: none; }
.bars { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; align-items: end; height: 136px; padding: 6px 4px 0; border-bottom: 1px solid var(--line); }
.bars div { background: #c7d7fb; border-radius: 4px 4px 0 0; height: var(--h); transform-origin: bottom; animation: grow .9s cubic-bezier(.2,.8,.2,1) both; }
.bars div.hi { background: var(--cobalt); }
.bars div:nth-child(2) { animation-delay: .08s; } .bars div:nth-child(3) { animation-delay: .16s; } .bars div:nth-child(4) { animation-delay: .24s; } .bars div:nth-child(5) { animation-delay: .32s; }
.bar-labels { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; font-family: var(--mono); font-size: 10px; color: var(--ink-3); text-align: center; padding-top: 6px; }
.exports { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.exports span { font-family: var(--mono); font-size: 10.5px; padding: 3px 8px; border-radius: 5px; background: var(--soft-2); color: var(--ink-2); }
.exports span.on { background: var(--lime); color: var(--ink); font-weight: 600; }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* ---------- Sections ---------- */
section { padding: 112px 0; }
.section-head { max-width: 780px; margin-bottom: 64px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head h2 { margin-bottom: 18px; }
.soft { background: var(--soft); }
.dark { background: var(--night); color: #fff; }
.dark p, .dark .lede { color: var(--night-text); }

/* Value strip */
.value-strip { padding: 0; background: var(--night-2); border-top: 1px solid var(--night-line); }
.value-strip .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.value-strip .v { padding: 30px 24px; color: #fff; display: flex; gap: 14px; align-items: flex-start; }
.value-strip .v + .v { border-left: 1px solid var(--night-line); }
.value-strip svg { width: 22px; height: 22px; color: var(--lime); flex: none; margin-top: 2px; }
.value-strip strong { display: block; font-size: 15.5px; font-weight: 600; }
.value-strip span { display: block; font-size: 13.5px; color: var(--night-text); margin-top: 2px; }

/* Built-on strip */
.builton { padding: 40px 0; border-bottom: 1px solid var(--line); }
.builton .wrap { display: flex; align-items: center; gap: 20px 48px; flex-wrap: wrap; justify-content: center; }
.builton p { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.builton ul { display: flex; gap: 14px 40px; flex-wrap: wrap; justify-content: center; }
.builton li { font-weight: 600; font-size: 1.1rem; color: #4f5a6e; letter-spacing: -0.01em; display: flex; align-items: center; gap: 9px; }
.builton li i { width: 10px; height: 10px; border-radius: 3px; background: #c5cede; }

/* Product tiles */
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.ptile { border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--line); background: #fff; transition: box-shadow .2s, transform .2s; }
.ptile:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.ptile-body { padding: 36px 36px 32px; display: flex; flex-direction: column; flex: 1; }
.ptile.dk { background: var(--night); border-color: var(--night); color: #fff; }
.ptile h3 { font-size: 1.85rem; letter-spacing: -0.025em; margin: 16px 0 10px; }
.ptile-body > p { color: var(--ink-2); font-size: 16.5px; }
.ptile.dk .ptile-body > p { color: var(--night-text); }
.ptile ul { margin: 22px 0 28px; display: grid; gap: 10px; }
.ptile li { display: flex; gap: 10px; font-size: 15px; color: var(--ink-2); }
.ptile.dk li { color: #c8d2e3; }
.ptile li svg { width: 18px; height: 18px; flex: none; color: var(--cobalt); margin-top: 3px; }
.ptile.dk li svg { color: var(--lime); }
.ptile-actions { margin-top: auto; display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
.ptile-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ptile-head .who { font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.ptile.dk .ptile-head .who { color: #7e8ba3; }
.ptile-media { padding: 0 36px; }
.ptile-media .app { border-radius: 12px 12px 0 0; font-size: 12px; }
.ptile.dk .ptile-media .app { box-shadow: 0 0 0 1px rgba(255,255,255,.1); }
.ptile:not(.dk) .ptile-media { background: linear-gradient(180deg, #fff, var(--soft)); }
.ptile:not(.dk) .ptile-media .app { box-shadow: 0 0 0 1px var(--line); }
.ptile-media .sm-view, .ptile-media .in-view { min-height: 0; }

/* Solutions tabs */
.tabs { display: flex; gap: 6px; margin-bottom: 44px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { background: none; border: 0; cursor: pointer; padding: 14px 18px; font-size: 15.5px; font-weight: 600; color: var(--ink-3); border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--cobalt); }
.tabpanel { display: none; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.tabpanel.active { display: grid; }
.tabpanel h3 { font-size: clamp(1.6rem, 2.4vw, 2rem); letter-spacing: -0.025em; margin-bottom: 16px; }
.tabpanel p { color: var(--ink-2); }
.uses { margin: 24px 0 28px; display: grid; gap: 12px; }
.uses li { display: flex; gap: 12px; color: var(--ink-2); font-size: 15.5px; }
.uses li svg { width: 20px; height: 20px; flex: none; color: var(--cobalt); margin-top: 2px; }
.uses li b { color: var(--ink); font-weight: 600; }
.dark .uses li { color: var(--night-text); }
.dark .uses li b { color: #fff; }
.dark .uses li svg { color: var(--lime); }
.uses-tag { display: flex; gap: 8px; align-items: center; margin-bottom: 16px; }
.quote-card { background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px; }
.quote-card .qk { font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.quote-card blockquote { font-size: 1.45rem; line-height: 1.35; letter-spacing: -0.015em; font-weight: 500; margin-bottom: 24px; }
.quote-card .ans { border-top: 1px solid var(--line); padding-top: 20px; display: grid; gap: 10px; }
.quote-card .ans div { display: flex; justify-content: space-between; gap: 16px; font-size: 14.5px; }
.quote-card .ans span { color: var(--ink-3); }
.quote-card .ans b { font-family: var(--mono); font-size: 13px; font-weight: 500; text-align: right; }
.quote-card .ans b.ok { color: var(--ok); }
.quote-card .ans b.warn { color: var(--warn); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--night-line); }
.stat { padding: 34px 28px 10px 0; }
.stat + .stat { padding-left: 28px; border-left: 1px solid var(--night-line); }
.stat strong { display: block; font-size: clamp(2.2rem, 3.6vw, 3.1rem); font-weight: 600; letter-spacing: -0.035em; color: #fff; line-height: 1; }
.stat strong small { font-size: .42em; color: var(--lime); letter-spacing: 0; margin-left: 6px; font-weight: 500; }
.stat span { display: block; margin-top: 14px; color: #dbe3f0; font-weight: 500; }
.stat em { display: block; font-style: normal; font-family: var(--mono); font-size: 12px; color: #7e8ba3; margin-top: 6px; }
.stats-note { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; font-size: 14.5px; color: #8693ab; }

/* Pipeline */
.pipeline { display: grid; grid-template-columns: repeat(5, 1fr); }
.pipeline.three { grid-template-columns: repeat(3, 1fr); }
.pnode { position: relative; padding-right: 18px; }
.pnode .pi { width: 56px; height: 56px; border-radius: 14px; background: var(--cobalt-tint); color: var(--cobalt); display: grid; place-items: center; margin-bottom: 20px; position: relative; z-index: 1; }
.pnode.last .pi { background: var(--cobalt); color: var(--lime); }
.pnode .pi svg { width: 26px; height: 26px; }
.pnode:not(.last)::after { content: ""; position: absolute; top: 28px; left: 66px; right: 10px; border-top: 2px dashed #c3cfe6; }
.pnode small { font-family: var(--mono); font-size: 11.5px; color: var(--cobalt); letter-spacing: .06em; }
.pnode h4 { font-size: 1.1rem; margin: 6px 0 8px; letter-spacing: -0.01em; }
.pnode p { font-size: 14.5px; color: var(--ink-2); }
code { font-family: var(--mono); font-size: .82em; background: var(--soft-2); color: var(--cobalt-deep); padding: 1px 5px; border-radius: 4px; }
.dark code { background: var(--night-3); color: #cfe0ff; }

/* Cards grid */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; transition: box-shadow .2s, border-color .2s; }
.card:hover { box-shadow: var(--shadow); border-color: #d3dbe8; }
.card .ci { width: 44px; height: 44px; border-radius: 11px; background: var(--night); color: var(--lime); display: grid; place-items: center; margin-bottom: 20px; }
.card .ci svg { width: 22px; height: 22px; }
.card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.card p { font-size: 15px; color: var(--ink-2); }
.dark .card { background: var(--night-2); border-color: var(--night-line); }
.dark .card:hover { border-color: #33456b; box-shadow: none; }
.dark .card h3 { color: #fff; }
.dark .card p { color: var(--night-text); }
.dark .card .ci { background: var(--night-3); }

/* Feature rows */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 72px; align-items: center; }
.feature + .feature { margin-top: 112px; }
.feature.flip > :first-child { order: 2; }
.feature h3 { font-size: clamp(1.7rem, 2.6vw, 2.25rem); letter-spacing: -0.03em; margin-bottom: 16px; }
.feature p { color: var(--ink-2); }
.feature .uses { margin-bottom: 0; }
.feature .card h3 { font-size: 1.15rem; letter-spacing: -0.015em; margin-bottom: 8px; }
.dark .feature h3 { color: #fff; }
.dark .feature p { color: var(--night-text); }
.vis { background: var(--soft); border: 1px solid var(--line); border-radius: 22px; padding: 32px; min-width: 0; }
.vis.dk { background: var(--night); border-color: var(--night); color: #dbe3f0; }

/* Visual widgets inside .vis */
.wire { display: grid; gap: 10px; font-family: var(--mono); font-size: 12.5px; }
.wire .ln { display: grid; grid-template-columns: 66px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 9px; background: var(--night-2); border: 1px solid var(--night-line); }
.wire .ln span:nth-child(1) { color: #7e8ba3; }
.wire .ln span:nth-child(2) { color: #dbe3f0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wire .ln.bad { border-color: #5a3a1a; background: #1c1610; }
.chain { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.chain .blk { width: 38px; height: 38px; border-radius: 8px; background: #fff; border: 1.5px solid #c9d6f0; display: grid; place-items: center; font-family: var(--mono); font-size: 11px; color: var(--ink-2); position: relative; }
.chain .blk.ok { border-color: var(--cobalt); color: var(--cobalt); }
.chain .blk.miss { border: 1.5px dashed var(--warn); color: var(--warn); background: #fff6eb; }
.chain .lnk { width: 10px; height: 2px; background: #c9d6f0; }
.chain-legend { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 18px; font-size: 13.5px; color: var(--ink-2); }
.chain-legend span { display: inline-flex; align-items: center; gap: 8px; }
.chain-legend i { width: 12px; height: 12px; border-radius: 3px; border: 1.5px solid var(--cobalt); }
.chain-legend i.m { border: 1.5px dashed var(--warn); background: #fff6eb; }
.engines { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 18px; }
.engines span { background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 12px; font-weight: 600; font-size: 14.5px; display: flex; align-items: center; gap: 10px; }
.engines span i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.store { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; font-family: var(--mono); font-size: 12.5px; display: grid; gap: 6px; }
.store div { display: flex; gap: 10px; align-items: center; color: var(--ink-2); }
.store div.d1 { padding-left: 18px; } .store div.d2 { padding-left: 36px; }
.store svg { width: 14px; height: 14px; color: var(--cobalt); flex: none; }

/* Known gaps / FAQ */
.gaps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gap-card { border: 1px dashed #c8d1e0; border-radius: var(--radius-lg); padding: 26px; background: #fff; }
.gap-card h4 { font-size: 1.05rem; margin-bottom: 8px; display: flex; gap: 10px; align-items: center; }
.gap-card h4::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--warn); flex: none; }
.gap-card p { font-size: 14.5px; color: var(--ink-2); }
.faq { max-width: 880px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; font-weight: 600; font-size: 1.1rem; position: relative; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 26px; font-weight: 400; color: var(--cobalt); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 44px 24px 0; color: var(--ink-2); }

/* CTA band */
.cta-band { background: var(--cobalt); color: #fff; padding: 96px 0; position: relative; overflow: hidden; isolation: isolate; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(226,255,59,.4) 1.5px, transparent 1.5px); background-size: 22px 22px; mask-image: radial-gradient(520px 320px at 100% 0%, #000, transparent); -webkit-mask-image: radial-gradient(520px 320px at 100% 0%, #000, transparent); }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta-band h2 { max-width: 15em; }
.cta-band p { color: #d6e2ff; margin-top: 14px; font-size: 1.12rem; max-width: 36em; }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 72px; align-items: start; }
.contact-side h3 { font-size: 1.2rem; margin: 0 0 16px; }
.contact-side ol { list-style: none; counter-reset: c; display: grid; gap: 16px; }
.contact-side ol li { counter-increment: c; display: grid; grid-template-columns: 36px 1fr; gap: 14px; color: var(--ink-2); }
.contact-side ol li::before { content: counter(c, decimal-leading-zero); font-family: var(--mono); font-size: 13px; color: var(--cobalt); background: var(--cobalt-tint); border-radius: 8px; height: 30px; display: grid; place-items: center; }
.contact-side .alt { margin-top: 36px; padding-top: 26px; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: 15px; color: var(--ink-2); }
.contact-side .alt a { color: var(--cobalt); font-weight: 600; text-decoration: none; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 36px; box-shadow: var(--shadow); display: grid; gap: 18px; position: relative; }
.form-card h3 { font-size: 1.4rem; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; font-size: 14px; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea { font: inherit; font-weight: 400; font-size: 15.5px; color: var(--ink); background: #fff; border: 1.5px solid #d5dce8; border-radius: 9px; padding: 12px 14px; width: 100%; transition: border-color .15s, box-shadow .15s; }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 4px rgba(11,79,208,.12); }
.radio-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.radio-row label { position: relative; }
.radio-row input { position: absolute; opacity: 0; }
.radio-row span { display: block; text-align: center; border: 1.5px solid #d5dce8; border-radius: 9px; padding: 11px 8px; font-size: 14px; font-weight: 600; cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.radio-row input:checked + span { border-color: var(--cobalt); background: var(--cobalt-tint); color: var(--cobalt); }
.radio-row input:focus-visible + span { outline: 2.5px solid var(--cobalt); outline-offset: 2px; }
.form-card .fine { font-size: 13px; color: var(--ink-3); }
.form-card button.btn { justify-self: start; }
.hp { position: absolute; left: -9999px; }

/* Prose / articles */
.prose { max-width: 740px; }
.prose h2 { font-size: 1.65rem; margin: 52px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-2); }
.prose p { margin-bottom: 14px; }
.prose ul { list-style: disc; margin: 0 0 14px 22px; }
.articles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.article { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; background: #fff; transition: box-shadow .2s, transform .2s; }
.article:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.art-top { height: 168px; background: var(--night); position: relative; overflow: hidden; }
.art-top.cb { background: var(--cobalt); }
.art-top.sf { background: var(--soft-2); }
.art-top svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.art-body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.art-body .meta { font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--cobalt); }
.art-body h3 { font-size: 1.3rem; margin: 12px 0 10px; }
.art-body p { color: var(--ink-2); font-size: 15px; flex: 1; }
.art-body .tlink { margin-top: 20px; }

/* Company */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: start; }
.split p { color: var(--ink-2); margin-bottom: 16px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; }
.fact { border-top: 2px solid var(--ink); padding-top: 16px; }
.fact strong { display: block; font-size: 1.15rem; letter-spacing: -0.01em; }
.fact span { display: block; color: var(--ink-2); font-size: 15px; margin-top: 4px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: #c3cde0; padding: 80px 0 36px; }
.footer-top { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 40px; }
.footer-top .brand { color: #fff; }
.footer-brand p { color: #8693ab; font-size: 15px; margin: 16px 0 24px; max-width: 30ch; }
.footer-top h5 { font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: #7e8ba3; margin-bottom: 18px; }
.footer-top ul { display: grid; gap: 11px; }
.footer-top ul a { color: #c3cde0; text-decoration: none; font-size: 15px; }
.footer-top ul a:hover { color: #fff; }
.footer-bottom { margin-top: 64px; padding-top: 26px; border-top: 1px solid var(--night-line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13.5px; color: #7e8ba3; }
.footer-bottom a { color: #9aa7bd; text-decoration: none; }
.footer-bottom a:hover { color: #fff; }
.footer-bottom nav { display: flex; gap: 22px; flex-wrap: wrap; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .js .reveal { opacity: 1; transform: none; }
    html { scroll-behavior: auto; }
}
:focus-visible { outline: 2.5px solid var(--cobalt); outline-offset: 3px; border-radius: 6px; }
.dark :focus-visible, .hero :focus-visible, .page-hero:not(.light) :focus-visible, .cta-band :focus-visible, .site-footer :focus-visible, .ptile.dk :focus-visible { outline-color: var(--lime); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
    .header-cta .signin { display: none; }
    .nav-trigger { padding: 0 10px; }
    .nav-trigger::after { left: 10px; right: 10px; }
    .site-header .wrap { gap: 20px; }
}
@media (max-width: 1024px) {
    .hero .wrap, .page-hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 56px; padding-top: 72px; padding-bottom: 80px; }
    .product-grid { grid-template-columns: 1fr; }
    .tabpanel { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .stat:nth-child(3) { padding-left: 0; border-left: 0; }
    .stat:nth-child(n+3) { border-top: 1px solid var(--night-line); margin-top: 24px; }
    .pipeline, .pipeline.three { grid-template-columns: 1fr; gap: 28px; }
    .pnode { display: grid; grid-template-columns: 56px 1fr; gap: 0 20px; padding: 0; }
    .pnode .pi { margin: 0; grid-row: span 3; }
    .pnode:not(.last)::after { top: 64px; bottom: -24px; left: 27px; right: auto; border-top: 0; border-left: 2px dashed #c3cfe6; }
    .cards { grid-template-columns: repeat(2, 1fr); }
    .feature, .contact-grid, .split { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .feature.flip > :first-child { order: 0; }
    .gaps, .articles { grid-template-columns: 1fr 1fr; }
    .footer-top { grid-template-columns: repeat(4, 1fr); }
    .footer-brand { grid-column: 1 / -1; }
    .value-strip .wrap { grid-template-columns: 1fr 1fr; }
    .value-strip .v:nth-child(3) { border-left: 0; }
    .value-strip .v:nth-child(n+3) { border-top: 1px solid var(--night-line); }
}
@media (max-width: 920px) {
    .nav-toggle { display: grid; place-items: center; }
    .mainnav, .header-cta { display: none; }
    .site-header.menu-open .mainnav { display: block; position: fixed; top: var(--hdr, 76px); left: 0; right: 0; bottom: 72px; overflow-y: auto; background: #fff; border-top: 1px solid var(--line); padding: 8px 20px 24px; }
    .site-header.menu-open .header-cta { display: flex; position: fixed; left: 0; right: 0; bottom: 0; height: 72px; padding: 0 20px; background: #fff; border-top: 1px solid var(--line); z-index: 2; }
    .site-header.menu-open .header-cta .btn { flex: 1; }
    .mainnav > ul { flex-direction: column; align-items: stretch; }
    .mainnav > ul > li { display: block; border-bottom: 1px solid var(--line); }
    .nav-trigger { width: 100%; height: 58px; justify-content: space-between; padding: 0 4px; font-size: 17px; }
    .nav-trigger::after { display: none; }
    .mega { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; display: none; transition: none; }
    .nav-item.open .mega { display: block; }
    .mega-inner, .mega-inner.cols-3 { grid-template-columns: 1fr; padding: 0 0 16px; gap: 18px; }
    .mega-col { padding: 0 4px; }
    .mega-col + .mega-col { border-left: 0; }
    .mega-feature { margin: 0; }
    body.menu-lock { overflow: hidden; }
}
@media (max-width: 720px) {
    body { font-size: 16px; }
    .wrap { padding: 0 16px; }
    section { padding: 80px 0; }
    .announce { font-size: 13px; padding: 9px 40px 9px 16px; text-align: left; }
    .hero-actions .btn { flex: 1 1 auto; }
    .section-head { margin-bottom: 44px; }
    .ptile-body { padding: 26px 22px; }
    .ptile-media { padding: 0 16px; }
    .ptile h3 { font-size: 1.55rem; }
    .sm-view { grid-template-columns: minmax(0, 1fr); }
    .side { display: none; }
    .kpis { gap: 6px; }
    .kpi { padding: 8px; }
    .kpi strong { font-size: 15px; }
    .in-body { grid-template-columns: minmax(0, 1fr); }
    .tbl .hide-sm { display: none; }
    .tab { padding: 12px; font-size: 14.5px; }
    .quote-card { padding: 24px; }
    .quote-card blockquote { font-size: 1.2rem; }
    .stats { grid-template-columns: 1fr; }
    .stat, .stat + .stat, .stat:nth-child(n+3) { padding: 24px 0; border-left: 0; margin-top: 0; }
    .stat + .stat { border-top: 1px solid var(--night-line); }
    .cards, .cards.three, .gaps, .articles { grid-template-columns: 1fr; }
    .feature + .feature { margin-top: 80px; }
    .vis { padding: 18px; border-radius: 16px; }
    .cta-band { padding: 72px 0; }
    .cta-band .hero-actions { width: 100%; }
    .f-row, .radio-row { grid-template-columns: 1fr; }
    .form-card { padding: 24px; }
    .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
    .value-strip .wrap { grid-template-columns: 1fr; }
    .value-strip .v + .v { border-left: 0; border-top: 1px solid var(--night-line); }
    .value-strip .v { padding: 22px 0; }
    .facts { grid-template-columns: 1fr; }
    .engines { grid-template-columns: 1fr; }
    .subnav strong { display: none; }
}
