:root {
  color-scheme: light;
  --bg: #f4f7fb;
  --bg-soft: #eef3f9;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: #ffffff;
  --line: rgba(82, 101, 128, 0.14);
  --line-strong: rgba(82, 101, 128, 0.22);
  --text: #152033;
  --muted: #5f6f85;
  --accent: #2d799a;
  --accent-strong: #1f5d7a;
  --accent-soft: rgba(45, 121, 154, 0.12);
  --success: #3c8b6d;
  --shadow-lg: 0 30px 80px rgba(17, 31, 52, 0.10);
  --shadow-md: 0 18px 40px rgba(17, 31, 52, 0.08);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(172, 219, 240, 0.32), transparent 30%),
    radial-gradient(circle at top right, rgba(255, 214, 186, 0.25), transparent 24%),
    linear-gradient(180deg, #f8fbff 0%, var(--bg) 34%, #eef3f8 100%);
}

a {
  color: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  padding-top: 16px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 30px rgba(17, 31, 52, 0.06);
  backdrop-filter: blur(14px);
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ffffff, #d9edf5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  color: var(--accent-strong);
  font-size: 1.15rem;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

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

.brand-tagline {
  font-size: 0.82rem;
  color: var(--muted);
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(245, 248, 252, 0.9);
  border: 1px solid rgba(82, 101, 128, 0.12);
}

.lang-switcher a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 700;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.lang-switcher a:hover,
.lang-switcher a:focus-visible {
  background: var(--accent-soft);
  color: var(--accent-strong);
  outline: none;
  transform: translateY(-1px);
}

.lang-switcher a[aria-current="page"] {
  background: var(--accent);
  color: #fff;
}

.hero {
  padding: 48px 0 28px;
}

.hero-grid {
  display: grid;
  gap: 28px;
  align-items: center;
}

.hero-copy,
.hero-visual {
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(82, 101, 128, 0.12);
  color: var(--accent-strong);
  font-size: 0.88rem;
  font-weight: 700;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 6px rgba(60, 139, 109, 0.12);
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.03em;
}

h1 {
  margin-top: 18px;
  font-size: clamp(2.6rem, 8vw, 4.8rem);
  line-height: 0.98;
}

.hero-description {
  max-width: 34rem;
  margin: 18px 0 0;
  font-size: clamp(1.02rem, 2.8vw, 1.18rem);
  line-height: 1.75;
  color: var(--muted);
}

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

.store-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 180px;
  padding: 12px 16px;
  border-radius: 18px;
  text-decoration: none;
  border: 1px solid rgba(17, 31, 52, 0.08);
  box-shadow: var(--shadow-md);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.store-button:hover,
.store-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 22px 42px rgba(17, 31, 52, 0.12);
  border-color: rgba(45, 121, 154, 0.22);
  outline: none;
}

.store-button.primary {
  background: linear-gradient(180deg, #20314a, #182435);
  color: #fff;
}

.store-button.secondary {
  background: rgba(255, 255, 255, 0.9);
}

.store-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.store-button.primary .store-icon {
  background: rgba(255, 255, 255, 0.12);
}

.store-button.secondary .store-icon {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.store-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.store-label span {
  font-size: 0.74rem;
  opacity: 0.82;
}

.store-label strong {
  font-size: 1rem;
}

.hero-note {
  margin-top: 18px;
  font-size: 0.92rem;
  color: var(--muted);
}

.hero-stage {
  position: relative;
  padding: 26px;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.68));
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

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

.hero-stage::before {
  width: 220px;
  height: 220px;
  top: -100px;
  right: -80px;
  background: rgba(45, 121, 154, 0.14);
}

.hero-stage::after {
  width: 140px;
  height: 140px;
  bottom: -50px;
  left: -30px;
  background: rgba(255, 190, 142, 0.2);
}

.device-stack {
  display: grid;
  gap: 18px;
}

.phone-mockup {
  position: relative;
  max-width: 320px;
  margin: 0 auto;
  padding: 14px;
  border-radius: 36px;
  background: linear-gradient(180deg, #22314c, #161f31);
  box-shadow: 0 26px 60px rgba(17, 31, 52, 0.2);
}

.phone-mockup::before {
  content: "";
  display: block;
  width: 34%;
  height: 18px;
  margin: 0 auto 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.screen {
  padding: 18px;
  border-radius: 28px;
  background: linear-gradient(180deg, #fefefe, #f4f8fb);
  min-height: 560px;
}

.screen-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.screen-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.screen-title strong {
  font-size: 1rem;
}

.screen-title span,
.mini-card p,
.timeline-meta,
.screen-footer {
  color: var(--muted);
}

.avatar-dot {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 700;
}

.pet-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.mini-card,
.timeline,
.feature-card,
.screen-card,
.download-panel,
.footer-panel {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-md);
}

.mini-card {
  padding: 14px;
  border-radius: 20px;
}

.mini-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.94rem;
}

.mini-card p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
}

.timeline {
  padding: 16px;
  border-radius: 24px;
}

.timeline-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
}

.timeline-item + .timeline-item {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(82, 101, 128, 0.12);
}

.timeline-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.95rem;
}

.timeline-body strong {
  display: block;
  font-size: 0.95rem;
}

.timeline-meta {
  display: block;
  margin-top: 4px;
  font-size: 0.84rem;
}

.screen-footer {
  margin-top: 16px;
  font-size: 0.84rem;
  text-align: center;
}

.section {
  padding: 34px 0;
}

.section-heading {
  max-width: 640px;
  margin-bottom: 24px;
}

.section-heading h2 {
  font-size: clamp(1.9rem, 5vw, 3rem);
  line-height: 1.06;
}

.section-heading p {
  margin: 14px 0 0;
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--muted);
}

.feature-grid,
.screen-grid,
.download-grid,
.footer-grid {
  display: grid;
  gap: 16px;
}

.feature-card {
  padding: 22px;
  border-radius: var(--radius-lg);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: linear-gradient(180deg, #f3fbff, #ddeff7);
  color: var(--accent-strong);
  font-size: 1.25rem;
}

.feature-card h3,
.screen-card h3,
.download-panel h2 {
  font-size: 1.15rem;
}

.feature-card p,
.screen-card p,
.download-panel p,
.footer-copy p,
.footer-links a,
.qr-caption {
  color: var(--muted);
}

.feature-card p,
.screen-card p,
.download-panel p {
  margin: 10px 0 0;
  line-height: 1.7;
  font-size: 0.96rem;
}

.screen-grid {
  align-items: stretch;
}

.screen-card {
  padding: 18px;
  border-radius: 28px;
}

.screen-card .screen-shell {
  min-height: 330px;
  padding: 16px;
  border-radius: 24px;
  background: linear-gradient(180deg, #fbfdff, #eef3f7);
}

.screen-shell-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.screen-shell-header strong {
  font-size: 1rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(60, 139, 109, 0.12);
  color: var(--success);
  font-size: 0.78rem;
  font-weight: 700;
}

.bar-list,
.tile-list,
.share-list {
  display: grid;
  gap: 10px;
}

.bar-item,
.tile-item,
.share-item {
  border-radius: 18px;
  background: var(--surface-strong);
  border: 1px solid rgba(82, 101, 128, 0.12);
}

.bar-item {
  padding: 12px;
}

.bar-item strong,
.tile-item strong,
.share-item strong {
  display: block;
  font-size: 0.94rem;
}

.bar-track {
  margin-top: 10px;
  height: 8px;
  border-radius: 999px;
  background: #ebf1f5;
  overflow: hidden;
}

.bar-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8dc9df, var(--accent));
}

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

.tile-item,
.share-item {
  padding: 14px;
}

.tile-item span,
.share-item span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.86rem;
}

.calendar-card {
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(82, 101, 128, 0.12);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.calendar-grid span {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 12px;
  font-size: 0.8rem;
  color: var(--muted);
  background: rgba(239, 244, 249, 0.9);
}

.calendar-grid span.active {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}

.download-panel,
.footer-panel {
  padding: 24px;
  border-radius: var(--radius-lg);
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.qr-grid {
  display: grid;
  gap: 14px;
}

.qr-card {
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(82, 101, 128, 0.12);
  box-shadow: var(--shadow-md);
}

.qr-box {
  aspect-ratio: 1;
  width: min(100%, 180px);
  border-radius: 18px;
  margin-bottom: 12px;
  background:
    linear-gradient(90deg, transparent 20%, #0f1728 20%, #0f1728 40%, transparent 40%, transparent 60%, #0f1728 60%, #0f1728 80%, transparent 80%),
    linear-gradient(transparent 20%, #0f1728 20%, #0f1728 40%, transparent 40%, transparent 60%, #0f1728 60%, #0f1728 80%, transparent 80%),
    linear-gradient(135deg, #ffffff, #eef3f7);
  background-size: 22px 22px, 22px 22px, auto;
  background-position: 0 0, 11px 11px, center;
  border: 10px solid #fff;
  box-shadow: inset 0 0 0 1px rgba(82, 101, 128, 0.12);
}

.qr-card strong {
  display: block;
  font-size: 0.98rem;
}

.qr-caption {
  margin-top: 8px;
  font-size: 0.9rem;
  line-height: 1.55;
}

.footer {
  padding: 10px 0 40px;
}

.footer-grid {
  align-items: center;
}

.footer-copy p {
  margin: 8px 0 0;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  margin-top: 18px;
}

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

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--accent-strong);
  outline: none;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.copyright {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.desktop-only {
  display: none;
}

.invite-page {
  min-height: 100vh;
}

.invite-main {
  display: grid;
  place-items: center;
  padding: 40px 0 56px;
}

.invite-shell {
  width: min(calc(100% - 32px), 760px);
  margin: 0 auto;
}

.invite-card {
  position: relative;
  padding: 28px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.82));
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

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

.invite-card::before {
  width: 220px;
  height: 220px;
  top: -96px;
  right: -64px;
  background: rgba(45, 121, 154, 0.1);
}

.invite-card::after {
  width: 160px;
  height: 160px;
  bottom: -64px;
  left: -40px;
  background: rgba(255, 190, 142, 0.18);
}

.invite-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.invite-title {
  margin-top: 18px;
  font-size: clamp(2.1rem, 8vw, 3.4rem);
  line-height: 1.02;
}

.invite-description {
  max-width: 34rem;
  margin: 18px auto 0;
  font-size: clamp(1rem, 2.8vw, 1.14rem);
  line-height: 1.75;
  color: var(--muted);
}

.invite-actions {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.invite-button {
  min-width: 220px;
  justify-content: center;
}

.invite-button[hidden],
.invite-fallback[hidden] {
  display: none;
}

.invite-fallback {
  max-width: 32rem;
  margin: 20px auto 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--muted);
}

.invite-note {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(82, 101, 128, 0.12);
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--muted);
}

.invite-error .eyebrow::before {
  background: #cb5f5f;
  box-shadow: 0 0 0 6px rgba(203, 95, 95, 0.14);
}

@media (min-width: 720px) {
  .hero {
    padding: 56px 0 40px;
  }

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

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

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.02fr) minmax(380px, 0.98fr);
    gap: 40px;
  }

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

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

  .download-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    align-items: center;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .desktop-only {
    display: block;
  }
}

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

  .invite-shell {
    width: min(calc(100% - 24px), 760px);
  }

  .topbar {
    padding: 12px;
  }

  .brand-tagline {
    display: none;
  }

  .hero-stage {
    padding: 20px;
  }

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

  .screen {
    min-height: auto;
  }

  .invite-card {
    padding: 24px 18px;
  }

  .invite-button {
    width: 100%;
  }
}
