/* Aboslash 網站：首頁與登記完成頁共用樣式（圖片都在 images/） */

:root {
  --footer-bg: #f6f5fb;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Noto Sans", -apple-system, "PingFang TC", "Microsoft JhengHei", sans-serif;
  color: #454f5e;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; }
.serif { font-family: "DM Serif Display", "Noto Sans", -apple-system, "PingFang TC", sans-serif; }
svg.fa { width: 1em; height: 1em; fill: currentColor; display: block; }

/* ---------- 頁首（疊在第一屏上面） ---------- */
.site-header {
  position: absolute; inset: 0 0 auto 0; z-index: 10;
  /* logo 和 IG 圖示以中線對齊，任何寬度都在同一條水平線 */
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 50px 0 0;
}
.site-header .logo { min-width: 0; }
.site-header .logo img { width: 442px; max-width: none; margin-left: -22px; }
.site-header .ig { flex-shrink: 0; }
.site-header .ig img { width: 40px; height: 40px; }

/* ---------- 共用：按鈕、波浪、頁尾、回到頂部 ---------- */
.btn-white {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; border-radius: 20px;
  padding: 20px 40px; font-size: 20px; font-weight: 600; line-height: 1;
  transition: transform .2s, box-shadow .2s;
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(60, 100, 160, .15); }

.wave-bottom { position: absolute; left: 0; right: 0; bottom: -1px; height: 100px; transform: rotate(180deg); pointer-events: none; }
.wave-bottom svg { width: 100%; height: 100%; display: block; }
.wave-bottom path { fill: var(--footer-bg); }

.site-footer {
  background: var(--footer-bg); height: 96px;
  display: flex; align-items: center; justify-content: center;
  color: #2e2e2e; font-size: 16px;
}

.to-top {
  /* 往上移，避開 Netlify 免費方案右下角的「Powered by Netlify」標誌 */
  position: fixed; right: 30px; bottom: 90px; z-index: 20;
  width: 34px; height: 34px; border-radius: 50%;
  background: #1f2937; color: #fff;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .3s;
}
.to-top.show { opacity: 1; visibility: visible; }
.to-top svg { width: 14px; height: 14px; fill: #fff; }

/* ================================================================
   首頁
   ================================================================ */

/* 第一屏 */
.hero {
  position: relative; min-height: 768px;
  background: #9fc8e8 url("/images/Mastery-Hero-background.webp") 0 0 / 100% 100%;
  display: flex; align-items: center; justify-content: center; padding: 120px 30px 60px;
}
.hero-inner { width: 500px; max-width: 100%; }
.hero h1 { font-size: 45px; font-weight: 600; line-height: 63px; color: #fff; }
.hero h1 .grad {
  background: linear-gradient(0deg, #64a4fb 0%, #69bce5 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead { margin-top: 20px; font-size: 18px; line-height: 30.6px; letter-spacing: .7px; color: #fff; }
.hero .cta-row { margin-top: 40px; display: flex; align-items: center; gap: 0 18px; flex-wrap: wrap; }
.hero .btn-white { color: #59a6f7; }
.hero .btn-white svg { width: 16px; height: 18px; }
.hero .duration { display: flex; align-items: center; gap: 8px; font-size: 16px; color: #7e7e7e; }
.hero .duration svg { width: 14px; height: 14px; fill: #7e7e7e; }

/* 第二屏：隱形系統 */
.s-hidden {
  min-height: 607px; padding: 60px 50px;
  background: url("/images/Life-OS-Report-section-2_1-background.webp") center / cover;
  display: flex; align-items: center; justify-content: flex-end;
}
.s-hidden .col { width: 564px; max-width: 100%; color: #5c6881; }
.s-hidden h2 { font-size: 26px; font-weight: 500; line-height: 36.4px; }
.s-hidden .intro { margin-top: 20px; font-size: 16px; line-height: 21px; }
.check-list { list-style: none; margin: 14px 0 0; padding: 0; }
.check-list li { display: flex; align-items: center; gap: 12px; font-size: 16px; line-height: 20.8px; padding: 4px 0; }
.check-list svg { width: 13px; height: 13px; flex: none; fill: currentColor; }
.divider { border: 0; border-top: 1px solid #475268; margin: 15px 0; }
.s-hidden .outro { margin-top: 20px; font-size: 16px; line-height: 26.4px; letter-spacing: 1.4px; }
.s-hidden .outro p + p { margin-top: 26px; }

/* 第三屏：4 套 OS */
.s-os {
  padding: 100px 30px 50px;
  background: url("/images/Life-OS-Report-section-3-background.webp") 0 0;
  text-align: center;
}
.s-os .h-a { font-size: 30px; font-weight: 600; line-height: 32px; color: #535c76; }
.s-os .h-b { font-size: 30px; font-weight: 600; line-height: 50px; letter-spacing: 2.4px; color: #6995cd; }
.s-os .h-c { margin-top: 20px; font-size: 23px; line-height: 32px; letter-spacing: 3.8px; color: #70778a; }
.os-grid { margin: 20px auto 0; max-width: 964px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; text-align: left; }
.os-card { border: 3px solid #fff; border-radius: 20px; padding: 30px; min-height: 270px; }
.os-card .icon { font-size: 50px; height: 50px; }
.os-card .icon svg { width: auto; height: 50px; }
.os-card h3 { margin-top: 20px; font-size: 23px; font-weight: 900; line-height: 29.9px; color: rgba(89, 95, 120, .99); }
.os-card h3 span { font-weight: 500; }
.os-card p { margin-top: 15px; font-size: 15px; line-height: 24.75px; color: rgba(81, 88, 114, .81); }
.os-card.mind   { background: rgba(239, 68, 68, .08); }   .os-card.mind   .icon { color: rgba(239, 68, 68, .65); }
.os-card.work   { background: rgba(250, 115, 21, .06); }  .os-card.work   .icon { color: rgba(250, 115, 21, .65); }
.os-card.create { background: rgba(235, 179, 11, .07); }  .os-card.create .icon { color: rgba(253, 225, 28, .65); }
.os-card.life   { background: rgba(34, 197, 95, .05); }   .os-card.life   .icon { color: rgba(34, 197, 95, .65); }

/* 第四屏：現況圖 */
.s-radar { position: relative; min-height: 633px; padding: 50px; display: flex; align-items: center; justify-content: center; }
.s-radar::before {
  content: ""; position: absolute; inset: 0; opacity: .47;
  background: url("/images/Mastery-section-2-background.webp") center / cover;
}
.s-radar .row { position: relative; display: flex; gap: 20px; align-items: center; max-width: 924px; width: 100%; }
.s-radar .col { flex: 1 1 452px; min-width: 0; }
.s-radar h2 { font-size: 24px; font-weight: 600; line-height: 42px; letter-spacing: 3.2px; color: #343b4f; }
.s-radar .divider { width: 100%; margin: 20px 0; }
.s-radar .txt { font-size: 18px; line-height: 29.7px; color: #5c6881; }
.s-radar .txt b { font-weight: 600; color: #3f4860; }
.s-radar .txt + .txt { margin-top: 20px; font-size: 15px; }
.s-radar .check-list { color: #5c6881; margin-top: 10px; }
.s-radar .check-list li { font-size: 15px; line-height: 24.75px; letter-spacing: 2px; padding: 2px 0; }
.s-radar .closing { margin-top: 30px; font-size: 18px; font-weight: 500; line-height: 29.7px; letter-spacing: .6px; color: #656e88; }
.radar-box { height: 450px; }

/* 第五屏：表單 */
.s-form {
  position: relative; padding: 70px 15px 100px; text-align: center;
  background: url("/images/Life-OS-Report-section-5_2-background.webp") center / cover;
}
.s-form .fp { width: 50px; height: 57px; margin: 0 auto; color: rgba(255, 255, 255, .78); }
.s-form .fp svg { width: 50px; height: 50px; }
.s-form h2 { margin-top: 20px; font-size: 45px; font-weight: 500; line-height: 58.5px; color: #5d709a; }
.s-form .sub { margin-top: 10px; font-size: 28px; font-weight: 500; line-height: 36.4px; letter-spacing: 2.2px; color: #708acb; }
.form-box {
  position: relative; z-index: 1;
  margin: 50px auto 0; width: 688px; max-width: 100%;
  background: rgba(255, 255, 255, .15); border-radius: 10px; padding: 25px;
  text-align: left;
}
.optin { width: 538px; max-width: 100%; margin: 0 auto; }
.optin .field { margin-bottom: 14px; }
.optin label { display: block; margin-bottom: 8px; font-size: 15px; font-weight: 500; line-height: 20px; letter-spacing: .4px; color: #7480a5; }
.optin label .req { color: #e34b4b; margin-left: 4px; }
.optin input {
  width: 100%; height: 47px; padding: 6px 16px;
  font: inherit; font-size: 16px; color: #525252;
  background: rgba(255, 255, 255, .14); border: 1px solid #dedede; border-radius: 25px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05); outline: none;
}
.optin input::placeholder { color: #8a8f9c; }
.optin input:focus { border-color: #a9b8e6; background: rgba(255, 255, 255, .3); }
.optin button {
  width: 100%; height: 47px; margin-top: 6px; border: 0; cursor: pointer;
  background: #7e97db; color: #fff; border-radius: 50px;
  font: inherit; font-size: 22px; font-weight: 500;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05); transition: background .2s;
}
.optin button:hover { background: #6d87cf; }
.optin button:disabled { opacity: .7; cursor: wait; }
.privacy { width: 428px; max-width: 100%; margin: 30px auto 0; display: flex; gap: 10px; font-size: 12px; line-height: 19.8px; color: #676c7a; }
.privacy svg { width: 12px; height: 12px; margin-top: 4px; flex: none; fill: #3d4250; }

/* ================================================================
   登記完成頁
   ================================================================ */
.ty-hero {
  position: relative; min-height: 768px; padding: 140px 30px 60px;
  background: #b4c4ea url("/images/Life-OS-Report-section-5_2-background.webp") center / cover;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #fefefe;
}
.ty-hero .check { width: 92px; height: 92px; border-radius: 50%; background: #4dbb89; display: flex; align-items: center; justify-content: center; }
.ty-hero .check svg { width: 46px; height: 46px; fill: #fff; }
.ty-hero h1 { margin-top: 30px; font-size: 50px; font-weight: 500; letter-spacing: 7.2px; line-height: 1.2; }
.ty-hero .t2 { margin-top: 20px; font-size: 32px; font-weight: 400; letter-spacing: 2.3px; }
.ty-hero .t3 { margin-top: 30px; font-size: 18px; font-weight: 500; }
.ty-hero .btn-white { margin-top: 40px; padding: 23px 40px; color: #6d98cc; }
.ty-hero .btn-white svg { width: 20px; height: 20px; }

.ty-steps { background: #f4f7fa; padding: 100px 70px; text-align: center; }
.ty-steps h2 { font-size: 48px; font-weight: 600; color: #5d7fbd; }
.ty-steps .sub { margin-top: 30px; font-size: 24px; letter-spacing: .7px; color: #45619a; }
.ty-card {
  margin: 30px auto 0; max-width: 824px; display: flex; gap: 20px; align-items: flex-start; text-align: left;
  background: rgba(222, 232, 253, .36); border: 3px solid rgba(255, 255, 255, .52); border-radius: 50px; padding: 40px;
}
.ty-steps .ty-card:first-of-type { margin-top: 60px; }
.ty-card .ic { flex: none; width: 52px; height: 52px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.ty-card .ic svg { width: 26px; height: 26px; fill: #e6edfb; }
.ty-card h3 { font-size: 24px; font-weight: 800; color: #6b7785; }
.ty-card p { margin-top: 8px; font-size: 18px; color: #6d7380; }

.ty-help { position: relative; background: #fefefe; padding: 100px 30px 200px; text-align: center; color: #7c8d9f; }
.ty-help .hs svg { width: 50px; height: 50px; margin: 0 auto; fill: #c4c9cf; }
.ty-help h2 { margin-top: 20px; font-size: 40px; font-weight: 600; }
.ty-help .t { margin-top: 30px; font-size: 20px; line-height: 1.6; }
.ty-help .box { margin: 50px auto 0; width: 349px; max-width: 100%; background: #f4f6f8; border-radius: 20px; padding: 30px; }
.ty-help .box svg { width: 50px; height: 50px; margin: 0 auto; fill: #c4c9cf; }
.ty-help .box h3 { margin-top: 15px; font-size: 22px; font-weight: 600; }
.ty-help .box p { margin-top: 12px; font-size: 16px; line-height: 1.6; }

/* ================================================================
   天空背景頁：OS 解讀、連結過期、名額已滿、問卷驗證
   ================================================================ */
.sky {
  position: relative; min-height: 768px; padding: 150px 30px 160px;
  background: #9fc8e8 url("/images/Mastery-Hero-background.webp") center top / cover;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; color: #fff;
}
.sky h1 { font-size: 45px; font-weight: 600; line-height: 1.35; letter-spacing: 1px; }
.sky h1 .grad {
  background: linear-gradient(0deg, #64a4fb 0%, #69bce5 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sky .lead { margin-top: 24px; max-width: 560px; font-size: 18px; line-height: 1.75; letter-spacing: .7px; }
.sky .hint { margin-top: 24px; font-size: 16px; color: #fdf6d8; }
.sky .video {
  margin-top: 30px; width: 900px; max-width: 100%; aspect-ratio: 16 / 9;
  border-radius: 12px; overflow: hidden; box-shadow: 0 20px 50px rgba(40, 80, 140, .25);
}
.sky .video iframe { width: 100%; height: 100%; border: 0; display: block; }

/* 名額已滿頁的表單放在天空背景上 */
.sky .form-box { margin-top: 40px; background: rgba(255, 255, 255, .22); }
.sky .optin label { color: #5d6c94; }

/* 問卷驗證頁 */
.verify-icon svg { width: 46px; height: 46px; margin: 0 auto; fill: #fff; }
.sky .state { margin-top: 30px; display: none; }
.sky .state h2 { font-size: 28px; font-weight: 500; letter-spacing: 1px; }
.sky .state p { margin-top: 10px; font-size: 16px; }
.sky .loading { font-size: 18px; letter-spacing: 2px; }
.fillout-wrap { margin-top: 30px; width: 900px; max-width: 100%; background: #fff; border-radius: 16px; padding: 10px; text-align: left; color: #454f5e; }

/* ================================================================
   Circle／Mastery 邀請制頁面
   ================================================================ */
.gate-msg {
  min-height: 100vh; padding: 30px; background: #eef4fb;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #5c6881;
}
.gate-msg h2 { font-size: 30px; font-weight: 600; }
.gate-msg p { margin-top: 12px; font-size: 17px; }
.gated { display: none; }

.invite-hero {
  position: relative; min-height: 600px; padding: 150px 30px 80px;
  background: #9fc8e8 url("/images/Mastery-Hero-background.webp") center top / cover;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #fff;
}
.invite-hero h1 { font-size: 52px; font-weight: 400; }
.invite-hero p { margin-top: 14px; font-size: 18px; letter-spacing: 1px; }

.invite { background: linear-gradient(180deg, #a7cbe8 0%, #dbe8f3 30%, #eef3f8 100%); padding: 60px 20px 120px; }
.invite-card {
  max-width: 880px; margin: 0 auto 40px; padding: 60px 50px;
  background: rgba(255, 255, 255, .75); border-radius: 24px; text-align: center; color: #5c6881;
  box-shadow: 0 10px 40px rgba(80, 120, 170, .08);
}
.invite-card h2 { font-size: 30px; font-weight: 400; color: #3f4860; }
.invite-card h3 { font-size: 22px; font-weight: 600; color: #3f4860; }
.invite-card h3 + h3 { margin-top: 18px; }
.invite-card .em { margin-top: 12px; font-size: 18px; font-weight: 500; color: #4a5470; }
.invite-card p { font-size: 16px; line-height: 1.9; }
.invite-card p + p, .invite-card .gap { margin-top: 22px; }
.invite-card .soft { font-size: 14px; color: #8a92a6; }
.invite-card .price { margin-top: 24px; font-size: 56px; font-weight: 500; color: #2f3648; line-height: 1; }
.invite-card .price small { font-size: 28px; vertical-align: top; margin-right: 8px; }
.invite-card .unit { margin-top: 10px; font-size: 13px; color: #8a92a6; letter-spacing: 1px; }
.invite-card hr { border: 0; border-top: 1px solid #d6dde8; width: 60%; margin: 34px auto; }
.invite-card.left { text-align: left; }
.invite-card .quote { margin: 22px 0; padding-left: 22px; border-left: 2px solid #9fb3cf; }
.invite-card .points { list-style: none; padding: 0; margin: 18px auto 0; display: inline-block; text-align: left; }
.invite-card .points li { position: relative; padding: 6px 0 6px 26px; font-size: 16px; }
.invite-card .points li::before { content: "✓"; position: absolute; left: 0; color: #7e97db; font-weight: 700; }
.join-btn {
  display: inline-block; margin-top: 30px; padding: 18px 40px; border-radius: 50px;
  background: #7e97db; color: #fff; font-size: 20px; font-weight: 600; transition: background .2s;
}
.join-btn:hover { background: #6d87cf; }
.join-btn.disabled { opacity: .5; pointer-events: none; }

/* ---------- 手機版 ---------- */
@media (max-width: 767px) {
  .site-header { padding: 14px 16px 0 6px; }
  /* 照舊 WordPress 手機版：logo 369px 往左偏 45px、IG 46px 離頂 40px */
  .site-header { padding-top: 0; }
  .site-header .logo img { width: min(369px, calc(100vw + 20px)); margin-left: -45px; }
  .site-header .ig img { width: 46px; height: 46px; }

  .hero { min-height: 700px; padding: 110px 20px 50px; }
  .hero h1 { font-size: 34px; line-height: 48px; }
  .hero .lead { font-size: 16px; line-height: 28px; }
  .hero .cta-row { gap: 14px 18px; }

  .s-hidden { padding: 60px 20px; justify-content: center; }
  .s-hidden h2 { font-size: 22px; line-height: 32px; }

  .s-os { padding: 70px 16px 40px; }
  .s-os .h-a, .s-os .h-b { font-size: 22px; line-height: 36px; letter-spacing: 1px; }
  .s-os .h-c { font-size: 18px; letter-spacing: 2px; }
  .os-grid { grid-template-columns: 1fr; }
  .os-card { min-height: 0; }

  .s-radar { padding: 60px 20px; }
  .s-radar .row { flex-direction: column; }
  .s-radar .col { flex: none; width: 100%; }
  .radar-box { height: 340px; }

  .s-form h2 { font-size: 36px; }
  .s-form .sub { font-size: 22px; letter-spacing: 1px; }
  .form-box { padding: 20px 16px; }
  .optin button { font-size: 20px; }

  .ty-hero { min-height: 640px; padding: 120px 20px 50px; }
  .ty-hero h1 { font-size: 38px; letter-spacing: 4px; }
  .ty-hero .t2 { font-size: 22px; letter-spacing: 1px; }
  .ty-steps { padding: 70px 16px; }
  .ty-steps h2 { font-size: 32px; }
  .ty-steps .sub { font-size: 18px; }
  .ty-card { padding: 24px; border-radius: 30px; gap: 14px; }
  .ty-card h3 { font-size: 20px; }
  .ty-card p { font-size: 16px; }
  .ty-help h2 { font-size: 30px; }
  .ty-help .t { font-size: 17px; }

  .sky { min-height: 640px; padding: 120px 16px 140px; }
  .sky h1 { font-size: 28px; }
  .sky .lead { font-size: 16px; }
  .sky .state h2 { font-size: 22px; }
  .invite-hero h1 { font-size: 38px; }
  .invite-card { padding: 40px 22px; border-radius: 18px; }
  .invite-card h2 { font-size: 24px; }
  .invite-card .price { font-size: 46px; }
  .join-btn { font-size: 17px; padding: 16px 26px; }
}
