/* Design tokens aligned with extension popup.css */
:root {
  --bg-0: #0d0d12;
  --bg-1: #121218;
  --bg-2: #1a1a2e;
  --surface: #1a1a24;
  --text: #f5f5f5;
  --muted: #9ca3af;
  --muted-2: #6b7280;
  --border: rgba(255, 255, 255, 0.08);
  --accent-purple: #8134af;
  --accent-purple-soft: rgba(129, 52, 175, 0.15);
  --accent-purple-border: rgba(129, 52, 175, 0.45);
  --link: #d8b4fe;
  --radius-card: 12px;
  --radius-btn: 8px;
  --font: system-ui, -apple-system, "Segoe UI", sans-serif;
  --gradient-brand: linear-gradient(90deg, #f58529, #dd2a7b, #8134af);
  --gradient-hero-btn: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
  --max-read: 58rem;
}

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

html {
  min-height: 100%;
  scroll-behavior: smooth;
  background: linear-gradient(165deg, var(--bg-2) 0%, var(--bg-1) 48%, var(--bg-0) 100%);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
}

/* Very subtle grid — not a full “mesh gradient” */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.04;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
}

body {
  margin: 0;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #e9d5ff;
}

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

/* Thin gradient rule — single Instagram-nod accent */
.accent-rule {
  height: 2px;
  border: none;
  margin: 0;
  background: var(--gradient-brand);
  border-radius: 2px;
  opacity: 0.85;
}

.site-header {
  padding: 1.25rem 0 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

.logo {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-skip {
  position: absolute;
  left: -9999px;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--surface);
  color: var(--text);
  border-radius: var(--radius-btn);
}

.nav-skip:focus {
  left: 1rem;
  top: 1rem;
}

.header-links {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.header-links a {
  font-size: 0.875rem;
  font-weight: 600;
}

main {
  padding-bottom: 3rem;
}

.hero {
  padding: 2.75rem 0 2rem;
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.hero-lead {
  margin: 0 0 1.5rem;
  max-width: 40em;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.k {
  color: #d1d5db;
  font-weight: 600;
}

.hero-note {
  margin: 0 0 1.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--muted-2);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  border-left: 3px solid var(--accent-purple);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.15rem;
  font-size: 0.9rem;
  font-weight: 700;
  font-family: inherit;
  border-radius: var(--radius-btn);
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  transition: filter 0.15s ease, transform 0.1s ease, background 0.15s ease;
}

button.btn {
  -webkit-appearance: none;
  appearance: none;
  border: none;
}

button.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

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

.btn-primary {
  background: var(--gradient-hero-btn);
  background-size: 200% 200%;
  color: #fff;
}

.btn-primary:hover {
  filter: brightness(1.08);
}

.btn-primary:active:not(:disabled) {
  transform: scale(0.99);
}

.btn-secondary {
  background: var(--accent-purple-soft);
  color: var(--link);
  border-color: var(--accent-purple-border);
}

.btn-secondary:hover {
  background: rgba(129, 52, 175, 0.28);
  color: #e9d5ff;
}

.install-store-lead {
  margin: 0;
  color: var(--muted);
  max-width: 42em;
  line-height: 1.55;
}

.install-store-lead a {
  color: var(--link);
  font-weight: 600;
}

.section {
  padding: 2rem 0;
}

.section h2 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-intro {
  margin: 0 0 1.25rem;
  color: var(--muted);
  max-width: 42em;
}

.section-intro--follow {
  margin-top: 1.25rem;
  margin-bottom: 0;
}

.card--narrow {
  max-width: 42rem;
}

.card--narrow > h3:first-child {
  margin-top: 0;
}

.list-disc {
  list-style: disc;
  max-width: 42rem;
}

.disclaimer p:first-child {
  margin-top: 0;
}

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

.card code {
  font-size: 0.85em;
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1.1rem 1.15rem;
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 650;
}

.card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

.shots {
  display: grid;
  gap: 1.5rem;
  align-items: stretch;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
}

.figure-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
}

/* Shared tall frame: row height matches the taller card; shorter shots center with even padding */
.figure-card__media {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(220px, 42vw, 400px);
  padding: 0.85rem 0.75rem;
  background:
    radial-gradient(ellipse 85% 55% at 50% 20%, rgba(129, 52, 175, 0.12), transparent 55%),
    rgba(0, 0, 0, 0.32);
}

.figure-card__media img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  align-self: center;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.figure-card figcaption {
  flex-shrink: 0;
  padding: 0.85rem 1rem;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.45;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

@media (min-width: 48rem) {
  .figure-card__media {
    min-height: clamp(280px, 48vh, 520px);
  }
}

.install-steps {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--muted);
}

.install-steps li {
  margin-bottom: 0.5rem;
}

.install-steps code {
  font-size: 0.85em;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.disclaimer {
  font-size: 0.9rem;
  color: var(--muted);
  padding: 1rem 1.15rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius-card);
}

.disclaimer strong {
  color: #fca5a5;
  font-weight: 600;
}

.site-footer {
  margin-top: 2rem;
  padding: 1.5rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.85rem;
  color: var(--muted-2);
}

.site-footer p {
  margin: 0 0 0.5rem;
}

.site-footer a {
  font-weight: 600;
}

/* Privacy page */
a.logo {
  text-decoration: none;
}

a.logo:hover {
  opacity: 0.95;
}

.policy-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.policy-lead {
  margin-bottom: 2rem;
}

.policy-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.policy-h2 {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
  font-weight: 650;
}

.policy-p-tight {
  margin-top: 0;
}

.policy-p-end {
  margin-bottom: 0;
}

.policy-list-tight {
  margin-bottom: 0;
}

@media (min-width: 40rem) {
  .hero {
    padding-top: 3.25rem;
  }
}
