:root {
  --luna-bg: #f6f2ec;
  --luna-bg-tint: #e8efe9;
  --luna-surface: #fffcf8;
  --luna-surface-muted: #f0ebe4;
  --luna-border: #e3ddd4;
  --luna-primary: #7a9e8a;
  --luna-primary-soft: #b5cfc0;
  --luna-accent-blue: #6e8a9e;
  --luna-accent-lavender: #8f84a3;
  --luna-accent-gold: #b09572;
  --luna-accent-rose: #c4847a;
  --luna-text: #5c5a57;
  --luna-ink: #424640;
  --luna-text-muted: #8a8782;
  --luna-text-light: #a8a5a0;
  --luna-error: #c4847a;
  --luna-success: #8faf9b;
  --luna-tile-checkin: #e8f0ea;
  --luna-tile-exercise: #ede8f4;
  --luna-tile-medication: #f5ede6;
  --luna-tile-call: #e6eef4;
  --luna-tile-emergency: #f8e8e6;
  --radius-lg: 24px;
  --radius-md: 20px;
  --radius-sm: 16px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  color: var(--luna-text-muted);
  background: linear-gradient(155deg, var(--luna-bg) 0%, var(--luna-bg-tint) 54%, #eef1f6 100%);
  min-height: 100vh;
  overflow-x: clip;
}

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

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding-inline: max(0px, env(safe-area-inset-left, 0px)) max(0px, env(safe-area-inset-right, 0px));
}

.site-header {
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(8px);
  background: color-mix(in srgb, var(--luna-bg) 85%, transparent);
  border-bottom: 1px solid var(--luna-border);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 0.65rem;
  text-decoration: none;
}

.logo img {
  display: block;
  width: 56px;
  height: 56px;
  border-radius: 16px;
}

.logo span {
  color: var(--luna-primary);
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1;
}

.lang-switch {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.lang-switch select {
  min-height: 2.3rem;
  max-width: 12rem;
  padding: 0.35rem 2.15rem 0.35rem 0.75rem;
  border: 1px solid var(--luna-primary-soft);
  border-radius: 999px;
  background: var(--luna-surface);
  color: var(--luna-text);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.lang-switch select:focus {
  outline: 2px solid color-mix(in srgb, var(--luna-primary) 32%, transparent);
  outline-offset: 2px;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  gap: 0.35rem 1.1rem;
  flex-wrap: wrap;
  min-width: 0;
}

.site-nav a {
  color: var(--luna-text-muted);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--luna-primary);
  text-decoration: none;
}

.site-nav a.active {
  position: relative;
}

.site-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.35rem;
  height: 2px;
  border-radius: 999px;
  background: var(--luna-primary);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.footer-nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-nav a {
  color: var(--luna-text-light);
  font-size: 0.9rem;
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--luna-primary);
}

/* Documentation page */
.doc-page .doc-main {
  padding-bottom: 2rem;
}

.doc-hero {
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid var(--luna-border);
  background: color-mix(in srgb, var(--luna-surface) 72%, transparent);
}

.doc-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--luna-primary);
}

.doc-hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--luna-ink);
  line-height: 1.15;
}

.doc-lead {
  margin: 0;
  max-width: 52rem;
  font-size: 1.12rem;
  line-height: 1.6;
  color: var(--luna-text);
}

.doc-layout {
  display: grid;
  grid-template-columns: minmax(200px, 240px) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
  padding: 2rem 0 3rem;
}

.doc-toc {
  position: sticky;
  top: 5.5rem;
  padding: 1.15rem 1.1rem;
  border: 1px solid var(--luna-border);
  border-radius: var(--radius-md);
  background: var(--luna-surface);
}

.doc-toc-title {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--luna-text-light);
}

.doc-toc ol {
  margin: 0;
  padding-left: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.doc-toc a {
  color: var(--luna-text-muted);
  font-size: 0.92rem;
  line-height: 1.35;
  text-decoration: none;
}

.doc-toc a:hover {
  color: var(--luna-primary);
}

.doc-content {
  min-width: 0;
}

.doc-section {
  scroll-margin-top: 5.5rem;
  padding-bottom: 2.25rem;
  margin-bottom: 2.25rem;
  border-bottom: 1px solid var(--luna-border);
}

.doc-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.doc-section h2 {
  margin: 0 0 1rem;
  font-size: 1.55rem;
  color: var(--luna-ink);
}

.doc-subtitle {
  margin: 1.55rem 0 0.75rem;
  font-size: 1.05rem;
  color: var(--luna-ink);
}

.doc-section > p {
  margin: 0 0 1rem;
  max-width: 46rem;
}

.doc-cards.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.doc-card {
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--luna-border);
  border-radius: var(--radius-md);
  background: var(--luna-surface);
}

.doc-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  color: var(--luna-primary);
}

.doc-card p {
  margin: 0;
  font-size: 0.96rem;
}

.doc-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  counter-reset: doc-step;
}

.doc-steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
  padding: 1rem 1.1rem;
  border: 1px solid var(--luna-border);
  border-radius: var(--radius-sm);
  background: var(--luna-surface);
}

.doc-steps:not(.compact) li::before {
  counter-increment: doc-step;
  content: counter(doc-step);
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--luna-primary-soft);
  color: var(--luna-ink);
  font-weight: 700;
  font-size: 0.95rem;
}

.doc-steps li strong {
  display: block;
  color: var(--luna-ink);
  margin-bottom: 0.2rem;
}

.doc-steps li span {
  grid-column: 2;
  color: var(--luna-text-muted);
  font-size: 0.96rem;
}

.doc-steps.compact li {
  grid-template-columns: 1fr;
}

.doc-steps.compact li::before {
  display: none;
}

.doc-note {
  margin-top: 1.15rem;
  padding: 0.9rem 1rem;
  border-left: 3px solid var(--luna-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: color-mix(in srgb, var(--luna-primary-soft) 28%, var(--luna-surface));
  font-size: 0.95rem;
  color: var(--luna-text);
}

.doc-tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.85rem;
  margin-top: 1.15rem;
}

.doc-tile-card {
  padding: 1rem 1.05rem;
  border: 1px solid var(--luna-border);
  border-radius: var(--radius-sm);
  background: var(--luna-surface);
}

.doc-tile-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  color: var(--luna-primary);
}

.doc-tile-card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
}

.doc-list {
  margin: 0;
  padding-left: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-width: 46rem;
}

.doc-list li {
  line-height: 1.5;
}

.doc-screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.25rem 0;
}

.doc-screenshot-card {
  margin: 0;
  padding: 0.85rem;
  border: 1px solid var(--luna-border);
  border-radius: var(--radius-md);
  background: var(--luna-surface);
}

.doc-screenshot-card img {
  display: block;
  width: 100%;
  aspect-ratio: 390 / 844;
  object-fit: contain;
  border-radius: 18px;
  border: 1px solid var(--luna-border);
  background: var(--luna-surface-muted);
}

.doc-screenshot-card figcaption {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 0.75rem;
}

.doc-screenshot-card strong {
  color: var(--luna-ink);
  font-size: 0.98rem;
}

.doc-screenshot-card span {
  color: var(--luna-text-muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.doc-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.download-hero {
  padding: 2.5rem 0 1.25rem;
  text-align: center;
}

.download-kicker {
  margin: 0 0 0.5rem;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--luna-primary);
}

.download-hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.85rem, 4vw, 2.35rem);
  font-weight: 650;
  color: var(--luna-ink);
}

.download-lead {
  margin: 0 auto;
  max-width: 36rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--luna-text-muted);
}

.download-options-section {
  padding: 0 0 3rem;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.download-option {
  scroll-margin-top: 5.5rem;
}

.download-option:target {
  border-color: var(--luna-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--luna-primary-soft) 55%, transparent);
}

.download-option-head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.download-option-head .card-icon {
  margin-bottom: 0;
}

.download-platform {
  margin: 0 0 0.2rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--luna-primary);
}

.download-option h2 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--luna-ink);
}

.download-option-desc {
  margin: 0 0 1.15rem;
  font-size: 0.96rem;
  line-height: 1.5;
}

.download-qr-disclosure {
  width: 100%;
  margin-bottom: 0.75rem;
}

.download-qr-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.75rem;
  margin-bottom: 0;
  padding: 0.6rem 1rem;
  border: 1px solid var(--luna-border);
  border-radius: 18px;
  background: var(--luna-surface-muted);
  color: var(--luna-ink);
  font-weight: 600;
  font-size: 0.94rem;
  list-style: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.download-qr-toggle::-webkit-details-marker {
  display: none;
}

.download-qr-toggle::marker {
  content: "";
}

.download-qr-toggle:hover {
  background: var(--luna-surface);
  border-color: color-mix(in srgb, var(--luna-primary) 45%, var(--luna-border));
}

.download-qr-disclosure[open] .download-qr-toggle {
  margin-bottom: 0.85rem;
  border-color: var(--luna-primary);
  background: color-mix(in srgb, var(--luna-primary-soft) 35%, var(--luna-surface));
}

.download-qr-disclosure[open] .download-qr-toggle-show {
  display: none;
}

.download-qr-disclosure:not([open]) .download-qr-toggle-hide {
  display: none;
}

.download-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.15rem;
}

.download-qr-frame {
  display: grid;
  place-items: center;
  width: min(100%, 11.5rem);
  aspect-ratio: 1;
  padding: 0.65rem;
  border: 1px solid var(--luna-border);
  border-radius: var(--radius-sm);
  background: #fff;
}

.download-qr-frame svg {
  display: block;
  width: 100%;
  height: auto;
}

.download-qr-hint {
  margin: 0;
  max-width: 14rem;
  font-size: 0.88rem;
  line-height: 1.35;
  text-align: center;
  color: var(--luna-text-light);
}

.download-store-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 2.85rem;
  margin-top: auto;
  padding: 0.65rem 1rem;
  border-radius: 18px;
  background: var(--luna-primary);
  color: var(--luna-surface);
  font-weight: 650;
  font-size: 0.96rem;
  text-decoration: none;
}

.download-store-btn:hover {
  background: color-mix(in srgb, var(--luna-primary) 88%, black);
  text-decoration: none;
}

.download-store-btn .store-icon-apple {
  color: var(--luna-surface);
}

.download-coming-soon {
  display: grid;
  gap: 0.25rem;
  width: 100%;
  margin: 0 0 0.75rem;
  padding: 0.85rem 1rem;
  border: 1px solid color-mix(in srgb, var(--luna-primary-soft) 72%, var(--luna-border));
  border-radius: 18px;
  background: color-mix(in srgb, var(--luna-primary-soft) 24%, var(--luna-surface));
}

.download-coming-soon strong {
  color: var(--luna-ink);
  line-height: 1.2;
}

.download-coming-soon span {
  color: var(--luna-text-muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.card-download.is-disabled,
.download-store-btn.is-disabled {
  border: 1px solid var(--luna-border);
  background: var(--luna-surface-muted);
  color: var(--luna-text-muted);
  cursor: default;
}

.card-download.is-disabled:hover,
.download-store-btn.is-disabled:hover {
  background: var(--luna-surface-muted);
  text-decoration: none;
}

.section-head {
  max-width: 48rem;
  margin-bottom: 1.35rem;
}

.section-head h2 {
  margin-bottom: 0.55rem;
  text-align: left;
}

.section-head p {
  margin: 0;
  color: var(--luna-text-muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.screenshot-section {
  background: color-mix(in srgb, var(--luna-surface) 48%, transparent);
  border-block: 1px solid color-mix(in srgb, var(--luna-border) 70%, transparent);
}

.screenshot-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.screenshot-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--luna-border);
  border-radius: var(--radius-md);
  background: var(--luna-surface);
  box-shadow: 0 18px 46px rgba(92, 90, 87, 0.09);
}

.screenshot-frame {
  width: min(100%, 15rem);
  margin: 0 auto;
  padding: 0.55rem;
  border-radius: 28px;
  background: #393c37;
  box-shadow: inset 0 0 0 1px rgba(255, 252, 248, 0.18);
}

.screenshot-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 390 / 844;
  object-fit: contain;
  border-radius: 22px;
  background: var(--luna-surface-muted);
}

.screenshot-copy h3 {
  margin: 0 0 0.35rem;
  color: var(--luna-ink);
  font-size: 1.08rem;
}

.screenshot-copy p {
  margin: 0;
  color: var(--luna-text-muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.screenshot-note {
  max-width: 48rem;
  margin: 1rem 0 0;
  color: var(--luna-text-light);
  font-size: 0.9rem;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: min(680px, 78svh);
  padding: 4.25rem 0 2.75rem;
  text-align: left;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero::before {
  z-index: -2;
  background:
    linear-gradient(125deg, rgba(255, 252, 248, 0.97) 0%, rgba(255, 252, 248, 0.85) 42%, rgba(232, 239, 233, 0.58) 68%, rgba(230, 238, 244, 0.7) 100%);
}

.hero::after {
  z-index: -1;
  background: linear-gradient(90deg, rgba(246, 242, 236, 0.98) 0%, rgba(246, 242, 236, 0.9) 40%, rgba(246, 242, 236, 0.18) 73%, transparent 100%);
}

.hero-inner {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 600px;
  padding: 1rem 0;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1rem;
  color: var(--luna-primary);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-kicker::before {
  content: "";
  width: 0.75rem;
  height: 0.75rem;
  border: 2px solid var(--luna-primary);
  border-left-color: transparent;
  border-radius: 50%;
}

.hero h1 {
  margin: 0 0 1.1rem;
  color: var(--luna-ink);
  font-size: clamp(2.75rem, 8vw, 4.6rem);
  font-weight: 650;
  letter-spacing: 0;
  line-height: 0.98;
}

.hero .tagline {
  max-width: 34rem;
  margin: 0 0 1.75rem;
  color: var(--luna-text);
  font-size: 1.28rem;
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3.35rem;
  padding: 0.85rem 1.35rem;
  background: var(--luna-primary);
  color: var(--luna-surface);
  border-radius: 22px;
  border: 1px solid var(--luna-primary);
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.android-icon,
.store-icon {
  flex: 0 0 auto;
  display: block;
  width: 1.15rem;
  height: 1.15rem;
}

.card-downloads {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  margin-top: auto;
}

.card-downloads .card-download {
  width: 100%;
}

.card-download .store-icon-apple {
  color: var(--luna-surface);
}

.doc-family-downloads {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  width: 100%;
}

@media (min-width: 520px) {
  .doc-family-downloads {
    width: auto;
    min-width: min(100%, 18rem);
  }
}

.hero-cta:hover {
  background: color-mix(in srgb, var(--luna-primary) 88%, black);
  border-color: color-mix(in srgb, var(--luna-primary) 88%, black);
  text-decoration: none;
}

.hero-cta.secondary {
  background: rgba(255, 252, 248, 0.78);
  border-color: var(--luna-border);
  color: var(--luna-text);
}

.hero-cta.secondary:hover {
  background: var(--luna-surface);
  border-color: var(--luna-primary-soft);
  color: var(--luna-primary);
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 520px;
  margin-top: 1.35rem;
}

.proof-item {
  min-width: 0;
  padding: 0.85rem 0.95rem;
  background: rgba(255, 252, 248, 0.94);
  border: 1px solid rgba(227, 221, 212, 0.82);
  border-radius: 18px;
}

.proof-item strong,
.proof-item span {
  display: block;
}

.proof-item strong {
  color: var(--luna-ink);
  font-size: 0.98rem;
  line-height: 1.2;
}

.proof-item span {
  margin-top: 0.25rem;
  color: var(--luna-text-muted);
  font-size: 0.82rem;
  line-height: 1.25;
}

.hero-scene {
  position: absolute;
  right: -6rem;
  bottom: -0.4rem;
  z-index: 1;
  width: min(62%, 700px);
  height: 90%;
  min-height: 480px;
  pointer-events: none;
}

.phone-preview,
.dashboard-preview {
  position: absolute;
  background: var(--luna-surface);
  border: 1px solid rgba(227, 221, 212, 0.95);
  box-shadow: 0 28px 80px rgba(92, 90, 87, 0.16);
}

.phone-preview {
  left: 8%;
  bottom: 0.15rem;
  z-index: 3;
  width: 236px;
  min-height: 466px;
  padding: 1rem;
  border: 8px solid rgba(66, 70, 64, 0.84);
  border-radius: 36px;
  transform: rotate(-4.6deg);
  transition: transform 0.2s ease;
}

.hero:hover .phone-preview {
  transform: translateY(-4px) rotate(-4.6deg);
}

.phone-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--luna-text);
  font-size: 0.74rem;
  font-weight: 700;
}

.phone-bars {
  width: 2.15rem;
  height: 0.65rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--luna-primary) 0 32%, var(--luna-primary-soft) 32% 63%, var(--luna-border) 63% 100%);
}

.phone-title {
  margin: 1.35rem 0 0.2rem;
  color: var(--luna-ink);
  font-size: 1.18rem;
  font-weight: 650;
  line-height: 1.2;
}

.phone-date {
  margin: 0 0 1.15rem;
  color: var(--luna-text-muted);
  font-size: 0.96rem;
}

.phone-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.preview-tile {
  min-height: 6.15rem;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.55rem;
  padding: 0.65rem;
  border: 1px solid rgba(227, 221, 212, 0.62);
  border-radius: 24px;
  color: var(--luna-text);
  font-size: 0.86rem;
  font-weight: 650;
  line-height: 1.15;
  text-align: center;
}

.tile-checkin {
  background: var(--luna-tile-checkin);
}

.tile-medication {
  background: var(--luna-tile-medication);
}

.tile-call {
  background: var(--luna-tile-call);
}

.tile-memory {
  background: var(--luna-tile-exercise);
}

.tile-symbol {
  position: relative;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: rgba(255, 252, 248, 0.7);
}

.check-symbol::before {
  content: "";
  position: absolute;
  left: 0.7rem;
  top: 0.45rem;
  width: 0.55rem;
  height: 0.95rem;
  border: solid var(--luna-primary);
  border-width: 0 0.18rem 0.18rem 0;
  transform: rotate(42deg);
}

.medicine-symbol::before,
.medicine-symbol::after {
  content: "";
  position: absolute;
  border-radius: 999px;
}

.medicine-symbol::before {
  left: 0.48rem;
  top: 0.82rem;
  width: 1.15rem;
  height: 0.48rem;
  background: var(--luna-accent-gold);
  transform: rotate(-22deg);
}

.medicine-symbol::after {
  left: 1.12rem;
  top: 0.58rem;
  width: 0.48rem;
  height: 1.05rem;
  background: rgba(176, 149, 114, 0.34);
  transform: rotate(-22deg);
}

.call-symbol::before {
  content: "";
  position: absolute;
  inset: 0.55rem 0.5rem 0.62rem 0.72rem;
  border: 0.22rem solid var(--luna-accent-blue);
  border-right-color: transparent;
  border-top-color: transparent;
  border-radius: 0 0 0 1rem;
  transform: rotate(-38deg);
}

.memory-symbol::before,
.memory-symbol::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: var(--luna-accent-lavender);
}

.memory-symbol::before {
  width: 0.78rem;
  height: 0.78rem;
  left: 0.52rem;
  top: 0.55rem;
}

.memory-symbol::after {
  width: 0.95rem;
  height: 0.95rem;
  right: 0.48rem;
  bottom: 0.48rem;
  background: rgba(143, 132, 163, 0.52);
}

.dashboard-preview {
  right: 0;
  top: 3.2rem;
  z-index: 2;
  width: 430px;
  padding: 1.3rem 1.35rem;
  border-radius: 30px;
  background: rgba(255, 252, 248, 0.98);
  box-shadow: 0 30px 90px rgba(92, 90, 87, 0.18);
  transform: rotate(1.2deg);
  transition: transform 0.2s ease;
}

.hero:hover .dashboard-preview {
  transform: translateY(-3px) rotate(1.2deg);
}

.preview-topline {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.65rem;
  color: var(--luna-text-muted);
  font-size: 0.86rem;
  font-weight: 650;
}

.signal-dot,
.status-dot {
  display: inline-block;
  flex: 0 0 auto;
  border-radius: 50%;
}

.signal-dot {
  width: 0.7rem;
  height: 0.7rem;
  background: var(--luna-success);
}

.dashboard-preview > strong {
  display: block;
  color: var(--luna-ink);
  font-size: 1.35rem;
  line-height: 1.2;
}

.dashboard-list {
  display: grid;
  gap: 0.75rem;
  margin: 1.1rem 0;
}

.dashboard-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem;
  background: rgba(240, 235, 228, 0.52);
  border: 1px solid rgba(227, 221, 212, 0.75);
  border-radius: 18px;
}

.status-dot {
  width: 0.72rem;
  height: 0.72rem;
  margin-top: 0.24rem;
}

.status-dot.ok {
  background: var(--luna-success);
}

.status-dot.medicine {
  background: var(--luna-accent-gold);
}

.status-dot.home {
  background: var(--luna-accent-blue);
}

.dashboard-row p {
  margin: 0;
}

.dashboard-row strong,
.dashboard-row span {
  display: block;
}

.dashboard-row strong {
  color: var(--luna-text);
  font-size: 0.95rem;
  line-height: 1.2;
}

.dashboard-row span {
  margin-top: 0.18rem;
  color: var(--luna-text-muted);
  font-size: 0.82rem;
}

.dashboard-action {
  display: inline-flex;
  min-height: 2.75rem;
  margin-left: 7rem;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1rem;
  border-radius: 18px;
  background: var(--luna-primary);
  color: var(--luna-surface);
  font-weight: 700;
  font-size: 0.92rem;
}

section {
  padding: 2.5rem 0;
}

section h2 {
  margin: 0 0 1.5rem;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--luna-text);
  text-align: center;
}

.section-kicker {
  margin: 0 0 0.45rem;
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--luna-primary);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--luna-surface);
  border: 1px solid var(--luna-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.card-icon.senior {
  background: var(--luna-tile-checkin);
}

.card-icon.family {
  background: var(--luna-tile-call);
}

.card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  color: var(--luna-text);
}

.card p {
  margin: 0 0 1.25rem;
}

.card-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.85rem;
  margin-top: auto;
  padding: 0.65rem 1rem;
  border-radius: 18px;
  background: var(--luna-primary);
  color: var(--luna-surface);
  font-weight: 650;
  font-size: 0.96rem;
  text-decoration: none;
}

.card-download:hover {
  background: color-mix(in srgb, var(--luna-primary) 88%, black);
  text-decoration: none;
}

.features-section {
  background: color-mix(in srgb, var(--luna-surface) 42%, transparent);
}

.features-head {
  max-width: 680px;
  margin: 0 auto 1.5rem;
  text-align: center;
}

.features-head h2 {
  margin-bottom: 0.55rem;
}

.features-head p:last-child {
  margin: 0;
  color: var(--luna-text);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.9rem;
}

.feature-card {
  min-width: 0;
  min-height: 14rem;
  padding: 1.05rem;
  border: 1px solid var(--luna-border);
  border-radius: var(--radius-md);
  background: var(--luna-surface);
  box-shadow: 0 16px 42px rgba(92, 90, 87, 0.06);
}

.feature-card h3 {
  margin: 0.85rem 0 0.45rem;
  color: var(--luna-ink);
  font-size: 1.04rem;
  line-height: 1.2;
}

.feature-card p {
  margin: 0;
  color: var(--luna-text-muted);
  font-size: 0.94rem;
  line-height: 1.42;
}

.feature-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 15px;
  background: var(--luna-tile-checkin);
  color: var(--luna-primary);
}

.feature-icon::before,
.feature-icon::after {
  content: "";
  position: absolute;
}

.feature-icon.tiles::before {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 4px;
  background: currentColor;
  box-shadow:
    0.86rem 0 currentColor,
    0 0.86rem currentColor,
    0.86rem 0.86rem currentColor;
  transform: translate(-0.43rem, -0.43rem);
}

.feature-icon.checkin {
  background: var(--luna-tile-call);
  color: var(--luna-accent-blue);
}

.feature-icon.checkin::before {
  width: 1.15rem;
  height: 0.62rem;
  border-left: 4px solid currentColor;
  border-bottom: 4px solid currentColor;
  transform: rotate(-45deg);
}

.feature-icon.remote {
  background: var(--luna-tile-medication);
  color: var(--luna-accent-gold);
}

.feature-icon.remote::before {
  width: 1.25rem;
  height: 0.82rem;
  border: 3px solid currentColor;
  border-radius: 5px;
}

.feature-icon.remote::after {
  width: 1.05rem;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
  transform: translateY(0.9rem);
}

.feature-icon.emergency {
  background: var(--luna-tile-emergency);
  color: var(--luna-error);
}

.feature-icon.emergency::before {
  width: 0.28rem;
  height: 1.1rem;
  border-radius: 999px;
  background: currentColor;
}

.feature-icon.emergency::after {
  width: 0.32rem;
  height: 0.32rem;
  border-radius: 50%;
  background: currentColor;
  transform: translateY(0.86rem);
}

.feature-icon.kiosk {
  background: var(--luna-tile-exercise);
  color: var(--luna-accent-lavender);
}

.feature-icon.kiosk::before {
  width: 1.15rem;
  height: 1rem;
  border: 3px solid currentColor;
  border-top: none;
  border-radius: 0 0 5px 5px;
  transform: translateY(0.22rem);
}

.feature-icon.kiosk::after {
  width: 1rem;
  height: 1rem;
  border-left: 3px solid currentColor;
  border-top: 3px solid currentColor;
  transform: translateY(-0.32rem) rotate(45deg);
}

.how-section {
  scroll-margin-top: 5.5rem;
  padding: 3.4rem 0 3.8rem;
  border-top: 1px solid var(--luna-border);
  border-bottom: 1px solid var(--luna-border);
  background:
    linear-gradient(160deg, rgba(255, 252, 248, 0.9) 0%, rgba(232, 239, 233, 0.78) 100%),
    var(--luna-bg-tint);
}

.how-head {
  max-width: 620px;
  margin: 0 auto 1.6rem;
  text-align: center;
}

.how-head h2 {
  margin-bottom: 0.5rem;
  text-align: center;
}

.how-head p:last-child {
  margin: 0;
  color: var(--luna-text);
  font-size: 1.05rem;
}

.how-animation {
  display: grid;
  gap: 1rem;
}

.how-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(210px, 0.85fr) minmax(260px, 1fr) minmax(150px, 0.48fr);
  gap: clamp(1rem, 4vw, 3rem);
  align-items: center;
  min-height: 360px;
}

.how-device {
  position: relative;
  z-index: 1;
}

.how-device-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.7rem;
  color: var(--luna-primary);
  font-size: 0.86rem;
  font-weight: 750;
}

.how-device-label::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--luna-primary);
}

.how-phone-mini {
  width: min(100%, 210px);
  min-height: 330px;
  margin: 0 auto;
  padding: 0.8rem;
  border: 8px solid #3f433d;
  border-radius: 34px;
  background: #fffaf5;
  box-shadow: 0 24px 64px rgba(92, 90, 87, 0.18);
  transform: rotate(-3deg);
}

.how-phone-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--luna-ink);
  font-size: 0.64rem;
  font-weight: 800;
}

.how-battery {
  width: 1.55rem;
  height: 0.52rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--luna-primary) 0 62%, var(--luna-border) 62% 100%);
}

.how-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 1.35rem;
}

.how-mini-tile {
  display: grid;
  place-items: center;
  gap: 0.38rem;
  min-height: 5.2rem;
  padding: 0.5rem;
  border: 1px solid var(--luna-border);
  border-radius: 18px;
  background: var(--luna-surface-muted);
  text-align: center;
}

.how-mini-tile.active {
  background: var(--luna-tile-checkin);
  animation: howTilePulse 5.4s ease-in-out infinite;
}

.how-mini-tile.emergency {
  background: var(--luna-tile-emergency);
  animation: howEmergencyPulse 5.4s ease-in-out infinite;
}

.how-mini-tile strong {
  color: var(--luna-ink);
  font-size: 0.72rem;
  line-height: 1.15;
}

.how-mini-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #fffaf5;
}

.how-mini-icon::before,
.how-mini-icon::after {
  content: "";
  position: absolute;
}

.how-mini-icon.check::before {
  width: 0.9rem;
  height: 0.5rem;
  border-left: 4px solid var(--luna-primary);
  border-bottom: 4px solid var(--luna-primary);
  transform: rotate(-45deg);
}

.how-mini-icon.pill::before {
  width: 1.4rem;
  height: 0.52rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--luna-accent-gold) 0 50%, #d7b78d 50% 100%);
  transform: rotate(58deg);
}

.how-mini-icon.call::before {
  width: 1rem;
  height: 0.55rem;
  border-bottom: 5px solid var(--luna-accent-blue);
  border-radius: 0 0 999px 999px;
}

.how-mini-icon.alert::before {
  width: 0.26rem;
  height: 0.9rem;
  border-radius: 999px;
  background: var(--luna-error);
}

.how-mini-icon.alert::after {
  width: 0.28rem;
  height: 0.28rem;
  border-radius: 50%;
  background: var(--luna-error);
  transform: translateY(0.72rem);
}

.how-motion-line {
  position: absolute;
  z-index: 0;
  left: 20%;
  right: 34%;
  top: 48%;
  height: 4px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--luna-primary-soft) 72%, transparent);
}

.how-motion-line::before,
.how-motion-line::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--luna-primary);
  transform: translateY(-50%);
}

.how-motion-line::before {
  left: 0;
}

.how-motion-line::after {
  right: 0;
}

.motion-dot {
  position: absolute;
  top: 50%;
  left: 0;
  width: 0.78rem;
  height: 0.78rem;
  border-radius: 50%;
  background: var(--luna-primary);
  box-shadow: 0 0 0 7px rgba(122, 158, 138, 0.18);
  transform: translate(-50%, -50%);
  animation: howSignal 5.4s linear infinite;
}

.motion-dot.two {
  animation-delay: 1.8s;
}

.motion-dot.three {
  background: var(--luna-error);
  box-shadow: 0 0 0 7px rgba(196, 132, 122, 0.18);
  animation-delay: 3.6s;
}

.how-family {
  justify-self: stretch;
}

.how-family-events {
  display: grid;
  gap: 0.7rem;
  padding: 1rem;
  border: 1px solid var(--luna-border);
  border-radius: var(--radius-lg);
  background: var(--luna-surface);
  box-shadow: 0 22px 60px rgba(92, 90, 87, 0.12);
}

.how-family-event {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.65rem;
  min-height: 3.5rem;
  padding: 0.75rem;
  border: 1px solid var(--luna-border);
  border-radius: 17px;
  background: color-mix(in srgb, var(--luna-surface-muted) 58%, var(--luna-surface));
  animation: howEventGlow 5.4s ease-in-out infinite;
}

.how-family-event.settings {
  animation-delay: 1.8s;
}

.how-family-event.emergency {
  background: #51423c;
  border-color: #51423c;
  animation-delay: 3.6s;
}

.how-family-event span {
  position: relative;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--luna-tile-checkin);
}

.how-family-event span::before,
.how-family-event span::after {
  content: "";
  position: absolute;
}

.how-family-event.ok span::before {
  left: 0.58rem;
  top: 0.52rem;
  width: 0.8rem;
  height: 0.46rem;
  border-left: 4px solid var(--luna-primary);
  border-bottom: 4px solid var(--luna-primary);
  transform: rotate(-45deg);
}

.how-family-event.settings span {
  background: var(--luna-tile-call);
}

.how-family-event.settings span::before {
  left: 0.5rem;
  top: 0.58rem;
  width: 1rem;
  height: 0.65rem;
  border: 3px solid var(--luna-accent-blue);
  border-radius: 4px;
}

.how-family-event.settings span::after {
  left: 0.56rem;
  top: 1.34rem;
  width: 0.9rem;
  height: 3px;
  border-radius: 999px;
  background: var(--luna-accent-blue);
}

.how-family-event.emergency span {
  background: var(--luna-error);
}

.how-family-event.emergency span::before {
  left: 0.88rem;
  top: 0.42rem;
  width: 0.24rem;
  height: 0.78rem;
  border-radius: 999px;
  background: #fffaf5;
}

.how-family-event.emergency span::after {
  left: 0.86rem;
  top: 1.33rem;
  width: 0.28rem;
  height: 0.28rem;
  border-radius: 50%;
  background: #fffaf5;
}

.how-family-event strong {
  color: var(--luna-ink);
  font-size: 1rem;
  line-height: 1.2;
}

.how-family-event.emergency strong {
  color: #fffaf5;
}

.how-contact-stack {
  display: grid;
  gap: 0.65rem;
}

.how-contact-stack span {
  display: grid;
  place-items: center;
  min-height: 3rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--luna-border);
  border-radius: 18px;
  background: var(--luna-surface);
  color: var(--luna-text);
  font-size: 0.88rem;
  font-weight: 750;
  box-shadow: 0 14px 38px rgba(92, 90, 87, 0.08);
  animation: howContactRing 5.4s ease-in-out infinite;
}

.how-contact-stack span:nth-child(2) {
  animation-delay: 0.55s;
}

.how-contact-stack span:nth-child(3) {
  animation-delay: 1.1s;
}

.how-short-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.how-short-steps li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.12rem 0.6rem;
  align-items: center;
  min-width: 0;
  padding: 0.8rem;
  border: 1px solid var(--luna-border);
  border-radius: var(--radius-md);
  background: rgba(255, 252, 248, 0.78);
}

.how-short-icon {
  grid-row: span 2;
  position: relative;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 13px;
  background: var(--luna-primary);
}

.how-short-icon.daily {
  background: var(--luna-accent-blue);
}

.how-short-icon.remote {
  background: var(--luna-accent-gold);
}

.how-short-icon.emergency {
  background: var(--luna-error);
}

.how-short-icon::before,
.how-short-icon::after {
  content: "";
  position: absolute;
  background: #fffaf5;
}

.how-short-icon.pair::before {
  left: 0.38rem;
  top: 0.95rem;
  width: 0.58rem;
  height: 0.58rem;
  border: 2.5px solid #fffaf5;
  border-radius: 50%;
  background: transparent;
  box-sizing: border-box;
}

.how-short-icon.pair::after {
  left: 1rem;
  top: 0.62rem;
  width: 0.58rem;
  height: 0.58rem;
  border: 2.5px solid #fffaf5;
  border-radius: 50%;
  background: transparent;
  box-sizing: border-box;
}

.how-short-icon.daily::before {
  left: 0.55rem;
  top: 0.78rem;
  width: 0.95rem;
  height: 0.5rem;
  background: transparent;
  border-left: 4px solid #fffaf5;
  border-bottom: 4px solid #fffaf5;
  transform: rotate(-45deg);
}

.how-short-icon.remote::before {
  left: 0.5rem;
  top: 0.62rem;
  width: 1.12rem;
  height: 0.72rem;
  background: transparent;
  border: 3px solid #fffaf5;
  border-radius: 4px;
}

.how-short-icon.remote::after {
  left: 0.62rem;
  top: 1.46rem;
  width: 0.9rem;
  height: 3px;
  border-radius: 999px;
}

.how-short-icon.emergency::before {
  left: 0.95rem;
  top: 0.48rem;
  width: 0.26rem;
  height: 0.85rem;
  border-radius: 999px;
}

.how-short-icon.emergency::after {
  left: 0.94rem;
  top: 1.46rem;
  width: 0.28rem;
  height: 0.28rem;
  border-radius: 50%;
}

.how-short-steps strong,
.how-short-steps small {
  display: block;
  min-width: 0;
}

.how-short-steps strong {
  color: var(--luna-ink);
  font-size: 0.98rem;
  line-height: 1.15;
}

.how-short-steps small {
  color: var(--luna-text-muted);
  font-size: 0.78rem;
  line-height: 1.25;
}

.how-actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.how-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.72rem 1.05rem;
  border-radius: 18px;
  font-weight: 700;
  text-decoration: none;
}

.how-link:hover {
  text-decoration: none;
}

.how-link.primary {
  background: var(--luna-primary);
  color: var(--luna-surface);
}

.how-link.secondary {
  border: 1px solid var(--luna-border);
  background: var(--luna-surface);
  color: var(--luna-text);
}

@keyframes howSignal {
  0% {
    left: 0;
    opacity: 0;
  }

  10%,
  86% {
    opacity: 1;
  }

  100% {
    left: 100%;
    opacity: 0;
  }
}

@keyframes howSignalVertical {
  0% {
    top: 0;
    opacity: 0;
  }

  10%,
  86% {
    opacity: 1;
  }

  100% {
    top: 100%;
    opacity: 0;
  }
}

@keyframes howTilePulse {
  0%,
  36%,
  100% {
    transform: none;
    box-shadow: none;
  }

  10%,
  22% {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(122, 158, 138, 0.18);
  }
}

@keyframes howEmergencyPulse {
  0%,
  58%,
  100% {
    transform: none;
    box-shadow: none;
  }

  72%,
  86% {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(196, 132, 122, 0.2);
  }
}

@keyframes howEventGlow {
  0%,
  100% {
    transform: none;
    box-shadow: none;
  }

  12%,
  28% {
    transform: translateX(3px);
    box-shadow: 0 12px 28px rgba(122, 158, 138, 0.14);
  }
}

@keyframes howContactRing {
  0%,
  68%,
  100% {
    border-color: var(--luna-border);
    transform: none;
  }

  78%,
  92% {
    border-color: var(--luna-error);
    transform: translateX(4px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .how-mini-tile.active,
  .how-mini-tile.emergency,
  .motion-dot,
  .how-family-event,
  .how-contact-stack span {
    animation: none;
  }
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 1rem;
}

.step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem 1.5rem;
  background: var(--luna-surface);
  border: 1px solid var(--luna-border);
  border-radius: var(--radius-md);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--luna-primary-soft);
  color: var(--luna-text);
  font-weight: 600;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
}

.step p {
  margin: 0.15rem 0 0;
}

.site-footer {
  padding: 2rem 0 max(2.5rem, env(safe-area-inset-bottom, 0px));
  text-align: center;
  font-size: 0.95rem;
  color: var(--luna-text-light);
  border-top: 1px solid var(--luna-border);
  margin-top: 1rem;
}

@media (max-width: 900px) {
  .doc-layout {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .doc-toc {
    position: static;
  }

  .doc-cards.two-col {
    grid-template-columns: 1fr;
  }

  .screenshot-gallery {
    grid-template-columns: 1fr;
  }

  .screenshot-card {
    display: grid;
    grid-template-columns: minmax(9rem, 13rem) minmax(0, 1fr);
    align-items: center;
  }

  .how-stage {
    grid-template-columns: minmax(210px, 0.9fr) minmax(260px, 1fr);
  }

  .how-motion-line {
    left: 24%;
    right: 24%;
    top: 43%;
  }

  .how-contact-stack {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 680px;
    width: 100%;
    margin: 0 auto;
  }

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

@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .site-nav {
    order: 3;
    flex: 1 1 100%;
    justify-content: flex-start;
    padding-top: 0.35rem;
    border-top: 1px solid var(--luna-border);
  }

  .lang-switch {
    flex: 0 0 auto;
  }

  .screenshot-card {
    display: flex;
  }

  .screenshot-frame {
    width: min(100%, 14rem);
  }
}

@media (max-width: 1160px) and (min-width: 769px) {
  .hero {
    min-height: auto;
    padding: 3rem 0 2rem;
    text-align: center;
  }

  .hero::after {
    background: linear-gradient(180deg, rgba(246, 242, 236, 0.97) 0%, rgba(246, 242, 236, 0.9) 62%, rgba(246, 242, 236, 0.26) 100%);
  }

  .hero-inner {
    min-height: 420px;
    align-items: flex-start;
    justify-content: center;
  }

  .hero-copy {
    max-width: 680px;
    margin: 0 auto;
  }

  .hero-kicker,
  .hero-actions {
    justify-content: center;
  }

  .hero .tagline,
  .hero-proof {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-scene {
    right: 0;
    bottom: -3rem;
    width: min(100%, 520px);
    height: 280px;
    min-height: 0;
    opacity: 0.45;
    transform: scale(0.88);
    transform-origin: bottom center;
  }

  .dashboard-preview {
    top: 0.5rem;
    right: 50%;
    width: min(360px, 72vw);
    transform: translateX(52%) rotate(1deg);
  }

  .hero:hover .dashboard-preview {
    transform: translateX(52%) translateY(-3px) rotate(1deg);
  }

  .phone-preview {
    left: 50%;
    bottom: -4rem;
    transform: translateX(-78%) rotate(-6deg) scale(0.68);
  }

  .hero:hover .phone-preview {
    transform: translateX(-78%) translateY(-3px) rotate(-6deg) scale(0.68);
  }

  .cards {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .container {
    width: min(1120px, calc(100% - 1.5rem));
  }

  .site-header {
    padding: 0.75rem 0;
    padding-top: max(0.75rem, env(safe-area-inset-top, 0px));
  }

  .header-inner {
    align-items: center;
    gap: 0.75rem;
  }

  .logo {
    gap: 0.45rem;
  }

  .logo img {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .logo span {
    font-size: 1.35rem;
  }

  .lang-switch select {
    max-width: min(9.5rem, 42vw);
    min-height: 2.75rem;
    font-size: 0.84rem;
  }

  .hero {
    min-height: auto;
    padding: 1.25rem 0 1.6rem;
    text-align: left;
  }

  .hero::after {
    background: linear-gradient(
      180deg,
      rgba(246, 242, 236, 0.98) 0%,
      rgba(246, 242, 236, 0.94) 100%
    );
  }

  .hero-inner {
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .hero-copy {
    order: 1;
    max-width: none;
    margin: 0;
    padding: 0;
  }

  .hero-kicker {
    justify-content: flex-start;
    max-width: none;
    margin-bottom: 0.85rem;
    font-size: 0.72rem;
    line-height: 1.35;
  }

  .hero h1 {
    margin-bottom: 0.8rem;
    font-size: 3.15rem;
    line-height: 1;
  }

  .hero .tagline {
    max-width: none;
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.42;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    gap: 0.55rem;
  }

  .hero-cta,
  .card-download {
    width: 100%;
    min-height: 2.95rem;
  }

  .hero-proof {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: none;
    margin-top: 0.75rem;
    gap: 0.45rem;
  }

  .proof-item {
    padding: 0.62rem 0.5rem;
    border-radius: 14px;
    text-align: center;
  }

  .proof-item strong {
    font-size: 0.82rem;
  }

  .proof-item span {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.68rem;
    line-height: 1.15;
  }

  .hero-scene {
    order: 2;
    position: relative;
    display: block;
    width: 100%;
    height: 210px;
    min-height: 0;
    margin-top: 1rem;
    overflow: hidden;
    right: auto;
    bottom: auto;
    opacity: 1;
    transform: none;
    border-radius: 24px;
    background:
      linear-gradient(110deg, rgba(255, 252, 248, 0.88), rgba(232, 239, 233, 0.72)),
      var(--luna-bg-tint);
  }

  .dashboard-preview {
    top: 1rem;
    right: -1.6rem;
    width: min(310px, 82vw);
    padding: 0.85rem;
    border-radius: 22px;
    transform: rotate(1deg);
    box-shadow: 0 18px 48px rgba(92, 90, 87, 0.13);
  }

  .hero:hover .dashboard-preview {
    transform: translateY(-2px) rotate(1deg);
  }

  .dashboard-preview > strong {
    font-size: 0.98rem;
  }

  .preview-topline {
    margin-bottom: 0.45rem;
    font-size: 0.68rem;
  }

  .dashboard-list {
    gap: 0.4rem;
    margin: 0.65rem 0;
  }

  .dashboard-row {
    gap: 0.45rem;
    padding: 0.42rem 0.5rem;
    border-radius: 13px;
  }

  .dashboard-row strong {
    font-size: 0.72rem;
  }

  .dashboard-row span {
    font-size: 0.62rem;
  }

  .dashboard-action {
    min-height: 2rem;
    margin-left: 4.4rem;
    padding: 0.45rem 0.75rem;
    border-radius: 13px;
    font-size: 0.68rem;
  }

  .phone-preview {
    left: 0.65rem;
    bottom: -1.3rem;
    width: 136px;
    min-height: 244px;
    padding: 0.48rem;
    border-width: 5px;
    border-radius: 23px;
    transform: rotate(-5deg);
    box-shadow: 0 18px 44px rgba(92, 90, 87, 0.18);
  }

  .hero:hover .phone-preview {
    transform: translateY(-2px) rotate(-5deg);
  }

  .phone-status {
    font-size: 0.48rem;
  }

  .phone-bars {
    width: 1.35rem;
    height: 0.42rem;
  }

  .phone-title {
    margin-top: 0.75rem;
    font-size: 0.76rem;
  }

  .phone-date {
    margin-bottom: 0.55rem;
    font-size: 0.62rem;
  }

  .phone-grid {
    gap: 0.35rem;
  }

  .preview-tile {
    min-height: 3.4rem;
    gap: 0.24rem;
    padding: 0.28rem;
    border-radius: 13px;
    font-size: 0.48rem;
  }

  .tile-symbol {
    width: 1.25rem;
    height: 1.25rem;
  }

  section {
    padding: 2rem 0;
  }

  section h2 {
    margin-bottom: 1.15rem;
    font-size: 1.35rem;
    line-height: 1.25;
    padding-inline: 0.15rem;
  }

  .how-section {
    padding: 2.6rem 0;
  }

  .how-head {
    margin-bottom: 1.25rem;
    text-align: left;
  }

  .how-head h2 {
    text-align: left;
  }

  .how-head p:last-child {
    font-size: 1rem;
    line-height: 1.5;
  }

  .how-stage {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    min-height: 0;
  }

  .how-device {
    width: 100%;
    max-width: 340px;
  }

  .how-senior {
    display: grid;
    justify-items: center;
  }

  .how-phone-mini {
    width: min(100%, 190px);
    min-height: 300px;
    transform: none;
  }

  .how-mini-tile {
    min-height: 4.7rem;
  }

  .how-motion-line {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    width: 4px;
    height: 58px;
    margin: -0.15rem auto;
  }

  .how-motion-line::before,
  .how-motion-line::after {
    left: 50%;
    top: auto;
    transform: translateX(-50%);
  }

  .how-motion-line::before {
    top: 0;
  }

  .how-motion-line::after {
    bottom: 0;
  }

  .motion-dot {
    left: 50%;
    top: 0;
    transform: translate(-50%, -50%);
    animation-name: howSignalVertical;
  }

  .how-family-events {
    padding: 0.8rem;
  }

  .how-family-event {
    min-height: 3.2rem;
    padding: 0.65rem;
  }

  .how-contact-stack {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    max-width: 340px;
    gap: 0.45rem;
  }

  .how-contact-stack span {
    min-height: 2.4rem;
    padding: 0.45rem 0.35rem;
    border-radius: 14px;
    font-size: 0.72rem;
  }

  .how-short-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
  }

  .how-short-steps li {
    padding: 0.65rem;
  }

  .how-short-icon {
    width: 1.95rem;
    height: 1.95rem;
    border-radius: 12px;
  }

  .how-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .how-link {
    width: 100%;
  }

  .cards {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .card {
    padding: 1.25rem;
  }

  .card h3 {
    font-size: 1.15rem;
  }

  .feature-card,
  .step {
    padding: 1rem 1.1rem;
  }

  .feature-card {
    min-height: 0;
  }

  .step {
    gap: 0.85rem;
  }

  .site-footer {
    padding-inline: 0.25rem;
    font-size: 0.9rem;
    line-height: 1.45;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(1120px, calc(100% - 1.25rem));
  }

  .lang-switch {
    flex: 1 1 auto;
    justify-content: flex-end;
    min-width: 0;
  }

  .lang-switch select {
    max-width: 100%;
    width: min(100%, 11rem);
  }

  .hero {
    padding-top: 1.35rem;
  }

  .hero-kicker {
    font-size: 0.7rem;
  }

  .hero .tagline {
    font-size: 1rem;
  }

  .hero-cta {
    padding: 0.72rem 0.95rem;
    font-size: 0.95rem;
  }

  .card-download {
    font-size: 0.92rem;
  }
}

@media (max-width: 360px) {
  .container {
    width: calc(100% - 1rem);
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-proof {
    gap: 0.35rem;
  }

  .proof-item {
    padding: 0.58rem 0.35rem;
  }

  .proof-item strong {
    font-size: 0.78rem;
  }

  .proof-item span {
    display: none;
  }
}
