
:root {
  --navy: #0b2545;
  --navy-2: #13315c;
  --teal: #13807c;
  --teal-soft: #e6f3f2;
  --gold: #b8913f;
  --ink: #1c2733;
  --muted: #5b6878;
  --line: #e3e8ef;
  --bg-soft: #f6f8fb;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: var(--ink); background: #fff; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.serif { font-family: 'Libre Baskerville', Georgia, serif; }
.eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); }

/* ---------- Header ---------- */
header { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav .brand img { height: 52px; width: auto; }
.nav nav { display: flex; align-items: center; gap: 32px; }
.nav nav a { text-decoration: none; font-weight: 500; color: var(--muted); font-size: .95rem; }
.nav nav a:hover { color: var(--navy); }
.btn { display: inline-block; text-decoration: none; font-weight: 600; font-size: .95rem;
  padding: 13px 26px; border-radius: 6px; transition: .2s; }
.btn-primary { background: var(--navy); color: #fff !important; }
.btn-primary:hover { background: var(--navy-2); }
.btn-outline { border: 1.5px solid var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-gold { background: var(--gold); color: #fff !important; }
.btn-gold:hover { background: #a37f33; }

/* ---------- Hero ---------- */
.hero { background: var(--bg-soft);
  background-image: linear-gradient(rgba(11,37,69,.045) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(11,37,69,.045) 1px, transparent 1px);
  background-size: 40px 40px; border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; padding-top: 96px; padding-bottom: 96px; }
.hero h1 { font-family: 'Libre Baskerville', Georgia, serif; font-size: clamp(2.1rem, 4.2vw, 3.2rem);
  line-height: 1.2; color: var(--navy); margin: 16px 0 20px; font-weight: 700; }
.hero h1 em { font-style: normal; color: var(--teal); }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 540px; margin-bottom: 32px; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .mark { justify-self: center; width: 100%; max-width: 380px; }

/* ---------- Sections ---------- */
section { padding: 96px 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-family: 'Libre Baskerville', Georgia, serif; font-size: clamp(1.7rem, 3vw, 2.3rem);
  color: var(--navy); margin-top: 10px; line-height: 1.3; }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 1.05rem; }

.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.service { border: 1px solid var(--line); border-radius: 10px; padding: 32px 26px; background: #fff; transition: .25s; }
.service:hover { border-color: var(--teal); box-shadow: 0 12px 30px rgba(11,37,69,.08); transform: translateY(-3px); }
.icon { width: 48px; height: 48px; border-radius: 10px; background: var(--teal-soft); color: var(--teal);
  display: grid; place-items: center; margin-bottom: 20px; }
.icon svg { width: 24px; height: 24px; }
.service h3 { font-size: 1.1rem; color: var(--navy); margin-bottom: 10px; }
.service p { color: var(--muted); font-size: .95rem; }

/* Process */
.process { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; counter-reset: step; }
.step { border-top: 2px solid var(--navy); padding-top: 24px; }
.step .num { font-family: 'Libre Baskerville', Georgia, serif; font-size: 1rem; color: var(--gold); margin-bottom: 8px; }
.step h3 { color: var(--navy); font-size: 1.2rem; margin-bottom: 8px; }
.step p { color: var(--muted); }

/* About band */
.about { background: var(--navy); color: #fff; }
.about .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about .eyebrow { color: #7fd1cc; }
.about h2 { font-family: 'Libre Baskerville', Georgia, serif; font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.3; margin-top: 10px; }
.about h2 span { color: var(--gold); }
.about p { color: #c9d4e3; font-size: 1.05rem; margin-bottom: 16px; }
.checks { list-style: none; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: #e7edf5; }
.checks svg { flex: none; width: 22px; height: 22px; color: var(--gold); margin-top: 2px; }

/* Contact */
.contact { text-align: center; }
.contact .section-head { margin: 0 auto 32px; }
.contact .email { display: block; margin-top: 18px; color: var(--muted); }
.contact .email a { color: var(--teal); font-weight: 600; text-decoration: none; }

.form { max-width: 680px; margin: 0 auto; text-align: left; display: grid; gap: 18px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 32px;
  box-shadow: 0 12px 30px rgba(11,37,69,.06); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; color: var(--navy); }
.form .opt { font-weight: 400; color: var(--muted); }
.form input, .form select, .form textarea { font: inherit; font-weight: 400; color: var(--ink);
  border: 1px solid #cfd7e2; border-radius: 6px; padding: 12px 14px; background: #fff; width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-soft); }
.form button { justify-self: start; border: 0; cursor: pointer; font-family: inherit; }
.form button:disabled { opacity: .6; cursor: wait; }
.hp { position: absolute; left: -9999px; }
.status { font-weight: 600; }
.status:empty { display: none; }
section { scroll-margin-top: 76px; }
.status.ok { color: var(--teal); }
.status.err { color: #b3261e; }
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } .form { padding: 22px; } }

footer { border-top: 1px solid var(--line); padding: 32px 0; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
footer img { height: 40px; width: auto; }
footer small { color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .services { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .nav nav a:not(.btn) { display: none; }
  .nav .brand img { height: 42px; }
  .nav .btn { padding: 10px 16px; }
  .hero .wrap { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 64px; gap: 32px; }
  .hero .mark { order: -1; max-width: 150px; justify-self: start; }
  .steps, .about .wrap { grid-template-columns: 1fr; gap: 32px; }
  section { padding: 64px 0; }
}
@media (max-width: 520px) {
  .services { grid-template-columns: 1fr; }
}
  
/* ---------- Shared: inner-page header band ---------- */
.nav nav a[aria-current="page"] { color: var(--navy); font-weight: 600; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.page-hero { background: var(--bg-soft);
  background-image: linear-gradient(rgba(11,37,69,.045) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(11,37,69,.045) 1px, transparent 1px);
  background-size: 40px 40px; border-bottom: 1px solid var(--line); padding: 80px 0 72px; }
.page-hero h1 { font-family: 'Libre Baskerville', Georgia, serif; font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.2; color: var(--navy); margin: 14px 0 16px; max-width: 760px; }
.page-hero p { font-size: 1.12rem; color: var(--muted); max-width: 620px; }
.page-hero .actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

/* ---------- Pricing: packages ---------- */
.packages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.package { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; padding: 34px 28px 30px; background: #fff; }
.package.featured { border: 2px solid var(--gold); box-shadow: 0 18px 40px rgba(11,37,69,.10); }
.package .tag { position: absolute; top: -13px; left: 28px; background: var(--gold); color: #fff; font-size: .78rem; font-weight: 600; padding: 4px 12px; border-radius: 999px; }
.package h3 { font-family: 'Libre Baskerville', Georgia, serif; color: var(--navy); font-size: 1.3rem; }
.package .for { color: var(--muted); font-size: .95rem; margin: 8px 0 20px; min-height: 3em; }
.price { display: flex; align-items: baseline; gap: 6px; color: var(--navy); margin-bottom: 22px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.price .from { font-size: .95rem; color: var(--muted); }
.price strong { font-size: 2.4rem; font-weight: 700; line-height: 1; letter-spacing: -.02em; }
.package ul { list-style: none; display: grid; gap: 11px; margin-bottom: 28px; flex: 1; }
.package li { display: flex; gap: 10px; font-size: .95rem; }
.package li svg { flex: none; width: 18px; height: 18px; color: var(--teal); margin-top: 3px; }
.package .btn { text-align: center; }
.note { color: var(--muted); font-size: .95rem; margin-top: 22px; }

/* Price tables */
.price-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.price-table th, .price-table td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
.price-table thead th { background: var(--bg-soft); font-size: .85rem; color: var(--muted); font-weight: 600; }
.price-table tbody tr:last-child td { border-bottom: 0; }
.price-table td:first-child { font-weight: 600; color: var(--navy); white-space: nowrap; }
.price-table td:last-child, .price-table th:last-child { text-align: right; white-space: nowrap; font-weight: 600; color: var(--navy); }
.price-table td:nth-child(2) { color: var(--muted); }
.soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 28px 26px; }
.plan h3 { color: var(--navy); font-size: 1.1rem; }
.plan .price { border: 0; padding: 0; margin: 10px 0 12px; }
.plan .price strong { font-size: 1.9rem; }
.plan p { color: var(--muted); font-size: .95rem; }

.steps6 { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 40px; counter-reset: s; }
.steps6 li { border-top: 2px solid var(--navy); padding-top: 20px; counter-increment: s; }
.steps6 li::before { content: counter(s, decimal-leading-zero); display: block; font-family: 'Libre Baskerville', Georgia, serif; color: var(--gold); margin-bottom: 6px; }
.steps6 h3 { color: var(--navy); font-size: 1.1rem; margin-bottom: 6px; }
.steps6 p { color: var(--muted); font-size: .95rem; }

.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 48px; list-style: none; }
.facts li { padding-left: 20px; border-left: 3px solid var(--teal); }
.facts strong { display: block; color: var(--navy); margin-bottom: 2px; }
.facts span { color: var(--muted); font-size: .95rem; }

.cta-band { background: var(--navy); color: #fff; text-align: center; }
.cta-band h2 { font-family: 'Libre Baskerville', Georgia, serif; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cta-band p { color: #c9d4e3; margin: 12px auto 28px; max-width: 560px; }

/* ---------- Portfolio ---------- */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 32px; }
.work { display: block; text-decoration: none; }
.frame { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--bg-soft); box-shadow: 0 12px 30px rgba(11,37,69,.07); }
.frame .bar { display: flex; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #fff; }
.frame .bar i { width: 9px; height: 9px; border-radius: 50%; background: #d5dce6; }
.frame .shot { position: relative; aspect-ratio: 16 / 11; overflow: hidden; }
.frame iframe { position: absolute; top: 0; left: 0; width: 1280px; height: 880px; border: 0; transform-origin: 0 0; pointer-events: none; }
.work:hover .frame { border-color: var(--teal); }
.work h3 { font-family: 'Libre Baskerville', Georgia, serif; color: var(--navy); font-size: 1.25rem; margin: 4px 0 4px; }
.work .kind { display: block; margin-top: 18px; color: var(--teal); font-weight: 600; font-size: .9rem; }
.work p { color: var(--muted); font-size: .95rem; margin-top: 6px; }
.work .open { display: inline-block; margin-top: 10px; font-weight: 600; color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 960px) {
  .packages, .plans { grid-template-columns: 1fr; max-width: 520px; }
  .steps6 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .work-grid, .facts { grid-template-columns: 1fr; }
  .steps6 { grid-template-columns: 1fr; gap: 28px; }
  .page-hero { padding: 56px 0 52px; }
  .price-table th, .price-table td { padding: 14px; }
  .price-table td:first-child { white-space: normal; }
  .price-table .desc-col { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
.service .more { margin-top: 14px; font-size: .9rem; }
.service .more a { color: var(--teal); font-weight: 600; text-decoration: none; }
.service .more a:hover { text-decoration: underline; }

/* ---------- Automation samples ---------- */
.autos { display: grid; gap: 32px; }
.auto { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 32px; min-width: 0; }
.auto-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 24px; }
.auto-head .kind { color: var(--teal); font-weight: 600; font-size: .9rem; }
.auto-head h3 { font-family: 'Libre Baskerville', Georgia, serif; color: var(--navy); font-size: 1.35rem; margin: 2px 0 6px; }
.auto-head p { color: var(--muted); max-width: 60ch; }
.saved { flex: none; text-align: right; font-size: .9rem; color: var(--muted); max-width: 200px; }
.saved strong { display: block; color: var(--navy); font-size: 1rem; }
.demo { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center; }
.panel { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px; padding: 18px; min-width: 0; align-self: stretch; }
.panel.after { background: #fff; border: 2px dashed #cfd7e2; }
.panel.after:has(.result:not([hidden])) { border-style: solid; border-color: var(--teal); background: var(--teal-soft); }
.panel h4 { font-size: .85rem; color: var(--muted); font-weight: 600; margin-bottom: 10px; }
.waiting { color: var(--muted); font-size: .92rem; padding: 24px 0; text-align: center; }
.run { font: inherit; font-weight: 700; background: var(--gold); color: #fff; border: 0; border-radius: 999px; width: 84px; height: 84px; cursor: pointer; box-shadow: 0 8px 20px rgba(184,145,63,.35); }
.run:hover { background: #a37f33; }
.run:disabled { opacity: .75; cursor: wait; }
.mini { width: 100%; border-collapse: collapse; font-size: .86rem; font-variant-numeric: tabular-nums; }
.mini td { padding: 6px 4px; border-bottom: 1px solid var(--line); }
.mini tr:last-child td { border-bottom: 0; }
.mini td:first-child { color: var(--muted); white-space: nowrap; }
.mini td:last-child { text-align: right; font-weight: 600; color: var(--navy); white-space: nowrap; }
.mini.totals td:first-child { color: var(--navy); font-weight: 600; }
.mini .flag td { color: #8a5a00; }
.mini .flag td:last-child { color: #8a5a00; }
.chip { display: inline-block; font-size: .78rem; font-weight: 600; padding: 2px 10px; border-radius: 999px; }
.chip.ok { background: #fff; color: var(--teal); border: 1px solid var(--teal); }
.chip.warn { background: #fff1d6; color: #8a5a00; border: 1px solid #e3b23c; }
.out-note { font-size: .82rem; color: var(--muted); margin-top: 10px; }
.inbox, .files, .tree { list-style: none; font-size: .88rem; }
.inbox li { display: grid; grid-template-columns: 1fr auto; gap: 0 10px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.inbox li:last-child { border-bottom: 0; }
.inbox b { color: var(--navy); }
.inbox span { grid-column: 1 / -1; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inbox small { grid-row: 1; grid-column: 2; color: var(--muted); }
.files li { padding: 6px 0 6px 26px; position: relative; color: var(--ink); border-bottom: 1px solid var(--line); }
.files li:last-child { border-bottom: 0; }
.files li::before, .tree li:not(.dir)::before { content: ""; position: absolute; left: 4px; top: 9px; width: 12px; height: 15px; border: 1.5px solid #9aa6b5; border-radius: 2px; background: #fff; }
.tree ul { list-style: none; margin-left: 18px; border-left: 1px solid #b9c4d0; padding-left: 12px; }
.tree li { position: relative; padding: 4px 0 4px 22px; }
.tree li.dir { padding-left: 22px; font-weight: 600; color: var(--navy); }
.tree li.dir::before { content: ""; position: absolute; left: 0; top: 8px; width: 15px; height: 11px; background: var(--gold); border-radius: 2px; }
.tree li.dir li:not(.dir) { font-weight: 400; color: var(--ink); }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.kpis dt { font-size: .75rem; color: var(--muted); }
.kpis dd { font-weight: 700; color: var(--navy); font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 96px; padding-bottom: 18px; }
.bars span { flex: 1; height: var(--h); background: #9fcfcb; border-radius: 3px 3px 0 0; position: relative; }
.bars span.top { background: var(--teal); }
.bars i { position: absolute; bottom: -18px; left: 0; right: 0; text-align: center; font-style: normal; font-size: .7rem; color: var(--muted); }
.result.shown { animation: reveal .45s ease-out; }
@keyframes reveal { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
#automation .note a { color: var(--teal); font-weight: 600; }
@media (max-width: 860px) {
  .auto { padding: 22px 18px; }
  .auto-head { flex-direction: column; gap: 10px; }
  .saved { text-align: left; max-width: none; }
  .demo { grid-template-columns: 1fr; }
  .run { justify-self: center; width: 100%; height: auto; padding: 14px; border-radius: 8px; }
}
@media (prefers-reduced-motion: reduce) { .result.shown { animation: none; } }
.out-note strong { color: var(--navy); }

/* ---------- Power BI-style dashboards ---------- */
:root { --s1: #0b8f86; --s2: #b07d24; --loss: #b3261e; }
.dashes { display: grid; gap: 32px; }
.dash { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 28px; min-width: 0; }
.dash-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; }
.dash-head .kind { color: var(--teal); font-weight: 600; font-size: .9rem; }
.dash-head h3 { font-family: 'Libre Baskerville', Georgia, serif; color: var(--navy); font-size: 1.3rem; margin: 2px 0 6px; }
.dash-head p { color: var(--muted); max-width: 56ch; }
.slicer { display: inline-flex; border: 1px solid #cfd7e2; border-radius: 8px; overflow: hidden; flex-wrap: wrap; }
.slicer button { font: inherit; font-size: .88rem; font-weight: 600; color: var(--muted); background: #fff; border: 0; padding: 9px 14px; cursor: pointer; }
.slicer button + button { border-left: 1px solid #cfd7e2; }
.slicer button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.slicer button:hover:not([aria-pressed="true"]) { background: var(--bg-soft); color: var(--navy); }
.dash .kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.kpi { background: var(--bg-soft); border-radius: 8px; padding: 14px 16px; }
.kpi span { display: block; font-size: .8rem; color: var(--muted); }
.kpi b { font-size: 1.45rem; color: var(--navy); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.dash-charts { display: grid; grid-template-columns: 1.25fr 1fr; gap: 20px; }
.dash-charts figure { border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px; min-width: 0; }
.dash-charts figcaption { font-weight: 600; color: var(--navy); font-size: .92rem; margin-bottom: 14px; }
.dash-note { font-size: .85rem; color: var(--muted); margin-top: 12px; }
/* horizontal bars */
.hb { display: grid; grid-template-columns: minmax(90px, 38%) 1fr auto; align-items: center; gap: 10px; padding: 4px 0; font-size: .85rem; }
.hb-l { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-track { height: 18px; position: relative; }
.hb-track i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--s1); border-radius: 0 4px 4px 0; transition: width .35s ease; }
.hb-track i.loss { background: var(--loss); }
.hb-v { font-weight: 600; color: var(--navy); font-variant-numeric: tabular-nums; min-width: 52px; text-align: right; }
.hb:hover .hb-track i { filter: brightness(1.12); }
/* grouped columns */
.cols-legend { display: flex; gap: 16px; font-size: .82rem; color: var(--muted); margin-bottom: 10px; }
.cols-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.cols-legend .s1, .cols-pair .s1 { background: var(--s1); }
.cols-legend .s2, .cols-pair .s2 { background: var(--s2); }
.cols-plot { position: relative; height: 220px; padding-left: 48px; }
.cols-grid { position: absolute; inset: 0 0 22px 0; display: flex; flex-direction: column; justify-content: space-between; }
.cols-grid div { border-top: 1px solid #edf1f5; position: relative; height: 0; }
.cols-grid div:last-child { border-top-color: #c7d0db; }
.cols-grid span { position: absolute; left: 0; top: -8px; font-size: .72rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.cols-bars { position: absolute; inset: 0 0 0 48px; display: flex; gap: 6px; }
.cols-g { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.cols-pair { flex: 1; display: flex; align-items: flex-end; justify-content: center; gap: 2px; margin-bottom: 22px; height: calc(100% - 22px); }
.cols-pair i { width: min(14px, 40%); border-radius: 4px 4px 0 0; transition: height .35s ease; }
.cols-pair i:hover { filter: brightness(1.12); }
.cols-g > span { position: absolute; bottom: 0; font-size: .72rem; color: var(--muted); width: inherit; }
.cols-g { position: relative; }
.cols-g > span { left: 0; right: 0; text-align: center; }
/* heat map */
.heat { display: grid; grid-template-columns: 34px repeat(4, 1fr); gap: 2px; font-size: .72rem; }
.heat .hh { color: var(--muted); text-align: center; padding-bottom: 4px; }
.heat .hd { color: var(--muted); align-self: center; }
.heat i { font-style: normal; text-align: center; padding: 7px 0; border-radius: 3px; color: var(--navy); font-variant-numeric: tabular-nums; }
.heat i.dark { color: #fff; }
.heat-key { display: flex; align-items: center; gap: 2px; margin-top: 10px; font-size: .72rem; color: var(--muted); }
.heat-key i { width: 22px; height: 10px; border-radius: 2px; }
.heat-key span:first-child { margin-right: 6px; } .heat-key span:last-child { margin-left: 6px; }
/* tooltip */
.dash-tip { position: fixed; z-index: 50; pointer-events: none; background: var(--navy); color: #fff; font-size: .8rem; line-height: 1.45; padding: 8px 11px; border-radius: 6px; box-shadow: 0 8px 20px rgba(11,37,69,.25); max-width: 240px; }
#data .note a { color: var(--teal); font-weight: 600; }
@media (max-width: 900px) {
  .dash-charts { grid-template-columns: 1fr; }
  .dash .kpis { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .dash { padding: 20px 14px; }
  .slicer { width: 100%; }
  .slicer button { flex: 1; padding: 9px 8px; }
  .kpi b { font-size: 1.2rem; }
  .heat .hh { font-size: .62rem; }
}
@media (prefers-reduced-motion: reduce) { .hb-track i, .cols-pair i { transition: none; } }
.price-table td.wrap-ok { white-space: normal; }
@media (max-width: 1080px) { .nav nav { gap: 20px; } .nav nav a { font-size: .9rem; } }

/* ---------- Phone menu ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; padding: 0; place-content: center; gap: 5px; }
.menu-toggle i { display: block; width: 20px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu-open .menu-toggle i:nth-child(2) { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-toggle i:nth-child(3) { opacity: 0; }
.menu-open .menu-toggle i:nth-child(4) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { border-top: 1px solid var(--line); background: #fff; padding: 8px 24px 16px; }
.mobile-menu a { display: block; padding: 13px 0; font-weight: 600; color: var(--navy); text-decoration: none; border-bottom: 1px solid var(--line); }
.mobile-menu a:last-child { border-bottom: 0; }
.mobile-menu a[aria-current="page"] { color: var(--teal); }
@media (max-width: 760px) {
  .menu-toggle { display: grid; }
  .nav nav { gap: 10px; }
}
@media (min-width: 761px) { .mobile-menu { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .menu-toggle i { transition: none; } }
.price-table td.wrap-ok { min-width: 160px; }
