/* Loki — "fawn & brindle", the same palette as the app. */
:root {
  --bg: #14110f;
  --panel: #1b1714;
  --raised: #2d2620;
  --line: #342c25;
  --fg: #f5ede2;
  --muted: #a99c8c;
  --accent: #eba95c;
  --accent-strong: #f2bc78;
  --accent-fg: #2a1806;
  --pink: #f28aa0;
  --radius: 20px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Nunito", system-ui, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(90% 60% at 0% 0%, rgb(235 169 92 / 0.08), transparent 60%),
    radial-gradient(70% 50% at 100% 30%, rgb(242 138 160 / 0.05), transparent 60%),
    repeating-linear-gradient(115deg, rgb(255 255 255 / 0.012) 0 2px, transparent 2px 9px);
}

a {
  color: var(--accent);
}

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

.wrap {
  width: min(1120px, 100% - 32px);
  margin-inline: auto;
}

.narrow {
  width: min(760px, 100% - 32px);
}

svg {
  width: 1.2em;
  height: 1.2em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: rgb(20 17 15 / 0.75);
  border-bottom: 1px solid rgb(52 44 37 / 0.6);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
  text-decoration: none;
  font-weight: 900;
  font-size: 22px;
}
.brand img {
  width: 36px;
}
.brand.small {
  font-size: 18px;
}
.brand.small img {
  width: 28px;
}
.nav-links {
  display: flex;
  gap: 22px;
  margin-left: auto;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
}
.nav-links a:hover {
  color: var(--fg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 14px;
  padding: 10px 18px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  background: var(--accent);
  color: var(--accent-fg);
  box-shadow: 0 10px 28px -12px var(--accent);
  transition:
    transform 0.15s,
    background 0.15s;
}
.btn:hover {
  background: var(--accent-strong);
}
.btn:active {
  transform: scale(0.97);
}
.btn-small {
  padding: 8px 16px;
  font-size: 15px;
}
.btn-big {
  padding: 16px 26px;
  font-size: 19px;
  border-radius: 18px;
}
.btn-ghost {
  background: var(--raised);
  color: var(--fg);
  box-shadow: none;
}
.btn-ghost:hover {
  background: var(--line);
}
.btn-ghost svg {
  color: var(--pink);
}

/* Hero */
.hero {
  padding: 72px 0 56px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}
.pill {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgb(235 169 92 / 0.12);
  color: var(--accent-strong);
  font-weight: 800;
  font-size: 14px;
}
h1 {
  font-size: clamp(36px, 5.2vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 18px 0 16px;
  font-weight: 900;
}
.lead {
  color: var(--muted);
  font-size: 19px;
  max-width: 560px;
  margin: 0 0 28px;
}
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.meta {
  color: var(--muted);
  font-size: 14px;
  margin-top: 14px;
}
.hero-art {
  position: relative;
  display: grid;
  place-items: center;
}
.hero-art::before {
  content: "";
  position: absolute;
  inset: 8% 6%;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(235 169 92 / 0.32), transparent 65%);
  filter: blur(10px);
}
.hero-face {
  position: relative;
  width: min(360px, 80%);
  animation: wag 2.4s ease-in-out infinite;
  filter: drop-shadow(0 18px 40px rgb(0 0 0 / 0.5));
}
.paws {
  position: relative;
  display: flex;
  gap: 14px;
  margin-top: 18px;
}
.paws span {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  animation: paw 1.4s ease-in-out infinite;
}
.paws span:nth-child(2) {
  animation-delay: 0.2s;
  transform: translateY(-6px);
}
.paws span:nth-child(3) {
  animation-delay: 0.4s;
}
@keyframes wag {
  0%,
  100% {
    transform: rotate(-3deg);
  }
  50% {
    transform: rotate(3deg);
  }
}
@keyframes paw {
  0%,
  100% {
    opacity: 0.25;
  }
  50% {
    opacity: 1;
  }
}

/* Sections */
.section {
  padding: 80px 0;
}
.section-tint {
  background: rgb(27 23 20 / 0.6);
  border-block: 1px solid rgb(52 44 37 / 0.5);
}
h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 10px;
  font-weight: 900;
  text-align: center;
}
.section-lead {
  color: var(--muted);
  text-align: center;
  margin: 0 auto 40px;
  max-width: 620px;
}
.section-lead.left,
.support h2 {
  text-align: left;
  margin-left: 0;
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  background: var(--panel);
  border: 1px solid rgb(52 44 37 / 0.8);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 14px 34px -22px rgb(0 0 0 / 0.8);
}
.card h3 {
  margin: 14px 0 6px;
  font-size: 19px;
  font-weight: 800;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
}
.icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgb(235 169 92 / 0.13);
  color: var(--accent);
  font-size: 20px;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.shot {
  margin: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.shot-wide {
  grid-column: 1 / -1;
}
.shot img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
}
.shot-wide img {
  aspect-ratio: 16 / 8;
}
.shot figcaption {
  padding: 12px 18px;
  color: var(--muted);
  font-weight: 700;
  font-size: 15px;
}

/* Support */
.support {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.pix-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 26px;
  box-shadow: 0 20px 50px -30px rgb(0 0 0 / 0.9);
}
.pix-label {
  color: var(--accent);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.pix-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 8px 0 4px;
  flex-wrap: wrap;
}
.pix-row code {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.02em;
  user-select: all;
}
.pix-receiver {
  color: var(--muted);
  font-size: 14px;
}
.pix-hint {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

/* PayPal */
.btn-paypal {
  margin-top: 6px;
  background: #ffc439;
  color: #1b1b1b;
  box-shadow: 0 10px 28px -14px #ffc439;
}
.btn-paypal:hover {
  background: #ffd36b;
}
.btn-paypal svg {
  color: #003087;
}
.paypal-hint {
  color: var(--muted);
  font-size: 14px;
  margin: 10px 0 0;
}

/* Story */
.story {
  display: flex;
  align-items: center;
  gap: 36px;
}
.story img {
  width: 140px;
  flex-shrink: 0;
}
.story h2 {
  text-align: left;
}
.story p {
  color: var(--muted);
  margin: 0;
  max-width: 640px;
}

/* FAQ */
details {
  background: var(--panel);
  border: 1px solid rgb(52 44 37 / 0.8);
  border-radius: 16px;
  padding: 4px 20px;
  margin-bottom: 10px;
}
details[open] {
  border-color: rgb(235 169 92 / 0.4);
}
summary {
  cursor: pointer;
  font-weight: 800;
  padding: 14px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
summary::-webkit-details-marker {
  display: none;
}
summary::after {
  content: "+";
  color: var(--accent);
  font-weight: 900;
  font-size: 20px;
  line-height: 1;
}
details[open] summary::after {
  content: "–";
}
details p {
  color: var(--muted);
  margin: 0 0 16px;
}

/* Releases */
.releases article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 22px;
  margin-bottom: 12px;
}
.releases h3 {
  margin: 0 0 4px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.releases time {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}
.releases ul {
  margin: 8px 0 0;
  padding-left: 20px;
  color: var(--muted);
}
.muted {
  color: var(--muted);
  text-align: center;
}

/* Footer */
.footer {
  padding: 40px 0 56px;
  border-top: 1px solid var(--line);
}
.footer-inner {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}
.footer p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (max-width: 860px) {
  .hero {
    padding-top: 40px;
  }
  .hero-grid,
  .support {
    grid-template-columns: 1fr;
  }
  .hero-art {
    order: -1;
  }
  .hero-face {
    width: 200px;
  }
  .features {
    grid-template-columns: 1fr 1fr;
  }
  .story {
    flex-direction: column;
    text-align: center;
  }
  .story h2 {
    text-align: center;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 16px;
  }
  .nav-links {
    display: none;
  }
  .nav .btn {
    margin-left: auto;
  }
  .features,
  .gallery {
    grid-template-columns: 1fr;
  }
  .btn-big {
    width: 100%;
    justify-content: center;
  }
  .pix-row code {
    font-size: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-face,
  .paws span {
    animation: none;
  }
}
