:root {
  --ink: #14271f;
  --green: #184d3b;
  --mint: #b9f1d5;
  --cream: #f5f1e8;
  --paper: #fffdf8;
  --line: rgba(20, 39, 31, 0.14);
  --muted: #66756e;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: Arial, Helvetica, sans-serif; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 3px solid #52b98b; outline-offset: 4px; }

.site-header {
  width: min(1200px, calc(100% - 40px));
  height: 76px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; width: fit-content; font-weight: 800; letter-spacing: -.02em; }
.brand-mark { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px 10px 10px 3px; color: var(--mint); background: var(--green); font-family: Georgia, serif; }
nav { display: flex; gap: 34px; font-size: 14px; }
nav a { color: #4e5e56; }
.header-cta { justify-self: end; border: 1px solid var(--ink); border-radius: 999px; padding: 10px 18px; font-size: 14px; font-weight: 700; }

.hero {
  width: min(1200px, calc(100% - 40px));
  min-height: calc(100vh - 76px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  align-items: center;
  gap: clamp(40px, 7vw, 100px);
  padding: 74px 0 92px;
}
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 22px; color: var(--green); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow span { width: 8px; height: 8px; border-radius: 50%; background: #2aa56f; box-shadow: 0 0 0 6px rgba(42, 165, 111, .12); }
h1 { max-width: 650px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(58px, 6vw, 91px); font-weight: 500; line-height: .94; letter-spacing: -.055em; }
h1 em { color: var(--green); font-weight: 500; }
.hero-lead { max-width: 580px; margin: 30px 0 0; color: #53645c; font-size: 19px; line-height: 1.65; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 50px; padding: 0 21px; border-radius: 999px; font-size: 14px; font-weight: 800; }
.button.primary { background: var(--green); color: white; }
.button.secondary { border: 1px solid var(--line); background: rgba(255, 255, 255, .48); }
.proof-row { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 28px; color: #53645c; font-size: 12px; font-weight: 700; }
.proof-row span::before { content: "✓"; margin-right: 7px; color: #20935f; }

.product-preview { position: relative; padding: 18px; border: 1px solid var(--line); border-radius: 28px; background: rgba(255, 253, 248, .82); box-shadow: 0 30px 80px rgba(30, 65, 51, .12); backdrop-filter: blur(10px); }
.product-preview::before { content: ""; position: absolute; z-index: -1; width: 70%; height: 70%; right: -5%; top: -8%; border-radius: 50%; background: var(--mint); filter: blur(70px); opacity: .5; }
.preview-bar, .patient-card { display: flex; align-items: center; justify-content: space-between; }
.preview-bar { padding: 5px 4px 17px; border-bottom: 1px solid var(--line); font-size: 12px; }
.preview-bar div { display: flex; align-items: center; gap: 8px; }
.preview-bar b { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 8px; background: var(--green); color: var(--mint); font-family: Georgia, serif; }
.live-dot { color: #237d57; font-weight: 800; }
.live-dot::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: #29a36e; }
.patient-card { margin-top: 14px; padding: 15px; border-radius: 16px; background: #eef6ef; }
.patient-card > div:nth-child(2) { flex: 1; margin-left: 10px; }
.patient-card strong, .patient-card span { display: block; }
.patient-card div span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #d1e6d8; color: var(--green); font-size: 11px; font-weight: 800; }
.patient-card .status { padding: 6px 9px; border-radius: 999px; background: white; color: #257755; font-size: 10px; font-weight: 800; }
.workspace-grid { display: grid; grid-template-columns: 1.45fr .8fr; gap: 12px; margin-top: 12px; }
.note-panel, .mini-card { border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.note-panel { min-height: 245px; padding: 24px; }
.panel-label { color: #2a8e65; font-size: 10px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.note-panel h3 { margin: 30px 0 10px; font-family: Georgia, serif; font-size: 24px; font-weight: 500; }
.note-panel p { color: var(--muted); font-size: 12px; line-height: 1.55; }
.note-lines { display: grid; gap: 8px; margin-top: 25px; }
.note-lines i { display: block; width: 100%; height: 6px; border-radius: 10px; background: #e6ece8; }
.note-lines i:last-child { width: 65%; }
.side-stack { display: grid; gap: 12px; }
.mini-card { display: flex; min-height: 116px; flex-direction: column; justify-content: center; padding: 18px; }
.mini-card span, .mini-card small { color: var(--muted); font-size: 10px; }
.mini-card b { margin: 9px 0; font-family: Georgia, serif; font-size: 24px; font-weight: 500; }
.mini-card.teal { background: var(--green); color: white; }
.mini-card.teal span, .mini-card.teal small { color: #cce4d8; }
.workflow-strip { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding: 14px 18px; border-radius: 16px; background: #162b22; color: white; font-size: 10px; }
.workflow-strip span { display: flex; align-items: center; gap: 7px; }
.workflow-strip b { color: #9fe1bf; }
.workflow-strip i { color: #729584; font-style: normal; }

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; }
  nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 60px; }
  .hero-copy { text-align: center; }
  .eyebrow, .hero-actions, .proof-row { justify-content: center; }
  h1, .hero-lead { margin-left: auto; margin-right: auto; }
  .product-preview { width: min(650px, 100%); margin: 0 auto; }
}

@media (max-width: 560px) {
  .site-header, .hero { width: min(100% - 28px, 1200px); }
  .brand { font-size: 14px; }
  .header-cta { padding: 9px 13px; }
  .hero { gap: 48px; padding: 48px 0 70px; }
  h1 { font-size: 52px; }
  .hero-lead { font-size: 17px; }
  .button { width: 100%; }
  .proof-row { gap: 10px 16px; }
  .product-preview { padding: 10px; border-radius: 20px; }
  .workspace-grid { grid-template-columns: 1fr; }
  .side-stack { grid-template-columns: 1fr 1fr; }
  .workflow-strip { overflow-x: auto; }
  .workflow-strip span { white-space: nowrap; }
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, .56);
}
.signal-strip div { display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 112px; padding: 20px; border-right: 1px solid var(--line); }
.signal-strip div:last-child { border-right: 0; }
.signal-strip b { font-family: Georgia, serif; color: var(--green); font-size: 25px; font-weight: 500; white-space: nowrap; }
.signal-strip span { max-width: 120px; color: var(--muted); font-size: 11px; line-height: 1.4; }

.section { padding: 120px max(24px, calc((100vw - 1200px) / 2)); }
.section-heading { margin-bottom: 60px; }
.section-kicker { margin: 0 0 18px; color: #2b8b64; font-size: 11px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.section-heading h2, .localization-copy h2, .closing-section h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(45px, 5.2vw, 72px); font-weight: 500; line-height: 1.02; letter-spacing: -.045em; }
.section-heading > p, .split-heading > p, .localization-copy > p, .closing-section > p { color: var(--muted); font-size: 17px; line-height: 1.7; }
.split-heading { display: grid; grid-template-columns: 1.2fr .8fr; align-items: end; gap: 90px; }
.split-heading > p { max-width: 480px; margin: 0 0 4px; }
.centered-heading { max-width: 760px; margin-right: auto; margin-left: auto; text-align: center; }
.centered-heading > p:last-child { max-width: 620px; margin: 24px auto 0; }
.compact-heading { margin-bottom: 46px; }

.platform-section { background: var(--paper); }
.workflow-board { display: grid; grid-template-columns: 1fr auto 1.08fr auto 1fr; align-items: center; gap: 12px; }
.workflow-stage { position: relative; min-height: 280px; padding: 28px; border: 1px solid var(--line); border-radius: 24px; background: var(--cream); }
.workflow-stage.featured-stage { min-height: 330px; padding-top: 42px; background: var(--green); color: white; box-shadow: 0 25px 55px rgba(24, 77, 59, .2); }
.stage-number { position: absolute; top: 22px; right: 22px; color: #8a978f; font-size: 10px; font-weight: 800; }
.featured-stage .stage-number { color: #9fc6b5; }
.stage-icon { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 54px; border-radius: 15px; background: #d8e9df; color: var(--green); font-family: Georgia, serif; font-size: 20px; font-weight: 700; }
.featured-stage .stage-icon { background: var(--mint); }
.workflow-stage small { color: #378b67; font-size: 10px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.featured-stage small { color: #9fe1bf; }
.workflow-stage h3 { margin: 8px 0 10px; font-family: Georgia, serif; font-size: 26px; font-weight: 500; }
.workflow-stage p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.featured-stage p { color: #c8dcd3; }
.flow-arrow { color: #6f877b; font-size: 25px; }

.core-section { background: var(--cream); }
.core-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.core-card { display: flex; min-height: 485px; flex-direction: column; padding: 32px; border: 1px solid var(--line); border-radius: 26px; background: var(--paper); transition: transform .2s ease, box-shadow .2s ease; }
.core-card:hover, .tool-card:hover { transform: translateY(-5px); box-shadow: 0 22px 48px rgba(28, 62, 49, .1); }
.featured-product { background: #e7f2eb; }
.product-topline { display: flex; align-items: center; justify-content: space-between; }
.product-code { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 15px; background: var(--green); color: var(--mint); font-family: Georgia, serif; font-size: 16px; font-weight: 700; }
.product-status { padding: 6px 10px; border-radius: 999px; background: #edf4ef; color: #428063; font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.product-eyebrow { margin: 68px 0 12px; color: #2d8864; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.core-card h3 { margin: 0 0 16px; font-family: Georgia, serif; font-size: 34px; font-weight: 500; }
.product-description { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.product-detail { margin: auto 0 20px; padding-top: 30px; color: #526159; font-size: 11px; font-weight: 700; }
.core-card > a { display: flex; align-items: center; justify-content: space-between; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12px; font-weight: 800; }

.ecosystem-section { padding-top: 105px; background: var(--paper); }
.tool-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tool-card { display: flex; min-height: 335px; flex-direction: column; padding: 26px; border: 1px solid var(--line); border-radius: 22px; background: #f7f3eb; transition: transform .2s ease, box-shadow .2s ease; }
.tool-number { color: #449070; font-size: 10px; font-weight: 800; }
.tool-card h3 { margin: 82px 0 14px; font-family: Georgia, serif; font-size: 26px; font-weight: 500; }
.tool-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.tool-link { display: flex; justify-content: space-between; margin-top: auto; padding-top: 24px; border-top: 1px solid var(--line); font-size: 11px; font-weight: 800; }

.localization-section { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: clamp(50px, 9vw, 130px); overflow: hidden; min-height: 780px; padding: 110px max(24px, calc((100vw - 1200px) / 2)); background: #173b2e; color: white; }
.light-kicker { color: #9fe1bf; }
.localization-copy > p { max-width: 575px; color: #bed1c7; }
.locale-chips { display: flex; flex-wrap: wrap; gap: 9px; margin: 30px 0 38px; }
.locale-chips span { padding: 9px 13px; border: 1px solid rgba(185, 241, 213, .24); border-radius: 999px; color: #d8e9df; font-size: 11px; }
.text-link-light { display: inline-flex; gap: 18px; padding-bottom: 8px; border-bottom: 1px solid #7ea791; font-size: 12px; font-weight: 800; }
.integration-visual { position: relative; aspect-ratio: 1 / 1; max-width: 580px; width: 100%; border: 1px solid rgba(185, 241, 213, .18); border-radius: 50%; background: radial-gradient(circle at center, rgba(185, 241, 213, .13), transparent 55%); }
.integration-visual::before, .integration-visual::after { content: ""; position: absolute; border: 1px dashed rgba(185, 241, 213, .21); border-radius: 50%; inset: 14%; }
.integration-visual::after { inset: 31%; }
.integration-center, .orbit-item { position: absolute; display: flex; align-items: center; gap: 10px; border: 1px solid rgba(185, 241, 213, .22); background: #214b3b; box-shadow: 0 12px 30px rgba(0, 0, 0, .15); }
.integration-center { top: 50%; left: 50%; width: 170px; padding: 18px; border-radius: 20px; transform: translate(-50%, -50%); }
.integration-center b, .orbit-item b { display: grid; place-items: center; width: 43px; height: 43px; flex: 0 0 auto; border-radius: 13px; background: var(--mint); color: var(--green); font-family: Georgia, serif; }
.integration-center span { color: #e6f0eb; font-size: 12px; font-weight: 700; line-height: 1.4; }
.orbit-item { padding: 10px 13px; border-radius: 15px; }
.orbit-item b { width: 34px; height: 34px; font-size: 12px; }
.orbit-item span { color: #d6e5dd; font-size: 10px; }
.orbit-one { top: 8%; left: 40%; }
.orbit-two { top: 43%; right: -3%; }
.orbit-three { bottom: 8%; left: 37%; }
.orbit-four { top: 45%; left: -4%; }

.security-section { background: #eef3ef; }
.narrow-heading { max-width: 850px; }
.security-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.security-grid article { min-height: 280px; padding: 38px; border-right: 1px solid var(--line); }
.security-grid article:last-child { border-right: 0; }
.security-grid article > span { color: #348561; font-size: 10px; font-weight: 800; }
.security-grid h3 { margin: 66px 0 13px; font-family: Georgia, serif; font-size: 26px; font-weight: 500; }
.security-grid p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }

.start-section { background: var(--paper); }
.offer-grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 15px; }
.offer-card { display: flex; min-height: 330px; flex-direction: column; padding: 30px; border: 1px solid var(--line); border-radius: 25px; background: var(--cream); }
.offer-card > span { color: #36845f; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.offer-card h3 { margin: 70px 0 10px; font-family: Georgia, serif; font-size: 34px; font-weight: 500; }
.offer-card p { margin: 0; color: var(--muted); font-size: 14px; }
.offer-card b { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12px; }
.offer-dark { background: var(--green); color: white; }
.offer-dark > span { color: #9fe1bf; }
.offer-dark p { color: #c8dcd3; }
.offer-dark b { border-color: rgba(255,255,255,.18); }

.closing-section { padding: 130px 24px; text-align: center; background: #102b21; color: white; }
.closing-section > p { margin-bottom: 20px; color: #9fe1bf; }
.closing-actions { display: flex; justify-content: center; gap: 12px; margin-top: 40px; }
.mint-button { background: var(--mint); color: var(--green); }
.line-button { border: 1px solid rgba(255,255,255,.25); color: white; }

footer { display: grid; grid-template-columns: 1fr 1.5fr; gap: 80px; padding: 75px max(24px, calc((100vw - 1200px) / 2)) 30px; background: #0c2119; color: white; }
.brand-light { color: white; }
.footer-mark { background: var(--mint); color: var(--green); }
.footer-brand p { margin-top: 20px; color: #8eaaa0; font-size: 13px; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.footer-links div { display: flex; flex-direction: column; gap: 11px; }
.footer-links b { margin-bottom: 8px; color: white; font-size: 11px; }
.footer-links a { color: #8eaaa0; font-size: 12px; }
.footer-bottom { display: flex; grid-column: 1 / -1; justify-content: space-between; margin-top: 45px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); color: #6e8c80; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }

@media (max-width: 980px) {
  .signal-strip { grid-template-columns: repeat(2, 1fr); }
  .signal-strip div:nth-child(2) { border-right: 0; }
  .split-heading { grid-template-columns: 1fr; gap: 30px; }
  .workflow-board { grid-template-columns: 1fr; }
  .flow-arrow { justify-self: center; transform: rotate(90deg); }
  .workflow-stage, .workflow-stage.featured-stage { min-height: 240px; }
  .core-grid { grid-template-columns: 1fr; }
  .core-card { min-height: 400px; }
  .tool-grid { grid-template-columns: repeat(2, 1fr); }
  .localization-section { grid-template-columns: 1fr; }
  .integration-visual { margin: 20px auto 0; }
  .security-grid, .offer-grid { grid-template-columns: 1fr; }
  .security-grid article { border-right: 0; border-bottom: 1px solid var(--line); }
  .security-grid article:last-child { border-bottom: 0; }
  footer { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .section { padding: 82px 20px; }
  .section-heading h2, .localization-copy h2, .closing-section h2 { font-size: 43px; }
  .signal-strip div { min-height: 96px; padding: 16px 10px; }
  .signal-strip b { font-size: 20px; }
  .signal-strip span { font-size: 9px; }
  .section-heading { margin-bottom: 40px; }
  .tool-grid { grid-template-columns: 1fr; }
  .tool-card { min-height: 280px; }
  .localization-section { min-height: auto; padding: 90px 20px; }
  .integration-visual { width: 112%; margin-left: -6%; }
  .orbit-item span { display: none; }
  .orbit-item { padding: 8px; }
  .security-grid article { min-height: 240px; padding: 28px; }
  .closing-section { padding: 95px 20px; }
  .closing-actions { flex-direction: column; }
  footer { padding: 60px 20px 25px; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .footer-bottom { gap: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

.legal-main { min-height: 100vh; background: var(--cream); }
.legal-hero { padding: 86px max(24px, calc((100vw - 980px) / 2)) 74px; border-bottom: 1px solid var(--line); background: #173b2e; color: white; }
.legal-hero .section-kicker { color: #9fe1bf; }
.legal-hero h1 { max-width: 850px; font-size: clamp(52px, 7vw, 82px); }
.legal-hero p:last-child { max-width: 680px; margin: 22px 0 0; color: #bed1c7; font-size: 16px; line-height: 1.7; }
.legal-wrap { width: min(980px, calc(100% - 40px)); margin: 0 auto; padding: 72px 0 105px; }
.legal-content { max-width: 770px; padding: 54px; border: 1px solid var(--line); border-radius: 28px; background: var(--paper); box-shadow: 0 24px 55px rgba(28, 62, 49, .08); }
.legal-content > p:first-child { margin-top: 0; }
.legal-content h2 { margin: 48px 0 14px; font-family: Georgia, "Times New Roman", serif; color: var(--green); font-size: 27px; font-weight: 500; letter-spacing: -.02em; }
.legal-content p, .legal-content li { color: #53645c; font-size: 15px; line-height: 1.8; }
.legal-content a { color: #1f7b58; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.legal-content ul { padding-left: 22px; }
.legal-content li { margin: 8px 0; padding-left: 4px; }
.legal-note { display: inline-block; margin-bottom: 24px; padding: 7px 11px; border-radius: 999px; background: #e4efe8; color: #34775a !important; font-size: 11px !important; font-weight: 800; }
.legal-footer { display: flex; justify-content: space-between; gap: 24px; margin-top: 52px; padding-top: 26px; border-top: 1px solid var(--line); color: #7b8982; font-size: 11px; line-height: 1.6; }
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.contact-card { min-height: 210px; padding: 28px; border: 1px solid var(--line); border-radius: 22px; background: var(--paper); }
.contact-card span { color: #36845f; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.contact-card h2 { margin: 48px 0 10px; font-family: Georgia, serif; color: var(--ink); font-size: 26px; font-weight: 500; }
.contact-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.contact-card a { color: var(--green); font-weight: 800; }

@media (max-width: 650px) {
  .legal-hero { padding-top: 62px; }
  .legal-wrap { width: min(100% - 28px, 980px); padding-top: 42px; }
  .legal-content { padding: 30px 22px; border-radius: 20px; }
  .legal-content h2 { margin-top: 38px; font-size: 24px; }
  .legal-footer { flex-direction: column; }
  .contact-grid { grid-template-columns: 1fr; }
}
