/* PixSnip landing page */
:root {
  /* dub.co-style neutral palette (Tailwind neutral scale) */
  --brand: #0a0a0a;
  --brand-hover: #262626;
  --brand-2: #171717;
  --brand-soft: #f5f5f5;
  --brand-ink: #0a0a0a;
  --ink: #0a0a0a;
  --ink-2: #404040;
  --muted: #737373;
  --muted-2: #a3a3a3;
  --bg: #ffffff;
  --bg-alt: #fafafa;
  --surface: #ffffff;
  --border: #e5e5e5;
  --border-strong: #d4d4d4;
  --success: #16a34a;
  --amber: #d97706;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .04), 0 1px 3px rgba(0, 0, 0, .05);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, .06), 0 2px 6px rgba(0, 0, 0, .04);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .10), 0 8px 20px rgba(0, 0, 0, .05);
  --radius: 12px;
  --radius-sm: 8px;
  --max: 1120px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg);
  line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased;
}
a { color: var(--ink); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.03em; font-weight: 600; }
p { margin: 0; }
.container { width: min(var(--max), 100% - 48px); margin-inline: auto; }
@media (max-width: 640px) { .container { width: calc(100% - 32px); } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
kbd {
  font-family: var(--mono); font-size: .8em; padding: 2px 6px; border-radius: 6px;
  background: var(--bg-alt); border: 1px solid var(--border); border-bottom-width: 2px; color: var(--ink-2);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: 8px; font-weight: 500; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; transition: transform .08s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn-primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.btn-outline { background: var(--surface); color: var(--ink); border-color: var(--border); box-shadow: var(--shadow-sm); }
.btn-outline:hover { border-color: var(--border-strong); background: var(--bg-alt); }
.btn-sm { padding: 9px 14px; font-size: 14px; border-radius: 8px; }
.btn svg { width: 18px; height: 18px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .8); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .container { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 17px; }
.brand:hover { text-decoration: none; }
.brand img { width: 26px; height: 26px; border-radius: 7px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { color: var(--ink-2); font-size: 14px; font-weight: 500; padding: 8px 12px; border-radius: 8px; }
.nav a:hover { background: var(--bg-alt); color: var(--ink); text-decoration: none; }
.nav .btn { margin-left: 8px; }
.nav a.btn-primary, .nav a.btn-primary:hover { color: #fff; background: var(--brand); }
.nav a.btn-primary:hover { background: var(--brand-hover); }
.nav-toggle {
  display: none; margin-left: auto; width: 40px; height: 40px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--surface); cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle svg { width: 20px; height: 20px; }
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--surface); border-bottom: 1px solid var(--border); padding: 12px 16px 16px; gap: 2px;
    box-shadow: var(--shadow-md);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
  .nav .btn { margin: 8px 0 0; }
}

/* Sections */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.eyebrow {
  display: inline-block; color: var(--muted); font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(30px, 4vw, 40px); margin-bottom: 14px; font-weight: 500; }
.section-head p { color: var(--muted); font-size: 17px; }
@media (max-width: 640px) { .section { padding: 64px 0; } }

/* Hero */
.hero { padding: 88px 0 96px; overflow: hidden; position: relative; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(0, 0, 0, .045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, .045) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 40%, #000 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 80% at 50% 40%, #000 30%, transparent 100%);
}
.hero .container { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 999px;
  background: var(--surface); color: var(--ink); font-size: 13px; font-weight: 500; border: 1px solid var(--border); margin-bottom: 24px; box-shadow: var(--shadow-sm);
}
.pill svg { width: 16px; height: 16px; }
.hero h1 { font-size: clamp(38px, 5.4vw, 60px); margin-bottom: 20px; font-weight: 500; letter-spacing: -0.035em; }
.hero h1 em { font-style: normal; color: var(--muted); }
.hero .lead { font-size: 18px; color: var(--ink-2); max-width: 540px; margin-bottom: 32px; }
.hero .lead strong { color: var(--ink); font-weight: 500; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 24px; color: var(--muted); font-size: 13.5px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta svg { width: 15px; height: 15px; color: var(--success); }
@media (max-width: 960px) {
  .hero { padding: 56px 0 72px; }
  .hero .container { grid-template-columns: 1fr; gap: 40px; }
}

/* Browser mock */
.mock {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  box-shadow: var(--shadow-lg); overflow: visible;
}
.mock-bar {
  display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--border);
  background: var(--bg-alt); border-radius: 16px 16px 0 0;
}
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #e5e5e5; display: block; }
.mock-bar .url { flex: 1; height: 22px; border-radius: 6px; background: #f0f0f0; margin-left: 8px; }
.mock-bar .ext { width: 22px; height: 22px; border-radius: 6px; background: var(--brand); position: relative; }
.mock-bar .ext::after { content: ""; position: absolute; inset: 6px; border: 2px solid #fff; border-radius: 3px; opacity: .9; }
.mock-body { position: relative; padding: 22px 24px 26px; border-radius: 0 0 16px 16px; overflow: hidden; }
.sk { height: 12px; border-radius: 6px; background: #ececec; margin-bottom: 12px; }
.sk.w40 { width: 40%; } .sk.w60 { width: 60%; } .sk.w75 { width: 75%; } .sk.w90 { width: 90%; } .sk.w100 { width: 100%; }
.sk.title { height: 18px; width: 55%; background: #dcdcdc; margin-bottom: 18px; }
.sk-card {
  display: grid; grid-template-columns: 64px 1fr; gap: 14px; padding: 14px; border: 1px solid var(--border); border-radius: 10px; margin: 6px 0 16px; background: #fff;
}
.sk-card .thumb { height: 64px; border-radius: 8px; background: linear-gradient(135deg, #ededed, #f5f5f5); }
.sk-card .sk { margin-bottom: 10px; }
.sk-card .sk:last-child { margin-bottom: 0; }
.marquee {
  position: absolute; border: 2px solid var(--brand); border-radius: 4px; background: rgba(0, 0, 0, .04);
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, .16);
  animation: marquee 6s ease-in-out infinite; pointer-events: none;
}
.marquee::before, .marquee::after { content: ""; position: absolute; width: 8px; height: 8px; background: #fff; border: 2px solid var(--brand); border-radius: 2px; }
.marquee::before { top: -6px; left: -6px; }
.marquee::after { bottom: -6px; right: -6px; }
.marquee .size {
  position: absolute; right: -2px; bottom: -30px; font-family: var(--mono); font-size: 11px; font-weight: 600;
  background: var(--ink); color: #fff; padding: 3px 7px; border-radius: 5px; white-space: nowrap;
}
.marquee .tag {
  position: absolute; left: -2px; top: -28px; font-family: var(--mono); font-size: 11px; font-weight: 600;
  background: var(--brand); color: #fff; padding: 3px 7px; border-radius: 5px; white-space: nowrap;
}
@keyframes marquee {
  0%, 12% { left: 24px; top: 96px; width: 40%; height: 40px; opacity: 0; }
  20% { opacity: 1; }
  40%, 55% { left: 24px; top: 96px; width: 92%; height: 108px; opacity: 1; }
  62%, 70% { opacity: 0; left: 24px; top: 96px; width: 92%; height: 108px; }
  100% { opacity: 0; left: 24px; top: 96px; width: 40%; height: 40px; }
}
.cursor { position: absolute; width: 18px; height: 18px; animation: cursor 6s ease-in-out infinite; pointer-events: none; z-index: 2; }
@keyframes cursor {
  0%, 12% { left: 46%; top: 140px; opacity: 0; }
  20% { opacity: 1; }
  40%, 55% { left: 92%; top: 204px; opacity: 1; }
  62% { opacity: 0; }
  100% { left: 46%; top: 140px; opacity: 0; }
}
.floating-popup {
  position: absolute; right: -28px; bottom: -34px; width: 236px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; box-shadow: var(--shadow-lg); padding: 10px; z-index: 3;
}
.floating-popup .row {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--ink);
}
.floating-popup .row.active { background: var(--brand-soft); color: var(--ink); }
.floating-popup .row svg { width: 18px; height: 18px; color: var(--ink-2); flex: none; }
.floating-popup .row kbd { margin-left: auto; font-size: 10.5px; padding: 1px 5px; }
.hero-toast {
  position: absolute; left: 20px; bottom: -20px; display: flex; align-items: center; gap: 8px; z-index: 3;
  background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 500; padding: 8px 12px; border-radius: 9px;
  box-shadow: var(--shadow-md); animation: toast 6s ease-in-out infinite;
}
.hero-toast svg { width: 14px; height: 14px; color: #4ade80; }
@keyframes toast {
  0%, 68% { opacity: 0; transform: translateY(8px); }
  74%, 94% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(8px); }
}
@media (max-width: 960px) {
  .floating-popup { right: 8px; bottom: -26px; width: 210px; }
  .hero-toast { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee, .cursor, .hero-toast { animation: none; }
  .marquee { left: 24px; top: 96px; width: 92%; height: 108px; opacity: 1; }
  .cursor { display: none; }
  .hero-toast { opacity: 1; transform: none; }
}

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 26px 26px; box-shadow: var(--shadow-sm);
}
.step .num {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: 15px;
  background: var(--brand); color: #fff; margin-bottom: 18px;
}
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }
.step .art { margin: 20px 0 0; border-radius: 10px; background: var(--bg-alt); border: 1px solid var(--border); padding: 14px; height: 120px; display: grid; place-items: center; }
.step .art svg { width: 100%; height: 100%; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* Why cards */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.card .icon {
  width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--ink); border: 1px solid var(--border); margin-bottom: 18px;
}
.card .icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }
.card.wide { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; }
.card.wide .art { border-radius: 10px; background: var(--bg-alt); border: 1px solid var(--border); padding: 16px; }
.card.wide .art svg { width: 100%; height: auto; }
@media (max-width: 960px) {
  .why-grid { grid-template-columns: 1fr 1fr; }
  .card.wide { grid-column: span 2; }
}
@media (max-width: 640px) {
  .why-grid { grid-template-columns: 1fr; }
  .card.wide { grid-column: span 1; grid-template-columns: 1fr; }
}

/* Feature list */
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.feature { display: grid; grid-template-columns: 36px 40px 1fr; gap: 12px; padding: 22px 0; border-bottom: 1px solid var(--border); align-items: start; }
.feature .n { font-family: var(--mono); font-size: 12.5px; color: var(--muted); padding-top: 4px; }
.feature .icon { width: 36px; height: 36px; border-radius: 9px; background: var(--brand-soft); color: var(--ink); border: 1px solid var(--border); display: grid; place-items: center; }
.feature .icon svg { width: 18px; height: 18px; }
.feature h3 { font-size: 16px; margin-bottom: 4px; }
.feature p { color: var(--muted); font-size: 14.5px; }
@media (max-width: 860px) { .features { grid-template-columns: 1fr; } }

/* Updates */
.updates-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.updates-head h2 { font-size: clamp(26px, 3.4vw, 32px); }
.updates-head a { font-weight: 500; font-size: 14.5px; color: var(--ink-2); }
.updates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.update { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.badge {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 6px; margin-bottom: 12px;
}
.badge.new { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.badge.improved { background: var(--brand-soft); color: var(--ink-2); border: 1px solid var(--border); }
.badge.fixed { background: #fef3c7; color: #92400e; }
.update h3 { font-size: 16.5px; margin-bottom: 6px; }
.update p { color: var(--muted); font-size: 14.5px; }
.update time { display: block; margin-top: 12px; font-size: 12.5px; color: var(--muted); }
@media (max-width: 860px) { .updates { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--border); padding: 4px 0; }
.faq summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 0; font-weight: 500; font-size: 16.5px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--muted); font-weight: 400; transition: transform .15s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 0 18px; color: var(--ink-2); font-size: 15.5px; }
.faq .answer code { font-family: var(--mono); font-size: .9em; background: var(--bg-alt); padding: 1px 5px; border-radius: 4px; border: 1px solid var(--border); }

/* CTA band */
.cta { text-align: center; padding: 80px 0; }
.cta .box {
  background: var(--brand); color: #fff; border-radius: 16px; padding: 56px 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .18);
}
.cta h2 { font-size: clamp(28px, 4vw, 38px); margin-bottom: 12px; font-weight: 500; }
.cta p { color: rgba(255, 255, 255, .7); margin-bottom: 28px; font-size: 17px; }
.cta .btn-primary { background: #fff; color: var(--ink); border-color: #fff; }
.cta .btn-primary:hover { background: #e5e5e5; border-color: #e5e5e5; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 32px 0; color: var(--muted); font-size: 14px; }
.site-footer .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--ink); }

/* Content pages (privacy, updates) */
.page { padding: 64px 0 96px; }
.page .prose { max-width: 760px; }
.prose h1 { font-size: clamp(32px, 4.5vw, 44px); margin-bottom: 10px; font-weight: 500; }
.prose .meta { color: var(--muted); font-size: 14.5px; margin-bottom: 40px; }
.prose h2 { font-size: 24px; margin: 40px 0 12px; }
.prose h3 { font-size: 18px; margin: 28px 0 8px; }
.prose p, .prose li { color: var(--ink-2); font-size: 16px; }
.prose p { margin-bottom: 14px; }
.prose ul { padding-left: 22px; margin: 0 0 14px; }
.prose li { margin-bottom: 6px; }
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose th { color: var(--muted); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.prose code { font-family: var(--mono); font-size: .9em; background: var(--bg-alt); padding: 1px 5px; border-radius: 4px; border: 1px solid var(--border); }
.changelog .release { border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 26px; margin-bottom: 20px; background: var(--surface); box-shadow: var(--shadow-sm); }
.changelog .release header { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.changelog .release h2 { margin: 0; font-size: 22px; }
.changelog .release time { color: var(--muted); font-size: 14px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
