/* Puzolo website. No external fonts or scripts (see _headers CSP). */
:root {
  --bg: #fdf6ee;
  --bg-2: #f4f0fd;
  --card: #ffffff;
  --ink: #33365e;
  --muted: #5d6384;
  --violet: #5f4dbd;
  --violet-soft: #ebe7fc;
  --peach: #ffad6b;
  --peach-deep: #f08a4b;
  --rust: #9c524a;
  --teal: #1f6e61;
  --teal-soft: #dcf4ef;
  --night: #574fa6;
  --night-soft: #e2e2ff;
  --line: rgba(51, 54, 94, 0.12);
  --shadow: 0 10px 30px rgba(51, 54, 94, 0.10);
  --round: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); font: 17px/1.65 var(--sans);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 55%, var(--bg) 100%);
  min-height: 100vh;
}
html[lang="en"] .zh, html[lang="zh-Hans"] .en { display: none !important; }
a { color: var(--violet); text-underline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--round); line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Bar */
.bar { position: sticky; top: 0; z-index: 10; background: rgba(253, 246, 238, 0.86);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; flex: none; }
.brand img { width: 36px; height: 36px; border-radius: 9px; box-shadow: 0 2px 6px rgba(51, 54, 94, 0.18); }
.brand-name { font: 800 22px/1 var(--round); }
.bar nav { display: flex; align-items: center; gap: 18px; }
.bar nav a { color: var(--muted); text-decoration: none; font: 700 15px/1 var(--round); white-space: nowrap; }
.bar nav a:hover, .bar nav a[aria-current="page"] { color: var(--violet); }
.lang { font: 700 14px/1 var(--round); color: var(--ink); background: var(--card); border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 12px; cursor: pointer; white-space: nowrap; }
.lang:hover { border-color: var(--violet); }

/* Hero */
.hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; padding: 56px 24px 40px; }
.eyebrow { display: inline-block; font: 800 13px/1 var(--round); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--rust); background: #ffe9d6; padding: 8px 12px; border-radius: 999px; }
.hero h1 { font-size: clamp(44px, 7vw, 76px); font-weight: 900; margin: 18px 0 14px; }
.hero h1 .accent { color: var(--violet); }
.lede { font-size: 20px; color: var(--muted); max-width: 32em; margin: 0 0 28px; }
.lede strong { color: var(--ink); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 18px;
  font: 800 17px/1 var(--round); text-decoration: none; }
.btn.primary { color: #fff; background: linear-gradient(180deg, #ffc27a, var(--peach-deep));
  box-shadow: 0 4px 0 #c96a3a, 0 10px 24px rgba(240, 138, 75, 0.35); }
.btn.ghost { color: var(--violet); background: var(--card); border: 2px solid var(--violet-soft); }
.btn.ghost:hover { border-color: var(--violet); }
.note { margin: 18px 0 0; font-size: 14px; color: var(--muted); }
.hero-art { position: relative; justify-self: center; width: min(360px, 100%); }
.phone { border-radius: 44px; padding: 10px; background: #1d1f33; box-shadow: 0 30px 60px rgba(51, 54, 94, 0.28); }
.phone img { border-radius: 35px; }
.hero-art .zolo { position: absolute; width: 132px; left: -78px; bottom: 36px; filter: drop-shadow(0 8px 14px rgba(51, 54, 94, 0.25)); }
.hero-art .sticker { position: absolute; width: 92px; filter: drop-shadow(0 6px 10px rgba(51, 54, 94, 0.22)); }
.hero-art .s1 { right: -54px; top: 54px; transform: rotate(10deg); }
.hero-art .s2 { right: -40px; bottom: 120px; transform: rotate(-8deg); }

/* Sections */
section { padding: 56px 0; }
h2 { font-size: clamp(30px, 4vw, 42px); font-weight: 900; }
.sub { color: var(--muted); font-size: 18px; max-width: 40em; margin: 12px 0 32px; }
.center { text-align: center; }
.center .sub { margin-left: auto; margin-right: auto; }

.loop { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { background: var(--card); border-radius: 24px; padding: 22px; box-shadow: var(--shadow); }
.step .n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--violet-soft); color: var(--violet); font: 900 18px/1 var(--round); margin-bottom: 14px; }
.step h3 { font-size: 21px; margin-bottom: 6px; }
.step p { margin: 0; color: var(--muted); font-size: 16px; }

.worlds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.world { border-radius: 26px; overflow: hidden; background: var(--card); box-shadow: var(--shadow); }
.world img { aspect-ratio: 780 / 460; object-fit: cover; width: 100%; }
.world div { padding: 18px 20px 22px; }
.world h3 { font-size: 22px; margin-bottom: 4px; }
.world p { margin: 0; color: var(--muted); font-size: 15.5px; }
.world.sunrise h3 { color: var(--rust); }
.world.garden h3 { color: var(--teal); }
.world.stars h3 { color: var(--night); }
.tag { display: inline-block; margin-top: 10px; font: 800 12.5px/1 var(--round); padding: 6px 10px; border-radius: 999px; }
.sunrise .tag { background: #ffe9d6; color: var(--rust); }
.garden .tag { background: var(--teal-soft); color: var(--teal); }
.stars .tag { background: var(--night-soft); color: var(--night); }

.shots { display: grid; grid-auto-flow: column; grid-auto-columns: 250px; gap: 20px; overflow-x: auto;
  padding: 6px 4px 22px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.shot { scroll-snap-align: start; margin: 0; }
.shot img { border-radius: 30px; border: 6px solid #1d1f33; box-shadow: var(--shadow); }
.shot figcaption { margin-top: 12px; font-size: 15px; color: var(--muted); }
.shot figcaption b { display: block; color: var(--ink); font: 800 17px/1.3 var(--round); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { display: flex; gap: 14px; background: var(--card); border-radius: 22px; padding: 20px; box-shadow: var(--shadow); }
.feature img { width: 56px; height: 56px; flex: none; }
.feature h3 { font-size: 19px; margin-bottom: 4px; }
.feature p { margin: 0; color: var(--muted); font-size: 15.5px; }

.parents { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 36px; align-items: center;
  background: var(--card); border-radius: 32px; padding: 36px; box-shadow: var(--shadow); }
.parents img { width: 220px; margin: 0 auto; }
.parents ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.parents li { display: flex; gap: 12px; align-items: flex-start; }
.parents li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 3px; border-radius: 50%;
  background: var(--teal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%231f6e61' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat; }

.closing { text-align: center; padding: 64px 0 80px; }
.closing img { width: 120px; margin: 0 auto 18px; border-radius: 27px; box-shadow: var(--shadow); }
.closing .cta { justify-content: center; margin-top: 24px; }

/* Docs */
.doc { max-width: 760px; padding-top: 48px; padding-bottom: 72px; }
.doc h1 { font-size: 42px; font-weight: 900; margin: 8px 0 12px; }
.doc h2 { font-size: 24px; margin: 36px 0 10px; }
.doc .meta { color: var(--muted); font-size: 15px; }
.summary, .contact { background: var(--card); border-radius: 20px; padding: 6px 22px; box-shadow: var(--shadow); margin: 22px 0; }
.contact { border: 2px solid var(--violet-soft); }
.contact a { font-weight: 700; }
details { background: var(--card); border-radius: 16px; padding: 14px 18px; margin: 10px 0; box-shadow: 0 2px 10px rgba(51, 54, 94, 0.06); }
summary { cursor: pointer; font: 800 17px/1.4 var(--round); }
details p { margin: 10px 0 2px; color: var(--muted); }
table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 16px; overflow: hidden; box-shadow: 0 2px 10px rgba(51, 54, 94, 0.06); }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 15.5px; }
th { font-family: var(--round); background: var(--violet-soft); }

footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; }
footer nav { display: flex; gap: 18px; }
footer a { color: var(--muted); }

@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; padding-top: 36px; gap: 40px; }
  .hero-art { width: min(300px, 74%); }
  .loop { grid-template-columns: repeat(2, 1fr); }
  .worlds, .features { grid-template-columns: 1fr; }
  .parents { grid-template-columns: 1fr; padding: 26px; }
  .parents img { width: 160px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 28px 16px 24px; }
  .bar nav { gap: 12px; }
  .hide-sm { display: none; }
  .loop { grid-template-columns: 1fr; }
  .hero-art .zolo { width: 96px; left: -44px; }
  .hero-art .sticker { width: 66px; }
  .hero-art .s1 { right: -30px; }
  .hero-art .s2 { right: -26px; }
  section { padding: 40px 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
