:root {
  color-scheme: dark;
  --bg: #030707;
  --panel: rgba(5, 14, 17, 0.9);
  --panel-soft: rgba(8, 19, 23, 0.78);
  --gold: #ffd22f;
  --gold-2: #ffb800;
  --gold-soft: #ffe681;
  --green: #16e77e;
  --green-dark: #049849;
  --red: #ff3434;
  --muted: #aebbc3;
  --line: rgba(255, 214, 55, 0.56);
  --header-h: clamp(54px, 6.4vh, 72px);
  --page-pad: clamp(8px, 1.2vw, 22px);
  --gap: clamp(5px, 0.7vh, 10px);
  font-family: "Leelawadee UI", "Noto Sans Thai", Tahoma, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: var(--bg);
}

body {
  color: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

.one-screen-app {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  display: grid;
  grid-template-rows: var(--header-h) minmax(0, 1fr);
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 16%, rgba(4, 255, 160, 0.13), transparent 22%),
    radial-gradient(circle at 20% 76%, rgba(255, 199, 24, 0.11), transparent 27%),
    linear-gradient(180deg, #061015 0%, #020606 68%, #061006 100%);
}

.one-screen-app::before,
.one-screen-app::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
}

.one-screen-app::before {
  inset: var(--header-h) 0 0;
  background:
    linear-gradient(118deg, transparent 0 42%, rgba(255, 211, 45, 0.06) 42.2% 42.4%, transparent 42.6%),
    linear-gradient(62deg, transparent 0 64%, rgba(12, 246, 154, 0.06) 64.2% 64.4%, transparent 64.6%),
    repeating-linear-gradient(90deg, transparent 0 88px, rgba(255, 255, 255, 0.018) 89px, transparent 90px);
  opacity: 0.76;
}

.one-screen-app::after {
  right: -10vw;
  bottom: -26vh;
  left: -10vw;
  height: 48vh;
  border-radius: 50% 50% 0 0;
  background:
    repeating-linear-gradient(90deg, rgba(17, 96, 35, 0.2) 0 2px, transparent 2px 14px),
    linear-gradient(180deg, rgba(8, 68, 26, 0.18), rgba(1, 20, 6, 0.64));
  filter: perspective(480px) rotateX(54deg);
  transform-origin: bottom;
}

.topbar {
  position: relative;
  z-index: 20;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(420px, 1.35fr) minmax(270px, 0.85fr);
  align-items: center;
  gap: 18px;
  height: var(--header-h);
  padding:
    max(4px, env(safe-area-inset-top))
    max(var(--page-pad), env(safe-area-inset-right))
    4px
    max(var(--page-pad), env(safe-area-inset-left));
  border-bottom: 1px solid rgba(255, 211, 50, 0.35);
  background: rgba(2, 7, 8, 0.93);
  box-shadow: 0 8px 34px rgba(0, 0, 0, 0.36), 0 1px 18px rgba(255, 199, 24, 0.08);
  backdrop-filter: blur(16px);
}

.brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
}

.brand img {
  width: clamp(32px, 2.6vw, 46px);
  height: clamp(32px, 2.6vw, 46px);
  flex: 0 0 auto;
  filter: drop-shadow(0 0 9px rgba(255, 205, 40, 0.28));
}

.brand span {
  min-width: 0;
  display: grid;
  line-height: 1.06;
}

.brand strong {
  overflow: hidden;
  color: var(--gold);
  font-family: Arial, sans-serif;
  font-size: clamp(1rem, 1.62vw, 1.65rem);
  font-style: italic;
  font-weight: 950;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand small {
  margin-top: 3px;
  overflow: hidden;
  color: #aeb8bd;
  font-size: clamp(0.56rem, 0.75vw, 0.72rem);
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.desktop-nav {
  min-width: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2.2vw, 42px);
}

.desktop-nav a {
  position: relative;
  color: #d7dde0;
  font-size: clamp(0.72rem, 0.9vw, 0.96rem);
  font-weight: 800;
  white-space: nowrap;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  right: 8%;
  bottom: -9px;
  left: 8%;
  height: 3px;
  border-radius: 999px;
  background: transparent;
}

.desktop-nav a.active,
.desktop-nav a:hover,
.desktop-nav a:focus-visible {
  color: var(--gold);
}

.desktop-nav a.active::after {
  background: var(--gold);
  box-shadow: 0 0 10px rgba(255, 210, 37, 0.72);
}

.top-actions {
  min-width: 0;
  display: flex;
  justify-content: flex-end;
  gap: 9px;
}

.top-action {
  min-width: 0;
  height: clamp(36px, 4.2vh, 46px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 clamp(12px, 1.35vw, 22px);
  border-radius: 999px;
  font-size: clamp(0.72rem, 0.88vw, 0.92rem);
  font-weight: 900;
  white-space: nowrap;
}

.top-action-outline {
  border: 1px solid var(--gold);
  background: rgba(255, 211, 47, 0.04);
  color: #fff;
}

.top-action-gold {
  border: 1px solid #ffe77f;
  background: linear-gradient(180deg, #ffe167, #f1b400);
  color: #151607;
  box-shadow: 0 7px 22px rgba(255, 184, 0, 0.24);
}

.dashboard {
  position: relative;
  z-index: 5;
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-rows:
    minmax(0, 1fr)
    clamp(54px, 7vh, 74px)
    clamp(148px, 18.5vh, 204px)
    clamp(58px, 7.5vh, 82px);
  gap: var(--gap);
  padding:
    var(--gap)
    max(var(--page-pad), env(safe-area-inset-right))
    max(var(--gap), env(safe-area-inset-bottom))
    max(var(--page-pad), env(safe-area-inset-left));
  overflow: hidden;
}

.showcase {
  position: relative;
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(420px, 1.15fr) minmax(220px, 0.7fr);
  gap: clamp(6px, 1vw, 18px);
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 211, 47, 0.08);
  border-radius: clamp(16px, 1.5vw, 28px);
  background:
    radial-gradient(circle at 86% 42%, rgba(18, 235, 145, 0.16), transparent 25%),
    radial-gradient(circle at 50% 100%, rgba(255, 187, 0, 0.11), transparent 33%),
    linear-gradient(110deg, rgba(4, 11, 15, 0.94), rgba(4, 16, 19, 0.82));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.showcase::before,
.showcase::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: -18%;
  width: 28%;
  height: 76%;
  pointer-events: none;
  background: repeating-linear-gradient(90deg, rgba(255, 226, 118, 0.26) 0 3px, transparent 4px 18px);
  filter: blur(1px);
  opacity: 0.25;
}

.showcase::before {
  left: -12%;
  transform: rotate(-28deg);
}

.showcase::after {
  right: -12%;
  transform: rotate(28deg);
}

.hero-copy,
.device-showcase,
.doctor-card {
  position: relative;
  z-index: 2;
  min-width: 0;
  min-height: 0;
}

.hero-copy {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(12px, 1.8vw, 34px) 0 clamp(12px, 1.8vw, 34px) clamp(12px, 2.4vw, 46px);
}

.eyebrow {
  width: fit-content;
  max-width: 100%;
  overflow: hidden;
  color: var(--gold);
  font-size: clamp(0.62rem, 0.82vw, 0.86rem);
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 3px;
  margin-right: 10px;
  vertical-align: middle;
  border-radius: 999px;
  background: var(--gold);
}

.hero-copy h1 {
  margin: clamp(5px, 1.1vh, 12px) 0 0;
  font-size: clamp(2.2rem, 3.9vw, 5rem);
  font-weight: 950;
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.48);
}

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

.hero-copy h1 span {
  color: #f3f4f4;
}

.hero-copy h1 strong {
  margin-top: 6px;
  color: var(--gold);
  font-weight: 950;
  text-shadow: 0 0 24px rgba(255, 208, 35, 0.18), 0 8px 20px rgba(0, 0, 0, 0.46);
}

.hero-points {
  margin: clamp(8px, 1.2vh, 14px) 0 0;
  color: #f1f4f5;
  font-size: clamp(0.8rem, 1.15vw, 1.2rem);
  font-weight: 900;
  white-space: nowrap;
}

.hero-points i {
  margin: 0 6px;
  color: var(--gold);
  font-style: normal;
}

.hero-description {
  max-width: 620px;
  margin: clamp(8px, 1.25vh, 15px) 0 0;
  padding-left: clamp(10px, 1vw, 16px);
  border-left: 4px solid var(--gold);
  color: #c2ccd1;
  font-size: clamp(0.75rem, 1.02vw, 1.06rem);
  font-weight: 600;
  line-height: 1.55;
}

.device-showcase {
  position: relative;
  height: 100%;
  min-width: 0;
  padding: clamp(3px, 0.8vh, 10px) clamp(2px, 0.35vw, 6px) 0;
  overflow: hidden;
  isolation: isolate;
}

.device {
  position: absolute;
  bottom: 0;
  min-width: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin: 0;
  transform-origin: bottom center;
}

.device::after {
  content: "";
  position: absolute;
  right: 15%;
  bottom: 0.5%;
  left: 15%;
  height: 5%;
  border-radius: 50%;
  background: rgba(255, 196, 15, 0.28);
  filter: blur(12px);
}

.device img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 14px 17px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 7px rgba(255, 208, 48, 0.2));
}

.device-left,
.device-right {
  z-index: 1;
  width: 34%;
  height: 80%;
}

.device-left {
  left: 1.5%;
  transform: none;
}

.device-center {
  z-index: 3;
  left: 50%;
  width: 42%;
  height: 98%;
  transform: translateX(-50%);
}

.device-right {
  right: 1.5%;
  transform: none;
}

.doctor-card {
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.doctor-card img {
  position: relative;
  z-index: 2;
  width: min(100%, 520px);
  max-height: 98%;
  object-fit: contain;
  object-position: center bottom;
  border-radius: 40% 40% 14% 14%;
  filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.56));
}

.doctor-glow {
  position: absolute;
  z-index: 0;
  top: 7%;
  left: 50%;
  width: min(90%, 340px);
  aspect-ratio: 1;
  transform: translateX(-50%);
  border: 2px solid rgba(18, 245, 154, 0.72);
  border-radius: 50%;
  box-shadow:
    0 0 22px rgba(18, 245, 154, 0.45),
    inset 0 0 18px rgba(18, 245, 154, 0.17),
    0 0 0 22px rgba(18, 245, 154, 0.06),
    0 0 0 44px rgba(18, 245, 154, 0.025);
}

.feature-strip {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: clamp(4px, 0.55vw, 9px);
  overflow: hidden;
}

.feature-strip article {
  min-width: 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(5px, 0.7vw, 10px);
  padding: 0 clamp(6px, 0.85vw, 13px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: clamp(12px, 1.1vw, 20px);
  background: linear-gradient(180deg, rgba(255, 214, 55, 0.08), rgba(4, 13, 16, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 0 15px rgba(255, 196, 21, 0.07);
}

.feature-strip .feature-accent {
  border-color: rgba(255, 217, 55, 0.82);
  background: linear-gradient(180deg, rgba(255, 212, 42, 0.14), rgba(7, 16, 18, 0.94));
}

.feature-icon {
  flex: 0 0 auto;
  color: var(--gold);
  font-family: Arial, sans-serif;
  font-size: clamp(1.2rem, 1.85vw, 2rem);
  font-weight: 950;
  line-height: 1;
}

.feature-strip strong {
  min-width: 0;
  overflow: hidden;
  color: #f5f6f7;
  font-size: clamp(0.62rem, 0.92vw, 0.98rem);
  font-weight: 900;
  line-height: 1.18;
  text-align: center;
  text-overflow: ellipsis;
}

.feature-strip strong b {
  color: var(--gold);
  font-size: 1.15em;
}

.lower-grid {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(420px, 0.88fr) minmax(580px, 1.12fr);
  gap: clamp(7px, 0.8vw, 13px);
  overflow: hidden;
}

.stats-panel,
.table-panel {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 213, 47, 0.76);
  border-radius: clamp(15px, 1.3vw, 23px);
  background:
    radial-gradient(circle at 88% 5%, rgba(22, 232, 126, 0.11), transparent 26%),
    linear-gradient(180deg, rgba(9, 18, 20, 0.95), rgba(3, 9, 11, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 0 22px rgba(255, 194, 17, 0.08);
}

.stats-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding: clamp(8px, 1vh, 12px) clamp(10px, 1.1vw, 18px);
}

.stats-heading {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.stats-heading > div {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.crown {
  color: var(--gold);
  font-size: clamp(1.25rem, 1.8vw, 2rem);
  line-height: 1;
}

.stats-heading strong {
  overflow: hidden;
  color: var(--gold-soft);
  font-size: clamp(0.92rem, 1.35vw, 1.45rem);
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stats-heading p {
  flex: 0 0 auto;
  margin: 0;
  padding: 5px 12px;
  border: 1px solid rgba(52, 255, 135, 0.58);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(11, 205, 90, 0.36), rgba(5, 104, 47, 0.34));
  color: #f7fff8;
  font-size: clamp(0.68rem, 0.98vw, 1rem);
  font-weight: 800;
  white-space: nowrap;
}

.stats-heading p b {
  color: #cfff7d;
  font-size: 1.12em;
}

.stats-metrics {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(4px, 0.55vw, 8px);
  align-items: stretch;
  margin-top: clamp(6px, 0.8vh, 10px);
}

.stats-metrics > div {
  min-width: 0;
  display: grid;
  place-content: center;
  gap: 2px;
  padding: 4px;
  overflow: hidden;
  border: 1px solid rgba(255, 214, 55, 0.27);
  border-radius: clamp(9px, 0.8vw, 14px);
  background: rgba(255, 255, 255, 0.025);
  text-align: center;
}

.stats-metrics span {
  overflow: hidden;
  color: #d5dadd;
  font-size: clamp(0.54rem, 0.7vw, 0.72rem);
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stats-metrics strong {
  color: #fff;
  font-family: Arial, "Leelawadee UI", sans-serif;
  font-size: clamp(1.15rem, 2.1vw, 2.15rem);
  font-weight: 950;
  line-height: 1;
}

.stats-metrics .metric-win {
  border-color: rgba(32, 255, 119, 0.78);
  background: linear-gradient(180deg, rgba(15, 213, 91, 0.55), rgba(4, 101, 42, 0.46));
  box-shadow: inset 0 0 14px rgba(41, 255, 125, 0.09);
}

.stats-metrics .metric-push {
  border-color: rgba(255, 255, 255, 0.42);
  background: linear-gradient(180deg, rgba(92, 99, 103, 0.42), rgba(36, 41, 44, 0.48));
}

.stats-metrics .metric-loss {
  border-color: rgba(255, 75, 75, 0.72);
  background: linear-gradient(180deg, rgba(211, 32, 32, 0.5), rgba(97, 7, 7, 0.5));
}

.stats-footer {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: clamp(5px, 0.7vh, 8px);
  color: #a9b5bb;
  font-size: clamp(0.53rem, 0.66vw, 0.68rem);
}

.stats-footer span {
  flex: 0 0 auto;
  color: var(--gold-soft);
  font-weight: 900;
}

.stats-footer small {
  min-width: 0;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-panel {
  display: flex;
  align-items: stretch;
}

.table-panel table {
  width: 100%;
  height: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.table-panel th,
.table-panel td {
  min-width: 0;
  overflow: hidden;
  border-right: 1px solid rgba(255, 216, 58, 0.18);
  border-bottom: 1px solid rgba(255, 216, 58, 0.16);
  padding: 3px clamp(4px, 0.55vw, 9px);
  text-align: center;
  text-overflow: ellipsis;
}

.table-panel th:last-child,
.table-panel td:last-child {
  border-right: 0;
}

.table-panel tbody tr:last-child td {
  border-bottom: 0;
}

.table-panel thead {
  background: linear-gradient(180deg, #ffd83f, #d69800);
  color: #181505;
}

.table-panel th {
  font-size: clamp(0.55rem, 0.72vw, 0.78rem);
  font-weight: 950;
  white-space: nowrap;
}

.table-panel td {
  color: #f2f4f5;
  font-family: Arial, "Leelawadee UI", sans-serif;
  font-size: clamp(0.56rem, 0.77vw, 0.82rem);
  font-weight: 900;
}

.table-panel th:nth-child(1) { width: 27%; }
.table-panel th:nth-child(2),
.table-panel th:nth-child(3),
.table-panel th:nth-child(4) { width: 10%; }
.table-panel th:nth-child(5) { width: 23%; }
.table-panel th:nth-child(6) { width: 10%; }

.table-panel td:first-child {
  font-family: "Leelawadee UI", Tahoma, sans-serif;
  text-align: left;
}

.table-panel td:first-child strong,
.table-panel td:first-child span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-panel td:first-child strong {
  color: #fff;
  font-size: 1em;
}

.table-panel td:first-child span {
  color: var(--gold-soft);
  font-size: 0.82em;
}

.result {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-width: 52px;
  padding: 3px 8px;
  overflow: hidden;
  border-radius: 999px;
  font-family: "Leelawadee UI", Tahoma, sans-serif;
  font-size: clamp(0.52rem, 0.7vw, 0.75rem);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-win {
  border: 1px solid #5aff9c;
  background: linear-gradient(180deg, #12d969, #057d3a);
  color: #fff;
  box-shadow: 0 0 10px rgba(20, 222, 105, 0.14);
}

.bottom-row {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(430px, 0.67fr);
  align-items: stretch;
  gap: clamp(7px, 0.85vw, 14px);
  overflow: hidden;
}

.benefits {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  overflow: hidden;
  border-top: 1px solid rgba(255, 214, 55, 0.38);
  border-bottom: 1px solid rgba(255, 214, 55, 0.2);
  background: rgba(3, 10, 11, 0.56);
}

.benefits span {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 10px;
  overflow: hidden;
  color: #e6eaec;
  font-size: clamp(0.62rem, 0.87vw, 0.9rem);
  font-weight: 900;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.benefits span + span {
  border-left: 1px solid rgba(255, 214, 55, 0.35);
}

.benefits b {
  flex: 0 0 auto;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(56, 255, 130, 0.76);
  border-radius: 50%;
  background: rgba(11, 170, 69, 0.26);
  color: #39ff80;
  font-family: Arial, sans-serif;
  font-size: 0.8rem;
}

.line-cta {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(8px, 0.85vw, 14px);
  padding: 0 clamp(11px, 1.25vw, 20px);
  overflow: hidden;
  border: 1px solid #73ffab;
  border-radius: clamp(18px, 1.6vw, 30px);
  background: linear-gradient(180deg, #16d969, #05813c);
  box-shadow: 0 0 24px rgba(14, 225, 99, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.33);
}

.line-badge {
  flex: 0 0 auto;
  padding: 6px 8px;
  border-radius: 999px;
  background: #fff;
  color: #087f3c;
  font-family: Arial, sans-serif;
  font-size: clamp(0.62rem, 0.8vw, 0.82rem);
  font-weight: 950;
  line-height: 1;
}

.line-cta > strong {
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: clamp(1.45rem, 2.7vw, 2.85rem);
  font-style: italic;
  font-weight: 950;
  letter-spacing: -0.03em;
  white-space: nowrap;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.32);
}

.line-cta small {
  min-width: 0;
  overflow: hidden;
  color: #fff;
  font-size: clamp(0.65rem, 0.94vw, 1rem);
  font-weight: 950;
  line-height: 1.15;
  text-align: right;
}

.line-cta i {
  color: var(--gold);
  font-family: Arial, sans-serif;
  font-size: clamp(1.4rem, 2.4vw, 2.5rem);
  font-style: normal;
  font-weight: 950;
  line-height: 1;
}

@media (max-width: 1180px) {
  .topbar {
    grid-template-columns: minmax(210px, 0.78fr) minmax(350px, 1.1fr) minmax(255px, 0.8fr);
    gap: 10px;
  }

  .desktop-nav {
    gap: 17px;
  }

  .showcase {
    grid-template-columns: minmax(230px, 0.86fr) minmax(360px, 1.12fr) minmax(190px, 0.65fr);
  }

  .hero-description {
    line-height: 1.42;
  }

  .lower-grid {
    grid-template-columns: minmax(380px, 0.9fr) minmax(510px, 1.1fr);
  }

  .bottom-row {
    grid-template-columns: minmax(0, 1fr) minmax(370px, 0.7fr);
  }
}

@media (max-width: 900px) {
  :root {
    --header-h: clamp(50px, 7.3vh, 58px);
    --page-pad: clamp(5px, 1.7vw, 10px);
    --gap: clamp(3px, 0.75vh, 7px);
  }

  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px;
  }

  .brand {
    gap: 6px;
  }

  .brand img {
    width: clamp(28px, 7vw, 36px);
    height: clamp(28px, 7vw, 36px);
  }

  .brand strong {
    font-size: clamp(0.78rem, 3.8vw, 1.15rem);
  }

  .brand small,
  .desktop-nav {
    display: none;
  }

  .top-actions {
    gap: 5px;
  }

  .top-action {
    height: clamp(32px, 5.2vh, 38px);
    gap: 3px;
    padding: 0 clamp(7px, 2.2vw, 13px);
    font-size: clamp(0.56rem, 2.5vw, 0.72rem);
  }

  .dashboard {
    grid-template-rows:
      minmax(0, 1fr)
      clamp(74px, 12.5vh, 100px)
      clamp(112px, 18vh, 150px)
      clamp(50px, 8.2vh, 66px);
  }

  .showcase {
    grid-template-columns: minmax(0, 1.08fr) minmax(105px, 0.72fr);
    grid-template-rows: auto minmax(0, 1fr);
    grid-template-areas:
      "copy doctor"
      "devices devices";
    gap: 0 4px;
    border-radius: 15px;
  }

  .hero-copy {
    grid-area: copy;
    align-self: stretch;
    justify-content: center;
    padding: clamp(8px, 1.3vh, 14px) 0 clamp(4px, 0.8vh, 8px) clamp(9px, 3vw, 18px);
  }

  .eyebrow {
    font-size: clamp(0.48rem, 2vw, 0.62rem);
  }

  .eyebrow::before {
    width: 14px;
    height: 2px;
    margin-right: 5px;
  }

  .hero-copy h1 {
    margin-top: clamp(3px, 0.7vh, 7px);
    font-size: clamp(1.65rem, 8vw, 3.15rem);
    line-height: 0.96;
  }

  .hero-copy h1 strong {
    margin-top: 3px;
  }

  .hero-points {
    margin-top: clamp(5px, 0.8vh, 8px);
    font-size: clamp(0.56rem, 2.65vw, 0.85rem);
  }

  .hero-points i {
    margin: 0 2px;
  }

  .hero-description {
    display: none;
  }

  .doctor-card {
    grid-area: doctor;
    align-self: stretch;
    width: 100%;
  }

  .doctor-card img {
    width: 100%;
    max-height: 100%;
    border-radius: 38% 38% 10% 10%;
  }

  .doctor-glow {
    top: 7%;
    width: 84%;
    box-shadow:
      0 0 14px rgba(18, 245, 154, 0.42),
      inset 0 0 12px rgba(18, 245, 154, 0.14),
      0 0 0 11px rgba(18, 245, 154, 0.05);
  }

  .device-showcase {
    grid-area: devices;
    align-self: stretch;
    height: 100%;
    padding: 0 clamp(2px, 1vw, 6px);
  }

  .device-left,
  .device-right {
    width: 35%;
    height: 74%;
  }

  .device-left {
    left: 1.5%;
    transform: none;
  }

  .device-center {
    left: 50%;
    width: 46%;
    height: 99%;
    transform: translateX(-50%);
  }

  .device-right {
    right: 1.5%;
    transform: none;
  }

  .feature-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 4px;
  }

  .feature-strip article {
    gap: 5px;
    padding: 0 5px;
    border-radius: 10px;
  }

  .feature-strip .feature-trend {
    display: none;
  }

  .feature-icon {
    font-size: clamp(0.92rem, 4vw, 1.25rem);
  }

  .feature-strip strong {
    font-size: clamp(0.5rem, 2.5vw, 0.68rem);
    line-height: 1.08;
  }

  .lower-grid {
    display: block;
  }

  .table-panel {
    display: none;
  }

  .stats-panel {
    width: 100%;
    height: 100%;
    grid-template-rows: auto minmax(0, 1fr) auto;
    padding: clamp(6px, 1vh, 9px) clamp(7px, 2vw, 12px);
    border-radius: 14px;
  }

  .stats-heading {
    gap: 6px;
  }

  .stats-heading > div {
    gap: 4px;
  }

  .crown {
    font-size: clamp(0.92rem, 4.4vw, 1.25rem);
  }

  .stats-heading strong {
    font-size: clamp(0.7rem, 3.25vw, 0.94rem);
  }

  .stats-heading p {
    padding: 3px 7px;
    font-size: clamp(0.54rem, 2.45vw, 0.68rem);
  }

  .stats-metrics {
    gap: 3px;
    margin-top: 4px;
  }

  .stats-metrics > div {
    padding: 2px;
    border-radius: 8px;
  }

  .stats-metrics span {
    font-size: clamp(0.43rem, 2vw, 0.55rem);
  }

  .stats-metrics strong {
    font-size: clamp(1rem, 6vw, 1.55rem);
  }

  .stats-footer {
    gap: 5px;
    margin-top: 3px;
    font-size: clamp(0.4rem, 1.8vw, 0.52rem);
  }

  .stats-footer small {
    max-width: 54%;
  }

  .bottom-row {
    display: block;
  }

  .benefits {
    display: none;
  }

  .line-cta {
    width: 100%;
    height: 100%;
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    gap: clamp(6px, 2vw, 10px);
    padding: 0 clamp(9px, 2.4vw, 14px);
    border-radius: 16px;
  }

  .line-badge {
    padding: 5px 7px;
    font-size: clamp(0.52rem, 2.4vw, 0.68rem);
  }

  .line-cta > strong {
    font-size: clamp(1.35rem, 7.5vw, 2rem);
  }

  .line-cta small {
    font-size: clamp(0.54rem, 2.8vw, 0.72rem);
  }

  .line-cta i {
    font-size: clamp(1.2rem, 6vw, 1.7rem);
  }
}

@media (max-width: 420px) {
  .top-action span {
    display: none;
  }

  .top-action {
    padding: 0 8px;
  }

  .showcase {
    grid-template-columns: minmax(0, 1.15fr) minmax(88px, 0.65fr);
  }

  .device-showcase {
    padding-inline: 2px;
  }
}

@media (max-height: 720px) and (max-width: 900px) {
  .dashboard {
    grid-template-rows:
      minmax(0, 1fr)
      clamp(64px, 11.5vh, 82px)
      clamp(100px, 17.2vh, 124px)
      clamp(46px, 7.5vh, 54px);
  }

  .eyebrow {
    display: none;
  }

  .hero-copy h1 {
    margin-top: 0;
    font-size: clamp(1.48rem, 7.2vw, 2.25rem);
  }

  .hero-points {
    font-size: clamp(0.49rem, 2.35vw, 0.7rem);
  }

  .feature-strip article {
    border-radius: 8px;
  }

  .stats-footer small {
    display: none;
  }
}

@media (max-height: 610px) and (max-width: 900px) {
  :root {
    --header-h: 48px;
    --gap: 3px;
  }

  .top-action {
    height: 30px;
  }

  .dashboard {
    grid-template-rows:
      minmax(0, 1fr)
      62px
      96px
      44px;
  }

  .hero-points {
    display: none;
  }

  .hero-copy h1 {
    font-size: clamp(1.35rem, 7vw, 1.95rem);
  }

  .feature-strip strong {
    font-size: clamp(0.44rem, 2.3vw, 0.58rem);
  }

  .stats-heading p {
    font-size: clamp(0.47rem, 2.2vw, 0.58rem);
  }

  .stats-footer {
    display: none;
  }
}

@media (max-width: 900px) and (max-height: 610px) and (orientation: landscape) {
  .showcase {
    grid-template-columns: minmax(235px, 0.84fr) minmax(0, 1.16fr);
    grid-template-rows: minmax(0, 1fr);
    grid-template-areas: "copy devices";
    gap: 4px;
  }

  .hero-copy {
    padding: 7px 2px 7px 12px;
  }

  .hero-copy h1 {
    font-size: clamp(1.45rem, 5.1vw, 2.35rem);
  }

  .doctor-card {
    display: none;
  }

  .device-showcase {
    height: 100%;
    min-height: 0;
    padding: 2px 3px 0;
  }

  .device-left,
  .device-right {
    width: 34%;
    height: 76%;
  }

  .device-center {
    width: 43%;
    height: 98%;
  }
}

@media (max-width: 350px) {
  .brand strong {
    font-size: 0.74rem;
  }

  .top-action {
    padding-inline: 6px;
    font-size: 0.51rem;
  }

  .hero-copy {
    padding-left: 7px;
  }

  .hero-copy h1 {
    font-size: 1.48rem;
  }

  .feature-icon {
    font-size: 0.85rem;
  }

  .feature-strip strong {
    font-size: 0.46rem;
  }

  .line-cta small {
    font-size: 0.52rem;
  }
}

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