/* Panny 官網共用樣式。配色照 App icon（D202）：米白、沙金、霧藍、粉膚，強調色沙金加深。 */
:root {
  --bg: #F5F3F0;
  --surface: #FFFFFF;
  --ink: #2A2622;
  --ink-soft: #5E5750;
  --ink-mute: #9A928A;
  --line: rgba(42, 38, 34, 0.09);
  --sand: #DBC097;
  --mist: #A5B4CA;
  --blush: #EACBC1;
  --accent: #A8834F;
  --pill: #2A2622;
  --pill-ink: #FFFFFF;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg); color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC", "Helvetica Neue", "Hiragino Sans", system-ui, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
img { max-width: 100%; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px) { .wrap { padding: 0 20px; } }
.nb { display: inline-block; }

/* ── 導覽列 ── */
.nav { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; position: relative; z-index: 2; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 700; font-size: 20px; letter-spacing: -0.3px; min-height: 44px; }
.brand img { width: 36px; height: 36px; border-radius: 9px; box-shadow: 0 0 0 1px var(--line); }
.nav .links { display: flex; gap: 28px; align-items: center; font-size: 15px; font-weight: 600; }
.nav .links a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.nav .links a:hover { color: var(--accent); }
.nav .lang { font-weight: 500; color: var(--ink-soft); }
@media (max-width: 720px) { .nav .links .sec { display: none; } }

/* ── 按鈕 ── */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border-radius: 999px; min-height: 52px;
  background: var(--pill); color: var(--pill-ink);
  text-decoration: none; font-weight: 600; font-size: 15px; border: 0;
  transition: transform .2s ease, box-shadow .2s ease;
}
.pill:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(42,38,34,.18); }
.pill svg { width: 18px; height: 18px; }
.pill.soft { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.pill.soft:hover { box-shadow: 0 0 0 1px var(--line), 0 10px 24px rgba(42,38,34,.08); }
.pill[aria-disabled="true"] { cursor: default; }

/* ── 主視覺：icon 的三色暈染 ── */
.hero { position: relative; overflow: hidden; padding-bottom: 96px; }
.orbs { position: absolute; inset: -10% -10% 0 -10%; pointer-events: none; z-index: 0; }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .85; will-change: transform; }
.orb.sand  { width: 62vmax; height: 62vmax; right: -14vmax; top: -22vmax; background: radial-gradient(circle at 45% 45%, #E6CFA8 0%, var(--sand) 45%, rgba(219,192,151,0) 72%); animation: drift1 26s ease-in-out infinite alternate; }
.orb.mist  { width: 48vmax; height: 48vmax; left: -16vmax; top: 18vmax; background: radial-gradient(circle at 50% 50%, #B9C5D6 0%, var(--mist) 42%, rgba(165,180,202,0) 72%); animation: drift2 30s ease-in-out infinite alternate; }
.orb.blush { width: 38vmax; height: 38vmax; right: 2vmax; top: 30vmax; background: radial-gradient(circle at 50% 50%, #F0D8CF 0%, var(--blush) 45%, rgba(234,203,193,0) 72%); animation: drift3 22s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(-4vmax, 3vmax) scale(1.05); } }
@keyframes drift2 { to { transform: translate(5vmax, -3vmax) scale(1.08); } }
@keyframes drift3 { to { transform: translate(-3vmax, -4vmax) scale(.95); } }
.grain { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .35; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.5  0 0 0 0 0.45  0 0 0 0 0.4  0 0 0 .18 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.hero .wrap { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 56px; align-items: center; padding-top: 56px; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.1fr .9fr; padding-top: 72px; } }
.eyebrow { font-size: 13px; letter-spacing: 1.5px; color: var(--accent); font-weight: 700; margin: 0 0 18px; }
/* 名字用襯線字，跟 App 歡迎頁的「你好，我是 Panny」一致 */
.hero h1 { font-family: ui-serif, "New York", "Iowan Old Style", Georgia, serif; font-size: clamp(64px, 10vw, 116px); line-height: 1; letter-spacing: -2px; margin: 0 0 30px; font-weight: 500; }
.hero h1 small { display: block; font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC", system-ui, sans-serif; font-size: 17px; letter-spacing: 0; font-weight: 500; color: var(--ink-soft); margin-top: 18px; }
.four { margin: 0 0 40px; padding: 0; list-style: none; font-size: clamp(19px, 2.1vw, 24px); line-height: 1.75; font-weight: 600; letter-spacing: -0.2px; }
.four li { opacity: 0; transform: translateY(10px); animation: rise .8s cubic-bezier(.22,.7,.3,1) forwards; }
.four li:nth-child(1) { animation-delay: .15s; } .four li:nth-child(2) { animation-delay: .3s; }
.four li:nth-child(3) { animation-delay: .45s; } .four li:nth-child(4) { animation-delay: .6s; }
.four b { color: var(--accent); font-weight: 700; }
@keyframes rise { to { opacity: 1; transform: none; } }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.cta-note { font-size: 14px; color: var(--ink-soft); margin: 18px 0 0; }

/* ── 手機外框 ── */
.device { width: min(320px, 82vw); margin: 0 auto; padding: 10px; border-radius: 54px;
  background: linear-gradient(150deg, #FFFFFF 0%, #EDE8E2 40%, #FFFFFF 100%);
  box-shadow: 0 40px 80px rgba(80, 60, 30, .18), 0 6px 18px rgba(80,60,30,.08), inset 0 0 0 1px rgba(255,255,255,.9), 0 0 0 1px var(--line); }
.device .screen { border-radius: 44px; overflow: hidden; background: var(--bg); aspect-ratio: 1206 / 2622; }
.device .screen img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero .device { transform: rotate(-2deg); }
@media (max-width: 899px) { .hero .device { transform: none; } }

/* ── 章節 ── */
section { padding: 96px 0; }
@media (max-width: 640px) { section { padding: 64px 0; } }
.sec-label { font-size: 13px; letter-spacing: 1.5px; font-weight: 700; color: var(--accent); margin: 0 0 14px; }
h2 { font-size: clamp(30px, 4.4vw, 48px); line-height: 1.2; letter-spacing: -1.2px; margin: 0 0 18px; font-weight: 700; }
.sec-lede { font-size: 17px; color: var(--ink-soft); max-width: 600px; margin: 0 0 48px; }

/* 功能：三段左右交錯 */
.feature { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; padding: 40px 0; }
@media (min-width: 860px) { .feature { grid-template-columns: 1fr 1fr; gap: 80px; } .feature.flip .copy { order: 2; } }
.feature h3 { font-size: clamp(24px, 2.8vw, 32px); line-height: 1.3; letter-spacing: -0.6px; margin: 0 0 16px; }
.feature p { font-size: 16.5px; color: var(--ink-soft); margin: 0 0 14px; max-width: 480px; }
.feature ul { margin: 18px 0 0; padding: 0; list-style: none; }
.feature li { position: relative; padding-left: 22px; margin: 8px 0; font-size: 15.5px; color: var(--ink-soft); }
.feature li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, var(--mist), var(--blush) 55%, var(--sand)); }
.feature .device { width: min(290px, 76vw); }

/* 隱私四格 */
.cards { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--surface); border-radius: 24px; padding: 26px 24px; box-shadow: 0 0 0 1px var(--line); }
.card .dot { width: 34px; height: 34px; border-radius: 50%; margin-bottom: 18px; }
.card:nth-child(1) .dot { background: radial-gradient(circle at 35% 35%, #fff, var(--sand)); }
.card:nth-child(2) .dot { background: radial-gradient(circle at 35% 35%, #fff, var(--mist)); }
.card:nth-child(3) .dot { background: radial-gradient(circle at 35% 35%, #fff, var(--blush)); }
.card:nth-child(4) .dot { background: radial-gradient(circle at 35% 35%, #fff, #C9B79C); }
.card strong { display: block; font-size: 17px; margin-bottom: 6px; letter-spacing: -0.2px; }
.card span { font-size: 14.5px; color: var(--ink-soft); }
.privacy-more { margin-top: 28px; font-size: 15px; color: var(--ink-soft); }
.privacy-more a { color: var(--accent); }

/* 方案 */
.plans { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan { background: var(--surface); border-radius: 26px; padding: 30px 28px; box-shadow: 0 0 0 1px var(--line); display: flex; flex-direction: column; }
.plan.main { box-shadow: 0 0 0 1.5px var(--sand), 0 24px 48px rgba(168,131,79,.12); }
.plan .name { font-size: 15px; font-weight: 700; color: var(--ink-soft); margin-bottom: 8px; }
.plan .price { font-size: 38px; font-weight: 700; letter-spacing: -1px; line-height: 1.15; }
.plan .price small { font-size: 15px; font-weight: 500; color: var(--ink-soft); letter-spacing: 0; }
.plan .alt { font-size: 14.5px; color: var(--ink-soft); margin-top: 4px; min-height: 1.7em; }
.plan ul { list-style: none; padding: 0; margin: 22px 0 0; border-top: 1px solid var(--line); }
.plan li { padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.plan li:last-child { border-bottom: 0; }
.always { margin-top: 24px; background: rgba(255,255,255,.6); border-radius: 20px; padding: 18px 22px; box-shadow: 0 0 0 1px var(--line); font-size: 15px; color: var(--ink-soft); }
.always strong { color: var(--ink); }
.fine { font-size: 13.5px; color: var(--ink-mute); margin: 18px 0 0; max-width: 820px; }

/* 界線 */
.boundary { background: var(--surface); border-radius: 28px; padding: 40px 36px; box-shadow: 0 0 0 1px var(--line); display: grid; gap: 24px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 860px) { .boundary { grid-template-columns: 1.4fr 1fr; padding: 48px 52px; } }
.boundary h2 { font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 12px; }
.boundary p { margin: 0; color: var(--ink-soft); font-size: 16px; }
.boundary .help { font-size: 15px; color: var(--ink-soft); }
.boundary .help strong { display: block; font-size: 30px; color: var(--ink); letter-spacing: -0.5px; }

/* 常見問題 */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font-size: 17px; font-weight: 600; position: relative; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--ink-mute); border-bottom: 2px solid var(--ink-mute); transform: translateY(-70%) rotate(45deg); transition: transform .25s ease; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .a { padding: 0 0 22px; color: var(--ink-soft); font-size: 15.5px; }
.faq .a p { margin: 0 0 10px; }
.faq .a a { color: var(--accent); }

/* 收尾 */
.final { text-align: center; padding: 110px 0 120px; position: relative; overflow: hidden; }
.final .orb { filter: blur(80px); opacity: .55; }
.final .wrap { position: relative; z-index: 2; }
.final img.icon { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 18px 40px rgba(80,60,30,.15); margin-bottom: 26px; }
.final h2 { margin-left: auto; margin-right: auto; }
.final p { color: var(--ink-soft); margin: 0 auto 32px; max-width: 520px; }

/* 頁尾 */
footer { border-top: 1px solid var(--line); padding: 26px 0 48px; font-size: 14px; color: var(--ink-mute); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 4px 24px; align-items: center; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 0 22px; }
footer a { color: var(--ink-soft); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
footer a:hover { color: var(--accent); }

/* ── 文件頁（隱私、支援） ── */
.doc { max-width: 760px; margin: 0 auto; padding: 24px 24px 96px; }
.doc h1 { font-size: clamp(32px, 5vw, 44px); letter-spacing: -1px; line-height: 1.2; margin: 24px 0 8px; }
.doc .updated { color: var(--ink-mute); font-size: 14px; margin: 0 0 32px; }
.doc .langs { display: flex; gap: 18px; font-size: 14px; margin: 0 0 8px; }
.doc .langs a { color: var(--ink-soft); min-height: 44px; display: inline-flex; align-items: center; }
.doc .langs [aria-current="page"] { color: var(--ink); font-weight: 700; text-decoration: none; }
.doc h2 { font-size: 21px; letter-spacing: -0.3px; margin: 44px 0 10px; line-height: 1.4; }
.doc h3 { font-size: 16.5px; margin: 26px 0 6px; }
.doc p, .doc li { font-size: 15.5px; color: var(--ink-soft); }
.doc p { margin: 8px 0; }
.doc ul { padding-left: 22px; margin: 8px 0; }
.doc li { margin: 4px 0; }
.doc strong { color: var(--ink); }
.doc a { color: var(--accent); }
.doc .box { background: var(--surface); border-radius: 20px; padding: 20px 24px; box-shadow: 0 0 0 1px var(--line); margin: 24px 0; }
.doc .box p:first-child { margin-top: 0; } .doc .box p:last-child { margin-bottom: 0; }
.doc .toc { background: var(--surface); border-radius: 20px; padding: 14px 24px; box-shadow: 0 0 0 1px var(--line); margin: 0 0 12px; }
.doc .toc a { display: flex; min-height: 40px; align-items: center; text-decoration: none; color: var(--ink); font-size: 15px; }
.doc .toc a:hover { color: var(--accent); }

/* 減少動態效果時，光球不飄、文字直接出現 */
@media (prefers-reduced-motion: reduce) {
  .orb { animation: none !important; }
  .four li { animation: none !important; opacity: 1; transform: none; }
  .pill, .faq summary::after { transition: none !important; }
  html { scroll-behavior: auto; }
}
