:root {
  --primary-color: #3b82f6;
  --secondary-color: #8b5cf6;
  --background-color: #111827;
  --surface-color: #1f2937;
  --text-primary: #f9fafb;
  --text-secondary: #d1d5db;
  --accent-color: #6d28d9;
  --color-accent: #6d28d9;
  --spacing: 12px;
  --radius: 10px;
  --layout-max-width: 1080px;
  --layout-inline-padding: clamp(1.5rem, 4vw, 3rem);
  --btn-gradient-border: conic-gradient(from 0deg, #60a5fa, #a855f7, #ec4899, #60a5fa);
}

html,
body {
  background: var(--background-color);
  color: var(--text-primary);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

.gradient-button {
  background-image: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.gradient-button:hover {
  background-image: linear-gradient(to right, var(--secondary-color), var(--primary-color));
}

[data-lang] {
  display: none;
}

html[lang="ca"] [data-lang="ca"],
html[lang="en"] [data-lang="en"],
html[lang="es"] [data-lang="es"],
html[lang="it"] [data-lang="it"] {
  display: revert;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--spacing);
}

.layout-container {
  width: min(100%, var(--layout-max-width));
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--layout-inline-padding);
  padding-right: var(--layout-inline-padding);
}

.site-header,
.site-footer {
  padding: calc(var(--spacing) * 1.5) 0;
}

.logo {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 600;
}

.nav a {
  margin-left: var(--spacing);
  color: inherit;
  text-decoration: none;
}

.bg-card {
  background-color: #1E1E1E;
}

.gradient-border {
  border: 2px solid;
  border-image-slice: 1;
}

.border-purple-blue {
  border-image-source: linear-gradient(to bottom right, #8A2BE2, #4A90E2);
}

.border-green-yellow {
  border-image-source: linear-gradient(to bottom right, #34D399, #FBBF24);
}

.border-red-orange {
  border-image-source: linear-gradient(to bottom right, #EF4444, #F97316);
}

.border-cyan-teal {
  border-image-source: linear-gradient(to bottom right, #22D3EE, #14B8A6);
}

/* Rounded gradient border using mask (works with border radius) */
.gradient-ring {
  position: relative;
  border-radius: 1.25rem;
}

.gradient-ring::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: inherit;
  background: var(--ring-gradient, linear-gradient(135deg, #60a5fa, #ec4899));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.ring-purple-blue {
  --ring-gradient: linear-gradient(135deg, #8A2BE2, #4A90E2);
}

.ring-green-yellow {
  --ring-gradient: linear-gradient(135deg, #34D399, #FBBF24);
}

.ring-red-orange {
  --ring-gradient: linear-gradient(135deg, #EF4444, #F97316);
}

.ring-cyan-teal {
  --ring-gradient: linear-gradient(135deg, #22D3EE, #14B8A6);
}

/* Alternative rounded gradient border using background-clip (very robust) */
.rounded-gradient-border {
  position: relative;
  border: 2px solid transparent;
  border-radius: 1.25rem;
  /* 20px approx */
  background: linear-gradient(var(--surface-color), var(--surface-color)) padding-box,
    var(--ring-gradient, linear-gradient(135deg, #60a5fa, #ec4899)) border-box;
}

/* Reusable text gradient (blue -> pink) */
.text-gradient {
  /* Multi-stop to ensure both ends of the gradient are visible even on short widths */
  background-image: linear-gradient(90deg, #60a5fa 0%, #60a5fa 12%, #a855f7 50%, #ec4899 88%, #ec4899 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Heartbeat animation for ECG icon */
.heartbeat {
  animation: heartbeat 1.25s ease-in-out infinite;
  transform-origin: center;
}

@keyframes heartbeat {

  0%,
  100% {
    transform: scale(1);
  }

  20% {
    transform: scale(1.1);
  }

  40% {
    transform: scale(1);
  }

  60% {
    transform: scale(1.05);
  }

  80% {
    transform: scale(1);
  }
}

/* Flip card for metric tiles (click to flip) */
.flip-card {
  perspective: 1000px;
  cursor: pointer;
  /* Increase fixed height so cards with two-line titles keep equal inner padding */
  min-height: 18rem !important;
  /* ~288px */
}

.flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform .6s;
}

.flip-card.flipped .flip-inner {
  transform: rotateY(180deg);
}

.flip-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: inherit;
}

.flip-back {
  transform: rotateY(180deg);
}

@media (min-width: 768px) {

  /* Slightly taller on medium+ to balance longer headings */
  .flip-card {
    min-height: 20rem !important;
    /* ~320px */
  }
}

/* Unified section title sizes (Inter) */
.section-title {
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  font-weight: 800;
  font-size: clamp(1.875rem, 3.2vw, 2.5rem);
  /* ~30px → 40px */
  line-height: 1.2;
}

.section-subtitle {
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  font-weight: 700;
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  /* ~20px → 28px */
  line-height: 1.25;
}

.material-symbols-outlined {

  /* Respeta el tamaño */
  font-variation-settings:
    'FILL' 0,
    'wght' 400,
    'GRAD' 0,
    'opsz' 20;
  /* tamaño óptico fijo */
}

/* Menu user icon*/
.icon-xs {
  font-size: 15px !important;
  line-height: 1;
  display: inline-block;
}

.icon-s {
  font-size: 2em !important;
  line-height: 1;
  display: inline-block;
}

.icon-m {
  font-size: 3em !important;
  line-height: 1;
  display: inline-block;
}

.icon-l {
  font-size: 4em !important;
  line-height: 1;
  display: inline-block;
}


/* Smaller language icon in header; hidden on mobile/tablet via 'hidden lg:inline' */
.material-symbols-outlined.lang-icon {
  font-size: 16px !important;
  line-height: 1;
}

.material-symbols-outlined.lang-caret {
  font-size: 16px !important;
  line-height: 1;
}

/* Button/element border matching site gradient (blue -> pink) */
.border-blue-pink {
  border-image-source: linear-gradient(to right, #60a5fa, #ec4899);
}

/* Thinner border helper when using gradient-border */
.border-thin {
  border-width: 1px;
}

/* Larger outlined icon override (double size) */
.icon-xxl.material-symbols-outlined {
  font-size: 6em !important;
}

/* Even larger outlined icon */
.icon-xxxl.material-symbols-outlined {
  font-size: 12em !important;
}

/* 2x bigger again for hero icon */
.icon-xxxxl.material-symbols-outlined {
  font-size: 24em !important;
}

/* Responsive hero icon for mobile-first sizing */
.material-symbols-outlined.icon-hero {
  /* scale with viewport width but keep reasonable bounds; +30% for mobile */
  font-size: clamp(4.6rem, 23vw, 10rem) !important;
  line-height: 1;
}

/* helper to ensure slow spin when Tailwind isn't configured */
.spin-slow {
  animation: bp-spin 6s linear infinite;
}

/* Animated gradient outline button (serpentine border) */
.btn-outline-gradient {
  position: relative;
  display: inline-block;
  color: #fff;
  background: var(--surface-color);
  border-radius: 0.75rem;
  padding: 0.75rem 1.25rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn-outline-gradient:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.btn-outline-gradient:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(96, 165, 250, .25);
}

.btn-outline-gradient::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  /* Double-thick border via padding (4px) */
  padding: 4px;
  background: conic-gradient(from 0deg, #60a5fa, #ec4899, #60a5fa);
  /* Mask to keep only the ring area visible */
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  transform-origin: 50% 50%;
  animation: bp-spin 6s linear infinite;
}

@keyframes bp-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Animated gradient border wrapper for buttons */
.ring-animated {
  display: inline-block;
  padding: 8px;
  /* thicker ring */
  border-radius: 0.75rem;
  background: conic-gradient(from 0deg, #60a5fa, #ec4899, #60a5fa);
  animation: bp-spin 6s linear infinite;
}

.ring-animated .btn-core {
  display: inline-block;
  border-radius: 0.65rem;
  background: var(--surface-color);
  color: #fff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.btn-core {
  background: var(--surface-color);
  color: #fff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* Pricing card: soft gradient background */
.pricing-card {
  position: relative;
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(96, 165, 250, .08), transparent 60%),
    radial-gradient(120% 120% at 100% 100%, rgba(236, 72, 153, .08), transparent 60%),
    var(--background-color);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  height: 100%;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.pricing-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, .35);
  border-color: rgba(255, 255, 255, 0.14);
}

.ring-animated .btn-core:hover {
  transform: translateY(-1px);
}

/* Stroke animation around button edges (hover/focus) */
.btn-stroke-anim {
  position: relative;
  overflow: hidden;
}

.btn-stroke-anim::before,
.btn-stroke-anim::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  /* Conic gradient stroke that can rotate */
  background: conic-gradient(from var(--rot, 0deg), #60a5fa, #ec4899, #60a5fa);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 2px;
  /* stroke thickness */
  transition: transform .5s ease;
  animation: btn-rot 2.2s linear infinite;
  animation-play-state: paused;
  /* only spin on hover/focus */
}

.btn-stroke-anim::before {
  transform: rotate(var(--rot, 0deg)) scale(var(--sx1, 0), var(--sy1, 0));
  transform-origin: top left;
}

.btn-stroke-anim::after {
  transform: rotate(var(--rot, 0deg)) scale(var(--sx2, 0), var(--sy2, 0));
  transform-origin: bottom right;
}

.btn-stroke-anim:hover::before,
.btn-stroke-anim:focus::before {
  --sx1: 1;
  --sy1: 1;
  animation-play-state: running;
}

.btn-stroke-anim:hover::after,
.btn-stroke-anim:focus::after {
  --sx2: 1;
  --sy2: 1;
  animation-play-state: running;
}

@keyframes btn-rot {
  to {
    --rot: 360deg;
  }
}

/* Contact CTA business section visuals */
.cta-business-gradient {
  background: linear-gradient(180deg, #121112 0%, #070506 55%, #202021 100%);
}

.cta-business-top-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% -10%, rgba(99, 102, 241, 0.16), transparent 55%),
    radial-gradient(circle at 80% -20%, rgba(129, 140, 248, 0.14), transparent 58%);
  opacity: 0.7;
}

.cta-business-bottom-glow {
  position: absolute;
  left: 50%;
  bottom: -55%;
  width: 150%;
  height: 90%;
  transform: translateX(-50%);
  pointer-events: none;
  background: radial-gradient(circle at center top, rgba(236, 72, 153, 0.36), rgba(168, 85, 247, 0.28) 18%, rgba(59, 130, 246, 0.15) 28%, rgba(8, 14, 32, 0) 52%);
  filter: blur(30px);
  animation: cta-business-glow 7s ease-in-out infinite;
}

@keyframes cta-business-glow {

  0%,
  100% {
    opacity: 0.35;
    transform: translate(-50%, -4%) scaleX(1);
  }

  30% {
    opacity: 0.6;
    transform: translate(-50%, -10%) scaleX(1.08);
  }
}

/* Placeholder styling */
input::placeholder,
textarea::placeholder {
  font-style: italic;
  font-weight: 300;
  color: rgba(230, 230, 250, 0.4);
  /* lavender at 0.4 */
}

input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder {
  font-style: italic;
  font-weight: 300;
  color: rgba(230, 230, 250, 0.4);
}

input::-moz-placeholder,
textarea::-moz-placeholder {
  font-style: italic;
  font-weight: 300;
  color: rgba(230, 230, 250, 0.4);
}

input:-ms-input-placeholder,
textarea:-ms-input-placeholder {
  font-style: italic;
  font-weight: 300;
  color: rgba(230, 230, 250, 0.4);
}

input::-ms-input-placeholder,
textarea::-ms-input-placeholder {
  font-style: italic;
  font-weight: 300;
  color: rgba(230, 230, 250, 0.4);
}

/* Style select when placeholder (empty value) is selected and field is required */
select:invalid {
  font-style: italic;
  font-weight: 300;
  color: rgba(230, 230, 250, 0.6);
}


/* Styles for checkin page */

.checkin-complete-shell {
  min-height: 100vh;
  background: radial-gradient(circle at 50% -10%, rgba(91, 33, 182, 0.55), transparent 68%),
    radial-gradient(circle at 50% 120%, rgba(14, 116, 144, 0.42), transparent 72%),
    linear-gradient(185deg, rgba(4, 7, 21, 0.98), rgba(22, 33, 55, 0.92));
  background-attachment: fixed;
}

.checkin-complete-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
}

.checkin-device {
  position: relative;
  width: min(420px, 100%);
  border-radius: 2.2rem;
  padding: 2.8rem 2.2rem 2.6rem;
  background: linear-gradient(180deg, rgba(129, 140, 248, 0.42), rgba(168, 85, 247, 0.6) 45%, rgba(236, 72, 153, 0.5));
  box-shadow: 0 45px 95px rgba(17, 24, 39, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

.checkin-device::before {
  content: "";
  position: absolute;
  inset: -20% -25% auto -25%;
  height: 60%;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.32), transparent 65%);
  opacity: 0.45;
  pointer-events: none;
  filter: blur(16px);
}

.checkin-device::after {
  content: "";
  position: absolute;
  inset: -40% -30% auto -30%;
  height: 80%;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.16), transparent 70%);
  opacity: 0.4;
  animation: auroraGlow 12s ease-in-out infinite;
  pointer-events: none;
}

.checkin-device__status {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-left {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.status-dot {
  display: inline-flex;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #34d399, #22d3ee);
  box-shadow: 0 0 6px rgba(45, 212, 191, 0.65);
}

.status-pulse {
  animation: statusPulse 1.8s ease-in-out infinite;
}

.status-text {
  font-size: 0.8rem;
  font-weight: 400;
  opacity: 0.9;
}

.status-icon {
  font-size: 1rem;
  opacity: 0.85;
}

.status-menu {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: rgba(15, 23, 42, 0.25);
  color: rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  width: 2.2rem;
  height: 2.2rem;
  cursor: default;
  opacity: 0.55;
}

.checkin-device__body {
  position: relative;
  z-index: 1;
  margin-top: 2.6rem;
  text-align: center;
}

.device-section+.device-section {
  margin-top: 0.45rem;
}

.device-divider {
  height: 1px;
  margin: 2.2rem auto 2rem;
  width: 70%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}

.status-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0;
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
}

.status-inline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0;
  text-transform: uppercase;
  font-size: 0.5rem;
  letter-spacing: 0.1em;
}

.status-inline .status-dot {
  width: 0.5rem;
  height: 0.5rem;
}

.device-brand {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.85;
}

.device-heading {
  display: block;
  font-size: clamp(2.1rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-top: 1.1rem;
  margin-bottom: 0.5rem;
  line-height: 1.1;
}

.device-heading__name {
  display: block;
  font-weight: inherit;
  line-height: 1.05;
}

.device-subtitle {
  font-size: 1.5rem;
  opacity: 0.9;
  margin-bottom: 0;
  line-height: 1.4;
}

.device-bpm {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.6rem;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.25);
  font-weight: 700;
  font-size: 1.75rem;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.25);
  transition: transform .28s ease;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(140deg, rgba(10, 23, 42, 0.55), rgba(20, 50, 78, 0.35));
}

.device-bpm .material-symbols-outlined {
  font-size: 1.8rem;
}

.bpm-value {
  font-size: clamp(2.5rem, 6vw, 3.6rem);
  font-weight: 800;
  line-height: 1;
}

.bpm-unit {
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0.65;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.bpm-pulse {
  animation: bpmPulse 0.45s ease-out;
}

.live-note {
  margin-bottom: 0.4rem;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.82;
}

.stats-link {
  margin-top: 0.3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 1.4rem;
  border-radius: 9999px;
  color: rgba(255, 255, 255, 0.94);
  font-weight: 600;
  font-size: 1rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.55), rgba(236, 72, 153, 0.58));
  box-shadow: 0 22px 45px rgba(15, 23, 42, 0.35);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform .2s ease, box-shadow .2s ease;
  border: 1px solid transparent;
  background-clip: padding-box;
}

.stats-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 26px 55px rgba(15, 23, 42, 0.4);
}

.stats-link::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(130deg, rgba(255, 255, 255, 0.55), rgba(244, 114, 182, 0.65), rgba(96, 165, 250, 0.6), rgba(255, 255, 255, 0.55));
  background-size: 280% 280%;
  animation: statsBorderSpin 6s linear infinite;
  opacity: 0.9;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.stats-link:hover::after {
  opacity: 1;
}

.stats-link .material-symbols-outlined {
  font-size: 1rem;
}

.stats-note {
  margin-top: 0.75rem;
  text-align: center;
  font-size: 0.6rem;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.78);
}

.sensor-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.5rem;
  padding: 1.35rem 1.3rem;
  border-radius: 1.5rem;
  background: rgba(15, 23, 42, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 24px 55px rgba(15, 23, 42, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.sensor-icon {
  font-size: 1.8rem;
  opacity: 0.85;
  animation: sensorGlow 2.8s ease-in-out infinite;
}

.sensor-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.sensor-caption {
  font-size: 0.97rem;
  opacity: 0.82;
}

.sensor-status-muted {
  font-weight: 400;
}

/* iPads */

@media (max-width: 768px) {
  .checkin-complete-shell {
    background-attachment: scroll;
    background-size: cover;
  }

  .checkin-complete-wrapper {
    padding: clamp(1.2rem, 3vw, 2.1rem) clamp(0.9rem, 3vw, 1.4rem);
  }

  .checkin-device {
    padding: clamp(1.45rem, 3.2vw, 1.85rem) clamp(1rem, 3.2vw, 1.35rem) clamp(1.45rem, 4vw, 1.8rem);
    min-height: calc(100dvh - clamp(2.2rem, 5vw, 3.2rem));
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: clamp(1.1rem, 3.2vh, 1.6rem);
  }

  .checkin-device__body {
    margin-top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(0.9rem, 2.4vh, 1.4rem);
  }

  .device-brand {
    font-size: 0.68rem;
    letter-spacing: 0.14em;
  }

  .device-heading {
    font-size: clamp(1.52rem, 6.4vw, 1.96rem);
    margin-top: 0.45rem;
    margin-bottom: 0.3rem;
  }

  .device-subtitle {
    font-size: clamp(1.14rem, 5.4vw, 1.26rem);
    line-height: 1.35;
  }

  .device-section+.device-section {
    margin-top: clamp(0.3rem, 0.9vh, 0.45rem);
  }

  .device-divider {
    margin: clamp(0.88rem, 2.4vh, 1.28rem) auto;
    width: 78%;
  }

  .device-bpm {
    padding: 0.6rem 1rem;
    gap: 0.4rem;
  }

  .device-bpm .material-symbols-outlined {
    font-size: 1.28rem;
  }

  .bpm-value {
    font-size: clamp(1.76rem, 9.6vw, 2.44rem);
  }

  .bpm-unit {
    font-size: 0.66rem;
    letter-spacing: 0.13em;
  }

  .status-inline {
    font-size: 0.66rem;
    letter-spacing: 0.088em;
    gap: 0.4rem;
  }

  .sensor-card {
    gap: 0.6rem;
    padding: 0.8rem 0.96rem;
    margin-top: 0.5;
  }

  .sensor-icon {
    font-size: 1.2rem;
  }

  .sensor-title {
    font-size: 0.84rem;
  }

  .live-note {
    margin-bottom: 0.3rem;
    font-size: clamp(1.1rem, 3.6vw, 1.3rem);
    font-weight: 700;
    letter-spacing: 0.12em;
  }

  .stats-link {
    align-self: center;
    margin-top: 0.35rem;
    padding: 0.6rem 1.1rem;
    gap: 0.38rem;
    font-size: clamp(0.7rem, 2.2vw, 0.85rem);
  }

  .stats-link .material-symbols-outlined {
    font-size: 0.85rem;
  }

  .stats-note {
    margin-top: 0.44rem;
    font-size: 0.5rem;
    letter-spacing: 0.08em;
  }
}

/* Mobile phones */
@media (max-width: 480px) {
  .checkin-complete-wrapper {
    padding: clamp(0, 2vw, 1.4rem) clamp(0.72rem, 4vw, 1rem);
  }

  .checkin-device {
    padding: clamp(1.2rem, 4.8vw, 1.5rem) clamp(0.8rem, 4vw, 1.05rem) clamp(1.28rem, 4.8vw, 1.5rem);
    min-height: 100vh;
    max-width: 95vw;
    gap: clamp(0.88rem, 2.8vh, 1.3rem);
  }

  .checkin-device__body {
    gap: clamp(0.7rem, 2vh, 1.1rem);
  }

  .device-brand {
    font-size: 0.7rem;
    letter-spacing: 0.14em;
  }

  .device-heading {
    font-size: clamp(1.4rem, 7.2vw, 1.76rem);
    margin-top: 0.5rem;
  }

  .device-subtitle {
    font-size: clamp(0.9rem, 4.8vw, 1.08rem);
    line-height: 1.32;
  }

  .device-section+.device-section {
    margin-top: clamp(0.24rem, 0.7vh, 0.35rem);
  }

  .device-divider {
    margin: clamp(0.9rem, 3vh, 1.04rem) auto;
  }

  .status-inline {
    font-size: 0.5rem;
    letter-spacing: 0.07em;
    gap: 0.4rem;
  }

  .status-text {
    font-size: 0.6rem;
    font-weight: 400;
    opacity: 0.9;
  }

  .device-bpm {
    padding: 0.56rem 0.84rem;
  }

  .device-bpm .material-symbols-outlined {
    font-size: 1.02rem;
  }

  .bpm-value {
    font-size: clamp(1.4rem, 10vw, 2rem);
  }

  .bpm-unit {
    font-size: 0.53rem;
    letter-spacing: 0.1em;
  }

  .sensor-card {
    padding: 0.72rem 0.84rem;
    gap: 0.52rem;
    margin-top: 0.6rem;
  }

  .sensor-icon {
    font-size: 1.12rem;
  }

  .sensor-title {
    font-size: 1rem;
  }

  .live-note {
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
    font-weight: 700;
  }

  .stats-link {
    align-self: center;
    margin-top: 0.25rem;
    padding: 0.75rem 1.5rem;
    font-size: clamp(0.9rem, 2.4vw, 1.1rem);
    gap: 0.4rem;
  }

  /* Stats icon */
  .stats-link .material-symbols-outlined {
    font-size: 1rem;
  }

  .stats-note {
    font-size: 0.46rem;
    margin-top: 0.6rem;
  }
}
