:root {
  color-scheme: light;
  --blue: #1a73e8;
  --ink: #17212b;
  --muted: #5d6a78;
  --bg: #f7f9fc;
  --panel: #ffffff;
  --line: #dce6f2;
  --green: #20a889;
  --coral: #e65f55;
  --low: #3d8bff;
  --shadow: 0 24px 70px rgba(23, 33, 43, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(220, 230, 242, 0.86);
  background: rgba(247, 249, 252, 0.88);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

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

.nav-links {
  display: flex;
  justify-content: center;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a:hover {
  color: var(--blue);
}

.language-picker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.language-picker select {
  min-width: 132px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  padding: 9px 10px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(330px, 0.96fr);
  gap: clamp(36px, 7vw, 92px);
  align-items: center;
  min-height: calc(100svh - 64px);
  padding: clamp(48px, 8vw, 104px) clamp(20px, 6vw, 88px) 64px;
  overflow: hidden;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(38px, 6.4vw, 72px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-text {
  max-width: 660px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 800;
}

.primary-button {
  background: var(--blue);
  color: #ffffff;
  box-shadow: 0 14px 26px rgba(26, 115, 232, 0.26);
}

.secondary-button {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 660px;
  margin: 44px 0 0;
}

.hero-stats div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.hero-stats dt {
  font-weight: 900;
  font-size: 22px;
}

.hero-stats dd {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.phone-stage {
  position: relative;
  min-height: 600px;
}

.phone-shell {
  width: min(370px, 86vw);
  margin: 0 auto;
  padding: 12px;
  border-radius: 38px;
  background: #10151c;
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}

.phone-screen {
  min-height: 640px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 22% 14%, rgba(216, 231, 255, 0.9), transparent 31%),
    linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
  padding: 22px;
}

.app-topbar,
.zone-row,
.summary-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.app-topbar {
  font-weight: 900;
}

.status-dot {
  position: relative;
  color: var(--green);
  font-size: 13px;
}

.status-dot::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 999px;
  background: var(--green);
}

.heart-ring {
  display: grid;
  place-items: center;
  width: 236px;
  height: 236px;
  margin: 42px auto 24px;
  border-radius: 50%;
  background:
    radial-gradient(circle, #ffffff 0 58%, transparent 59%),
    conic-gradient(var(--green) 0 70%, #d8e7ff 70% 100%);
  box-shadow: inset 0 0 0 1px rgba(26, 115, 232, 0.1);
}

.heart-ring strong {
  font-size: 72px;
  line-height: 0.9;
}

.heart-ring span {
  color: var(--muted);
  font-weight: 800;
}

.pulse-mark {
  color: var(--coral) !important;
  font-size: 24px;
}

.zone-row {
  gap: 8px;
  padding: 10px;
  border-radius: 8px;
  background: #eef6f3;
  color: var(--muted);
  font-size: 13px;
}

.zone-row strong {
  color: var(--green);
}

.chart-card {
  height: 140px;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(#edf3fb 1px, transparent 1px) 0 0 / 100% 34px,
    #ffffff;
  overflow: hidden;
}

.chart-line {
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='320' height='140' viewBox='0 0 320 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 88 C24 82 34 38 58 48 C82 58 78 102 106 92 C132 84 132 32 162 42 C190 52 190 108 222 86 C252 64 246 46 274 56 C296 64 304 78 320 70' fill='none' stroke='%231A73E8' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") center / cover no-repeat;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}

.summary-grid div {
  min-width: 0;
  padding: 13px 10px;
  border-radius: 8px;
  background: #f0f5fb;
}

.summary-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.summary-grid strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
}

.floating-note {
  position: absolute;
  right: 4%;
  bottom: 76px;
  max-width: 230px;
  padding: 16px;
  border: 1px solid rgba(216, 231, 255, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 40px rgba(23, 33, 43, 0.12);
}

.floating-note strong,
.floating-note span {
  display: block;
}

.floating-note span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

.feature-band,
.privacy-band,
.download-band {
  padding: 82px clamp(20px, 6vw, 88px);
}

.section-heading {
  max-width: 720px;
}

h2 {
  margin: 0;
  font-size: clamp(28px, 4.2vw, 44px);
  line-height: 1.08;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.feature-grid article {
  min-height: 245px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #d8e7ff;
  color: var(--blue);
}

h3 {
  margin: 22px 0 10px;
  font-size: 19px;
}

.feature-grid p,
.privacy-band p,
.download-copy p {
  color: var(--muted);
  line-height: 1.6;
}

.privacy-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.76fr);
  gap: 40px;
  align-items: center;
  background: #10151c;
  color: #ffffff;
}

.privacy-band p {
  max-width: 780px;
  color: #bec8d4;
}

.privacy-band ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.privacy-band li {
  padding: 15px 16px;
  border: 1px solid rgba(216, 231, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.download-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 40px;
  align-items: center;
}

.download-copy {
  max-width: 720px;
}

.qr-panel {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

#downloadQr {
  width: 264px;
  height: 264px;
  image-rendering: pixelated;
}

#downloadUrlText {
  width: 100%;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  overflow-wrap: anywhere;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding: 26px clamp(20px, 6vw, 88px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.site-footer a {
  color: var(--blue);
  font-weight: 800;
}

.legal-page {
  max-width: 880px;
  margin: 0 auto;
  padding: 72px 24px 96px;
}

.legal-page h1 {
  margin: 12px 0 20px;
  color: var(--ink);
  font-size: clamp(1.9rem, 3.2vw, 3rem);
  line-height: 1.08;
}

.legal-page h2 {
  margin: 34px 0 10px;
  color: var(--ink);
  font-size: 1.3rem;
}

.legal-page p,
.legal-page li {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.legal-page a {
  color: var(--blue);
  font-weight: 800;
}

.legal-page ul {
  padding-left: 22px;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .hero,
  .privacy-band,
  .download-band {
    grid-template-columns: 1fr;
  }

  .phone-stage {
    min-height: auto;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .download-band {
    justify-items: start;
  }
}

@media (max-width: 620px) {
  .site-header {
    gap: 12px;
  }

  .brand span,
  .language-picker span {
    display: none;
  }

  .language-picker select {
    min-width: 118px;
  }

  .hero {
    padding-top: 34px;
  }

  .hero-stats,
  .feature-grid,
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .phone-shell {
    width: min(340px, 100%);
    transform: none;
  }

  .phone-screen {
    min-height: 590px;
  }

  .heart-ring {
    width: 210px;
    height: 210px;
  }

  .floating-note {
    position: static;
    margin: 16px auto 0;
  }

  .qr-panel {
    width: 100%;
  }
}
