:root {
  --bg: #f1f4f7;
  --bg-top: #fafbfd;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --surface-soft: rgba(248, 251, 255, 0.88);
  --surface-dark: #101827;
  --surface-dark-strong: #0a1220;
  --text: #0f172a;
  --text-muted: #4d5b72;
  --text-soft: #7a8597;
  --text-on-dark: rgba(255, 255, 255, 0.92);
  --line: rgba(15, 23, 42, 0.08);
  --line-strong: rgba(15, 23, 42, 0.12);
  --blue: #92aec0;
  --teal: #8aa8ba;
  --teal-deep: #6f90a4;
  --amber: #25262b;
  --amber-deep: #1a1b1f;
  --red: #ef5b5b;
  --red-deep: #a83636;
  --ink: #1d1e22;
  --soft-track: #e2e6eb;
  --soft-track-strong: #cfd4dc;
  --shadow-xs: 0 8px 20px rgba(15, 23, 42, 0.06);
  --shadow-sm: 0 16px 40px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 34px 90px rgba(15, 23, 42, 0.16);
  --radius-sm: 18px;
  --radius-md: 28px;
  --radius-lg: 40px;
  --container: 1160px;
  --header-height: 84px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 0% 0%, rgba(146, 174, 192, 0.16), transparent 26%),
    radial-gradient(circle at 100% 8%, rgba(138, 168, 186, 0.12), transparent 24%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg) 40%, #edf1f5 100%);
}

a {
  color: inherit;
}

svg {
  display: block;
}

::selection {
  background: rgba(95, 140, 242, 0.18);
}

[id] {
  scroll-margin-top: calc(var(--header-height) + 24px);
}

.page-shell {
  position: relative;
  overflow: hidden;
}

.page-shell::before,
.page-shell::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(30px);
}

.page-shell::before {
  top: 220px;
  right: -120px;
  width: 320px;
  height: 320px;
  background: rgba(95, 140, 242, 0.08);
}

.page-shell::after {
  bottom: 160px;
  left: -120px;
  width: 260px;
  height: 260px;
  background: rgba(48, 182, 163, 0.08);
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 200;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--text);
  border: 1px solid var(--line-strong);
  transform: translateY(-160%);
  transition: transform 0.2s ease;
  text-decoration: none;
  box-shadow: var(--shadow-xs);
}

.skip-link:focus-visible {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  background: rgba(247, 251, 255, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: var(--header-height);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 15px;
  overflow: hidden;
  background: #92aec0;
  border: 1px solid rgba(146, 174, 192, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), var(--shadow-xs);
}

.brand-mark-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 34%;
}

.brand-text {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  min-width: 0;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 0.96rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #101827 0%, #1a2537 100%);
  box-shadow: 0 14px 32px rgba(16, 24, 39, 0.18);
}

.button-primary:hover {
  box-shadow: 0 18px 36px rgba(16, 24, 39, 0.22);
}

.button-small {
  min-height: 46px;
  padding: 12px 18px;
  font-size: 0.92rem;
}

.button-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: var(--shadow-xs);
}

.button-inverse {
  background: #ffffff;
  color: #0f172a;
}

.button-inverse .apple-icon {
  fill: currentColor;
}

.button:focus-visible,
.site-nav a:focus-visible,
.brand:focus-visible,
.site-footer a:focus-visible {
  outline: 3px solid rgba(95, 140, 242, 0.3);
  outline-offset: 3px;
}

.apple-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex: 0 0 auto;
}

.section {
  padding: clamp(76px, 10vw, 112px) 0;
}

.hero {
  padding-top: clamp(50px, 8vw, 84px);
  padding-bottom: clamp(52px, 8vw, 96px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  gap: clamp(36px, 6vw, 72px);
  align-items: center;
}

.hero-copy {
  max-width: 620px;
}

.eyebrow,
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--teal-deep);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(48, 182, 163, 0.18);
  box-shadow: var(--shadow-xs);
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--teal));
}

.hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(2.8rem, 6vw, 5.15rem);
  line-height: 1.02;
  letter-spacing: -0.065em;
  text-wrap: balance;
}

.accent {
  display: inline-block;
  color: #5d7f92;
}

.hero-copy-text,
.section-copy,
.panel-copy {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.06rem;
}

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

.hero-meta {
  margin: 18px 0 0;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.hero-highlights li {
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-xs);
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.hero-visual {
  position: relative;
  min-width: 0;
}

.device-stage {
  position: relative;
  min-height: 620px;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
}

.hero-orb-blue {
  top: 70px;
  right: 30px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(146, 174, 192, 0.26), rgba(146, 174, 192, 0));
}

.hero-orb-teal {
  bottom: 20px;
  left: 10px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(138, 168, 186, 0.2), rgba(138, 168, 186, 0));
}

.notification-pill {
  position: absolute;
  top: 40px;
  right: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 240px;
  padding: 14px 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  animation: floaty 5.4s ease-in-out infinite;
}

.notification-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 6px rgba(239, 91, 91, 0.12);
  flex: 0 0 auto;
}

.notification-copy strong {
  display: block;
  font-size: 0.92rem;
}

.notification-copy span {
  color: var(--text-soft);
  font-size: 0.8rem;
}

.phone-mockup,
.watch-shell,
.state-watch-shell {
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.phone-mockup {
  position: absolute;
  right: 18px;
  bottom: 0;
  z-index: 2;
  width: min(378px, 73%);
  padding: 14px;
  border-radius: 44px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(238, 243, 250, 0.96));
  box-shadow: var(--shadow-lg);
  transform: rotate(4deg);
  animation: drift 8.8s ease-in-out infinite;
  max-width: 100%;
}

.watch-badge,
.state-watch-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.phone-screen {
  position: relative;
  min-height: 544px;
  padding: 18px 20px 20px;
  border-radius: 34px;
  color: var(--text);
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
  overflow: hidden;
}

.phone-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 18%, rgba(146, 174, 192, 0.1), rgba(146, 174, 192, 0)),
    radial-gradient(circle at 85% 0%, rgba(146, 174, 192, 0.12), rgba(146, 174, 192, 0));
  pointer-events: none;
}

.screen-top,
.app-heading,
.detected-copy,
.control-group,
.toggle-row,
.monitor-button,
.screen-footer-note {
  position: relative;
  z-index: 2;
}

.screen-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.72rem;
  color: var(--text-soft);
}

.app-heading {
  margin-top: 14px;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-align: center;
}

.phone-visualizer {
  position: relative;
  width: 214px;
  height: 214px;
  margin: 22px auto 8px;
  display: grid;
  place-items: center;
}

.phone-visualizer-ring,
.watch-ring,
.state-watch-ring {
  position: absolute;
  border-radius: 50%;
}

.phone-visualizer-ring {
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 70deg, var(--ink) 0deg 150deg, var(--soft-track) 150deg 360deg);
}

.phone-visualizer-ring::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: #ffffff;
}

.phone-visualizer-wave {
  position: absolute;
  z-index: 1;
  width: 118px;
  height: 18px;
  border-bottom: 2px solid rgba(29, 30, 34, 0.55);
  border-radius: 0 0 80px 80px;
  transform: translateY(-6px);
}

.phone-visualizer-core {
  position: relative;
  z-index: 1;
  text-align: center;
}

.phone-visualizer-core strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -0.06em;
  color: var(--ink);
}

.watch-bars,
.state-bars {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 4px;
}

.watch-bars span,
.state-bars span {
  width: 4px;
  border-radius: 999px;
}

.detected-copy {
  text-align: center;
  font-size: 0.9rem;
  color: #a5adb8;
}

.control-group {
  margin-top: 14px;
}

.control-label-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.control-label-row strong {
  color: var(--ink);
  letter-spacing: -0.03em;
}

.slider-track {
  position: relative;
  margin-top: 12px;
  height: 6px;
  border-radius: 999px;
  background: var(--soft-track);
}

.slider-fill {
  position: absolute;
  inset: 0 auto 0 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7f9fb2 0%, #9eb8c7 100%);
}

.slider-fill-sensitivity {
  width: 35%;
}

.slider-fill-duration {
  width: 24%;
}

.slider-thumb {
  position: absolute;
  top: 50%;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
  transform: translate(-50%, -50%);
}

.slider-thumb-sensitivity {
  left: 35%;
}

.slider-thumb-duration {
  left: 24%;
}

.slider-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  font-size: 0.76rem;
  color: #a0a8b3;
}

.segmented-control {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  padding: 6px;
  border-radius: 999px;
  background: #f1f3f6;
}

.segmented-control span {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  color: #3b4250;
  white-space: nowrap;
}

.segmented-control .is-active {
  background: #89a7b9;
  color: #ffffff;
  box-shadow: 0 8px 16px rgba(137, 167, 185, 0.24);
}

.toggle-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-top: 18px;
}

.toggle-label {
  display: block;
  font-size: 1rem;
  font-weight: 600;
}

.toggle-note {
  display: block;
  margin-top: 5px;
  font-size: 0.8rem;
  color: var(--text-soft);
}

.toggle-switch {
  position: relative;
  width: 58px;
  height: 32px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #cfd5dc;
}

.toggle-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.18);
}

.toggle-switch.is-on {
  background: #8aa8ba;
}

.toggle-switch.is-on::after {
  left: calc(100% - 29px);
}

.monitor-button {
  width: 124px;
  height: 124px;
  margin: 22px auto 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  text-align: center;
  font-weight: 700;
  line-height: 1.2;
  color: #ffffff;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.12);
}

.monitor-button.is-stop {
  background: #ff3d48;
}

.screen-footer-note {
  margin-top: 16px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-soft);
}

.watch-mockup {
  position: absolute;
  left: 0;
  top: 76px;
  z-index: 3;
  width: 192px;
  animation: drift-reverse 7.8s ease-in-out infinite;
  max-width: 100%;
}

.watch-band,
.state-watch-band {
  width: 48px;
  height: 34px;
  margin: 0 auto;
  border-radius: 12px;
  background: linear-gradient(180deg, #d7dee9 0%, #c8d2e0 100%);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.watch-band-top,
.state-watch-band-top {
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.watch-band-bottom,
.state-watch-band-bottom {
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.watch-shell {
  position: relative;
  padding: 10px;
  border-radius: 44px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(231, 238, 247, 0.98));
  box-shadow: 0 26px 52px rgba(15, 23, 42, 0.16);
}

.watch-screen {
  position: relative;
  min-height: 214px;
  padding: 18px 14px 16px;
  border-radius: 34px;
  overflow: hidden;
  color: var(--text);
  text-align: center;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.watch-time {
  position: relative;
  z-index: 1;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--text-soft);
}

.watch-glow {
  position: absolute;
  inset: 44px 34px 60px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(146, 174, 192, 0.14), rgba(146, 174, 192, 0));
}

.watch-ring {
  inset: 36px;
  background: conic-gradient(from 70deg, var(--ink) 0deg 140deg, var(--soft-track) 140deg 360deg);
}

.watch-ring::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: #ffffff;
}

.watch-pulse {
  display: none;
}

.watch-core,
.state-watch-content {
  position: relative;
  z-index: 1;
  margin-top: 36px;
}

.watch-reading,
.state-watch-content strong {
  display: block;
  font-size: 1.58rem;
  line-height: 1;
  letter-spacing: -0.06em;
}

.watch-unit,
.state-watch-content span {
  display: block;
  margin-top: 3px;
  color: var(--text-soft);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.watch-bars {
  position: relative;
  z-index: 1;
  height: 28px;
  margin-top: 18px;
}

.watch-bars span {
  background: linear-gradient(180deg, #a9bdcb 0%, #88a5b8 100%);
  animation: bars 0.7s ease-in-out infinite alternate;
}

.watch-bars span:nth-child(1) {
  height: 9px;
}

.watch-bars span:nth-child(2) {
  height: 18px;
  animation-delay: 0.08s;
}

.watch-bars span:nth-child(3) {
  height: 24px;
  animation-delay: 0.16s;
}

.watch-bars span:nth-child(4) {
  height: 14px;
  animation-delay: 0.24s;
}

.watch-bars span:nth-child(5) {
  height: 11px;
  animation-delay: 0.32s;
}

.watch-badge {
  position: relative;
  z-index: 1;
  width: fit-content;
  margin: 16px auto 0;
  padding: 8px 12px;
  color: var(--teal-deep);
  background: rgba(146, 174, 192, 0.14);
  border: 1px solid rgba(146, 174, 192, 0.24);
}

.trust-strip {
  padding: 0 0 16px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  padding: 22px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(15, 23, 42, 0.07);
  box-shadow: var(--shadow-sm);
}

.trust-item {
  padding: 22px;
  border-radius: 22px;
  background: rgba(248, 251, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.trust-kicker {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--teal-deep);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.trust-item h3,
.state-card h3,
.step-card h3,
.panel-title {
  margin: 0;
  letter-spacing: -0.04em;
}

.trust-item h3 {
  font-size: 1.15rem;
}

.trust-item p,
.state-card p,
.step-card p,
.compat-item p,
.privacy-list p {
  margin: 10px 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.section-intro {
  max-width: 720px;
  margin-bottom: 36px;
}

.section-label {
  color: var(--blue);
  background: rgba(146, 174, 192, 0.12);
  border: 1px solid rgba(146, 174, 192, 0.2);
}

.section-label-light {
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

.section-title,
.final-cta h2 {
  margin: 16px 0 14px;
  font-size: clamp(2rem, 4.4vw, 3.3rem);
  line-height: 1.06;
  letter-spacing: -0.06em;
  text-wrap: balance;
}

.states-grid,
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 20px;
}

.state-card,
.step-card,
.info-panel {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-sm);
}

.state-card {
  padding: 24px;
  background: rgba(255, 255, 255, 0.78);
}

.state-card::before {
  content: "";
  position: absolute;
  inset: -60px auto auto -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--card-glow);
  opacity: 0.55;
  pointer-events: none;
}

.is-quiet {
  --accent: #89a7b9;
  --accent-alt: var(--soft-track-strong);
  --accent-soft: rgba(146, 174, 192, 0.14);
  --accent-deep: var(--teal-deep);
  --card-glow: radial-gradient(circle, rgba(146, 174, 192, 0.2), rgba(146, 174, 192, 0));
}

.is-noise {
  --accent: var(--ink);
  --accent-alt: var(--soft-track-strong);
  --accent-soft: rgba(29, 30, 34, 0.08);
  --accent-deep: var(--amber-deep);
  --card-glow: radial-gradient(circle, rgba(29, 30, 34, 0.1), rgba(29, 30, 34, 0));
}

.is-crying {
  --accent: var(--red);
  --accent-alt: #f89a6c;
  --accent-soft: rgba(239, 91, 91, 0.12);
  --accent-deep: var(--red-deep);
  --card-glow: radial-gradient(circle, rgba(239, 91, 91, 0.2), rgba(239, 91, 91, 0));
}

.state-top {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.state-tag,
.metric-pill,
.compat-label {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.state-tag {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.state-reading {
  color: var(--text-soft);
  font-size: 0.92rem;
}

.state-watch {
  position: relative;
  z-index: 1;
  width: 188px;
  margin: 20px auto 22px;
}

.state-watch-shell {
  padding: 10px;
  border-radius: 42px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(231, 238, 247, 0.98));
  box-shadow: 0 22px 46px rgba(15, 23, 42, 0.14);
}

.state-watch-screen {
  position: relative;
  min-height: 188px;
  padding: 20px 14px 16px;
  overflow: hidden;
  border-radius: 30px;
  color: var(--text);
  text-align: center;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.state-watch-glow {
  position: absolute;
  inset: 44px 36px 62px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft), rgba(255, 255, 255, 0));
}

.state-watch-ring {
  inset: 36px;
  background: conic-gradient(from 70deg, var(--accent) 0deg 140deg, var(--soft-track) 140deg 360deg);
}

.state-watch-ring::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: #ffffff;
}

.is-crying .state-watch-ring {
  background: conic-gradient(from 70deg, var(--accent) 0deg 150deg, var(--soft-track) 150deg 360deg);
}

.state-watch-content {
  margin-top: 34px;
}

.state-bars {
  position: relative;
  z-index: 1;
  height: 24px;
  margin-top: 16px;
}

.state-bars span {
  background: linear-gradient(180deg, var(--accent-alt) 0%, var(--accent) 100%);
  animation: bars 1s ease-in-out infinite alternate;
}

.state-bars span:nth-child(1) {
  height: 8px;
}

.state-bars span:nth-child(2) {
  height: 14px;
  animation-delay: 0.1s;
}

.state-bars span:nth-child(3) {
  height: 20px;
  animation-delay: 0.2s;
}

.state-bars span:nth-child(4) {
  height: 12px;
  animation-delay: 0.3s;
}

.state-bars span:nth-child(5) {
  height: 10px;
  animation-delay: 0.4s;
}

.is-noise .state-bars span:nth-child(1) {
  height: 10px;
}

.is-noise .state-bars span:nth-child(2) {
  height: 17px;
}

.is-noise .state-bars span:nth-child(3) {
  height: 21px;
}

.is-noise .state-bars span:nth-child(4) {
  height: 15px;
}

.is-noise .state-bars span:nth-child(5) {
  height: 11px;
}

.is-crying .state-bars span:nth-child(1) {
  height: 12px;
}

.is-crying .state-bars span:nth-child(2) {
  height: 18px;
}

.is-crying .state-bars span:nth-child(3) {
  height: 23px;
}

.is-crying .state-bars span:nth-child(4) {
  height: 17px;
}

.is-crying .state-bars span:nth-child(5) {
  height: 13px;
}

.state-watch-badge {
  position: relative;
  z-index: 1;
  width: fit-content;
  margin: 14px auto 0;
  padding: 8px 12px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.state-watch-pulse {
  position: absolute;
  inset: 28px;
  border: 1px solid rgba(239, 91, 91, 0.18);
  border-radius: 50%;
}

.state-watch-pulse-one {
  animation: pulse 1.3s ease-out infinite;
}

.state-watch-pulse-two {
  animation: pulse 1.3s ease-out 0.45s infinite;
}

.state-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.metric-pill {
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--text-muted);
  background: rgba(248, 251, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.step-card {
  padding: 28px;
  background: rgba(255, 255, 255, 0.74);
}

.step-card::before {
  content: "";
  position: absolute;
  right: -30px;
  top: -20px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(95, 140, 242, 0.1), rgba(95, 140, 242, 0));
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(95, 140, 242, 0.08);
  color: var(--blue);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.step-card h3 {
  margin-top: 22px;
  font-size: 1.28rem;
}

.panel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.info-panel {
  padding: 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.72));
}

.panel-title {
  margin-top: 16px;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.08;
}

.privacy-list {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.privacy-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  border-radius: 20px;
  background: rgba(248, 251, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.list-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: rgba(48, 182, 163, 0.12);
  color: var(--teal-deep);
  font-weight: 800;
}

.privacy-list strong,
.compat-item strong {
  display: block;
  letter-spacing: -0.03em;
}

.compat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.compat-item {
  padding: 18px;
  border-radius: 20px;
  background: rgba(248, 251, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.compat-label {
  display: block;
  margin-bottom: 10px;
  color: var(--blue);
}

.final-cta {
  padding-bottom: 112px;
}

.cta-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(34px, 6vw, 66px);
  border-radius: 34px;
  color: #ffffff;
  background:
    radial-gradient(circle at 20% 20%, rgba(95, 140, 242, 0.24), rgba(95, 140, 242, 0)),
    radial-gradient(circle at 90% 20%, rgba(48, 182, 163, 0.2), rgba(48, 182, 163, 0)),
    linear-gradient(180deg, #101827 0%, #172236 100%);
  box-shadow: var(--shadow-lg);
}

.cta-panel::before,
.cta-panel::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.cta-panel::before {
  inset: auto auto -120px -40px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(95, 140, 242, 0.2), rgba(95, 140, 242, 0));
}

.cta-panel::after {
  inset: -110px -70px auto auto;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(48, 182, 163, 0.18), rgba(48, 182, 163, 0));
}

.cta-panel h2,
.cta-panel p,
.cta-actions,
.cta-note {
  position: relative;
  z-index: 1;
}

.cta-panel p {
  max-width: 640px;
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 1.05rem;
}

.cta-actions {
  margin-top: 28px;
}

.cta-note {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.92rem;
}

.site-footer {
  padding: 0 0 36px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding-top: 12px;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  text-decoration: none;
}

@keyframes drift {
  0%,
  100% {
    transform: rotate(4deg) translateY(0);
  }
  50% {
    transform: rotate(4deg) translateY(-8px);
  }
}

@keyframes drift-reverse {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(10px);
  }
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

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

@keyframes bars {
  0% {
    transform: scaleY(0.75);
    opacity: 0.72;
  }
  100% {
    transform: scaleY(1.08);
    opacity: 1;
  }
}

@keyframes pulse {
  0% {
    transform: scale(0.88);
    opacity: 0;
  }
  45% {
    opacity: 0.95;
  }
  100% {
    transform: scale(1.1);
    opacity: 0;
  }
}

@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-copy {
    max-width: none;
  }

  .hero-visual {
    max-width: 720px;
    margin: 0 auto;
  }

  .device-stage {
    min-height: 580px;
  }
}

@media (max-width: 960px) {
  .device-stage {
    display: grid;
    justify-items: center;
    gap: 18px;
    min-height: 0;
  }

  .notification-pill {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    width: min(100%, 320px);
    max-width: 320px;
    animation: none;
  }

  .phone-mockup {
    position: relative;
    right: auto;
    left: auto;
    bottom: auto;
    width: min(100%, 360px);
    transform: none;
    animation: none;
  }

  .watch-mockup {
    position: relative;
    top: auto;
    left: auto;
    width: 164px;
    margin-bottom: -34px;
    animation: none;
  }

  .phone-screen {
    min-height: 0;
    padding: 18px;
  }

  .screen-top {
    justify-content: center;
    flex-wrap: wrap;
    text-align: center;
  }

  .hero-orb {
    display: none;
  }
}

@media (max-width: 820px) {
  .header-inner {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand cta"
      "nav nav";
    gap: 16px 20px;
    padding: 16px 0 18px;
  }

  .brand {
    grid-area: brand;
  }

  .site-nav {
    grid-area: nav;
    justify-content: flex-start;
    gap: 20px;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .site-nav a {
    flex: 0 0 auto;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .button-small {
    grid-area: cta;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(var(--container), calc(100% - 24px));
  }

  .hero {
    padding-top: 40px;
  }

  .hero h1 {
    font-size: clamp(2.45rem, 11vw, 3.4rem);
  }

  .hero-copy-text,
  .section-copy,
  .panel-copy,
  .cta-panel p {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .button {
    width: 100%;
  }

  .device-stage {
    gap: 16px;
  }

  .notification-pill {
    width: min(100%, 300px);
  }

  .phone-mockup {
    width: min(100%, 360px);
  }

  .watch-mockup {
    width: 164px;
    margin-bottom: -30px;
  }

  .phone-screen {
    padding: 18px;
  }

  .phone-visualizer {
    width: min(196px, 100%);
    height: 196px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .header-inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "nav"
      "cta";
    justify-items: start;
  }

  .site-nav {
    gap: 16px;
    font-size: 0.88rem;
  }

  .brand-text {
    font-size: 0.94rem;
  }

  .device-stage {
    gap: 14px;
  }

  .watch-mockup {
    width: 148px;
    margin-bottom: -26px;
  }

  .phone-mockup {
    width: 100%;
    max-width: 340px;
  }

  .notification-pill {
    max-width: 100%;
    padding: 12px 14px;
  }

  .phone-screen {
    padding: 16px 16px 18px;
  }

  .app-heading {
    font-size: 1.28rem;
  }

  .detected-copy,
  .screen-footer-note {
    font-size: 0.78rem;
  }

  .control-label-row {
    row-gap: 4px;
  }

  .control-label-row > span:first-child {
    flex-basis: 100%;
  }

  .segmented-control {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-radius: 24px;
  }

  .segmented-control span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    text-align: center;
    white-space: normal;
  }

  .toggle-row {
    flex-direction: column;
    align-items: stretch;
  }

  .toggle-switch {
    align-self: flex-end;
  }

  .monitor-button {
    width: 108px;
    height: 108px;
    font-size: 0.92rem;
  }

  .hero-highlights li {
    width: 100%;
    text-align: center;
  }

  .info-panel,
  .step-card,
  .state-card,
  .trust-item {
    padding-left: 20px;
    padding-right: 20px;
  }

  .cta-panel {
    padding: 30px 22px;
  }
}

@media (max-width: 420px) {
  .container {
    width: min(var(--container), calc(100% - 20px));
  }

  .site-header {
    position: static;
  }

  [id] {
    scroll-margin-top: 24px;
  }

  .button-small {
    width: 100%;
    justify-self: stretch;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 11vw, 3rem);
  }

  .state-watch {
    width: 164px;
  }

  .info-panel,
  .step-card,
  .state-card,
  .trust-item {
    padding: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
