/* PicPerfect -- Design System v4 */
/* Quiet Premium Neutral + minimalist-skill */
/* Anti-slop verified against taste-skill checklist */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg-primary: #fafaf9;
  --bg-secondary: #f5f5f3;
  --bg-card: #ffffff;
  --bg-input: #ffffff;
  --border: #eaeaea;
  --border-hover: #d4d4cf;
  --text-primary: #1a1a18;
  --text-secondary: #6b6b63;
  --text-muted: #9a9a91;
  --accent: #0d9373;
  --accent-hover: #0b7d62;
  --accent-subtle: rgba(13,147,115,0.06);
  --accent-text: #0a7a5e;
  --error: #c4342d;
  --youtube: #ff3b30;
  --instagram: #c13584;
  --twitter: #1a8cd8;
  --facebook: #1877f2;
  --linkedin: #0a66c2;
  --pinterest: #bd081c;
  --tiktok: #00c9b1;
  --font-sans: 'Outfit', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
  --shadow-xs: 0 1px 2px rgba(26,26,24,0.04);
  --shadow-sm: 0 2px 8px rgba(26,26,24,0.05);
  --shadow-md: 0 4px 16px rgba(26,26,24,0.06);
  --shadow-lg: 0 12px 40px rgba(26,26,24,0.08);
  --transition-fast: 180ms cubic-bezier(0.32, 0.72, 0, 1);
  --transition-base: 320ms cubic-bezier(0.32, 0.72, 0, 1);
  --transition-slow: 600ms cubic-bezier(0.16, 1, 0.3, 1);
  --max-width: 1120px;
  --header-height: 56px;
}

/* Reset */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-wrap: pretty; }
body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  min-height: 100dvh;
  overflow-x: hidden;
}
a { color: var(--accent-text); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; font-size: inherit; border: none; background: none; color: inherit; }
input, select, textarea {
  font-family: inherit; font-size: inherit; color: var(--text-primary);
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 0.625rem 0.875rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--text-primary);
  box-shadow: 0 0 0 3px rgba(26,26,24,0.06);
}
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }

/* ============================================
   SCROLL REVEAL ANIMATION SYSTEM
   minimalist-skill S7: fade-up + stagger
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Stagger delays for grid children */
.reveal-stagger > .reveal:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger > .reveal:nth-child(2) { transition-delay: 80ms; }
.reveal-stagger > .reveal:nth-child(3) { transition-delay: 160ms; }
.reveal-stagger > .reveal:nth-child(4) { transition-delay: 240ms; }
.reveal-stagger > .reveal:nth-child(5) { transition-delay: 320ms; }
.reveal-stagger > .reveal:nth-child(6) { transition-delay: 400ms; }
.reveal-stagger > .reveal:nth-child(7) { transition-delay: 480ms; }
.reveal-stagger > .reveal:nth-child(8) { transition-delay: 560ms; }

/* ============================================
   AMBIENT GRADIENT (hero background)
   minimalist-skill S7: slow-moving radial blob
   ============================================ */
.ambient-glow {
  position: fixed;
  top: -20%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  max-width: 800px;
  max-height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13,147,115,0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: ambientDrift 25s ease-in-out infinite alternate;
}
@keyframes ambientDrift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-5vw, 8vh); }
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-height);
  display: flex; align-items: center;
  background: rgba(250,250,249,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--max-width); margin: 0 auto;
  padding: 0 1.5rem; width: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  display: flex; align-items: center; gap: 0.5rem;
  font-weight: 700; font-size: 0.9375rem;
  color: var(--text-primary); text-decoration: none; letter-spacing: -0.02em;
}
.logo:hover { color: var(--text-primary); }
.logo-icon {
  width: 26px; height: 26px;
  background: var(--text-primary); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
}
.header-nav { display: flex; align-items: center; gap: 1rem; }
.nav-link { color: var(--text-muted); font-size: 0.8125rem; font-weight: 500; transition: color var(--transition-fast); }
.nav-link:hover { color: var(--text-primary); }

/* Dropdown */
.nav-tools-dropdown { position: relative; }
.nav-tools-btn {
  color: var(--text-muted); font-size: 0.8125rem; font-weight: 500;
  display: flex; align-items: center; gap: 0.25rem; padding: 0.375rem 0;
}
.nav-tools-btn:hover { color: var(--text-primary); }
.nav-tools-btn svg { width: 14px; height: 14px; transition: transform var(--transition-fast); }
.nav-tools-dropdown:hover .nav-tools-btn svg { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  min-width: 220px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 0.375rem;
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden;
  transition: opacity var(--transition-fast), visibility var(--transition-fast);
}
.nav-tools-dropdown:hover .nav-dropdown-menu { opacity: 1; visibility: visible; }
.nav-dropdown-item {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 0.625rem; border-radius: var(--radius-md);
  color: var(--text-secondary); font-size: 0.8125rem;
  transition: all var(--transition-fast);
}
.nav-dropdown-item:hover { background: var(--bg-secondary); color: var(--text-primary); }
.platform-dot { width: 6px; height: 6px; border-radius: var(--radius-full); flex-shrink: 0; }

/* ============================================
   HERO -- asymmetric split 55/45
   ============================================ */
.hero {
  position: relative;
  padding: 5rem 0 3rem;
  z-index: 1;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.hero-content { max-width: 520px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  background: var(--accent-subtle); border: 1px solid rgba(13,147,115,0.12);
  border-radius: var(--radius-sm);
  font-size: 0.6875rem; font-weight: 600; color: var(--accent-text);
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 1.25rem;
}
.hero h1 {
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  font-weight: 800; line-height: 1.08; letter-spacing: -0.04em;
  margin-bottom: 1rem; color: var(--text-primary);
}
.hero-sub {
  font-size: 1rem; color: var(--text-secondary);
  line-height: 1.65; margin-bottom: 1.5rem; max-width: 420px;
}
.hero-features {
  display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
}
.hero-pill {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.25rem 0.625rem;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.6875rem; font-weight: 500; color: var(--text-muted);
}
.hero-pill svg { width: 11px; height: 11px; color: var(--accent); }

/* Hero Visual -- overlapping platform frames */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
}
.hero-frame {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-base);
}
.hero-frame:hover {
  transform: translate(var(--hover-x, 0), var(--hover-y, 0)) rotate(var(--r)) scale(1.03);
}
.hero-frame-bar {
  display: flex; align-items: center; gap: 0.375rem;
  padding: 0.5rem 0.625rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.5625rem; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.05em;
}
.hero-frame-dot {
  width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0;
}
.hero-frame-body {
  flex: 1;
  position: relative;
  overflow: hidden;
}
/* Shared photo background -- same image, different crops */
.hero-frame-photo {
  width: 100%; height: 100%;
  background-image: url('/img/hero-sample-optimized.jpg');
  background-size: cover;
  background-repeat: no-repeat;
}
/* ---- Tight fanned stack layout ---- */
/* YouTube frame -- 16:9, largest, center-base */
.hero-frame--yt {
  width: 260px; height: 162px;
  top: 8%; left: 14%;
  --r: 2deg;
  transform: rotate(var(--r));
  z-index: 2;
  --hover-x: 4px; --hover-y: -4px;
}
.hero-frame--yt .hero-frame-dot { background: var(--youtube); }
.hero-frame--yt .hero-frame-photo { background-position: center 30%; }
/* Instagram frame -- 1:1, overlapping YT bottom-left */
.hero-frame--ig {
  width: 140px; height: 140px;
  top: 44%; left: 0;
  --r: -5deg;
  transform: rotate(var(--r));
  z-index: 4;
  --hover-x: -4px; --hover-y: 3px;
}
.hero-frame--ig .hero-frame-dot { background: var(--instagram); }
.hero-frame--ig .hero-frame-photo { background-position: 0% 60%; }
/* Pinterest frame -- 2:3, overlapping YT right */
.hero-frame--pin {
  width: 108px; height: 162px;
  top: 0; right: 12%;
  --r: 4deg;
  transform: rotate(var(--r));
  z-index: 5;
  --hover-x: 3px; --hover-y: -3px;
}
.hero-frame--pin .hero-frame-dot { background: var(--pinterest); }
.hero-frame--pin .hero-frame-photo { background-position: 85% 15%; }
/* X/Twitter frame -- 16:9 wide, overlapping YT bottom */
.hero-frame--tw {
  width: 196px; height: 110px;
  top: 55%; left: 20%;
  --r: -2deg;
  transform: rotate(var(--r));
  z-index: 3;
  --hover-x: 3px; --hover-y: 2px;
}
.hero-frame--tw .hero-frame-dot { background: var(--twitter); }
.hero-frame--tw .hero-frame-photo { background-position: center 50%; }
/* Facebook Story frame -- 9:16, tall-narrow, right edge */
.hero-frame--fb {
  width: 82px; height: 146px;
  top: 12%; right: 0;
  --r: 6deg;
  transform: rotate(var(--r));
  z-index: 6;
  --hover-x: -2px; --hover-y: -3px;
}
.hero-frame--fb .hero-frame-dot { background: var(--facebook); }
.hero-frame--fb .hero-frame-photo { background-position: 20% center; }
/* LinkedIn Banner frame -- 4:1 ultrawide, bottom strip */
.hero-frame--li {
  width: 210px; height: 52px;
  bottom: 6%; left: 8%;
  --r: -1.5deg;
  transform: rotate(var(--r));
  z-index: 7;
  --hover-x: 4px; --hover-y: 1px;
}
.hero-frame--li .hero-frame-dot { background: var(--linkedin); }
.hero-frame--li .hero-frame-photo { background-position: center 70%; }
/* TikTok frame -- 9:16 small, peeking right */
.hero-frame--tt {
  width: 68px; height: 120px;
  top: 38%; right: 2%;
  --r: -3deg;
  transform: rotate(var(--r));
  z-index: 8;
  --hover-x: -3px; --hover-y: -2px;
}
.hero-frame--tt .hero-frame-dot { background: var(--tiktok); }
.hero-frame--tt .hero-frame-photo { background-position: 70% 40%; }

/* ============================================
   TRUST STRIP
   ============================================ */
.trust-strip {
  padding: 1.25rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.trust-strip span {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}
.trust-strip svg {
  width: 12px; height: 12px;
}
.trust-sep {
  display: inline-block;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--border-hover);
  margin: 0 1.25rem;
  vertical-align: middle;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem; padding: 0.5625rem 1.125rem;
  font-weight: 600; font-size: 0.8125rem;
  border-radius: var(--radius-sm); /* 6px, not pill */
  transition: all var(--transition-fast); white-space: nowrap;
}
.btn-primary { background: var(--text-primary); color: var(--bg-primary); }
.btn-primary:hover { background: #2d2d2a; }
.btn-primary:active { transform: scale(0.98); }
.btn-large { padding: 0.6875rem 1.375rem; font-size: 0.875rem; }
.btn-secondary { background: var(--bg-card); color: var(--text-primary); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--bg-secondary); border-color: var(--border-hover); }
.btn:disabled { opacity: 0.35; cursor: not-allowed; transform: none !important; }

/* ============================================
   SECTIONS
   ============================================ */
.section { padding: 5rem 0; position: relative; z-index: 1; }
.section-header { margin-bottom: 2.5rem; }
.section-header h2 { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.025em; margin-bottom: 0.5rem; }
.section-header p { color: var(--text-secondary); font-size: 0.9375rem; max-width: 420px; }

/* ============================================
   FAQ
   ============================================ */
.faq { max-width: 580px; margin: 0 auto; padding: 5rem 1.5rem; position: relative; z-index: 1; }
.faq h2 { font-size: 1.375rem; font-weight: 700; margin-bottom: 2rem; letter-spacing: -0.02em; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-of-type { border-top: 1px solid var(--border); }
.faq-item summary {
  padding: 0.875rem 0; font-weight: 600; font-size: 0.875rem;
  cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; color: var(--text-primary); transition: color var(--transition-fast);
}
.faq-item summary:hover { color: var(--accent-text); }
.faq-item summary::after { content: '+'; font-size: 1rem; color: var(--text-muted); flex-shrink: 0; font-weight: 300; }
.faq-item[open] summary::after { content: '\2212'; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { padding-bottom: 1rem; color: var(--text-secondary); line-height: 1.7; font-size: 0.875rem; max-width: 65ch; }

/* ============================================
   SIZE TABLE
   ============================================ */
.size-table { width: 100%; border-collapse: collapse; font-size: 0.8125rem; }
.size-table th {
  text-align: left; padding: 0.5rem 0.75rem;
  font-weight: 600; color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.06em;
}
.size-table td { padding: 0.5rem 0.75rem; border-bottom: 1px solid rgba(234,234,234,0.6); color: var(--text-secondary); }
.size-table tr:hover td { background: var(--accent-subtle); }
.size-value { font-family: var(--font-mono); font-size: 0.75rem; font-variant-numeric: tabular-nums; color: var(--accent-text); }

/* ============================================
   FOOTER
   ============================================ */
.site-footer { border-top: 1px solid var(--border); padding: 3rem 0 1.5rem; margin-top: 2rem; position: relative; z-index: 1; }
.footer-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 2rem; margin-bottom: 2rem; }
.footer-brand p { color: var(--text-muted); font-size: 0.8125rem; margin-top: 0.625rem; max-width: 240px; line-height: 1.55; }
.footer-col h4 { font-size: 0.6875rem; font-weight: 600; color: var(--text-muted); margin-bottom: 0.625rem; text-transform: uppercase; letter-spacing: 0.06em; }
.footer-col a { display: block; color: var(--text-muted); font-size: 0.8125rem; padding: 0.1875rem 0; transition: color var(--transition-fast); }
.footer-col a:hover { color: var(--text-primary); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 1.5rem; border-top: 1px solid var(--border);
  font-size: 0.75rem; color: var(--text-muted);
}
.privacy-badge {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.25rem 0.5rem; background: var(--accent-subtle);
  border: 1px solid rgba(13,147,115,0.1); border-radius: var(--radius-sm);
  font-size: 0.6875rem; font-weight: 500; color: var(--accent-text);
}
.privacy-badge svg { width: 11px; height: 11px; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .hero { padding: 3rem 0 2rem; }
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero-visual { min-height: 280px; }
  .hero-frame--yt { width: 200px; height: 130px; right: -5%; }
  .hero-frame--ig { width: 130px; height: 130px; left: 5%; }
  .hero-frame--pin { width: 100px; height: 150px; left: 30%; }
  .hero-frame--tw { width: 170px; height: 96px; right: 0; bottom: 0; }
  .hero-frame--fb { width: 70px; height: 124px; right: 15%; }
  .hero-frame--li { width: 160px; height: 40px; }
  .hero-frame--tt { width: 58px; height: 103px; }
  .hero h1 { font-size: 2rem; }
  .section { padding: 3rem 0; }
  .hero-features { gap: 0.375rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
  .header-nav { gap: 0.625rem; }
  .trust-strip { font-size: 0.5625rem; letter-spacing: 0.06em; }
  .trust-sep { margin: 0 0.75rem; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 1.75rem; }
  .hero-visual { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .header-nav { display: none; }
}
