/* ---------------------------------------------------------------- tokens */

:root {
  --paper: #fafbf8;
  --card: #ffffff;
  --raised: #eaefed;
  --ink: #0d1614;
  --body: #2b3936;
  --muted: #5d716d;
  --line: #d9e2df;
  --rule: #b6c6c2;

  --brand: #0d5f57;
  --brand-ink: #0a4a44;
  --brand-wash: #e2eeeb;
  --signal: #c4521a;

  --ehr: #00695c;
  --pos: #1d7a6c;
  --business: #0f766e;
  --ai: #6b4fa8;

  --foot-bg: #0d1614;
  --foot-ink: #b9cac6;
  --foot-link: #dcebe7;
  --foot-label: #7e9691;
  --foot-line: #22332f;

  --shadow-sm: 0 1px 2px rgba(13, 22, 20, .06);
  --shadow: 0 2px 4px rgba(13, 22, 20, .04), 0 18px 40px -22px rgba(13, 22, 20, .35);
  --shadow-lg: 0 24px 70px -32px rgba(7, 52, 47, .35);

  --measure: 38rem;
  --gutter: clamp(1.15rem, 4vw, 3.5rem);

  --display: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --serif: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0a1211;
    --card: #101b19;
    --raised: #16241f;
    --ink: #e8f1ef;
    --body: #b7c7c3;
    --muted: #869b97;
    --line: #1f2f2c;
    --rule: #33463f;

    --brand: #55c1b0;
    --brand-ink: #79d4c4;
    --brand-wash: #14302b;
    --signal: #e08a4e;

    --ehr: #3fb3a2;
    --pos: #4dbfa9;
    --business: #4cc0b0;
    --ai: #a48ada;

    --foot-bg: #060d0c;
    --foot-ink: #9fb2ae;
    --foot-link: #d3e5e1;
    --foot-label: #6d827e;
    --foot-line: #182523;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .5);
    --shadow: 0 2px 4px rgba(0, 0, 0, .3), 0 12px 28px -20px rgba(0, 0, 0, .9);
  }
}

:root[data-theme="dark"] {
  --paper: #0a1211;
  --card: #101b19;
  --raised: #16241f;
  --ink: #e8f1ef;
  --body: #b7c7c3;
  --muted: #869b97;
  --line: #1f2f2c;
  --rule: #33463f;

  --brand: #55c1b0;
  --brand-ink: #79d4c4;
  --brand-wash: #14302b;
  --signal: #e08a4e;

  --ehr: #3fb3a2;
  --pos: #4dbfa9;
  --business: #4cc0b0;
  --ai: #a48ada;

  --foot-bg: #060d0c;
  --foot-ink: #9fb2ae;
  --foot-link: #d3e5e1;
  --foot-label: #6d827e;
  --foot-line: #182523;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .5);
  --shadow: 0 2px 4px rgba(0, 0, 0, .3), 0 12px 28px -20px rgba(0, 0, 0, .9);
}

/* ------------------------------------------------------------- baseline */

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
  letter-spacing: -.022em;
  line-height: 1.12;
}

h1 { font-size: clamp(2.35rem, 6vw, 4rem); font-weight: 700; letter-spacing: -.034em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.15rem); font-weight: 700; }
h3 { font-size: 1.1875rem; font-weight: 600; letter-spacing: -.012em; }
h4 { font-size: .9375rem; font-weight: 600; }

p { margin: 0; }
ul, ol { margin: 0; padding-left: 1.15rem; display: flex; flex-direction: column; gap: .5rem; }
li::marker { color: var(--rule); }

a { color: var(--brand); text-underline-offset: 2px; text-decoration-thickness: 1px; }
a:hover { color: var(--brand-ink); }

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

strong { color: var(--ink); font-weight: 600; }
img { max-width: 100%; height: auto; display: block; }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }

.skip {
  position: absolute; left: -9999px; top: .5rem; z-index: 20;
  background: var(--ink); color: var(--paper); padding: .6rem 1rem; border-radius: 3px;
  font-family: var(--display); font-size: .875rem;
}
.skip:focus { left: .5rem; }

/* --------------------------------------------------------------- layout */

.shell { max-width: 82rem; margin: 0 auto; padding-inline: var(--gutter); }
.narrow { max-width: var(--measure); }

.band { padding-block: clamp(3.25rem, 7vw, 5.5rem); }
.band + .band { border-top: 1px solid var(--line); }
.band--wash { background: var(--brand-wash); }
.band--sunk { background: var(--raised); }
.band--brand { background: #074c46; color: #cce1dc; border-top: 0 !important; }
.band--brand h2 { color: #fff; }
.band--brand .eyebrow { color: #8bddd0; }
.band--brand .lede { color: #deeeeb; }

.stack { display: flex; flex-direction: column; gap: 1.15rem; }
.stack--wide { gap: 2rem; }
.stack--tight { gap: .55rem; }

.lede { font-size: 1.1875rem; line-height: 1.55; color: var(--muted); max-width: 34rem; }

.eyebrow {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0;
}
.eyebrow__dot { display: inline-block; width: .48rem; height: .48rem; border-radius: 50%; background: #42b6a5; box-shadow: 0 0 0 .28rem color-mix(in srgb, #42b6a5 18%, transparent); margin-right: .25rem; }

.sectionhead { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; }
.textlink { flex: none; font-family: var(--display); font-size: .9rem; font-weight: 600; text-decoration: none; padding-bottom: .2rem; border-bottom: 1px solid var(--rule); }

.grid { display: grid; gap: 1rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
/* Two up on a wide screen. auto-fit would make three columns there, which
   leaves the fourth product card stranded on a row of its own. */
@media (min-width: 56rem) { .grid--2 { grid-template-columns: 1fr 1fr; } }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }

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

.masthead {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}

.masthead__in {
  max-width: 82rem; margin: 0 auto; padding-inline: var(--gutter);
  display: flex; align-items: center; gap: 1rem; min-height: 5.25rem;
}

.wordmark {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--display); font-weight: 700; font-size: 1.0625rem;
  letter-spacing: -.028em; color: var(--ink); text-decoration: none;
  margin-right: auto;
}
.wordmark:hover { color: var(--ink); }
.wordmark em { font-style: normal; font-weight: 500; color: var(--muted); }

.mark { width: 1.1rem; height: 1.1rem; flex: none; }

.mainnav { display: flex; align-items: center; gap: .1rem; flex-wrap: wrap; }
.mainnav a {
  font-family: var(--display); font-size: .875rem; font-weight: 600;
  color: var(--muted); text-decoration: none;
  padding: .45rem .7rem; border-radius: 999px;
}
.mainnav a:hover { color: var(--brand); background: var(--brand-wash); }
.mainnav a[aria-current="page"] { color: var(--brand); background: var(--brand-wash); }

.navcta {
  display: inline-flex; align-items: center; gap: .45rem; flex: none;
  font-family: var(--display); font-size: .82rem; font-weight: 600;
  padding: .55rem .85rem; border-radius: 8px; text-decoration: none;
  background: var(--brand); color: #fff;
}
.navcta:hover { background: var(--brand-ink); color: #fff; }
.navcta__short { display: none; }

@media (max-width: 52rem) {
  .masthead__in { flex-wrap: wrap; padding-block: .7rem; min-height: 0; }
  .mainnav { order: 3; width: calc(100% + 1.4rem); gap: .15rem; margin-inline: -.7rem; overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap; }
  .mainnav::-webkit-scrollbar { display: none; }
  .mainnav a { white-space: nowrap; }
  .navcta { margin-left: auto; }
}
@media (max-width: 29rem) {
  .mainnav { width: 100%; margin-inline: 0; justify-content: space-between; gap: 0; }
  .mainnav a { padding: .5rem .4rem; font-size: .72rem; min-height: 2.75rem; display: inline-flex; align-items: center; }
  .navcta__full { display: none; }
  .navcta__short { display: inline; }
}

/* -------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--display); font-size: .9375rem; font-weight: 600;
  padding: .78rem 1.25rem; border-radius: 9px; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .12s ease, background-color .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn--solid { background: var(--brand); color: var(--paper); }
.btn--solid:hover { background: var(--brand-ink); color: var(--paper); }
.btn--line { border-color: var(--rule); color: var(--ink); background: transparent; }
.btn--line:hover { border-color: var(--brand); color: var(--brand); }
.btn--light { background: #fff; color: #074c46; }
.btn--light:hover { background: #e9f5f2; color: #074c46; }

.btnrow { display: flex; flex-wrap: wrap; gap: .65rem; }

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

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

.hero { padding-block: clamp(3.5rem, 9vw, 7rem) clamp(3rem, 6vw, 5rem); }
.hero h1 { max-width: 18ch; }
.hero__grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: end; }
@media (min-width: 60rem) { .hero__grid { grid-template-columns: 1.35fr 1fr; } }
.hero--home { position: relative; }
.hero--home::before {
  content: ""; position: absolute; z-index: -1; width: 34rem; height: 34rem;
  right: -15rem; top: -15rem; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--brand) 12%, transparent), transparent 68%);
}
.hero--home h1 span { color: var(--brand); }
.hero__proof { display: flex; flex-wrap: wrap; gap: .45rem 1.15rem; margin-top: .5rem; color: var(--muted); font-family: var(--display); font-size: .76rem; font-weight: 600; }
.hero__proof span { position: relative; padding-left: .9rem; }
.hero__proof span::before { content: ""; position: absolute; left: 0; top: .46em; width: .35rem; height: .35rem; border-radius: 50%; background: var(--brand); }

/* Homepage product composition: illustrative workflows, never customer data. */
.hero--home { max-width: none; padding-inline: max(var(--gutter), calc((100vw - 82rem) / 2 + var(--gutter))); padding-block: clamp(2.5rem, 5vh, 3.75rem) clamp(2.5rem, 5vh, 3.5rem); background: radial-gradient(ellipse at 80% 45%, var(--brand-wash), transparent 58%); overflow: hidden; }
.hero--home::before { display: none; }
.homehero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.homehero__copy { gap: 1.4rem; }
.homehero__copy h1 { font-size: clamp(3rem, 4.4vw, 4.1rem); max-width: none; line-height: 1.04; letter-spacing: -.035em; word-spacing: .04em; text-wrap: initial; }
.homehero__copy .lede { max-width: 30rem; font-size: 1.125rem; line-height: 1.65; }
.homehero__copy .eyebrow { font-size: .7rem; letter-spacing: .13em; }
.homehero__actions { margin-top: .25rem; }
.homehero__location { font-size: .8125rem; color: var(--muted); }
.homehero__location span { padding-inline: .5rem; }
.product-scene { position: relative; isolation: isolate; display: grid; grid-template-columns: .85fr 1.15fr; gap: 1rem; padding: .5rem 0; }
.product-scene__orbit { position: absolute; inset: -1rem -2rem; border: 1px solid var(--line); border-radius: 50%; transform: rotate(-25deg); z-index: -1; }
.product-scene__orbit::after { content: ''; position: absolute; inset: 2rem -1.5rem; border: 1px solid var(--line); border-radius: 50%; }
.showcase { display: block; text-decoration: none; border-radius: 18px; padding: 1.3rem 1.4rem; position: relative; box-shadow: 0 18px 40px -25px #063b3740; transition: transform .2s ease, box-shadow .2s ease; }
.showcase:hover { transform: translateY(-5px); box-shadow: 0 24px 45px -25px #063b3760; }
.showcase--ehr { grid-column: 1 / -1; background: #0c4942; color: #fff; margin-right: 1.5rem; }
.showcase--ehr:hover { color: #fff; }
.showcase__heading { display: flex; gap: .8rem; align-items: center; }
.showcase__heading > span:nth-child(2):not(.showcase__arrow) { flex: 1; }
.showcase__icon { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 12px; background: #ffffff18; }
.showcase svg, .pcard svg { width: 1.4rem; height: 1.4rem; }
.showcase small { display: block; font: .66rem var(--mono); letter-spacing: .12em; margin-bottom: .35rem; }
.showcase strong { display: block; font: 600 1.2rem/1.25 var(--display); color: inherit; letter-spacing: -.025em; }
.showcase p { font-size: .9rem; line-height: 1.45; margin-top: .6rem; opacity: .88; }
.showcase__arrow { margin-left: auto; font-size: 1.2rem; }
.care-flow { display: flex; align-items: center; gap: .5rem; margin-block: 1rem; font-size: .78rem; font-weight: 500; }
.care-flow span { border: 1px solid #ffffff30; background: #ffffff09; border-radius: 6px; padding: .45rem .5rem; flex: 1; text-align: center; }
.care-flow i { font-style: normal; color: #91c5a7; }
.showcase__bottom { display: flex; align-items: center; gap: .4rem; font-size: .72rem; color: #c2dcd6; border-top: 1px solid #ffffff22; padding-top: .8rem; }
.showcase__bottom > span:last-child { margin-left: auto; }
.status-dot { width: .35rem; height: .35rem; border-radius: 50%; background: #bde687; }
.showcase--pos { background: #e8edcf; color: #334631; margin-top: .3rem; transform: rotate(-1.5deg); }
.showcase--pos:hover { color: #334631; transform: rotate(0deg) translateY(-5px); }
.showcase--pos .showcase__icon { background: #d6dfb6; margin-bottom: .8rem; }
.showcase--pos > .showcase__arrow { position: absolute; right: 1.4rem; top: 1.3rem; }
.stock-art { display: flex; gap: .35rem; align-items: end; height: 2.6rem; margin-block: .6rem; border-bottom: 1px solid #33463130; padding: 0 .2rem .3rem; }
.stock-art i { width: 20%; height: 65%; background: #6d8855; border-radius: 3px 3px 0 0; }
.stock-art i:nth-child(2n) { height: 90%; background: #9aaf79; }
.stock-art i:nth-child(3) { height: 45%; }
.showcase__tag { font-size: .72rem; }
.showcase--business { background: var(--card); color: var(--ink); border: 1px solid var(--line); margin-top: .8rem; }
.showcase--business:hover { color: var(--ink); }
.showcase--business .showcase__icon { background: var(--brand-wash); color: var(--brand); }
.showcase--business .showcase__heading { margin-bottom: .8rem; }
.message-art { display: flex; flex-direction: column; gap: .45rem; margin-top: 1rem; font-size: .76rem; }
.message-art span { background: var(--raised); border-radius: 8px 8px 8px 0; padding: .5rem .65rem; align-self: start; }
.message-art span:last-child { background: var(--brand-wash); align-self: end; border-radius: 8px 8px 0 8px; }
.message-art b { color: var(--brand); padding-left: .3rem; }
.scene-ai { grid-column: 1 / -1; justify-self: center; display: flex; align-items: center; gap: .7rem; background: var(--card); border: 1px solid var(--line); padding: .7rem 1rem; border-radius: 99px; text-decoration: none; font-size: .84rem; margin-top: .1rem; }
.scene-ai svg { width: 1.1rem; height: 1.1rem; display: block; color: var(--ai); }
.scene-ai strong { font-weight: 500; }
.trustbar__number { font: .72rem var(--mono); color: var(--brand) !important; margin-bottom: .45rem; }
.homeproof { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem 1.1rem; padding-block: 1.1rem; border-bottom: 1px solid var(--line); font-size: .875rem; color: var(--muted); }
.homeproof__label { color: var(--ink); font-weight: 600; }
.homeproof a { margin-left: auto; text-decoration: none; }
@media (max-width: 60rem) {
  .homehero__grid { gap: 2rem; }
  .homehero__copy h1 { font-size: 3.3rem; }
  .showcase { padding: 1rem; }
  .showcase__bottom > span:last-child { display: none; }
}
@media (max-width: 48rem) {
  .hero--home { padding-block: 3rem; }
  .homehero__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .homehero__copy { max-width: 34rem; }
  .homehero__copy h1 { font-size: clamp(2.8rem, 9vw, 4rem); }
  .product-scene { width: 100%; max-width: 32rem; justify-self: center; }
  .homeproof a { width: 100%; margin-left: 0; }
  .homehero__actions .btn { flex: 1 1 12rem; }
  .foot { padding-bottom: 5.5rem; }
}
@media (max-width: 24rem) {
  .product-scene { gap: .6rem; }
  .showcase strong { font-size: 1rem; }
  .care-flow { gap: .3rem; }
  .care-flow span { padding-inline: .3rem; }
  .showcase__tag { font-size: .66rem; }
  .care-flow { font-size: .7rem; }
}
@media (prefers-reduced-motion: reduce) { .showcase { transition: none; } }

/* The credentials ledger. The registry extract is the most persuasive object
   this company owns, so it is set like a record rather than a marketing card. */

.ledger {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.ledger__head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: .7rem .95rem;
  background: var(--brand);
  color: var(--card);
  font-family: var(--mono); font-size: .68rem;
  letter-spacing: .14em; text-transform: uppercase;
}
.ledger__head span:last-child { opacity: .65; }

.ledger__row {
  display: grid; grid-template-columns: 8.5rem 1fr; gap: .3rem 1rem;
  padding: .62rem .95rem;
  border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: .8125rem;
}
.ledger__row:first-of-type { border-top: 0; }
.ledger__row dt { color: var(--muted); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; padding-top: .18rem; }
.ledger__row dd { margin: 0; color: var(--ink); font-variant-numeric: tabular-nums; word-break: break-word; }

.ledger__foot {
  padding: .62rem .95rem; border-top: 1px solid var(--line);
  background: var(--raised);
  font-family: var(--serif); font-size: .8125rem; color: var(--muted);
}

@media (max-width: 26rem) { .ledger__row { grid-template-columns: 1fr; } }

/* Compact proof points directly below the opening promise. */
.trustbar { border-block: 1px solid var(--line); background: var(--card); }
.trustbar__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.trustbar__grid > div { display: flex; flex-direction: column; gap: .15rem; padding: 1.25rem 1.5rem; border-left: 1px solid var(--line); }
.trustbar__grid > div:first-child { border-left: 0; }
.trustbar strong { font-family: var(--display); font-size: .95rem; }
.trustbar span { color: var(--muted); font-size: .875rem; line-height: 1.5; }

/* ---------------------------------------------------------- product card */

.pcard {
  display: flex; flex-direction: column; gap: .6rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 1px solid var(--line);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--body);
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}
a.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--body); border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.pcard h3 { color: var(--ink); }
.pcard h3 { display: flex; justify-content: space-between; gap: 1rem; font-size: 1.3rem; }
.pcard p { font-size: .9375rem; }
.pcard__top { display: flex; align-items: center; gap: .7rem; }
.pcard__code { display: inline-grid; place-items: center; width: 3rem; height: 3rem; flex: none; border-radius: 12px; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); font-family: var(--mono); font-size: .65rem; font-weight: 500; }
.pcard__for {
  font-family: var(--display); font-size: .7rem; letter-spacing: .02em;
  color: var(--muted);
}
.pcard__arrow { font-size: 1rem; color: var(--accent); transition: transform .14s ease; }
a.pcard:hover .pcard__arrow { transform: translate(2px, -2px); }
.pcard__go {
  margin-top: auto; padding-top: .5rem;
  font-family: var(--display); font-size: .875rem; font-weight: 600; color: var(--accent, var(--brand));
}

.tag {
  align-self: flex-start;
  font-family: var(--mono); font-size: .65rem; letter-spacing: .1em; text-transform: uppercase;
  padding: .14rem .45rem; border-radius: 2px;
  border: 1px solid currentColor; color: var(--muted);
}
.tag--dev { color: var(--signal); }

/* --------------------------------------------------------------- panels */

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.2rem 1.35rem;
  display: flex; flex-direction: column; gap: .55rem;
}
.panel h3 { margin: 0; }
.panel p { font-size: .9375rem; }

.note {
  border-left: 3px solid var(--brand);
  background: var(--brand-wash);
  padding: 1rem 1.2rem;
  border-radius: 0 3px 3px 0;
  display: flex; flex-direction: column; gap: .4rem;
}

.story { display: grid; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.story__intro h2 { max-width: 16ch; font-size: clamp(2rem, 4vw, 3.2rem); }
.story__copy { max-width: 35rem; }
.story__copy p:not(.lede) { color: #b7d2cd; }
.story__link { align-self: center; color: #d8eeea; font-family: var(--display); font-size: .9rem; font-weight: 600; text-decoration: none; }
.story__link:hover { color: #fff; }
@media (min-width: 52rem) { .story { grid-template-columns: .9fr 1.1fr; } }

/* Numbered list where the order is real (the patient journey, the steps to
   start). Not decoration — if the sequence does not matter, use .grid. */
.steps { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
.step { background: var(--card); padding: 1rem 1.2rem; display: grid; grid-template-columns: 2rem 1fr; gap: .2rem .8rem; }
.step__n { font-family: var(--mono); font-size: .75rem; color: var(--brand); padding-top: .22rem; }
.step h4 { color: var(--ink); }
.step p { font-size: .9rem; grid-column: 2; }

/* Feature checklist for module lists — dense, scannable, no bullets. */
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: .45rem 1.25rem; padding: 0; list-style: none; }
.checks li { position: relative; padding-left: 1.15rem; font-size: .9375rem; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: .42rem; height: .42rem; border-radius: 50%;
  background: var(--brand); opacity: .55;
}

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

.field { display: flex; flex-direction: column; gap: .3rem; }
.field label { font-family: var(--display); font-size: .8125rem; font-weight: 600; color: var(--ink); }
.field input, .field textarea, .field select {
  font-family: var(--serif); font-size: 1rem; color: var(--ink);
  background: var(--card); border: 1px solid var(--rule); border-radius: 3px;
  padding: .62rem .75rem; width: 100%;
}
.field textarea { min-height: 7rem; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--brand); outline: 2px solid var(--brand-wash); outline-offset: 0; }
.field--check { flex-direction: row; align-items: flex-start; gap: .55rem; }
.field--check input { width: auto; margin-top: .35rem; }
.field--check label { font-family: var(--serif); font-weight: 400; font-size: .9375rem; color: var(--body); }
.hint { font-size: .8125rem; color: var(--muted); }
.hp { position: absolute; left: -9999px; }

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

/* The footer is dark in both themes, so it carries its own token set rather
   than borrowing --ink, which inverts. */
.foot { background: var(--foot-bg); color: var(--foot-ink); padding-block: 3rem 2rem; }
.foot a { color: var(--foot-link); text-decoration: none; }
.foot a:hover { color: #ffffff; text-decoration: underline; }
.foot h4 {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .15em;
  text-transform: uppercase; color: var(--foot-label); font-weight: 400; margin-bottom: .15rem;
}
.foot .muted { color: var(--foot-label); }
.foot__grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); }
.foot__col { display: flex; flex-direction: column; gap: .42rem; font-size: .9375rem; }
.foot__brand { display: flex; flex-direction: column; gap: .6rem; }
.foot__brand .wordmark { color: #ffffff; }
.foot__brand .wordmark em { color: var(--foot-label); }
.foot__legal {
  margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--foot-line);
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .03em; color: var(--foot-label);
}

/* ---------------------------------------------------------------- misc */

.scroller { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; min-width: 30rem; font-size: .9375rem; }
th, td { text-align: left; padding: .6rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--display); font-size: .72rem; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }

.contactlist { display: flex; flex-direction: column; gap: .8rem; }
.contactline { display: flex; gap: .7rem; align-items: baseline; font-size: .9375rem; }
.contactline b { font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); min-width: 5.2rem; font-weight: 400; }

@media (max-width: 46rem) {
  .sectionhead { align-items: flex-start; flex-direction: column; }
  .trustbar__grid { grid-template-columns: 1fr; padding-block: .35rem; }
  .trustbar__grid > div { border-left: 0; border-top: 1px solid var(--line); padding-inline: 0; }
  .trustbar__grid > div:first-child { border-top: 0; }
}


/* Services and progressive motion */
html { scroll-behavior: smooth; scroll-padding-top: 7rem; }
.accent-text { color: var(--brand); }
.hero--home { position: relative; background: radial-gradient(ellipse at 10% 10%, var(--brand-wash), transparent 65%); }
.homehero__copy h1 { font-size: clamp(2.8rem, 5.2vw, 4.6rem); }
.services-home { padding-top: 2rem; }
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.service-card { display: flex; flex-direction: column; gap: 1.1rem; padding: clamp(1.3rem, 2.5vw, 2rem); border: 1px solid var(--line); border-radius: 22px; background: var(--card); color: var(--body); text-decoration: none; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s, border-color .25s; }
.service-card:hover { color: var(--body); transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--brand); }
.service-card__top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: 1.2rem; }
.service-symbol { display: grid; place-items: center; background: var(--brand-wash); color: var(--brand); border-radius: 16px; width: 3.5rem; height: 3.5rem; font-size: 2rem; }
.service-number { font: .65rem var(--mono); color: var(--muted); letter-spacing: .05em; }
.service-card h3 { font-size: 1.4rem; letter-spacing: -.04em; }
.service-card p { font-size: .94rem; }
.service-card .service-examples { font-size: .78rem; color: var(--muted); padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.service-link { margin-top: auto; display: flex; justify-content: space-between; color: var(--brand); font-size: .85rem; font-weight: 700; }
.services-intro h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); line-height: 1.08; letter-spacing: -.055em; }
.services-intro .narrow { max-width: 49rem; }
.service-detail { border-bottom: 1px solid var(--line); }
.service-detail__grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 4rem; }
.delivery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.delivery-grid > div { border-top: 1px solid #ffffff40; padding-top: 1.5rem; }
.delivery-grid span { color: #b9e5d7; font: .8rem var(--mono); }
.delivery-grid h3 { color: #fff; margin-block: 1rem .6rem; }
.delivery-grid p { color: #d0e4de; font-size: .95rem; }
.service-faq { border-bottom: 1px solid var(--line); padding-block: 1.2rem; }
.service-faq summary { font-weight: 700; color: var(--ink); cursor: pointer; padding-right: 1rem; }
.service-faq p { padding-top: .8rem; }
@keyframes rise-in { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .homehero__copy { animation: rise-in .7s ease both; }
  .product-scene { animation: rise-in .9s .12s ease both; }
  .reveal.revealed { animation: rise-in .65s ease both; }
  .service-card:nth-child(2), .delivery-grid > div:nth-child(2) { animation-delay: .09s; }
  .service-card:nth-child(3), .delivery-grid > div:nth-child(3) { animation-delay: .18s; }
}
@media (max-width: 65rem) { .masthead__in { flex-wrap: wrap; } .mainnav { order: 3; width: 100%; justify-content: center; } }
@media (max-width: 52rem) { .service-grid, .service-detail__grid { grid-template-columns: 1fr; } .service-detail__grid { gap: 1.5rem; } .delivery-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 30rem) { .delivery-grid { grid-template-columns: 1fr; } .mainnav { justify-content: center; flex-wrap: wrap; overflow: visible; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } .service-card:hover { transform: none; } }

/* ---- NizoAI widget ---- */
/* The widget hides panels with the [hidden] attribute, but every one of them
   also carries a display rule from a class — and an author display beats the
   user-agent [hidden] rule. Without this the panel, the prompts and the lead
   form are all permanently open. */
.nai[hidden], .nai [hidden] { display: none !important; }

.nai--nolauncher .nai__launch { display: none; }
.nai-page__card [hidden] { display: none !important; }
.nai-page__handoff { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: 1rem; padding: .85rem 1rem; border: 1px solid var(--rule); border-radius: 6px; background: var(--brand-wash); }
.nai-page__handoff p { margin: 0; flex: 1 1 14rem; color: var(--ink); }
.nai { position: fixed; right: 1rem; bottom: 1rem; z-index: 40; display: flex; flex-direction: column; align-items: flex-end; gap: .6rem; }

.nai__launch {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--display); font-size: .9375rem; font-weight: 600;
  background: var(--brand); color: var(--paper);
  border: 0; border-radius: 999px; padding: .7rem 1.15rem;
  box-shadow: var(--shadow); cursor: pointer;
}
.nai__launch:hover { background: var(--brand-ink); }
.nai__spark { width: .55rem; height: .55rem; border-radius: 50%; background: currentColor; opacity: .85; }

.nai__panel {
  width: min(24rem, calc(100vw - 2rem));
  max-height: min(38rem, calc(100vh - 6rem));
  display: flex; flex-direction: column;
  background: var(--card); color: var(--body);
  border: 1px solid var(--rule); border-radius: 6px;
  box-shadow: var(--shadow); overflow: hidden;
}

.nai__head { display: flex; align-items: flex-start; gap: 1rem; padding: .85rem 1rem; background: var(--brand); color: var(--card); }
.nai__title { margin: 0; font-family: var(--display); font-weight: 700; font-size: 1rem; letter-spacing: -.01em; }
.nai__sub { margin: 0; font-size: .78rem; opacity: .85; }
.nai__x { margin-left: auto; background: none; border: 0; color: inherit; font-size: 1.5rem; line-height: 1; cursor: pointer; padding: 0 .2rem; }

.nai__log { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .7rem; min-height: 8rem; }

.nai__msg { max-width: 92%; font-size: .9375rem; line-height: 1.55; border-radius: 6px; padding: .6rem .8rem; }
.nai__msg--ai { background: var(--brand-wash); color: var(--ink); align-self: flex-start; border-bottom-left-radius: 2px; }
.nai__msg--me { background: var(--raised); color: var(--ink); align-self: flex-end; border-bottom-right-radius: 2px; }
.nai__msg p { margin: 0 0 .5rem; }
.nai__msg p:last-child { margin-bottom: 0; }
.nai__msg strong { color: inherit; font-weight: 600; }

.nai__typing { display: inline-flex; gap: .22rem; align-items: center; }
.nai__typing i { width: .35rem; height: .35rem; border-radius: 50%; background: currentColor; opacity: .45; animation: nai-blink 1.2s infinite; }
.nai__typing i:nth-child(2) { animation-delay: .18s; }
.nai__typing i:nth-child(3) { animation-delay: .36s; }
@keyframes nai-blink { 0%, 60%, 100% { opacity: .25 } 30% { opacity: .9 } }
@media (prefers-reduced-motion: reduce) { .nai__typing i { animation: none; opacity: .5 } }

.nai__prompts { display: flex; flex-wrap: wrap; gap: .35rem; padding: 0 1rem .6rem; }
.nai__chip {
  font-family: var(--serif); font-size: .8125rem;
  background: transparent; color: var(--brand);
  border: 1px solid var(--rule); border-radius: 999px;
  padding: .3rem .65rem; cursor: pointer;
}
.nai__chip:hover { border-color: var(--brand); background: var(--brand-wash); }

.nai__handoff { padding: .8rem 1rem; background: var(--brand-wash); border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: .55rem; }
.nai__handoff-text { margin: 0; font-size: .875rem; color: var(--ink); }
.nai__handoff-btn { width: 100%; }

.nai__form { padding: .9rem 1rem 1rem; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: .6rem; overflow-y: auto; }
.nai__form-title { margin: 0; font-family: var(--display); font-weight: 600; color: var(--ink); }
.nai__form-note { margin: 0; font-size: .8125rem; color: var(--muted); }
.nai__form .field label { font-size: .78rem; }
.nai__form .field input, .nai__form .field select { padding: .45rem .6rem; font-size: .9375rem; }
.nai__form-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.nai__form-actions .btn { flex: 1 1 8rem; padding: .55rem .9rem; font-size: .875rem; }
.nai__error { margin: 0; font-size: .8125rem; color: var(--signal); }

/* Filling the form is a different task from chatting, so the panel gives it
   the room: the conversation collapses to a reminder of context and the ask
   bar steps out rather than competing for the same vertical space. */
.nai__panel--form .nai__log { flex: 0 1 auto; max-height: 7rem; }
.nai__panel--form .nai__ask,
.nai__panel--form .nai__foot { display: none; }

.nai__ask { display: flex; gap: .4rem; padding: .7rem 1rem .8rem; border-top: 1px solid var(--line); }
.nai__ask input {
  flex: 1; font-family: var(--serif); font-size: .9375rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--rule); border-radius: 999px; padding: .5rem .85rem;
}
.nai__ask input:focus { border-color: var(--brand); }
.nai__ask button {
  flex: none; width: 2.35rem; border: 0; border-radius: 50%;
  background: var(--brand); color: var(--paper); font-size: 1.05rem; cursor: pointer;
}
.nai__ask button:disabled { opacity: .5; cursor: default; }

.nai__foot { margin: 0; padding: 0 1rem .8rem; font-size: .72rem; color: var(--muted); }
.nai__sr { position: absolute; left: -9999px; }

/* The product page offers the same conversation directly in the page. */
.nai-page { max-width: 58rem; }
.nai-page [hidden] { display: none !important; }
.nai-page__card { background: var(--card); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow-sm); padding: clamp(1rem, 3vw, 1.5rem); }
.nai-page__log { display: flex; flex-direction: column; gap: .7rem; max-height: 24rem; overflow-y: auto; padding: 0 0 1rem; margin-bottom: 1rem; border-bottom: 1px solid var(--line); }
.nai-page__log[hidden] { display: none; }
.nai-page__log .nai__msg { max-width: min(90%, 38rem); }
.nai-page__ask label { display: block; margin-bottom: .55rem; color: var(--ink); font-family: var(--display); font-size: .875rem; font-weight: 600; }
.nai-page__row { display: flex; gap: .6rem; }
.nai-page__row input { min-width: 0; flex: 1; border: 1px solid var(--rule); border-radius: 4px; background: var(--paper); color: var(--ink); font: inherit; padding: .72rem .85rem; }
.nai-page__row input:focus { border-color: var(--brand); }
.nai-page__row button { flex: none; }
.nai-page__row button:disabled, .nai-page__prompts button:disabled { opacity: .5; cursor: default; }
.nai-page__prompts { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.nai-page__prompts button { border: 1px solid var(--rule); border-radius: 999px; background: transparent; color: var(--brand); font: inherit; font-size: .85rem; padding: .35rem .7rem; cursor: pointer; }
.nai-page__prompts button:hover { border-color: var(--brand); background: var(--brand-wash); }
.nai-page__note { margin-top: 1rem; color: var(--muted); font-size: .85rem; }
@media (max-width: 38rem) { .nai-page__row { flex-direction: column; } .nai-page__row button { align-self: flex-start; } }

@media (max-width: 30rem) {
  .nai { right: .6rem; bottom: .6rem; left: .6rem; align-items: stretch; }
  .nai__panel { width: auto; max-height: calc(100vh - 5rem); }
  .nai__launch { align-self: flex-end; }
}
/* ---- NizoAI site ---- */
.wordmark--ai .mark { color: var(--ai); }
.ai-hero { padding-block: clamp(2.5rem, 6vw, 4.5rem); background: linear-gradient(180deg, var(--brand-wash), transparent 85%); }
.ai-hero__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.ai-hero h1 { font-size: clamp(2.8rem, 8vw, 4.6rem); line-height: 1; letter-spacing: -.05em; color: var(--ink); }
.ai-hero h1 span { color: var(--ai); }
.ai-hero .eyebrow { color: var(--ai); }
.ai-hero__facts { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; color: var(--body); font-size: .95rem; }
.ai-hero__facts li { padding-left: 1.4rem; position: relative; }
.ai-hero__facts li::before { content: ""; position: absolute; left: 0; top: .5em; width: .55rem; height: .55rem; border-radius: 2px; background: var(--ai); transform: rotate(45deg); }
.ai-hero .nai-page__card { border-color: color-mix(in srgb, var(--ai) 35%, var(--line)); }
.ai-hero .nai-page__prompts { margin-top: .9rem; }
.ai-hero .btnrow { margin-top: .4rem; }
.ai-caps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.ai-caps .panel { display: flex; flex-direction: column; gap: .5rem; }
.ai-caps__n { font-family: var(--mono); font-size: .75rem; color: var(--ai); }
.ai-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.ai-split--even { align-items: stretch; }
.checks--one { grid-template-columns: 1fr; }
ol.steps { list-style: none; margin: 0; padding: 0; }
.tag--dev { margin-left: .4rem; vertical-align: middle; }

/* Illustrative WhatsApp conversation. Fixed WhatsApp-like colours in both
   themes: it is a picture of a phone screen, not page chrome. */
.wa-mock { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: #efeae2; color: #111b21; }
.wa-mock__bar { display: flex; align-items: center; gap: .7rem; padding: .7rem 1rem; background: #075e54; color: #fff; }
.wa-mock__bar b { display: block; font-size: .95rem; }
.wa-mock__bar small { opacity: .8; font-size: .75rem; }
.wa-mock__avatar { width: 2.1rem; height: 2.1rem; border-radius: 50%; display: grid; place-items: center; background: #25d366; font-weight: 700; }
.wa-mock__log { display: flex; flex-direction: column; gap: .45rem; padding: 1rem; }
.wa { margin: 0; max-width: 85%; padding: .5rem .7rem 1.1rem; border-radius: 8px; font-size: .9rem; line-height: 1.4; position: relative; box-shadow: 0 1px 1px rgba(0,0,0,.08); }
.wa time { position: absolute; right: .55rem; bottom: .25rem; font-size: .68rem; color: #667781; }
.wa--in { align-self: flex-start; background: #fff; }
.wa--out { align-self: flex-end; background: #d9fdd3; }
.wa__tag { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .02em; color: #6b4fa8; margin-bottom: .15rem; }
.wa--photo { padding: .35rem; width: 11rem; }
.wa--photo span { display: grid; place-items: end start; height: 7.5rem; padding: .5rem; border-radius: 6px; font-size: .72rem; color: #fff; background: linear-gradient(135deg, #3b3f46, #1c1f24 70%); }
.wa-mock__handoff { align-self: center; margin: .3rem 0 0; padding: .3rem .7rem; border-radius: 999px; font-size: .74rem; font-weight: 600; background: #fff3c4; color: #5c4a00; }
.wa-mock figcaption { padding: .75rem 1rem; font-size: .8rem; color: var(--muted); background: var(--card); border-top: 1px solid var(--line); }
.ai-faq { max-width: 46rem; }
.ai-contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; max-width: 52rem; }
@media (max-width: 60rem) { .ai-caps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 52rem) { .ai-hero__grid, .ai-split, .ai-caps { grid-template-columns: 1fr; } }
