@font-face { font-family: Poppins; font-style: normal; font-weight: 300; font-display: swap; src: url("/assets/poppins-300.78bc3aa7.woff2") format("woff2"); }
@font-face { font-family: Poppins; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/poppins-400.7d93459d.woff2") format("woff2"); }
@font-face { font-family: Poppins; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/poppins-500.cd36de20.woff2") format("woff2"); }
@font-face { font-family: Poppins; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/poppins-600.f4e80d9d.woff2") format("woff2"); }
@font-face { font-family: Poppins; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/poppins-700.9338e65f.woff2") format("woff2"); }

@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/3100e775e8616cd2.woff2") format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/3100e775e8616cd2.woff2") format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/3100e775e8616cd2.woff2") format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/3100e775e8616cd2.woff2") format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ===========================================================================
   Trustellar — design system
   ---------------------------------------------------------------------------
   Rebuilt around a dark, systematised enterprise look: deep navy grounds,
   an electric accent, Poppins for display and Inter for text, and a page
   that alternates dark and light bands rather than running on one cream
   ground the whole way down.

   The brand colours are Trustellar's own. The navy is the one already in the
   logo and in Trusty's header; the gold is the logo's, kept as the warm
   secondary so the site does not read as one more blue BPO page.

   Token names (--color-bg, --color-accent, --font-body, .btn, .card, .tag)
   are deliberately the ones the previous stylesheet used, so the chat widget
   and the 404 page keep working without edits.
   ========================================================================= */

:root {
  /* --- ground, darkest to lightest ------------------------------------- */
  --ink-900: #060e1f;   /* hero, footer */
  --ink-800: #0b1f4d;   /* brand navy — bands */
  --ink-700: #14305e;
  --ink-600: #1d4079;

  --paper:   #ffffff;
  --paper-2: #f4f7fc;   /* cool tinted light band */
  --paper-3: #e9eff8;

  --line:        #dee6f2;
  --line-strong: #c3d0e4;

  /* --- ink -------------------------------------------------------------- */
  --text:   #0c1527;
  --text-2: #475569;
  --text-3: #6b7a90;

  --on-dark:   #eef3fb;
  --on-dark-2: #a9bcd8;
  --on-dark-3: #7589a8;

  /* --- accents ----------------------------------------------------------- */
  --accent:        #2563eb;   /* electric blue, lifted from the brand navy */
  --accent-bright: #5b9cff;   /* for dark grounds */
  --accent-soft:   #eaf1ff;
  --gold:          #d8a94a;   /* the logo's gold, kept as the warm accent */
  --gold-soft:     #fbf3e2;

  /* Per-service hues, so seven cards read as a system rather than a list. */
  --s1: #2563eb;
  --s2: #0ea5a5;
  --s3: #7c5cf0;
  --s4: #e0574f;
  --s5: #d8872a;
  --s6: #10916b;
  --s7: #3b6fd4;

  /* --- compatibility with the chat widget and the 404 page --------------- */
  --color-bg:      var(--paper);
  --color-surface: #ffffff;
  --color-text:    var(--text);
  --color-accent:  var(--accent);
  --color-border:  var(--line);
  --color-divider: var(--line);

  --font-heading: Poppins, "Segoe UI", system-ui, sans-serif;
  --font-body: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-sm: 8px;
  --radius:    12px;
  --radius-lg: 18px;

  --edge: clamp(20px, 5vw, 64px);
  --wide: 1240px;

  --shadow-sm: 0 1px 2px rgba(12, 21, 39, .06), 0 2px 8px -4px rgba(12, 21, 39, .1);
  --shadow:    0 2px 6px rgba(12, 21, 39, .06), 0 16px 40px -20px rgba(12, 21, 39, .22);
  --shadow-lg: 0 30px 70px -32px rgba(6, 14, 31, .55);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  margin: 0;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

/* Poppins Light at display sizes is the whole look; it needs real size to
   work, so the clamps start high and the weight only climbs for emphasis. */
h1 { font-weight: 300; font-size: clamp(38px, 5.4vw, 66px); line-height: 1.06; }
h2 { font-weight: 300; font-size: clamp(28px, 3.6vw, 46px); line-height: 1.12; }
h3 { font-weight: 600; font-size: clamp(19px, 1.6vw, 23px); line-height: 1.25; letter-spacing: -0.012em; }
h4 { font-weight: 600; font-size: 16.5px; line-height: 1.3; letter-spacing: -0.008em; }

p { margin: 0; }
a { color: inherit; }

/* --- layout -------------------------------------------------------------- */
.wrap { max-width: var(--wide); margin: 0 auto; padding-inline: var(--edge); }
.section { padding-block: clamp(56px, 8vw, 112px); }
.section--tight { padding-block: clamp(40px, 5vw, 72px); }

.band-dark  { background: var(--ink-900); color: var(--on-dark); }
.band-navy  { background: var(--ink-800); color: var(--on-dark); }
.band-light { background: var(--paper); }
.band-tint  { background: var(--paper-2); }

.band-dark h1, .band-dark h2, .band-dark h3,
.band-navy h1, .band-navy h2, .band-navy h3 { color: #fff; }

/* --- eyebrow ------------------------------------------------------------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
  flex-shrink: 0;
}
.band-dark .eyebrow, .band-navy .eyebrow, .hero .eyebrow { color: var(--accent-bright); }
.eyebrow--center { justify-content: center; }

.lede { font-size: clamp(16.5px, 1.3vw, 18.5px); line-height: 1.62; color: var(--text-2); max-width: 62ch; }
.band-dark .lede, .band-navy .lede, .hero .lede { color: var(--on-dark-2); }

.measure { max-width: 60ch; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }

/* --- buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font: inherit;
  font-weight: 500;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #1d4fd0; transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.band-dark .btn-secondary, .band-navy .btn-secondary, .hero .btn-secondary {
  color: #fff; border-color: rgba(255, 255, 255, .34);
}
.band-dark .btn-secondary:hover, .band-navy .btn-secondary:hover, .hero .btn-secondary:hover {
  border-color: #fff; background: rgba(255, 255, 255, .08); color: #fff;
}
.btn-gold { background: var(--gold); color: #27200c; }
.btn-gold:hover { background: #e4b961; transform: translateY(-1px); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* --- tags ---------------------------------------------------------------- */
.tag {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 500;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
}
.tag-outline { background: transparent; border: 1px solid var(--line-strong); color: var(--text-2); }
.band-dark .tag-outline, .band-navy .tag-outline, .hero .tag-outline {
  border-color: rgba(255, 255, 255, .22); color: var(--on-dark-2);
}

/* --- cards --------------------------------------------------------------- */
/* A card is always a light island, even on a dark band or in the hero —
   without this its headings inherit the band colour and go white-on-white. */
.card, .card h3, .card h4 { color: var(--text); }
.card {
  background: var(--color-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }

/* --- announcement bar ---------------------------------------------------- */
.topbar {
  background: var(--ink-900);
  color: var(--on-dark-2);
  font-size: 13px;
  text-align: center;
  padding: 9px var(--edge);
}
.topbar a { color: var(--accent-bright); text-decoration: none; font-weight: 500; }
.topbar a:hover { text-decoration: underline; }

/* --- masthead ------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 12px max(var(--edge), calc((100% - var(--wide)) / 2 + var(--edge)));
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header__logo { margin-right: auto; display: block; }
.site-header__logo img { height: 28px; width: auto; }
.site-nav { display: flex; gap: 26px; font-size: 14.5px; }
.site-nav a { color: var(--text-2); text-decoration: none; white-space: nowrap; font-weight: 500; }
.site-nav a:hover { color: var(--accent); }
.site-nav a[aria-current="page"] { color: var(--accent); }
.site-nav__toggle, .site-nav__cta { display: none; }

@media (max-width: 900px) {
  .site-header { flex-wrap: wrap; gap: 12px; }
  .site-nav__toggle {
    display: inline-flex; align-items: center; gap: 9px;
    order: 2; margin-left: auto;
    background: none; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
    color: var(--text); font: inherit; font-size: 14px; padding: 8px 13px; cursor: pointer;
  }
  .site-nav__toggle::before {
    content: ""; width: 15px; height: 9px;
    border-top: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  }
  .site-header > .btn { display: none; }
  .site-nav {
    order: 4; flex-basis: 100%; flex-direction: column; gap: 2px;
    display: none; padding: 6px 0 4px;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 10px 2px; font-size: 15.5px; }
  .site-nav__cta { display: inline-flex; justify-content: center; margin-top: 8px; }
}

/* --- hero ---------------------------------------------------------------- */
.hero {
  position: relative;
  background:
    radial-gradient(900px 520px at 78% -8%, rgba(37, 99, 235, .36), transparent 62%),
    radial-gradient(620px 420px at 12% 108%, rgba(216, 169, 74, .16), transparent 64%),
    var(--ink-900);
  color: var(--on-dark);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(56px, 8vw, 110px);
}
.hero h1 { margin-bottom: 20px; }
.hero h1 .accent { color: var(--accent-bright); font-weight: 600; display: block; }
.hero__lede { color: var(--on-dark-2); font-size: clamp(16.5px, 1.4vw, 19px); line-height: 1.62; max-width: 52ch; margin-bottom: 28px; }
.hero__note { margin-top: 20px; font-size: 14px; color: var(--on-dark-3); }

.hero__media { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.hero__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.hero__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(37, 99, 235, .22), transparent 48%, rgba(6, 14, 31, .55));
}

/* --- stat strip ---------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat { background: var(--ink-900); padding: 22px 24px; }
.stat b {
  display: block;
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.05;
  color: #fff;
  letter-spacing: -0.02em;
}
.stat span { display: block; margin-top: 6px; font-size: 13.5px; color: var(--on-dark-2); }

/* --- client band --------------------------------------------------------- */
.clients { display: flex; flex-wrap: wrap; gap: 14px 36px; align-items: center; }
.clients li {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(15px, 1.4vw, 19px);
  color: var(--text-2);
  list-style: none;
}

/* --- service cards ------------------------------------------------------- */
.svc {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 24px;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.svc::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--hue, var(--accent));
}
.svc:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.svc__n {
  font-family: var(--font-heading);
  font-weight: 600; font-size: 12.5px; letter-spacing: .1em;
  color: var(--hue, var(--accent));
  font-variant-numeric: tabular-nums;
}
.svc h3 { color: var(--text); }
.svc p { font-size: 14.5px; line-height: 1.6; color: var(--text-2); }
.svc__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.svc__more { font-size: 14px; font-weight: 500; color: var(--hue, var(--accent)); }

/* --- numbered steps ------------------------------------------------------ */
.step { display: grid; gap: 10px; padding-top: 22px; border-top: 2px solid var(--line); }
.step__n {
  font-family: var(--font-heading);
  font-weight: 300; font-size: 36px; line-height: 1;
  color: var(--accent); font-variant-numeric: tabular-nums;
}
.step p { font-size: 14.5px; line-height: 1.62; color: var(--text-2); }

/* --- comparison columns -------------------------------------------------- */
.compare { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.col { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.col__head { padding: 16px 22px; font-family: var(--font-heading); font-weight: 600; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.col--them .col__head { background: #64748b; }
.col--us .col__head { background: var(--accent); }
.col ul { margin: 0; padding: 18px 22px 22px; list-style: none; display: grid; gap: 11px; }
.col li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 14.5px; line-height: 1.5; color: var(--text-2); }
.col li::before { content: "—"; color: var(--text-3); }
.col--us li::before { content: "✓"; color: var(--accent); font-weight: 700; }
.col--us li { color: var(--text); }

/* --- quotes -------------------------------------------------------------- */
.quote { display: grid; gap: 18px; align-content: start; }
.quote blockquote {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.38;
  letter-spacing: -0.014em;
  color: var(--text);
}
.quote figcaption { display: flex; align-items: center; gap: 12px; }
.quote img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.quote cite { font-style: normal; font-size: 14px; font-weight: 500; color: var(--text); display: block; }
.quote small { font-size: 13px; color: var(--text-3); }

/* --- contact form -------------------------------------------------------- */
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 500; color: var(--text-2); }
.input {
  font: inherit; font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff; color: var(--text);
  width: 100%;
}
.input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.btn-block { width: 100%; }

/* --- footer -------------------------------------------------------------- */
.site-footer { background: var(--ink-900); color: var(--on-dark-2); }
.site-footer a { color: var(--on-dark-2); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer h4 { color: #fff; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; font-weight: 600; }
.site-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; font-size: 14px; }
.site-footer__cols { display: grid; gap: 34px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.site-footer__base {
  margin-top: 44px; padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex; flex-wrap: wrap; gap: 10px 24px;
  font-size: 13px; color: var(--on-dark-3);
}

/* --- accessibility ------------------------------------------------------- */
:where(a, button, input, textarea, select):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}
.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: #fff; color: var(--text);
  padding: 10px 16px; border-radius: 8px; text-decoration: none;
  border: 1px solid var(--line-strong);
  transition: top .12s ease;
}
.skip-link:focus { top: 8px; }

:where([id]) { scroll-margin-top: 90px; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* --- contact form status -------------------------------------------------- */
.form-status { margin: 0; font-size: 13.5px; line-height: 1.55; }
.form-status[data-state="error"] { color: #b3261e; }
.form-status[data-state="sent"], .form-status[data-state="sending"] { color: var(--accent); }

/* --- Trusty, the chat assistant -------------------------------------------
   Colours come from the site's own tokens rather than the widget handoff's
   navy-and-gold, so the panel belongs to the page it sits on. The robot keeps
   the gold glow — it is the one warm thing on a navy header and it reads as
   "alive" at 120px.
   ------------------------------------------------------------------------- */

.trusty {
  --t-panel: 360px;
  --t-navy: #0b1f4d;
  --t-gold: #d8a94a;
  position: fixed;
  right: clamp(14px, 3vw, 24px);
  bottom: clamp(14px, 3vw, 24px);
  z-index: 900;
  font-family: var(--font-body);
}

/* --- launcher ------------------------------------------------------------ */
.trusty__launcher {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 18px 11px 14px;
  border: 1px solid color-mix(in srgb, #ffffff 22%, transparent);
  border-radius: 999px;
  background: var(--t-navy);
  color: #fff;
  font: inherit;
  font-size: 14.5px;
  cursor: pointer;
  box-shadow: 0 6px 22px rgba(11, 31, 77, .3);
  transition: transform .14s ease, box-shadow .14s ease;
}
.trusty__launcher:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(11, 31, 77, .36); }
.trusty__launcher-mark { display: flex; color: var(--t-gold); }
.trusty__launcher-mark svg { width: 22px; height: 22px; }
.trusty.is-open .trusty__launcher { opacity: 0; pointer-events: none; }

/* --- panel --------------------------------------------------------------- */
.trusty__panel {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(var(--t-panel), calc(100vw - 28px));
  max-height: min(620px, calc(100vh - 32px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(11, 31, 77, .26);
}
.trusty__panel[hidden] { display: none; }

/* --- header, with the robot --------------------------------------------- */
.trusty__header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: radial-gradient(420px 200px at 18% -40%, #16326b, var(--t-navy));
  color: #fff;
  flex-shrink: 0;
}
.trusty__stage {
  position: relative;
  width: 74px;
  height: 74px;
  flex-shrink: 0;
  margin: -6px 0 -10px;
}
.trusty__canvas { width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .5s ease; }
.trusty__stage.is-live .trusty__canvas { opacity: 1; cursor: pointer; }

/* Shown until the 3D arrives, and permanently for reduced-motion visitors. */
.trusty__fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.trusty__fallback::before {
  content: "";
  width: 34px;
  height: 26px;
  border: 1.8px solid var(--t-gold);
  border-radius: 9px;
  box-shadow: 0 -9px 0 -7.4px var(--t-gold), 0 0 14px -4px var(--t-gold);
}
.trusty__stage.is-live .trusty__fallback { opacity: 0; }

.trusty__ident { margin-right: auto; min-width: 0; }
.trusty__name { margin: 0; font-family: var(--font-heading); font-size: 15.5px; font-weight: 500; }
.trusty__role { margin: 1px 0 0; font-size: 12px; color: color-mix(in srgb, #ffffff 68%, transparent); }

.trusty__voice,
.trusty__close {
  background: none;
  border: 1px solid color-mix(in srgb, #ffffff 26%, transparent);
  border-radius: 6px;
  color: #fff;
  font: inherit;
  cursor: pointer;
  flex-shrink: 0;
}
.trusty__voice { font-size: 11.5px; padding: 4px 8px; }
.trusty__voice[aria-pressed="true"] { background: color-mix(in srgb, var(--t-gold) 22%, transparent); border-color: var(--t-gold); }
.trusty__close { font-size: 18px; line-height: 1; padding: 2px 8px 4px; border-color: transparent; }
.trusty__voice:hover, .trusty__close:hover { background: color-mix(in srgb, #ffffff 14%, transparent); }

/* --- conversation -------------------------------------------------------- */
.trusty__log {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  background: var(--color-bg);
  min-height: 120px;
}
.trusty__msg {
  max-width: 86%;
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.55;
  white-space: pre-wrap;
}
.trusty__msg--bot {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-bottom-left-radius: 3px;
  margin-right: auto;
  color: var(--color-text);
}
.trusty__msg--user {
  background: var(--color-accent);
  color: #fff;
  border-bottom-right-radius: 3px;
  margin-left: auto;
}

/* --- choices and form ---------------------------------------------------- */
.trusty__choices {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px 4px;
  border-top: 1px solid var(--color-divider);
  flex-shrink: 0;
  max-height: 46%;
  overflow-y: auto;
}
.trusty__choices:empty { display: none; }

.trusty__choice {
  text-align: left;
  padding: 9px 12px;
  border: 1px solid var(--color-border);
  border-radius: 9px;
  background: var(--color-surface);
  color: var(--color-accent);
  font: inherit;
  font-size: 13.5px;
  line-height: 1.4;
  cursor: pointer;
  transition: border-color .12s ease, background .12s ease;
}
.trusty__choice:hover { border-color: var(--color-accent); background: color-mix(in srgb, var(--color-accent) 5%, var(--color-surface)); }
.trusty__choice--primary { background: var(--color-accent); color: #fff; border-color: var(--color-accent); text-align: center; }
.trusty__choice--primary:hover { background: #0f2a63; }

.trusty__form { display: flex; flex-direction: column; gap: 8px; }
/* The way out of the form. Quieter than Send, but never hidden. */
.trusty__back { text-align: center; }
.trusty__field { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--color-text); }
.trusty__field input,
.trusty__field textarea {
  font: inherit;
  font-size: 13.5px;
  padding: 8px 10px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-surface);
  color: var(--color-text);
  width: 100%;
  resize: vertical;
}
.trusty__field input:focus, .trusty__field textarea:focus { outline: 2px solid var(--color-accent); outline-offset: 1px; border-color: transparent; }
.trusty__status { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--color-accent); }

.trusty__footnote {
  margin: 0;
  padding: 8px 14px 12px;
  font-size: 12px;
  color: color-mix(in srgb, var(--color-text) 58%, transparent);
  flex-shrink: 0;
}

.trusty :where(button, a, input, textarea):focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
.trusty__header :where(button):focus-visible { outline-color: var(--t-gold); }

/* On a phone the panel is the screen; anchoring it to the launcher would put
   it half off the bottom. */
@media (max-width: 480px) {
  .trusty { right: 12px; bottom: 12px; left: 12px; }
  .trusty__panel {
    position: fixed;
    inset: 10px 10px 10px 10px;
    width: auto;
    max-height: none;
  }
  .trusty__launcher { float: right; }
}

@media (prefers-reduced-motion: reduce) {
  .trusty__launcher { transition: none; }
  .trusty__canvas { transition: none; }
}
