/* PoseAI landing — tokens from design-system/poseai/MASTER.md */
:root {
  --primary: #171717;
  --secondary: #404040;
  --accent: #171717;
  --bg: #FFFFFF;
  --fg: #171717;
  --card: #FFFFFF;
  --muted-bg: #FAFAFA;
  --muted-fg: #737373;
  --border: #F5F5F5;
  --radius: 16px;
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--card);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}
.container { max-width: 1080px; margin-inline: auto; padding-inline: 24px; }
.muted { color: var(--muted-fg); font-size: 0.8rem; line-height: 1.55; }
.muted.small { margin-top: 12px; font-size: 0.75rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding-block: 14px; }
.brand { font-weight: 900; font-size: 1.2rem; color: var(--primary); text-decoration: none; letter-spacing: -0.02em; }
.nav { display: none; gap: 28px; font-size: 0.85rem; font-weight: 600; }
.nav a { color: var(--muted-fg); text-decoration: none; }
.nav a:hover { color: var(--primary); }
@media (min-width: 768px) { .nav { display: flex; } }

/* Buttons — ≥44px tap targets */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 12px 28px; border-radius: 999px;
  font-weight: 700; font-size: 0.875rem; text-decoration: none; cursor: pointer;
  transition: opacity 0.15s ease;
}
.btn:hover { opacity: 0.88; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-outline { background: var(--card); color: var(--fg); border: 1px solid var(--border); }
.btn-sm { min-height: 40px; padding: 9px 20px; font-size: 0.78rem; }
.link {
  background: none; border: 0; cursor: pointer; padding: 8px;
  font: inherit; font-size: 0.78rem; font-weight: 700; color: var(--primary);
  text-decoration: underline; text-underline-offset: 4px;
}

/* Hero */
.hero { padding-block: 56px 72px; }
.hero-copy { max-width: 640px; margin-inline: auto; text-align: center; }
h1 {
  font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 900; letter-spacing: -0.03em;
  line-height: 1.12; text-wrap: balance;
}
.lead { margin-top: 16px; font-size: 1.05rem; line-height: 1.6; color: var(--muted-fg); text-wrap: pretty; }
.hero-ctas { margin-top: 28px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Showcase */
.showcase { margin-top: 56px; background: var(--muted-bg); border-radius: 28px; padding: clamp(16px, 4vw, 40px); }
.showcase-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding-bottom: 24px; }
.showcase-head h2 { font-size: 1.1rem; font-weight: 800; }
.tabs { display: inline-flex; background: var(--border); border-radius: 999px; padding: 4px; }
.tab {
  border: 0; border-radius: 999px; padding: 8px 16px; cursor: pointer;
  font: inherit; font-size: 0.75rem; font-weight: 600; color: var(--muted-fg); background: transparent;
}
.tab-active { background: var(--card); color: var(--fg); box-shadow: 0 1px 3px rgba(23, 23, 23, 0.12); }

.showcase-grid { display: grid; gap: 20px; }
@media (min-width: 1024px) { .showcase-grid { grid-template-columns: 4fr 8fr; } }
.card { background: var(--card); border-radius: var(--radius); padding: 14px; box-shadow: 0 1px 2px rgba(23, 23, 23, 0.05); }
.card-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 10px; gap: 8px; }
.card-label { font-size: 0.75rem; font-weight: 700; }
.tag { background: var(--muted-bg); color: var(--muted-fg); border-radius: 999px; padding: 3px 10px; font-size: 0.68rem; font-weight: 600; }
.img-3x4 { aspect-ratio: 3/4; border-radius: 12px; overflow: hidden; background: var(--muted-bg); }
.img-3x4 img { width: 100%; height: 100%; object-fit: cover; display: block; }
.input-card figcaption { margin-top: 10px; }

.output-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.output-grid > * { min-width: 0; }
@media (min-width: 640px) { .output-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pose-title { margin-top: 8px; font-size: 0.75rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pose-tip { margin-top: 2px; font-size: 0.68rem; color: var(--muted-fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Steps */
.steps { border-top: 1px solid var(--border); padding-block: 72px; background: var(--muted-bg); }
.steps-grid { display: grid; gap: 36px; }
@media (min-width: 768px) { .steps-grid { grid-template-columns: repeat(3, 1fr); } }
.step-num { font-size: 0.75rem; font-weight: 800; color: #A3A3A3; }
.steps h3 { margin-top: 8px; font-size: 1.05rem; font-weight: 800; }
.steps .muted { margin-top: 8px; font-size: 0.875rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding-block: 32px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; font-size: 0.78rem; color: var(--muted-fg); }
.footer-cta { font-weight: 800; color: var(--primary); text-decoration: none; }
.footer-cta:hover { text-decoration: underline; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-toggle { min-width: 52px; padding-inline: 14px; font-weight: 700; }

/* --- posepeek.app deep link & QR handoff (spec 005) --- */
.brand { display: inline-flex; align-items: center; gap: 8px; }
.brand-domain { border-radius: 999px; background: #F5F5F5; padding: 2px 10px; font-size: 0.68rem; font-weight: 500; color: #525252; }
.btn-block { display: flex; width: 100%; margin-top: 12px; }
.btn.is-disabled { opacity: 0.45; cursor: not-allowed; pointer-events: none; }

.dl-modal { width: min(92vw, 420px); margin: auto; padding: 24px; border: 1px solid var(--border); border-radius: 24px; background: #FFFFFF; color: var(--fg); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12); }
.dl-modal::backdrop { background: rgba(17, 17, 17, 0.35); backdrop-filter: blur(2px); }
.dl-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid #F5F5F5; }
.dl-head h3 { font-size: 0.9rem; font-weight: 700; }
.dl-close { width: 28px; height: 28px; border: 0; border-radius: 999px; background: #F5F5F5; color: #525252; font-size: 0.75rem; cursor: pointer; }
.dl-close:hover { background: #E5E5E5; }
.dl-body { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 20px; }
.dl-qr { width: 184px; height: 184px; padding: 10px; border: 1px solid var(--border); border-radius: 16px; background: #FFFFFF; }
.dl-qr svg { display: block; width: 100%; height: 100%; }
.dl-scan { margin-top: 12px; font-size: 0.78rem; font-weight: 600; }
.dl-url { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 8px; margin-top: 16px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 12px; background: #FAFAFA; }
.dl-url code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.68rem; color: #262626; }
.dl-url .link { flex-shrink: 0; }
.dl-actions { display: grid; width: 100%; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.dl-actions .btn { justify-content: center; }
.dl-body > .link { margin-top: 14px; }

/* /open fallback page */
.open-page { display: flex; min-height: 100dvh; align-items: center; justify-content: center; padding: 24px; background: #FAFAFA; }
.open-card { width: min(92vw, 420px); padding: 28px; border: 1px solid var(--border); border-radius: 24px; background: #FFFFFF; text-align: center; }
.open-card h1 { font-size: 1.15rem; font-weight: 700; }
.open-card .btn { width: 100%; justify-content: center; margin-top: 12px; }

/* --- Pricing (spec 007) --- */
.pricing { padding-block: 72px; border-top: 1px solid var(--border); }
.pricing-head { max-width: 640px; }
.pricing-head h2 { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.01em; }
.pricing-head .muted { margin-top: 8px; }
.pricing-grid { display: grid; gap: 16px; margin-top: 32px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .pricing-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.plan { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 24px; border: 1px solid var(--border); border-radius: 20px; background: #FFFFFF; }
.plan-featured { border-color: #171717; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06); }
.plan-badge { position: absolute; top: -11px; left: 20px; padding: 3px 10px; border-radius: 999px; background: #171717; color: #FFFFFF; font-size: 0.68rem; font-weight: 700; }
.plan h3 { font-size: 0.95rem; font-weight: 700; }
.plan-price { margin-top: 4px; font-size: 1.75rem; font-weight: 800; letter-spacing: -0.02em; }
.plan-per { font-size: 0.85rem; font-weight: 600; color: var(--muted-fg); }
.tabular, .plan-usd { font-variant-numeric: tabular-nums; }
.plan-list { margin-top: 12px; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 0.82rem; }
.plan-list li { position: relative; padding-left: 18px; }
.plan-list li::before { content: ''; position: absolute; left: 0; top: 0.5em; width: 8px; height: 8px; border-radius: 999px; background: #171717; }
.pricing-note { margin-top: 20px; max-width: 760px; }
.footer-links { display: flex; gap: 16px; font-size: 0.8rem; }
.footer-links a { color: var(--muted-fg); text-decoration: none; }
.footer-links a:hover { color: var(--fg); text-decoration: underline; }

/* --- Legal pages --- */
.legal { max-width: 760px; margin: 0 auto; padding: 48px 20px 80px; }
.legal h1 { font-size: 1.6rem; font-weight: 800; }
.legal h2 { margin-top: 28px; font-size: 1.05rem; font-weight: 700; }
.legal p, .legal li { margin-top: 8px; font-size: 0.92rem; line-height: 1.7; color: #404040; }
.legal ul { padding-left: 20px; }
.legal .updated { color: var(--muted-fg); font-size: 0.8rem; }
