/* DocoDesk site – shared by the home page and the product pages (eye/, lab/, pharmacy/). Same look as the HMS landing page (/landing/). */
  :root {
    --navy: #032a5b; --blue: #1679fb; --blue-d: #0f5fd0; --teal: #04b2b2; --green: #36cb7f;
    --ink: #0f1d33; --muted: #56677f; --line: #e3e9f2; --bg: #f5f8fc;
    --grad: linear-gradient(120deg, #1679fb 0%, #04b2b2 60%, #36cb7f 100%);
    --radius: 16px; --shadow: 0 18px 50px -20px rgba(3, 42, 91, .35);
  }
  * { box-sizing: border-box; }
  [hidden] { display: none !important; }
  html { scroll-behavior: smooth; }
  body { margin: 0; font: 16px/1.6 'Plus Jakarta Sans', system-ui, sans-serif; color: var(--ink); background: #fff; }
  img { max-width: 100%; height: auto; display: block; }
  a { color: var(--blue); }
  .wrap { width: min(1160px, 100% - 40px); margin: 0 auto; }
  h1, h2, h3 { line-height: 1.2; margin: 0 0 14px; letter-spacing: -.02em; }
  h2 { font-size: clamp(28px, 3.4vw, 40px); color: var(--navy); }
  .eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
  .lead { font-size: 18px; color: var(--muted); max-width: 640px; }
  .center { text-align: center; } .center .lead { margin: 0 auto; }
  section { padding: 88px 0; }

  .btn { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 12px; padding: 14px 24px; font-family: inherit; font-size: 16px; font-weight: 700; line-height: 1; cursor: pointer; text-decoration: none; transition: transform .15s, background .15s, border-color .15s; }
  .btn-primary { background: var(--blue); color: #fff; box-shadow: 0 10px 24px -10px rgba(22, 121, 251, .7); }
  .btn-primary:hover { background: var(--blue-d); transform: translateY(-1px); }
  .btn-ghost { background: #fff; color: var(--navy); border: 1.5px solid var(--line); }
  .btn-ghost:hover { border-color: var(--blue); }
  .btn-light { background: #fff; color: var(--navy); }

  header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
  header .wrap { display: flex; align-items: center; justify-content: space-between; height: 70px; }
  /* wordmark in text: the logo file says "HMS", this site covers every product */
  .brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 800; font-size: 22px; letter-spacing: -.01em; color: var(--navy); }
  .brand img { width: 36px; height: 36px; } .brand b { color: var(--blue); }
  .brand.small { font-size: 18px; } .brand.small img { width: 28px; height: 28px; }
  header nav { display: flex; align-items: center; gap: 26px; }
  header nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; }
  header nav a:hover { color: var(--blue); }
  header .btn { padding: 11px 18px; font-size: 15px; }

  .hero { padding: 96px 0 72px; text-align: center; background: radial-gradient(1000px 500px at 85% -10%, rgba(4, 178, 178, .13), transparent), radial-gradient(900px 500px at 0% 0%, rgba(22, 121, 251, .10), transparent); }
  .hero h1 { font-size: clamp(36px, 5.4vw, 60px); font-weight: 800; color: var(--navy); max-width: 900px; margin: 0 auto 18px; }
  .hero h1 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .hero .lead { margin: 0 auto 30px; }
  .hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

  /* products */
  .prod-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; margin-top: 44px; }
  .prod { grid-column: span 2; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; display: flex; flex-direction: column; gap: 10px; transition: border-color .15s, transform .15s, box-shadow .15s; }
  .prod:nth-child(4) { grid-column: 2 / span 2; }   /* centre the last row of two */
  .prod:hover { border-color: var(--blue); transform: translateY(-3px); box-shadow: var(--shadow); }
  .prod .shot { margin: -28px -26px 8px; width: calc(100% + 52px); max-width: none; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; border-bottom: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0; }
  .prod .ic { width: 52px; height: 52px; border-radius: 14px; background: var(--grad); display: grid; place-items: center; margin-bottom: 6px; }
  .prod .ic svg { width: 28px; height: 28px; stroke: #fff; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .prod h3 { margin: 0; font-size: 21px; color: var(--navy); }
  .prod p { margin: 0; color: var(--muted); font-size: 15px; }
  .prod ul { margin: 4px 0 8px; padding-left: 18px; color: var(--ink); font-size: 14px; flex: 1; }
  .prod ul li { margin: 3px 0; }
  .prod .acts { display: flex; gap: 16px; align-items: center; }
  .prod .acts a, .prod .acts button { background: none; border: 0; padding: 0; color: var(--blue); font-family: inherit; font-size: 15px; font-weight: 700; cursor: pointer; text-decoration: none; }
  .tag { align-self: flex-start; font-size: 12px; font-weight: 700; color: var(--teal); text-transform: uppercase; letter-spacing: .06em; }

  /* why */
  .why { background: var(--bg); }
  .why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
  .why-grid div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
  .why-grid h4 { margin: 0 0 6px; font-size: 17px; color: var(--navy); }
  .why-grid p { margin: 0; font-size: 14px; color: var(--muted); }

  .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; counter-reset: s; }
  .step { background: var(--bg); border-radius: var(--radius); padding: 28px; }
  .step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--grad); color: #fff; font-weight: 800; margin-bottom: 14px; }
  .step h4 { margin: 0 0 6px; font-size: 18px; color: var(--navy); } .step p { margin: 0; color: var(--muted); font-size: 15px; }

  .final { background: var(--grad); color: #fff; text-align: center; border-radius: 24px; padding: 64px 32px; }
  .final h2 { color: #fff; } .final p { color: rgba(255, 255, 255, .9); margin: 0 auto 26px; max-width: 560px; font-size: 18px; }
  footer { padding: 40px 0 110px; color: var(--muted); font-size: 14px; }
  footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }

  .mobile-cta { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -12px rgba(3, 42, 91, .25); }
  .mobile-cta .btn { width: 100%; justify-content: center; }

  /* demo form (same fields and receiver as the HMS page, plus `product`) */
  dialog { border: 0; padding: 0; overflow-x: hidden; border-radius: 20px; box-shadow: 0 30px 80px -20px rgba(3, 42, 91, .55); max-width: calc(100vw - 24px); }
  dialog::backdrop { background: rgba(3, 20, 45, .55); backdrop-filter: blur(3px); }
  #lead { width: 560px; }
  .lead-head { background: var(--navy); color: #fff; padding: 24px 28px 20px; position: relative; }
  .lead-head h3 { margin: 0 0 4px; font-size: 22px; } .lead-head p { margin: 0; color: #c9d6ea; font-size: 14px; }
  .x { position: absolute; right: 14px; top: 14px; width: 36px; height: 36px; border-radius: 10px; border: 0; background: rgba(255, 255, 255, .12); color: #fff; font-size: 22px; cursor: pointer; }
  form { padding: 22px 28px 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
  .full { grid-column: 1 / -1; }
  label { font-size: 13px; font-weight: 600; color: var(--navy); display: block; margin-bottom: 6px; }
  label em { color: #d6334a; font-style: normal; }
  input, select, textarea { width: 100%; font-family: inherit; font-size: 15px; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
  input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(22, 121, 251, .15); }
  textarea { resize: vertical; min-height: 64px; }
  .beds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; position: relative; }
  .beds input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
  .beds label { margin: 0; text-align: center; padding: 11px 6px; border: 1.5px solid var(--line); border-radius: 10px; font-weight: 600; color: var(--ink); cursor: pointer; font-size: 14px; }
  .beds input:checked + label { border-color: var(--blue); background: rgba(22, 121, 251, .08); color: var(--blue-d); }
  .beds input:focus-visible + label { box-shadow: 0 0 0 3px rgba(22, 121, 251, .25); }
  .phone-in { display: flex; } .phone-in span { padding: 11px 12px; border: 1.5px solid var(--line); border-right: 0; border-radius: 10px 0 0 10px; background: var(--bg); color: var(--muted); }
  .phone-in input { border-radius: 0 10px 10px 0; }
  .consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); font-weight: 400; }
  .consent input { width: auto; margin-top: 3px; }
  .err { color: #d6334a; font-size: 13px; min-height: 18px; }
  .hp { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; pointer-events: none; }
  form .btn { justify-content: center; width: 100%; }
  .thanks { padding: 48px 32px; text-align: center; }
  .thanks .ok { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; color: #fff; font-size: 32px; font-weight: 800; }

  /* product pages: hero with screenshot, feature rows, "also included" grid (from the HMS landing page) */
  .hero.split { text-align: left; padding: 72px 0 56px; }
  .hero-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: center; }
  .hero.split h1 { margin: 0 0 18px; } .hero.split .lead, .hero.split .hero-ctas { margin-left: 0; justify-content: flex-start; }
  .frame { background: #fff; border-radius: 14px; box-shadow: var(--shadow); border: 1px solid var(--line); overflow: hidden; }
  .frame .bar { display: flex; gap: 6px; padding: 10px 14px; background: #f3f6fa; border-bottom: 1px solid var(--line); }
  .frame .bar i { width: 10px; height: 10px; border-radius: 50%; background: #d6dde8; }
  .feature { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; align-items: center; margin-top: 72px; }
  .feature.flip > :first-child { order: 2; }
  .feature h3 { font-size: 26px; color: var(--navy); }
  .feature p { color: var(--muted); margin: 0 0 14px; }
  .ticks { list-style: none; padding: 0; margin: 0; }
  .ticks li { position: relative; padding-left: 28px; margin: 9px 0; }
  .ticks li::before { content: '✓'; position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border-radius: 6px; background: var(--grad); color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; }
  .also-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
  .also-grid div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
  .also-grid h4 { margin: 0 0 8px; font-size: 17px; color: var(--navy); }
  .also-grid ul { margin: 0; padding-left: 18px; font-size: 14px; color: var(--muted); }

  @media (max-width: 960px) {
    header nav a { display: none; }
    .prod-grid { grid-template-columns: 1fr 1fr; }
    .prod, .prod:nth-child(4) { grid-column: auto; }
    .why-grid, .also-grid { grid-template-columns: 1fr 1fr; }
    .hero-grid, .feature { grid-template-columns: 1fr; }
    .feature.flip > :first-child { order: 0; }
    .steps { grid-template-columns: 1fr; }
    .mobile-cta { display: block; }
    section { padding: 64px 0; }
  }
  @media (max-width: 560px) {
    .prod-grid, .why-grid, .also-grid { grid-template-columns: 1fr; }
    form { grid-template-columns: 1fr; padding: 18px 18px 22px; }
    .beds { grid-template-columns: repeat(2, 1fr); }
    .lead-head { padding: 20px 18px 16px; }
  }
