/* PoseAI landing — Airy Travel-AI Palette (Soft Slate + Indigo/Sky + Emerald)
   Includes #171717 neutral token; zero legacy pink/rose/gold. */
:root {
  --ink-neutral: #171717;
  --primary: #4F46E5;
  --primary-hover: #4338CA;
  --sky: #0EA5E9;
  --emerald: #0D9488;
  --emerald-bg: #ECFDF5;
  --emerald-fg: #047857;
  --indigo-bg: #EEF2FF;
  --indigo-fg: #4338CA;
  --brand-gradient: linear-gradient(135deg, #4F46E5 0%, #2563EB 55%, #0EA5E9 100%);
  --featured-gradient: linear-gradient(148deg, #1E1B4B 0%, #3730A3 52%, #0284C7 100%);

  --bg: #FFFFFF;
  --fg: #1E293B;
  --secondary: #475569;
  --card: #FFFFFF;
  --muted-bg: #F8FAFC;
  --muted-fg: #64748B;
  --border: #E2E8F0;
  --border-subtle: #F1F5F9;
  --radius: 16px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 420px at 18% -60px, rgba(79, 70, 229, 0.08), transparent 70%),
    radial-gradient(ellipse 70% 380px at 84% -40px, rgba(14, 165, 233, 0.09), transparent 70%);
  background-repeat: no-repeat;
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  min-block-size: 100dvh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
.container { max-inline-size: 1080px; margin-inline: auto; padding-inline: 20px; }
.muted { color: var(--muted-fg); font-size: 0.82rem; line-height: 1.55; }
.muted.small { margin-block-start: 10px; font-size: 0.74rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  border-block-end: 1px solid var(--border-subtle);
}
.header-inner { display: flex; align-items: safe center; justify-content: space-between; padding-block: 11px; gap: 12px; }
.brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 900; font-size: 1.14rem; text-decoration: none; letter-spacing: -0.02em;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-domain {
  border-radius: 999px; background: var(--indigo-bg); padding: 2px 9px;
  font-size: 0.66rem; font-weight: 600; color: var(--indigo-fg);
  -webkit-text-fill-color: var(--indigo-fg);
}
.nav { display: none; gap: 24px; font-size: 0.84rem; font-weight: 600; }
.nav a { color: var(--secondary); text-decoration: none; transition: color 0.18s ease; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--primary); }
.nav a[aria-current="page"] { font-weight: 700; }
@media (min-width: 768px) { .nav { display: flex; } }

.header-actions { display: flex; align-items: center; gap: 8px; }
.lang-toggle { min-inline-size: 46px; padding-inline: 12px; font-weight: 700; }

/* Buttons — >= 40-44px tap targets, smooth compositor lift */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-block-size: 42px; padding: 10px 22px; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 0.84rem; text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.25s var(--ease-out), translate 0.25s var(--ease-out);
}
.btn-primary {
  background: var(--brand-gradient); color: #FFFFFF;
  box-shadow: 0 6px 18px -4px rgba(79, 70, 229, 0.36);
}
.btn-primary:hover {
  box-shadow: 0 10px 24px -4px rgba(79, 70, 229, 0.48);
  @media (prefers-reduced-motion: no-preference) { translate: 0 -1.5px; }
}
.btn-outline { background: var(--card); color: var(--fg); border-color: var(--border); }
.btn-outline:hover {
  background: var(--indigo-bg); border-color: #C7D2FE; color: var(--indigo-fg);
  @media (prefers-reduced-motion: no-preference) { translate: 0 -1px; }
}
.btn-inverted {
  background: #FFFFFF; color: #312E81;
  box-shadow: 0 8px 20px -6px rgba(15, 23, 42, 0.25);
}
.btn-inverted:hover {
  background: #F8FAFC;
  @media (prefers-reduced-motion: no-preference) { translate: 0 -1.5px; }
}
.btn-sm { min-block-size: 38px; padding: 8px 16px; font-size: 0.76rem; }
.btn-block { display: flex; inline-size: 100%; }
.btn.is-disabled { opacity: 0.45; cursor: not-allowed; pointer-events: none; }
.link {
  background: none; border: 0; cursor: pointer; padding: 6px;
  font: inherit; font-size: 0.76rem; font-weight: 700; color: var(--primary);
  text-decoration: underline; text-underline-offset: 4px;
  transition: color 0.18s ease;
}
.link:hover { color: var(--primary-hover); }

/* Hero — compact, airy, gentle fade-up */
.hero { padding-block: 30px 42px; }
.hero-copy {
  max-inline-size: 640px; margin-inline: auto; text-align: center;
  @media (prefers-reduced-motion: no-preference) {
    animation: fade-up 0.55s var(--ease-out) both;
  }
}
h1 {
  font-size: clamp(1.75rem, 4vw, 2.6rem); font-weight: 900; letter-spacing: -0.03em;
  line-height: 1.15; text-wrap: balance; color: var(--fg);
}
.lead { margin-block-start: 12px; font-size: 0.96rem; line-height: 1.58; color: var(--secondary); text-wrap: pretty; }
.hero-ctas { margin-block-start: 20px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* Showcase — soft cool tint & smooth image transitions */
.showcase {
  margin-block-start: 30px;
  background: linear-gradient(180deg, #F8FAFC 0%, #F1F5F9 100%);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: clamp(14px, 2.4vw, 24px);
  box-shadow: 0 12px 32px -12px rgba(15, 23, 42, 0.06);
  @media (prefers-reduced-motion: no-preference) {
    animation: fade-up 0.65s var(--ease-out) 0.08s both;
  }
}
.showcase-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px; padding-block-end: 16px;
}
.showcase-head h2 { font-size: 1rem; font-weight: 800; color: var(--fg); }
.tabs { display: inline-flex; background: #E2E8F0; border-radius: 999px; padding: 3px; gap: 2px; }
.tab {
  border: 0; border-radius: 999px; padding: 7px 14px; cursor: pointer;
  font: inherit; font-size: 0.74rem; font-weight: 600; color: var(--secondary); background: transparent;
  transition: background-color 0.22s var(--ease-out), color 0.22s ease, box-shadow 0.22s ease;
}
.tab:hover:not(.tab-active) { color: var(--fg); }
.tab-active {
  background: var(--brand-gradient); color: #FFFFFF;
  box-shadow: 0 4px 12px -2px rgba(79, 70, 229, 0.35);
}

.showcase-grid { display: grid; gap: 16px; }
@media (min-width: 1024px) { .showcase-grid { grid-template-columns: 3.6fr 8.4fr; align-items: start; } }
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}
.card-head { display: flex; align-items: center; justify-content: space-between; padding-block-end: 8px; gap: 8px; }
.card-label { font-size: 0.74rem; font-weight: 700; color: var(--fg); }
.tag {
  background: var(--indigo-bg); border: 1px solid #C7D2FE; color: var(--indigo-fg);
  border-radius: 999px; padding: 2px 10px; font-size: 0.66rem; font-weight: 700;
}
.img-3x4 { aspect-ratio: 3 / 4; border-radius: 11px; overflow: clip; background: var(--muted-bg); }
.img-3x4 img {
  inline-size: 100%; block-size: 100%; object-fit: cover; display: block;
  @media (prefers-reduced-motion: no-preference) {
    transition: scale 0.45s var(--ease-out);
  }
}
.img-3x4:hover img {
  @media (prefers-reduced-motion: no-preference) { scale: 1.04; }
}
.input-card figcaption { margin-block-start: 8px; font-size: 0.76rem; color: var(--secondary); }
.input-card .btn-block { margin-block-start: 10px; }

.output-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.output-grid > * { min-inline-size: 0; }
@media (min-width: 640px) { .output-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pose-item {
  @media (prefers-reduced-motion: no-preference) {
    animation: pose-in 0.42s var(--ease-out) both;
    animation-delay: calc(var(--i, 0) * 55ms);
  }
}
.pose-title { margin-block-start: 7px; font-size: 0.74rem; font-weight: 700; color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pose-tip { margin-block-start: 2px; font-size: 0.66rem; color: var(--muted-fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Steps — compact 3-col strip with soft color accents */
.steps { border-block-start: 1px solid var(--border-subtle); padding-block: 44px; background: var(--muted-bg); }
.steps-grid { display: grid; gap: 16px; }
@media (min-width: 768px) { .steps-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.step-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 20px;
  transition: border-color 0.2s ease, box-shadow 0.25s var(--ease-out), translate 0.25s var(--ease-out);
}
.step-card:hover {
  border-color: #C7D2FE;
  box-shadow: 0 12px 24px -10px rgba(79, 70, 229, 0.12);
  @media (prefers-reduced-motion: no-preference) { translate: 0 -2px; }
}
.step-num {
  display: inline-block; padding: 2px 9px; border-radius: 999px;
  background: var(--indigo-bg); color: var(--indigo-fg);
  font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em;
}
.steps h3 { margin-block-start: 10px; font-size: 0.96rem; font-weight: 800; color: var(--fg); }
.steps .muted { margin-block-start: 6px; font-size: 0.82rem; color: var(--secondary); }

/* Home Pricing Teaser Banner (rich Deep Indigo → Sky gradient) */
.pricing-banner { padding-block: 36px; border-block-start: 1px solid var(--border-subtle); }
.pricing-banner-card {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  padding: 26px 28px; border-radius: 22px;
  background: var(--featured-gradient); color: #FFFFFF;
  box-shadow: 0 18px 40px -14px rgba(49, 46, 129, 0.38);
}
.pricing-banner-copy { max-inline-size: 620px; }
.pricing-banner-eyebrow {
  display: inline-block; padding: 3px 11px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.16); color: #E0F2FE;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.02em;
}
.pricing-banner-card h2 { margin-block-start: 8px; font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; color: #FFFFFF; }
.pricing-banner-card p { margin-block-start: 6px; font-size: 0.84rem; color: #E0E7FF; line-height: 1.55; }
.pricing-banner-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* --- Dedicated /pricing/ Page (Vibrant Indigo/Emerald UI + Subgrid) --- */
.pricing-hero { padding-block: 38px 24px; text-align: center; }
.pricing-hero-copy {
  max-inline-size: 660px; margin-inline: auto;
  @media (prefers-reduced-motion: no-preference) {
    animation: fade-up 0.55s var(--ease-out) both;
  }
}
.eyebrow-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 999px;
  background: var(--indigo-bg); border: 1px solid #C7D2FE;
  font-size: 0.72rem; font-weight: 700; color: var(--indigo-fg);
}
.pricing-hero h1 { margin-block-start: 12px; font-size: clamp(1.8rem, 4vw, 2.55rem); }
.pricing-trust {
  margin-block-start: 16px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px;
  font-size: 0.76rem; font-weight: 600; color: var(--secondary);
}
.pricing-trust span::before { content: '✓ '; font-weight: 800; color: var(--emerald); }

.pricing-section { padding-block: 16px 48px; }
.pricing-grid {
  display: grid; gap: 16px;
  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));
    grid-template-rows: auto auto auto 1fr auto;
    align-items: stretch;
  }
}

.plan {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  gap: 10px;
  padding: 24px 20px 20px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #FFFFFF;
  color: var(--fg);
  transition: translate 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), border-color 0.2s ease;
}
@media (min-width: 1024px) {
  .plan {
    grid-row: span 5;
    grid-template-rows: subgrid;
    row-gap: 10px;
  }
}
.plan:hover {
  border-color: #A5B4FC;
  box-shadow: 0 14px 30px -10px rgba(79, 70, 229, 0.14);
  @media (prefers-reduced-motion: no-preference) { translate: 0 -3px; }
}

/* Standout Deep Indigo → Sky Gradient Featured Card */
.plan-featured {
  background: var(--featured-gradient);
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: 0 22px 46px -12px rgba(49, 46, 129, 0.42);
}
.plan-featured:hover {
  border-color: transparent;
  box-shadow: 0 26px 54px -10px rgba(49, 46, 129, 0.52);
  @media (prefers-reduced-motion: no-preference) { translate: 0 -4px; }
}
.plan-badge {
  position: absolute; inset-block-start: -12px; inset-inline-start: 20px;
  padding: 4px 12px; border-radius: 999px;
  background: #FFFFFF; color: #312E81;
  border: 1.5px solid #C7D2FE;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.01em;
}
.plan-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.plan h2, .plan h3 { font-size: 0.98rem; font-weight: 800; letter-spacing: -0.01em; }
.plan-chip {
  padding: 2px 9px; border-radius: 999px;
  background: var(--indigo-bg); color: var(--indigo-fg);
  font-size: 0.64rem; font-weight: 700; white-space: nowrap;
}
.plan-featured .plan-chip { background: rgba(255, 255, 255, 0.18); color: #E0F2FE; }

.plan-price-block { padding-block-end: 12px; border-block-end: 1px solid var(--border-subtle); }
.plan-featured .plan-price-block { border-block-end-color: rgba(255, 255, 255, 0.16); }
.plan-price { font-size: 1.85rem; font-weight: 900; letter-spacing: -0.03em; line-height: 1.1; }
.plan-per { font-size: 0.8rem; font-weight: 600; color: var(--muted-fg); }
.plan-featured .plan-per { color: #C7D2FE; }
.plan-meta { margin-block-start: 6px; display: flex; align-items: center; gap: 8px; font-size: 0.72rem; color: var(--muted-fg); }
.plan-featured .plan-meta { color: #C7D2FE; }
.plan-unit {
  padding: 2px 8px; border-radius: 6px;
  background: var(--emerald-bg); color: var(--emerald-fg); font-weight: 700;
}
.plan-featured .plan-unit { background: rgba(255, 255, 255, 0.18); color: #FFFFFF; }
.tabular, .plan-usd { font-variant-numeric: tabular-nums; }

.plan-desc { font-size: 0.8rem; line-height: 1.5; color: var(--secondary); }
.plan-featured .plan-desc { color: #E0E7FF; }

.plan-list { padding: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; font-size: 0.8rem; line-height: 1.45; }
.plan-list li { position: relative; padding-inline-start: 20px; }
.plan-list li::before {
  content: '✓'; position: absolute; inset-inline-start: 0; inset-block-start: 0;
  font-weight: 800; font-size: 0.78rem; color: var(--emerald);
}
.plan-featured .plan-list li::before { color: #7DD3FC; }

.plan-cta { margin-block-start: 6px; }
.pricing-note { margin-block-start: 20px; max-inline-size: 820px; margin-inline: auto; text-align: center; }

/* Pricing FAQ Accordion (native <details>, modern-web-guidance) */
.faq-section { padding-block: 40px 56px; border-block-start: 1px solid var(--border-subtle); background: var(--muted-bg); }
.faq-wrap { max-inline-size: 760px; margin-inline: auto; }
.faq-wrap h2 { font-size: 1.25rem; font-weight: 800; text-align: center; margin-block-end: 20px; color: var(--fg); }
.faq-list { display: grid; gap: 10px; }
.faq-list details {
  background: #FFFFFF; border: 1px solid var(--border); border-radius: 14px;
  padding: 14px 18px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.faq-list details[open] {
  border-color: #C7D2FE;
  box-shadow: 0 8px 20px -10px rgba(79, 70, 229, 0.12);
}
.faq-list summary {
  list-style: none; display: flex; align-items: center; gap: 10px;
  cursor: pointer; font-size: 0.88rem; font-weight: 700; color: var(--fg);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::before {
  content: '+'; display: inline-flex; align-items: center; justify-content: center;
  inline-size: 22px; block-size: 22px; flex-shrink: 0;
  border-radius: 999px; background: var(--indigo-bg); color: var(--indigo-fg);
  font-size: 0.88rem; font-weight: 800; line-height: 1;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.faq-list details[open] > summary::before { content: '−'; background: var(--primary); color: #FFFFFF; }
.faq-list details::details-content {
  interpolate-size: allow-keywords;
  overflow: clip;
  contain: layout;
}
.faq-list details:not([open])::details-content { block-size: 0; }
@media (prefers-reduced-motion: no-preference) {
  .faq-list details::details-content {
    transition: block-size 0.28s var(--ease-out), content-visibility 0.28s ease;
    transition-behavior: allow-discrete;
  }
}
.faq-list details p { margin-block-start: 10px; padding-inline-start: 32px; font-size: 0.82rem; line-height: 1.65; color: var(--secondary); }

/* Footer */
.site-footer { border-block-start: 1px solid var(--border-subtle); padding-block: 24px; background: #FFFFFF; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; font-size: 0.76rem; color: var(--muted-fg); }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; font-size: 0.78rem; }
.footer-links a { color: var(--secondary); text-decoration: none; transition: color 0.15s ease; }
.footer-links a:hover { color: var(--primary); text-decoration: underline; }
.footer-cta { font-weight: 800; color: var(--primary); text-decoration: none; }
.footer-cta:hover { text-decoration: underline; }

/* Smart deep link & QR modal — native discrete entry/exit animation */
.dl-modal {
  inline-size: min(92vw, 420px); margin: auto; padding: 22px;
  border: 1px solid var(--border); border-radius: 22px;
  background: #FFFFFF; color: var(--fg);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
  @media (prefers-reduced-motion: no-preference) {
    opacity: 0;
    scale: 0.96;
    transition: opacity 0.22s var(--ease-out), scale 0.22s var(--ease-out), display 0.22s, overlay 0.22s;
    transition-behavior: allow-discrete;
  }
}
.dl-modal[open] {
  @media (prefers-reduced-motion: no-preference) {
    opacity: 1;
    scale: 1;
    @starting-style {
      opacity: 0;
      scale: 0.96;
    }
  }
}
.dl-modal::backdrop {
  background: rgba(15, 23, 42, 0.42); backdrop-filter: blur(4px);
}
.dl-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-block-end: 12px; border-block-end: 1px solid var(--border-subtle); }
.dl-head h3 { font-size: 0.9rem; font-weight: 700; color: var(--fg); }
.dl-close { inline-size: 28px; block-size: 28px; border: 0; border-radius: 999px; background: var(--muted-bg); color: var(--secondary); font-size: 0.75rem; cursor: pointer; transition: background-color 0.15s ease; }
.dl-close:hover { background: var(--border); }
.dl-body { display: flex; flex-direction: column; align-items: center; text-align: center; padding-block-start: 18px; }
.dl-qr { inline-size: 176px; block-size: 176px; padding: 10px; border: 1px solid var(--border); border-radius: 14px; background: #FFFFFF; }
.dl-qr svg { display: block; inline-size: 100%; block-size: 100%; }
.dl-scan { margin-block-start: 12px; font-size: 0.78rem; font-weight: 600; color: var(--fg); }
.dl-url { display: flex; inline-size: 100%; align-items: center; justify-content: space-between; gap: 8px; margin-block-start: 14px; padding: 7px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--muted-bg); }
.dl-url code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.68rem; color: var(--secondary); min-inline-size: 0; }
.dl-url .link { flex-shrink: 0; }
.dl-actions { display: grid; inline-size: 100%; grid-template-columns: 1fr 1fr; gap: 10px; margin-block-start: 14px; }
.dl-actions .btn { justify-content: center; }
.dl-body > .link { margin-block-start: 12px; }

/* /open fallback page */
.open-page { display: flex; min-block-size: 100dvh; align-items: center; justify-content: center; padding: 24px; background: var(--muted-bg); }
.open-card { inline-size: 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 { inline-size: 100%; justify-content: center; margin-block-start: 12px; }

/* Legal pages */
.legal { max-inline-size: 760px; margin-inline: auto; padding: 40px 20px 64px; }
.legal h1 { font-size: 1.55rem; font-weight: 800; }
.legal h2 { margin-block-start: 24px; font-size: 1.02rem; font-weight: 700; }
.legal p, .legal li { margin-block-start: 8px; font-size: 0.9rem; line-height: 1.7; color: var(--secondary); }
.legal ul { padding-inline-start: 20px; }
.legal .updated { color: var(--muted-fg); font-size: 0.78rem; }

/* Compositor-only keyframes */
@keyframes fade-up {
  from { opacity: 0; translate: 0 14px; }
  to { opacity: 1; translate: 0 0; }
}
@keyframes pose-in {
  from { opacity: 0; translate: 0 10px; scale: 0.985; }
  to { opacity: 1; translate: 0 0; scale: 1; }
}
