/* OneRule AI 一句家規 官網：版型沿用旅行團 TourChip，色彩用 OneRule「晨霧暖橘」（淺色、溫暖，不用暗黑色系） */
:root {
  color-scheme: light;
  --sky: #B4C3CB; --sky-light: #DCE4E8; --meadow: #D4D2BB; --page: #EEF1F3;
  --card: #F7F8FA; --card-border: #E1E6EA; --glass-fill: rgba(247, 248, 250, .82); --glass-line: rgba(225, 230, 234, .95);
  --primary: #CF7A42; --primary-deep: #B4612F; --primary-end: #CA7642; --on-primary: #2E1608; --primary-soft: #F3E1D3; --clay-text: #8A4F28;
  --ink: #283543; --ink-soft: #5C6874; --ink-muted: #697078;
  --sage: #6F8A62; --sage-soft: #E3EADC; --honey: #D9A63E; --honey-text: #7E5A14; --honey-soft: #F6EBCF;
  --coral: #C4604A; --coral-text: #9C4C3B; --coral-soft: #F5DED7; --slate: #6E83A0; --slate-soft: #E2E8F0;
  --night-top: #1F2B38; --night-mid: #2B3949; --night-low: #55697D;
  --sans: "Noto Sans TC", "PingFang TC", "Hiragino Sans", "Apple SD Gothic Neo", "Microsoft JhengHei", system-ui, sans-serif;
  --shadow: 0 10px 30px rgba(40, 53, 67, .07);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
html, body { margin: 0; color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
body { overflow-x: hidden; background: linear-gradient(180deg, var(--sky) 0, var(--sky-light) 560px, var(--page) 1100px, var(--page) calc(100% - 520px), var(--meadow) 100%); background-color: var(--page); }
html:lang(zh-Hans) body { font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif; }
html:lang(ja) body { font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", "Meiryo", system-ui, sans-serif; }
html:lang(ko) body { font-family: "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif; }
html:lang(th) body { font-family: "Thonburi", "Noto Sans Thai", "Leelawadee UI", system-ui, sans-serif; }
html:lang(hi) body { font-family: "Kohinoor Devanagari", "Noto Sans Devanagari", "Nirmala UI", system-ui, sans-serif; }
html:lang(en) body, html:lang(ms) body, html:lang(id) body, html:lang(vi) body, html:lang(es) body, html:lang(pt) body { font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif; }
a { color: var(--clay-text); }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--primary-deep); outline-offset: 2px; }
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: max(16px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-right)); }

/* ---------- 頂部導覽 ---------- */
.top { position: sticky; top: 0; z-index: 10; background: rgba(220, 228, 232, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(40, 53, 67, .08); padding-top: env(safe-area-inset-top); }
.top .wrap { display: flex; align-items: center; gap: 16px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; letter-spacing: .5px; white-space: nowrap; min-width: 0; }
.brand img { width: 32px; height: 32px; border-radius: 9px; flex: none; }
.brand small { font-weight: 400; color: var(--ink-soft); letter-spacing: 0; }
.top nav { display: none; gap: 22px; margin-left: auto; }
.top nav a { color: var(--ink-soft); text-decoration: none; font-size: 14px; }
.top nav a:hover { color: var(--ink); }
.lang { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--ink-soft); font-size: 13px; flex: none; }
.lang select { appearance: none; -webkit-appearance: none; background-color: var(--card); color: var(--ink); border: 1px solid var(--card-border);
  border-radius: 999px; padding: 6px 28px 6px 12px; font: inherit; font-size: 13px; max-width: 150px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-soft) 50%), linear-gradient(135deg, var(--ink-soft) 50%, transparent 50%);
  background-position: calc(100% - 15px) 50%, calc(100% - 10px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.top nav + .lang { margin-left: 0; }

/* ---------- Hero ---------- */
.hero .wrap { display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center; padding-block: 44px 40px; }
.kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 6px 14px; border-radius: 999px; font-size: 13px;
  background: var(--glass-fill); border: 1px solid var(--glass-line); color: var(--ink-soft); }
.kicker i { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
h1 { margin: 0; font-size: clamp(32px, 7vw, 56px); line-height: 1.2; letter-spacing: 1.5px; text-wrap: balance; }
h1 em { font-style: normal; color: var(--clay-text); }
.rule { width: 112px; height: 3px; margin: 22px 0; border-radius: 3px; background: linear-gradient(90deg, var(--primary), var(--honey)); }
.lead { margin: 0; font-size: 17px; line-height: 1.85; color: var(--ink-soft); max-width: 34em; }
.lead q { color: var(--clay-text); font-weight: 500; quotes: "「" "」"; }
html:not(:lang(zh-Hant)):not(:lang(zh-Hans)):not(:lang(ja)) .lead q { quotes: "\201C" "\201D"; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.store { display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 22px 8px 16px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--card-border); color: var(--ink); text-decoration: none; box-shadow: var(--shadow); }
.store svg { width: 24px; height: 24px; flex: none; fill: currentColor; }
.store span { display: flex; flex-direction: column; line-height: 1.25; }
.store b { font-size: 16px; font-weight: 600; }
.store small { font-size: 12px; color: var(--ink-soft); letter-spacing: .3px; }
.store.soon { cursor: default; }
.free { margin: 16px 0 0; font-size: 14px; color: var(--ink-soft); }

/* 手機畫面示意（跟 App 一樣：上方深色讓艾婭的光點清楚，下方回到晨霧色） */
.phone { position: relative; width: 100%; max-width: 340px; margin: 0 auto; border-radius: 40px; overflow: hidden; border: 8px solid #fff;
  box-shadow: 0 30px 70px rgba(40, 53, 67, .22); aspect-ratio: 9 / 18.5;
  background: linear-gradient(180deg, var(--night-top) 0, var(--night-mid) 34%, var(--night-low) 48%, var(--sky) 62%, var(--sky-light) 82%, var(--meadow) 100%); }
.phone .bar { position: absolute; top: 14px; left: 18px; right: 18px; display: flex; align-items: center; gap: 8px; color: #fff; font-size: 17px; font-weight: 600; z-index: 2; }
.phone .bar small { font-size: 10px; font-weight: 600; padding: 1px 6px; border-radius: 6px; background: rgba(255,255,255,.18); letter-spacing: .5px; }
.phone .bar .gear { margin-left: auto; width: 18px; height: 18px; opacity: .75; }
.phone .aiya { position: absolute; top: 34px; left: 50%; width: 62%; transform: translateX(-50%); animation: breathe 6s ease-in-out infinite; }
@keyframes breathe { 50% { transform: translateX(-50%) translateY(-4px) scale(1.015); } }
.phone .chat { position: absolute; left: 12px; right: 12px; bottom: 64px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; line-height: 1.55; }
.bubble { max-width: 84%; padding: 9px 12px; border-radius: 18px; }
.bubble.me { align-self: flex-end; background: var(--primary-soft); color: var(--ink); border-bottom-right-radius: 5px; }
.bubble.ai { align-self: flex-start; background: var(--slate-soft); color: var(--ink); border-bottom-left-radius: 5px; }
.draft { background: var(--card); border: 1px solid var(--card-border); border-radius: 18px; padding: 12px; box-shadow: var(--shadow); }
.draft .tag { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 999px; background: var(--primary-soft); color: var(--clay-text); font-weight: 600; }
.draft ul { list-style: none; margin: 8px 0 10px; padding: 0; display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; font-size: 12.5px; }
.draft li { display: contents; }
.draft li b { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); }
.draft li span { color: var(--ink-soft); }
.draft .btns { display: flex; gap: 8px; justify-content: flex-end; }
.btn { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; padding: 6px 14px; font-size: 12.5px; font-weight: 600; text-decoration: none; }
.btn.pri { background: linear-gradient(180deg, var(--primary), var(--primary-end)); color: var(--on-primary); }
.btn.sec { background: #fff; color: var(--ink); border: 1px solid var(--card-border); }
.phone .input { position: absolute; left: 12px; right: 12px; bottom: 14px; display: flex; gap: 8px; align-items: center; }
.phone .input i { width: 36px; height: 36px; border-radius: 50%; background: var(--card); flex: none; display: grid; place-items: center; font-style: normal; font-size: 15px; }
.phone .input span { flex: 1; height: 36px; border-radius: 999px; background: var(--card); }
.phone .input i.mic { background: var(--slate); color: #fff; }

/* ---------- 區塊 ---------- */
section { padding-block: 44px; }
h2 { margin: 0 0 10px; font-size: clamp(24px, 4.2vw, 32px); letter-spacing: 1px; line-height: 1.3; text-wrap: balance; }
.sub { margin: 0 0 28px; color: var(--ink-soft); line-height: 1.8; max-width: 44em; }
.glass { background: var(--glass-fill); border: 1px solid var(--glass-line); border-radius: 20px; box-shadow: var(--shadow); }

.steps { display: grid; grid-template-columns: 1fr; gap: 12px; counter-reset: step; }
.steps div { position: relative; padding: 20px 20px 20px 70px; }
.steps div::before { counter-increment: step; content: counter(step); position: absolute; left: 20px; top: 20px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; color: var(--on-primary); background: linear-gradient(180deg, var(--primary), var(--primary-end)); }
.steps b, .cards b, .who b, .safe b { display: block; font-size: 17px; font-weight: 600; margin-bottom: 4px; color: var(--ink); }
.steps span, .cards span, .who span, .safe span { color: var(--ink-soft); font-size: 14.5px; line-height: 1.75; }

/* 艾婭介紹：深色卡片，光點才清楚 */
.meet { display: grid; grid-template-columns: 1fr; gap: 0; overflow: hidden; border-radius: 28px; box-shadow: 0 20px 50px rgba(31, 43, 56, .2);
  background: linear-gradient(180deg, var(--night-top), var(--night-mid) 60%, var(--night-low)); color: #F3F5F7; }
.meet .pic { display: grid; place-items: end center; padding: 24px 24px 0; }
.meet .pic img { width: 100%; max-width: 360px; display: block; }
.meet .txt { padding: 8px 24px 28px; }
.meet h2 { color: #fff; }
.meet .sub { color: #C9D3DB; }
.meet .who { display: grid; grid-template-columns: 1fr; gap: 10px; }
.meet .who div { padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); }
.meet .who b { color: #fff; font-size: 16px; }
.meet .who span { color: #C9D3DB; font-size: 14px; }
.meet .name { display: inline-flex; gap: 8px; align-items: center; margin: 0 0 12px; font-size: 13px; color: #F3C9A6; letter-spacing: 1px; }

.cards { display: grid; grid-template-columns: 1fr; gap: 12px; }
.cards div { padding: 18px 20px; }
.cards i { display: inline-grid; place-items: center; width: 42px; height: 42px; margin-bottom: 10px; border-radius: 14px; font-style: normal; font-size: 21px;
  background: var(--primary-soft); }
.cards .num { display: inline-block; margin-right: 6px; color: var(--clay-text); font-variant-numeric: tabular-nums; }
.cards q { quotes: "「" "」"; color: var(--clay-text); }
html:not(:lang(zh-Hant)):not(:lang(zh-Hans)):not(:lang(ja)) .cards q { quotes: "\201C" "\201D"; }
.cards .new { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; vertical-align: 2px; color: var(--honey-text); background: var(--honey-soft); }
.cards .extra { background: linear-gradient(135deg, rgba(243, 225, 211, .9), var(--glass-fill)); }

.prices { display: grid; grid-template-columns: 1fr; gap: 12px; }
.price { padding: 22px 22px 24px; display: flex; flex-direction: column; }
.price h3 { margin: 0; font-size: 17px; font-weight: 600; color: var(--ink); letter-spacing: .5px; }
.price .amt { margin: 8px 0 12px; font-size: 26px; font-weight: 700; letter-spacing: .5px; color: var(--clay-text); }
.price .amt.free { color: var(--sage); }
.price ul { margin: 0; padding-left: 1.2em; color: var(--ink-soft); font-size: 14.5px; line-height: 1.9; }
.price.hl { border: 2px solid var(--primary); }
.price .badge { align-self: flex-start; margin-bottom: 10px; font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: var(--primary-soft); color: var(--clay-text); }
.note { margin: 16px 0 0; color: var(--ink-soft); font-size: 13.5px; line-height: 1.8; }
.voice { display: flex; gap: 12px; align-items: flex-start; margin-top: 12px; padding: 14px 18px; border-radius: 16px; background: var(--slate-soft); color: var(--ink); font-size: 14.5px; line-height: 1.75; }
.voice i { font-style: normal; font-size: 20px; }

.safe { display: grid; grid-template-columns: 1fr; gap: 12px; }
.safe div { padding: 18px 20px; border-top: 4px solid var(--sage); }

.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 28px 16px 0; position: relative; font-weight: 600; line-height: 1.6; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 13px; font-size: 22px; color: var(--clay-text); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--ink-soft); line-height: 1.85; font-size: 15px; }

.cta { text-align: center; padding: 40px 22px; background: linear-gradient(180deg, rgba(243, 225, 211, .95), var(--glass-fill)); }
.cta h2 { margin-bottom: 8px; }
.cta .sub { margin: 0 auto 4px; }
.cta .stores { justify-content: center; }

footer { margin-top: 24px; padding-block: 36px calc(48px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(40, 53, 67, .12); color: var(--ink-soft); font-size: 13px; line-height: 2; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-bottom: 8px; }
footer a { color: var(--ink); text-decoration: none; }
footer a:hover, footer a:focus-visible { text-decoration: underline; }

@media (max-width: 599px) { .brand small { display: none; } .lang > span { display: none; } }
@media (min-width: 600px) {
  .cards, .safe { grid-template-columns: 1fr 1fr; }
  .meet .who { grid-template-columns: 1fr 1fr; }
  .prices { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .top nav { display: flex; }
  .hero .wrap { grid-template-columns: 1.15fr .85fr; padding-block: 72px 64px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .safe { grid-template-columns: repeat(4, 1fr); }
  .prices { grid-template-columns: repeat(3, 1fr); }
  .meet { grid-template-columns: .8fr 1.2fr; align-items: center; }
  .meet .pic { padding: 32px 0 0 32px; place-items: end center; align-self: end; }
  .meet .txt { padding: 40px 40px 40px 16px; }
  section { padding-block: 56px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .phone .aiya { animation: none; } }
