/* ============================================================
   Carely.care — design system
   Deep charcoal surfaces, one teal accent, editorial rhythm.
   ============================================================ */

/* ---------------- typefaces ----------------
   Self-hosted, latin subset, variable weight. Serving our own fonts
   keeps the brand consistent, avoids a third-party request on every
   page load, and means no visitor IP address leaves for a font CDN.

   Fraunces carries the brand voice: a warm, slightly wonky serif with
   optical sizing, used only at display sizes. Manrope carries the
   interface: a clear grotesque with enough character to not read as a
   default system font. */

@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-latin-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-italic-latin-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("/fonts/manrope-latin-var.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --base: #1B1D20;
  --surface: #232629;
  --surface-2: #2A2D30;
  --line: #313539;
  --teal: #00AB83;
  --teal-dark: #0B6B56;
  --mint: #8EE8CD;
  --amber: #E5A03B;
  --red: #E5534B;
  --ink: #F2F6F5;
  --muted: #AAB5B2;
  --muted-2: #7E8A87;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 18px 40px rgba(0, 0, 0, .35);
  --wrap: 1200px;
  --font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--base);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, video, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 3px solid var(--mint);
  outline-offset: 2px;
  border-radius: 4px;
}

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.16; letter-spacing: -.015em; font-weight: 700; }

/* Display type carries the brand voice. Fraunces appears at h1 and h2
   only, so the interface itself stays in a crisp, legible grotesque. */
h1, h2 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 600;
  letter-spacing: -.021em;
  line-height: 1.1;
}
h1 { font-size: clamp(2.35rem, 4.9vw, 3.7rem); line-height: 1.06; }
h2 { font-size: clamp(1.75rem, 3vw, 2.45rem); margin-top: 0; }
h3 { font-size: 1.18rem; font-weight: 700; letter-spacing: -.008em; }
h4 { font-size: 1.02rem; font-weight: 700; letter-spacing: -.005em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.15em; }
li { margin-bottom: .45em; }
strong { font-weight: 650; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap.narrow, .narrow { max-width: 820px; }
.section { padding: 92px 0; }
.section.alt { background: var(--surface); border-block: 1px solid var(--line); }
.center { text-align: center; }
.center-actions { justify-content: center; }
.small { font-size: .92rem; }
.muted { color: var(--muted); }
.mono { font-variant-numeric: tabular-nums; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: -9999px; top: 0; background: var(--teal); color: #04231B;
  padding: 10px 16px; z-index: 100; font-weight: 600;
}
.skip:focus { left: 12px; top: 12px; }

.eyebrow {
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal); font-weight: 650; margin: 0 0 .7em;
}
.lead { font-size: 1.13rem; color: var(--muted); max-width: 66ch; }
.page-note { font-size: .9rem; color: var(--muted-2); margin-top: 1.4em; }
.callout {
  border-left: 3px solid var(--amber); background: rgba(229, 160, 59, .09);
  padding: 14px 18px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: #F4E3C7; font-size: .97rem;
}
.prose p { color: #DDE5E3; }
.prose.narrow { max-width: 68ch; }

/* ---------------- header ---------------- */

.site-head {
  position: sticky; top: 0; z-index: 40;
  background: linear-gradient(180deg, rgba(35, 38, 41, .96), rgba(27, 29, 32, .93));
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .03), 0 10px 30px rgba(0, 0, 0, .34);
}
.head-inner { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: 0 0 auto; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 30px; height: auto; }
.brand-word { width: 96px; height: auto; }

/* Primary navigation — a set of shaded, weighted buttons.
   Weight, inset highlight and a defined pressed/current state read as a
   product control surface rather than a row of text links. */

.site-nav { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.site-nav ul { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.site-nav li { margin: 0; }

.nav-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 9px 13px; border-radius: var(--radius-sm);
  font-size: .89rem; font-weight: 700; letter-spacing: .005em; line-height: 1;
  white-space: nowrap; color: var(--ink);
  background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .012)), var(--surface-2);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 1px 2px rgba(0, 0, 0, .3);
  transition: background-color .16s ease, border-color .16s ease, color .16s ease,
    transform .16s ease, box-shadow .16s ease;
}
.nav-btn:hover {
  color: #fff; text-decoration: none; transform: translateY(-1px);
  border-color: #41474C;
  background: linear-gradient(180deg, rgba(255, 255, 255, .095), rgba(255, 255, 255, .03)), var(--surface-2);
}
.nav-btn[aria-current="page"] {
  color: var(--mint);
  border-color: rgba(0, 171, 131, .55);
  background: linear-gradient(180deg, rgba(0, 171, 131, .24), rgba(0, 171, 131, .1)), var(--surface-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 4px 14px rgba(0, 171, 131, .18);
}

.nav-toggle {
  display: none; margin-left: auto; cursor: pointer; position: relative;
  width: 46px; height: 42px; border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015)), var(--surface-2);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}
.nav-toggle:hover { border-color: #41474C; }
.nav-toggle span[aria-hidden]::before {
  content: ""; position: absolute; inset: 13px 12px auto 12px; height: 2px;
  background: var(--ink); box-shadow: 0 7px 0 var(--ink), 0 -7px 0 var(--ink);
}

/* ---------------- buttons, chips, pills ---------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: var(--radius-sm); font-size: .95rem; font-weight: 700;
  letter-spacing: .01em; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform .16s ease, background-color .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(180deg, #10C69A, #009974); color: #06231B;
  border-color: rgba(0, 0, 0, .22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 6px 18px rgba(0, 171, 131, .26);
}
.btn-primary:hover {
  background: linear-gradient(180deg, #14D6A7, #00A87F); color: #06231B;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .32), 0 9px 24px rgba(0, 171, 131, .34);
}
.btn-ghost {
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .012)), var(--surface-2);
  color: var(--ink); border-color: var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}
.btn-ghost:hover { border-color: #454B50; color: #fff; }
.btn-sm { padding: 10px 18px; font-size: .89rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.chip {
  background: var(--surface-2); border: 1px solid var(--line); color: var(--ink);
  border-radius: var(--radius-sm); padding: 9px 15px; font-size: .89rem; font-weight: 600; cursor: pointer;
  font-family: inherit; transition: border-color .15s ease, color .15s ease, background-color .15s ease;
}
.chip:hover { border-color: var(--teal); color: var(--teal); }
.chip.is-active { background: rgba(0, 171, 131, .14); border-color: var(--teal); color: var(--mint); }

.pill {
  display: inline-block; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase;
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px; color: var(--muted);
}
.pill.live { border-color: var(--teal); color: var(--mint); }

/* ---------------- hero ---------------- */

.hero { padding: 74px 0 0; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: center; }
.hero-copy h1 { margin-bottom: .38em; max-width: 24ch; }

/* The one editorial flourish: the promise in italic display type. */
.hero-copy h1 .accent {
  font-style: italic; font-weight: 500; color: var(--mint);
  letter-spacing: -.015em; white-space: nowrap;
}

.mission {
  font-family: var(--font-display); font-style: italic;
  font-size: 1.16rem; line-height: 1.5; color: var(--muted);
}
.mission strong { color: var(--ink); font-weight: 600; }
.hero-note { font-size: .88rem; color: var(--muted-2); margin-top: 18px; }
.hero-art picture {
  display: block; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.hero-art img { display: block; width: 100%; height: auto; }

.status-strip {
  list-style: none; margin: 56px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.status-strip li { background: var(--surface); padding: 18px 20px; display: grid; gap: 4px; }
.status-strip .s-label { font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); }
.status-strip .s-value { font-weight: 650; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted-2); display: inline-block; }
.dot.live { background: var(--teal); box-shadow: 0 0 0 3px rgba(0, 171, 131, .18); }
.dot.warn { background: var(--amber); }

/* ---------------- page head ---------------- */

.page-head { padding: 76px 0 8px; border-bottom: 1px solid var(--line); }
.page-head .lead { margin-bottom: 8px; }
.page-head + .section { padding-top: 64px; }

/* ---------------- film ---------------- */

.film { margin: 30px 0 0; }
.film-thumb {
  position: relative; display: block; width: 100%; padding: 0; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; background: #000; cursor: pointer;
}
.film-thumb img { width: 100%; opacity: .86; transition: opacity .2s ease, transform .4s ease; }
.film-thumb:hover img { opacity: 1; transform: scale(1.01); }
.film-play {
  position: absolute; inset: 0; display: grid; place-items: center; color: #04231B;
}
.film-play svg {
  background: var(--teal); border-radius: 50%; padding: 17px; width: 62px; height: 62px;
  box-shadow: 0 10px 30px rgba(0, 171, 131, .35);
}
.film-badge {
  position: absolute; left: 16px; bottom: 16px; background: rgba(27, 29, 32, .82);
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 13px; font-size: .8rem; color: var(--ink);
}
figcaption { color: var(--muted); font-size: .9rem; margin-top: 12px; }

.modal {
  position: fixed; inset: 0; background: rgba(10, 11, 12, .92); display: none;
  place-items: center; padding: 24px; z-index: 60;
}
.modal.open { display: grid; }
.modal-inner { width: min(1000px, 100%); }
.modal video { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); background: #000; }
.modal-close {
  position: absolute; top: 18px; right: 22px; background: transparent; border: 1px solid var(--line);
  color: var(--ink); width: 42px; height: 42px; border-radius: 50%; font-size: 1.4rem; cursor: pointer;
}
.modal-note { color: var(--muted); font-size: .88rem; margin-top: 12px; }

/* ---------------- cards, grids, panels ---------------- */

.grid { display: grid; gap: 22px; margin-top: 34px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column;
}
.card h3 { margin-bottom: .5em; }
.card p { color: var(--muted); font-size: .97rem; }
.card-foot { margin: auto 0 0; font-size: .93rem; }
.card-foot a { font-weight: 600; }

.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
}
.panel h3 { color: var(--mint); }
.panel.urgent { border-color: rgba(229, 83, 75, .5); }
.panel.urgent h3 { color: #FFB3AE; }

.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
.split h3 { margin-top: 1.6em; }
.split .panel { position: sticky; top: 92px; }

.check-list { list-style: none; padding: 0; }
.check-list li { padding-left: 28px; position: relative; color: #DDE5E3; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: var(--teal); font-weight: 700;
}
.check-list.danger li::before { content: "✕"; color: var(--red); }

.ticks { list-style: none; padding: 0; }
.ticks li { padding-left: 24px; position: relative; font-size: .95rem; color: var(--muted); }
.ticks li::before { content: "—"; position: absolute; left: 0; color: var(--teal); }

.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li { counter-increment: step; padding-left: 42px; position: relative; margin-bottom: 1.1em; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 2px; width: 26px; height: 26px;
  display: grid; place-items: center; border-radius: 50%; background: rgba(0, 171, 131, .16);
  color: var(--mint); font-size: .82rem; font-weight: 700;
}

.triggers { list-style: none; padding: 0; display: grid; gap: 10px; }
.triggers li {
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--red);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 13px 18px; font-size: .97rem;
}

/* ---------------- tables ---------------- */

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); margin: 26px 0; }
.data-table { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 640px; }
.data-table th, .data-table td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table thead th {
  background: var(--surface-2); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); font-weight: 650;
}
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: rgba(255, 255, 255, .015); }
.data-table td.ref { color: var(--mint); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------------- KPIs and charts ---------------- */

.kpi-row { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 30px 0 14px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.k-label { display: block; font-size: .84rem; color: var(--muted); margin-bottom: 6px; }
.k-value { display: block; font-size: 1.9rem; font-weight: 700; letter-spacing: -.02em; }
.k-trend { display: block; font-size: .82rem; color: var(--muted-2); }
.k-trend.up { color: var(--mint); }

.charts { align-items: start; }
.chart { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 0; }
.chart figcaption { margin-top: 8px; }
.bar-label { fill: var(--muted-2); font-size: 8.5px; font-family: var(--font); }
.bar-value { fill: var(--ink); font-size: 9px; font-family: var(--font); }
.donut-value { fill: var(--ink); font-size: 30px; font-weight: 700; font-family: var(--font); }
.donut-label { fill: var(--muted); font-size: 10px; font-family: var(--font); }

/* ---------------- pipeline ---------------- */

.pipeline { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 30px 0; counter-reset: none; }
.stage {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; position: relative;
}
.stage.human { border-color: var(--amber); background: rgba(229, 160, 59, .07); }
.stage-n { font-size: .78rem; letter-spacing: .12em; color: var(--muted-2); }
.stage h3 { font-size: 1.02rem; margin: .35em 0 .4em; }
.stage p { color: var(--muted); font-size: .92rem; margin: 0; }
.stage-flag {
  display: inline-block; margin-top: 12px; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  color: #F4E3C7; border: 1px solid var(--amber); border-radius: 999px; padding: 3px 10px;
}

.diagram { margin: 34px 0 0; }
.diagram img {
  width: 100%; background: #F7FAF9; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px;
}
.diagram.tall img { padding: 10px; }

/* ---------------- CTA band ---------------- */

.cta-band { background: linear-gradient(140deg, rgba(0, 171, 131, .16), rgba(0, 171, 131, .02)); border-block: 1px solid var(--line); padding: 58px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-inner h2 { margin-bottom: .3em; }
.cta-inner p { color: var(--muted); margin: 0; max-width: 62ch; }

/* ---------------- forms ---------------- */

.form-panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
}
.enquiry-form { margin-top: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: .9rem; color: #DDE5E3; font-weight: 600; }
.field .opt { color: var(--muted-2); font-weight: 400; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
input[type="text"], input[type="email"], select, textarea {
  width: 100%; background: var(--base); border: 1px solid var(--line); color: var(--ink);
  border-radius: var(--radius-sm); padding: 12px 14px; font: inherit; font-size: .96rem;
}
input:focus, select:focus, textarea:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 3px rgba(0, 171, 131, .18); }
textarea { resize: vertical; min-height: 92px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); margin: 6px 0 18px; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--teal); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-status { margin: 0; font-size: .92rem; }
.form-status.ok { color: var(--mint); }
.form-status.error { color: #FFB3AE; }
.form-note { font-size: .86rem; color: var(--muted-2); margin-top: 14px; }
.contact-line { font-size: .97rem; color: var(--muted); }

.counter {
  display: inline-block; background: rgba(0, 171, 131, .12); border: 1px solid var(--teal);
  color: var(--mint); border-radius: 999px; padding: 7px 16px; font-size: .9rem; margin: 6px 0 4px;
}
.reference { font-size: 1.5rem; font-weight: 700; letter-spacing: .04em; color: var(--mint); }

/* ---------------- chat ---------------- */

.chat-layout { display: grid; grid-template-columns: 1.35fr .65fr; gap: 34px; align-items: start; }
.chat-shell {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; min-height: 620px;
}
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.chat-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.chat-id { display: flex; flex-direction: column; line-height: 1.35; }
.chat-id strong { font-size: .98rem; }
.chat-status { font-size: .78rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.chat-head-actions { margin-left: auto; display: flex; gap: 8px; }
.chat-body { flex: 1; padding: 20px 18px; display: flex; flex-direction: column; gap: 14px; overflow-y: auto; max-height: 460px; }

.msg { display: flex; gap: 10px; align-items: flex-start; }
.msg .avatar { width: 32px; height: 32px; border-radius: 50%; flex: 0 0 32px; object-fit: cover; }
.msg .bubble {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 15px; font-size: .95rem; max-width: 78%; color: #E6EDEB;
}
.msg.user { justify-content: flex-end; }
.msg.user .bubble { background: rgba(0, 171, 131, .16); border-color: rgba(0, 171, 131, .45); color: var(--ink); }
.msg.system .bubble { background: transparent; border-style: dashed; color: var(--muted); font-size: .88rem; }
.msg .bubble p:last-child { margin-bottom: 0; }
.typing .bubble i {
  display: inline-block; width: 6px; height: 6px; margin-right: 4px; border-radius: 50%;
  background: var(--muted); animation: blink 1.2s infinite ease-in-out;
}
.typing .bubble i:nth-child(2) { animation-delay: .18s; }
.typing .bubble i:nth-child(3) { animation-delay: .36s; }
@keyframes blink { 0%, 60%, 100% { opacity: .3; } 30% { opacity: 1; } }

.chat-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); }
.chat-input { display: flex; gap: 10px; padding: 12px 16px 16px; }
.chat-input input { flex: 1; }
.chat-head-actions .mini-btn, .summary-actions .mini-btn { font-size: .82rem; padding: 7px 12px; }

.cap-list { list-style: none; padding: 0; display: grid; gap: 6px; margin-bottom: 20px; }
.cap-list button {
  width: 100%; text-align: left; background: transparent; border: 1px solid var(--line);
  color: var(--ink); border-radius: var(--radius-sm); padding: 10px 13px; font: inherit; font-size: .9rem; cursor: pointer;
}
.cap-list button:hover { border-color: var(--teal); color: var(--mint); }
.cap-list .ico { margin-right: 9px; }
.side-h { font-size: 1.05rem; }
.side-note { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; }
.side-note h3 { font-size: .95rem; margin-bottom: .4em; }
.side-note.urgent { border-color: rgba(229, 83, 75, .45); }
.side-note.urgent h3 { color: #FFB3AE; }

.summary-card { background: var(--base); border: 1px solid var(--teal); border-radius: var(--radius); padding: 15px; }
.summary-card h4 { margin-bottom: .5em; color: var(--mint); font-size: .98rem; }
.summary-card table { width: 100%; border-collapse: collapse; font-size: .88rem; margin-bottom: 8px; }
.summary-card td { padding: 5px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.summary-card td:first-child { color: var(--muted); width: 42%; padding-right: 10px; }
.summary-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.mini-btn {
  background: transparent; border: 1px solid var(--line); color: var(--ink); border-radius: 999px;
  padding: 7px 13px; font-size: .84rem; cursor: pointer; font-family: inherit;
}
.mini-btn:hover { border-color: var(--teal); color: var(--mint); }
.mini-btn.alt { color: var(--muted); }

/* ---------------- filters ---------------- */

.filter-bar { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 10px; }
.cap-card { padding: 22px; }
.cap-top { display: flex; align-items: center; gap: 10px; margin-bottom: .5em; }
.cap-ico { font-size: 1.15rem; }
.cap-top h3 { margin: 0; font-size: 1.06rem; }
.cap-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; }
.tag {
  font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2);
  border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px;
}

/* ---------------- footer ---------------- */

.site-foot { border-top: 1px solid var(--line); background: var(--surface); padding: 58px 0 30px; margin-top: 0; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 34px; }
.foot-lockup { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.foot-lockup .brand-mark { width: 34px; }
.foot-lockup .brand-word { width: 110px; }
.strap { color: var(--mint); font-size: .95rem; }
.foot-h { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); }
.foot-links { list-style: none; padding: 0; }
.foot-links a { color: var(--muted); font-size: .94rem; }
.foot-links a:hover { color: var(--teal); }
.foot-base { display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); margin-top: 40px; padding-top: 22px; flex-wrap: wrap; }

/* ---------------- responsive ---------------- */

@media (max-width: 1300px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 18px 24px 24px; flex-direction: column; align-items: stretch; gap: 12px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
  }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 8px; }
  .nav-btn { width: 100%; justify-content: flex-start; padding: 13px 15px; font-size: .95rem; }
  .site-nav .btn { width: 100%; }
}

@media (max-width: 1080px) {
  .hero-grid, .split, .chat-layout { grid-template-columns: 1fr; }
  .grid-3, .pipeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
  .split .panel { position: static; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .status-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .section { padding: 60px 0; }
  .grid-2, .grid-3, .pipeline, .kpi-row, .field-row { grid-template-columns: 1fr; }
  .status-strip { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .chat-shell { min-height: 540px; }
  .msg .bubble { max-width: 88%; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
/* ---------------- social channels ---------------- */

.social-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 18px 0 0; }
.social-list li { margin: 0; }
.social-list a {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .74rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 13px; text-decoration: none;
  transition: color .16s ease, border-color .16s ease, background-color .16s ease, transform .16s ease;
}
.social-list a::after { content: "\2197"; font-size: .9em; opacity: .55; }
.social-list a:hover {
  color: var(--mint); border-color: rgba(0, 171, 131, .55);
  background: rgba(0, 171, 131, .12); transform: translateY(-1px); text-decoration: none;
}

/* ---------------- voice briefing player ---------------- */

.audio-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px; margin: 30px 0 0;
}
.audio-card h3 { margin: 0 0 .35rem; }
.audio-card audio { width: 100%; margin-top: 16px; display: block; filter: saturate(120%); }
.audio-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 16px; }
.transcript-turn { margin: 0 0 1.15rem; color: #DDE5E3; }
.transcript-turn .who {
  display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal); margin-bottom: .25rem; font-weight: 650;
}
@media (max-width: 640px) {
  .social-list a { padding: 7px 11px; font-size: .7rem; }
  .audio-card { padding: 18px; }
}

/* ---------------- audio briefing player ----------------
   A real play control instead of the browser's default chrome. Without
   JavaScript the native element is shown instead, so the briefing still
   plays on click everywhere. */

.player {
  display: flex; align-items: center; gap: 18px;
  margin-top: 18px; padding: 16px 18px;
  background: var(--base); border: 1px solid var(--line);
  border-radius: var(--radius);
}
.player-btn {
  flex: none; width: 64px; height: 64px; border-radius: 50%;
  border: 0; background: var(--teal); color: #04231A;
  display: grid; place-items: center; cursor: pointer;
  transition: background .15s ease, transform .12s ease;
}
.player-btn:hover { background: var(--mint); }
.player-btn:active { transform: scale(.96); }
.player-btn:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }
.player-btn svg { width: 22px; height: 22px; display: block; }
.player-icon-pause { display: none; }
.player.is-playing .player-icon-play { display: none; }
.player.is-playing .player-icon-pause { display: block; }

.player-main { flex: 1 1 auto; min-width: 0; }
.player-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; margin-bottom: 10px;
}
.player-title { font-weight: 700; font-size: 16px; color: var(--ink); }
.player-time {
  font-size: 13px; color: var(--muted);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.player-track {
  position: relative; height: 8px; border-radius: 999px;
  background: var(--surface-2); overflow: hidden; cursor: pointer;
}
.player-fill {
  position: absolute; top: 0; bottom: 0; left: 0; width: 0;
  background: var(--teal); border-radius: 999px;
}
.player audio { display: none; }

/* No JavaScript: fall back to the native control. */
html:not(.js) .player { display: block; }
html:not(.js) .player-btn,
html:not(.js) .player-main { display: none; }
html:not(.js) .player audio { display: block; width: 100%; }

@media (max-width: 560px) {
  .player { gap: 14px; padding: 14px; }
  .player-btn { width: 56px; height: 56px; }
}
