/* คุณแม่ AI — landing + sign-in. Palette: teal #117776 · deep #0f4648 · mint #9ed1bb · peach #febba7 · LINE green */
:root {
  --teal: #117776;
  --teal-deep: #0f4648;
  --teal-mid: #165f63;
  --mint: #9ed1bb;
  --mint-soft: #eef8f3;
  --mint-line: #d6ece2;
  --peach: #febba7;
  --peach-soft: #fff1ea;
  --line: #06c755;
  --line-dark: #05a647;
  --fg: #16302c;
  --muted: #5d716c;
  --faint: #93a8a2;
  --bg: #f6faf8;
  --surface: #ffffff;
  --border: #e3ece8;
  --shadow: 0 1px 2px rgba(15, 70, 72, 0.06), 0 10px 30px -12px rgba(15, 70, 72, 0.18);
  --shadow-lg: 0 2px 4px rgba(15, 70, 72, 0.05), 0 30px 60px -24px rgba(15, 70, 72, 0.28);
  --radius: 22px;
  --display: "Kanit", "IBM Plex Sans Thai", system-ui, sans-serif;
  --sans: "IBM Plex Sans Thai", "Noto Sans Thai", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html[data-lang-pending] body { visibility: hidden; }
body { margin: 0; font-family: var(--sans); color: var(--fg); background: var(--bg); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); }
h1, h2, h3 { font-family: var(--display); line-height: 1.25; margin: 0; font-weight: 600; }
p { margin: 0; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); }
.center { text-align: center; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--teal); color: #fff; padding: 8px 14px; border-radius: 10px; z-index: 50; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; border-radius: 8px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px; font: 600 15px/1 var(--sans); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform 0.15s, box-shadow 0.15s, background 0.15s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(15, 70, 72, 0.25); }
.btn-line { background: linear-gradient(180deg, #19d468, var(--line)); color: #fff; box-shadow: 0 4px 0 #049a41, 0 12px 22px -10px rgba(6, 199, 85, 0.7); }
.btn-line:hover { background: var(--line-dark); }
.btn-teal { background: var(--teal); color: #fff; box-shadow: 0 8px 20px -10px rgba(17, 119, 118, 0.7); }
.btn-teal:hover { background: var(--teal-mid); }
.btn-ghost { background: #fff; color: var(--teal); border-color: var(--mint-line); box-shadow: 0 3px 0 var(--mint-line); }
.btn-ghost:hover { border-color: var(--mint); }
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 16px; }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn svg { flex-shrink: 0; }

.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--mint-line); color: var(--teal); font-weight: 600; font-size: 14px; box-shadow: var(--shadow); }
.eyebrow { color: var(--teal); font-weight: 600; font-size: 14px; letter-spacing: 0.02em; margin-bottom: 8px; }

/* ---------- header: floating capsule ---------- */
.site-header { position: sticky; top: 0; z-index: 30; padding: 12px 0 0; }
.site-header .wrap { width: min(1280px, 100% - 24px); }
.nav-bar { display: flex; align-items: center; gap: 16px; min-height: 76px; padding: 10px 12px 10px 16px; border: 2.5px solid transparent; border-radius: 999px;
  background: linear-gradient(rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.94)) padding-box, linear-gradient(90deg, #ffd76a, #9ed1bb, #a5c8ff, #f7b2c9, #ffd76a) border-box;
  backdrop-filter: saturate(170%) blur(16px); box-shadow: 0 10px 30px -14px rgba(15, 70, 72, 0.38); transition: box-shadow 0.2s; }
.site-header.scrolled .nav-bar { box-shadow: 0 16px 36px -16px rgba(15, 70, 72, 0.5); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--fg); }
.brand img { width: 50px; height: 50px; border-radius: 15px; box-shadow: 0 4px 10px -4px rgba(15, 70, 72, 0.45); transition: transform 0.25s; }
.brand:hover img { transform: rotate(-8deg) scale(1.06); }
.brand-name { font-family: var(--display); font-weight: 600; font-size: 23px; }
.nav { display: flex; gap: 6px; margin: 0 auto; }
.nav a { display: inline-flex; align-items: center; gap: 9px; color: var(--fg); text-decoration: none; padding: 7px 16px 7px 8px; border-radius: 999px; font-weight: 600; font-size: 17px; transition: background 0.2s, color 0.2s, transform 0.15s; }
.nav-ico { width: 36px; height: 36px; border-radius: 12px; display: inline-grid; place-items: center; font-size: 19px; line-height: 1; transition: transform 0.25s; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.06); }
.nav a:hover { transform: translateY(-2px); }
.nav a:hover .nav-ico, .nav a.active .nav-ico { transform: scale(1.12) rotate(-10deg); }
.n1 .nav-ico { background: #fff1c7; } .n2 .nav-ico { background: #ffe1ec; } .n3 .nav-ico { background: #d9f3e6; } .n4 .nav-ico { background: #dde9ff; } .n5 .nav-ico { background: #ebe3ff; }
.nav a.n1:hover, .nav a.n1.active { background: #fff8e2; color: #8a5a00; }
.nav a.n2:hover, .nav a.n2.active { background: #fff0f5; color: #b03a63; }
.nav a.n3:hover, .nav a.n3.active { background: #eefaf3; color: var(--teal); }
.nav a.n4:hover, .nav a.n4.active { background: #eef4ff; color: #2d5fb3; }
.nav a.n5:hover, .nav a.n5.active { background: #f5f0ff; color: #6a46c2; }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav + .header-actions { margin-left: 0; }
.lang { display: inline-flex; background: var(--mint-soft); border-radius: 999px; padding: 3px; }
.lang-btn { border: 0; background: transparent; color: var(--muted); font: 700 13px var(--sans); padding: 8px 12px; border-radius: 999px; cursor: pointer; }
.lang-btn[aria-pressed="true"] { background: var(--teal); color: #fff; box-shadow: 0 2px 0 var(--teal-deep); }
.burger { display: none; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--mint-soft); cursor: pointer; padding: 0; position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 2.5px; border-radius: 2px; background: var(--teal-deep); transition: transform 0.25s, opacity 0.2s; }
.burger span:nth-child(1) { top: 17px; } .burger span:nth-child(2) { top: 23px; } .burger span:nth-child(3) { top: 29px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.mobile-nav { margin-top: 10px; background: #fff; border: 1px solid var(--border); border-radius: 26px; padding: 10px; box-shadow: var(--shadow-lg); display: grid; gap: 4px; animation: drop 0.22s ease-out; }
.mobile-nav[hidden] { display: none; }
.mobile-nav > a { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; color: var(--fg); text-decoration: none; font-weight: 600; font-size: 17px; }
.mobile-nav > a:hover { background: var(--mint-soft); }
.mobile-nav .nav-ico { font-size: 20px; }
.mobile-nav > a:nth-child(1) .nav-ico { background: #fff1c7; } .mobile-nav > a:nth-child(2) .nav-ico { background: #ffe1ec; } .mobile-nav > a:nth-child(3) .nav-ico { background: #d9f3e6; } .mobile-nav > a:nth-child(4) .nav-ico { background: #dde9ff; } .mobile-nav > a:nth-child(5) .nav-ico { background: #ebe3ff; }
.mobile-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px 6px 4px; }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 40px 0 72px; background: radial-gradient(1200px 500px at 85% -10%, #dff2e9 0%, transparent 60%), radial-gradient(700px 400px at -10% 20%, #e9f6f0 0%, transparent 60%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(36px, 5.4vw, 60px); margin: 18px 0 18px; letter-spacing: -0.01em; }
.hero h1 .hl { background: linear-gradient(120deg, var(--teal), #2aa38e); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 18px; color: var(--muted); max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.ticks { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; padding: 0; margin: 0; color: var(--muted); font-size: 14px; }
.ticks li { display: flex; align-items: center; gap: 6px; }
.ticks li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--mint-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23117776' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E") center/11px no-repeat; }

.hero-art { position: relative; min-height: 440px; }
.hero-blob { position: absolute; inset: 6% 2% 4% 8%; border-radius: 46% 54% 48% 52% / 52% 44% 56% 48%; background: linear-gradient(150deg, #d7efe4, #f5fbf8 70%); box-shadow: inset 0 0 0 1px #fff; }
.hero-mom { position: absolute; left: 50%; bottom: 0; width: min(560px, 112%); transform: translateX(-50%); filter: drop-shadow(0 24px 30px rgba(15, 70, 72, 0.18)); }
.bubble { position: absolute; background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); padding: 12px 14px; font-size: 14px; animation: float 6s ease-in-out infinite; }
.bubble small { display: block; color: var(--faint); font-size: 12px; }
.bubble b { font-family: var(--display); font-weight: 600; }
.bubble-user { top: 8%; left: 2%; background: #d8f7e1; border-bottom-right-radius: 6px; font-weight: 600; }
.bubble-card { top: 22%; right: -2%; width: 210px; animation-delay: -2s; border-top: 4px solid var(--teal); }
.bubble-card .amt { color: #e2714f; font-family: var(--display); font-size: 26px; font-weight: 600; line-height: 1.2; }
.bubble-card .bar { height: 7px; border-radius: 4px; background: #edf1ee; margin-top: 8px; overflow: hidden; }
.bubble-card .bar i { display: block; height: 100%; width: 62%; background: var(--teal); border-radius: 4px; }
.bubble-mom { bottom: 10%; left: -2%; max-width: 230px; animation-delay: -4s; border-left: 4px solid var(--mint); }
.deco { position: absolute; font-size: 30px; line-height: 1; pointer-events: none; filter: drop-shadow(0 6px 8px rgba(15, 70, 72, 0.18)); animation: bob 5s ease-in-out infinite; }
.d1 { top: 4%; right: 26%; font-size: 34px; } .d2 { top: 40%; right: 2%; animation-delay: -1.2s; } .d3 { top: 2%; left: 30%; font-size: 26px; animation-delay: -2.4s; }
.d4 { bottom: 30%; left: 4%; font-size: 26px; animation-delay: -3s; } .d5 { bottom: 6%; right: 6%; font-size: 26px; animation-delay: -0.6s; } .d6 { top: 58%; left: 18%; font-size: 22px; animation-delay: -3.6s; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-12px) rotate(8deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .bubble, .deco, .tile:hover, .mobile-nav { animation: none; transform: none; } html { scroll-behavior: auto; } .btn:hover { transform: none; } }

.demo { padding: 80px 0 88px; background: radial-gradient(900px 420px at 90% 10%, #dff2e9 0%, transparent 60%), #f6faf8; }
.demo-title { font-size: clamp(32px, 4.4vw, 52px); margin: 18px 0 16px; }
.demo-title .hl { background: linear-gradient(120deg, #0f6e6c, #1f9a83); -webkit-background-clip: text; background-clip: text; color: transparent; }
.demo-ticks { margin-bottom: 24px; }

/* ---------- sections ---------- */
.section { padding: 84px 0; }
.section.alt { background: linear-gradient(180deg, #fff, var(--mint-soft)); }
.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); }
.section-head h2::after { content: ""; display: block; width: 120px; height: 12px; margin: 10px auto 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12'%3E%3Cpath d='M2 7c10-8 18 6 28 0s18-8 28 0 18 6 28 0 18-8 28 0' fill='none' stroke='%23febba7' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat; }
.section-head p { color: var(--muted); margin-top: 12px; font-size: 17px; }

/* feature tiles (like the brand sheet) */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tile { background: var(--surface); border: 2px solid #fff; outline: 1px solid var(--border); border-radius: 26px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform 0.2s, box-shadow 0.2s; }
.tile:hover { transform: translateY(-6px) rotate(-1deg); box-shadow: var(--shadow-lg); }
.tile:nth-child(even):hover { transform: translateY(-6px) rotate(1deg); }
.tile:nth-child(8n + 1) .tile-art { background: linear-gradient(180deg, #ddf4e8, #fff); }
.tile:nth-child(8n + 2) .tile-art { background: linear-gradient(180deg, #e3efff, #fff); }
.tile:nth-child(8n + 3) .tile-art { background: linear-gradient(180deg, #e2f7da, #fff); }
.tile:nth-child(8n + 4) .tile-art { background: linear-gradient(180deg, #fff3d4, #fff); }
.tile:nth-child(8n + 5) .tile-art { background: linear-gradient(180deg, #efe8ff, #fff); }
.tile:nth-child(8n + 6) .tile-art { background: linear-gradient(180deg, #ffe7ef, #fff); }
.tile:nth-child(8n + 7) .tile-art { background: linear-gradient(180deg, #ddf3f6, #fff); }
.tile:nth-child(8n + 8) .tile-art { background: linear-gradient(180deg, #ffece2, #fff); }
.tile-art img { transition: transform 0.3s; }
.tile:hover .tile-art img { transform: scale(1.05); }
.tile-art { background: linear-gradient(180deg, var(--mint-soft), #fff); padding: 14px 10px 0; aspect-ratio: 2 / 1.08; display: grid; place-items: end center; }
.tile-art img { width: 100%; height: 100%; object-fit: contain; object-position: bottom; }
.tile-body { padding: 16px 18px 20px; display: flex; gap: 12px; align-items: flex-start; }
.tile-icon { flex-shrink: 0; width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: var(--teal); color: #fff; }
.tile h3 { font-size: 18px; color: var(--teal-deep); }
.tile p { font-size: 14px; color: var(--muted); margin-top: 4px; }

/* more features */
.more-head { text-align: center; margin: 56px auto 22px; max-width: 640px; }
.more-head h3 { font-size: clamp(22px, 2.6vw, 28px); }
.more-head p { color: var(--muted); margin-top: 6px; }
.minis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.mini { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 18px; box-shadow: var(--shadow); }
.mini-icon { flex-shrink: 0; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--mint-soft); color: var(--teal); }
.mini h3 { font-size: 16px; color: var(--teal-deep); }
.mini { transition: transform 0.2s; } .mini:hover { transform: translateY(-3px); }
.mini:nth-child(6n + 2) .mini-icon { background: #e6f0ff; color: #2d5fb3; }
.mini:nth-child(6n + 3) .mini-icon { background: #fff3d4; color: #a06a00; }
.mini:nth-child(6n + 4) .mini-icon { background: #ffe7ef; color: #b03a63; }
.mini:nth-child(6n + 5) .mini-icon { background: #efe8ff; color: #6a46c2; }
.mini:nth-child(6n + 6) .mini-icon { background: #ffece2; color: #c05a2e; }
.mini p { font-size: 14px; color: var(--muted); margin-top: 3px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.step { position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 24px 24px; box-shadow: var(--shadow); }
.step::before { counter-increment: s; content: counter(s); position: absolute; top: -16px; left: 24px; width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffe680, #f4b400 70%); color: #6b4600; font: 700 17px/38px var(--display); width: 38px; height: 38px; text-align: center; border: 2px solid #fff; box-shadow: 0 3px 0 #c98f00, 0 8px 14px -6px rgba(201, 143, 0, 0.7); }
.step h3 { font-size: 19px; margin-top: 6px; }
.step p { color: var(--muted); font-size: 15px; margin-top: 8px; }
.step code { background: var(--mint-soft); color: var(--teal-deep); padding: 1px 7px; border-radius: 7px; font: 600 14px var(--sans); }

/* advisor */
.advisor { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; }
.advisor-art { position: relative; background: linear-gradient(160deg, #e1f3ea, #fbfefc); border-radius: 32px; padding: 24px 24px 0; box-shadow: inset 0 0 0 1px #fff, var(--shadow); }
.advisor-art img { width: 100%; }
.topics { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0; padding: 0; list-style: none; }
.topics li { background: #fff; border: 1px solid var(--mint-line); border-radius: 999px; padding: 6px 14px; font-size: 14px; color: var(--teal-deep); font-weight: 500; }
.chat { display: grid; gap: 10px; max-width: 470px; }
.msg { padding: 11px 15px; border-radius: 18px; font-size: 15px; max-width: 88%; box-shadow: 0 1px 2px rgba(15, 70, 72, 0.06); }
.msg.me { justify-self: end; background: #d8f7e1; border-bottom-right-radius: 6px; }
.msg.mom { background: #fff; border: 1px solid var(--border); border-bottom-left-radius: 6px; }
.safe { margin-top: 18px; font-size: 13px; color: var(--faint); }

/* privacy */
.privacy { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.privacy p.lead { font-size: 17px; margin-top: 14px; }
.privacy-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; list-style: none; padding: 0; margin: 0; }
.privacy-list li { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 18px; box-shadow: var(--shadow); }
.privacy-list .ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--mint-soft); color: var(--teal); margin-bottom: 10px; }
.privacy-list h3 { font-size: 16px; }
.privacy-list p { font-size: 14px; color: var(--muted); margin-top: 4px; }

/* faq */
.faq { display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 4px 20px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; list-style: none; font-weight: 600; padding: 14px 0; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--teal); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding: 0 0 16px; }

/* final CTA */
.cta-band { padding: 0 0 84px; }
.cta-card { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.3fr auto; gap: 32px; align-items: center; background: linear-gradient(135deg, var(--teal), var(--teal-deep)); color: #fff; border-radius: 32px; padding: 44px 48px; box-shadow: var(--shadow-lg); }
.cta-card h2 { font-size: clamp(26px, 3.4vw, 38px); }
.cta-card .c1 { top: 18px; right: 250px; font-size: 34px; } .cta-card .c2 { bottom: 22px; left: 46%; animation-delay: -2s; } .cta-card .c3 { top: 26px; left: 52%; font-size: 24px; animation-delay: -3.4s; }
.cta-card p { color: #d6efe6; margin: 10px 0 24px; font-size: 17px; }
.cta-card .btns { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-card .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.qr-box { background: #fff; color: var(--fg); border-radius: 20px; padding: 14px; text-align: center; width: 190px; }
.qr-box img { width: 100%; }
.qr-box p { color: var(--muted) !important; font-size: 13px !important; margin: 8px 0 0 !important; }

/* footer */
.site-footer { border-top: 1px solid var(--border); padding: 32px 0 40px; background: #fff; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-nav a { color: var(--muted); text-decoration: none; font-size: 14px; }
.footer-nav a:hover { color: var(--teal); }
.fine { width: 100%; color: var(--faint); font-size: 13px; }

/* ---------- sign-in page ---------- */
.auth { min-height: calc(100dvh - 88px); display: grid; place-items: center; padding: 40px 0 64px; background: radial-gradient(900px 500px at 90% 0%, #dff2e9, transparent 60%), radial-gradient(700px 400px at 0% 100%, #e9f6f0, transparent 60%); }
.auth-card { display: grid; grid-template-columns: 1fr 1.1fr; width: min(1000px, 100% - 32px); background: #fff; border-radius: 32px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--border); }
.auth-side { position: relative; background: linear-gradient(165deg, #e3f4ec, #f7fcfa); padding: 40px 36px 0; display: flex; flex-direction: column; }
.auth-side h2 { font-size: 28px; }
.auth-side ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.auth-side li { display: flex; gap: 10px; color: var(--muted); font-size: 15px; }
.auth-side li b { color: var(--fg); font-weight: 600; }
.auth-side .ico { flex-shrink: 0; width: 30px; height: 30px; border-radius: 10px; background: #fff; color: var(--teal); display: grid; place-items: center; box-shadow: var(--shadow); }
.auth-side img { margin-top: auto; width: 100%; max-width: 420px; align-self: center; }
.auth-main { padding: 44px 44px 40px; }
.auth-main h1 { font-size: 30px; }
.auth-main .sub { color: var(--muted); margin-top: 8px; }
.btn-line-xl { width: 100%; min-height: 58px; font-size: 17px; border-radius: 16px; margin-top: 26px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 13px; margin: 26px 0 18px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.qr-row { display: flex; gap: 18px; align-items: center; background: var(--mint-soft); border-radius: 18px; padding: 16px; }
.qr-row img { width: 124px; height: 124px; background: #fff; border-radius: 12px; padding: 6px; flex-shrink: 0; }
.qr-row h3 { font-size: 16px; }
.qr-row p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.how-it-works { margin-top: 24px; display: grid; gap: 10px; counter-reset: a; padding: 0; list-style: none; }
.how-it-works li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.how-it-works li::before { counter-increment: a; content: counter(a); flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--mint-soft); color: var(--teal); font: 600 13px/26px var(--display); text-align: center; }
.consent { margin-top: 24px; font-size: 13px; color: var(--faint); }
.friend { margin-top: 18px; display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.friend a { font-weight: 600; }

/* ---------- hero = full-screen quest game ---------- */
.hero-game { position: relative; overflow: hidden; min-height: 100dvh; margin-top: -100px; padding-top: 132px; display: flex; flex-direction: column;
  background: linear-gradient(180deg, #bfe7ff 0%, #dcf3ff 38%, #eefaf4 72%); }
.sky { position: absolute; inset: 0; pointer-events: none; }
.sun { position: absolute; top: 110px; right: 9%; width: 110px; height: 110px; border-radius: 50%; background: radial-gradient(circle, #fff6c2 0%, #ffe27a 55%, rgba(255, 226, 122, 0) 72%); animation: glow 6s ease-in-out infinite; }
@keyframes glow { 50% { transform: scale(1.08); } }
.cloud { position: absolute; width: 140px; height: 44px; background: #fff; border-radius: 40px; opacity: 0.92; animation: drift 46s linear infinite; }
.cloud::before, .cloud::after { content: ""; position: absolute; background: #fff; border-radius: 50%; }
.cloud::before { width: 64px; height: 64px; left: 20px; top: -32px; }
.cloud::after { width: 46px; height: 46px; left: 72px; top: -20px; }
.c-a { top: 150px; left: -160px; } .c-b { top: 260px; left: -160px; transform: scale(0.7); animation-duration: 60s; animation-delay: -24s; }
.c-c { top: 110px; left: -160px; transform: scale(0.85); animation-duration: 52s; animation-delay: -38s; } .c-d { top: 330px; left: -160px; transform: scale(0.55); animation-duration: 70s; animation-delay: -10s; }
@keyframes drift { to { left: 110%; } }
.hills { position: absolute; left: -10%; right: -10%; bottom: 96px; height: 220px; pointer-events: none; background:
  radial-gradient(42% 100% at 14% 100%, #b5e3cb 60%, transparent 61%), radial-gradient(38% 85% at 55% 100%, #c8ecd9 60%, transparent 61%), radial-gradient(40% 95% at 92% 100%, #bde6d0 60%, transparent 61%); }
.hero-copy { position: relative; z-index: 2; }
.hero-copy h1 { font-size: clamp(36px, 5.2vw, 64px); margin: 18px 0 16px; max-width: 13em; text-shadow: 0 2px 0 rgba(255, 255, 255, 0.6); }
.hero-copy h1 .hl { background: linear-gradient(120deg, #0f6e6c, #1f9a83); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; }
.hero-copy .lead { max-width: 32em; color: #3f5a55; }

/* track: road + stations + runner at the bottom, quest panel on the right */
.quest-track { position: relative; margin-top: auto; height: 300px; z-index: 3; }
.road { position: absolute; left: 0; right: 0; bottom: 0; height: 96px; background: linear-gradient(180deg, #9ed1bb, #78bb9e); box-shadow: inset 0 6px 0 rgba(255, 255, 255, 0.35); }
.road::after { content: ""; position: absolute; left: 0; right: 0; top: 44px; height: 6px; background: repeating-linear-gradient(90deg, #fff 0 30px, transparent 30px 56px); opacity: 0.85; animation: roll 1.2s linear infinite paused; }
.hero-game.moving .road::after { animation-play-state: running; }
@keyframes roll { to { background-position: -56px 0; } }
.lane { position: absolute; left: 50%; bottom: 0; width: min(1240px, 100% - 24px); height: 220px; transform: translateX(-50%); }
.station { position: absolute; left: var(--x); bottom: 96px; transform: translateX(-50%); display: grid; justify-items: center; }
.post { width: 58px; height: 58px; border-radius: 19px; background: #fff; display: grid; place-items: center; font-size: 28px; box-shadow: 0 4px 0 #d6ece2, 0 10px 18px -10px rgba(15, 70, 72, 0.5); position: relative; transition: transform 0.3s, background 0.3s; }
.post::after { content: ""; position: absolute; bottom: -14px; width: 6px; height: 14px; background: #fff; border-radius: 3px; }
.st-label { margin-top: 14px; font-size: 13px; font-weight: 700; color: var(--teal-deep); background: rgba(255, 255, 255, 0.9); padding: 3px 11px; border-radius: 999px; white-space: nowrap; box-shadow: 0 2px 0 rgba(15, 70, 72, 0.1); }
.station.done .post { background: #e9fbe0; transform: scale(1.06); }
.station.done .post::before { content: "✓"; position: absolute; top: -8px; right: -8px; width: 22px; height: 22px; border-radius: 50%; background: var(--line); color: #fff; font: 700 13px/22px var(--sans); text-align: center; box-shadow: 0 2px 0 #049a41; }
.station.here .post { animation: pop 0.5s ease-out; }
@keyframes pop { 40% { transform: scale(1.25) rotate(-6deg); } 100% { transform: scale(1.06); } }
.runner { position: absolute; bottom: 72px; left: 2%; width: 176px; transform: translateX(-50%); transition: left 1.25s cubic-bezier(0.45, 0.05, 0.4, 1); z-index: 3; }
/* Cut-out puppet: every part is a full-size layer, rotated around its own hip / shoulder. */
.rig { position: relative; aspect-ratio: 357 / 460; filter: drop-shadow(0 12px 10px rgba(15, 70, 72, 0.26)); }
.rig img { position: absolute; inset: 0; width: 100%; height: 100%; }
.rig .leg-back { transform-origin: 49.4% 70.3%; }
.rig .leg-front { transform-origin: 58.2% 70.2%; }
.rig .arm-back { transform-origin: 43.2% 60.9%; }
.rig .arm-front { transform-origin: 76.8% 64.0%; }
.runner:not(.running) .rig { animation: breathe 2.6s ease-in-out infinite; }
@keyframes breathe { 50% { transform: translateY(-3px) scale(1.01); } }
.runner.running .rig { animation: stride-bob 0.46s ease-in-out infinite; }
.runner.running .leg-front { animation: leg-front 0.46s ease-in-out infinite; }
.runner.running .leg-back { animation: leg-back 0.46s ease-in-out infinite; }
.runner.running .arm-front { animation: arm-front 0.46s ease-in-out infinite; }
.runner.running .arm-back { animation: arm-back 0.46s ease-in-out infinite; }
@keyframes stride-bob { 0%, 50%, 100% { transform: translateY(0) rotate(4deg); } 25%, 75% { transform: translateY(-12px) rotate(6deg); } }
@keyframes leg-front { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(38deg); } }
@keyframes leg-back { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-40deg); } }
@keyframes arm-front { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(34deg); } }
@keyframes arm-back { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-30deg); } }
.dust { position: absolute; left: 6px; bottom: 4px; width: 30px; height: 15px; border-radius: 50%; background: rgba(255, 255, 255, 0.95); opacity: 0; }
.runner.running .dust { animation: puff 0.46s ease-out infinite; }
.runner.running .dust.d2 { animation-delay: -0.23s; left: 30px; }
@keyframes puff { 0% { opacity: 0.9; transform: translateX(0) scale(0.6); } 100% { opacity: 0; transform: translateX(-46px) scale(1.7); } }

.quest-panel { position: absolute; right: max(16px, calc((100% - 1160px) / 2)); bottom: 218px; width: 360px; display: grid; gap: 10px; }
.quest-badge { justify-self: start; font-family: var(--display); font-weight: 600; font-size: 15px; color: #fff; background: linear-gradient(135deg, #ff9f43, #ff6b6b); padding: 6px 16px; border-radius: 999px; box-shadow: 0 3px 0 #d0503d; }
.hud { display: flex; gap: 8px; align-items: center; }
.hud > span { display: inline-flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, 0.95); border-radius: 999px; padding: 6px 12px; font-weight: 700; font-size: 13px; color: var(--teal-deep); box-shadow: 0 2px 0 rgba(15, 70, 72, 0.12); }
.hud-lv { background: var(--teal) !important; color: #fff !important; box-shadow: 0 3px 0 var(--teal-deep) !important; }
.hud-xp { flex: 1; padding: 10px 10px !important; }
.hud-xp i { display: block; height: 10px; width: 10%; border-radius: 6px; background: linear-gradient(90deg, #ffd76a, #f4b400); transition: width 0.6s; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.12); }
.quest-card { display: flex; gap: 12px; align-items: center; background: #fff; border-radius: 22px; padding: 10px 14px 10px 10px; box-shadow: var(--shadow-lg); outline: 2px solid #ffd76a;
  transform: translateY(8px) scale(0.92); opacity: 0; transition: opacity 0.25s, transform 0.35s cubic-bezier(0.3, 1.6, 0.5, 1); }
.quest-card.show { opacity: 1; transform: none; }
.quest-card img { width: 120px; height: 60px; object-fit: contain; background: var(--mint-soft); border-radius: 14px; flex-shrink: 0; }
.qc-head { font-family: var(--display); font-weight: 600; color: #b07b00; font-size: 15px; }
.qc-text { font-weight: 600; font-size: 14px; color: var(--fg); line-height: 1.35; }
.qc-xp { font-size: 12px; color: var(--teal); font-weight: 700; margin-top: 2px; }
.coin-fx { position: absolute; font-size: 24px; z-index: 5; pointer-events: none; animation: burst 0.9s ease-out forwards; }
@keyframes burst { 0% { opacity: 1; transform: translate(0, 0) scale(0.6); } 100% { opacity: 0; transform: translate(var(--dx), -100px) scale(1.1) rotate(200deg); } }
.levelup { position: absolute; left: 50%; bottom: 150px; transform: translate(-50%, 0) scale(0.4); opacity: 0; z-index: 6; font-family: var(--display); font-weight: 600; font-size: 38px; color: #fff; white-space: nowrap;
  background: linear-gradient(135deg, #ffb400, #ff7a59); padding: 12px 30px; border-radius: 999px; box-shadow: 0 6px 0 #c9631f, 0 20px 40px -12px rgba(201, 99, 31, 0.6); transition: transform 0.45s cubic-bezier(0.3, 1.7, 0.5, 1), opacity 0.3s; }
.levelup.show { opacity: 1; transform: translate(-50%, 0) scale(1); }
@media (max-width: 1100px) {
  .quest-panel { position: relative; right: auto; bottom: auto; margin: 0 auto; width: min(420px, 100% - 32px); }
  .quest-track { height: auto; padding-top: 18px; }
  .lane { position: relative; left: auto; transform: none; margin: 8px auto 0; }
  .road { height: 84px; }
  .station { bottom: 84px; }
}
@media (max-width: 860px) {
  .hero-game { padding-top: 104px; }
  .st-label { display: none; }
  .post { width: 42px; height: 42px; font-size: 20px; border-radius: 14px; }
  .lane { height: 190px; }
  .runner { width: 96px; bottom: 60px; }
  .quest-card img { width: 92px; height: 46px; }
  .hud-fire { display: none !important; }
  .levelup { font-size: 28px; bottom: 110px; }
  .sun { width: 70px; height: 70px; top: 96px; }
  .hills { bottom: 70px; height: 130px; }
}
@media (max-width: 560px) {
  /* keep the running scene on the first screen of a phone */
  .hero-game { padding-top: 96px; }
  .hero-copy h1 { font-size: 30px; margin: 12px 0 10px; }
  .hero-copy .lead { font-size: 15px; }
  .hero-cta { margin: 16px 0 0; }
  .hero-cta .btn-ghost, .hero-copy .ticks { display: none; }
  .quest-track { padding-top: 12px; }
  .quest-badge { font-size: 13px; padding: 5px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .cloud, .sun, .rig, .rig img, .runner.running .rig, .runner.running .rig img, .runner.running .dust, .road::after { animation: none !important; }
  .runner { transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1240px) {
  .nav { display: none; }
  .burger { display: inline-block; }
}
@media (max-width: 1024px) {
  .tiles, .minis { grid-template-columns: repeat(2, 1fr); }
  .hide-md { display: none !important; }
}
@media (max-width: 860px) {
  .hero { padding: 32px 0 48px; }
  .hero-grid, .advisor, .privacy, .cta-card, .auth-card { grid-template-columns: 1fr; }
  .hero-art { min-height: 360px; order: -1; }
  .steps { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .cta-card { padding: 34px 26px; }
  .qr-box { display: none; }
  .auth-side { padding: 28px 24px 0; }
  .auth-side img { max-width: 240px; }
  .auth-main { order: -1; } /* sign-in button first on phones */
  .auth-main { padding: 30px 22px 28px; }
  .desktop-only { display: none !important; }
}
@media (max-width: 560px) {
  .tiles, .minis, .privacy-list { grid-template-columns: 1fr; }
  .hide-xs { display: none !important; }
  .nav-bar { padding-left: 10px; min-height: 66px; gap: 10px; }
  .brand img { width: 42px; height: 42px; }
  .brand-name { font-size: 19px; }
  .cta-card .deco { display: none; }
  .bubble-card { width: 180px; }
  .hero-cta .btn { width: 100%; }
}
