/* ═══════════════════════════════════════════════════════════════════
   AgingOne · lab/home-aida — หน้าโฮมไอด้า (ตามแบบพี่สิงห์ 2026-11-12)
   มือถือเป็นฐาน → แท็บเล็ต ≥700 → จอคอม ≥1400 (สเกลตามแบบ 1671×941 ด้วย --u)
   ═══════════════════════════════════════════════════════════════════ */

/* Kanit ที่เว็บ host เอง (ตัวตรง) · ตัวเอียงมาจาก Google Fonts ใน <head> */
@font-face { font-family: "Kanit"; font-weight: 300; font-style: normal; font-display: swap; src: url("/fonts/Kanit-Light.ttf") format("truetype"); }
@font-face { font-family: "Kanit"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/Kanit-Regular.ttf") format("truetype"); }
@font-face { font-family: "Kanit"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/Kanit-Medium.ttf") format("truetype"); }
@font-face { font-family: "Kanit"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/Kanit-SemiBold.ttf") format("truetype"); }
@font-face { font-family: "Kanit"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/Kanit-Bold.ttf") format("truetype"); }

:root {
  --p9: #3A1670;          /* ม่วงเข้มสุด (ตัวหนังสือหัวเรื่อง) */
  --p8: #4B1E8C;
  --p6: #6A2FBF;
  --pink: #C2338F;
  --or: #F26A1B;
  --or-d: #D93A12;
  --ink: #2A1B4A;         /* ตัวหนังสือเนื้อหา */
  --bg: #FAF7FF;
  --sos: #C8102E;
  --fz: 1;                /* ตัวคูณขนาดตัวอักษร (ปุ่ม AA) */
  --ease: cubic-bezier(.2, .7, .2, 1);
}
html[data-fz="2"] { --fz: 1.12; }
html[data-fz="3"] { --fz: 1.25; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Kanit", "Prompt", "Noto Sans Thai", "Leelawadee UI", Tahoma, sans-serif;
  font-size: calc(18px * var(--fz));
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
p, h1, ul { margin: 0; padding: 0; }
ul { list-style: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }

.sprite { position: absolute; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 50; background: #fff; color: var(--p8); padding: 12px 18px; border-radius: 12px; font-weight: 600; box-shadow: 0 6px 20px rgba(58, 22, 112, .3); }
.skip:focus { top: 8px; }
:focus-visible { outline: 3px solid var(--or); outline-offset: 3px; border-radius: 10px; }

.ic { width: 1.3em; height: 1.3em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* ───────── แถบฉุกเฉิน ───────── */
.sos { background: linear-gradient(90deg, #2E1160, var(--p8) 55%, #5A2399); color: #fff; }
.sos-in { max-width: 1920px; margin: 0 auto; min-height: 48px; padding: 0 14px; display: flex; align-items: center; justify-content: center; gap: 18px; }
.sos-call {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 48px; padding: 0 6px;
  font-size: calc(18px * var(--fz)); font-weight: 500; line-height: 1;
}
.sos-call span { display: inline-flex; align-items: center; gap: 8px; }
.sos-call .ic { width: 34px; height: 34px; padding: 7px; border-radius: 50%; background: var(--sos); stroke-width: 2; box-shadow: 0 0 0 2px rgba(255, 255, 255, .35); }
.sos-call b { font-weight: 700; font-size: 1.22em; letter-spacing: .04em; background: var(--sos); padding: 5px 14px 4px; border-radius: 999px; box-shadow: 0 0 0 2px rgba(255, 255, 255, .35); }
.sos-call:hover b, .sos-call:hover .ic { background: #E01235; }
.sos-note { display: none; align-items: center; gap: 8px; font-size: calc(18px * var(--fz)); font-weight: 300; color: #F3EAFF; }
.sos-note .ic { width: 22px; height: 22px; }

/* ───────── เวที ───────── */
.stage { position: relative; isolation: isolate; overflow: clip; max-width: 1920px; margin: 0 auto; }
.backdrop {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(90% 40% at 0% 0%, #fff 0, rgba(255, 255, 255, 0) 70%),
    radial-gradient(70% 30% at 100% 12%, rgba(242, 106, 27, .10) 0, rgba(242, 106, 27, 0) 70%),
    radial-gradient(80% 36% at 10% 30%, rgba(106, 47, 191, .10) 0, rgba(106, 47, 191, 0) 70%),
    var(--bg);
}
/* หมายเหตุ: ห้ามใช้ display:none กับ svg ตัวแรก — gradient ของคลื่นล่างอ้างจากในนั้น */
.waves { position: absolute; left: 0; top: 0; width: 100%; height: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.waves-foot { top: auto; bottom: 0; height: 84px; }

/* ───────── หัวเว็บ ───────── */
.hd { position: relative; z-index: 6; display: flex; align-items: center; gap: 10px; padding: 12px 12px 8px; }
.brand { display: flex; align-items: center; gap: 8px; min-height: 48px; margin-right: auto; }
.brand-mark { width: 58px; height: 58px; flex: none; filter: drop-shadow(0 4px 10px rgba(106, 47, 191, .22)); }
.brand-txt { display: flex; flex-direction: column; }
.brand-name { font-family: "Lora", Georgia, "Times New Roman", serif; font-weight: 600; font-size: 27px; line-height: 1.05; letter-spacing: .005em; }
.bn-a { color: var(--p8); }
.bn-o { color: #E2560F; }
.brand-tag { margin-top: 3px; max-width: 9.5em; font-size: 12.5px; line-height: 1.2; font-weight: 500; color: var(--p8); letter-spacing: .01em; }

.tools { display: flex; align-items: center; gap: 6px; }
.tool {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 48px; height: 48px; border-radius: 999px;
  background: #fff; color: var(--p9);
  box-shadow: 0 4px 14px rgba(58, 22, 112, .14), inset 0 0 0 1px rgba(106, 47, 191, .10);
  font-weight: 600; font-size: 18px; line-height: 1;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s;
}
.tool .ic { width: 24px; height: 24px; stroke-width: 2.1; }
.tool:is(a, button):hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(58, 22, 112, .22), inset 0 0 0 1px rgba(106, 47, 191, .18); }
a.tool { display: none; }
.tool-aa span { font-weight: 700; letter-spacing: .02em; }
.tool-aa[aria-expanded="true"], .tool-member[aria-expanded="true"] { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--or); }

/* ปุ่มภาษา: โลก + EN | ไทย (ตัวที่เลือกเป็นเม็ดม่วง) — ในหัวเว็บเมื่อมีที่ / ในเมนูเมื่อจอแคบ */
.tw { position: relative; display: inline-flex; flex: none; }
.tw-lang { display: none; }
.lang { display: inline-flex; align-items: center; }
.tool-lang { gap: 0; padding: 0 3px 0 11px; }
.lang > .ic { width: 24px; height: 24px; stroke-width: 2.1; margin-right: 2px; color: var(--p8); }
.lang-b { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; height: 48px; padding: 0 2px; font-weight: 600; font-size: 18px; line-height: 1; color: var(--p9); border-radius: 999px; }
.lang-b span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 38px; padding: 0 9px; border-radius: 999px; transition: background-color .2s, color .2s; }
.lang-b:hover span { background: #F1E7FF; }
.lang-b[aria-pressed="true"] span { background: var(--p6); color: #fff; }
.nav-lang { margin-top: 6px; padding: 10px 12px 6px; border-top: 1.5px solid #EADFFB; }
.nav-lang .lang { padding: 0 3px 0 11px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1.5px #D6C4F3; }
.lang-note { position: relative; display: block; margin: 10px 0 4px; padding: 12px 56px 12px 14px; border-radius: 14px; background: #F6F0FF; box-shadow: inset 0 0 0 1.5px #D6C4F3; font-size: 18px; line-height: 1.45; font-weight: 400; color: #24124F; text-align: left; white-space: normal; }
.lang-note[hidden] { display: none; }
.lang-note span { display: block; }
.lang-note .ln-en { font-weight: 500; margin-bottom: 6px; }
.pop-x { position: absolute; top: 4px; right: 4px; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; color: var(--p9); }
.pop-x:hover { background: #E9DBFF; }
.pop-x .ic { width: 22px; height: 22px; stroke-width: 2.4; }

/* กล่องลอยใต้ปุ่ม (ขนาดตัวอักษร · สมาชิก · หมายเหตุภาษา) */
.pop, .tw-lang .lang-note { position: absolute; top: calc(100% + 10px); right: 0; z-index: 9; margin: 0; background: #fff; border-radius: 16px; box-shadow: 0 0 0 1px #E0D2F7, 0 18px 44px rgba(58, 22, 112, .26); color: var(--ink); text-align: left; }
.pop[hidden] { display: none; }
.tw-lang .lang-note { width: min(360px, calc(100vw - 24px)); padding: 14px 56px 14px 16px; }
/* ขนาดตัวอักษร ก / ก+ / ก++ — แบบเดียวกับเว็บจริง (css/home-v6.css .fs-pop) + สวิตช์โหมดอ่านง่าย */
.fs-pop { display: flex; flex-direction: column; gap: 8px; padding: 9px; }
.fs-row { display: flex; gap: 6px; }
.fs-row button { min-width: 72px; height: 48px; border-radius: 12px; background: #F1E7FF; color: var(--p9); font-weight: 600; font-size: 18px; line-height: 1; letter-spacing: .02em; transition: background-color .2s, color .2s; }
.fs-row button[aria-pressed="true"], .fs-row button:hover { background: var(--p6); color: #fff; }
.fs-easy { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 52px; padding: 6px 8px 6px 10px; border-radius: 12px; box-shadow: inset 0 0 0 1.5px #D6C4F3; font-size: 18px; font-weight: 500; line-height: 1.2; color: var(--p9); white-space: nowrap; text-align: left; }
.fs-easy:hover { background: #F6F0FF; }
.fe-t { margin-right: auto; }
.fe-s { font-weight: 600; color: #5A4A78; }
.fe-sw { position: relative; flex: none; width: 52px; height: 30px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 2px #6B5A8A; transition: background-color .2s, box-shadow .2s; }
.fe-sw::after { content: ""; position: absolute; top: 5px; left: 5px; width: 20px; height: 20px; border-radius: 50%; background: #6B5A8A; transition: transform .2s var(--ease), background-color .2s; }
.fs-easy[aria-checked="true"] .fe-sw { background: var(--p6); box-shadow: inset 0 0 0 2px var(--p6); }
.fs-easy[aria-checked="true"] .fe-sw::after { transform: translateX(22px); background: #fff; }
.fs-easy[aria-checked="true"] .fe-s { color: var(--p6); }
/* สมาชิก / เข้าสู่ระบบ — ยังไม่มีระบบสมาชิก บอกว่าเร็ว ๆ นี้ */
.mb-pop { display: flex; flex-direction: column; align-items: center; gap: 8px; width: min(340px, calc(100vw - 24px)); padding: 20px 18px 16px; text-align: center; }
.mb-ic { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(140deg, var(--p8), var(--p6)); color: #fff; }
.mb-ic .ic { width: 32px; height: 32px; }
.mb-t { font-size: 20px; font-weight: 600; line-height: 1.3; color: var(--p9); }
.mb-p { font-size: 18px; line-height: 1.5; font-weight: 400; color: #24124F; }
.mb-ok { min-width: 120px; height: 48px; margin-top: 6px; padding: 0 24px; border-radius: 999px; background: var(--p6); color: #fff; font-size: 18px; font-weight: 600; }
.mb-ok:hover { background: var(--p8); }
@media (max-width: 699px) {
  /* จอมือถือ: กล่องลอยยึดกับหัวเว็บ ไม่ล้นขอบจอ */
  .tw { position: static; }
  .pop { top: calc(100% + 4px); right: 12px; }
  .mb-pop { left: 12px; right: 12px; width: auto; }
}
html[data-fz="2"] .tool-aa, html[data-fz="3"] .tool-aa { background: #F1E7FF; box-shadow: 0 4px 14px rgba(58, 22, 112, .14), inset 0 0 0 2px var(--p6); }
.tool-member { background: linear-gradient(140deg, var(--p8), var(--p6)); color: #fff; }
.tool-member .ic { width: 28px; height: 28px; }

.nav {
  display: none; position: absolute; left: 12px; right: 12px; top: 100%; z-index: 7;
  flex-direction: column; padding: 8px;
  background: #fff; border-radius: 22px; box-shadow: 0 24px 60px rgba(58, 22, 112, .28);
}
.nav.open { display: flex; }
.nav a { display: flex; align-items: center; min-height: 56px; padding: 0 18px; border-radius: 14px; font-weight: 500; font-size: calc(19px * var(--fz)); color: var(--p9); }
.nav a:hover { background: #F4ECFF; }
.nav a[aria-current="page"] { color: var(--p6); background: #F4ECFF; }

/* ───────── ฮีโร่ (มือถือ) ───────── */
.hero { position: relative; display: flex; flex-direction: column; }
.copy { position: relative; z-index: 2; padding: 14px 20px 0; }
h1 { font-family: "Kanit", sans-serif; font-style: italic; font-weight: 700; font-size: clamp(33px, 9.6vw, 62px); line-height: 1.04; letter-spacing: -.012em; }
h1 span { display: block; white-space: nowrap; }
.h-l1 { color: var(--p9); }
.h-l2 { width: fit-content; padding-right: .12em; color: #E85D0E; background: linear-gradient(92deg, #E85D0E 0%, #E4520F 45%, var(--or-d) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.sub { margin-top: 14px; font-weight: 600; font-size: calc(clamp(25px, 6.8vw, 36px) * var(--fz)); line-height: 1.25; color: var(--p9); }
.lead { position: relative; margin-top: 14px; padding-left: 18px; font-size: calc(18px * var(--fz)); line-height: 1.6; color: var(--ink); }
.lead::before { content: ""; position: absolute; left: 0; top: .3em; bottom: .3em; width: 4px; border-radius: 4px; background: linear-gradient(180deg, var(--or), var(--pink) 55%, var(--p6)); }

.cta { display: flex; flex-direction: column; gap: 12px; margin-top: 22px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 60px; padding: 8px 26px; border-radius: 999px;
  font-weight: 500; font-size: calc(20px * var(--fz)); line-height: 1.2;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, color .25s;
}
.btn .ic-lg { width: 30px; height: 30px; stroke-width: 1.7; }
.btn .ic-sm { width: 20px; height: 20px; stroke-width: 2.4; transition: transform .25s var(--ease); }
.btn:hover .ic-sm { transform: translateX(4px); }
.btn-main { color: #fff; background: linear-gradient(120deg, #3F1784 0%, var(--p8) 35%, var(--p6) 100%); box-shadow: 0 12px 28px rgba(75, 30, 140, .38), inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 -2px 0 rgba(30, 8, 70, .25); }
.btn-main:hover { transform: translateY(-2px); box-shadow: 0 18px 36px rgba(75, 30, 140, .46), inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 -2px 0 rgba(30, 8, 70, .25); }
.btn-ghost { color: var(--p8); background: rgba(255, 255, 255, .78); box-shadow: inset 0 0 0 2px var(--p6), 0 8px 22px rgba(75, 30, 140, .10); }
.btn-ghost:hover { transform: translateY(-2px); background: #fff; box-shadow: inset 0 0 0 2px var(--p8), 0 14px 28px rgba(75, 30, 140, .2); }

.ai-note { display: flex; align-items: flex-start; gap: 8px; margin-top: 16px; font-size: calc(18px * var(--fz)); line-height: 1.45; color: #4A3B6B; }
.nw { white-space: nowrap; }
.ai-note .ic { width: 22px; height: 22px; margin-top: .14em; color: var(--p6); }
.ai-note a { color: var(--sos); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; padding: 12px 4px; margin: -12px -4px; }

/* ภาพไอด้า + กล่องคำทักทาย */
.visual { position: relative; z-index: 1; margin-top: 56px; }
.photo img {
  width: 100%; height: auto; aspect-ratio: 768 / 1150; object-fit: cover; object-position: 50% 0%;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 16%, #000 90%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0, #000 16%, #000 90%, transparent 100%);
}
.bubble {
  position: absolute; z-index: 2; top: -34px; left: 50%; width: min(330px, 84%); margin-left: calc(min(330px, 84%) / -2);
  padding: 20px 22px 22px; border-radius: 38px; color: #fff; text-align: center;
  background: linear-gradient(135deg, #4B1E8C 0%, #6A2FBF 40%, #972FB3 74%, #B4318F 100%);
  box-shadow:
    inset 0 0 0 2.5px rgba(255, 255, 255, .78),
    inset 0 0 26px rgba(255, 190, 240, .42),
    0 0 0 1px rgba(255, 255, 255, .55),
    0 0 26px rgba(205, 90, 255, .7),
    0 0 58px rgba(255, 130, 90, .42);
}
.bubble::before {
  content: ""; position: absolute; inset: -12px; z-index: -1; border-radius: inherit;
  background: linear-gradient(120deg, #B56BFF, #FF7AC3 55%, #FFA25E);
  filter: blur(22px); opacity: .5;
  animation: glow 3.8s ease-in-out infinite;
}
.bubble::after {
  content: ""; position: absolute; left: 44%; bottom: -24px; width: 44px; height: 27px;
  background: linear-gradient(135deg, #7A2FBC, #8D2FB6);
  clip-path: polygon(0 100%, 30% 0, 100% 0);
  filter: none;
}
.b-heart { position: absolute; right: 18px; top: 14px; width: 46px; height: 46px; fill: rgba(255, 255, 255, .08); stroke: #FFC2A8; stroke-width: 1.5; stroke-linejoin: round; transform: rotate(10deg); filter: drop-shadow(0 0 5px #FF7AC3) drop-shadow(0 0 10px rgba(255, 150, 90, .8)); }
.bubble p { position: relative; }
.b-hi { text-align: left; padding-left: 14px; font-size: calc(24px * var(--fz)); font-weight: 400; line-height: 1.2; }
.b-me { text-align: left; padding-left: 40px; font-size: calc(26px * var(--fz)); font-weight: 400; line-height: 1.25; }
.b-me b { display: inline-block; padding-right: .1em; font-style: italic; font-weight: 700; font-size: 1.28em; line-height: 1; vertical-align: -.04em; color: #FFC55C; background: linear-gradient(95deg, #FFE08A, #FFB347 60%, #FF9A4A); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 1px 6px rgba(60, 10, 110, .5)); }
.b-role { font-size: calc(22px * var(--fz)); font-weight: 500; line-height: 1.3; }
.b-msg { margin-top: 6px; font-size: calc(18px * var(--fz)); font-weight: 400; line-height: 1.45; text-wrap: balance; }
.b-msg span { display: inline-block; }

/* ───────── แผง 8 หมวด ───────── */
.cats {
  position: relative; z-index: 2; margin: 6px 14px 0; padding: 12px;
  border-radius: 30px; border: 1.5px solid rgba(255, 255, 255, .9);
  background: rgba(255, 255, 255, .55);
  -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
  box-shadow: 0 22px 54px rgba(58, 22, 112, .18), inset 0 1px 0 #fff;
  scroll-margin-top: 16px;
}
.cats ul { display: grid; gap: 8px; }
.cats a {
  display: grid; grid-template-columns: 40px 1fr 20px; align-items: center; gap: 10px;
  min-height: 56px; padding: 6px 16px 6px 18px; border-radius: 999px;
  background: rgba(255, 255, 255, .88); color: #2E1563;
  font-weight: 500; font-size: calc(18.5px * var(--fz)); line-height: 1.25;
  box-shadow: 0 2px 8px rgba(58, 22, 112, .07);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s;
}
.cats a.two { border-radius: 30px; padding-top: 9px; padding-bottom: 9px; }
.cats a:hover { transform: translateX(4px); background: #fff; box-shadow: 0 8px 22px rgba(58, 22, 112, .18); }
.c-ic { width: 34px; height: 34px; justify-self: center; fill: none; stroke: #5A22B0; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.cats li:nth-child(-n+2) .c-ic { stroke: #CF2E86; }
.c-ch { width: 20px; height: 20px; fill: none; stroke: var(--p8); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.cats a:hover .c-ch { transform: translateX(3px); }

/* ───────── การ์ด 5 กลุ่ม ───────── */
.aud { position: relative; z-index: 2; display: grid; gap: 14px; padding: 26px 14px 104px; scroll-margin-top: 16px; }
.card {
  position: relative; display: block; overflow: hidden; isolation: isolate;
  height: 190px; border-radius: 32px; background: #fff;
  box-shadow: 0 0 0 2px #fff, 0 14px 34px rgba(58, 22, 112, .17);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.card img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(255, 255, 255, 0) 36%, rgba(255, 255, 255, .9) 50%, #fff 62%); }
.card-t { position: absolute; left: 52%; right: 8px; top: 16px; display: flex; flex-direction: column; align-items: flex-start; color: var(--p9); font-size: calc(20px * var(--fz)); line-height: 1.22; }
.a-ic { width: 42px; height: 42px; margin-bottom: 6px; fill: none; stroke: #5A22B0; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.t1 { font-weight: 500; }
.t2 { font-weight: 600; }
.go { position: absolute; right: 14px; bottom: 14px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--p6); box-shadow: 0 4px 12px rgba(58, 22, 112, .22), inset 0 0 0 1.5px rgba(106, 47, 191, .22); transition: background-color .3s, color .3s, transform .3s var(--ease); }
.go svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.card:hover { transform: translateY(-7px); box-shadow: 0 0 0 2px #fff, 0 26px 50px rgba(58, 22, 112, .28); }
.card:hover img { transform: scale(1.045); }
.card:hover .go { background: linear-gradient(140deg, var(--p8), var(--p6)); color: #fff; transform: translateX(3px); }

/* ───────── การเคลื่อนไหว ───────── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes glow { 0%, 100% { opacity: .38; transform: scale(.985); } 50% { opacity: .78; transform: scale(1.03); } }
@keyframes drift { from { transform: translateX(-22px); } to { transform: translateX(22px); } }
.rv { animation: fadeUp .85s var(--ease) backwards; }
.rv1 { animation-delay: .05s; } .rv2 { animation-delay: .15s; } .rv3 { animation-delay: .25s; } .rv4 { animation-delay: .35s; }
.rv5 { animation-delay: .55s; } .rv6 { animation-delay: .45s; } .rv7 { animation-delay: .53s; } .rv8 { animation-delay: .61s; }
.rv9 { animation-delay: .69s; } .rv10 { animation-delay: .77s; }
.wv1 { animation: drift 16s ease-in-out infinite alternate; }
.wv2 { animation: drift 22s ease-in-out infinite alternate-reverse; }
.wv3 { animation: drift 12s ease-in-out infinite alternate; }

/* ═════════ มือถือ <700 — รูป aida-mobile (อนุมัติแล้ว) เต็มกว้าง · หัวเรื่องทับเพดานว่างด้านบน · ปุ่มทับโต๊ะด้านล่าง ═════════ */
@media (max-width: 699px) {
  .hero { --ih: calc(100vw * 1672 / 941); --it: -14px; }
  .copy, .visual { display: contents; }
  .photo img {
    position: absolute; z-index: 0; left: 0; top: var(--it); width: 100%; height: auto; aspect-ratio: 941 / 1672; object-fit: cover; object-position: 50% 50%;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 7%, #000 93%, transparent 100%);
            mask-image: linear-gradient(180deg, transparent 0, #000 7%, #000 93%, transparent 100%);
  }
  /* ม่านแสงหลังหัวเรื่อง (บน) และหลังปุ่ม (ล่าง) — ไม่แตะหน้าและชื่อบนอกของไอด้า */
  .hero::before {
    content: ""; position: absolute; z-index: 1; left: 0; right: 0; top: var(--it); height: var(--ih); pointer-events: none;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, .9) 0, rgba(255, 255, 255, .86) 22%, rgba(255, 255, 255, 0) 34%),
      linear-gradient(0deg, rgba(250, 247, 255, .92) 0, rgba(250, 247, 255, .6) 14%, rgba(250, 247, 255, 0) 21%);
  }
  .head { order: 1; position: relative; z-index: 2; padding: 8px 20px 0; min-height: calc(var(--ih) * .805 + var(--it)); }
  .sub { margin-top: 10px; }
  .cta { order: 2; position: relative; z-index: 2; margin: 0 20px; }
  .bubble { order: 3; position: relative; top: auto; left: auto; align-self: center; margin: 50px 0 0; }
  .bubble::after { left: 46%; top: -24px; bottom: auto; background: #5325A0; clip-path: polygon(40% 0, 100% 100%, 0 100%); }
  .lead { order: 4; z-index: 2; margin: 30px 20px 0; }
  .ai-note { order: 5; position: relative; z-index: 2; margin: 16px 20px 0; }
  .cats { order: 6; margin-top: 24px; }
}
/* จอแคบมาก: ย่อโลโก้ให้ปุ่มเมนูไม่หลุดขอบจอ */
@media (max-width: 359px) {
  .hd { gap: 4px; padding-left: 8px; padding-right: 6px; }
  .brand-mark { width: 44px; height: 44px; }
  .brand-name { font-size: 22px; }
  .brand-tag { display: none; }
  .tools { gap: 4px; }
}

/* ปุ่มภาษาขึ้นหัวเว็บเมื่อกว้างพอ (ต่ำกว่านี้อยู่ในเมนู) */
@media (min-width: 800px) {
  .tw-lang { display: inline-flex; }
  .nav-lang { display: none; }
}

/* ═════════ แท็บเล็ต ≥700 ═════════ */
@media (min-width: 700px) {
  .hd { padding: 16px 28px 10px; gap: 16px; }
  .brand-mark { width: 76px; height: 76px; }
  .brand-name { font-size: 36px; }
  .brand-tag { max-width: none; font-size: 14px; }
  .tools { gap: 10px; }
  a.tool { display: inline-flex; }
  .nav { left: auto; right: 28px; width: 340px; }

  .copy { padding: 26px 40px 0; }
  h1 { font-size: clamp(58px, 8.4vw, 84px); }
  .sub { margin-top: 18px; font-size: calc(38px * var(--fz)); }
  .lead { max-width: 34em; font-size: calc(20px * var(--fz)); }
  .cta { flex-direction: row; flex-wrap: wrap; }
  .btn { min-height: 62px; }

  .visual { margin-top: 30px; }
  .photo img { aspect-ratio: 4 / 3; object-position: 14% 50%;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 86%, transparent 100%);
            mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 86%, transparent 100%); }
  .bubble { top: 5%; left: auto; right: 3%; width: 318px; margin-left: 0; }
  .bubble::after { left: 10%; }

  .cats { margin: -10px 28px 0; padding: 16px; }
  .cats ul { grid-template-columns: 1fr 1fr; gap: 10px; }
  .aud { grid-template-columns: repeat(6, 1fr); gap: 16px; padding: 28px 28px 120px; }
  .card { grid-column: span 3; height: 196px; }
  .card-t { top: 24px; }
  .card:nth-child(5) { grid-column: span 6; }
  .card img { width: 64%; }
  .card:nth-child(5) img { width: 40%; }
  .card:nth-child(5) .card-t { left: 50%; }
  .waves-foot { height: 100px; }
}
@media (min-width: 900px) {
  .sos-note { display: flex; }
  .ai-note { display: none; }
  .sos-in { justify-content: space-between; padding: 0 28px; }
  .bubble { right: 6%; width: 340px; }
}
@media (min-width: 1000px) and (max-width: 1399px) {
  .photo img { aspect-ratio: 16 / 10; object-position: 30% 60%; }
  .bubble { top: 9%; right: 9%; }
}

/* ═════════ จอคอม ≥1400 — พิกัดตามแบบ 1671×941 (1u = 1px ของแบบ) ═════════ */
@media (min-width: 1400px) {
  :root {
    --u: calc(min(100vw, 1920px) / 1671); --panel: max(332px, calc(327 * var(--u)));
    /* รูปไอด้าที่อนุมัติ (aida-desktop-close 1672×941) ย่อ ~0.68 ให้หัวเท่าแบบ วางให้หน้าอยู่กลางจอ
       --bl = ขอบซ้ายของกล่องคำทักทาย · จอแคบรูปขยับซ้ายเองเพื่อไม่ให้กล่องทับหน้า/มือที่เท้าคาง
       (ในรูป: ขอบขวาของแก้ม+ผม = 0.66 · มือที่เท้าคาง 0.61–0.73 เริ่มที่ 0.37 ของสูงรูป · นาฬิกา 0.70–0.745 ที่ 0.50–0.56)
       กล่องจึงเริ่มที่ ≥0.70 ของกว้างรูป (--bx) และก้นกล่องอยู่เหนือหลังมือ มุมล่างซ้ายที่โค้งหลบมือพอดี */
    --pw: calc(1137 * var(--u));
    --bw: max(276px, calc(310 * var(--u)));
    --bgap: max(10px, calc(16 * var(--u)));
    --bx: calc(790 * var(--u));
    --bl: calc(min(100vw, 1920px) - 21 * var(--u) - var(--panel) - var(--bgap) - var(--bw));
    --px: min(calc(160 * var(--u)), calc(var(--bl) - var(--bx)));
    --py: calc(64 * var(--u));
  }
  .stage { min-height: calc(941 * var(--u)); }
  .sos-in { padding: 0 calc(68 * var(--u)); }

  /* ฉากหลัง = รูปเดียวกัน วางตำแหน่งเดียวกับรูปคม แล้วเบลอ → ขอบรูปละลายเข้าพื้นไล่สีอ่อนที่ต่อออกไปสองข้าง */
  .backdrop { inset: 0 0 auto 0; height: calc(800 * var(--u)); overflow: hidden;
              background: linear-gradient(90deg, #FFFDFB 0, #FBF8FF 30%, #F4EFFD 70%, #F1EBFC 100%); }
  .backdrop::before {
    content: ""; position: absolute; inset: calc(-60 * var(--u));
    background: url("/img/home-aida/approved/aida-desktop-close.jpg") calc(var(--px) + 60 * var(--u)) calc(var(--py) + 60 * var(--u)) / var(--pw) auto no-repeat;
    filter: blur(calc(26 * var(--u))) saturate(1.08) brightness(1.03);
  }
  /* ม่านแสง: ซ้ายหลังหัวเรื่อง · ขวาหลังแผงหมวด · บนหลังเมนู · ล่างรับคลื่น — เว้นตัวไอด้าไว้ */
  .backdrop::after {
    content: ""; position: absolute; inset: 0;
    background:
      linear-gradient(90deg, rgba(255, 255, 255, .93) 0, rgba(255, 255, 255, .9) 30%, rgba(255, 255, 255, 0) 37%),
      linear-gradient(270deg, rgba(250, 247, 255, .88) 0, rgba(250, 247, 255, .8) 19%, rgba(250, 247, 255, 0) 26%),
      linear-gradient(180deg, rgba(255, 255, 255, .8) 0, rgba(255, 255, 255, 0) 16%),
      linear-gradient(0deg, var(--bg) 0, rgba(250, 247, 255, 0) 26%);
  }
  /* ม่านเดียวกันทับบนรูปคม (รูปคมอยู่เหนือ .backdrop) */
  .hero::before {
    content: ""; position: absolute; z-index: 1; pointer-events: none;
    left: 0; right: 0; top: calc(-110 * var(--u)); height: calc(800 * var(--u));
    background:
      linear-gradient(90deg, rgba(255, 255, 255, .93) 0, rgba(255, 255, 255, .9) 30%, rgba(255, 255, 255, 0) 37%),
      radial-gradient(calc(330 * var(--u)) calc(120 * var(--u)) at calc(360 * var(--u)) calc(245 * var(--u)), rgba(255, 255, 255, .82) 0, rgba(255, 255, 255, .7) 60%, rgba(255, 255, 255, 0) 100%),
      linear-gradient(270deg, rgba(250, 247, 255, .88) 0, rgba(250, 247, 255, .8) 19%, rgba(250, 247, 255, 0) 26%);
  }

  .waves { top: calc(548 * var(--u)); height: calc(420 * var(--u)); overflow: visible; }
  .waves-foot { top: auto; bottom: 0; height: calc(96 * var(--u)); }

  /* หัวเว็บ */
  .hd { height: calc(110 * var(--u)); padding: 0 calc(25 * var(--u)) 0 calc(68 * var(--u)); gap: 0;
        background: linear-gradient(180deg, rgba(255, 255, 255, .92) 0, rgba(255, 255, 255, .62) 50%, rgba(255, 255, 255, 0) 92%); }
  .brand { gap: calc(16 * var(--u)); margin-right: 0; padding-right: calc(52 * var(--u)); position: relative; }
  .brand::after { content: ""; position: absolute; right: 0; top: 22%; bottom: 22%; width: 1.5px; background: linear-gradient(180deg, rgba(106, 47, 191, 0), rgba(106, 47, 191, .45), rgba(106, 47, 191, 0)); }
  .brand-mark { width: calc(98 * var(--u)); height: calc(98 * var(--u)); }
  .brand-name { font-size: calc(47 * var(--u)); }
  .brand-tag { white-space: nowrap; margin-top: calc(8 * var(--u)); font-size: max(13px, calc(15.5 * var(--u))); }

  .tool-menu { display: none; }
  .nav { display: flex; position: static; flex-direction: row; align-items: center; width: auto;
         gap: clamp(12px, calc(5vw - 46px), 46px); margin-left: calc(40 * var(--u)); padding: 0;
         background: none; border-radius: 0; box-shadow: none; }
  .nav a { position: relative; min-height: 48px; padding: 0 4px; border-radius: 8px; font-weight: 500; white-space: nowrap;
           font-size: calc(max(18px, 20.5 * var(--u)) * var(--fz)); color: #24124F; transition: color .2s; }
  .nav a::after { content: ""; position: absolute; left: 4px; right: 4px; bottom: 4px; height: 3px; border-radius: 3px;
                  background: linear-gradient(90deg, var(--p6), #A04BE8); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
  .nav a:hover, .nav a[aria-current="page"] { background: none; color: var(--p6); }
  .nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
  /* ตัวอักษรขยาย (AA): เมนูโตได้เท่าที่ไม่ดันปุ่ม AA/การเข้าถึงหลุดขอบจอ */
  html[data-fz="2"] .nav, html[data-fz="3"] .nav { gap: clamp(8px, calc(4vw - 46px), 30px); margin-left: calc(24 * var(--u)); }
  html[data-fz="3"] .nav a { font-size: calc(max(18px, 20.5 * var(--u)) * 1.12); }
  .tools { margin-left: auto; gap: calc(16 * var(--u)); flex: none; }
  .tool { min-width: max(48px, calc(50 * var(--u))); height: max(48px, calc(50 * var(--u))); font-size: max(18px, calc(20 * var(--u))); }
  .tool-lang { padding: 0 3px 0 calc(13 * var(--u)); }
  .tool-lang .lang-b { height: 100%; font-size: inherit; }
}
/* จอคอม: ปุ่มภาษา EN|ไทย กว้างขึ้น → เกลี่ยช่องว่างหลังโลโก้/ช่องไฟเมนูเล็กน้อย ไม่ให้เมนูชนปุ่มหรือปุ่มสมาชิกหลุดขอบจอ */
@media (min-width: 1400px) {
  .brand { padding-right: calc(36 * var(--u)); }
  .nav { gap: clamp(12px, calc(5vw - 58px), 38px); }
  html[data-fz="2"] .brand, html[data-fz="3"] .brand { padding-right: calc(30 * var(--u)); }
  html[data-fz="2"] .tools, html[data-fz="3"] .tools { gap: calc(10 * var(--u)); }
}
@media (min-width: 1400px) and (max-width: 1479px) {
  html[data-fz="2"] .nav, html[data-fz="3"] .nav { gap: 8px; margin-left: calc(8 * var(--u)); }
}
@media (min-width: 1400px) {

  /* ฮีโร่ */
  .hero { display: grid; grid-template-columns: minmax(0, 1fr) var(--panel); align-items: start;
          min-height: calc(585 * var(--u)); padding: calc(34 * var(--u)) calc(21 * var(--u)) calc(20 * var(--u)) calc(68 * var(--u)); }
  .copy { padding: 0; max-width: calc(640 * var(--u)); }
  h1 { font-size: calc(71 * var(--u)); line-height: 1.02; }
  .sub { margin-top: calc(20 * var(--u)); font-size: calc(40 * var(--u) * var(--fz)); line-height: 1.2; }
  .lead { margin-top: calc(22 * var(--u)); padding-left: calc(22 * var(--u)); max-width: calc(500 * var(--u));
          font-size: calc(max(18px, 21 * var(--u)) * var(--fz)); line-height: 1.5; }
  .lead::before { width: max(3px, calc(4 * var(--u))); }
  html[data-fz="1"] .lead { max-width: none; }
  html[data-fz="1"] .lead .ln { display: block; white-space: nowrap; }
  .cta { flex-wrap: nowrap; gap: calc(12 * var(--u)); margin-top: calc(28 * var(--u)); margin-left: calc(-10 * var(--u)); }
  .btn { min-height: max(56px, calc(65 * var(--u))); padding: 4px calc(26 * var(--u)); gap: calc(10 * var(--u)); white-space: nowrap;
         font-size: calc(max(18px, 22.5 * var(--u)) * var(--fz)); }
  .btn .ic-lg { width: max(26px, calc(34 * var(--u))); height: max(26px, calc(34 * var(--u))); }

  .visual { display: contents; }
  .photo img {
    position: absolute; z-index: 0; left: var(--px); top: calc(var(--py) - 110 * var(--u));
    width: var(--pw); max-width: none; height: auto; aspect-ratio: auto;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 93%, transparent 100%), linear-gradient(180deg, transparent 0, #000 7%, #000 88%, transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 93%, transparent 100%), linear-gradient(180deg, transparent 0, #000 7%, #000 88%, transparent 100%);
    -webkit-mask-composite: source-in; mask-composite: intersect;
  }
  /* กล่องคำทักทาย: อยู่ข้างหัวไอด้าด้านขวา เยื้องขึ้นบน (ตามแบบ) — ไม่ทับหน้า คาง มือที่เท้าคาง หางชี้ลงซ้ายหาไอด้า */
  .bubble { top: calc(2 * var(--u)); left: auto; right: calc(var(--panel) + 21 * var(--u) + var(--bgap)); width: var(--bw); margin-left: 0;
            padding: calc(18 * var(--u)) calc(12 * var(--u)) calc(20 * var(--u)); border-radius: calc(46 * var(--u)); }
  .bubble::after { left: calc(70 * var(--u)); bottom: calc(-30 * var(--u)); width: calc(52 * var(--u)); height: calc(32 * var(--u)); clip-path: polygon(0 100%, 38% 0, 100% 0); }
  .b-heart { right: calc(22 * var(--u)); top: calc(14 * var(--u)); width: calc(60 * var(--u)); height: calc(60 * var(--u)); }
  .b-hi { padding-left: calc(24 * var(--u)); font-size: calc(max(21px, 28 * var(--u)) * var(--fz)); }
  .b-me { padding-left: calc(50 * var(--u)); font-size: calc(max(22px, 29 * var(--u)) * var(--fz)); }
  .b-role { font-size: calc(max(19px, 25 * var(--u)) * var(--fz)); }
  .b-msg { margin-top: calc(6 * var(--u)); font-size: calc(max(18px, 19.5 * var(--u)) * var(--fz)); line-height: 1.4; }

  .copy { grid-column: 1; grid-row: 1; }
  .cats { grid-column: 2; grid-row: 1; margin: calc(-2 * var(--u)) 0 0; padding: calc(15 * var(--u)) calc(12 * var(--u)); border-radius: calc(30 * var(--u)); }
  .cats ul { grid-template-columns: 1fr; gap: calc(6.5 * var(--u)); }
  .cats a { grid-template-columns: max(30px, calc(38 * var(--u))) 1fr 16px; gap: calc(9 * var(--u)); letter-spacing: -.005em;
            min-height: max(48px, calc(47 * var(--u))); padding: 3px calc(11 * var(--u)) 3px calc(14 * var(--u));
            font-size: calc(max(18px, 18.5 * var(--u)) * var(--fz)); }
  .cats a.two { border-radius: calc(30 * var(--u)); padding-top: 7px; padding-bottom: 7px; }
  .c-ic { width: max(28px, calc(36 * var(--u))); height: max(28px, calc(36 * var(--u))); }

  /* การ์ด */
  .aud { grid-template-columns: repeat(5, 1fr); gap: calc(13 * var(--u)); padding: 0 calc(25 * var(--u)) calc(41 * var(--u)); }
  .card, .card:nth-child(5) { grid-column: auto; height: max(192px, calc(205 * var(--u))); border-radius: calc(36 * var(--u)); }
  .card img, .card:nth-child(5) img { width: 88%; }
  .card::after { background: linear-gradient(90deg, rgba(255, 255, 255, 0) 34%, rgba(255, 255, 255, .9) 49%, #fff 60%); }
  .t2 { white-space: nowrap; }
  .card-t, .card:nth-child(5) .card-t { left: 46%; right: calc(8 * var(--u)); top: calc(26 * var(--u)); transform: none;
            font-size: calc(max(18px, 21.5 * var(--u)) * var(--fz)); line-height: 1.2; }
  .a-ic { width: max(36px, calc(46 * var(--u))); height: max(36px, calc(46 * var(--u))); margin-bottom: calc(8 * var(--u)); }
  .go { right: calc(16 * var(--u)); bottom: calc(16 * var(--u)); width: max(32px, calc(36 * var(--u))); height: max(32px, calc(36 * var(--u))); }
}

/* ═════════ ตัวอักษรใหญ่ (ปุ่ม ก+ : data-fz 2/3) ═════════
   กล่องคำพูดไอด้า (จอ ≥700): ตรึงตัวอักษรไว้ที่ขนาดปกติเสมอ (--fz:1) — กรอบมีพื้นที่คงที่ ข้อความโตแล้วล้น
   การ์ด 5 กลุ่ม: ให้การ์ดสูงขึ้นตามข้อความ + กันที่ให้ปุ่มลูกศรกลม ไม่ให้ตัดคำ/ถูกทับ */
.bubble { --fz: 1; }
/* founder 16 พ.ย. 2569: บนมือถือกล่องคำพูดก็ไม่อยู่ข้างไอด้า → ซ่อนด้วย (ปุ่ม คุยกับไอด้าเลย บอกเรื่องเดียวกัน) */
@media (max-width: 699px) { .bubble { display: none; } }
html[data-fz="2"] .card, html[data-fz="3"] .card { height: auto; min-height: 190px; }
html[data-fz="2"] .card .card-t, html[data-fz="3"] .card .card-t {
  position: relative; left: auto; right: auto; top: auto; transform: none;
  margin-left: 52%; padding: 16px 10px 64px 0; overflow-wrap: anywhere;
}
html[data-fz="2"] .card:nth-child(5) .card-t, html[data-fz="3"] .card:nth-child(5) .card-t { margin-left: 50%; }
html[data-fz="2"] .t2, html[data-fz="3"] .t2 { white-space: normal; }
@media (min-width: 700px) {
  html[data-fz="2"] .card .card-t, html[data-fz="3"] .card .card-t { padding-top: 24px; }
}
@media (min-width: 1400px) {
  html[data-fz="2"] .card, html[data-fz="3"] .card { min-height: max(192px, calc(205 * var(--u))); }
  html[data-fz="2"] .card .card-t, html[data-fz="3"] .card .card-t,
  html[data-fz="2"] .card:nth-child(5) .card-t, html[data-fz="3"] .card:nth-child(5) .card-t {
    margin-left: 46%; padding-top: calc(26 * var(--u)); padding-right: calc(8 * var(--u));
  }
}

/* ═════════ โหมดอ่านง่าย (ปุ่มการเข้าถึง) ═════════ */
html.easy body { color: #17092F; }
html.easy .lead, html.easy .b-msg, html.easy .sos-note { font-weight: 500; }
/* กรอบกล่องในโหมดนี้ใช้กรอบขาว + เงาฟุ้งบางแบบต้นฉบับ (ไม่ใช้ขอบม่วงเข้ม) — ความคมชัดมาจากตัวหนังสือเข้มและพื้นขาวทึบ */
html.easy .cats { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; border-color: #fff; box-shadow: 0 14px 36px rgba(58, 22, 112, .14); }
html.easy .cats a { background: #FBF8FF; box-shadow: inset 0 0 0 1.5px #E7DCF8, 0 2px 8px rgba(58, 22, 112, .08); color: #17092F; font-weight: 600; }
html.easy .cats a:hover { background: #F4ECFF; box-shadow: inset 0 0 0 1.5px #D6C4F3, 0 6px 16px rgba(58, 22, 112, .14); }
html.easy .card { box-shadow: 0 0 0 3px #fff, 0 12px 30px rgba(58, 22, 112, .16); }
html.easy .card:hover { box-shadow: 0 0 0 3px #fff, 0 20px 40px rgba(58, 22, 112, .24); }
html.easy .card::after { background: linear-gradient(90deg, rgba(255, 255, 255, 0) 34%, #fff 52%); }
html.easy .bubble { background: #3A1670; }
html.easy .bubble::after { background: #3A1670; }
html.easy .b-me b { -webkit-text-fill-color: #FFD76A; background: none; }
html.easy .h-l2 { -webkit-text-fill-color: #B8320A; background: none; }
html.easy .waves { opacity: .35; }
/* เมนูบน: ไม่ขีดเส้นใต้ (ตามต้นฉบับ) — หน้าปัจจุบันบอกด้วยแถบม่วง/พื้นม่วงอ่อน  · ลิงก์ในประโยคยังขีดเส้นใต้ */
html.easy .ai-note a { text-decoration: underline; text-underline-offset: 5px; }
html.easy .rv, html.easy .bubble::before, html.easy .wv { animation: none; }

/* ═════════ เคารพ prefers-reduced-motion ═════════ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .card:hover, .btn:hover, .tool:hover, .cats a:hover, .card:hover img { transform: none; }
}
