/* BP Log: Blood Pressure Diary — Calm Clinical Personal Health Diary */
:root {
  --bg-top: #f6f9ff;
  --bg-bottom: #ffffff;
  --surface: #ffffff;
  --surface-tint: #f8fbff;
  --surface-card: rgba(255, 255, 255, 0.92);

  --ink: #0f1e3a;
  --ink-soft: #42546e;
  --muted: #64748b;

  --cobalt: #2558f5;
  --cobalt-hover: #1b46d4;
  --cobalt-deep: #183eb8;
  --cobalt-soft: #eef3ff;
  --cobalt-border: rgba(37, 88, 245, 0.16);

  --coral: #ef4e5b;
  --coral-soft: #fff1f2;
  --emerald: #10b981;
  --emerald-deep: #047857;
  --emerald-soft: #ecfdf5;
  --sky: #0ea5e9;
  --sky-soft: #f0f9ff;

  --border: #e2e8f0;
  --border-soft: rgba(15, 30, 58, 0.08);
  --shadow-sm: 0 2px 8px rgba(15, 30, 58, 0.04), 0 1px 2px rgba(15, 30, 58, 0.03);
  --shadow-md: 0 14px 36px rgba(15, 30, 58, 0.07), 0 2px 8px rgba(15, 30, 58, 0.04);
  --shadow-phone: 0 28px 64px rgba(15, 30, 58, 0.14), 0 8px 20px rgba(37, 88, 245, 0.08);

  --radius: 1.25rem;
  --radius-lg: 1.625rem;
  --max: 1120px;

  --font-display: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  line-height: 1.6;
  background: linear-gradient(180deg, var(--bg-top) 0%, #fbfdff 42%, var(--bg-bottom) 100%);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
}

.page-glow {
  pointer-events: none;
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 56% 42% at 15% 6%, rgba(37, 88, 245, 0.07), transparent 65%),
    radial-gradient(ellipse 46% 36% at 88% 14%, rgba(16, 185, 129, 0.06), transparent 60%),
    radial-gradient(ellipse 40% 30% at 72% 86%, rgba(239, 78, 91, 0.045), transparent 60%);
  z-index: 0;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

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

a {
  color: var(--cobalt);
  text-decoration: none;
}

a:hover {
  color: var(--cobalt-hover);
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 249, 255, 0.84);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(15, 30, 58, 0.07);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.78rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.68rem;
  color: var(--ink);
  min-width: 0;
  flex-shrink: 0;
}

.brand:hover {
  color: var(--ink);
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(15, 30, 58, 0.06);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
}

.brand-sub {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.25;
  white-space: nowrap;
}

.site-nav {
  display: none;
  align-items: center;
  gap: 1.75rem;
}

.site-nav a {
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 600;
  transition: color 0.18s ease;
}

.site-nav a:hover {
  color: var(--cobalt);
}

@media (min-width: 900px) {
  .site-nav {
    display: flex;
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.lang-switch select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--surface)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%2342546E' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M1.5 1.5L6 6l4.5-4.5'/%3E%3C/svg%3E")
    no-repeat right 0.75rem center;
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.45rem 2rem 0.45rem 0.88rem;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  max-width: 9.25rem;
  box-shadow: var(--shadow-sm);
  line-height: 1.3;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.lang-switch select:hover,
.lang-switch select:focus-visible {
  border-color: var(--cobalt);
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 88, 245, 0.14);
}

.lang-switch select option {
  background: #ffffff;
  color: var(--ink);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.btn-header {
  display: none;
  padding: 0.5rem 1.05rem;
  font-size: 0.83rem;
  background: var(--cobalt);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 88, 245, 0.22);
}

.btn-header:hover {
  color: #ffffff;
  background: var(--cobalt-hover);
  transform: translateY(-1px);
}

@media (min-width: 640px) {
  .btn-header {
    display: inline-flex;
  }
}

.btn-primary {
  padding: 0.92rem 1.65rem;
  font-size: 0.98rem;
  background: var(--cobalt);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(37, 88, 245, 0.28), 0 2px 6px rgba(37, 88, 245, 0.16);
}

.btn-primary:hover {
  color: #ffffff;
  background: var(--cobalt-hover);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(37, 88, 245, 0.34), 0 4px 10px rgba(37, 88, 245, 0.2);
}

.btn-primary:focus-visible,
.btn-header:focus-visible,
.btn-cta-white:focus-visible {
  outline: 3px solid rgba(37, 88, 245, 0.45);
  outline-offset: 3px;
}

.btn-play-icon {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}

/* Hero Section */
.hero {
  padding: 2.5rem 0 3.75rem;
}

.hero-grid {
  display: grid;
  gap: 2.75rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero {
    padding: 3.5rem 0 4.5rem;
  }
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
  }
}

.pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.15rem;
  padding: 0.38rem 0.9rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--cobalt-border);
  color: var(--cobalt-deep);
  font-family: var(--font-display);
  font-size: 0.79rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: var(--shadow-sm);
}

.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
  flex-shrink: 0;
}

.hero h1 {
  margin: 0 0 1.05rem;
  font-family: var(--font-display);
  font-size: clamp(2.05rem, 4.4vw, 3.15rem);
  line-height: 1.13;
  letter-spacing: -0.032em;
  font-weight: 800;
  color: var(--ink);
  text-wrap: balance;
  max-width: 17ch;
}

.hero-sub {
  margin: 0 0 1.65rem;
  color: var(--ink-soft);
  font-size: 1.06rem;
  line-height: 1.65;
  max-width: 34rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.25rem;
}

.hero-note {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
}

.hero-trust {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 1.15rem 0 0;
  border-top: 1px solid var(--border-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}

.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.hero-trust svg {
  width: 17px;
  height: 17px;
  color: var(--cobalt);
  flex-shrink: 0;
}

/* Hero Visual: Titanium-White Phone Mockup */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.5rem 0;
}

.phone-halo {
  position: absolute;
  width: min(92%, 380px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 88, 245, 0.14) 0%, rgba(16, 185, 129, 0.08) 45%, transparent 72%);
  filter: blur(18px);
  z-index: 0;
  pointer-events: none;
}

.phone-frame {
  position: relative;
  z-index: 1;
  width: min(100%, 342px);
  background: linear-gradient(160deg, #ffffff 0%, #f1f5f9 100%);
  border-radius: 2.5rem;
  padding: 11px;
  border: 1px solid rgba(15, 30, 58, 0.1);
  box-shadow:
    var(--shadow-phone),
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 0 0 1px rgba(255, 255, 255, 0.75);
}

.phone-notch {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 88px;
  height: 20px;
  background: #0f1e3a;
  border-radius: 999px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 7px;
  gap: 8px;
}

.notch-speaker {
  width: 34px;
  height: 3.5px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.22);
}

.notch-cam {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #1e3a8a;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.25);
}

.phone-screen {
  background: linear-gradient(180deg, #f4f7fd 0%, #f9fbff 100%);
  border-radius: 1.95rem;
  padding: 2.65rem 0.95rem 1rem;
  border: 1px solid rgba(15, 30, 58, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.2rem 0.15rem;
}

.app-topbar-left {
  display: flex;
  align-items: center;
  gap: 0.42rem;
}

.app-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cobalt);
}

@media (prefers-reduced-motion: no-preference) {
  .app-live-dot {
    animation: pulse-ring 2.4s ease-in-out infinite;
  }
}

@keyframes pulse-ring {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 88, 245, 0.35); }
  50% { box-shadow: 0 0 0 5px rgba(37, 88, 245, 0); }
}

.app-topbar-title {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--ink);
}

.app-topbar-tag {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--cobalt);
  background: var(--cobalt-soft);
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
}

.ui-card {
  background: #ffffff;
  border-radius: 1.05rem;
  padding: 0.78rem 0.85rem;
  border: 1px solid rgba(15, 30, 58, 0.06);
  box-shadow: 0 4px 14px rgba(15, 30, 58, 0.035);
}

.ui-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
}

.ui-label {
  font-size: 0.73rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.ui-label-sm {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--muted);
}

.ui-ico-coral {
  width: 13px;
  height: 13px;
  color: var(--coral);
}

.ui-ico-sky {
  width: 13px;
  height: 13px;
  color: var(--sky);
}

.badge-normal {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--emerald-soft);
  color: var(--emerald-deep);
  font-size: 0.67rem;
  font-weight: 700;
  padding: 0.16rem 0.5rem;
  border-radius: 999px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
}

.bp-reading-row {
  display: flex;
  align-items: baseline;
  gap: 0.22rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
}

.bp-num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.bp-slash {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: #94a3b8;
}

.bp-unit {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  margin-left: 0.15rem;
}

.bp-meta-row {
  margin-top: 0.28rem;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--muted);
}

.bp-scale {
  margin-top: 0.55rem;
  display: grid;
  grid-template-columns: 1fr 1.6fr 1fr 1fr;
  gap: 4px;
  height: 6px;
}

.bp-scale .seg {
  border-radius: 99px;
  position: relative;
}

.seg-low { background: #bae6fd; }
.seg-norm { background: #10b981; }
.seg-elev { background: #fde68a; }
.seg-high { background: #fecaca; }

.seg-marker {
  position: absolute;
  top: 50%;
  left: 62%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffffff;
  border: 2.5px solid var(--emerald-deep);
  box-shadow: 0 1px 4px rgba(15, 30, 58, 0.22);
}

.ui-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.sm-reading {
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.35rem;
}

.sm-num {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.sm-unit {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--muted);
}

.pulse-wave-svg {
  width: 100%;
  height: 30px;
  display: block;
}

@media (prefers-reduced-motion: no-preference) {
  .pulse-line {
    stroke-dasharray: 220;
    stroke-dashoffset: 0;
    animation: ecg-sweep 3.2s ease-in-out infinite;
  }
}

@keyframes ecg-sweep {
  0% { stroke-dashoffset: 220; opacity: 0.7; }
  45% { stroke-dashoffset: 0; opacity: 1; }
  85% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: -220; opacity: 0.7; }
}

.spo2-foot {
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
  padding-top: 0.15rem;
}

.spo2-pill {
  align-self: flex-start;
  font-size: 0.64rem;
  font-weight: 700;
  color: #0369a1;
  background: var(--sky-soft);
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
}

.spo2-bar {
  height: 6px;
  border-radius: 99px;
  background: #e0f2fe;
  overflow: hidden;
}

.spo2-bar span {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #38bdf8, #0ea5e9);
}

.trend-legend {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.leg-item {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.64rem;
  font-weight: 700;
  color: var(--muted);
}

.leg-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.leg-dot.sys { background: var(--cobalt); }
.leg-dot.dia { background: var(--emerald); }

.trend-svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Section Headers */
.section-head {
  margin-bottom: 2.15rem;
}

.section-head.center {
  text-align: center;
}

.section-kicker {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cobalt);
}

.section-head h2 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  letter-spacing: -0.025em;
  line-height: 1.2;
  font-weight: 800;
  color: var(--ink);
  text-wrap: balance;
}

.section-head p:not(.section-kicker) {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.02rem;
  max-width: 36rem;
}

.section-head.center p:not(.section-kicker) {
  margin-inline: auto;
}

/* Core Features Bento Showcase */
.experience {
  padding: 2rem 0 4rem;
}

.exp-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 820px) {
  .exp-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.35rem;
  }
}

.exp-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.45rem 1.4rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .exp-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: rgba(37, 88, 245, 0.24);
  }
}

.exp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem;
}

.exp-art {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: grid;
  place-items: center;
}

.exp-art svg {
  width: 26px;
  height: 26px;
}

.exp-art-coral {
  background: var(--coral-soft);
  color: var(--coral);
  border: 1px solid rgba(239, 78, 91, 0.16);
}

.exp-art-cobalt {
  background: var(--cobalt-soft);
  color: var(--cobalt);
  border: 1px solid rgba(37, 88, 245, 0.16);
}

.exp-art-emerald {
  background: var(--emerald-soft);
  color: var(--emerald-deep);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.exp-badge {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.exp-badge-coral {
  background: var(--coral-soft);
  color: #be123c;
}

.exp-badge-emerald {
  background: var(--emerald-soft);
  color: var(--emerald-deep);
}

.exp-badge-cobalt {
  background: var(--cobalt-soft);
  color: var(--cobalt-deep);
}

.exp-card h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.exp-card p {
  margin: 0 0 1.25rem;
  color: var(--ink-soft);
  font-size: 0.94rem;
  flex-grow: 1;
}

/* Bento Micro-Visualizations */
.bento-viz {
  margin-top: auto;
  border-radius: 0.95rem;
  background: var(--surface-tint);
  border: 1px solid rgba(15, 30, 58, 0.06);
  padding: 0.75rem 0.9rem;
}

.bento-viz-pulse {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.viz-stat {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
}

.viz-dot-coral {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 3px rgba(239, 78, 91, 0.18);
}

.viz-val {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.viz-val small {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--muted);
}

.viz-wave {
  width: 110px;
  height: 26px;
}

.bento-viz-bp {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.viz-chip {
  background: #ffffff;
  border: 1px solid rgba(15, 30, 58, 0.07);
  border-radius: 0.7rem;
  padding: 0.45rem 0.65rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem;
  font-variant-numeric: tabular-nums;
}

.viz-chip-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--emerald-deep);
}

.viz-chip-sky .viz-chip-label {
  color: #0369a1;
}

.viz-chip strong {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--ink);
}

.bento-viz-bars {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: end;
  gap: 6px;
  height: 44px;
  padding-top: 0.35rem;
}

.bento-viz-bars span {
  display: block;
  width: 100%;
  border-radius: 5px;
  background: #dbeafe;
}

.bento-viz-bars span.bar-active {
  background: var(--cobalt);
}

/* 3-Step Logging Flow */
.steps-section {
  padding: 1.5rem 0 4rem;
}

.soft-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.15rem;
  position: relative;
}

@media (min-width: 820px) {
  .soft-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.35rem;
  }
  .soft-steps::before {
    content: "";
    position: absolute;
    top: 2.35rem;
    left: 16%;
    right: 16%;
    height: 2px;
    background: linear-gradient(90deg, rgba(37, 88, 245, 0.16), rgba(37, 88, 245, 0.38), rgba(16, 185, 129, 0.3));
    z-index: 0;
  }
}

.soft-step {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.35rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--cobalt-soft);
  color: var(--cobalt);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
  border: 1px solid var(--cobalt-border);
}

.step-icon {
  color: var(--muted);
  display: inline-flex;
}

.step-icon svg {
  width: 21px;
  height: 21px;
}

.soft-step h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 800;
  color: var(--ink);
}

.soft-step p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.93rem;
}

/* Non-Medical Device & Privacy Card */
.notes-section {
  padding: 0 0 4rem;
}

.notes-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2rem 1.85rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.notes-head {
  margin-bottom: 1.15rem;
}

.notes-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--cobalt-soft);
  color: var(--cobalt-deep);
  border: 1px solid var(--cobalt-border);
  border-radius: 999px;
  padding: 0.28rem 0.78rem;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.notes-badge svg {
  width: 16px;
  height: 16px;
}

.notes-card h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.notes-list {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--ink-soft);
  display: grid;
  gap: 0.7rem;
}

.notes-list li {
  line-height: 1.65;
}

.notes-list a {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.notes-foot {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-soft);
}

.notes-foot a {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
}

/* High-Contrast Cobalt Final CTA */
.final-cta {
  padding: 0 0 4.25rem;
}

.final-inner {
  text-align: center;
  background:
    radial-gradient(circle at 20% 15%, rgba(255, 255, 255, 0.16), transparent 50%),
    linear-gradient(135deg, #1b43cc 0%, #2558f5 58%, #3468fb 100%);
  border-radius: var(--radius-lg);
  padding: 2.85rem 1.5rem;
  box-shadow: 0 22px 48px rgba(37, 88, 245, 0.26);
  color: #ffffff;
}

.final-icon-wrap {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(15, 30, 58, 0.18);
}

.final-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
}

.final-inner h2 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.2vw, 2.05rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #ffffff;
  text-wrap: balance;
}

.final-inner p {
  margin: 0 auto 1.55rem;
  color: #dbeafe;
  font-size: 1.02rem;
  max-width: 32rem;
}

.btn-cta-white {
  padding: 0.95rem 1.75rem;
  font-size: 1rem;
  background: #ffffff;
  color: var(--cobalt-deep);
  box-shadow: 0 10px 26px rgba(15, 30, 58, 0.2);
}

.btn-cta-white:hover {
  background: #f8faff;
  color: var(--cobalt-deep);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(15, 30, 58, 0.26);
}

/* Footer */
.site-footer {
  padding: 2.25rem 0 2.75rem;
  border-top: 1px solid var(--border);
  background: #f8fafd;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 0.45rem;
}

.footer-brand img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.site-footer p {
  margin: 0.2rem 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.35rem;
  align-items: center;
}

.footer-links a {
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--cobalt);
}

/* Privacy mirror page */
.privacy-main {
  padding: 2.5rem 0 3.5rem;
}

.privacy-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2rem 1.65rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  max-width: 44rem;
}

.privacy-banner {
  background: var(--cobalt-soft);
  border: 1px solid var(--cobalt-border);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  margin-bottom: 1.5rem;
  color: var(--ink-soft);
}

.privacy-banner a {
  font-weight: 700;
  display: inline-block;
  margin-top: 0.45rem;
  margin-right: 1rem;
}

.privacy-card h1 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--ink);
}

.privacy-meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.privacy-card h2 {
  margin: 1.5rem 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink);
}

.privacy-card p,
.privacy-card li {
  color: var(--ink-soft);
}

.privacy-back {
  display: inline-block;
  margin-top: 1.75rem;
  font-weight: 700;
}

/* Mobile Tightening (390px) */
@media (max-width: 480px) {
  .header-inner {
    padding: 0.68rem 0;
    gap: 0.5rem;
  }
  .brand img {
    width: 34px;
    height: 34px;
  }
  .brand-sub {
    font-size: 0.68rem;
  }
  .lang-switch select {
    max-width: 7.75rem;
    padding: 0.4rem 1.75rem 0.4rem 0.72rem;
    font-size: 0.78rem;
  }
  .hero {
    padding: 1.75rem 0 2.75rem;
  }
  .notes-card {
    padding: 1.45rem 1.2rem;
  }
  .final-inner {
    padding: 2.2rem 1.15rem;
  }
}
