/* Extracted from frontend/src/assets/styles.css (:root vars + base reset) — regenerated by build-landing-static.js, do not hand-edit */
/* Owlcr theme — brand จาก logo: ม่วง + ทอง */
:root {
  --owl-purple: #5c3a66;
  --owl-purple-dark: #46294f;
  --owl-purple-light: #a88fb5;
  --owl-gold: #edd189;
  --owl-gold-dark: #c9a23a;
  --owl-bg: #f6f4f8;
  --owl-surface: #ffffff;
  --owl-chart-surface: #fcfcfb;
  --owl-text: #2b2430;
  --owl-text-2: #6b6472;
  --owl-border: #e3dde8;
  --owl-danger: #b3261e;
  --owl-ok: #1b7a3d;
  --owl-warn: #9a6a00;
  /* chart series — validated categorical palette (fixed slot order) */
  --series-1: #2a78d6;
  --series-2: #008300;
  --series-3: #e87ba4;
  --series-4: #eda100;
  --series-5: #1baf7a;
  --radius: 10px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Noto Sans Thai', -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--owl-bg);
  color: var(--owl-text);
  font-size: 15px;
}
h1, h2, h3 { margin: 0 0 12px; }
a { color: var(--owl-purple); }

/* Extracted from frontend/src/views/LandingPage.vue <style scoped> */
.landing { background: #fff; color: var(--owl-text); }

/* ── Header ── */
.lp-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 12px 32px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--owl-border);
}
.lp-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px;
  color: var(--owl-text); text-decoration: none; }
.lp-brand img { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; }

.lp-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-item { position: relative; }
.nav-link {
  display: flex; align-items: center; gap: 4px;
  padding: 8px 14px; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 15px; color: var(--owl-text); text-decoration: none;
  border-radius: 8px;
}
.nav-link:hover { background: var(--owl-bg); }
.caret { font-size: 11px; transition: transform .2s; }
.caret.up { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 300px;
  background: #fff; border: 1px solid var(--owl-border); border-radius: 12px;
  box-shadow: 0 12px 32px rgba(43, 36, 48, .14);
  padding: 8px; display: none;
}
.dropdown.open { display: block; }
.dropdown-item {
  display: block; padding: 10px 12px; border-radius: 8px;
  color: var(--owl-text); text-decoration: none;
}
.dropdown-item:hover { background: var(--owl-bg); }
.dropdown-item strong { display: block; font-size: 15px; }
.dropdown-item span { display: block; font-size: 13px; color: var(--owl-text-2); margin-top: 2px; }

.nav-actions { display: flex; gap: 8px; margin-left: 12px; }

.lp-menu-btn { display: none; flex-direction: column; gap: 5px; margin-left: auto;
  background: none; border: 0; cursor: pointer; padding: 8px; }
.lp-menu-btn span { width: 22px; height: 2px; background: var(--owl-text); border-radius: 2px; }

/* ── ปุ่ม ── */
.lp-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 9px 18px; border-radius: 999px; font-size: 15px; font-weight: 600;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .15s, box-shadow .15s;
  background: #fff;
}
.lp-btn:hover { transform: translateY(-1px); }
.lp-btn.big { padding: 13px 28px; font-size: 16px; }
.lp-btn.gold { background: var(--owl-gold); color: #3a2f10; box-shadow: 0 4px 14px rgba(201, 162, 58, .3); }
.lp-btn.ghost { color: var(--owl-text); }
.lp-btn.ghost:hover { background: var(--owl-bg); }
.lp-btn.outline { border-color: currentColor; }

/* ── Section ── */
.lp-section { padding: 88px 32px; }
.lp-container { max-width: 1120px; margin: 0 auto; }
.theme-light { color: #fff; }
.theme-light .lp-subtitle, .theme-light .lp-body { color: rgba(255, 255, 255, .82); }
.theme-light .eyebrow { color: var(--owl-gold); }

.type-hero { padding: 120px 32px; text-align: center; }
.type-hero .lp-copy { max-width: 780px; margin: 0 auto; }
.type-cta { text-align: center; }

.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: 13px;
  font-weight: 700; color: var(--owl-purple); margin: 0 0 12px; }
.lp-title { font-size: clamp(28px, 4vw, 46px); line-height: 1.25; margin: 0 0 16px; }
.lp-subtitle { font-size: clamp(16px, 1.6vw, 19px); line-height: 1.65; color: var(--owl-text-2);
  margin: 0 0 12px; }
.lp-body { font-size: 16px; line-height: 1.75; color: var(--owl-text-2); margin: 0; }
.lp-cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.type-hero .lp-cta-row, .type-cta .lp-cta-row { justify-content: center; }

/* รูปซ้าย/ขวา */
.lp-split.split { display: grid; gap: 48px; align-items: center; }
.lp-split.split.img-left .lp-copy { order: 2; }
.lp-split.split.img-left .lp-media { order: 1; }
.lp-media img { width: 100%; border-radius: 16px; display: block; }
.lp-split.img-top { display: flex; flex-direction: column-reverse; gap: 32px; }
.lp-split.img-bottom { display: flex; flex-direction: column; gap: 32px; }

/* ── Hero หน้าแรก: ภาพประกอบนกฮูก+มือถือ+สลิป ── */
/* overflow-x เพียงอย่างเดียวทำให้ overflow-y ที่เหลือ (visible) ถูกคำนวณเป็น auto ไปด้วย (สเปก CSS)
   กลายเป็นกล่อง scroll ของตัวเอง ทำให้เลื่อนหน้าแล้วติด/กระตุก — ต้องระบุ overflow-y: visible ตรง ๆ กันไว้ */
.type-hero.stunning-hero-section { padding: 72px 32px 44px; text-align: left; overflow-x: hidden; overflow-y: visible; }
.stunning-hero-section .lp-container { max-width: 1180px; }
.lp-split.stunning { grid-template-columns: 1fr 1fr; gap: 40px; }
.stunning-hero-section .lp-btn.outline { background: #fff; color: var(--owl-purple); border-color: #fff; }
.stunning-hero-section .lp-copy.align-left { max-width: 520px; margin: 0; }
.stunning-hero-section .lp-cta-row { justify-content: flex-start; }

.hero-stage {
  position: relative;
  width: min(572px, 100%);
  aspect-ratio: 1 / 1.05;
  margin-inline: auto;
  overflow: visible;
}
.hero-stage > * { position: absolute; display: block; }
.hero-owl, .hero-hand, .hero-slip { filter: drop-shadow(0 18px 30px rgba(43, 36, 48, .18)); }

.hero-owl   { left: -3%; top: 22%; width: 66.7%; z-index: 1; }
.hero-slip  { width: 21.5%; z-index: 1; }
.hero-slip-1 { right: 18%;  top: -16%; transform: rotate(-18deg); z-index: 2; }
.hero-slip-2 { right: -20%; top: -8%; transform: rotate(10deg);  z-index: 1; }
.hero-hand  { right: -20%; bottom: -6%; width: 67%; z-index: 3; }
.hero-star  { left: 48%; top: 39%;  width: 11.5%; z-index: 4; animation: heroFloat 3s ease-in-out infinite; will-change: transform; }

/* แยก filter (static, คิดครั้งเดียว บน .hero-owl/.hero-hand/.hero-slip) ออกจาก element ที่ขยับ
   ตัวจริงของปัญหาเลื่อนหน้าติดคือ overflow-x เดี่ยว ๆ ทำให้ overflow-y คำนวณเป็น auto (แก้แล้วด้านบน)
   ไม่ใช่ animation นี้ — transform ล้วนถูก composite แยกเธรดอยู่แล้ว จึงคืนอนิเมชันลอย/แกว่งกลับมาได้ */
.hero-hand-img { position: static; display: block; width: 100%;
  animation: heroSway 4.2s ease-in-out infinite; will-change: transform; }

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
@keyframes heroSway {
  0%, 100% { transform: translateX(0) rotate(-6deg); }
  50%      { transform: translateX(8px) rotate(-3deg); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-hand-img, .hero-star { animation: none; }
}
/* พักอนิเมชันตอนกำลังเลื่อนหน้าจอจริง ๆ (ดู onWindowScroll ใน script) กันแย่ง main thread กับ scroll */
html.is-scrolling .hero-hand-img,
html.is-scrolling .hero-star { animation-play-state: paused; }

/* การ์ด */
.lp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 48px; }
.lp-card {
  background: #fff; border: 1px solid var(--owl-border); border-radius: 14px; padding: 26px;
  transition: transform .2s, box-shadow .2s;
}
.lp-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(43, 36, 48, .09); }
.lp-card img { width: 100%; border-radius: 10px; margin-bottom: 14px; }
.card-icon {
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700; background: var(--owl-bg); color: var(--owl-purple);
}
/* โลโก้ Owlcr แทนไอคอน emoji — ใช้ทุก section ยกเว้น steps (ยังใช้ตัวเลขบอกลำดับ) */
img.card-icon.logo-icon { object-fit: contain; padding: 9px; }
.lp-card h3 { font-size: 18px; margin: 0 0 8px; }
.lp-card p { font-size: 15px; line-height: 1.65; color: var(--owl-text-2); margin: 0; }
.theme-light .lp-card { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); }
.theme-light .lp-card h3 { color: #fff; }
.theme-light .lp-card p { color: rgba(255, 255, 255, .78); }
.theme-light img.card-icon.logo-icon { background: rgba(255, 255, 255, .92); }

/* steps: การ์ดเรียงเป็นลำดับ ตัวเลขเด่น */
.grid-steps .card-icon { background: var(--owl-purple); color: var(--owl-gold); }

/* ── "ทำไมต้อง Owlcr": หัวข้อกลาง + มือถือวีดีโอซ้าย / กล่องฟีเจอร์ขวา ── */
.why-copy { max-width: 720px; margin: 0 auto; text-align: center; }
.why-split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 56px; align-items: center; margin-top: 56px;
}

/* min-width:0 กัน grid item ขยายตามขนาดจริงของ <video> (ค่าเริ่มต้น min-width:auto ของ
   replaced element ใช้ intrinsic size) ไม่งั้น mockup จะดันคอลัมน์ให้กว้างเกิน track ที่กำหนดไว้ */
.why-phone { min-width: 0; }

.phone-mockup {
  position: relative; width: 100%; max-width: 340px; margin: 0 auto;
  aspect-ratio: 9 / 19.5; padding: 14px; overflow: hidden;
  background: #1d1922; border-radius: 42px;
  box-shadow: 0 24px 56px rgba(43, 36, 48, .28), inset 0 0 0 2px rgba(255, 255, 255, .06);
}
.phone-notch {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 34%; height: 22px; background: #1d1922; border-radius: 12px; z-index: 2;
}
.phone-screen {
  position: relative; width: 100%; height: 100%; border-radius: 28px; overflow: hidden;
  background: linear-gradient(160deg, #2b2430, #4a3b52);
}
.phone-screen video { width: 100%; height: 100%; object-fit: cover; display: block; }
.phone-placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 12px; text-align: center; padding: 0 24px;
}
.phone-placeholder img { width: 52px; height: 52px; border-radius: 14px; object-fit: contain; background: rgba(255, 255, 255, .92); padding: 8px; }
.phone-placeholder p { margin: 0; font-size: 13.5px; color: rgba(255, 255, 255, .85); }

/* กล่องฟีเจอร์ฝั่งขวา — ใช้สไตล์การ์ดเดิม (.lp-card) เรียง 2 กล่องต่อบรรทัด */
.why-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; min-width: 0; }

@media (max-width: 860px) {
  .why-split { grid-template-columns: 1fr; gap: 36px; }
  .phone-mockup { max-width: 220px; }
}

@media (max-width: 560px) {
  .why-features { grid-template-columns: 1fr; }
}

/* ── ราคา ── */
.billing-toggle {
  display: inline-flex; gap: 4px; margin-top: 32px; padding: 4px;
  background: var(--owl-bg); border-radius: 999px;
}
.billing-toggle button {
  padding: 8px 20px; border: 0; border-radius: 999px; background: none; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 600; color: var(--owl-text-2);
}
.billing-toggle button.active { background: #fff; color: var(--owl-purple); box-shadow: 0 2px 8px rgba(43, 36, 48, .12); }
.theme-light .billing-toggle { background: rgba(255, 255, 255, .12); }
.theme-light .billing-toggle button { color: rgba(255, 255, 255, .75); }

.plan-price-note { margin: 4px 0 0; font-size: 13px; color: var(--owl-text-2); }
.plan-save-badge {
  display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px;
  background: var(--owl-ok); color: #fff; font-size: 11px; font-weight: 700;
}

.mobile-plan-note { display: none; }

.lp-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-top: 48px; }
.plan-card {
  position: relative; background: #fff; border: 1px solid var(--owl-border);
  border-radius: 16px; padding: 22px 16px; display: flex; flex-direction: column;
}
.plan-card.featured { border-color: var(--owl-gold-dark); box-shadow: 0 12px 32px rgba(201, 162, 58, .18); }
.plan-badge {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--owl-gold); color: #3a2f10; font-size: 12px; font-weight: 700;
  padding: 4px 14px; border-radius: 999px; white-space: nowrap;
}
.plan-card h3 { margin: 0 0 4px; font-size: 20px; }
.plan-tagline { margin: 0 0 16px; font-size: 14px; color: var(--owl-text-2); min-height: 20px; }
.plan-price { margin: 0; font-size: 30px; font-weight: 700; color: var(--owl-purple); }
.plan-price small { font-size: 14px; font-weight: 500; color: var(--owl-text-2); }
.plan-credits { margin: 4px 0 18px; font-size: 14px; color: var(--owl-text-2); }
.plan-card ul { list-style: none; padding: 0; margin: 0 0 22px; flex: 1; }
.plan-card li { font-size: 14px; line-height: 1.6; padding-left: 22px; position: relative; margin-bottom: 8px; }
.plan-card li::before { content: '✓'; position: absolute; left: 0; color: var(--owl-ok); font-weight: 700; }

/* ── เครดิตเสริม ── */
.lp-credit-plans { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.lp-credit-plans .plan-card { align-items: center; text-align: center; padding: 26px 16px; }
.lp-credit-plans .plan-price { font-size: 26px; }
.lp-credit-plans .plan-credits { margin: 4px 0 20px; }
.lp-credit-plans .lp-btn { width: 100%; }

/* ── FAQ ── */
.lp-faq { max-width: 760px; margin: 48px auto 0; }
.faq-item {
  border-bottom: 1px solid var(--owl-border); padding: 18px 0;
}
.faq-item summary {
  cursor: pointer; list-style: none; font-size: 16px; font-weight: 600;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; flex-shrink: 0; font-size: 20px; font-weight: 400; color: var(--owl-text-2);
  transition: transform .2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 12px 0 0; font-size: 15px; line-height: 1.7; color: var(--owl-text-2); }
.theme-light .faq-item { border-color: rgba(255, 255, 255, .18); }
.theme-light .faq-item summary { color: #fff; }
.theme-light .faq-item p { color: rgba(255, 255, 255, .78); }

/* ── Animation ── */
[data-animate] {
  opacity: 0;
  transition: opacity var(--anim-duration, 600ms) ease var(--anim-delay, 0ms),
              transform var(--anim-duration, 600ms) cubic-bezier(.22, .8, .3, 1) var(--anim-delay, 0ms);
}
[data-animate].in-view { opacity: 1; transform: none; }
.anim-none { opacity: 1; }
.anim-fade-up { transform: translateY(28px); }
.anim-fade-down { transform: translateY(-28px); }
.anim-slide-left { transform: translateX(48px); }
.anim-slide-right { transform: translateX(-48px); }
.anim-zoom-in { transform: scale(.94); }

/* เคารพการตั้งค่าระบบของผู้ใช้ที่ปิดแอนิเมชัน */
@media (prefers-reduced-motion: reduce) {
  [data-animate] { opacity: 1; transform: none; transition: none; }
}

/* ── Footer ── */
.lp-footer { background: var(--owl-text); color: rgba(255, 255, 255, .8); padding: 56px 32px 24px; }
.lp-footer .lp-brand { color: #fff; margin-bottom: 12px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.muted-light { color: rgba(255, 255, 255, .6); font-size: 14px; line-height: 1.7; margin: 0; }
.footer-links, .footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-links a, .footer-contact a { color: rgba(255, 255, 255, .8); text-decoration: none; font-size: 14px; }
.footer-links a:hover, .footer-contact a:hover { color: var(--owl-gold); }
.copyright { text-align: center; font-size: 13px; color: rgba(255, 255, 255, .45);
  margin: 40px 0 0; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); }
.legal-line { text-align: center; font-size: 12px; color: rgba(255, 255, 255, .35); margin: 8px 0 0; }

.lp-loading { text-align: center; padding: 120px 24px; color: var(--owl-text-2); }

/* ── เกี่ยวกับ Owlcr (Google OAuth verification: ต้องอธิบายวัตถุประสงค์แอปบนหน้าแรก) ── */
.about-owlcr { background: #faf8f5; padding: 64px 32px; }
.about-owlcr-text { max-width: 760px; margin: 0 auto; text-align: center; }
.about-owlcr-en { margin-top: 16px; opacity: .75; font-size: 14.5px; }

/* ── มือถือ ── */
@media (max-width: 900px) {
  .lp-header { padding: 12px 18px; }
  .lp-menu-btn { display: flex; }
  .lp-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--owl-border);
    padding: 12px 18px 20px; box-shadow: 0 12px 24px rgba(43, 36, 48, .1);
  }
  .lp-nav.open { display: flex; }
  .nav-link { width: 100%; padding: 12px 8px; }
  .dropdown { position: static; display: block; min-width: 0; border: 0; box-shadow: none;
    padding: 0 0 0 12px; }
  .nav-actions { margin: 12px 0 0; }
  .nav-actions .lp-btn { flex: 1; }
  .lp-section { padding: 64px 20px; }
  .type-hero { padding: 72px 20px; }
  .lp-split.split { grid-template-columns: 1fr !important; gap: 32px; }
  .lp-split.split.img-left .lp-copy, .lp-split.split.img-left .lp-media { order: unset; }
  .footer-inner { grid-template-columns: 1fr; }

  .type-hero.stunning-hero-section { padding: 56px 20px 24px; text-align: center; }
  .stunning-hero-section .lp-copy.align-left { max-width: 100%; margin: 0 auto; }
  /* สลิปใน hero-stage bleed ขึ้นด้านบน ทับปุ่มเข้าสู่ระบบได้ — ยกปุ่มขึ้นเหนือ */
  .stunning-hero-section .lp-cta-row { justify-content: center; position: relative; z-index: 10; }
  .hero-stage { width: min(297px, 100%); margin-top: 12px; }

  /* หน้าแพ็กเกจ: มือถือโชว์แค่ Free/Basic/Start — Scale/Pro (ตั้งค่า LINE OA เอง) ต้องเปิดบน desktop */
  .desktop-only-plan { display: none; }
  .mobile-plan-note {
    display: block; margin: 20px 0 0; font-size: 13px; color: var(--owl-text-2);
    text-align: center; line-height: 1.6;
  }
  .theme-light .mobile-plan-note { color: rgba(255, 255, 255, .75); }
}

/* Extracted from frontend/src/views/PrivacyPolicy.vue <style scoped> (shared with TermsOfUse.vue) */
.legal-page { background: #fff; color: var(--owl-text); min-height: 100vh; }
.legal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 32px; border-bottom: 1px solid var(--owl-border);
}
.legal-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px;
  color: var(--owl-text); text-decoration: none; }
.legal-brand img { width: 30px; height: 30px; border-radius: 8px; object-fit: cover; }
.legal-back { color: var(--owl-text-2); text-decoration: none; font-size: 14px; }
.legal-back:hover { color: var(--owl-purple); }

.legal-container { max-width: 780px; margin: 0 auto; padding: 48px 24px 96px; line-height: 1.8; }
.legal-container h1 { font-size: clamp(24px, 3vw, 32px); margin: 0 0 8px; }
.legal-updated { color: var(--owl-text-2); font-size: 14px; margin: 0 0 32px; }
.legal-container h2 { font-size: 19px; margin: 36px 0 12px; color: var(--owl-purple); }
.legal-container p { margin: 0 0 14px; color: var(--owl-text-2); }
.legal-container ul { margin: 0 0 14px; padding-left: 22px; color: var(--owl-text-2); }
.legal-container li { margin-bottom: 8px; }
.legal-container strong { color: var(--owl-text); }

/* Billing-period toggle (monthly/yearly) — public_html/assets/landing.js toggles [hidden] on these,
   no equivalent needed in the Vue version since it re-renders instead */
.price-yearly[hidden], .price-monthly[hidden] { display: none; }
