:root {
  color-scheme: dark;
  --bg: #1c1c1e;
  --bg-soft: #242426;
  --panel: #5f5f66;
  --text: #fff7ed;
  --muted: rgba(255, 247, 237, 0.74);
  --faint: rgba(255, 247, 237, 0.12);
  --brand: #d7c29a;
  --brand-strong: #f2ddba;
  --shadow: rgba(0, 0, 0, 0.32);
  --max: 820px;
  --page-max: 740px;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #fff7ed;
  --bg-soft: #f7eee3;
  --panel: #ffffff;
  --text: #1c1c1e;
  --muted: rgba(28, 28, 30, 0.72);
  --faint: rgba(28, 28, 30, 0.12);
  --brand: #b8a066;
  --brand-strong: #8b6f3d;
  --shadow: rgba(28, 28, 30, 0.12);
}

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

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  transition: background 180ms ease, color 180ms ease;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

a:hover {
  color: var(--brand-strong);
}

img {
  display: block;
  max-width: 100%;
  height: 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;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.site-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  overflow-y: visible;
  width: min(100%, 1600px);
  margin-inline: auto;
}

.landing {
  flex: 1;
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 0;
  padding: 3rem 1rem 1.5rem;
  position: relative;
}

.landing__inner {
  width: min(100%, 560px);
  margin-inline: auto;
  text-align: center;
  z-index: 2;
}

.brand-lockup {
  display: flex;
  justify-content: center;
  margin-bottom: 2.45rem;
}

.brand-lockup img {
  width: min(100%, 520px);
}

[data-theme="dark"] .logo-light,
[data-theme="light"] .logo-dark,
[data-theme="dark"] .store-light,
[data-theme="light"] .store-dark,
[data-theme="dark"] .theme-dark,
[data-theme="light"] .theme-light {
  display: none;
}

.landing-copy {
  margin: 0 auto;
  max-width: 500px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.08rem);
  line-height: 1.82;
}

.store-row {
  display: flex;
  justify-content: center;
  gap: 0.95rem;
  margin-top: 3.1rem;
  flex-wrap: wrap;
}

.store-badge {
  display: grid;
  gap: 0.45rem;
  justify-items: center;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  user-select: none;
}

.store-badge img {
  width: 240px;
  border-radius: 9px;
  opacity: 0.82;
  filter: grayscale(0.2);
}

.store-badge span {
  opacity: 0.82;
}

.photo-stack {
  position: absolute;
  width: clamp(315px, 28vw, 405px);
  height: 660px;
  pointer-events: none;
  user-select: none;
  opacity: 0.98;
}

.photo-stack--left {
  left: clamp(20px, 4vw, 72px);
  top: 50%;
  transform: translateY(-50%);
}

.photo-stack--right {
  right: clamp(20px, 4vw, 72px);
  top: 50%;
  transform: translateY(-50%);
}

.photo-stack--bottom {
  display: none;
}

.photo-card {
  position: absolute;
  width: 48%;
  filter: drop-shadow(0 24px 18px var(--shadow));
  opacity: 0;
  transform: translateY(-96px) rotate(var(--r));
  animation: paperDrop 900ms cubic-bezier(0.18, 0.86, 0.26, 1.08) forwards;
}

.photo-card:nth-child(1) {
  left: 1%;
  top: 0;
  --r: -21deg;
  animation-delay: 90ms;
}

.photo-card:nth-child(2) {
  left: 37%;
  top: 154px;
  --r: -39deg;
  animation-delay: 220ms;
}

.photo-card:nth-child(3) {
  left: 11%;
  top: 330px;
  --r: 18deg;
  animation-delay: 350ms;
}

.photo-stack--right .photo-card:nth-child(1) {
  left: 50%;
  top: 0;
  --r: -15deg;
}

.photo-stack--right .photo-card:nth-child(2) {
  left: 20%;
  top: 166px;
  --r: 17deg;
}

.photo-stack--right .photo-card:nth-child(3) {
  left: 48%;
  top: 350px;
  --r: -18deg;
}

.footer-nav {
  position: relative;
  z-index: 3;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.9rem;
  padding: 1.5rem 1rem 2rem;
  font-size: 0.85rem;
  color: var(--muted);
}

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

.theme-toggle {
  width: 34px;
  height: 34px;
  padding: 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.theme-toggle:hover {
  background: var(--faint);
}

.page {
  min-height: 100vh;
  padding: 5rem 1rem 1.25rem;
}

.page__logo {
  width: 48px;
  margin-bottom: 3.2rem;
}

.page h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.9rem, 5vw, 2.55rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.updated {
  margin: 0 0 3.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.content {
  max-width: var(--page-max);
}

.content h2 {
  margin: 3.4rem 0 1.05rem;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

.content p,
.content li {
  color: var(--muted);
}

.content p {
  margin: 0 0 1rem;
}

.content ul {
  margin: 0 0 1.1rem;
  padding-left: 1.25rem;
}

.content li {
  margin-bottom: 0.4rem;
}

.contact-box,
.faq details {
  background: var(--panel);
  border: 1px solid var(--faint);
  border-radius: 4px;
}

.contact-box {
  padding: 1.45rem 1.6rem;
  margin: 0 0 3.75rem;
}

.contact-box p {
  margin: 0;
}

.faq {
  display: grid;
  gap: 0.8rem;
  margin: 1.55rem 0 3.3rem;
}

.faq details {
  padding: 0;
  overflow: hidden;
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  cursor: pointer;
  font-weight: 700;
  color: var(--text);
  list-style: none;
  padding: 1.05rem 1.2rem;
}

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

.faq summary::after {
  content: "";
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  border-right: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  transform: rotate(45deg);
  transition: transform 180ms ease;
}

.faq details[open] summary::after {
  transform: rotate(225deg);
}

.faq p {
  margin: 0;
  padding: 0.15rem 1.2rem 1.35rem;
  font-size: 0.95rem;
}

.page-footer {
  width: min(100% - 2rem, var(--max));
  margin: 5.4rem auto 0;
}

.page-footer .footer-nav {
  padding-inline: 0;
}

@media (max-width: 840px) {
  .site-shell {
    display: block;
    width: 100%;
    min-height: 100svh;
    overflow: hidden;
  }

  .landing {
    display: block;
    padding: 5.9rem 1rem 0;
    min-height: auto;
    overflow: visible;
  }

  .landing__inner {
    width: min(100%, 340px);
  }

  .brand-lockup {
    margin-bottom: 3.15rem;
  }

  .brand-lockup img {
    width: 266px;
  }

  .landing-copy {
    font-size: 1.1rem;
    line-height: 1.62;
  }

  .store-row {
    display: grid;
    gap: 1.15rem;
    margin-top: 3rem;
  }

  .store-badge img {
    width: 252px;
  }

  .store-badge span {
    font-size: 0.75rem;
  }

  .photo-stack--left,
  .photo-stack--right {
    display: none;
  }

  .photo-stack--bottom {
    display: block;
    position: relative;
    width: min(122vw, 540px);
    left: 50%;
    bottom: auto;
    transform: translateX(-50%);
    height: 220px;
    margin: 3.35rem 0 -72px;
    opacity: 1;
  }

  .photo-stack--bottom .photo-card {
    width: 43%;
  }

  .photo-stack--bottom .photo-card:nth-child(1) {
    left: -6%;
    top: 52px;
    --r: -8deg;
  }

  .photo-stack--bottom .photo-card:nth-child(2) {
    left: 28%;
    top: 52px;
    --r: 2deg;
  }

  .photo-stack--bottom .photo-card:nth-child(3) {
    left: 62%;
    top: 52px;
    --r: 10deg;
  }

  .footer-nav {
    gap: 1.35rem;
    padding: 4.2rem 1rem 0;
  }

  .page {
    padding-top: 3.25rem;
  }
}

@keyframes paperDrop {
  0% {
    opacity: 0;
    transform: translateY(-120px) rotate(calc(var(--r) - 8deg)) scale(0.94);
  }
  68% {
    opacity: 1;
    transform: translateY(8px) rotate(calc(var(--r) + 1.5deg)) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotate(var(--r)) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .photo-card {
    opacity: 1;
    animation: none;
    transform: rotate(var(--r));
  }
}
