:root {
  --bg: #edf3fb;
  --bg-top: #f9fbff;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-strong: #ffffff;
  --surface-soft: #f5f8fe;
  --text: #152238;
  --text-soft: #5e6d82;
  --text-strong: #0f1728;
  --border: rgba(24, 44, 86, 0.12);
  --primary: #235ce1;
  --primary-soft: #eaf1ff;
  --primary-soft-strong: #dfe9ff;
  --shadow-lg: 0 28px 80px rgba(24, 43, 87, 0.12);
  --shadow-md: 0 18px 38px rgba(16, 24, 40, 0.08);
  --shadow-sm: 0 10px 24px rgba(16, 24, 40, 0.05);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --max-width: 1160px;
  --content-width: 820px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --focus: 0 0 0 4px rgba(35, 92, 225, 0.18);
}

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

html {
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(35, 92, 225, 0.12), transparent 28%),
    radial-gradient(circle at top right, rgba(116, 161, 255, 0.12), transparent 22%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg) 100%);
}

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

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-shell {
  width: min(100% - 2rem, var(--max-width));
  margin: 0 auto;
  padding: 2.2rem 0 3.8rem;
}

.route-view {
  display: none;
}

.route-view.is-visible {
  display: block;
}

.page-card {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(247,250,255,0.99) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: clamp(1.25rem, 2.5vw, 2.4rem);
  overflow: hidden;
}

.page-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(35, 92, 225, 0.25) 50%, transparent 100%);
}

.hero-header {
  display: grid;
  gap: 1.1rem;
  margin-bottom: 1.8rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(24, 44, 86, 0.08);
  max-width: var(--content-width);
}

.hero-header--compact {
  margin-bottom: 1.5rem;
}

.brand-lockup {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
}

.brand-copy {
  display: grid;
  gap: 0.25rem;
}

.app-logo {
  width: 4.2rem;
  height: 4.2rem;
  border-radius: 26%;
  object-fit: cover;
  background: #ffffff;
  box-shadow: 0 16px 28px rgba(35, 92, 225, 0.18);
}

.app-label {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.93rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

h1 {
  margin: 0;
  color: var(--text-strong);
  font-size: clamp(2rem, 4.4vw, 3.15rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

h2 {
  margin: 0;
  color: var(--text-strong);
  font-size: clamp(1.1rem, 2vw, 1.28rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-intro {
  margin: 0.25rem 0 0;
  max-width: 60ch;
  color: var(--text-soft);
  font-size: 1.03rem;
  line-height: 1.7;
}

.platform-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.platform-pill {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.38rem 0.85rem;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.platform-pill--soft {
  background: var(--surface-soft);
  color: var(--text-soft);
  border: 1px solid rgba(24, 44, 86, 0.08);
}

.qualtrics-stack {
  display: grid;
  gap: 1.4rem;
  max-width: var(--content-width);
}

.install-step-card,
.visual-card,
.support-card,
.desktop-actions-card,
.debug-card {
  background: rgba(255,255,255,0.96);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.install-step-card {
  display: grid;
  gap: 1rem;
  padding: 1.15rem;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(245,248,254,0.82) 100%);
}

.install-step-card--single {
  max-width: 680px;
  margin: 0 auto;
}

.step-heading {
  display: grid;
  gap: 0.55rem;
}

.step-badge {
  width: fit-content;
  min-height: 1.9rem;
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  background: var(--primary-soft-strong);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.visual-card {
  padding: 0.9rem;
}

.visual-card--wide {
  padding: 0.95rem;
}

.primary-visual {
  width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: var(--radius-sm);
}

.center-cta {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.15rem 0 0.1rem;
}

.badge-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.15rem;
  border-radius: 18px;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

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

.badge-link:focus-visible,
.support-card summary:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.badge-link img {
  display: block;
  max-width: min(252px, 72vw);
  height: auto;
}

.badge-link--compact img {
  max-width: min(230px, 70vw);
}

.support-card {
  overflow: hidden;
}

.support-card summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 0.8rem;
  align-items: center;
  padding: 1rem 3rem 1rem 1rem;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.92) 0%, rgba(245,248,254,0.8) 100%);
  font-weight: 700;
}

.support-card summary::-webkit-details-marker {
  display: none;
}

.summary-icon img {
  width: 20px;
  height: 20px;
}

.support-card summary::after {
  content: "+";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  font-size: 1.45rem;
  line-height: 1;
}

.support-card[open] summary::after {
  content: "–";
}

.support-card__content {
  padding: 0 1rem 1rem;
  color: var(--text-soft);
}

.support-card__content p {
  margin: 0 0 0.85rem;
  line-height: 1.65;
}

.support-card__content img {
  width: 100%;
  border-radius: var(--radius-sm);
}

.page-card--desktop {
  padding-top: clamp(1.5rem, 3vw, 2.6rem);
}

.desktop-layout {
  display: grid;
  grid-template-columns: minmax(340px, 440px) minmax(420px, 1fr);
  gap: 2.4rem;
  align-items: stretch;
}

.desktop-copy {
  display: grid;
  gap: 1.1rem;
  align-content: start;
}

.desktop-oops-wrap {
  display: grid;
  gap: 0.65rem;
}

.oops-title {
  margin: 0;
  color: var(--text-strong);
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.desktop-copy__lead {
  margin: 0;
  color: var(--text-strong);
  font-size: clamp(1.28rem, 2.8vw, 1.72rem);
  line-height: 1.28;
  max-width: 24ch;
}

.desktop-copy__sub {
  margin: 0;
  color: var(--text-soft);
  font-size: 1.04rem;
  line-height: 1.68;
  max-width: 56ch;
}

.desktop-actions-card {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(245,248,254,0.84) 100%);
}

.desktop-cta-title {
  margin: 0;
  color: var(--text-strong);
  font-size: 1rem;
  line-height: 1.55;
}

.desktop-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
}

.desktop-badges--stacked {
  flex-direction: column;
  align-items: flex-start;
}

.desktop-qr-callout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(243,247,253,0.88) 100%);
  border: 1px solid rgba(24, 44, 86, 0.09);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.desktop-qr-copy {
  display: grid;
  gap: 0.3rem;
}

.desktop-qr-title {
  margin: 0;
  color: var(--text-strong);
  font-size: 1rem;
  font-weight: 800;
}

.desktop-qr-text {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.96rem;
  line-height: 1.58;
}

.desktop-current-link {
  width: fit-content;
  color: var(--primary);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  word-break: break-all;
}

.desktop-current-link:hover {
  text-decoration: underline;
}

.desktop-live-qr {
  width: 150px;
  height: 150px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(24, 44, 86, 0.10);
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.08);
}

.desktop-illustration-panel {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
  min-height: 100%;
}

.fun-illustration {
  width: 100%;
  max-width: 620px;
  height: 100%;
  min-height: 560px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 24px 52px rgba(16, 24, 40, 0.10);
  object-fit: cover;
  object-position: center;
}

.fun-illustration--gif {
  aspect-ratio: auto;
}

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

.qtr-debug {
  margin-top: 1rem;
}

.debug-card {
  padding: 1rem;
}

.qtr-json {
  min-height: 16rem;
  overflow: auto;
  margin: 0.8rem 0 0;
  padding: 1rem;
  border-radius: 18px;
  background: #0f1728;
  color: #e7eefc;
  border: 1px solid rgba(16, 24, 40, 0.12);
  font-size: 0.92rem;
  line-height: 1.55;
}

.badge-link img,
.primary-visual,
.support-card__content img,
.fun-illustration,
.desktop-live-qr,
.app-logo {
  user-select: none;
  -webkit-user-drag: none;
}

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

  .desktop-illustration-panel {
    justify-content: start;
  }

  .fun-illustration {
    width: min(100%, 560px);
    min-height: 360px;
    height: auto;
  }

  .desktop-qr-callout {
    grid-template-columns: 1fr;
    justify-items: start;
  }
}

@media (max-width: 720px) {
  .site-shell {
    width: min(100% - 1rem, var(--max-width));
    padding-top: 1rem;
  }

  .page-card {
    padding: 1rem;
    border-radius: 26px;
  }

  .hero-header {
    margin-bottom: 1.35rem;
    padding-bottom: 1rem;
  }

  .brand-lockup {
    gap: 0.85rem;
  }

  .app-logo {
    width: 3.6rem;
    height: 3.6rem;
  }

  .qualtrics-stack {
    gap: 1.1rem;
  }

  .install-step-card {
    padding: 0.9rem;
  }

  .desktop-actions-card {
    padding: 0.9rem;
  }

  .desktop-live-qr {
    width: 132px;
    height: 132px;
  }

  .badge-link img,
  .badge-link--compact img {
    max-width: min(240px, 80vw);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
