/* Stickah Pro — iMessage sticker-pack marketing site */

:root {
  color-scheme: light dark;
  --bg: #e9e9ef;
  --bg-mid: #f2f2f7;
  --bg-deep: #d8d8e0;
  --bg-glow: #ffffff;
  --surface: #f5f5f8;
  --ink: #1c1c1e;
  --ink-soft: #3a3a3c;
  --muted: #6e6e73;
  --line: rgba(60, 60, 67, 0.14);
  --accent: #34c759;
  --accent-deep: #248a3d;
  --accent-soft: rgba(52, 199, 89, 0.14);
  --bubble: #ffffff;
  --tray-top: #ffffff;
  --tray-bottom: #f0f0f5;
  --sticker-bg: #ebebf0;
  --sticker-border: rgba(255, 255, 255, 0.7);
  --feature-bg: rgba(255, 255, 255, 0.72);
  --callout-top: #ffffff;
  --callout-bottom: #eefaf1;
  --callout-border: rgba(52, 199, 89, 0.28);
  --header-bg: rgba(242, 242, 247, 0.78);
  --theme-btn: rgba(60, 60, 67, 0.08);
  --theme-btn-hover: rgba(60, 60, 67, 0.14);
  --shadow: 0 10px 30px rgba(28, 28, 30, 0.08);
  --radius: 22px;
  --max: 980px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "Helvetica Neue", Helvetica, Arial, sans-serif;
  --theme-color: #f2f2f7;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #1c1c1e;
    --bg-mid: #000000;
    --bg-deep: #000000;
    --bg-glow: rgba(60, 60, 67, 0.45);
    --surface: #2c2c2e;
    --ink: #f5f5f7;
    --ink-soft: #d1d1d6;
    --muted: #98989d;
    --line: rgba(235, 235, 245, 0.14);
    --accent: #30d158;
    --accent-deep: #30d158;
    --accent-soft: rgba(48, 209, 88, 0.16);
    --bubble: #2c2c2e;
    --tray-top: #2c2c2e;
    --tray-bottom: #1c1c1e;
    --sticker-bg: #3a3a3c;
    --sticker-border: rgba(255, 255, 255, 0.08);
    --feature-bg: rgba(44, 44, 46, 0.85);
    --callout-top: #1f2a22;
    --callout-bottom: #162019;
    --callout-border: rgba(48, 209, 88, 0.28);
    --header-bg: rgba(28, 28, 30, 0.82);
    --theme-btn: rgba(235, 235, 245, 0.08);
    --theme-btn-hover: rgba(235, 235, 245, 0.14);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    --theme-color: #1c1c1e;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #1c1c1e;
  --bg-mid: #000000;
  --bg-deep: #000000;
  --bg-glow: rgba(60, 60, 67, 0.45);
  --surface: #2c2c2e;
  --ink: #f5f5f7;
  --ink-soft: #d1d1d6;
  --muted: #98989d;
  --line: rgba(235, 235, 245, 0.14);
  --accent: #30d158;
  --accent-deep: #30d158;
  --accent-soft: rgba(48, 209, 88, 0.16);
  --bubble: #2c2c2e;
  --tray-top: #2c2c2e;
  --tray-bottom: #1c1c1e;
  --sticker-bg: #3a3a3c;
  --sticker-border: rgba(255, 255, 255, 0.08);
  --feature-bg: rgba(44, 44, 46, 0.85);
  --callout-top: #1f2a22;
  --callout-bottom: #162019;
  --callout-border: rgba(48, 209, 88, 0.28);
  --header-bg: rgba(28, 28, 30, 0.82);
  --theme-btn: rgba(235, 235, 245, 0.08);
  --theme-btn-hover: rgba(235, 235, 245, 0.14);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --theme-color: #1c1c1e;
}

:root[data-theme="light"] {
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem;
}

#features {
  scroll-margin-top: 4.5rem;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.015em;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(1200px 600px at 50% -10%, var(--bg-glow) 0%, transparent 55%),
    linear-gradient(180deg, var(--bg-mid) 0%, var(--bg) 40%, var(--bg-deep) 100%);
  transition: background-color 0.25s ease, color 0.25s ease;
}

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

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

a:hover {
  text-decoration: underline;
}

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

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: saturate(1.4) blur(16px);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration: none;
}

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

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 0;
  box-shadow: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.95rem;
  font-weight: 510;
}

.nav a {
  color: var(--ink-soft);
  text-decoration: none;
}

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

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-left: 0.15rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--theme-btn);
  color: var(--muted);
  cursor: pointer;
  opacity: 0.72;
  transition: opacity 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.theme-toggle:hover {
  opacity: 1;
  background: var(--theme-btn-hover);
  color: var(--ink-soft);
}

.theme-toggle:focus-visible {
  opacity: 1;
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.theme-toggle svg {
  width: 15px;
  height: 15px;
  display: block;
}

.theme-toggle .icon-sun {
  display: none;
}

.theme-toggle .icon-moon {
  display: block;
}

html[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

html[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

html[data-theme="light"] .theme-toggle .icon-sun {
  display: none;
}

html[data-theme="light"] .theme-toggle .icon-moon {
  display: block;
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme]) .theme-toggle .icon-moon {
    display: none;
  }

  html:not([data-theme]) .theme-toggle .icon-sun {
    display: block;
  }
}

/* —— Hero —— */
.hero {
  padding: 2.75rem 0 1.25rem;
  text-align: center;
}

.hero-kicker {
  display: inline-block;
  margin: 0 0 0.85rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.6rem, 8vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.02;
}

.hero .tagline {
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: clamp(1.15rem, 3.2vw, 1.55rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.hero .lede {
  margin: 1rem auto 0;
  max-width: 36rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.85rem 1.25rem;
  margin-top: 1.5rem;
}

.appstore-badge {
  display: inline-block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.appstore-badge:hover {
  transform: translateY(-2px);
  text-decoration: none;
  opacity: 0.92;
}

.appstore-badge img {
  width: min(180px, 52vw);
  height: auto;
}

.privacy-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--line);
  box-shadow: none;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
}

.privacy-chip strong {
  color: var(--ink);
  font-weight: 650;
}

/* —— Sticker tray —— */
.tray {
  margin: 1.5rem auto 0;
  padding: 1.15rem 1rem 1.25rem;
  border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(180deg, var(--tray-top) 0%, var(--tray-bottom) 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.sticker-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.65rem 0.5rem;
  align-items: center;
  justify-items: center;
}

.sticker {
  width: 100%;
  max-width: 7.5rem;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  animation: sticker-in 0.55s ease both;
  transition: transform 0.2s ease;
}

.sticker:nth-child(1) { animation-delay: 0.02s; }
.sticker:nth-child(2) { animation-delay: 0.05s; }
.sticker:nth-child(3) { animation-delay: 0.08s; }
.sticker:nth-child(4) { animation-delay: 0.11s; }
.sticker:nth-child(5) { animation-delay: 0.14s; }
.sticker:nth-child(6) { animation-delay: 0.06s; }
.sticker:nth-child(7) { animation-delay: 0.09s; }
.sticker:nth-child(8) { animation-delay: 0.12s; }
.sticker:nth-child(9) { animation-delay: 0.15s; }
.sticker:nth-child(10) { animation-delay: 0.18s; }
.sticker:nth-child(11) { animation-delay: 0.1s; }
.sticker:nth-child(12) { animation-delay: 0.13s; }
.sticker:nth-child(13) { animation-delay: 0.16s; }
.sticker:nth-child(14) { animation-delay: 0.19s; }
.sticker:nth-child(15) { animation-delay: 0.22s; }
.sticker:nth-child(n + 16) { animation-delay: 0.2s; }

.sticker:hover {
  transform: translateY(-3px) scale(1.04);
  z-index: 1;
}

.sticker img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.12));
}

@keyframes sticker-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sticker,
  .appstore-badge,
  .feature,
  body {
    animation: none !important;
    transition: none !important;
  }
}

/* —— Features —— */
.features {
  padding: 2.75rem 0 1rem;
}

.features h2 {
  margin: 0 0 0.35rem;
  text-align: center;
  font-size: clamp(1.5rem, 4vw, 2rem);
  letter-spacing: -0.035em;
}

.features .sub {
  margin: 0 auto 1.5rem;
  max-width: 32rem;
  text-align: center;
  color: var(--muted);
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.feature {
  padding: 1.15rem 1.1rem;
  border-radius: var(--radius);
  background: var(--feature-bg);
  border: 1px solid var(--line);
  animation: sticker-in 0.5s ease both;
}

.feature:nth-child(1) { animation-delay: 0.05s; }
.feature:nth-child(2) { animation-delay: 0.12s; }
.feature:nth-child(3) { animation-delay: 0.19s; }

.feature h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

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

/* —— Privacy highlight —— */
.privacy-callout {
  margin: 2rem auto;
  padding: 0 0 0 1rem;
  border-radius: 0;
  background: transparent;
  border: 0;
  border-left: 3px solid var(--line);
  box-shadow: none;
}

.privacy-callout h2 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
  letter-spacing: -0.025em;
  font-weight: 650;
}

.privacy-callout p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 38rem;
}

.privacy-callout a {
  font-weight: 600;
  white-space: nowrap;
}

/* —— CTA band —— */
.cta-band {
  text-align: center;
  padding: 1rem 0 2.5rem;
}

.cta-band p {
  margin: 0 0 0.9rem;
  color: var(--muted);
  font-weight: 510;
}

/* —— Footer —— */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.site-footer a {
  color: var(--ink-soft);
}

/* —— Privacy page —— */
.page-hero {
  padding: 2.25rem 0 0.5rem;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 2.75rem);
  letter-spacing: -0.04em;
}

.page-hero .meta {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.page-hero .jump-link {
  margin: 1rem 0 0;
  max-width: 36rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.page-hero .jump-link a {
  font-weight: 600;
  white-space: nowrap;
}

#delete {
  scroll-margin-top: 4.5rem;
}

#find,
#use,
#help {
  scroll-margin-top: 4.5rem;
}

.prose {
  padding: 1rem 0 3rem;
  max-width: 42rem;
}

.prose h2 {
  margin: 2rem 0 0.6rem;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.prose h3 {
  margin: 1.35rem 0 0.45rem;
  font-size: 1.05rem;
}

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

.prose ol {
  margin: 0.75rem 0 1.1rem;
  padding-left: 1.25rem;
}

.prose ol li {
  margin: 0.4rem 0;
  color: var(--ink-soft);
}

.prose ul {
  padding-left: 1.2rem;
}

.prose li {
  margin: 0.35rem 0;
}

.prose .lede {
  margin: 0 0 1.35rem;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.55;
}

.prose .highlight {
  margin: 1.25rem 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  color: var(--ink);
}

.prose .highlight strong {
  color: var(--ink);
}

/* —— Responsive —— */
@media (max-width: 820px) {
  .feature-list {
    grid-template-columns: 1fr;
  }

  .sticker-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .sticker:nth-child(n + 21) {
    display: none;
  }
}

@media (max-width: 560px) {
  .wrap {
    width: min(100% - 1.25rem, var(--max));
  }

  .hero {
    padding-top: 2rem;
  }

  .sticker-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
  }

  .sticker {
    max-width: 6.25rem;
  }

  .sticker:nth-child(n + 13) {
    display: none;
  }

  .tray {
    padding: 0.85rem 0.7rem 1rem;
  }

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