/* Nobi Insights — design system mirrors Nobi's report pages (.mfr) and the sales deck. */
@font-face { font-family: "Hanken Grotesk"; font-weight: 300; src: url("/assets/HankenGrotesk-Light-725e25fc.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; font-weight: 400; src: url("/assets/HankenGrotesk-Regular-fcb42c01.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; font-weight: 500; src: url("/assets/HankenGrotesk-Medium-a5174191.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; font-weight: 600; src: url("/assets/HankenGrotesk-SemiBold-dbb8c90c.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; font-weight: 700; src: url("/assets/HankenGrotesk-Bold-590c347e.ttf") format("truetype"); font-display: swap; }

:root {
  --night: #2e4447; --night-2: #385256; --morning: #37928b; --morning-dark: #228078; --morning-light: #a6d0ca; --morning-lighter: #d2e8e5;
  --day: #e0e5da; --sand: #faf6ee; --sand-2: #FBFBFB; --clay: #f6f0ef;
  --ink: #44403b; --ink-soft: #58595b; --ink-mute: #79716b; --ink-faint: #a6a09b;
  --stone: #d6d3d1; --stone-light: #e7e7e7; --panel-stroke: rgba(0,0,0,.1); --table-divider: #e7e5e4; --table-header: #99a1af;
  --radius-card: 24px; --danger: #e4585b; --danger-dark: #ab3234; --danger-soft: #f6e4e2; --focus: #e86826; --gold: #b5a642;
  --wrap-max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--night); font-family: "Hanken Grotesk", Helvetica, Arial, sans-serif; font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--morning); text-decoration: none; } a:hover { color: var(--morning-dark); }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
img, svg { max-width: 100%; }
.wrap { max-width: var(--wrap-max); margin: 0 auto; padding: 0 32px; }
@media (max-width: 700px) { .wrap { padding: 0 18px; } }

/* ---- site chrome */
.site-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--stone-light); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--night); }
.brand .logo { height: 30px; width: auto; color: var(--night); display: block; }
.brand .tag { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-mute); font-weight: 700; }
.site-nav { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; }
.site-nav a { color: var(--ink); } .site-nav a:hover { color: var(--morning); }
.site-nav a.btn-night, .site-nav a.btn-night:hover { color: #fff; }
a.btn-night, a.btn-night:hover, a.btn-morning, a.btn-morning:hover, .cta-night a.btn-ghost-light { color: #fff; }
@media (max-width: 860px) { .site-nav .hide-m { display: none; } }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; padding: 12px 22px; font-weight: 600; font-size: 15px; border: 1px solid transparent; cursor: pointer; text-decoration: none; font-family: inherit; line-height: 1.2; }
.btn-night { background: var(--night); color: #fff; } .btn-night:hover { background: #1f3538; color: #fff; }
.btn-morning { background: var(--morning); color: #fff; } .btn-morning:hover { background: var(--morning-dark); color: #fff; }
.btn-ghost { border-color: var(--stone); color: var(--night); background: #fff; } .btn-ghost:hover { border-color: var(--night); color: var(--night); }
.btn-ghost-light { border-color: rgba(255,255,255,.35); color: #fff; background: transparent; } .btn-ghost-light:hover { border-color: #fff; color: #fff; }
.btn-lg { padding: 15px 26px; font-size: 16px; }
.link { color: var(--morning); font-weight: 600; }
.flash { padding: 12px 18px; border-radius: 12px; margin: 18px 0 0; font-size: 15px; }
.flash.notice { background: var(--morning-lighter); color: var(--night); } .flash.alert { background: var(--danger-soft); color: var(--danger-dark); }
footer.site { border-top: 1px solid var(--stone-light); padding: 36px 0; font-size: 13px; color: var(--ink-faint); line-height: 1.6; margin-top: 20px; }
footer.site .row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
footer.site a { color: var(--ink-mute); }

/* ---- type */
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--morning); margin: 0 0 18px; }
.eyebrow.mute { color: var(--ink-mute); }
h1.hero { font-weight: 300; font-size: clamp(38px, 5.5vw, 68px); line-height: 1.03; letter-spacing: -.02em; color: var(--night); }
h1.hero b, h2.title b { font-weight: 700; }
h2.title { font-weight: 300; font-size: clamp(28px, 4vw, 44px); line-height: 1.06; letter-spacing: -.015em; margin: 0 0 8px; color: var(--night); }
.accent { color: var(--morning); }
.subtitle { font-weight: 400; font-size: clamp(17px, 2.1vw, 22px); line-height: 1.35; color: var(--ink-soft); margin: 0; max-width: 62ch; }
.small { font-size: 14px; color: var(--ink-mute); }
.meta { font-size: 14px; color: var(--ink-faint); } .meta b { color: var(--ink-soft); font-weight: 500; }

/* ---- sections */
section.band { padding: 64px 0; }
section.band.sand { background: var(--sand); }
section.band.sand2 { background: var(--sand-2); }
section.band.night { background: var(--night); color: #fff; }
section.band.night .eyebrow { color: var(--morning-light); }
section.band.night h2.title, section.band.night h1.hero { color: #fff; } section.band.night h2.title b { color: var(--day); }
section.band.night p { color: #c4d1d2; }
section.band.hairline { border-top: 1px solid var(--panel-stroke); border-bottom: 1px solid var(--panel-stroke); }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; align-items: center; }
.grid2.top { align-items: start; } .grid2.tight { gap: 22px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 860px) { .grid2, .grid3 { grid-template-columns: 1fr; } }
.stack { display: flex; flex-direction: column; gap: 18px; }
.row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }

/* ---- hero band on reports */
.hero-band { padding-top: 48px; padding-bottom: 40px; border-bottom: 1px solid var(--panel-stroke); }
.hero-band .eyebrow { margin-bottom: 14px; }
.hero-band .subtitle { margin-top: 14px; }
.hero-band .meta { margin-top: 18px; }

/* ---- KPI strip */
.kpi-strip { display: grid; gap: 1px; background: var(--stone); border: 1px solid var(--stone); border-radius: var(--radius-card); overflow: hidden; }
.kpi-strip.k4 { grid-template-columns: repeat(4, 1fr); } .kpi-strip.k5 { grid-template-columns: repeat(5, 1fr); } .kpi-strip.k6 { grid-template-columns: repeat(6, 1fr); } .kpi-strip.k3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .kpi-strip.k4, .kpi-strip.k5, .kpi-strip.k6 { grid-template-columns: repeat(2, 1fr); } .kpi-strip.k3 { grid-template-columns: 1fr; } }
.kpi { background: #fff; padding: 26px 24px; }
.stat-number { font-weight: 300; font-size: 44px; line-height: 1; letter-spacing: -.03em; color: var(--night); font-variant-numeric: tabular-nums; }
.stat-number .unit { font-size: 20px; color: var(--morning); margin-left: 4px; font-weight: 400; letter-spacing: 0; }
.stat-number.danger, .stat-number.danger .unit { color: var(--danger); }
.stat-label { margin-top: 12px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-mute); }
.stat-foot { margin-top: 6px; font-size: 13px; color: var(--ink-faint); } .stat-foot.danger { color: var(--danger); font-weight: 700; }

/* ---- cards, charts, notes, tables */
.card { background: #fff; border: 1px solid var(--stone-light); border-radius: var(--radius-card); padding: 26px; }
.card .sub { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; margin: 0 0 12px; color: var(--ink-mute); }
.card p { color: var(--ink-soft); margin: 0; }
section.band.sand .card, section.band.sand .chart-box, section.band.sand2 .card, section.band.sand2 .chart-box { background: #fff; }
section.band:not(.sand):not(.sand2) .card, section.band:not(.sand):not(.sand2) .chart-box { background: var(--sand-2); }
.chart-box { background: #fff; border: 1px solid var(--stone-light); border-radius: var(--radius-card); padding: 24px 24px 16px; margin-top: 26px; min-width: 0; overflow: hidden; }
.chart-box h3 { font-size: 18px; font-weight: 500; margin: 0 0 4px; color: var(--night); }
.chart-box .small { margin: 0 0 14px; display: block; }
.legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--ink-mute); margin: 0 0 12px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; vertical-align: -1px; margin-right: 6px; }
.legend i.tick { width: 2px; height: 12px; border-radius: 0; background: var(--night-2); }
.note { background: var(--clay); border-left: 3px solid var(--morning); border-radius: 8px; padding: 18px 22px; margin-top: 26px; font-size: 15px; color: var(--ink-soft); line-height: 1.55; }
.note b { color: var(--night); } .note.danger { border-left-color: var(--danger); } .note p { margin: 0; }
.table-scroll { overflow-x: auto; margin-top: 24px; }
.manage .card > table.data { display: block; overflow-x: auto; max-width: 100%; }
.manage .card > table.data thead, .manage .card > table.data tbody { display: table; width: 100%; }
table.data { width: 100%; border-collapse: collapse; font-size: 15px; }
table.data th, table.data td { padding: 11px 14px; text-align: right; border-bottom: 1px solid var(--table-divider); white-space: nowrap; vertical-align: top; }
table.data th:first-child, table.data td:first-child { text-align: left; white-space: normal; }
table.data thead th { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--table-header); font-weight: 700; border-bottom: 2px solid var(--table-divider); }
table.data tbody tr:hover { background: rgba(0,0,0,.03); }
table.data td.name { font-weight: 700; color: var(--ink); } table.data td.name a { color: inherit; } table.data td.name a:hover { text-decoration: underline; }
table.data td.bad { color: var(--danger); font-weight: 700; } table.data td.wrap { white-space: normal; text-align: left; min-width: 240px; }
table.data td.left { text-align: left; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { font-size: 14px; border-radius: 999px; padding: 5px 13px; background: var(--morning-lighter); color: var(--night); }
.pill.neg { background: var(--danger-soft); color: var(--danger-dark); }
blockquote.q { margin: 0 0 14px; background: #fff; border: 1px solid var(--stone-light); border-radius: 16px; padding: 18px 22px; }
blockquote.q p { margin: 0; font-size: 16px; color: var(--ink); line-height: 1.5; }
blockquote.q footer { margin-top: 8px; font-size: 13px; color: var(--ink-mute); } blockquote.q footer .stars { color: var(--morning); letter-spacing: 1px; } blockquote.q.neg footer .stars { color: var(--danger); }

/* ---- search */
.search { display: flex; align-items: center; gap: 0; border: 1px solid var(--stone); border-radius: 999px; background: #fff; padding: 6px 6px 6px 22px; max-width: 640px; }
.search svg { flex: none; }
.search input { flex-grow: 1; border: 0; outline: 0; font: inherit; font-size: 17px; padding: 8px 14px; background: transparent; color: var(--ink); min-width: 0; }
.search input::placeholder { color: var(--ink-faint); }
.search .btn { flex: none; }
.results { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.result { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--stone-light); border-radius: 16px; padding: 16px 20px; color: var(--night); }
.result:hover { border-color: var(--morning); }
.result .n { font-weight: 600; font-size: 17px; } .result .l { font-size: 14px; color: var(--ink-mute); margin-top: 2px; }
.result .r { font-size: 14px; color: var(--ink-soft); text-align: right; white-space: nowrap; } .result .r b { color: var(--night); font-size: 18px; font-weight: 500; }

/* ---- CTA blocks */
.cta-night { background: var(--night); color: #fff; border-radius: var(--radius-card); padding: 40px 44px; }
.cta-night .eyebrow { color: var(--morning-light); }
.cta-night h2 { color: #fff; } .cta-night h2 b { color: var(--day); font-weight: 700; }
.cta-night p { color: #c4d1d2; max-width: 62ch; margin: 0; }
.cta-sand { background: var(--sand); border-radius: var(--radius-card); padding: 40px 44px; }
.questions { background: #fff; border: 1px solid var(--stone-light); border-radius: var(--radius-card); padding: 32px; display: flex; flex-direction: column; }
.questions .qn { display: flex; gap: 18px; align-items: flex-start; padding: 16px 0; border-top: 1px solid var(--stone-light); font-size: 21px; line-height: 1.3; color: var(--ink); }
.questions .qn:first-of-type { border-top: 0; padding-top: 0; }
.questions .qn .i { font-size: 18px; font-weight: 700; color: var(--morning); min-width: 30px; padding-top: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: 6px 14px; font-size: 14px; color: #fff; }

/* ---- forms */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--stone); border-radius: 12px; padding: 13px 16px; font: inherit; font-size: 15px; color: var(--ink); background: #fff; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--morning); outline-offset: 1px; border-color: var(--morning); }
.field label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 6px; }
.field.full { grid-column: 1 / -1; }

/* ---- locked operator report */
.locked { position: relative; }
.locked .blurred { filter: blur(6px); opacity: .5; pointer-events: none; user-select: none; }
.locked .gate { position: absolute; inset: 0; display: flex; align-items: flex-start; justify-content: center; padding-top: 80px; }
.gate-card { width: min(640px, 92vw); background: #fff; border: 1px solid var(--stone); border-radius: var(--radius-card); padding: 40px 44px; box-shadow: 0 24px 60px rgba(46,68,71,.18); display: flex; flex-direction: column; gap: 20px; }
.gate-card h2 { font-weight: 300; font-size: 32px; line-height: 1.08; letter-spacing: -.015em; }
.gate-card h2 b { font-weight: 700; }
.badge-lock { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--stone); border-radius: 999px; padding: 5px 12px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-mute); }

/* ---- manage layout */
.manage { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.manage > aside { background: var(--night); color: #fff; padding: 26px 20px; display: flex; flex-direction: column; gap: 6px; position: sticky; top: 0; height: 100vh; }
.manage > aside .brand .logo { color: #fff; } .manage > aside .brand .tag { color: var(--morning-light); }
.manage > aside nav { display: flex; flex-direction: column; gap: 4px; margin-top: 26px; }
.manage > aside nav a { color: #c4d1d2; padding: 10px 12px; border-radius: 10px; font-weight: 500; }
.manage > aside nav a:hover, .manage > aside nav a.active { background: rgba(255,255,255,.08); color: #fff; }
.manage > aside .who { margin-top: auto; font-size: 13px; color: #899b9d; }
.manage > aside .who b { color: #fff; font-weight: 500; display: block; }
.manage main { padding: 32px 40px 60px; background: var(--sand-2); min-width: 0; }
.manage main .page-h { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 22px; flex-wrap: wrap; }
.manage main h1 { font-weight: 300; font-size: 34px; letter-spacing: -.02em; }
.manage .tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.manage .tabs a { border: 1px solid var(--stone); border-radius: 999px; padding: 6px 14px; font-size: 14px; color: var(--ink-soft); background: #fff; }
.manage .tabs a.active { background: var(--night); color: #fff; border-color: var(--night); }
.internal { border: 1px dashed var(--focus); border-radius: var(--radius-card); padding: 22px 26px; margin-top: 26px; background: #fffaf6; }
.internal .sub { color: var(--focus); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 10px; }
@media (max-width: 860px) { .manage { grid-template-columns: 1fr; } .manage > aside { position: static; height: auto; } }
