/* 官網 A 版「朝の光」（2026-12-05，設計稿 design/site-ja-v1/a/）：首頁與 /start、/en/start、/ja/start 共用。
   照 App Store 截圖 E2：天藍＋太陽黃、粗圓黑體、深色手機框、通知卡；一段講一件事，每段換底色。條款、支援等頁照舊用 site.css。 */
:root {
  --ink: #1F1B3A; --ink2: #3A3463; --muted: #4E4870;
  --sky: #A9DCFF; --sky2: #D9F0FF; --sun: #FFD84D; --butter: #FFE27A; --cream: #FFF8E6;
  --lav: #D8CEFF; --lav2: #EDE7FF; --peach: #FFB3C1; --mint: #BFF0D4; --white: #fff;
  --f-disp: "M PLUS Rounded 1c", "Noto Sans JP", sans-serif;
  --f-body: "Noto Sans JP", sans-serif;
  --f-logo: "Baloo 2", "M PLUS Rounded 1c", sans-serif;
}
/* 中文：粗黑體（照 E2 中文版的粗體標題）；英文：Baloo 2＋Nunito（照 E2 英文版） */
html[lang^="zh"] { --f-disp: "Noto Sans TC", sans-serif; --f-body: "Noto Sans TC", sans-serif; --f-logo: "Baloo 2", "Noto Sans TC", sans-serif; }
html[lang="en"] { --f-disp: "Baloo 2", "Nunito", sans-serif; --f-body: "Nunito", sans-serif; --f-logo: "Baloo 2", sans-serif; }
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--f-body); color: var(--ink); background: var(--sky2); line-height: 1.8; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------- 頂列 ---------- */
.top { position: absolute; inset: 0 0 auto; z-index: 5; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo img { width: 40px; height: 40px; border-radius: 10px; border: 2.5px solid var(--ink); }
.logo b { font-family: var(--f-logo); font-weight: 800; font-size: 26px; line-height: 1; padding-top: 4px; }
.top .mini { font-family: var(--f-disp); font-weight: 800; font-size: 14px; text-decoration: none; background: var(--ink); color: #fff;
  padding: 10px 18px; border-radius: 99px; white-space: nowrap; }

/* ---------- 下載鈕 ---------- */
.dl { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 64px; padding: 10px 34px;
  background: var(--ink); color: #fff; border-radius: 99px; text-decoration: none; box-shadow: 0 6px 0 #0d0b1f;
  font-family: var(--f-disp); font-weight: 800; font-size: 19px; line-height: 1.35; }
.dl small { font-family: var(--f-body); font-weight: 500; font-size: 12px; color: #CFC9F2; line-height: 1.4; }
.dl:active { transform: translateY(4px); box-shadow: 0 2px 0 #0d0b1f; }
.dl.sun { background: var(--sun); color: var(--ink); box-shadow: 0 6px 0 var(--ink); border: 3px solid var(--ink); }
.dl.sun small { color: var(--ink2); }

/* ---------- 手機 ---------- */
.phone { --pw: 260px; position: relative; width: var(--pw); aspect-ratio: 600 / 1304; flex: none;
  background: var(--ink); border-radius: calc(var(--pw) * .17); padding: calc(var(--pw) * .035);
  box-shadow: 0 24px 50px -18px rgba(31, 27, 58, .45), inset 0 0 0 2px #4a4380; }
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: calc(var(--pw) * .135); }
.phone::after { content: ""; position: absolute; top: calc(var(--pw) * .06); left: 50%; width: 30%; height: calc(var(--pw) * .075);
  transform: translateX(-50%); background: var(--ink); border-radius: 99px; }
.tilt-l { transform: rotate(-5deg); } .tilt-r { transform: rotate(5deg); }

/* ---------- 小標籤（照 E2 的「おしゃべり」「タロット」） ---------- */
.tag { position: absolute; z-index: 3; font-family: var(--f-disp); font-weight: 800; font-size: 15px; line-height: 1.3; white-space: nowrap;
  padding: 6px 14px; border-radius: 10px; border: 2.5px solid var(--ink); background: var(--peach); box-shadow: 3px 3px 0 var(--ink); }
.tag.ink { background: var(--ink); color: #fff; } .tag.mint { background: var(--mint); } .tag.sun { background: var(--sun); }

/* ---------- 通知卡、對話泡泡 ---------- */
.note { position: absolute; z-index: 4; display: flex; text-align: left; gap: 12px; width: 300px; padding: 14px 16px; background: #fff; border-radius: 20px;
  border: 2.5px solid var(--ink); box-shadow: 5px 6px 0 rgba(31, 27, 58, .9); font-size: 14px; line-height: 1.6; }
.note img { width: 38px; height: 38px; flex: none; border-radius: 10px; background: var(--lav2); object-fit: contain; padding: 3px; }
.note b { display: block; font-size: 13px; } .note time { margin-left: auto; font-size: 11px; color: var(--muted); white-space: nowrap; }
.bub { position: absolute; z-index: 4; max-width: 300px; padding: 12px 20px; border-radius: 22px; border: 2.5px solid var(--ink);
  background: #fff; box-shadow: 4px 5px 0 var(--ink); font-weight: 700; font-size: 17px; line-height: 1.55; }
.bub.me { background: var(--peach); }

/* ---------- 太陽、雲 ---------- */
.sunball { position: absolute; z-index: 0; width: 150px; height: 150px; border-radius: 50%; background: var(--sun);
  box-shadow: 0 0 0 16px rgba(255, 216, 77, .28), 0 0 0 34px rgba(255, 216, 77, .14); }
.cloud { position: absolute; z-index: 1; width: 170px; height: 54px; background: #fff; border-radius: 99px; opacity: .95; }
.cloud::before, .cloud::after { content: ""; position: absolute; background: #fff; border-radius: 50%; }
.cloud::before { width: 70px; height: 70px; left: 26px; top: -34px; } .cloud::after { width: 54px; height: 54px; left: 82px; top: -22px; }

/* ---------- 首屏 ---------- */
.hero { position: relative; overflow: hidden; padding: 130px 0 0; background: linear-gradient(180deg, var(--sky) 0%, var(--sky2) 70%, var(--sky2) 100%); }
.hero::after { content: ""; position: absolute; left: -5%; right: -5%; bottom: -1px; height: 150px; z-index: 1;
  background: var(--butter); border-radius: 50% 50% 0 0 / 60px 60px 0 0; }
.hero .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 40px; }
.hero h1 { font-family: var(--f-disp); font-weight: 900; font-size: clamp(40px, 5.6vw, 82px); line-height: 1.4; letter-spacing: .01em; }
.hero h1 span { display: block; white-space: nowrap; }
.hero .lead { margin-top: 22px; font-family: var(--f-disp); font-weight: 700; font-size: clamp(17px, 1.7vw, 22px); line-height: 1.7; }
.hero .lead span { display: inline-block; }
.hero .cta { margin-top: 34px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.hero .cta p { font-size: 13px; line-height: 1.6; color: var(--muted); }
.stage { position: relative; height: 640px; }
.stage .phone { position: absolute; }
.stage .p1 { --pw: 280px; left: 50%; top: 20px; transform: translateX(-50%); z-index: 2; }
.stage .p2 { --pw: 220px; left: 0; top: 120px; transform: rotate(-7deg); z-index: 1; }
.stage .p3 { --pw: 220px; right: 0; top: 110px; transform: rotate(7deg); z-index: 1; }
.stage .note { left: -40px; bottom: 70px; }
.stage .t1 { left: 20px; top: 92px; } .stage .t2 { right: 10px; top: 80px; } .stage .t3 { right: 30px; bottom: 150px; }
.hero .sunball { right: 6%; top: 70px; }
.hero .c1 { left: 4%; top: 120px; transform: scale(.8); } .hero .c2 { right: 2%; top: 300px; transform: scale(.6); }

/* ---------- 功能段落 ---------- */
.feat { position: relative; overflow: hidden; padding: 110px 0; }
.feat .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.feat.rev .copy { order: 2; }
.feat .num { font-family: var(--f-logo); font-weight: 800; font-size: 20px; line-height: 1; opacity: .55; }
.feat h2 { margin-top: 12px; font-family: var(--f-disp); font-weight: 900; font-size: clamp(32px, 4.2vw, 58px); line-height: 1.35; }
.feat h2 span { display: block; white-space: nowrap; }
.feat .hl { display: inline-block; margin-top: 18px; padding: 4px 14px; background: var(--ink); color: #fff; border-radius: 8px;
  font-family: var(--f-disp); font-weight: 800; font-size: 16px; line-height: 1.6; }
.feat .copy > p:not(.hl):not(.num) { margin-top: 18px; max-width: 28em; font-size: 16px; line-height: 1.95; color: var(--ink2); }
.feat .copy > p.fine { margin-top: 14px; font-size: 13px !important; color: var(--muted) !important; }
.feat .art { position: relative; height: 600px; }
.feat .art .phone { position: absolute; --pw: 270px; left: 50%; top: 10px; transform: translateX(-50%); }
.f-chat { background: var(--butter); }
.f-tarot { background: var(--lav); }
.f-mem { background: var(--sky2); }
.f-diary { background: var(--cream); }
.f-morning { background: var(--sky); }
.f-chat .bub.b1 { left: 0; top: 170px; } .f-chat .bub.b2 { right: 0; top: 300px; } .f-chat .bub.b3 { left: 20px; bottom: 90px; }
.f-tarot .sunball { right: 8%; top: 40px; width: 110px; height: 110px; }
.f-tarot .art .pa { left: 30%; } .f-tarot .art .pb { --pw: 220px; left: 78%; top: 70px; transform: translateX(-50%) rotate(6deg); }
.f-mem .art .pa { --pw: 210px; left: 72%; top: 0; transform: translateX(-50%) rotate(5deg); }
.f-mem .art .pb { left: 36%; top: 80px; z-index: 2; }
.f-mem .bub { left: 0; bottom: 120px; } .f-mem .t1 { left: 72%; top: -14px; } .f-mem .t2 { left: 16%; top: 64px; }
.f-diary .art .phone { --pw: 290px; }
.f-diary .t1 { left: 22%; top: 30px; }
.f-morning .art .phone { --pw: 280px; }
.f-morning .sunball { left: 6%; top: 60px; }
.moon { position: absolute; width: 60px; height: 60px; border-radius: 50%; box-shadow: -14px 6px 0 0 var(--butter); right: 12%; top: 50px; z-index: 1; }

/* ---------- 挑室友＋下載 ---------- */
.pick { position: relative; padding: 110px 20px 120px; text-align: center; background: linear-gradient(180deg, var(--sky2), var(--sky)); overflow: hidden; }
.pick h2 { font-family: var(--f-disp); font-weight: 900; font-size: clamp(34px, 4.6vw, 64px); line-height: 1.35; }
.pick h2 span { display: inline-block; }
.pick p { margin-top: 14px; font-family: var(--f-disp); font-weight: 700; font-size: 18px; line-height: 1.6; }
.chars { margin: 46px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 18px; max-width: 900px; }
.chars img { width: 92px; height: 80px; object-fit: contain; }
.pick .dl { margin-top: 48px; }
.pick .free { margin-top: 18px; font-size: 14px; line-height: 1.7; color: var(--muted); font-family: var(--f-body); font-weight: 400; }

/* ---------- 頁尾 ---------- */
.foot { background: var(--ink); color: #E7E3FF; padding: 50px 0 60px; font-size: 14px; line-height: 1.8; }
.foot .links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot .links a { text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.35); }
.foot .meta { margin-top: 22px; color: #B5AEDD; font-size: 13px; }
.foot .meta p + p { margin-top: 6px; }

/* ---------- 手機寬 ---------- */
@media (max-width: 860px) {
  .top .wrap { height: 64px; }
  .logo b { font-size: 22px; } .logo img { width: 34px; height: 34px; }
  .top .mini { font-size: 12px; padding: 8px 14px; }
  .hero { padding-top: 96px; }
  .hero::after { height: 90px; }
  .hero .wrap, .feat .wrap { grid-template-columns: 1fr; gap: 28px; }
  .hero h1 { font-size: clamp(34px, 9.6vw, 48px); }
  .hero .lead { font-size: 16px; margin-top: 14px; }
  .hero .cta { margin-top: 24px; } .hero .cta .dl { width: 100%; }
  .hero .sunball { right: -30px; top: 60px; width: 110px; height: 110px; }
  .stage { height: 470px; }
  .stage .p1 { --pw: 200px; top: 10px; }
  .stage .p2, .stage .p3 { --pw: 150px; top: 80px; }
  .stage .p2 { left: -4px; } .stage .p3 { right: -4px; }
  .stage .note { left: 0; right: 0; margin: 0 auto; bottom: 30px; width: min(320px, 100%); }
  .stage .t1 { left: 0; top: 48px; } .stage .t2 { right: 0; top: 40px; } .stage .t3 { display: none; }
  .tag { font-size: 13px; padding: 4px 10px; }
  .feat { padding: 72px 0; }
  .feat.rev .copy { order: 0; }
  .feat h2 { font-size: clamp(28px, 8.4vw, 40px); }
  .feat .hl { font-size: 14px; }
  .feat .copy > p { font-size: 15px; }
  .feat .art { height: 470px; }
  .feat .art .phone { --pw: 210px; }
  .f-tarot .art .pa { left: 38%; } .f-tarot .art .pb { --pw: 160px; left: 80%; }
  .f-mem .art .pa { --pw: 160px; left: 76%; } .f-mem .art .pb { --pw: 200px; left: 38%; }
  .f-diary .art .phone, .f-morning .art .phone { --pw: 220px; }
  .bub { font-size: 14px; padding: 9px 14px; max-width: 240px; }
  .f-chat .bub.b1 { left: 0; top: 110px; } .f-chat .bub.b2 { right: 0; top: 220px; } .f-chat .bub.b3 { left: 0; bottom: 50px; }
  .f-mem .bub { bottom: 40px; }
  .chars img { width: 64px; height: 56px; }
  .pick .dl { width: 100%; }
  .pick p { font-size: 15px; }
  .feat .hl { text-wrap: balance; }
}

/* ---------- 正式頁面才有的：跳到內容、語言切換、截圖從頂端開始 ---------- */
.skip { position: absolute; left: -999px; top: 8px; z-index: 60; background: #fff; border: 2.5px solid var(--ink); padding: 6px 12px; border-radius: 12px; }
.skip:focus { left: 12px; }
.top .side { display: flex; align-items: center; gap: 14px; }
.top .lng { font-family: var(--f-disp); font-weight: 800; font-size: 14px; text-decoration: none; border-bottom: 2px solid currentColor; line-height: 1.3; }
.phone img.top { object-position: top; }
.foot .meta a { color: inherit; }
.foot .links a[lang] { border-bottom-style: dashed; }

/* ---------- 英文：Baloo 2 行高收緊、長句可以換行 ---------- */
html[lang="en"] .hero h1, html[lang="en"] .feat h2, html[lang="en"] .pick h2, html[lang="en"] .lp-hero h1, html[lang="en"] .lp-feats h2 { line-height: 1.1; letter-spacing: 0; }
html[lang="en"] .hero h1 span, html[lang="en"] .feat h2 span, html[lang="en"] .lp-hero h1 span { white-space: normal; }
html[lang="en"] .feat h2 { margin-top: 16px; }
html[lang="en"] .hero .lead, html[lang="en"] .pick p { font-family: var(--f-body); font-weight: 700; }
html[lang="en"] .feat .hl { font-family: var(--f-body); }
html[lang="en"] .tag, html[lang="en"] .top .mini, html[lang="en"] .dl { letter-spacing: .01em; }
html[lang^="zh"] .bub, html[lang^="zh"] .note { font-weight: 500; }

/* ---------- Android 等候名單（中英首頁與 /start；JS 在 waitlist.js） ---------- */
.wl { max-width: 440px; margin-top: 16px; text-align: left; }
.wl-open { display: inline; padding: 4px 0; text-wrap: balance; border: 0; background: none; color: var(--muted); font: inherit; font-size: 15px; line-height: 1.6;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.wl-open:hover, .wl.is-open .wl-open { color: var(--ink); }
.wl.is-open .wl-open { text-decoration: none; }
.wl-form { margin-top: 10px; padding: 14px; border: 2.5px solid var(--ink); border-radius: 18px; background: #fff; }
.wl-label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 700; }
.wl-row { display: flex; gap: 8px; }
.wl-row input { flex: 1 1 auto; min-width: 0; height: 48px; padding: 0 14px; border: 2px solid var(--ink); border-radius: 12px;
  font: inherit; font-size: 16px; background: #fff; color: var(--ink); }
.wl-row input:disabled { opacity: .6; }
.wl-send { flex: 0 0 auto; height: 48px; padding: 0 18px; border: 2px solid var(--ink); border-radius: 99px; background: var(--mint);
  color: var(--ink); font-family: var(--f-disp); font-weight: 800; font-size: 15px; cursor: pointer; }
.wl-send:disabled { opacity: .55; cursor: default; }
.wl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.wl .wl-form p.wl-fine { margin: 10px 0 0; max-width: none; font-size: 13px; line-height: 1.6; color: var(--muted); }
.wl-fine a { text-decoration: underline; text-underline-offset: 2px; }
.wl .wl-form p.wl-msg { margin: 6px 0 0; max-width: none; font-size: 14px; line-height: 1.6; color: var(--ink); }
.wl-msg:empty { display: none; }
.wl .wl-form p.wl-msg.is-ok { color: #1E7A4C; font-weight: 700; }
.wl .wl-form p.wl-msg.is-bad { color: #B3261E; }
.lp .wl { margin: 16px auto 0; text-align: center; }
.lp .wl-form { text-align: left; }

/* ---------- 廣告落地頁 /start、/en/start、/ja/start（設計稿 a/start/） ---------- */
/* iPhone 上 start-go.js 正在跳 App Store：先把頁面藏起來；1.5 秒沒跳走就拿掉、照常顯示 */
html.lp-go body { visibility: hidden; }
.lp { background: linear-gradient(180deg, var(--sky) 0, var(--sky2) 520px, var(--butter) 520px); }
.lp-hero { position: relative; overflow: hidden; text-align: center; padding: 22px 20px 0; }
.lp-hero .logo { justify-content: center; position: relative; z-index: 2; }
.lp-hero h1 { position: relative; z-index: 2; margin-top: 26px; font-family: var(--f-disp); font-weight: 900; font-size: clamp(34px, 9.8vw, 52px); line-height: 1.32; }
.lp-hero h1 span { display: block; white-space: nowrap; }
.lp-hero .lead { position: relative; z-index: 2; margin-top: 12px; font-family: var(--f-disp); font-weight: 700; font-size: 16px; line-height: 1.7; }
.lp-hero .lead span { display: inline-block; }
.lp-hero .dl { position: relative; z-index: 2; width: 100%; max-width: 420px; margin-top: 22px; min-height: 72px; font-size: 21px; }
.lp-hero .sunball { right: -50px; top: -40px; width: 130px; height: 130px; }
.lp-peek { position: relative; height: 330px; margin-top: 30px; overflow: hidden; }
.lp-peek .phone { position: absolute; left: 50%; top: 0; --pw: 230px; transform: translateX(-50%); }
.lp-peek .note { left: 50%; transform: translateX(-50%); top: 190px; width: min(320px, calc(100% - 32px)); }
.lp-feats { list-style: none; padding: 40px 20px 0; display: grid; gap: 44px; max-width: 1000px; margin: 0 auto; }
.lp-feats li { background: #fff; border: 3px solid var(--ink); border-radius: 26px; padding: 26px 20px 0; text-align: center; overflow: hidden;
  box-shadow: 6px 7px 0 var(--ink); height: 470px; }
.lp-feats h2 { font-family: var(--f-disp); font-weight: 900; font-size: 26px; line-height: 1.4; text-wrap: balance; }
.lp-feats p { margin: 8px auto 20px; font-size: 15px; line-height: 1.8; color: var(--ink2); max-width: 22em; text-wrap: balance; }
.lp-feats .phone { --pw: 200px; margin: 0 auto -150px; }
.lp-end { text-align: center; padding: 50px 20px 60px; }
.lp-end .dl { width: 100%; max-width: 420px; min-height: 72px; font-size: 21px; }
.lp-end p { margin-top: 12px; font-size: 13px; color: var(--muted); line-height: 1.7; }
html[lang="en"] .lp-feats li { height: 490px; }
@media (min-width: 900px) { .lp-feats { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
