/* ลุงช่าง — same palette as the LINE cards (apps-script/Ui.gs) */
:root {
  --ink: #14213D; --text: #3A4456; --muted: #667085; --faint: #6E7787; --line: #E8ECF1;
  --navy: #1E3A6E; --sky: #EAF3FB; --paper: #F7F9FC; --white: #fff;
  --amber: #B45309; --amber-t: #FEF3E2; --blue: #1D4ED8; --blue-t: #E8EFFD; --green: #15803D; --green-t: #E7F6EC;
  --r: 18px; --shadow: 0 1px 2px rgba(20,33,61,.04), 0 12px 32px -12px rgba(20,33,61,.14);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--text); font: 400 16px/1.65 "IBM Plex Sans Thai", system-ui, sans-serif; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.wrap { width: min(1080px, 100% - 40px); margin-inline: auto; }

/* nav */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.86); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-color: var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--navy); font-size: 17px; }
.brand img { width: 30px; height: 30px; }
.nav .links { display: flex; gap: 24px; margin-left: auto; font-size: 15px; color: var(--text); }
.nav .links a:hover { color: var(--ink); }
@media (max-width: 640px) { .nav .links { display: none; } .nav .btn { margin-left: auto; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 12px;
  font-weight: 600; font-size: 15px; border: 1px solid var(--line); background: var(--white); color: var(--ink); transition: transform .15s, box-shadow .15s, background .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn.primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.primary:hover { background: #17305c; }
.btn.sm { height: 38px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
.btn .dot { width: 8px; height: 8px; border-radius: 50%; background: #06C755; }

/* type */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--navy); background: var(--sky); padding: 5px 12px; border-radius: 99px; }
h1, h2, h3 { color: var(--ink); margin: 0; letter-spacing: -.01em; }
h1 { font-size: clamp(36px, 5.4vw, 60px); line-height: 1.18; font-weight: 700; }
h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.25; font-weight: 700; }
h3 { font-size: 19px; line-height: 1.4; font-weight: 600; }
.lead { font-size: 19px; color: var(--text); max-width: 34em; }
.muted { color: var(--muted); }
section { padding: 96px 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head p { margin: 12px 0 0; font-size: 17px; }

/* hero */
.hero { padding: 72px 0 88px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { margin: 20px 0 20px; }
.hero h1 em { font-style: normal; color: var(--navy); }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.hero .note { margin-top: 14px; font-size: 14px; color: var(--muted); }
@media (max-width: 880px) { .hero .wrap { grid-template-columns: 1fr; } .hero { padding-top: 40px; } }

/* chat mock */
.stage { position: relative; background: var(--sky); border-radius: 28px; padding: 36px 32px 32px; min-height: 520px; overflow: hidden; }
.stage .mascot { position: absolute; right: -18px; bottom: -14px; width: 150px; opacity: .98; }
.chat { display: flex; flex-direction: column; gap: 12px; max-width: 330px; position: relative; z-index: 1; }
.bubble-me { align-self: flex-end; background: #04884A; color: #fff; padding: 9px 14px; border-radius: 18px 18px 4px 18px; font-size: 15px; }
.time { align-self: flex-end; font-size: 11px; color: var(--muted); margin-top: -6px; }

/* flex-card replica */
.card { background: var(--white); border-radius: var(--r); box-shadow: var(--shadow); padding: 18px 18px 16px; width: 100%; max-width: 300px; }
.card .top { display: flex; align-items: center; justify-content: space-between; }
.card .who { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--navy); }
.card .who img { width: 22px; height: 22px; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 99px; white-space: nowrap; line-height: 1.6; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.OPEN { color: var(--amber); background: var(--amber-t); }
.pill.IN_PROGRESS { color: var(--blue); background: var(--blue-t); }
.pill.FIXED { color: var(--green); background: var(--green-t); }
.card .kicker { margin-top: 14px; font-size: 12px; color: var(--muted); }
.card .room { font-size: 28px; font-weight: 700; color: var(--ink); line-height: 1.25; }
.card .desc { font-size: 15px; color: var(--text); margin-top: 2px; }
.chip { display: inline-block; font-size: 11px; font-weight: 700; color: var(--navy); background: var(--sky); padding: 2px 8px; border-radius: 6px; }
.card .meta { display: flex; gap: 8px; align-items: center; margin-top: 10px; font-size: 11px; color: var(--muted); }
.track { margin-top: 18px; }
.track .rail { display: flex; align-items: center; gap: 4px; }
.track .rail i { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--line); background: #fff; flex: none; }
.track .rail b { height: 2px; flex: 1; background: var(--line); }
.track .rail .on { border-color: var(--navy); background: var(--navy); }
.track .labels { display: flex; justify-content: space-between; margin-top: 6px; font-size: 11px; color: var(--faint); }
.track .labels .now { color: var(--ink); font-weight: 700; }
.track .labels .past { color: var(--muted); }
.card .acts { display: flex; gap: 8px; margin-top: 16px; }
.card .acts span { flex: 1; text-align: center; padding: 9px 0; border-radius: 10px; font-size: 14px; font-weight: 700; border: 1px solid var(--line); color: var(--ink); }
.card .acts .p { background: var(--navy); border-color: var(--navy); color: #fff; }

/* stats strip */
.stats { border-block: 1px solid var(--line); padding: 36px 0; }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat b { display: block; font-size: 36px; line-height: 1.2; color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.stat span { font-size: 14px; color: var(--muted); }
@media (max-width: 720px) { .stats .wrap { grid-template-columns: repeat(2, 1fr); } }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: var(--paper); border-radius: 22px; padding: 28px; position: relative; overflow: hidden; min-height: 300px; display: flex; flex-direction: column; }
.step .n { font-size: 13px; font-weight: 700; color: var(--navy); }
.step h3 { margin-top: 8px; }
.step p { margin: 8px 0 0; font-size: 15px; max-width: 18em; }
.step img { width: 112px; margin-top: auto; align-self: flex-end; margin-bottom: -28px; }
@media (max-width: 880px) { .steps { grid-template-columns: 1fr; } }

/* split feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; }
.list li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; }
.list li::before { content: ""; width: 22px; height: 22px; margin-top: 3px; border-radius: 7px; background: var(--sky) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E3A6E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/14px no-repeat; }
.list b { color: var(--ink); display: block; }
.panel { background: var(--paper); border-radius: 28px; padding: 40px; display: flex; justify-content: center; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }

/* closing */
.closing { background: var(--navy); color: #cfdbef; border-radius: 32px; padding: 64px 56px; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; overflow: hidden; position: relative; }
.closing h2 { color: #fff; }
.closing p { margin: 12px 0 0; }
.closing .btn { border-color: #fff; }
.closing .btn:hover { box-shadow: none; }
.closing .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.closing .btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.closing img { width: 190px; margin: -24px -8px -72px 0; }
@media (max-width: 720px) { .closing { grid-template-columns: 1fr; padding: 44px 28px; } .closing img { display: none; } }

footer { padding: 40px 0 56px; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .btn { transition: none; } }
@media (max-width: 880px) { .stage { padding-bottom: 120px; min-height: 0; } .stage .mascot { width: 116px; } }
