:root {
  --purple: #6c63ff;
  --purple-dark: #4b44cc;
  --teal: #00d4aa;
  --teal-soft: #b2f5ea;
  --green: #22c55e;
  --amber: #f59e0b;
  --red: #ef4444;
  --ink: #2d2d2d;
  --muted: #7d7d91;
  --bg: #f0f4ff;
  --card: rgba(255, 255, 255, 0.86);
  --line: rgba(108, 99, 255, 0.13);
  --shadow: 0 24px 70px rgba(76, 68, 204, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Nunito, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(0, 212, 170, 0.22), transparent 32rem),
    radial-gradient(circle at 88% 8%, rgba(108, 99, 255, 0.20), transparent 30rem),
    linear-gradient(180deg, #fbfdff 0%, var(--bg) 48%, #fbfdff 100%);
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.ui-icon {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 64px);
  background: rgba(251, 253, 255, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 26px;
  font-weight: 900;
}

.brand-icon {
  width: 43px;
  height: 43px;
  object-fit: cover;
  border-radius: 14px;
  background: white;
  box-shadow: 0 14px 28px rgba(0, 212, 170, 0.22);
}

nav {
  display: flex;
  gap: clamp(14px, 2.4vw, 30px);
  color: var(--muted);
  font-weight: 800;
}

nav a:hover { color: var(--purple-dark); }

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.primary,
.nav-cta {
  color: white;
  background: linear-gradient(135deg, var(--purple), var(--teal));
  box-shadow: 0 16px 34px rgba(76, 68, 204, 0.24);
}

.ghost {
  color: var(--purple-dark);
  background: white;
  border: 1px solid var(--line);
}

.button:hover,
.nav-cta:hover {
  transform: translateY(-2px);
}

.app-preview-cta { gap: 10px; }

.hero,
.section {
  padding: clamp(72px, 9vw, 118px) clamp(20px, 5vw, 64px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  gap: clamp(32px, 7vw, 90px);
  align-items: center;
  min-height: calc(100vh - 80px);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--teal);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  max-width: 860px;
  margin-bottom: 22px;
  font-size: clamp(48px, 7vw, 92px);
  line-height: 0.96;
  letter-spacing: -0.07em;
}

h1 span {
  background: linear-gradient(90deg, var(--purple), var(--teal), var(--green));
  background-clip: text;
  color: transparent;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1;
  letter-spacing: -0.06em;
}

h3 {
  margin-bottom: 8px;
  font-size: 21px;
  letter-spacing: -0.03em;
}

.lede,
.section-title p,
.hardware p,
.contact p {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 30px 0;
}

.quick-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quick-tags span {
  padding: 9px 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
}

.hero-visual {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: rgba(255,255,255,0.72);
  box-shadow: var(--shadow);
}

.floating-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-radius: 24px;
  background: white;
  box-shadow: 0 14px 32px rgba(76, 68, 204, 0.10);
}

.score-card small {
  display: block;
  color: var(--muted);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.score-card strong {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 21px;
  color: white;
  background: linear-gradient(135deg, var(--green), var(--teal));
  font-size: 25px;
}

.score-card span { color: var(--green); font-weight: 900; }

.daily-bars {
  display: flex;
  align-items: end;
  gap: 14px;
  height: 240px;
  margin: 28px 0 18px;
  padding: 18px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(178,245,234,0.34), rgba(255,255,255,0.72));
}

.daily-bars i {
  flex: 1;
  border-radius: 999px 999px 8px 8px;
  background: linear-gradient(180deg, #bdb9ff, var(--purple));
}

.daily-bars i.good { background: linear-gradient(180deg, var(--teal-soft), var(--teal)); }
.daily-bars i.warn { background: linear-gradient(180deg, #fde6b7, var(--amber)); }

.hero-visual p,
.feature-grid p,
.ai-grid p,
.hardware-card p,
.check-list,
footer {
  color: var(--muted);
  line-height: 1.55;
}

.section-title {
  max-width: 900px;
  margin-bottom: 34px;
}

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

.feature-grid article,
.ai-grid article,
.hardware-card,
.contact {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--card);
  box-shadow: 0 18px 42px rgba(76, 68, 204, 0.08);
}

.feature-grid span {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(108,99,255,0.14), rgba(0,212,170,0.16));
  font-size: 25px;
  color: var(--purple);
}

.text-icon {
  font-size: 13px !important;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.tour {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(320px, 0.9fr);
  gap: clamp(30px, 6vw, 80px);
  align-items: start;
}

.tour-copy,
.phone-stage {
  position: sticky;
  top: 110px;
}

.tour-list {
  display: grid;
  gap: 15px;
  margin-top: 32px;
}

.tour-button {
  display: grid;
  grid-template-columns: 46px 1fr;
  column-gap: 16px;
  align-items: center;
  width: 100%;
  padding: 14px;
  color: var(--ink);
  text-align: left;
  border: 1px solid transparent;
  border-radius: 24px;
  background: transparent;
  cursor: pointer;
  transition: 180ms ease;
}

.tour-button span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: white;
  box-shadow: 0 10px 24px rgba(76, 68, 204, 0.08);
  font-size: 18px;
  color: var(--purple);
}

.tour-logo {
  width: 31px;
  height: 31px;
  object-fit: cover;
  border-radius: 9px;
}

.tour-button b { font-size: 19px; }
.tour-button > div { display: grid; gap: 3px; }
.tour-button small { color: var(--muted); font-size: 13px; line-height: 1.35; }
.tour-button.active,
.tour-button:hover {
  transform: translateX(8px);
  border-color: var(--line);
  background: rgba(255,255,255,0.86);
  box-shadow: var(--shadow);
}

.phone-stage {
  position: sticky;
  top: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(650px, calc(100vh - 116px));
  padding: 72px 290px 20px 18px;
  perspective: 1200px;
  border-radius: 42px;
  overflow: visible;
  background:
    radial-gradient(circle at 50% 20%, rgba(0,212,170,0.22), transparent 24rem),
    radial-gradient(circle at 30% 80%, rgba(108,99,255,0.16), transparent 22rem);
}

.phone {
  position: relative;
  flex: 0 0 auto;
  width: min(306px, 72vw);
  height: 594px;
  padding: 11px;
  border: 10px solid #26293c;
  border-radius: 42px;
  background: #26293c;
  box-shadow: 0 32px 80px rgba(45,45,45,0.25);
  transform-style: preserve-3d;
  transition: transform 180ms ease, box-shadow 180ms ease;
  will-change: transform;
}

.phone:hover {
  box-shadow: 0 40px 92px rgba(45,45,45,0.30);
}

.speaker {
  position: absolute;
  left: 50%;
  top: 11px;
  width: 46px;
  height: 5px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(255,255,255,0.22);
}

.screen {
  height: 552px;
  overflow: hidden;
  border-radius: 29px;
  background: var(--bg);
}

.status {
  display: flex;
  justify-content: space-between;
  padding: 10px 15px 3px;
  color: rgba(45,45,45,0.62);
  font-size: 11px;
  font-weight: 900;
}

.phone-content {
  height: calc(100% - 30px);
  overflow-y: auto;
  scrollbar-width: none;
}

.phone-content::-webkit-scrollbar { display: none; }
.phone-content .demo-action {
  position: relative;
  outline: 2px solid rgba(108,99,255,.76);
  outline-offset: -2px;
  box-shadow: 0 0 0 4px rgba(108,99,255,.10);
}

.phone-content .demo-action::after {
  content: "Tap";
  position: absolute;
  top: 5px;
  right: 6px;
  z-index: 4;
  padding: 2px 6px;
  color: white;
  background: var(--purple);
  border: 2px solid white;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(76,68,204,.28);
  font-size: 8px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: .04em;
  line-height: 1;
  text-transform: uppercase;
  pointer-events: none;
}

.phone-content .icon-button.demo-action::after {
  content: "";
  top: -1px;
  right: -1px;
  width: 8px;
  height: 8px;
  padding: 0;
}

.phone-content .connection-row .demo-action::after {
  content: "";
  top: 3px;
  right: 0;
  width: 7px;
  height: 7px;
  padding: 0;
}

.phone-content .demo-action:hover,
.phone-content .demo-action:focus-visible {
  outline-color: var(--teal);
  box-shadow: 0 0 0 5px rgba(0,212,170,.18);
}
.phone-top { color: var(--muted); font-size: 12px; font-weight: 900; }
.phone-title { margin: 6px 0 14px; font-size: 28px; font-weight: 900; letter-spacing: -0.05em; }

.curva-app {
  min-height: 100%;
  background: var(--bg);
}

.curva-appbar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 7px 10px;
  background: white;
  box-shadow: 0 1px 0 rgba(108, 99, 255, 0.08);
}

.curva-appbar h3 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.home-appbar {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px;
}

.home-appbar h3 {
  overflow: hidden;
  font-size: 16px;
  white-space: nowrap;
}

.appbar-actions {
  display: flex;
  gap: 1px;
  align-items: center;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-size: 24px;
  font-weight: 900;
  cursor: pointer;
}

.icon-button.small {
  width: 25px;
  height: 28px;
  color: var(--purple);
  font-size: 16px;
}

.icon-button.muted {
  color: var(--muted);
  font-size: 15px;
}

.clinician-actions { gap: 0; }

.curva-page {
  padding: 13px;
}

.sensor-banner,
.doctor-card,
.alerts-card,
.clinic-row {
  width: 100%;
  font: inherit;
  text-align: left;
  border: 0;
  cursor: pointer;
}

.sensor-banner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  margin-bottom: 11px;
  padding: 9px 12px;
  border: 1px solid #e8e8f8;
  border-radius: 14px;
  color: var(--ink);
  background: white;
}

.sensor-banner b {
  font-size: 13px;
}

.sensor-banner em {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--purple);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.sensor-banner em .ui-icon { font-size: 12px; color: var(--muted); }

.sensor-dot {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 7px;
  color: white;
  background: linear-gradient(135deg, var(--purple), var(--teal));
}

.sensor-dot .ui-icon { font-size: 12px; }

.connection-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 13px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
}

.connection-row button {
  margin-left: auto;
  border: 0;
  color: var(--purple);
  background: transparent;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.connection-row.disconnected { color: #a5a5ad; }

.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(0, 212, 170, 0.14);
}

.live-dot.off {
  background: #c8c8c8;
  box-shadow: none;
}

.actual-pressure {
  border-color: rgba(0, 212, 170, 0.26);
  color: #20c96f;
  background: linear-gradient(135deg, rgba(0,212,170,0.12), rgba(108,99,255,0.04));
}

.pressure-display {
  display: grid;
  justify-items: center;
  width: 100%;
  margin-bottom: 12px;
  padding: 20px 14px;
  border: 1.5px solid rgba(34, 197, 94, 0.2);
  border-radius: 24px;
  color: var(--green);
  background: linear-gradient(135deg, rgba(34,197,94,0.12), rgba(34,197,94,0.04));
}

.pressure-display.yellow {
  color: var(--amber);
  border-color: rgba(245, 158, 11, 0.24);
  background: linear-gradient(135deg, rgba(245,158,11,0.13), rgba(245,158,11,0.04));
}

.pressure-display.red {
  color: var(--red);
  border-color: rgba(239, 68, 68, 0.24);
  background: linear-gradient(135deg, rgba(239,68,68,0.13), rgba(239,68,68,0.04));
}

.pressure-display.yellow em {
  color: var(--amber);
  background: rgba(245,158,11,0.13);
}

.pressure-display.red em {
  color: var(--red);
  background: rgba(239,68,68,0.13);
}

.pressure-display span {
  font-size: 12px;
  font-weight: 800;
  opacity: 0.85;
}

.pressure-display strong {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  margin: 6px 0 8px;
  font-size: 45px;
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -0.07em;
}

.pressure-display.full strong {
  font-size: 64px;
}

.pressure-display i {
  padding-bottom: 7px;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0;
  opacity: 0.75;
}

.pressure-display em {
  padding: 5px 11px;
  border-radius: 999px;
  color: var(--green);
  background: rgba(34,197,94,0.13);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.quality-display {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 11px;
  align-items: start;
  width: 100%;
  margin-bottom: 13px;
  padding: 13px;
  border: 0;
  border-radius: 20px;
  color: var(--ink);
  background: white;
  box-shadow: 0 4px 16px rgba(108,99,255,0.08);
}

.quality-display span {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 16px;
  color: var(--green);
  background: rgba(34,197,94,0.12);
  font-size: 20px;
  font-weight: 900;
}

.quality-display.red > span {
  color: var(--red);
  background: rgba(239,68,68,0.11);
}

.quality-display b {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
}

.quality-display p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.quality-status.yellow span {
  color: var(--amber);
  background: rgba(245,158,11,0.13);
}

.quality-status.red span {
  color: var(--red);
  background: rgba(239,68,68,0.13);
}

.week-summary-top,
.pressure-mini-card {
  margin-bottom: 14px;
  padding: 15px;
  border-radius: 20px;
  background: white;
  box-shadow: 0 4px 16px rgba(108,99,255,0.08);
}

.week-summary-top span,
.week-summary-top b,
.week-summary-top small {
  display: block;
}

.week-summary-top span,
.week-summary-top small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.week-summary-top b {
  margin: 4px 0 2px;
  color: var(--purple);
  font-size: 21px;
  font-weight: 900;
}

.followup-preview {
  padding: 15px;
  border-radius: 20px;
  color: var(--green);
  background: rgba(34,197,94,0.10);
}

.followup-preview.yellow {
  color: var(--amber);
  background: rgba(245,158,11,0.10);
}

.followup-preview.red {
  color: var(--red);
  background: rgba(239,68,68,0.10);
}

.followup-preview b,
.followup-preview small {
  display: block;
  font-weight: 900;
}

.followup-preview p {
  margin: 6px 0 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.followup-preview button {
  width: 100%;
  min-height: 40px;
  border: 0;
  border-radius: 14px;
  color: white;
  background: var(--green);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.followup-preview.yellow button { background: var(--amber); }
.followup-preview.red button { background: var(--red); }

.date-heading {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 900;
}

.compliance-card,
.weekly-bars-card,
.ai-summary-card,
.today-alert-card,
.trend-flag-card,
.triage-summary {
  margin-bottom: 14px;
  padding: 16px;
  border-radius: 20px;
  background: white;
  box-shadow: 0 4px 16px rgba(108,99,255,0.08);
}

.card-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.card-heading span {
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--green);
  background: rgba(34,197,94,0.12);
  font-size: 10px;
  font-weight: 900;
}

.mini-ring {
  display: grid;
  place-items: center;
  width: 142px;
  height: 142px;
  margin: 16px auto 12px;
  border-radius: 50%;
  color: var(--green);
  background:
    radial-gradient(circle at center, white 0 58%, transparent 59%),
    conic-gradient(var(--green) 0 87%, rgba(34,197,94,0.12) 87% 100%);
}

.mini-ring.yellow {
  color: var(--amber);
  background:
    radial-gradient(circle at center, white 0 58%, transparent 59%),
    conic-gradient(var(--amber) 0 61%, rgba(245,158,11,0.12) 61% 100%);
}

.mini-ring.red {
  color: var(--red);
  background:
    radial-gradient(circle at center, white 0 58%, transparent 59%),
    conic-gradient(var(--red) 0 12%, rgba(239,68,68,0.12) 12% 100%);
}

.mini-ring strong {
  font-size: 34px;
  font-weight: 900;
}

.mini-ring small {
  margin-top: -34px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.compliance-card p {
  margin: 0 0 8px;
  padding: 9px;
  border-radius: 12px;
  color: var(--green);
  background: rgba(34,197,94,0.08);
  text-align: center;
  font-size: 13px;
  font-weight: 900;
}

.goal-row {
  display: block;
  color: var(--muted);
  text-align: center;
  font-weight: 800;
}

.mini-stat {
  display: grid;
  grid-template-columns: 34px 1fr;
  column-gap: 8px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: white;
  box-shadow: 0 4px 16px rgba(108,99,255,0.08);
}

.mini-stat::before {
  content: "";
  grid-row: span 2;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(108,99,255,0.12);
}

.mini-stat.warning::before {
  background: rgba(245,158,11,0.15);
}

.mini-stat span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.mini-stat b {
  color: var(--purple);
  font-size: 18px;
  font-weight: 900;
}

.mini-stat.warning b {
  color: var(--amber);
}

.pressure-mini-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(34,197,94,0.18);
  background: linear-gradient(135deg, rgba(34,197,94,0.10), rgba(255,255,255,0.9));
}

.pressure-mini-card.yellow {
  border-color: rgba(245,158,11,0.22);
  background: linear-gradient(135deg, rgba(245,158,11,0.10), rgba(255,255,255,0.9));
}

.pressure-mini-card.red {
  border-color: rgba(239,68,68,0.22);
  background: linear-gradient(135deg, rgba(239,68,68,0.10), rgba(255,255,255,0.9));
}

.pressure-mini-card span,
.pressure-mini-card em {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.pressure-mini-card b {
  display: block;
  margin-top: 2px;
  color: var(--green);
  font-size: 22px;
  font-weight: 900;
}

.pressure-mini-card.yellow b,
.pressure-mini-card.yellow em {
  color: var(--amber);
}

.pressure-mini-card.red b,
.pressure-mini-card.red em {
  color: var(--red);
}

.pressure-mini-card em {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.72);
  font-style: normal;
}

.ai-summary-card {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
}

.ai-summary-card > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: var(--purple);
  background: rgba(108,99,255,0.12);
  font-size: 12px;
  font-weight: 900;
}

.ai-summary-card b {
  display: block;
  margin-bottom: 5px;
}

.ai-summary-card p,
.today-alert-card p,
.trend-flag-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.42;
}

.quality-display.compact {
  margin-bottom: 14px;
}

.weekly-bars {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 9px;
  align-items: end;
  height: 122px;
  margin: 14px 0 8px;
  padding-top: 8px;
}

.weekly-bars span {
  min-height: 18px;
  border-radius: 999px 999px 8px 8px;
  background: linear-gradient(180deg, #cbc8ff, var(--purple));
}

.weekly-bars span.good {
  background: linear-gradient(180deg, var(--teal-soft), var(--teal));
}

.weekly-bars span.warn {
  background: linear-gradient(180deg, #fed7aa, var(--amber));
}

.today-alert-card {
  border: 1px solid rgba(245,158,11,0.22);
  background: rgba(245,158,11,0.08);
}

.today-alert-card.green {
  border-color: rgba(34,197,94,0.18);
  background: rgba(34,197,94,0.08);
}

.today-alert-card.red {
  border-color: rgba(239,68,68,0.20);
  background: rgba(239,68,68,0.08);
}

.today-alert-card b,
.trend-flag-card b {
  display: block;
  margin-bottom: 5px;
  color: var(--ink);
}

.trend-flag-card {
  border: 1px solid rgba(245,158,11,0.18);
  background: white;
}

.quick-question-row {
  display: grid;
  gap: 8px;
  margin: 10px 0;
}

.quick-question-row button {
  min-height: 34px;
  border: 1px solid rgba(108,99,255,0.16);
  border-radius: 999px;
  color: var(--purple);
  background: white;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
}

.notes-preview {
  background: rgba(255,255,255,0.86);
}

.message-row.doctor-msg {
  margin-right: 28px;
}

.message-row.patient-msg {
  margin-left: 28px;
  color: white;
  background: linear-gradient(135deg, var(--purple), var(--teal));
}

.message-row.patient-msg span {
  color: rgba(255,255,255,0.86);
}

.clinician-welcome {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding: 17px;
  border-radius: 22px;
  color: white;
  background: linear-gradient(135deg, var(--purple), #965cff);
  box-shadow: 0 12px 28px rgba(108,99,255,0.22);
}

.clinician-welcome > span {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 17px;
  background: rgba(255,255,255,0.16);
  font-size: 28px;
}

.clinician-welcome b,
.clinician-welcome small { display: block; }
.clinician-welcome b { font-size: 16px; }
.clinician-welcome small { margin-top: 4px; color: rgba(255,255,255,0.72); font-size: 12px; }

.invite-code-card,
.clinician-patient-card,
.clinician-feedback {
  width: 100%;
  border: 0;
  font: inherit;
  cursor: pointer;
}

.invite-code-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 11px;
  margin-bottom: 17px;
  padding: 14px;
  border-radius: 20px;
  color: var(--ink);
  text-align: left;
  background: white;
  box-shadow: 0 7px 20px rgba(76,68,204,0.08);
}

.invite-code-card > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: var(--teal);
  background: rgba(0,212,170,0.14);
  font-size: 22px;
}

.invite-code-card b,
.invite-code-card small { display: block; }
.invite-code-card b { font-size: 13px; }
.invite-code-card small { margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.35; }
.invite-code-card em { color: var(--purple); font-size: 12px; font-style: normal; font-weight: 900; }

.patient-heading { margin: 0 0 10px; font-size: 17px; }

.clinician-patient-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 15px;
  border-radius: 21px;
  color: var(--ink);
  text-align: left;
  background: white;
  box-shadow: 0 7px 20px rgba(76,68,204,0.08);
}

.patient-avatar {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  color: var(--purple);
  background: rgba(108,99,255,0.11);
  font-size: 21px;
}

.patient-identity b,
.patient-identity small,
.patient-status strong,
.patient-status em { display: block; }
.patient-identity b { font-size: 14px; }
.patient-identity small { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.patient-status { text-align: right; }
.patient-status strong { padding: 4px 8px; border-radius: 999px; color: var(--green); background: rgba(34,197,94,0.11); font-size: 10px; }
.patient-status em { margin-top: 7px; color: var(--purple); font-size: 10px; font-style: normal; font-weight: 900; }

.clinician-feedback {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  margin: 80px 0 12px auto;
  padding: 11px 16px;
  border-radius: 16px;
  color: white;
  background: var(--purple);
  box-shadow: 0 10px 24px rgba(76,68,204,0.25);
  font-weight: 900;
}

.stat-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 11px;
}

.stat-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 6px;
  min-height: 68px;
  padding: 10px;
  border-radius: 16px;
  background: white;
  box-shadow: 0 4px 16px rgba(108,99,255,0.08);
}

.stat-card .ui-icon { grid-row: 1; font-size: 15px; }
.stat-card span { grid-row: 1; }
.stat-card b { grid-column: 1 / -1; justify-self: start; }
.purple-stat .ui-icon { color: var(--purple); }
.teal-stat .ui-icon { color: var(--teal); }

.stat-card span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.stat-card b {
  color: var(--purple);
  font-size: 18px;
  font-weight: 900;
}

.real-action-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 11px;
}

.real-action-grid button {
  min-height: 94px;
  padding: 10px;
  border: 0;
  border-radius: 16px;
  text-align: center;
  color: var(--ink);
  background: white;
  box-shadow: 0 4px 16px rgba(108,99,255,0.08);
  cursor: pointer;
}

.real-action-grid span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin: 0 auto 6px;
  border-radius: 0;
  background: transparent;
  font-size: 22px;
  font-weight: 900;
}

.real-action-grid .teal-action span { color: var(--teal); }
.real-action-grid .purple-action span { color: var(--purple); }

.real-action-grid b,
.real-action-grid small {
  display: block;
}

.real-action-grid b {
  font-size: 12px;
}

.real-action-grid small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.25;
}

.doctor-card {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 11px;
  padding: 11px 13px;
  border: 1px solid rgba(0,212,170,0.3);
  border-radius: 16px;
  color: var(--ink);
  background: linear-gradient(90deg, rgba(0,212,170,0.12), rgba(108,99,255,0.08));
}

.doctor-card span,
.doctor-profile span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  color: var(--teal);
  background: rgba(0,212,170,0.15);
  color: var(--teal);
  font-size: 20px;
  font-weight: 900;
}

.doctor-card small,
.doctor-profile small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.doctor-card i {
  color: var(--teal);
  font-style: normal;
  font-size: 24px;
  font-weight: 900;
}

.alerts-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 9px;
  padding: 12px;
  border-radius: 16px;
  color: var(--ink);
  background: white;
  box-shadow: 0 4px 16px rgba(108,99,255,0.08);
}

.alerts-card span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.alerts-card .ui-icon { color: var(--purple); font-size: 23px; }
.alerts-section h4 { margin: 0 0 8px; font-size: 15px; }

.range-card,
.live-range-card,
.assistant-banner,
.doctor-profile,
.segmented-tabs {
  margin-bottom: 12px;
  padding: 15px;
  border-radius: 20px;
  background: white;
  box-shadow: 0 4px 16px rgba(108,99,255,0.08);
}

.progress-line {
  height: 5px;
  margin: -16px -16px 20px;
  background: rgba(108,99,255,0.08);
}

.progress-line span {
  display: block;
  height: 100%;
  background: var(--teal);
}

.checkin-hero {
  text-align: center;
}

.checkin-hero h4 {
  margin: 0 0 7px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 900;
}

.checkin-hero p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.live-range-card {
  display: grid;
  justify-items: center;
  border: 1px solid rgba(0,212,170,0.2);
  background: linear-gradient(135deg, rgba(0,212,170,0.14), white);
}

.live-range-card span,
.live-range-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.live-range-card b {
  color: var(--teal);
  font-size: 24px;
  font-weight: 900;
}

.assistant-banner {
  margin: -2px -4px 12px;
  padding: 9px 12px;
  border-radius: 0;
  color: var(--purple-dark);
  background: rgba(108,99,255,0.10);
  font-size: 11px;
  font-weight: 800;
}

.doctor-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(0,212,170,0.24);
  background: linear-gradient(90deg, rgba(0,212,170,0.12), rgba(108,99,255,0.08));
}

.doctor-profile b {
  display: block;
  color: var(--ink);
}

.doctor-profile > div {
  flex: 1;
}

.red-dot-badge {
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  color: white;
  background: var(--red);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.segmented-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 5px;
  background: rgba(108,99,255,0.08);
}

.segmented-tabs b {
  display: grid;
  place-items: center;
  min-height: 34px;
  border-radius: 14px;
  color: var(--muted);
  font-size: 12px;
}

.segmented-tabs b.active {
  color: var(--purple);
  background: white;
  box-shadow: 0 6px 12px rgba(108,99,255,0.08);
}

.feature-explanation {
  position: absolute;
  right: 22px;
  top: 72px;
  z-index: 4;
  width: 256px;
  max-height: calc(100% - 92px);
  padding: 15px 16px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,0.94);
  box-shadow: 0 18px 42px rgba(76,68,204,0.16);
  backdrop-filter: blur(14px);
  transform: none;
  transition: box-shadow 180ms ease;
}

.feature-explanation::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -72px;
  width: 72px;
  height: 2px;
  background: linear-gradient(90deg, rgba(0,212,170,0), var(--teal));
  transform: translateY(-50%);
}

.feature-explanation::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -78px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 6px rgba(0,212,170,0.14);
  transform: translateY(-50%);
}

.feature-explanation b {
  display: block;
  margin-bottom: 4px;
  color: var(--purple-dark);
  font-size: 15px;
}

.feature-explanation p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.action-guide {
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.action-guide > span {
  display: block;
  margin-bottom: 8px;
  color: var(--teal);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.action-guide ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.action-guide li { display: grid; gap: 1px; }
.action-guide li b { margin: 0; color: var(--ink); font-size: 12px; }
.action-guide li small { color: var(--muted); font-size: 11px; line-height: 1.3; }

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.app-header.compact {
  justify-content: flex-start;
}

.app-header.compact h3 {
  flex: 1;
  margin: 0;
  font-size: 22px;
}

.round-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  color: white;
  background: linear-gradient(135deg, var(--purple), var(--teal));
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(76, 68, 204, 0.18);
}

.ghost-icon {
  color: var(--purple);
  background: white;
  border: 1px solid var(--line);
}

.phone-card {
  margin-bottom: 12px;
  padding: 15px;
  border: 1px solid rgba(255,255,255,0.75);
  border-radius: 20px;
  background: rgba(255,255,255,0.78);
  box-shadow: 0 12px 28px rgba(76,68,204,0.08);
}

.phone-card.green { background: linear-gradient(135deg, rgba(0,212,170,0.20), rgba(255,255,255,0.84)); }
.phone-card.purple { background: linear-gradient(135deg, rgba(108,99,255,0.16), rgba(255,255,255,0.84)); }

.app-clickable,
.mini-action,
.alert-preview,
.primary-phone-button,
.secondary-phone-button {
  width: 100%;
  font: inherit;
  text-align: left;
  cursor: pointer;
  border: 0;
}

.app-clickable:hover,
.mini-action:hover,
.alert-preview:hover,
.primary-phone-button:hover,
.secondary-phone-button:hover {
  transform: translateY(-1px);
}

.pressure-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding: 17px;
  border: 1px solid rgba(255,255,255,0.75);
  border-radius: 24px;
  color: var(--ink);
  background: linear-gradient(135deg, rgba(0,212,170,0.24), rgba(255,255,255,0.86));
  box-shadow: 0 14px 30px rgba(0, 212, 170, 0.10);
}

.pressure-card.expanded {
  display: block;
}

.pressure-status {
  display: grid;
  gap: 4px;
  justify-items: end;
  color: var(--green);
}

.pressure-status small {
  color: var(--muted);
  font-weight: 800;
}

.phone-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.phone-muted { color: var(--muted); font-size: 12px; line-height: 1.45; }
.pressure-big { font-size: 45px; font-weight: 900; letter-spacing: -0.08em; }
.pressure-big span { font-size: 18px; letter-spacing: 0; }
.pressure-big.huge { font-size: 64px; }

.quality-card {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 13px;
  align-items: center;
  margin-bottom: 12px;
  padding: 15px;
  border-radius: 22px;
  color: var(--ink);
  background: rgba(255,255,255,0.82);
  box-shadow: 0 12px 28px rgba(76,68,204,0.08);
}

.quality-card p {
  margin: 4px 0 0;
}

.score-badge {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  color: white;
  background: linear-gradient(135deg, var(--green), var(--teal));
  font-size: 21px;
  font-weight: 900;
}

.pill {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--purple-dark);
  background: rgba(108,99,255,0.12);
  font-size: 12px;
  font-weight: 900;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.mini-action {
  min-height: 94px;
  padding: 12px;
  border-radius: 20px;
  color: var(--ink);
  background: rgba(255,255,255,0.78);
  box-shadow: 0 10px 22px rgba(76,68,204,0.07);
}

.mini-action span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 8px;
  border-radius: 11px;
  color: white;
  background: linear-gradient(135deg, var(--purple), var(--teal));
  font-size: 13px;
  font-weight: 900;
}

.mini-action b,
.mini-action small {
  display: block;
}

.mini-action small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.alert-preview {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  padding: 14px;
  border-radius: 20px;
  color: var(--ink);
  background: white;
  box-shadow: 0 10px 22px rgba(76,68,204,0.06);
}

.alert-preview span {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.metric-row,
.zone-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(108, 99, 255, 0.10);
}

.metric-row:last-child,
.zone-row:last-child {
  border-bottom: 0;
}

.metric-row span,
.zone-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.good-text { color: var(--green); }
.warn-text { color: var(--amber); }
.red-text { color: var(--red); }

.primary-phone-button,
.secondary-phone-button {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  margin-top: 10px;
  border-radius: 16px;
  font-weight: 900;
}

.primary-phone-button {
  color: white;
  background: linear-gradient(135deg, var(--purple), var(--teal));
}

.secondary-phone-button {
  color: var(--purple);
  background: white;
  border: 1px solid var(--line);
}

.scan-ring {
  display: grid;
  place-items: center;
  width: 150px;
  height: 150px;
  margin: 8px auto 18px;
  border-radius: 50%;
  color: var(--purple);
  background:
    radial-gradient(circle at center, #fff 0 56%, transparent 57%),
    conic-gradient(var(--teal) 0 76%, rgba(108,99,255,0.13) 76% 100%);
  box-shadow: 0 18px 36px rgba(0,212,170,0.16);
}

.scan-ring span {
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
}

.scan-ring small {
  margin-top: -34px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.check-list-phone {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.check-list-phone div {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255,255,255,0.78);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.check-list-phone span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 9px;
  color: white;
  background: var(--teal);
  font-size: 12px;
}

.stats-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.stats-two b {
  display: block;
  margin-top: 4px;
  font-size: 22px;
}

.line-graph {
  position: relative;
  height: 118px;
  margin-top: 10px;
  border-radius: 18px;
  background:
    linear-gradient(rgba(108,99,255,0.08) 1px, transparent 1px) 0 0 / 100% 25%,
    linear-gradient(90deg, rgba(108,99,255,0.08) 1px, transparent 1px) 0 0 / 25% 100%,
    rgba(255,255,255,0.62);
  overflow: hidden;
}

.line-graph::before {
  content: "";
  position: absolute;
  inset: 22% 12% 38% 12%;
  border-radius: 999px;
  background: rgba(0, 212, 170, 0.12);
}

.line-graph i {
  position: absolute;
  left: calc(var(--x) * 1%);
  bottom: calc(var(--y) * 1%);
  width: 10px;
  height: 10px;
  transform: translate(-50%, 50%);
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 0 5px rgba(108,99,255,0.12);
}

.line-graph i.warn {
  background: var(--amber);
  box-shadow: 0 0 0 5px rgba(245,158,11,0.14);
}

.graph-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.message-list,
.clinic-list {
  display: grid;
  gap: 9px;
  margin-bottom: 12px;
}

.message-row,
.clinic-row {
  padding: 13px;
  border-radius: 18px;
  background: white;
  box-shadow: 0 10px 22px rgba(76,68,204,0.06);
}

.message-row b,
.message-row span,
.clinic-row b,
.clinic-row span {
  display: block;
}

.message-row span,
.clinic-row span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.clinic-row {
  border-left: 5px solid var(--green);
}

.clinic-row.yellow-line {
  border-left-color: var(--amber);
}

.clinic-row.red-line {
  border-left-color: var(--red);
}

.phone-bars {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 7px;
  align-items: end;
  height: 120px;
  padding-top: 16px;
}

.phone-bars span {
  border-radius: 999px 999px 6px 6px;
  background: linear-gradient(180deg, #cbc8ff, var(--purple));
}

.phone-bars span.good { background: linear-gradient(180deg, var(--teal-soft), var(--teal)); }
.phone-bars span.warn { background: linear-gradient(180deg, #fed7aa, var(--amber)); }

.range-track {
  position: relative;
  height: 12px;
  margin: 18px 0 8px;
  border-radius: 999px;
  background: rgba(45,45,45,0.10);
}

.range-track span {
  position: absolute;
  left: 34%;
  right: 18%;
  inset-block: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--green));
}

.chat {
  width: fit-content;
  max-width: 92%;
  margin: 10px 0;
  padding: 12px 14px;
  border-radius: 18px;
  background: white;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.chat.user {
  margin-left: auto;
  color: white;
  background: linear-gradient(135deg, var(--purple), var(--teal));
}

.hardware {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(320px, 1fr);
  gap: clamp(30px, 6vw, 76px);
  align-items: center;
}

.check-list li { margin-bottom: 10px; font-size: 17px; }
.hardware-demo {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: rgba(255,255,255,0.64);
  box-shadow: var(--shadow);
}

.hardware-tab {
  margin: 0 8px 10px 0;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: white;
  font-weight: 900;
  cursor: pointer;
}

.hardware-tab.active {
  color: white;
  border-color: transparent;
  background: linear-gradient(135deg, var(--purple), var(--teal));
}

.hardware-card { min-height: 310px; margin-top: 16px; }
.diagram {
  min-height: 250px;
  margin-bottom: 18px;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(108,99,255,0.12), rgba(0,212,170,0.16));
}

.diagram img {
  display: block;
  width: 100%;
  height: 300px;
}

.hardware-photo {
  display: grid;
  place-items: center;
  min-height: 450px;
  padding: 12px;
}

.hardware-photo img {
  height: 430px;
  object-fit: contain;
  object-position: center;
  border-radius: 16px;
}

.app-photo {
  display: grid;
  place-items: center;
  min-height: 540px;
  padding: 16px;
  background: #f2f4ff;
}

.app-photo img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 510px;
  object-fit: contain;
  border-radius: 15px;
  box-shadow: 0 14px 32px rgba(76, 68, 204, 0.14);
}

.tutorials .section-title {
  max-width: 760px;
}

.tutorial-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 24px;
  margin-top: 34px;
}

.tutorial-card {
  min-width: 0;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255,255,255,0.74);
  box-shadow: var(--shadow);
}

.tutorial-card-heading {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  margin-bottom: 22px;
}

.tutorial-card-heading h3,
.tutorial-card-heading p {
  margin: 0;
}

.tutorial-card-heading p {
  margin-top: 5px;
}

.tutorial-number {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  color: white;
  background: linear-gradient(135deg, var(--purple), var(--teal));
  font-size: 14px;
  font-weight: 900;
}

.tutorial-video {
  display: block;
  width: 100%;
  max-height: 620px;
  border-radius: 22px;
  background: #0e1020;
  box-shadow: 0 18px 42px rgba(41, 42, 78, 0.18);
}

.tutorial-card-placeholder {
  display: flex;
  flex-direction: column;
}

.tutorial-placeholder {
  display: grid;
  place-items: center;
  align-content: center;
  flex: 1;
  min-height: 320px;
  padding: 34px 24px;
  border: 2px dashed rgba(108,99,255,0.24);
  border-radius: 22px;
  text-align: center;
  background: linear-gradient(145deg, rgba(108,99,255,0.07), rgba(0,212,170,0.1));
}

.tutorial-placeholder > span {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin-bottom: 18px;
  border-radius: 22px;
  color: var(--purple);
  background: white;
  box-shadow: 0 14px 32px rgba(76, 68, 204, 0.12);
}

.tutorial-placeholder .ui-icon {
  width: 34px;
  height: 34px;
}

.tutorial-placeholder strong {
  color: var(--ink);
  font-size: 20px;
}

.tutorial-placeholder p {
  max-width: 330px;
  margin: 8px 0 0;
}

.ai-grid b {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: 15px;
  color: white;
  background: linear-gradient(135deg, var(--purple), var(--teal));
}

.contact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin: clamp(40px, 6vw, 90px) clamp(20px, 5vw, 64px);
}

.site-footer {
  padding: 48px clamp(20px, 5vw, 64px) 24px;
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,0.72);
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(280px, 1.4fr) minmax(150px, 0.55fr) minmax(240px, 0.8fr);
  gap: clamp(30px, 6vw, 84px);
  padding-bottom: 34px;
}

.footer-brand {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 16px;
}

.footer-brand img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(0,212,170,0.16);
}

.footer-brand b { color: var(--ink); font-size: 24px; }
.footer-brand p { max-width: 480px; margin: 5px 0 0; }

.footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.footer-column h3 { margin-bottom: 5px; color: var(--ink); font-size: 16px; }
.footer-column a:hover { color: var(--purple); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.footer-bottom span:last-child { max-width: 620px; text-align: right; }

@media (max-width: 980px) {
  .topbar { flex-wrap: wrap; }
  nav { order: 3; width: 100%; overflow-x: auto; padding-bottom: 6px; }
  .hero, .tour, .hardware, .contact { grid-template-columns: 1fr; }
  .tour-copy, .phone-stage { position: static; }
  .phone-stage {
    min-height: auto;
    padding: 28px;
    flex-direction: column;
  }
  .feature-explanation {
    position: relative;
    right: auto;
    top: auto;
    width: min(420px, 90%);
    transform: none;
  }
  .feature-explanation::before,
  .feature-explanation::after {
    display: none;
  }
  .feature-grid, .ai-grid { grid-template-columns: 1fr 1fr; }
  .tutorial-grid { grid-template-columns: 1fr; }
  .tutorial-placeholder { min-height: 260px; }
}

@media (max-width: 640px) {
  .nav-cta { display: none; }
  h1 { font-size: 46px; }
  .feature-grid, .ai-grid { grid-template-columns: 1fr; }
  .phone-stage { min-height: auto; padding: 20px 10px; }
  .phone {
    width: min(306px, 92vw);
    height: 594px;
    padding: 10px;
    border-width: 10px;
  }
  .screen { height: 552px; }
  .curva-page { padding: 13px; }
  .pressure-display strong { font-size: 42px; }
  .real-action-grid { gap: 10px; }
  .contact { display: block; }
  .footer-main { grid-template-columns: 1fr; }
  .footer-bottom { display: grid; }
  .footer-bottom span:last-child { text-align: left; }
}

.interaction-key {
  position: absolute;
  top: 20px;
  left: 22px;
  z-index: 5;
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  column-gap: 9px;
  padding: 9px 12px;
  color: var(--purple-dark);
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(108,99,255,.22);
  border-radius: 15px;
  box-shadow: 0 10px 24px rgba(76,68,204,.10);
  font-size: 12px;
}

.interaction-key > span {
  grid-row: 1 / 3;
  width: 12px;
  height: 12px;
  background: var(--purple);
  border: 3px solid white;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(108,99,255,.2);
}

.interaction-key b { line-height: 1.1; }
.interaction-key small { color: var(--muted); line-height: 1.1; }

/* Multi-page site shell */
.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--purple-dark);
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 18px;
  cursor: pointer;
}

.site-nav a {
  position: relative;
  padding: 10px 0;
  white-space: nowrap;
}

.site-nav a.active { color: var(--ink); }

.site-nav a.active::after {
  position: absolute;
  right: 0;
  bottom: 1px;
  left: 0;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, var(--purple), var(--teal));
  border-radius: 999px;
}

.page-hero {
  max-width: 1180px;
  min-height: 470px;
  padding: clamp(96px, 12vw, 164px) clamp(20px, 7vw, 84px) 88px;
}

.page-hero.compact { min-height: 390px; padding-bottom: 58px; }

.page-hero h1 {
  max-width: 980px;
  font-size: clamp(52px, 7.2vw, 94px);
}

.page-section,
.home-paths { padding-top: 42px; }

.home-hero { overflow: hidden; }

.home-product-shot {
  position: relative;
  display: flex;
  justify-content: center;
  min-height: 670px;
  padding: 44px 70px;
  background: rgba(255,255,255,0.66);
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: 42px;
  box-shadow: var(--shadow);
}

.home-product-shot > img {
  z-index: 1;
  width: min(335px, 100%);
  align-self: center;
  border: 8px solid rgba(255,255,255,0.92);
  border-radius: 44px;
  box-shadow: 0 30px 65px rgba(42, 39, 111, 0.22);
}

.product-shot-label {
  position: absolute;
  top: 24px;
  left: 26px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 0 14px;
  color: var(--purple-dark);
  background: rgba(255,255,255,.94);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(76,68,204,.12);
  font-size: 13px;
  font-weight: 900;
  border: 0;
  cursor: pointer;
}

.product-callout {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 230px;
  padding: 14px 16px;
  color: var(--muted);
  background: rgba(255,255,255,0.96);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 20px 45px rgba(76, 68, 204, 0.17);
  font-size: 12px;
}

.product-callout i {
  display: grid;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  place-items: center;
  color: white;
  background: var(--purple);
  border-radius: 13px;
  font-size: 17px;
}

.product-callout span { display: grid; gap: 2px; }
.product-callout b { color: var(--ink); font-size: 14px; }
.product-callout-top { top: 74px; right: -26px; }
.product-callout-bottom { bottom: 78px; left: -34px; }
.product-callout-bottom i { background: var(--teal); }

.home-paths { max-width: 1320px; margin: 0 auto; }

.intro-video-section {
  display: grid;
  grid-template-columns: minmax(280px, .62fr) minmax(0, 1.38fr);
  align-items: center;
  gap: clamp(36px, 6vw, 82px);
  max-width: 1320px;
  margin: 0 auto;
  padding-top: 58px;
  padding-bottom: 58px;
}

.intro-video-copy > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.intro-video-copy h2 { font-size: clamp(38px, 5vw, 62px); }

.intro-follow-up {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  margin-top: 18px;
  color: var(--purple-dark);
}

.intro-follow-up > i {
  font-size: 32px;
}

.intro-follow-up span { display: grid; gap: 2px; }
.intro-follow-up b { font-size: 16px; }
.intro-follow-up small { color: var(--muted); font-size: 13px; }

.intro-video-shell {
  overflow: hidden;
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(255,255,255,.95);
  border-radius: 32px;
  box-shadow: var(--shadow);
}

.intro-video-frame {
  position: relative;
  background: #111827;
}

.intro-video-poster {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  color: white;
  background: #111827;
  border: 0;
  cursor: pointer;
}

.intro-video-poster img,
.intro-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #111827;
}

.intro-video-poster > span {
  position: absolute;
  top: 22px;
  left: 22px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  background: rgba(20, 35, 55, .9);
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(0,0,0,.24);
  font-weight: 900;
}

.intro-video-poster > span i { font-size: 14px; }
.intro-video-poster:hover > span,
.intro-video-poster:focus-visible > span { background: var(--purple-dark); }
.intro-video[hidden],
.intro-video-poster[hidden] { display: none; }

.intro-video-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  color: var(--ink);
  font-weight: 900;
}

.intro-video-meta small { color: var(--muted); font-size: 13px; font-weight: 800; }

.page-link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 38px;
}

.page-link-card {
  display: grid;
  min-height: 265px;
  padding: 30px;
  background: rgba(255,255,255,0.86);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 18px 45px rgba(76,68,204,0.08);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.page-link-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.page-link-card > i,
.icon-grid article > span,
.ai-principles article > i {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  color: white;
  background: var(--purple);
  border-radius: 17px;
  font-size: 20px;
}

.page-link-card span { align-self: end; display: grid; gap: 6px; }
.page-link-card b { font-size: 22px; }
.page-link-card small { color: var(--muted); font-size: 15px; line-height: 1.5; }
.page-link-card em { margin-top: 18px; color: var(--purple-dark); font-style: normal; font-weight: 900; }

.home-contact-band,
.next-page {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 42px;
  max-width: 1240px;
  margin: 48px auto 100px;
  padding: 48px clamp(26px, 5vw, 60px);
  background: rgba(255,255,255,0.82);
  border: 1px solid var(--line);
  border-radius: 34px;
  box-shadow: var(--shadow);
}

.home-contact-band h2,
.next-page h2 { margin-bottom: 10px; font-size: clamp(34px, 4.5vw, 54px); }
.home-contact-band p:not(.eyebrow),
.next-page p:not(.eyebrow) { margin-bottom: 0; color: var(--muted); font-size: 18px; }
.next-page { margin-top: 10px; }

.split-story {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .75fr);
  align-items: center;
  gap: clamp(42px, 8vw, 110px);
}

.split-story > div:first-child > p:last-child,
.story-card p,
.ai-principles p,
.boundary-grid li { color: var(--muted); font-size: 17px; line-height: 1.6; }

.story-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px 18px;
  padding: clamp(30px, 5vw, 52px);
  background: rgba(255,255,255,0.86);
  border: 1px solid var(--line);
  border-radius: 34px;
  box-shadow: var(--shadow);
}

.story-card > i:not(.story-plus) {
  grid-row: span 2;
  color: var(--purple);
  font-size: 31px;
}

.story-card p { margin-bottom: 16px; }
.story-card .story-plus { grid-column: 1 / -1; margin: 2px 0 10px 8px; color: var(--muted); font-size: 15px; }

.icon-grid article {
  padding: 28px;
  background: rgba(255,255,255,.8);
  border: 1px solid var(--line);
  border-radius: 26px;
}

.icon-grid article > span,
.ai-principles article > i { margin-bottom: 28px; }
.icon-grid article:nth-child(2) > span,
.ai-principles article:nth-child(2) > i { background: var(--teal); }
.icon-grid article:nth-child(3) > span,
.ai-principles article:nth-child(3) > i { background: #4b8bd8; }

.page-tour { padding-top: 36px; }

.hardware-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.hardware-steps div {
  padding: 22px;
  background: rgba(255,255,255,.8);
  border: 1px solid var(--line);
  border-radius: 22px;
}

.hardware-steps b { display: block; margin-bottom: 6px; color: var(--purple-dark); }
.hardware-steps span { color: var(--muted); line-height: 1.5; }

.safety-note {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin: 34px auto 0;
  padding: 24px 28px;
  color: #39536c;
  background: rgba(226, 245, 255, .72);
  border: 1px solid rgba(75,139,216,.16);
  border-radius: 22px;
}

.safety-note i { margin-top: 4px; color: #4b8bd8; font-size: 22px; }
.safety-note p { margin: 0; font-size: 16px; }

.ai-principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.ai-principles article {
  padding: 32px;
  background: rgba(255,255,255,.84);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 20px 55px rgba(76,68,204,.08);
}

.boundary-section { padding-top: 30px; }
.boundary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 32px; }
.boundary-grid > div { padding: 32px; background: white; border: 1px solid var(--line); border-radius: 28px; }
.boundary-grid h3 { display: flex; gap: 11px; align-items: center; }
.boundary-grid .can h3 { color: #147a63; }
.boundary-grid .cannot h3 { color: #b84862; }
.boundary-grid ul { display: grid; gap: 14px; padding-left: 22px; margin-bottom: 0; }

/* Contact page, adapted from the supplied reference */
.contact-body {
  background:
    radial-gradient(circle at 4% 3%, rgba(115, 205, 238, .19), transparent 34rem),
    radial-gradient(circle at 94% 82%, rgba(246, 188, 153, .16), transparent 30rem),
    #eff7fd;
}

.contact-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(460px, 1.05fr);
  align-items: start;
  gap: clamp(52px, 6vw, 85px);
  max-width: 1440px;
  margin: 0 auto;
  padding: 105px clamp(28px, 3.4vw, 48px) 143px;
}

.contact-intro h1 { margin-bottom: 22px; font-size: clamp(54px, 6vw, 78px); }
.contact-intro { padding-top: 9px; }
.contact-intro .lede { max-width: 650px; }

.contact-reasons {
  display: grid;
  gap: 16px;
  margin-top: 38px;
}

.contact-reasons > div {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 70px;
  padding: 16px 24px;
  color: #5b6f89;
  background: rgba(255,255,255,.84);
  border: 1px solid rgba(255,255,255,.95);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(40,69,110,.07);
  font-size: 17px;
  font-weight: 800;
}

.contact-reasons i { width: 24px; color: var(--purple); text-align: center; }
.contact-reasons > div:nth-child(2) i { color: #7b8bac; }
.contact-reasons > div:nth-child(3) i { color: #e7a338; }

.direct-email {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  color: #536d89;
}

.direct-email > i {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: white;
  background: #4b8bd8;
  border-radius: 14px;
}

.direct-email span { display: grid; }
.direct-email small { color: var(--muted); }
.direct-email b { color: #2a4968; }

.contact-form-card {
  padding: clamp(28px, 3vw, 40px);
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(255,255,255,.96);
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(43,69,105,.14);
}

.contact-form-card form { display: grid; gap: 20px; }
.field { display: grid; gap: 9px; }
.field label { color: #586d88; font-size: 15px; font-weight: 900; }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0 19px;
  color: var(--ink);
  background: #fbfcff;
  border: 1px solid #d9e1eb;
  border-radius: 17px;
  outline: none;
  font: 700 16px Nunito, sans-serif;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.field input,
.field select { height: 62px; }
.field textarea { min-height: 172px; padding-top: 17px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: #9aa9bc; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: #6b9ddd; box-shadow: 0 0 0 4px rgba(75,139,216,.12); }

.contact-submit {
  min-height: 60px;
  margin-top: 2px;
  color: white;
  background: linear-gradient(90deg, #5c9adb, #3d80c7);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 12px 25px rgba(61,128,199,.22);
  font-size: 17px;
  font-weight: 900;
  cursor: pointer;
}

.contact-submit:disabled { cursor: wait; opacity: .72; }
.form-status { min-height: 20px; margin: -4px 0 0; color: #8392a5; font-size: 13px; text-align: center; }
.form-status.success { color: #147a63; }
.form-status.error { color: #b84862; }

.dark-footer {
  color: #a7bdd6;
  background: #183551;
}

.dark-footer .footer-main,
.dark-footer .footer-bottom { border-color: rgba(255,255,255,.12); }
.dark-footer .footer-brand b,
.dark-footer .footer-column h3 { color: white; }
.dark-footer a:hover { color: #b7e4ff; }

@media (max-width: 1080px) {
  .topbar { gap: 16px; padding-inline: 24px; }
  .site-nav { gap: 16px; font-size: 14px; }
  .contact-page { grid-template-columns: minmax(0,.9fr) minmax(430px,1.1fr); gap: 40px; }
  .product-callout-top { right: -12px; }
  .product-callout-bottom { left: -12px; }
}

@media (max-width: 900px) {
  .topbar { flex-wrap: nowrap; }
  .menu-button { display: grid; margin-left: auto; place-items: center; }
  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 20px;
    left: 20px;
    display: none;
    width: auto;
    max-height: calc(100vh - 100px);
    padding: 12px;
    overflow: auto;
    color: var(--ink);
    background: rgba(255,255,255,.98);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
  }
  .site-nav.open { display: grid; }
  .site-nav a { padding: 12px 14px; border-radius: 12px; }
  .site-nav a.active { background: var(--bg); }
  .site-nav a.active::after { display: none; }
  .home-product-shot { min-height: 600px; }
  .page-link-grid,
  .ai-principles { grid-template-columns: 1fr; }
  .intro-video-section { grid-template-columns: 1fr; }
  .intro-video-copy { max-width: 680px; }
  .page-link-card { min-height: 230px; }
  .split-story,
  .contact-page { grid-template-columns: 1fr; }
  .contact-page { padding-top: 72px; }
  .contact-intro { max-width: 680px; }
  .contact-form-card { width: 100%; max-width: 680px; }
}

@media (max-width: 680px) {
  .brand { font-size: 22px; }
  .brand-icon { width: 38px; height: 38px; }
  .nav-cta { display: none; }
  .hero.home-hero { padding-top: 72px; }
  .home-product-shot { min-height: auto; padding: 28px 22px 140px; }
  .product-shot-label { top: 16px; left: 16px; }
  .intro-video-section { padding-top: 36px; padding-bottom: 36px; }
  .intro-video-shell { border-radius: 22px; }
  .intro-video-poster > span { top: 14px; left: 14px; min-height: 42px; padding-inline: 15px; font-size: 13px; }
  .intro-video-meta { align-items: flex-start; flex-direction: column; gap: 3px; }
  .product-callout { right: 18px; left: 18px; width: auto; }
  .product-callout-top { top: auto; bottom: 76px; }
  .product-callout-bottom { bottom: 16px; }
  .home-contact-band,
  .next-page { align-items: flex-start; flex-direction: column; margin-inline: 20px; }
  .hardware-steps,
  .boundary-grid { grid-template-columns: 1fr; }
  .contact-page { padding: 64px 20px 80px; }
  .contact-intro { padding-top: 0; }
  .contact-reasons > div { padding-inline: 18px; font-size: 15px; }
  .contact-form-card { padding: 24px 18px; border-radius: 24px; }
  .field input,
  .field select { height: 56px; }
}

/* Home hero: keep the title visual focused on one real app sample. */
.home-app-photo {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 18px;
  min-height: 670px;
  margin: 0;
  padding: 58px 54px 34px;
}

.home-app-photo > img {
  width: min(350px, 100%);
  max-height: 550px;
  object-fit: contain;
}

.home-app-photo figcaption {
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 11px;
  max-width: 350px;
  padding: 12px 15px;
  color: var(--purple-dark);
  background: rgba(255,255,255,.96);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 14px 30px rgba(76,68,204,.12);
}

.home-app-photo figcaption i { color: var(--teal); font-size: 20px; }
.home-app-photo figcaption span { display: grid; gap: 2px; }
.home-app-photo figcaption small { color: var(--muted); font-size: 12px; }
.reserve-trigger { gap: 9px; }

/* Reservation modal */
.reserve-dialog {
  width: min(620px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  overflow: auto;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 30px;
  box-shadow: 0 34px 100px rgba(29,27,79,.32);
}

.reserve-dialog::backdrop {
  background: rgba(27,29,55,.58);
  backdrop-filter: blur(7px);
}

.reserve-dialog-card {
  position: relative;
  padding: clamp(26px, 5vw, 44px);
  background:
    radial-gradient(circle at 100% 0, rgba(0,212,170,.16), transparent 18rem),
    white;
}

.reserve-dialog h2 { margin-bottom: 12px; font-size: clamp(38px, 7vw, 58px); }
.reserve-intro { margin-bottom: 24px; color: var(--muted); font-size: 16px; line-height: 1.55; }
.reserve-dialog form { display: grid; gap: 17px; }
.reserve-dialog .field textarea { min-height: 108px; }
.reserve-dialog .field label span { color: var(--muted); font-weight: 700; }

.reserve-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--purple-dark);
  background: white;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
}

@media (max-width: 980px) {
  .phone-stage { gap: 24px; padding-top: 28px; }
  .interaction-key { position: relative; top: auto; left: auto; align-self: center; }
  .feature-explanation { max-height: none; }
}

@media (max-width: 680px) {
  .home-app-photo { min-height: auto; padding: 34px 24px; }
  .home-app-photo > img { max-height: 500px; }
  .reserve-dialog-card { padding-top: 54px; }
}
