/*! App Icon Previewer | Mark Battistella */

:root {
  color-scheme: light dark;
  --bg: #f6f7fb;
  --surface: #ffffff;
  --text: #11131a;
  --muted: #5b6272;
  --line: rgba(17, 19, 26, 0.1);
  --accent: #2f6fe4;
  --accent-ink: #ffffff;
  --glow: rgba(47, 111, 228, 0.18);
  --shadow: 0 24px 60px -24px rgba(20, 30, 60, 0.35);
  --radius: 20px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0d12;
    --surface: #141821;
    --text: #f2f4f9;
    --muted: #9aa3b5;
    --line: rgba(255, 255, 255, 0.09);
    --accent: #5b94f5;
    --accent-ink: #0b0d12;
    --glow: rgba(91, 148, 245, 0.2);
    --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.8);
  }
}

* { box-sizing: border-box; }

html { background: var(--bg); }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background:
    radial-gradient(60rem 30rem at 50% -10%, var(--glow), transparent 70%),
    var(--bg);
  background-repeat: no-repeat;
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

#app, main {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

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

code {
  padding: 0.15em 0.4em;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  font: 0.88em ui-monospace, "SF Mono", Menlo, monospace;
}

section { padding: 72px 0 0; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin-bottom: 28px; }
h3 { font-size: 1.1rem; margin-bottom: 8px; }
p { margin: 0; }

/* MARK: - Hero */

.hero { text-align: center; padding: 88px 0 40px; }

.hero-icon {
  margin: 0 auto 28px;
  width: 132px;
  height: 132px;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.28));
}

.eyebrow {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero h1 {
  max-width: 14em;
  margin: 0 auto 20px;
  font-size: clamp(2.3rem, 6vw, 4rem);
  letter-spacing: -0.035em;
}

.lede {
  max-width: 34em;
  margin: 0 auto 32px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.actions, .links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.price { margin-top: 18px; color: var(--muted); font-size: 0.9rem; }

/* MARK: - Buttons */

.button {
  display: inline-flex;
  align-items: center;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.button:hover { text-decoration: none; transform: translateY(-1px); border-color: var(--accent); }

.button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* MARK: - Media */

.shot, .gallery img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-shot { margin: 24px 0 0; overflow: hidden; }
.hero-shot img { width: 100%; height: auto; }

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.gallery.clean { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 24px; }
.gallery.clean img { object-fit: contain; }

.gallery a { display: block; transition: transform 0.2s ease; }
.gallery a:hover { transform: translateY(-3px); }

.note { color: var(--muted); font-size: 0.92rem; margin-top: 14px; }

/* MARK: - Cards and steps */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.card {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
}

.card p { color: var(--muted); font-size: 0.97rem; }

.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 44px 1fr;
  column-gap: 16px;
  padding: 20px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
}

.steps li::before {
  content: counter(step);
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
}

.steps strong { font-size: 1.05rem; }
.steps span { color: var(--muted); }

#press h2 { margin-bottom: 12px; }
#press .note { margin: 0 0 20px; }

#press .links, #contact .links { justify-content: flex-start; }
#contact { text-align: left; }

.notfound { padding: 120px 0; text-align: center; }

/* MARK: - Footer */

.site-footer {
  max-width: 1040px;
  margin: 96px auto 0;
  padding: 28px 24px 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

.site-footer a { color: var(--muted); margin-left: 16px; }
.site-footer p a:first-child { margin-left: 0; }
.site-footer a:hover { color: var(--text); }

@media (max-width: 640px) {
  section { padding-top: 56px; }
  .hero { padding-top: 56px; }
  .gallery, .gallery.clean { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .gallery a { transition: none; }
}
