/* ============================================================
   Spoilr — shared site styles
   Color tokens are pulled directly from the app's theme.ts
   (light mode). Update here if the app palette changes.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,500&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@500&display=swap');

:root {
  --color-bg: #F7F4EE;
  --color-card: #FFFFFF;
  --color-text: #2D2B27;
  --color-text-light: #7A776F;

  --color-accent: #3C8C4E;
  --color-accent-soft: #E7F4EA;

  --color-warning: #E8A12A;
  --color-danger: #D9534F;

  --border-radius: 14px;
  --border-hairline: 1px solid rgba(45, 43, 39, 0.12);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-stamp: "JetBrains Mono", ui-monospace, monospace;

  --max-width: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

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

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Header ---------- */

.site-header {
  padding: 28px 0;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.logo:hover {
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 28px;
}

.site-nav a {
  color: var(--color-text-light);
  font-size: 15px;
  font-weight: 500;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--color-accent);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-card);
}

.btn-primary:hover {
  background: #326f3f;
  text-decoration: none;
}

/* ---------- Store badges (placeholders — not official artwork) ---------- */

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}

.store-badge {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 20px;
  border-radius: var(--border-radius);
  border: var(--border-hairline);
  background: var(--color-card);
  color: var(--color-text);
  cursor: default;
  opacity: 0.7;
}

.store-badge .store-badge-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--color-text-light);
}

.store-badge .store-badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.store-badge .store-badge-eyebrow {
  font-size: 11px;
  color: var(--color-text-light);
}

.store-badge .store-badge-name {
  font-size: 15px;
  font-weight: 600;
}

.store-badge .store-badge-status {
  margin-left: 4px;
  font-family: var(--font-stamp);
  font-size: 11px;
  color: var(--color-warning);
  border: 1px dashed var(--color-warning);
  border-radius: 6px;
  padding: 2px 7px;
  white-space: nowrap;
}

/* ---------- Hero ---------- */

.hero {
  padding: 56px 0 80px;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 52px;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 22px;
  max-width: 14ch;
}

.hero p.lead {
  font-size: 18px;
  color: var(--color-text-light);
  max-width: 46ch;
  margin: 0 0 30px;
}

.hero-art {
  background: var(--color-card);
  border-radius: 24px;
  border: var(--border-hairline);
  padding: 20px;
}

/* ---------- Sections ---------- */

section {
  padding: 64px 0;
}

section.on-card {
  background: var(--color-card);
  border-top: var(--border-hairline);
  border-bottom: var(--border-hairline);
}

.section-head {
  max-width: 56ch;
  margin-bottom: 40px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 32px;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}

.section-head p {
  color: var(--color-text-light);
  margin: 0;
  font-size: 16px;
}

/* ---------- Feature list ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature {
  padding-top: 20px;
  border-top: 2px solid var(--color-accent-soft);
}

.feature h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 10px;
}

.feature p {
  color: var(--color-text-light);
  font-size: 15px;
  margin: 0;
}

.feature .tag {
  display: inline-block;
  font-family: var(--font-stamp);
  font-size: 12px;
  color: var(--color-accent);
  background: var(--color-accent-soft);
  border-radius: 6px;
  padding: 3px 8px;
  margin-bottom: 14px;
}

/* ---------- Download section ---------- */

.download-section .wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: end;
}

/* ---------- Legal page content ---------- */

.legal-page main .wrap {
  padding-top: 56px;
  padding-bottom: 96px;
  max-width: 760px;
}

.legal-page h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 38px;
  margin: 0 0 8px;
}

.legal-updated {
  font-family: var(--font-stamp);
  font-size: 13px;
  color: var(--color-text-light);
  margin: 0 0 40px;
}

.placeholder-block {
  background: var(--color-card);
  border: 1px dashed var(--color-text-light);
  border-radius: var(--border-radius);
  padding: 28px 30px;
}

.placeholder-block .placeholder-label {
  display: inline-block;
  font-family: var(--font-stamp);
  font-size: 12px;
  color: var(--color-warning);
  border: 1px dashed var(--color-warning);
  border-radius: 6px;
  padding: 3px 9px;
  margin-bottom: 16px;
}

.placeholder-block p {
  color: var(--color-text-light);
  margin: 0 0 12px;
}

.placeholder-block p:last-child {
  margin-bottom: 0;
}

.placeholder-block code {
  font-family: var(--font-stamp);
  font-size: 13px;
  background: var(--color-accent-soft);
  color: #2a5c34;
  padding: 2px 6px;
  border-radius: 4px;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: var(--border-hairline);
  padding: 40px 0;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--color-text-light);
  font-size: 14px;
}

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

.footer-meta {
  font-size: 14px;
  color: var(--color-text-light);
}

/* ---------- Responsive ---------- */

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

  .hero h1 {
    font-size: 40px;
    max-width: none;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .download-section .wrap {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .site-nav {
    gap: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
