:root {
  --bg-top: #f5f5f5;
  --bg-mid: #fafafa;
  --bg-bottom: #ffffff;
  --ink: #1a1608;
  --ink-soft: #5c5333;
  --line: rgba(26, 22, 8, 0.14);
  --accent: #f5c400;
  --accent-ink: #8a6a00;
  --surface: rgba(255, 255, 255, 0.72);
  --radius: 14px;
  --font-display: Arial, Helvetica, sans-serif;
  --font-body: Arial, Helvetica, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.55;
  background: #fff;
  background-attachment: scroll;
  position: relative;
  overflow-x: clip;
}

body > *:not(.light-smear) {
  position: relative;
  z-index: 1;
}

.light-smear {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.light-smear-inner {
  position: absolute;
  left: -8%;
  right: -8%;
  top: 18%;
  height: 52%;
  transform: rotate(-11deg);
}

.light-smear-svg {
  display: block;
  width: 100%;
  height: 100%;
}

.light-smear-glow {
  animation: smear-drift 7s ease-in-out infinite alternate;
  transform-origin: center;
}

a {
  color: inherit;
}

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

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 1rem 1.5rem 0.35rem;
  flex-shrink: 0;
}

.wordmark {
  margin: 0;
  line-height: 0;
}

.wordmark a {
  display: inline-block;
  color: inherit;
  text-decoration: none;
}

.wordmark-logo {
  display: block;
  width: clamp(4.5rem, 12vw, 6.5rem);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

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

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

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
}

.hero {
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
  padding: 0.5rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.65rem;
}

.lede {
  margin: -0.75rem 0 1.35rem;
  color: var(--ink-soft);
  font-size: clamp(1.25rem, 2.8vw, 1.5rem);
  line-height: 1.45;
  max-width: 36rem;
  animation: rise 0.9s ease both;
}

.download-panel {
  width: 100%;
  max-width: 720px;
  animation: rise 0.9s ease 0.18s both;
}

.download-head {
  margin-bottom: 1.35rem;
}

.download-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  letter-spacing: -0.03em;
  margin: 0;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1.15rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--ink);
  color: #fff;
}

.btn-primary:hover {
  background: #000;
}

.btn-secondary {
  background: #01875f;
  color: #fff;
  border: 1px solid #01875f;
}

.btn-secondary:hover {
  background: #016b4c;
  border-color: #016b4c;
}

.btn svg {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
}

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

.qr-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: left;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.qr-item img {
  width: 220px;
  height: 220px;
  flex-shrink: 0;
  background: #fff;
  border-radius: 10px;
  padding: 0.45rem;
}

.qr-item .btn {
  width: 100%;
  justify-content: center;
}

.qr-meta h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.qr-meta p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.legal-page {
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  text-align: left;
}

main:has(.legal-page) {
  justify-content: flex-start;
}

.legal-page h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
}

.legal-page .updated {
  color: var(--ink-soft);
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
}

.legal-page > .intro {
  margin-bottom: 0.5rem;
}

.legal-page section {
  margin-top: 0.25rem;
}

.legal-page h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  margin: 2rem 0 0.6rem;
  letter-spacing: -0.02em;
}

.legal-page p,
.legal-page li {
  color: var(--ink-soft);
}

.legal-page ul {
  padding-left: 1.2rem;
  margin: 0 0 0.75rem;
}

.legal-page li {
  margin-bottom: 0.45rem;
}

.legal-page .legal-nav {
  margin-top: 2.5rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 1.15rem;
  flex-wrap: wrap;
}

.legal-page .legal-nav a {
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
}

.legal-page .legal-nav a:hover {
  text-decoration: underline;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #f5f5f5;
  flex-shrink: 0;
  width: 100%;
  margin-top: auto;
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 1.35rem 1.5rem 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  gap: 1.15rem;
}

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

.footer-links a:hover {
  color: var(--ink);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes smear-drift {
  from {
    transform: translateY(-4%) scaleY(0.96);
  }
  to {
    transform: translateY(5%) scaleY(1.05);
  }
}

@media (max-width: 860px) {
  .qr-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .cta-row {
    flex-direction: column;
  }

  .btn {
    justify-content: center;
  }

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

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

  .light-smear-glow {
    transform: none;
  }
}
