/* PetFitting AI - style.css (light theme) */
:root {
  --bg: #fff8f2;
  --surface: #ffffff;
  --ink: #2b2320;
  --muted: #6f6259;
  --line: #efe3d9;
  --brand: #ff6b4a;
  --brand-dark: #e4522f;
  --brand-soft: #fff0eb;
  --teal: #12b5a5;
  --teal-soft: #e6f8f6;
  --amber: #ffb020;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(43, 35, 32, 0.08);
  --shadow-lg: 0 18px 50px rgba(43, 35, 32, 0.14);
  --maxw: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 248, 242, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 16px;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -0.2px; }
.logo-mark {
  width: 36px; height: 36px; border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--amber));
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; color: #fff;
}
.nav-menu { display: flex; align-items: center; gap: 26px; }
.nav-menu a { font-size: 15px; color: var(--muted); font-weight: 500; transition: color 0.15s; }
.nav-menu a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.lang-toggle {
  border: 1px solid var(--line); background: var(--surface);
  border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 600;
  color: var(--muted); transition: all 0.15s;
}
.lang-toggle:hover { border-color: var(--brand); color: var(--brand); }
.lang-select {
  border: 1px solid var(--line); background: var(--surface);
  border-radius: 999px; padding: 7px 12px; font-size: 13px; font-weight: 600;
  color: var(--muted); cursor: pointer; outline: none; transition: border-color 0.15s;
  max-width: 130px;
}
.lang-select:hover, .lang-select:focus { border-color: var(--brand); color: var(--ink); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; padding: 12px 26px; font-size: 15px; font-weight: 700;
  border: none; transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(255, 107, 74, 0.35); }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.burger { display: none; background: none; border: none; width: 40px; height: 40px; position: relative; }
.burger span {
  position: absolute; left: 9px; right: 9px; height: 2px; background: var(--ink);
  border-radius: 2px; transition: all 0.2s;
}
.burger span:nth-child(1) { top: 13px; }
.burger span:nth-child(2) { top: 19px; }
.burger span:nth-child(3) { top: 25px; }
.burger.active span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

/* ---------- hero ---------- */
.hero { padding: 72px 0 64px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; top: -180px; right: -140px;
  width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 176, 32, 0.16), transparent 65%);
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center;
  position: relative;
}
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--teal-soft); color: var(--teal);
  font-size: 13px; font-weight: 700; padding: 6px 14px; border-radius: 999px;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(34px, 5vw, 52px); line-height: 1.18; letter-spacing: -0.5px;
  font-weight: 800; margin-bottom: 18px;
}
.hero h1 .hl { color: var(--brand); }
.hero .sub { font-size: 17px; color: var(--muted); max-width: 520px; margin-bottom: 28px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.hero-note { font-size: 13px; color: var(--muted); }
.hero-visual { position: relative; }
.hero-frame {
  border-radius: 28px; box-shadow: var(--shadow-lg);
  transform: rotate(1.5deg); border: 6px solid var(--surface);
  overflow: hidden; background: var(--surface);
}
.hero-frame img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.hero-sticker {
  position: absolute; bottom: -16px; left: -16px;
  background: var(--surface); border-radius: 14px; box-shadow: var(--shadow);
  padding: 10px 16px; font-size: 13px; font-weight: 700; color: var(--ink);
  display: flex; align-items: center; gap: 8px;
}
.hero-sticker .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--teal); }

/* ---------- section base ---------- */
section { padding: 72px 0; }
.sec-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.sec-tag {
  display: inline-flex; background: var(--brand-soft); color: var(--brand);
  font-size: 13px; font-weight: 700; padding: 6px 14px; border-radius: 999px; margin-bottom: 14px;
}
.sec-head h2 { font-size: clamp(26px, 3.6vw, 36px); font-weight: 800; letter-spacing: -0.4px; margin-bottom: 12px; }
.sec-head p { color: var(--muted); font-size: 16px; }

/* ---------- compare gallery ---------- */
.cmp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cmp-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; border: 1px solid var(--line); }
.cmp {
  position: relative; aspect-ratio: 1 / 1; overflow: hidden; user-select: none;
  --pos: 50%;
}
.cmp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.cmp-after { clip-path: inset(0 0 0 50%); }
.cmp-handle {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 3px;
  background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.25);
  pointer-events: none; z-index: 2;
}
.cmp-handle::after {
  content: "◀ ▶"; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: #fff; color: var(--ink); font-size: 11px; font-weight: 800;
  border-radius: 999px; padding: 6px 9px; white-space: nowrap;
  box-shadow: var(--shadow);
}
.cmp input[type=range] {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: ew-resize; z-index: 3; margin: 0;
}
.cmp-meta { padding: 16px 18px; }
.cmp-meta .name { font-weight: 800; font-size: 16px; }
.cmp-meta .desc { color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.cmp-tag {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: rgba(43, 35, 32, 0.55); color: #fff; backdrop-filter: blur(4px);
  font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
  pointer-events: none;
}

/* ---------- steps ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow); position: relative;
}
.step-num {
  width: 44px; height: 44px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px; color: #fff; margin-bottom: 16px;
}
.step-card:nth-child(1) .step-num { background: var(--brand); }
.step-card:nth-child(2) .step-num { background: var(--amber); }
.step-card:nth-child(3) .step-num { background: var(--teal); }
.step-card h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.step-card p { color: var(--muted); font-size: 14.5px; }

/* ---------- styles grid ---------- */
.styles-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.style-tile {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 20px; text-align: center; transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.style-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.style-emoji {
  width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 18px;
  display: flex; align-items: center; justify-content: center; font-size: 28px;
}
.style-tile:nth-child(8n + 1) .style-emoji { background: var(--teal-soft); }
.style-tile:nth-child(8n + 2) .style-emoji { background: var(--brand-soft); }
.style-tile:nth-child(8n + 3) .style-emoji { background: #fff4dc; }
.style-tile:nth-child(8n + 4) .style-emoji { background: #ece7fb; }
.style-tile:nth-child(8n + 5) .style-emoji { background: #e3f1fd; }
.style-tile:nth-child(8n + 6) .style-emoji { background: #fde3ee; }
.style-tile:nth-child(8n + 7) .style-emoji { background: #e6f8e6; }
.style-tile:nth-child(8n + 8) .style-emoji { background: #fff0d9; }
.style-tile .name { font-weight: 800; font-size: 15.5px; }
.styles-more { text-align: center; margin-top: 28px; color: var(--muted); font-size: 14px; }
.style-group-title {
  margin: 30px 0 14px; font-size: 13px; font-weight: 800;
  color: var(--muted); text-transform: uppercase; letter-spacing: 0.6px;
}
.style-group-title:first-child { margin-top: 0; }
.demo-custom {
  width: 100%; border: 1.5px solid var(--line); border-radius: 12px;
  padding: 11px 14px; font-size: 14px; font-family: inherit;
  background: var(--bg); color: var(--ink); outline: none; transition: border-color 0.15s;
}
.demo-custom:focus { border-color: var(--brand); }
.styles-more .dot-mid { color: var(--brand); font-weight: 800; }

/* ---------- demo ---------- */
.demo-wrap {
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px;
  box-shadow: var(--shadow-lg); padding: 36px; display: grid;
  grid-template-columns: 1fr 1fr; gap: 36px;
}
.drop-zone {
  border: 2px dashed #dcccbf; border-radius: var(--radius);
  min-height: 280px; display: flex; align-items: center; justify-content: center;
  text-align: center; cursor: pointer; transition: border-color 0.15s, background 0.15s;
  position: relative; overflow: hidden; background: var(--bg);
}
.drop-zone:hover, .drop-zone.drag { border-color: var(--brand); background: var(--brand-soft); }
.drop-zone img.preview {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 8px;
  background: #fff;
}
.drop-inner { padding: 24px; }
.drop-inner .icon { font-size: 40px; margin-bottom: 12px; }
.drop-inner .main { font-weight: 700; font-size: 15.5px; margin-bottom: 6px; }
.drop-inner .hint { color: var(--muted); font-size: 13px; }
.demo-controls { display: flex; flex-direction: column; gap: 18px; }
.demo-label { font-size: 13.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.6px; }
.style-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.style-chip {
  border: 1.5px solid var(--line); background: var(--surface);
  border-radius: 999px; padding: 8px 16px; font-size: 14px; font-weight: 600; color: var(--muted);
  transition: all 0.15s;
}
.style-chip:hover { border-color: var(--brand); color: var(--brand); }
.style-chip.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.progress-wrap { display: none; }
.progress-bar-bg {
  height: 10px; background: var(--line); border-radius: 999px; overflow: hidden; margin-bottom: 10px;
}
.progress-bar {
  height: 100%; width: 0%; border-radius: 999px;
  background: linear-gradient(90deg, var(--amber), var(--brand));
  transition: width 0.45s ease;
}
.step-text { font-size: 13.5px; color: var(--muted); font-weight: 600; }
.result-wrap { display: none; }
.result-frame {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  aspect-ratio: 1/1; background: #fff; position: relative;
}
.result-frame img { width: 100%; height: 100%; object-fit: contain; }
.result-style-badge {
  position: absolute; top: 12px; right: 12px;
  background: var(--teal); color: #fff; font-size: 12px; font-weight: 800;
  padding: 5px 12px; border-radius: 999px;
}
.result-note {
  margin-top: 12px; font-size: 12.5px; color: var(--muted);
  background: var(--amber); background: #fff7e8; border: 1px solid #ffe3ad;
  color: #8a6a1f; padding: 10px 14px; border-radius: var(--radius-sm); line-height: 1.5;
}
.demo-actions { display: flex; gap: 12px; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ---------- pricing ---------- */
.billing-seg {
  display: inline-flex; background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 4px; gap: 4px; margin: 0 auto 40px;
  position: relative; left: 50%; transform: translateX(-50%);
}
.billing-seg button {
  border: none; background: transparent; border-radius: 999px;
  padding: 9px 22px; font-size: 14px; font-weight: 700; color: var(--muted);
  transition: all 0.15s;
}
.billing-seg button.active { background: var(--brand); color: #fff; }
.save-badge {
  display: inline-flex; align-items: center; margin-left: 10px;
  background: var(--teal-soft); color: var(--teal);
  font-size: 11.5px; font-weight: 800; padding: 3px 10px; border-radius: 999px;
}
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.price-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px;
  padding: 32px 28px; box-shadow: var(--shadow); display: flex; flex-direction: column;
  position: relative;
}
.price-card.featured { border: 2px solid var(--brand); box-shadow: var(--shadow-lg); }
.pop-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--brand); color: #fff; font-size: 12px; font-weight: 800;
  padding: 5px 14px; border-radius: 999px; white-space: nowrap;
}
.plan-name { font-size: 17px; font-weight: 800; }
.plan-desc { color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.plan-price { margin: 18px 0 4px; display: flex; align-items: baseline; gap: 4px; }
.plan-price .cur { font-size: 20px; font-weight: 800; color: var(--muted); }
.plan-price .num { font-size: 44px; font-weight: 800; letter-spacing: -1px; }
.plan-price .per { color: var(--muted); font-size: 14px; font-weight: 600; }
.plan-year-note { font-size: 12.5px; color: var(--teal); font-weight: 700; min-height: 18px; }
.plan-features { list-style: none; margin: 18px 0 24px; flex: 1; }
.plan-features li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 14.5px; padding: 7px 0; color: var(--ink);
}
.plan-features li .tick { color: var(--teal); font-weight: 800; }
.price-note { text-align: center; margin-top: 28px; font-size: 13px; color: var(--muted); }

/* ---------- faq ---------- */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 12px; overflow: hidden;
}
.faq-q {
  width: 100%; background: none; border: none; text-align: left;
  padding: 18px 22px; font-size: 15.5px; font-weight: 700; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-q .chev { transition: transform 0.2s; color: var(--muted); font-size: 14px; }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.28s ease; }
.faq-item.open .faq-a { max-height: 300px; }
.faq-a p { padding: 0 22px 20px; color: var(--muted); font-size: 14.5px; }

/* ---------- bottom cta ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--brand), #ff9050);
  border-radius: 28px; padding: 56px 40px; text-align: center;
  color: #fff; box-shadow: 0 20px 50px rgba(255, 107, 74, 0.35);
}
.cta-band h2 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; margin-bottom: 10px; }
.cta-band p { opacity: 0.92; margin-bottom: 26px; font-size: 16px; }
.cta-band .btn { background: #fff; color: var(--brand-dark); box-shadow: 0 8px 24px rgba(0,0,0,0.15); }
.cta-band .btn:hover { transform: translateY(-1px); }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 52px 0 30px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
.footer-brand p { color: var(--muted); font-size: 14px; margin-top: 10px; max-width: 300px; }
.footer-col h4 { font-size: 14px; font-weight: 800; margin-bottom: 14px; }
.footer-col a, .footer-col span { display: block; color: var(--muted); font-size: 14px; padding: 5px 0; }
.footer-col a:hover { color: var(--brand); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 22px; }
.footer-rights { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.footer-disclaimer { font-size: 12.5px; color: var(--muted); opacity: 0.85; line-height: 1.6; }

/* ---------- toast ---------- */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translate(-50%, 20px);
  background: var(--ink); color: #fff; font-size: 14px; font-weight: 600;
  padding: 12px 22px; border-radius: 999px; box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none; transition: all 0.25s ease; z-index: 100;
  max-width: 90vw; text-align: center;
}
.toast--show { opacity: 1; transform: translate(-50%, 0); }
.toast--error { background: #c0392b; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- legal pages ---------- */
.legal-main { padding: 60px 0 80px; }
.legal-main h1 { font-size: 32px; font-weight: 800; margin-bottom: 6px; }
.legal-updated { color: var(--muted); font-size: 13.5px; margin-bottom: 32px; }
.legal-block h2 { font-size: 20px; font-weight: 800; margin: 30px 0 10px; }
.legal-block p, .legal-block li { color: var(--muted); font-size: 15px; margin-bottom: 8px; }
.legal-block ul { padding-left: 22px; }
.lang-block { display: none; }
html[lang="en"] .lang-block.en { display: block; }
html[lang="zh-CN"] .lang-block.zh { display: block; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { max-width: 440px; margin: 0 auto; }
  .cmp-grid { grid-template-columns: 1fr 1fr; }
  .styles-grid { grid-template-columns: repeat(2, 1fr); }
  .demo-wrap { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .nav-menu {
    position: fixed; top: 68px; left: 0; right: 0;
    background: var(--surface); flex-direction: column; align-items: flex-start;
    padding: 18px 24px; gap: 14px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg); display: none;
  }
  .nav-menu.open { display: flex; }
  .burger { display: block; }
  .nav-actions .btn { display: none; }
  .cmp-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 48px; }
  section { padding: 56px 0; }
  .demo-wrap { padding: 24px; }
  .cta-band { padding: 44px 24px; }
}

/* ===== preview honesty + generated result ===== */
.demo-preview-banner {
  display: block; margin: 0 0 14px; padding: 10px 14px; border-radius: 10px;
  background: #fff6e8; border: 1px solid #f5d9a8; color: #8a5a12;
  font-size: 12.5px; line-height: 1.55;
}
.price-note--warn { color: #8a5a12; background: #fff8ec; display: inline-block; padding: 8px 16px; border-radius: 10px; }
.result-wrap #resultImg { display: block; }
.legal-entity {
  display: block; margin: 0 0 18px; padding: 12px 16px; border-radius: 10px;
  background: var(--surface); border: 1px dashed var(--line); font-size: 13px; color: var(--muted);
}

/* GenLook real-generation notice */
.genlook-note { color: #6b4a12; background: #fff9ec; border: 1px solid #f0ddb5; padding: 10px 14px; border-radius: 10px; line-height: 1.6; }

/* generated image download */
.btn-download { margin-top: 12px; }
