/* Consultant Care — public site design system.
   Shared by home, EMR features, team and vision so the four pages cannot drift
   apart. Page-specific rules live in each template's own <style> block. */
:root {
    --green:       #0DFFAC;   /* Bright Sea Green — hero brand color */
    --green-deep:  #01DC5E;   /* Kem green — hovers & gradients      */
    --teal:        #007052;   /* Teal Green — text accents            */
    --ink:         #050505;   /* Black                                */
    --charcoal:    #1F1F1F;   /* Charcoal Black                       */
    --slate:       #6D6E71;   /* Slate Gray                           */
    --smoke:       #F5F5F5;   /* White Smoke                          */
    --soft:        #EAEAEA;   /* Soft White                           */
    --yellow:      #FDE500;   /* Golden Yellow — 5% accent            */
    --radius: 20px;
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body {
    font-family: 'Archivo', -apple-system, 'Segoe UI', sans-serif;
    color: var(--ink);
    /* Fixed so the glow belongs to the page, not to any one element that could
       clip it into a visible edge. */
    background:
      radial-gradient(1100px 620px at 80% -6%, rgba(13,255,172,0.20), transparent 60%),
      radial-gradient(860px 520px at 8% 14%, rgba(13,255,172,0.10), transparent 58%),
      #ffffff;
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }
  a { color: inherit; text-decoration: none; }
  .wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

  /* ══ Nav ══ */
  nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(255,255,255,0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(5,5,5,0.06);
  }
  .nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
  .logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.05rem; letter-spacing: -0.02em; }
  .logo svg { width: 30px; height: 30px; }
  .nav-links { display: flex; gap: 32px; font-size: 0.88rem; font-weight: 500; color: var(--charcoal); }
  .nav-links a { transition: color .15s; }
  .nav-links a:hover { color: var(--teal); }
  .nav-cta { display: flex; align-items: center; gap: 10px; }
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: inherit; font-weight: 600; font-size: 0.9rem;
    border: none; border-radius: 999px; cursor: pointer;
    padding: 10px 22px; transition: transform .15s, background .15s, box-shadow .15s;
  }
  .btn:active { transform: scale(0.97); }
  .btn-ghost { background: transparent; color: var(--ink); }
  .btn-ghost:hover { background: var(--smoke); }
  .btn-green { background: var(--green); color: var(--ink); box-shadow: 0 1px 0 rgba(5,5,5,0.08); }
  .btn-green:hover { background: var(--green-deep); }
  .btn-dark { background: var(--ink); color: #fff; }
  .btn-dark:hover { background: var(--charcoal); }
  .btn-lg { padding: 15px 32px; font-size: 1rem; }

  /* ══ Hero ══ */
  header {
    position: relative;
    padding: 8px 0 44px;
    overflow: visible;
  }
  /* The dot field is fixed behind every page; see _public_base.html. */
  header > .wrap { position: relative; z-index: 1; }
  .hero { text-align: center; max-width: 880px; margin: 0 auto; }
  /* Solid brand green with black type — the badge is the first piece of colour a
     visitor sees, so it states the positioning in the brand's own palette. */
  .pill {
    display: inline-block;
    background: var(--green); color: var(--ink);
    border-radius: 999px; padding: 13px 28px;
    font-size: 0.98rem; font-weight: 700; letter-spacing: -0.01em;
    box-shadow: 0 6px 22px rgba(13,255,172,0.42);
    margin-bottom: 28px;
  }
  h1 {
    font-size: clamp(2.6rem, 6vw, 4.4rem);
    font-weight: 800; letter-spacing: -0.035em; line-height: 1.04;
  }
  /* Marker-highlight: black type sitting on the true brand green, rather than
     green type (which is unreadable at this weight on white). */
  h1 .accent { color: var(--ink); position: relative; white-space: nowrap; z-index: 0; }
  h1 .accent::after {
    content: ""; position: absolute; left: -0.05em; right: -0.05em; bottom: 0.04em;
    height: 0.44em; background: var(--green); z-index: -1; border-radius: 7px;
  }
  /* 620px keeps the last line full rather than orphaning a single word. */
  .sub {
    margin: 26px auto 0; max-width: 620px; text-wrap: pretty;
    font-size: 1.1rem; line-height: 1.7; color: var(--slate); font-weight: 500;
  }
  .hero-cta { display: flex; gap: 14px; justify-content: center; margin-top: 38px; flex-wrap: wrap; }
  .hero-note { margin-top: 18px; font-size: 0.8rem; color: var(--slate); }

  /* ══ Product carousel ══ */
  .mock-stage { position: relative; max-width: 1020px; margin: 70px auto 0; }
  .carousel { overflow: hidden; padding: 16px 0 74px; margin-bottom: -50px; }
  .slides { display: flex; transition: transform .62s cubic-bezier(.4,0,.2,1); will-change: transform; }
  .slide { min-width: 100%; padding: 0 26px; }
  .slide-label {
    position: absolute; top: -34px; left: 50%; transform: translateX(-50%);
    font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--teal); white-space: nowrap;
  }
  .dots {
    display: flex; gap: 9px; justify-content: center; align-items: center; margin-top: 6px;
  }
  .dots button {
    width: 8px; height: 8px; padding: 0; border: none; border-radius: 999px;
    background: rgba(5,5,5,0.18); cursor: pointer; transition: all .3s ease;
  }
  .dots button:hover { background: rgba(5,5,5,0.34); }
  .dots button[aria-selected="true"] { width: 28px; background: var(--ink); }
  @media (prefers-reduced-motion: reduce) { .slides { transition: none; } }
  /* Device render: black bezel, white screen inset, lifted off the page. */
  .mock {
    position: relative;
    background: #050505; border: none; border-radius: 30px; padding: 15px 14px 18px;
    box-shadow: 0 58px 68px -38px rgba(5,5,5,0.46),
                0 26px 40px -24px rgba(5,5,5,0.32),
                0 8px 14px -9px rgba(5,5,5,0.16),
                0 0 0 2px #2a2a2a inset;
    overflow: hidden; text-align: left;
  }
  /* Webcam: the hardware cue that reads as a device rather than a rounded box. */
  .mock::before {
    content: ""; position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
    width: 5px; height: 5px; border-radius: 50%; background: #2f2f2f;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.05); z-index: 3;
  }
  .mock-bar  { background: #fff; border-radius: 15px 15px 0 0; }
  .mock-body { background: #fff; border-radius: 0 0 15px 15px; overflow: hidden; }
  .mock-bar { display: flex; align-items: center; gap: 8px; padding: 13px 18px; border-bottom: 1px solid var(--smoke); }
  .mock-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--soft); }
  .mock-bar .url {
    flex: 1; max-width: 340px; margin: 0 auto; text-align: center;
    background: var(--smoke); border-radius: 8px; padding: 5px 12px;
    font-size: 0.72rem; color: var(--slate); font-weight: 500;
  }
  .mock-body { display: grid; grid-template-columns: 200px 1fr 260px; min-height: 380px; }
  .mock-side { background: var(--smoke); padding: 18px 14px; border-right: 1px solid var(--soft); }
  .mside-item {
    display: flex; align-items: center; gap: 9px; padding: 9px 11px;
    border-radius: 10px; font-size: 0.78rem; font-weight: 600; color: var(--slate); margin-bottom: 4px;
  }
  .mside-item.on { background: var(--ink); color: var(--green); }
  .mside-item svg { width: 14px; height: 14px; }
  .mock-main { padding: 22px; }
  .mock-main h4 { font-size: 0.95rem; font-weight: 700; letter-spacing: -0.01em; }
  .mock-main .msub { font-size: 0.72rem; color: var(--slate); margin-top: 3px; }
  .chiprow { display: flex; gap: 8px; margin: 16px 0; }
  .mchip {
    flex: 1; background: var(--smoke); border-radius: 12px; padding: 12px;
  }
  .mchip b { display: block; font-size: 1.15rem; letter-spacing: -0.02em; }
  .mchip span { font-size: 0.66rem; color: var(--slate); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
  .mchip.hl { background: var(--green); }
  .qrow {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 12px; border: 1px solid var(--smoke); border-radius: 12px; margin-bottom: 8px;
  }
  .qrow .tok {
    width: 38px; height: 38px; border-radius: 10px; background: var(--smoke);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 0.8rem;
  }
  .qrow.now .tok { background: var(--ink); color: var(--green); }
  .qrow .nm { font-size: 0.8rem; font-weight: 700; }
  .qrow .dt { font-size: 0.68rem; color: var(--slate); margin-top: 2px; }
  .qrow .st {
    margin-left: auto; font-size: 0.64rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
    padding: 4px 10px; border-radius: 999px; background: var(--smoke); color: var(--slate);
  }
  .qrow.now .st { background: rgba(13,255,172,0.25); color: var(--teal); }
  .mock-aside { border-left: 1px solid var(--smoke); padding: 22px 18px; }
  .mock-aside h5 { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--slate); margin-bottom: 12px; }
  .pulse-card { background: var(--ink); border-radius: 16px; padding: 16px; color: #fff; }
  .pulse-card .bpm { font-size: 1.5rem; font-weight: 800; color: var(--green); letter-spacing: -0.02em; }
  .pulse-card .lbl { font-size: 0.64rem; color: rgba(255,255,255,0.55); text-transform: uppercase; letter-spacing: 0.06em; }
  .pulse-card svg { width: 100%; margin-top: 8px; }
  .rx-line { display: flex; justify-content: space-between; font-size: 0.75rem; font-weight: 600; padding: 9px 2px; border-bottom: 1px solid var(--smoke); }
  .rx-line span:last-child { color: var(--slate); font-weight: 500; }

  /* ══ Capability grid — black band, green tiles, white labels ══ */
  .strip { background: var(--ink); padding: 54px 0 58px; }
  .strip-head { text-align: center; margin-bottom: 36px; }
  .strip-head h2 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2rem); }
  .strip-head p { margin-top: 10px; font-size: 0.95rem; color: rgba(255,255,255,0.55); font-weight: 500; }
  .cap-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px 20px;
  }
  .cap { text-align: center; }
  .cap-box {
    width: 100%; aspect-ratio: 1 / 1; max-width: 132px; margin: 0 auto 14px;
    background: var(--green); border-radius: 26px;
    display: flex; align-items: center; justify-content: center;
    transition: transform .22s ease, box-shadow .22s ease;
  }
  .cap:hover .cap-box { transform: translateY(-5px); box-shadow: 0 16px 34px rgba(13,255,172,0.28); }
  .cap-box svg { width: 44px; height: 44px; stroke: var(--ink); stroke-width: 1.7; fill: none; }
  .cap-name { color: #fff; font-size: 0.92rem; font-weight: 600; letter-spacing: -0.01em; }
  @media (max-width: 900px) { .cap-grid { grid-template-columns: repeat(2, 1fr); } }

  /* ══ Sections ══ */
  section { padding: 76px 0; }
  .eyebrow {
    font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em;
    color: var(--teal); margin-bottom: 14px;
  }
  h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
  .sec-sub { margin-top: 16px; color: var(--slate); font-size: 1.05rem; line-height: 1.6; max-width: 560px; font-weight: 500; }

  .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 54px; }
  .card {
    background: var(--smoke); border-radius: var(--radius); padding: 30px 26px;
    transition: transform .2s ease, box-shadow .2s ease;
  }
  .card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -18px rgba(5,5,5,0.18); }
  .card .ic {
    width: 46px; height: 46px; border-radius: 14px; background: var(--ink);
    display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
  }
  .card .ic svg { width: 21px; height: 21px; stroke: var(--green); }
  .card h3 { font-size: 1.08rem; font-weight: 700; letter-spacing: -0.015em; }
  .card p { margin-top: 9px; font-size: 0.9rem; line-height: 1.6; color: var(--slate); font-weight: 500; }

  /* ══ Dark band ══ */
  .dark { background: var(--ink); color: #fff; }
  .dark .eyebrow { color: var(--green); }
  .dark h2 { color: #fff; }
  .dark .sec-sub { color: rgba(255,255,255,0.55); }
  .flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 54px; }
  .step {
    background: var(--charcoal); border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius); padding: 30px 26px;
  }
  .step .num {
    font-size: 0.8rem; font-weight: 800; color: var(--ink);
    background: var(--green); width: 30px; height: 30px; border-radius: 9px;
    display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
  }
  .step h3 { font-size: 1.05rem; font-weight: 700; }
  .step p { margin-top: 9px; font-size: 0.88rem; line-height: 1.6; color: rgba(255,255,255,0.55); font-weight: 500; }

  /* ══ Security ══ */
  .sec-split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
  .check-list { margin-top: 30px; display: flex; flex-direction: column; gap: 16px; }
  .check {
    display: flex; gap: 14px; align-items: flex-start;
    background: #fff; border: 1px solid var(--soft); border-radius: 16px; padding: 16px 18px;
  }
  .check .ck {
    flex-shrink: 0; width: 26px; height: 26px; border-radius: 8px; background: var(--green);
    display: flex; align-items: center; justify-content: center;
  }
  .check .ck svg { width: 13px; height: 13px; stroke: var(--ink); stroke-width: 3; }
  .check b { font-size: 0.92rem; font-weight: 700; display: block; }
  .check span { font-size: 0.82rem; color: var(--slate); font-weight: 500; line-height: 1.5; display: block; margin-top: 2px; }
  .shield-stage {
    background: var(--smoke); border-radius: 28px; padding: 56px;
    display: flex; align-items: center; justify-content: center;
  }
  .shield-stage svg { width: 100%; max-width: 330px; }

  /* ══ CTA band ══ */
  .cta-band {
    background: var(--green); border-radius: 30px; padding: 44px 48px;
    display: grid; grid-template-columns: 1fr auto; gap: 34px; align-items: center;
    text-align: left; box-shadow: 0 26px 60px -26px rgba(13,255,172,0.75);
  }
  .cta-band h2 { color: var(--ink); font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.12; }
  .cta-band p { margin: 10px 0 0; max-width: 440px; color: var(--teal); font-weight: 600; font-size: .95rem; line-height: 1.6; }
  .cta-band .hero-cta { margin: 0; justify-content: flex-end; flex-wrap: nowrap; }
  @media (max-width: 800px) {
    .cta-band { grid-template-columns: 1fr; text-align: center; padding: 36px 26px; }
    .cta-band p { margin-left: auto; margin-right: auto; }
    .cta-band .hero-cta { justify-content: center; flex-wrap: wrap; }
  }
  .cta-band .btn-ghost:hover { background: rgba(5,5,5,0.08); }

  /* ══ Footer ══ */
  footer { background: var(--ink); color: var(--slate); padding: 56px 0 36px; margin-top: 0; }
  .foot-top { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: flex-start; }
  .foot-brand .logo { color: #fff; margin-bottom: 12px; }
  .foot-brand p { font-size: 0.82rem; max-width: 280px; line-height: 1.6; font-weight: 500; }
  .foot-links { display: flex; gap: 64px; flex-wrap: wrap; }
  .fcol h6 { color: var(--soft); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px; }
  .fcol a { display: block; font-size: 0.85rem; font-weight: 500; margin-bottom: 10px; transition: color .15s; }
  .fcol a:hover { color: var(--green); }
  .foot-bottom {
    border-top: 1px solid rgba(255,255,255,0.08); margin-top: 44px; padding-top: 22px;
    display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 0.78rem; font-weight: 500;
  }
  .foot-bottom .g { color: var(--green); font-weight: 700; }

  /* ══ Reveal ══ */
  .rv { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
  .rv.in { opacity: 1; transform: none; }
  @media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

  /* ══ Responsive ══ */
  @media (max-width: 960px) {
    .nav-links { display: none; }
    .mock-body { grid-template-columns: 1fr; }
    .mock-side, .mock-aside { display: none; }
    .grid, .flow { grid-template-columns: 1fr 1fr; }
    .sec-split { grid-template-columns: 1fr; gap: 40px; }
  }
  @media (max-width: 960px) {
    #interop .cta-band { padding: 36px 24px !important; }
    #interop .cta-band > div { grid-template-columns: 1fr !important; gap: 30px !important; }
  }
  @media (max-width: 600px) {
    .grid, .flow { grid-template-columns: 1fr; }
    section { padding: 72px 0; }
    header { padding-top: 120px; }
    .btn-ghost.nav-login { display: none; }
    .chiprow { flex-wrap: wrap; }
  }
