:root {
  --navy: #061b3d;
  --navy-2: #0c2f5d;
  --blue: #176db0;
  --teal: #058e9e;
  --green: #25a45a;
  --mint: #dff7ea;
  --purple: #7042df;
  --amber: #f4b43f;
  --red: #d83b3b;
  --ink: #102033;
  --muted: #5b6b7e;
  --line: #d9e3ee;
  --surface: #ffffff;
  --soft: #f4f8fb;
  --soft-2: #edf6f4;
  --shadow: 0 18px 46px rgba(10, 35, 67, 0.13);
  --radius: 8px;
  --header-height: 72px;
  --module-visual-height: 184px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  padding: 0 5vw;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(217, 227, 238, 0.85);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand-logo {
  width: clamp(130px, 13vw, 174px);
  height: auto;
  max-height: 54px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  min-height: 40px;
  padding: 10px 12px;
  color: var(--navy);
  border-radius: 6px;
  font-size: 0.94rem;
  font-weight: 700;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--blue);
  background: var(--soft);
}

.site-nav .nav-cta {
  color: #fff;
  background: var(--navy);
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta:focus-visible {
  color: #fff;
  background: var(--blue);
}

.site-nav .nav-whatsapp {
  background: var(--green);
}

.site-nav .nav-whatsapp:hover,
.site-nav .nav-whatsapp:focus-visible {
  color: #fff;
  background: #168846;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--navy);
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: calc(100svh - var(--header-height) - 58px);
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(108deg, rgba(6, 27, 61, 0.98) 0%, rgba(7, 45, 77, 0.92) 45%, rgba(5, 142, 158, 0.56) 100%),
    var(--navy);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.hero-bg img {
  position: absolute;
  right: max(-120px, -8vw);
  bottom: 9%;
  width: min(68vw, 1000px);
  min-width: 560px;
  opacity: 0.34;
  filter: saturate(0.95) contrast(1.08);
  transform: rotate(-2deg);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.3), #000 42%, transparent 100%);
}

.hero-content {
  width: min(760px, 90vw);
  padding: clamp(72px, 9vw, 128px) 0 clamp(86px, 11vw, 140px);
  margin-left: 5vw;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(3.5rem, 9vw, 7.8rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 680px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.08rem, 2vw, 1.36rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 850;
}

.button.primary {
  color: var(--navy);
  background: #fff;
}

.button.primary:hover,
.button.primary:focus-visible {
  color: #fff;
  background: var(--green);
}

.button.secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.22);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  background: rgba(255, 255, 255, 0.16);
}

.button.whatsapp {
  color: #fff;
  background: var(--green);
  border-color: rgba(255, 255, 255, 0.24);
}

.button.whatsapp:hover,
.button.whatsapp:focus-visible {
  background: #168846;
}

.button-icon {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  flex: 0 0 auto;
}

.button-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-modules {
  position: absolute;
  right: 5vw;
  bottom: 28px;
  display: grid;
  width: min(620px, 58vw);
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.hero-modules a {
  min-height: 96px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  backdrop-filter: blur(12px);
}

.hero-modules strong,
.hero-modules span {
  display: block;
}

.hero-modules strong {
  font-size: 1.04rem;
}

.hero-modules span {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
}

.section-inner {
  width: min(1180px, 90vw);
  margin: 0 auto;
}

.intro-band {
  padding: 28px 0;
  background: var(--soft-2);
  border-bottom: 1px solid var(--line);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 28px;
}

.intro-grid p {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  font-weight: 700;
}

.intro-grid p + p {
  color: var(--muted);
  font-weight: 600;
}

.section {
  padding: clamp(68px, 8vw, 106px) 0;
}

.section-heading {
  max-width: 790px;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.segmented-control {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px;
  margin-bottom: 28px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.segment {
  min-height: 38px;
  padding: 8px 14px;
  color: var(--navy);
  background: transparent;
  border: 0;
  border-radius: 6px;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 850;
  cursor: pointer;
}

.segment:hover,
.segment:focus-visible,
.segment.is-active {
  color: #fff;
  background: var(--navy);
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.module-card {
  display: flex;
  min-height: 330px;
  flex-direction: column;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(10, 35, 67, 0.06);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.module-card:hover {
  transform: translateY(-3px);
  border-color: rgba(23, 109, 176, 0.35);
  box-shadow: var(--shadow);
}

.module-card[href] {
  position: relative;
  color: inherit;
  cursor: pointer;
}

.module-card[href]::after {
  display: inline-flex;
  align-self: flex-start;
  padding: 8px 10px;
  margin-top: 18px;
  color: var(--blue);
  content: "Ver detalhes";
  background: #edf6ff;
  border: 1px solid #cfe2f6;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 900;
}

.module-card[href]:hover::after,
.module-card[href]:focus-visible::after {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}

.module-card:focus-visible {
  outline: 3px solid rgba(23, 109, 176, 0.36);
  outline-offset: 4px;
}

.module-card[hidden] {
  display: none;
}

.module-card h3 {
  margin: 14px 0 10px;
  color: var(--navy);
  font-size: 1.38rem;
  line-height: 1.16;
}

.module-card p {
  margin: 0 0 16px;
  color: var(--muted);
  font-weight: 650;
}

.module-card ul {
  display: grid;
  gap: 9px;
  padding: 0;
  margin: auto 0 0;
  list-style: none;
}

.module-card li {
  position: relative;
  padding-left: 18px;
  color: #2d3b4d;
  font-size: 0.95rem;
}

.module-card li::before {
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 7px;
  height: 7px;
  content: "";
  background: var(--green);
  border-radius: 50%;
}

.module-tag {
  align-self: flex-start;
  padding: 6px 9px;
  color: var(--navy);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 900;
}

.tag-his {
  color: var(--navy);
  background: #eaf2ff;
  border-color: #c9dcf4;
}

.tag-lis {
  color: #0d5c30;
  background: var(--mint);
  border-color: #bbe9cd;
}

.tag-rispacs {
  color: #3a1a93;
  background: #f0ebff;
  border-color: #dacdff;
}

.media-card {
  grid-row: span 2;
}

.media-card img {
  width: 100%;
  height: var(--module-visual-height);
  margin: 2px 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  object-position: left center;
}

.module-screenshot,
.system-screen {
  width: 100%;
  margin: 2px 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.module-screenshot {
  height: var(--module-visual-height);
  object-fit: cover;
  object-position: center;
}

.system-screen {
  display: grid;
  height: var(--module-visual-height);
  padding: 10px;
  gap: 10px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(244, 248, 251, 0.75);
}

.screen-top {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.screen-top span,
.screen-top b {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.screen-top span {
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 900;
}

.screen-top b {
  padding: 4px 8px;
  color: #fff;
  background: var(--blue);
  border-radius: 999px;
  font-size: 0.66rem;
}

.screen-search {
  display: grid;
  grid-template-columns: 1fr 0.55fr;
  gap: 8px;
}

.screen-search span,
.portal-card,
.image-result {
  min-width: 0;
  padding: 8px 10px;
  color: #506073;
  background: var(--soft);
  border: 1px solid #e4ecf4;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 750;
}

.screen-table {
  display: grid;
  grid-template-columns: 1fr 0.72fr 0.78fr;
  overflow: hidden;
  border: 1px solid #e4ecf4;
  border-radius: 6px;
}

.screen-table span {
  min-width: 0;
  padding: 7px 8px;
  overflow: hidden;
  color: #34475d;
  border-bottom: 1px solid #e4ecf4;
  font-size: 0.68rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.screen-table span:nth-child(-n + 3) {
  color: var(--navy);
  background: var(--soft);
  font-weight: 900;
}

.screen-table span:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.boletim-grid,
.triage-vitals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.boletim-grid span,
.triage-vitals span {
  min-width: 0;
  padding: 9px 10px;
  color: #405268;
  background: var(--soft);
  border: 1px solid #e4ecf4;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 850;
}

.screen-boletim {
  min-height: 238px;
}

.boletim-section {
  display: grid;
  gap: 7px;
}

.boletim-section strong {
  color: var(--navy);
  font-size: 0.66rem;
  font-weight: 900;
  text-transform: uppercase;
}

.boletim-grid-patient {
  grid-template-columns: 1.25fr 0.75fr;
}

.screen-boletim .screen-pills span {
  color: #0d5c30;
  background: var(--mint);
}

.screen-triage {
  min-height: 224px;
}

.triage-vitals span {
  text-align: center;
}

.risk-stack {
  display: grid;
  gap: 6px;
}

.risk-stack span {
  display: flex;
  min-height: 30px;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  color: #fff;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 900;
}

.risk-stack span::after {
  content: "0 min";
  opacity: 0.86;
  font-size: 0.68rem;
}

.risk-stack .risk-orange::after {
  content: "10 min";
}

.risk-stack .risk-yellow::after {
  content: "60 min";
}

.risk-stack .risk-green::after {
  content: "120 min";
}

.risk-red {
  background: var(--red);
}

.risk-orange {
  background: #f06d2f;
}

.risk-yellow {
  background: var(--amber);
}

.risk-green {
  background: #13ad69;
}

.open-care-table {
  display: grid;
  grid-template-columns: 1fr 0.42fr 0.9fr;
  overflow: hidden;
  border: 1px solid #dce8f2;
  border-radius: 6px;
}

.open-care-table span {
  min-width: 0;
  padding: 7px 8px;
  overflow: hidden;
  color: #34475d;
  border-bottom: 1px solid #e4ecf4;
  font-size: 0.66rem;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.open-care-table span:nth-child(-n + 3) {
  color: #fff;
  background: #0ea6c9;
  border-bottom-color: #0ea6c9;
  font-weight: 900;
}

.open-care-table span:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.open-care-table span:nth-child(6),
.open-care-table span:nth-child(9) {
  color: var(--navy);
  font-size: 0.62rem;
  font-weight: 900;
  text-transform: uppercase;
}

.record-layout,
.billing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.record-layout div,
.billing-grid span,
.billing-grid strong {
  min-width: 0;
  padding: 8px;
  background: var(--soft);
  border: 1px solid #e4ecf4;
  border-radius: 6px;
}

.record-layout span,
.record-layout strong {
  display: block;
}

.record-layout span,
.billing-grid span {
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 800;
}

.record-layout strong,
.billing-grid strong {
  color: var(--navy);
  font-size: 0.9rem;
}

.screen-pills,
.lab-steps,
.call-queue {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.screen-pills span,
.lab-steps span,
.call-queue span {
  padding: 6px 8px;
  color: var(--navy);
  background: #eaf2ff;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 850;
}

.care-list,
.screen-stock,
.screen-ris,
.screen-portal,
.screen-images {
  align-content: start;
}

.care-list {
  display: grid;
  gap: 8px;
}

.care-list span {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  color: #34475d;
  font-size: 0.74rem;
  font-weight: 800;
}

.care-list b {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  background: var(--green);
  border-radius: 50%;
}

.care-list span:nth-child(2) b {
  background: var(--amber);
}

.care-list span:nth-child(3) b {
  background: var(--blue);
}

.stock-row,
.ris-row {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.stock-row span,
.ris-row span,
.ris-row b {
  min-width: 0;
  overflow: hidden;
  color: #34475d;
  font-size: 0.7rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stock-row b {
  height: 9px;
  overflow: hidden;
  background: #e2eaf2;
  border-radius: 999px;
}

.stock-high {
  --bar: 78%;
}

.stock-medium {
  --bar: 54%;
}

.stock-low {
  --bar: 42%;
}

.stock-row b::before {
  display: block;
  width: var(--bar);
  height: 100%;
  content: "";
  background: linear-gradient(90deg, var(--green), var(--teal));
  border-radius: inherit;
}

.call-main {
  display: grid;
  min-height: 86px;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  border-radius: 8px;
  text-align: center;
}

.call-main span,
.call-main small {
  font-size: 0.7rem;
  font-weight: 850;
}

.call-main strong {
  font-size: 2rem;
  line-height: 1;
}

.billing-grid {
  align-items: stretch;
}

.billing-grid span,
.billing-grid strong {
  display: grid;
  place-items: center;
  text-align: center;
}

.billing-grid strong {
  color: var(--green);
  background: var(--mint);
}

.lab-steps {
  counter-reset: lab-step;
}

.lab-steps span {
  position: relative;
  flex: 1 1 110px;
  color: #0d5c30;
  background: var(--mint);
  border: 1px solid #bbe9cd;
}

.lab-steps span::before {
  margin-right: 5px;
  content: counter(lab-step) ".";
  counter-increment: lab-step;
  font-weight: 950;
}

.portal-card,
.image-result {
  display: grid;
  gap: 4px;
}

.portal-card strong,
.image-result strong {
  color: var(--navy);
  font-size: 0.78rem;
}

.portal-card span,
.image-result span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 750;
}

.muted-card {
  opacity: 0.72;
}

.ris-row b {
  justify-self: end;
  padding: 4px 7px;
  color: #3a1a93;
  background: #f0ebff;
  border-radius: 999px;
}

.viewer-grid {
  display: grid;
  min-height: 96px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.viewer-grid span {
  min-height: 42px;
  background:
    radial-gradient(circle at 52% 48%, rgba(255, 255, 255, 0.32), transparent 19%),
    linear-gradient(135deg, #0d1b2f, #263a60);
  border-radius: 6px;
}

.screen-images {
  background:
    linear-gradient(135deg, rgba(240, 235, 255, 0.82), rgba(255, 255, 255, 0.92)),
    #fff;
}

.image-result {
  min-height: 82px;
  align-content: center;
  background: #fff;
}

.flow-section {
  background: linear-gradient(180deg, var(--soft), #fff);
}

.flow-grid {
  display: grid;
  gap: 18px;
}

.flow-panel {
  display: grid;
  grid-template-columns: minmax(210px, 0.35fr) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(10, 35, 67, 0.07);
}

.flow-panel-header {
  padding: 24px;
  background: linear-gradient(180deg, var(--soft), #fff);
  border-right: 1px solid var(--line);
  border-radius: 8px 0 0 8px;
}

.flow-panel h3 {
  margin: 16px 0 10px;
  color: var(--navy);
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1.12;
}

.flow-panel p {
  margin: 0;
  color: var(--muted);
  font-weight: 650;
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(var(--step-count), minmax(0, 1fr));
  gap: 10px;
  align-items: start;
  padding: 24px 24px 24px 0;
  margin: 0;
  list-style: none;
}

.flow-lis {
  --flow-color: var(--green);
  --step-count: 4;
}

.flow-rispacs {
  --flow-color: var(--purple);
  --step-count: 5;
}

.flow-steps li {
  position: relative;
  min-width: 0;
}

.flow-steps li:not(:last-child)::after {
  position: absolute;
  top: 28px;
  left: calc(58px + 10px);
  right: -5px;
  height: 3px;
  content: "";
  background: color-mix(in srgb, var(--flow-color) 65%, white);
}

.step-number {
  position: relative;
  z-index: 1;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  color: var(--navy);
  background: #fff;
  border: 7px solid var(--flow-color);
  border-radius: 50%;
  font-size: 1.05rem;
  font-weight: 900;
}

.flow-steps strong {
  display: block;
  margin-top: 13px;
  color: var(--navy);
  font-size: 1rem;
  line-height: 1.16;
}

.flow-steps p {
  margin-top: 8px;
  color: #36475b;
  font-size: 0.9rem;
  line-height: 1.34;
  font-weight: 520;
}

.integration-section {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(6, 27, 61, 0.96), rgba(8, 71, 100, 0.94) 54%, rgba(37, 164, 90, 0.82)),
    var(--navy);
}

.integration-section .eyebrow,
.integration-section h2 {
  color: #fff;
}

.integration-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(26px, 5vw, 64px);
  align-items: center;
}

.integration-map {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.integration-node,
.integration-core {
  min-height: 158px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
}

.integration-node strong,
.integration-core strong {
  display: block;
  font-size: 1.18rem;
}

.integration-node span,
.integration-core span {
  display: block;
  margin-top: 9px;
  color: rgba(255, 255, 255, 0.79);
}

.integration-core {
  grid-column: 1 / -1;
  min-height: 128px;
  background: rgba(37, 164, 90, 0.22);
}

.his-node {
  border-top: 5px solid var(--blue);
}

.lis-node {
  border-top: 5px solid var(--green);
}

.ris-node {
  border-top: 5px solid var(--purple);
}

.foundation-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.foundation-item {
  padding: 22px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.foundation-item h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 1.18rem;
}

.foundation-item p {
  margin: 0;
  color: var(--muted);
  font-weight: 650;
}

.cta-band {
  padding: 44px 0;
  color: #fff;
  background: var(--navy);
}

.cta-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cta-content h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.site-footer {
  padding: 30px 0;
  color: rgba(255, 255, 255, 0.78);
  background: #04142e;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-content {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 18px 34px;
  justify-content: space-between;
}

.footer-summary {
  max-width: 620px;
}

.footer-kicker {
  display: inline-flex;
  color: #78df9f;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-summary p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(0.96rem, 1.4vw, 1.08rem);
  font-weight: 650;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-nav a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 9px 12px;
  color: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 850;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
}

.detail-hero {
  padding: clamp(34px, 5vw, 64px) 0;
  color: #fff;
  overflow: hidden;
  background:
    linear-gradient(132deg, rgba(6, 27, 61, 0.98), rgba(11, 57, 91, 0.96) 52%, rgba(5, 142, 158, 0.84)),
    var(--navy);
}

.detail-hero-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(24px, 4vw, 52px);
  align-items: center;
}

.detail-copy {
  min-width: 0;
}

.detail-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.detail-back {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 850;
  line-height: 1;
}

.detail-back:hover,
.detail-back:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
}

.detail-back .button-icon,
.detail-back .button-icon svg {
  width: 16px;
  height: 16px;
}

.detail-toolbar .module-tag {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 8px 11px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.detail-toolbar .tag-his {
  background: rgba(23, 109, 176, 0.28);
  border-color: rgba(158, 203, 244, 0.38);
}

.detail-toolbar .tag-lis {
  background: rgba(37, 164, 90, 0.28);
  border-color: rgba(187, 233, 205, 0.42);
}

.detail-toolbar .tag-rispacs {
  background: rgba(112, 66, 223, 0.28);
  border-color: rgba(218, 205, 255, 0.42);
}

.detail-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(2.45rem, 5vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.detail-copy p {
  max-width: 650px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
  font-weight: 650;
}

.detail-visual-frame {
  min-width: 0;
  padding: clamp(8px, 1.1vw, 12px);
  margin: 0;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.22);
}

.detail-visual {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #fff;
  border-radius: 6px;
}

.detail-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  background: #fff;
}

.detail-system-screen {
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: clamp(14px, 2vw, 24px);
}

.detail-system-screen .screen-top span {
  font-size: clamp(0.95rem, 1.7vw, 1.25rem);
}

.detail-system-screen .screen-top b {
  font-size: clamp(0.78rem, 1.3vw, 0.98rem);
}

.detail-system-screen .viewer-grid {
  min-height: clamp(230px, 35vw, 440px);
  gap: clamp(10px, 1.6vw, 18px);
}

.detail-system-screen .viewer-grid span {
  min-height: 100px;
}

.detail-section {
  background: linear-gradient(180deg, var(--soft), #fff 72%);
}

.detail-panels {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 18px;
  align-items: stretch;
}

.detail-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(20px, 2.4vw, 28px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(10, 35, 67, 0.06);
}

.detail-panel-wide {
  grid-row: span 2;
}

.detail-panel-wide .detail-list {
  flex: 1;
  align-content: space-between;
  gap: clamp(14px, 2.1vw, 28px);
}

.detail-outcomes {
  grid-column: 1 / -1;
}

.detail-panel h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.24rem, 2.2vw, 1.8rem);
  line-height: 1.12;
}

.detail-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.detail-list li {
  position: relative;
  min-width: 0;
  padding-left: 28px;
  color: #314154;
  font-weight: 650;
}

.detail-list li::before {
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 10px;
  height: 10px;
  content: "";
  background: var(--green);
  border-radius: 50%;
}

.detail-steps {
  counter-reset: detail-step;
}

.detail-steps li {
  padding-left: 38px;
}

.detail-steps li::before {
  top: -1px;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  color: #fff;
  content: counter(detail-step);
  counter-increment: detail-step;
  background: var(--blue);
  border-radius: 50%;
  font-size: 0.82rem;
  font-weight: 900;
}

.detail-outcomes .detail-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.detail-outcomes .detail-list li {
  min-height: 86px;
  padding: 18px 18px 18px 42px;
  background: var(--soft-2);
  border: 1px solid #d5e9e4;
  border-radius: 8px;
}

.detail-outcomes .detail-list li::before {
  top: 24px;
  left: 18px;
}

.detail-missing h1 {
  margin: 0 0 14px;
  color: var(--navy);
  font-size: clamp(2.2rem, 5vw, 4rem);
}

.detail-missing p {
  max-width: 560px;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 1.08rem;
  font-weight: 650;
}

@media (max-width: 1020px) {
  .hero {
    min-height: auto;
  }

  .hero-bg img {
    right: -260px;
    width: 1000px;
    opacity: 0.22;
  }

  .hero-content {
    padding-bottom: 170px;
  }

  .hero-modules {
    right: auto;
    left: 5vw;
    width: min(90vw, 720px);
  }

  .module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .foundation-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .integration-layout {
    grid-template-columns: 1fr;
  }

  .detail-hero-layout,
  .detail-panels {
    grid-template-columns: 1fr;
  }

  .detail-panel-wide {
    grid-row: auto;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 66px;
  }

  .site-header {
    padding: 0 18px;
  }

  .menu-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 18px;
    left: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    min-height: 44px;
  }

  .hero-content {
    width: min(100% - 36px, 720px);
    padding: 54px 0 140px;
    margin-left: 18px;
  }

  .hero h1 {
    font-size: clamp(3.1rem, 18vw, 4.8rem);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    max-width: 320px;
  }

  .hero-modules {
    bottom: 18px;
    left: 18px;
    width: calc(100% - 36px);
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .hero-modules a {
    min-height: 96px;
    padding: 12px;
  }

  .hero-modules strong {
    font-size: 0.88rem;
  }

  .hero-modules span {
    font-size: 0.76rem;
  }

  .intro-grid,
  .flow-grid,
  .module-grid,
  .foundation-grid,
  .integration-map {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 58px 0;
  }

  .section-inner {
    width: calc(100% - 36px);
  }

  .segmented-control {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .module-card,
  .media-card {
    min-height: auto;
  }

  .flow-panel {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .flow-panel-header {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 8px 8px 0 0;
  }

  .flow-steps {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 22px;
  }

  .flow-steps li {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    column-gap: 14px;
  }

  .flow-steps li:not(:last-child)::after {
    top: 58px;
    bottom: -18px;
    left: 28px;
    width: 3px;
    height: auto;
    right: auto;
  }

  .flow-steps strong {
    margin-top: 4px;
  }

  .flow-steps p {
    grid-column: 2;
  }

  .cta-content {
    align-items: flex-start;
    flex-direction: column;
  }

  .detail-hero {
    padding: 36px 0 44px;
  }

  .detail-copy h1 {
    font-size: clamp(2.4rem, 14vw, 4rem);
  }

  .detail-visual {
    aspect-ratio: 4 / 3;
  }

  .detail-outcomes .detail-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 460px) {
  .brand-logo {
    width: 124px;
    max-height: 46px;
  }

  .hero-content {
    padding-bottom: 150px;
  }

  .hero-bg img {
    right: -380px;
    min-width: 780px;
  }

  .segmented-control {
    grid-template-columns: 1fr;
  }

  .module-card {
    padding: 18px;
  }

  .detail-visual-frame {
    padding: 8px;
  }

  .detail-panel {
    padding: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
