:root{
  --white:#FFFFFF;
  --off-white:#faf8f8;
  --ink:#111827;
  --grey:#6b7280;
  --line:#ececec;
  --red:#ef4444;
  --red-dark:#dc2626;
  --red-tint:#fff1f2;
  --green-ok:#22c55e;
  --radius:999px;
  --card-radius:28px;
}

*{ margin:0; padding:0; box-sizing:border-box; }

html{ scroll-behavior:smooth; }

body{
  background:var(--off-white);
  color:var(--ink);
  font-family:'Inter', sans-serif;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

.mono{
  font-family:'Inter', sans-serif;
  letter-spacing:2px;
  font-weight:600;
  text-transform:uppercase;
}

h1,h2,h3{
  font-family:'DM Serif Display', serif;
  font-weight:400;
  letter-spacing:-0.02em;
  line-height:1.1;
  color:var(--ink);
}

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

.wrap{
  max-width:1180px;
  margin:0 auto;
  padding:0 32px;
}

section{ position:relative; }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; scroll-behavior:auto !important; }
}
.ec-hero {
  --ink: #111827;
  --paper: #faf8f8;
  --panel: #ffffff;
  --red: #ef4444;
  --red-dark: #dc2626;
  --green: #22c55e;
  --line: #ececec;
  --muted: #6b7280;

  font-family: 'Inter', sans-serif;
  background: var(--paper);
  color: var(--ink);
  padding: 88px 24px 96px;
  overflow: hidden;
}

.ec-hero__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

/* -------- left column -------- */
.ec-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red);
  background: var(--red-tint);
  border: none;
  border-radius: 999px;
  padding: 12px 24px;
  margin-bottom: 24px;
  font-weight: 600;
}

.ec-eyebrow__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
}

.ec-hero h1 {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  font-size: clamp(38px, 4.6vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  color: var(--ink);
}

.ec-hero h1 em {
  font-style: normal;
  color: var(--red);
}

.ec-hero__sub {
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 42ch;
  margin: 0 0 32px;
}

.ec-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.ec-btn {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 15px;
  border-radius: 999px;
  padding: 16px 32px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ec-btn--primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 10px 25px rgba(239, 68, 68, 0.25);
}

.ec-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(239, 68, 68, 0.35);
}

.ec-btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid #ddd;
}

.ec-btn--ghost:hover {
  border-color: var(--red);
  color: var(--red);
}

.ec-hero__stats {
  display: flex;
  gap: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  max-width: 42ch;
}

.ec-stat__num {
  font-family: 'DM Serif Display', serif;
  font-size: 28px;
  font-weight: 400;
  color: var(--red);
}

.ec-stat__label {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 2px;
}

/* -------- right column: diagnostic ticket -------- */
.ec-ticket {
  background: var(--ink);
  border-radius: var(--card-radius);
  padding: 24px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.ec-ticket__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.04em;
}

.ec-ticket__id {
  color: rgba(255, 255, 255, 0.45);
}

.ec-ticket__live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
}

.ec-ticket__live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: ec-pulse 1.6s ease-in-out infinite;
}

.ec-ticket__device {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 18px;
  min-height: 168px;
}

.ec-ticket__device svg {
  width: 64px;
  height: 64px;
  color: rgba(255, 255, 255, 0.55);
}

.ec-scanline {
  position: absolute;
  left: 18px;
  right: 18px;
  top: 24px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
}

.ec-ticket__rows {
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
}

.ec-ticket__row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
}

.ec-ticket__row:last-child {
  border-bottom: none;
}

.ec-ticket__row span:first-child {
  color: rgba(255, 255, 255, 0.4);
}

#ec-status {
  color: var(--green);
}

.ec-ticket__tag {
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--red);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  padding: 6px 12px;
  border-radius: 999px;
  box-shadow: 0 8px 16px -6px rgba(230, 57, 70, 0.6);
}

@keyframes ec-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.75); }
}

@media (prefers-reduced-motion: reduce) {
  .ec-scanline, .ec-ticket__live-dot { animation: none; }
}

/* -------- responsive -------- */
@media (max-width: 1023px) {
  .ec-hero__inner {
    grid-template-columns: 1fr;
  }
  .ec-hero__stats { gap: 24px; }
}

@media (max-width: 767px) {
  .ec-hero { padding: 64px 18px 72px; }
  .ec-hero__ctas { flex-direction: column; }
  .ec-btn { justify-content: center; width: 100%; }
}
/* ---------- HERO ---------- */
section.hero{
  min-height:auto;
  display:block;
  padding:96px 0 0;
  position:relative;
  overflow:visible;
}

.hero{
  padding:96px 0 0;
  position:relative;
}

.hero-grid{
  display:grid;
  grid-template-columns:1.15fr 0.85fr;
  gap:48px;
  align-items:center;
}

.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-family:'Inter', sans-serif;
  font-size:12px;
  font-weight:600;
  letter-spacing:2px;
  text-transform:uppercase;
  color:var(--red);
  background:var(--red-tint);
  border-radius:999px;
  padding:12px 24px;
  margin-bottom:24px;
}
.eyebrow .dot{
  width:8px; height:8px; border-radius:50%;
  background:var(--red);
  box-shadow:none;
  animation:none;
}

.hero h1{
  font-family:'DM Serif Display', serif;
  font-size:clamp(38px, 5vw, 4rem);
  max-width:none;
  line-height:1.1;
  color:var(--ink);
}
.hero h1 em{
  font-style:normal;
  color:var(--red);
  position:relative;
}

.hero p.lede{
  margin-top:24px;
  font-size:18px;
  line-height:1.65;
  color:var(--grey);
  max-width:46ch;
}

.hero-ctas{
  margin-top:36px;
  display:flex;
  gap:16px;
  flex-wrap:wrap;
}

.btn{
  font-family:'Inter', sans-serif;
  font-weight:600;
  font-size:15px;
  padding:16px 32px;
  border-radius:999px;
  border:1.5px solid transparent;
  cursor:pointer;
  text-decoration:none;
  transition:transform .3s ease, background .3s ease, color .3s ease, border-color .3s ease, box-shadow .3s ease;
  display:inline-flex;
  align-items:center;
  gap:10px;
}
.btn-primary{
  background:var(--red);
  border-color:var(--red);
  color:var(--white);
  box-shadow:0 10px 25px rgba(239,68,68,.25);
}
.btn-primary:hover{
  background:var(--red-dark);
  border-color:var(--red-dark);
  transform:translateY(-2px);
  box-shadow:0 15px 35px rgba(239,68,68,.35);
}
.btn-ghost{
  background:transparent;
  color:var(--ink);
  border-color:#ddd;
}
.btn-ghost:hover{
  border-color:var(--red);
  color:var(--red);
  transform:translateY(-2px);
}

/* vitals card */
.vitals-card{
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--card-radius);
  padding:28px;
  box-shadow:0 20px 50px rgba(0,0,0,.05);
}
.vitals-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:6px;
}
.vitals-head .label{
  font-size:11px;
  color:var(--grey);
  text-transform:uppercase;
}
.vitals-head .status{
  font-size:11px;
  color:var(--green-ok);
  text-transform:uppercase;
}
.ekg-box{
  width:100%;
  height:90px;
  overflow:hidden;
}
.ekg-box svg{ width:200%; height:100%; }
.ekg-line{
  fill:none;
  stroke:var(--red);
  stroke-width:2.5;
  stroke-linecap:round;
  stroke-linejoin:round;
  animation:ekg-scroll 5s linear infinite;
}
@keyframes ekg-scroll{
  from{ transform:translateX(0); }
  to{ transform:translateX(-50%); }
}

.vitals-stats{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
  margin-top:18px;
  border-top:1px solid var(--line);
  padding-top:18px;
}
.vitals-stats .num{
  font-family:'DM Serif Display', serif;
  font-size:28px;
  font-weight:400;
  color:var(--red);
}
.vitals-stats .num span{ color:var(--red); }
.vitals-stats .cap{
  font-size:11px;
  color:var(--grey);
  margin-top:4px;
  line-height:1.3;
}

/* ---------- SECTION HEADS ---------- */
.section-head{
  max-width:640px;
  margin:0 0 48px;
}
.section-head .tag{
  display:inline-block;
  font-family:'Inter', sans-serif;
  font-size:12px;
  font-weight:600;
  letter-spacing:2px;
  text-transform:uppercase;
  color:var(--red);
  background:var(--red-tint);
  border-radius:999px;
  padding:12px 24px;
  margin-bottom:20px;
}
.section-head h2{
  font-family:'DM Serif Display', serif;
  font-size:clamp(32px,3.4vw,3.5rem);
  line-height:1.1;
  color:var(--ink);
}
.section-head p{
  margin-top:16px;
  color:var(--grey);
  font-size:16px;
  line-height:1.6;
}

/* ---------- DEVICE SELECTOR ---------- */
.devices{
  padding:120px 0 100px;
}

.device-grid{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  border-top:1px solid var(--line);
  border-left:1px solid var(--line);
}

.device-card{
  border-right:1px solid var(--line);
  border-bottom:1px solid var(--line);
  background:var(--white);
  padding:28px 22px;
  cursor:pointer;
  transition:background .2s ease;
  position:relative;
}
.device-card:hover, .device-card.active{
  background:var(--red-tint);
}
.device-card .idx{
  font-family:'Inter', sans-serif;
  font-size:11px;
  color:var(--grey);
}
.device-card .icon{
  width:34px; height:34px;
  margin:22px 0 18px;
  color:var(--ink);
  transition:color .2s ease, transform .2s ease;
}
.device-card:hover .icon, .device-card.active .icon{
  color:var(--red);
  transform:translateY(-3px);
}
.device-card h3{
  font-family:'Inter', sans-serif;
  font-size:17px;
  font-weight:600;
}
.device-card .plus{
  position:absolute;
  top:26px; right:22px;
  font-size:20px;
  font-weight:400;
  color:var(--grey);
  transition:transform .25s ease, color .2s ease;
}
.device-card.active .plus{
  transform:rotate(45deg);
  color:var(--red);
}

.device-panel{
  grid-column:1 / -1;
  border-right:1px solid var(--line);
  border-bottom:1px solid var(--line);
  background:var(--white);
  max-height:0;
  overflow:hidden;
  transition:max-height .4s ease;
}
.device-panel.open{
  max-height:800px;
}
.device-panel-inner{
  padding:36px 40px 40px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:32px;
}
.device-panel h4{
  font-family:'Inter', sans-serif;
  font-size:13px;
  text-transform:uppercase;
  color:var(--red);
  margin-bottom:14px;
  letter-spacing:2px;
  font-weight:600;
}
.device-panel ul{
  list-style:none;
}
.device-panel li{
  padding:9px 0;
  border-bottom:1px dashed var(--line);
  font-size:15px;
  display:flex;
  justify-content:space-between;
  gap:12px;
}
.device-panel li:last-child{ border-bottom:none; }
.device-panel li span.eta{
  font-family:'Inter', sans-serif;
  font-size:12px;
  color:var(--grey);
  white-space:nowrap;
}
.device-panel-note{
  align-self:end;
  color:var(--grey);
  font-size:14px;
  line-height:1.6;
}
.device-panel-note strong{ color:var(--ink); }

@media (max-width: 1023px){
  .device-grid{ grid-template-columns:repeat(2,1fr); }
  .device-panel-inner{ grid-template-columns:1fr; }
}

/* ---------- PROCESS ---------- */
.process{
  padding:100px 0;
  background:var(--white);
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.process-line{
  position:relative;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:0;
  margin-top:20px;
}
.process-line::before{
  content:"";
  position:absolute;
  top:17px; left:0; right:0;
  height:1px;
  background:var(--line);
}
.process-step{
  padding-right:24px;
  position:relative;
}
.process-step .node{
  width:34px; height:34px;
  border-radius:50%;
  background:var(--white);
  border:1.5px solid var(--ink);
  display:flex;
  align-items:center;
  justify-content:center;
  font-family:'Inter', sans-serif;
  font-size:12px;
  position:relative;
  z-index:1;
  transition:border-color .2s ease, color .2s ease;
}
.process-step:hover .node{
  border-color:var(--red);
  color:var(--red);
}
.process-step h3{
  margin-top:22px;
  font-family:'DM Serif Display', serif;
  font-size:1.25rem;
}
.process-step p{
  margin-top:8px;
  font-size:14px;
  color:var(--grey);
  line-height:1.55;
  max-width:26ch;
}
@media (max-width: 767px) {
  .process-line{ grid-template-columns:1fr; gap:36px; }
  .process-line::before{ display:none; }
}

/* ---------- TRUST / EMOTIONAL ---------- */
.trust{
  padding:120px 0;
}
.trust-grid{
  display:grid;
  grid-template-columns:1fr 1fr 1fr;
  gap:24px;
}
.trust-card{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background:var(--white);
  border:1px solid var(--line);
  border-radius:22px;
  padding:36px 30px;
  box-shadow:0 10px 30px rgba(0,0,0,.04);
}
.trust-card h3{
  font-family:'DM Serif Display', serif;
  font-size:1.35rem;
  margin-bottom:10px;
}
.trust-card .icon{
  width:36px; height:32px;
  color:var(--red);
  margin-bottom:20px;
}
.trust-card p{
  font-size:14.5px;
  color:var(--grey);
  line-height:1.6;
}
@media (max-width: 767px) {
  .trust-grid{ grid-template-columns:1fr; }
}

/* ---------- STATS BAND ---------- */
.stats{
  background:#0b0b0b;
  color:var(--white);
  padding:80px 0;
}
.stats-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:32px;
  text-align:left;
}
.stats-grid .num{
  font-family:'DM Serif Display', serif;
  font-size:clamp(32px,4vw,48px);
  font-weight:400;
  color:var(--white);
}
.stats-grid .num em{
  font-style:normal;
  color:var(--red);
}
.stats-grid .cap{
  margin-top:8px;
  font-size:13px;
  color:#B9B4AC;
  text-transform:uppercase;
  letter-spacing:.03em;
}
@media (max-width: 767px) {
  .stats-grid{ grid-template-columns:1fr 1fr; row-gap:40px; }
}

/* ---------- TESTIMONIAL ---------- */
.testimonial{
  padding:120px 0;
  text-align:center;
}
.testimonial blockquote{
  font-family:'DM Serif Display', serif;
  font-size:clamp(24px,3vw,2.5rem);
  font-weight:400;
  font-style:italic;
  max-width:820px;
  margin:0 auto;
  line-height:1.4;
  color:var(--ink);
}
.testimonial blockquote span{ color:var(--red); }
.testimonial .who{
  margin-top:28px;
  font-size:14px;
  color:var(--grey);
}
.testimonial .who strong{ color:var(--ink); }

/* ---------- FINAL CTA ---------- */
.final-cta{
  padding:100px 0 130px;
}
.final-cta-box{
  background:linear-gradient(120deg, var(--red), var(--red-dark));
  border-radius:24px;
  padding:60px 56px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:32px;
  flex-wrap:wrap;
  color:var(--white);
  position:relative;
  overflow:hidden;
}
.final-cta-box h2{
  font-family:'DM Serif Display', serif;
  font-size:clamp(26px,3.4vw,2.25rem);
  font-weight:400;
  max-width:18ch;
  position:relative;
  line-height:1.15;
}
.final-cta-box .ekg-box{ position:absolute; inset:0; opacity:0.15; height:100%; }
.final-cta-box .ekg-line{ stroke:var(--white); }
.final-cta-box .btn-primary{
  background:var(--white);
  color:var(--red);
  border-color:var(--white);
  position:relative;
}
.final-cta-box .btn-primary:hover{
  background:var(--ink);
  color:var(--white);
  border-color:var(--ink);
}

::selection{ background:var(--red); color:var(--white); }

a:focus-visible, button:focus-visible, .device-card:focus-visible{
  outline:2px solid var(--red);
  outline-offset:3px;
}
@media (max-width:768px){

  .device-card{
      padding:18px 16px;
  }

  .device-card .icon{
      margin:12px 0;
      width:28px;
      height:28px;
  }

  .device-card h3{
      font-size:18px;
      margin-top:6px;
  }

  .device-card .plus{
      top:18px;
      right:16px;
  }

  .device-card .idx{
      margin-bottom:8px;
  }

}