/* สไตล์กลางของคู่มือ v2 (หน้าแรก + งานกลุ่ม) — แนว khunnote · สีตามบอร์ด CI น้องฉับไว */
  /* โทนแบรนด์น้องฉับไว (บอร์ด CI): แดง #E60033 · น้ำตาล #3A1F1A · ชมพู #F79BB3 · ครีม */
  :root{
    color-scheme: light;
    --page:#F7EDE8;        /* พื้นหน้า ครีมอมชมพู */
    --card:#FFFFFF;
    --card-2:#FFF8F5;      /* พื้นการ์ดชั้นใน */
    --ink:#3A1F1A;         /* น้ำตาลแบรนด์ */
    --ink-2:#6E5550;
    --ink-3:#A08A85;
    --red:#E60033;
    --pink:#F79BB3;
    --pink-2:#FCD9E3;      /* ไฮไลต์หัวข้อ */
    --pink-3:#FFF0F4;
    --apron:#F6D98C;       /* สีผ้ากันเปื้อน */
    --line-green:#06C755;
    --bubble:#C6F2C9;      /* บับเบิลข้อความผู้ใช้ */
    --border:#F0E2DC;
    --shadow:0 1px 2px rgba(58,31,26,.05), 0 10px 28px rgba(58,31,26,.07);
  }
  *{box-sizing:border-box;}
  html{background:var(--page);}
  body{
    margin:0; background:var(--page); color:var(--ink);
    font-family:'Prompt', system-ui, sans-serif; font-weight:400;
    -webkit-text-size-adjust:100%;
  }
  .app{max-width:440px; margin:0 auto; padding:16px 16px 48px;}
  h1,h2,h3,p{margin:0;}
  a{color:inherit;}

  /* ---------- top bar ---------- */
  .topbar{display:flex; align-items:center; justify-content:space-between; margin-bottom:6px;}
  .back{
    width:42px; height:42px; border-radius:50%; background:var(--card); box-shadow:var(--shadow);
    display:grid; place-items:center; text-decoration:none; font-size:20px; color:var(--ink);
  }
  .back:focus-visible,.btn:focus-visible,.chip:focus-visible{outline:3px solid var(--red); outline-offset:2px;}
  .switch{font-size:13px; color:var(--ink-2); text-decoration:none; background:var(--card); padding:8px 14px; border-radius:999px; box-shadow:var(--shadow);}

  /* ---------- shared bits ---------- */
  .tag{
    display:inline-block; background:var(--ink); color:#FFF8F5; font-weight:700; font-size:12.5px;
    padding:3px 11px 4px; border-radius:8px; letter-spacing:.01em;
  }
  .mark{background:linear-gradient(transparent 12%, var(--pink-2) 12%, var(--pink-2) 92%, transparent 92%); padding:0 .18em; border-radius:6px; -webkit-box-decoration-break:clone; box-decoration-break:clone;}
  .pill{display:inline-block; background:var(--pink-2); color:var(--ink); font-size:12px; font-weight:500; padding:3px 10px; border-radius:999px;}
  .cmd{
    font-weight:600; background:var(--pink-3); border:1px solid var(--border); color:var(--ink);
    padding:1px 8px; border-radius:8px; white-space:nowrap; font-size:.94em;
  }

  /* ---------- hero ---------- */
  .hero{position:relative; padding:18px 0 8px; min-height:236px;}
  .hero-text{position:relative; z-index:1; padding-right:150px;}
  .hero h1{font-size:clamp(23px, 7vw, 30px); font-weight:800; line-height:1.3; margin-top:12px;}
  .hero h1 > span{white-space:nowrap;}
  .hero .sub{font-size:15px; color:var(--ink-2); margin-top:6px;}
  .hero-art{position:absolute; right:-6px; top:4px; width:178px; height:232px;}
  .hero-art::before{
    content:""; position:absolute; right:0; top:34px; width:176px; height:176px; border-radius:50%;
    background:radial-gradient(circle at 40% 35%, #FFD9E4, var(--pink));
    box-shadow:0 0 0 10px rgba(247,155,179,.18);
  }
  .hero-art img{position:absolute; right:22px; top:0; width:132px; height:auto; animation:bob 3.2s ease-in-out infinite; transform-origin:50% 100%;}
  @keyframes bob{50%{transform:translateY(-4px) rotate(-1.5deg);}}
  .lead{font-size:15px; line-height:1.7; color:var(--ink-2); margin:14px 2px 18px;}

  /* ---------- plain card ---------- */
  .card{background:var(--card); border-radius:24px; box-shadow:var(--shadow); padding:18px 16px 18px; margin-bottom:16px;}
  .card h2{font-size:19px; font-weight:600; margin:10px 0 6px;}
  .card > p{font-size:14.5px; color:var(--ink-2); line-height:1.65;}
  .steps{list-style:none; margin:12px 0 0; padding:0; counter-reset:s;}
  .steps li{display:flex; gap:12px; align-items:flex-start; padding:11px 0; border-top:1px solid var(--border); font-size:14.5px; line-height:1.6; color:var(--ink-2);}
  .steps li:first-child{border-top:0;}
  .steps li::before{
    counter-increment:s; content:counter(s); flex:none; width:28px; height:28px; border-radius:50%;
    background:var(--pink-2); color:var(--red); font-weight:700; font-size:14px; display:grid; place-items:center; margin-top:1px;
  }
  .steps b{color:var(--ink); font-weight:600;}
  .dots{margin:10px 0 0; padding:0; list-style:none;}
  .dots li{position:relative; padding:5px 0 5px 18px; font-size:14.5px; line-height:1.6; color:var(--ink-2);}
  .dots li::before{content:""; position:absolute; left:3px; top:14px; width:7px; height:7px; border-radius:50%; background:var(--pink);}
  .dots b{color:var(--ink); font-weight:600;}

  /* ---------- feature card ---------- */
  .feat{background:var(--card); border-radius:28px; box-shadow:var(--shadow); margin-bottom:18px; overflow:hidden;}
  .feat-head{position:relative; padding:18px 16px 6px; min-height:150px; background:linear-gradient(180deg, var(--pink-3), var(--card) 85%);}
  .feat-head .ttl{position:relative; z-index:1; padding-right:118px;}
  .feat-head h2{font-size:27px; font-weight:800; line-height:1.3; margin-top:10px;}
  .feat-art{position:absolute; right:-14px; top:-10px; width:150px; height:150px; border-radius:50%; background:radial-gradient(circle at 40% 35%, #FFE3EB, var(--pink)); overflow:hidden;}
  .feat-art img{position:absolute; left:50%; bottom:-6px; transform:translateX(-50%); width:118px; height:auto;}
  .feat-art.sticker img{bottom:6px; width:112px;}
  .feat-body{padding:4px 16px 18px;}
  .feat-body > p.desc{font-size:14.5px; line-height:1.65; color:var(--ink-2); margin:6px 0 14px;}

  /* chat demo */
  .demo{background:var(--card-2); border:1px solid var(--border); border-radius:20px; padding:14px 12px;}
  .msg{display:flex; margin:0 0 10px;}
  .msg.me{justify-content:flex-end;}
  .msg .b{max-width:86%; font-size:14px; line-height:1.55; padding:8px 12px; border-radius:16px; white-space:pre-line;}
  .msg.me .b{background:var(--bubble); border-bottom-right-radius:5px; font-weight:500;}
  .msg.bot{gap:8px; align-items:flex-end;}
  .msg.bot .av{flex:none; width:30px; height:30px; border-radius:50%; background:#fff url(img/logo-icon.webp) center/cover no-repeat; border:2px solid #fff;}
  .msg.bot .b{background:#fff; border:1px solid var(--border); border-bottom-left-radius:5px;}
  .qr{display:flex; flex-wrap:wrap; gap:6px; margin:2px 0 10px 38px;}
  .qr span{font-size:12.5px; font-weight:500; background:var(--ink); color:#fff; padding:5px 11px; border-radius:999px;}
  .demo-note{font-size:12px; color:var(--ink-3); text-align:center; margin:2px 0 8px;}

  /* mock LINE flex card */
  .lc{background:#fff; border:1px solid var(--border); border-radius:18px; overflow:hidden; box-shadow:0 4px 14px rgba(58,31,26,.06);}
  .lc-h{background:#FBEFD9; padding:10px 14px;}
  .lc-h b{font-size:15.5px; font-weight:700; display:block;}
  .lc-h small{font-size:12px; color:var(--ink-3);}
  .lc-h.hd{display:flex; justify-content:space-between; align-items:flex-start;}
  .lc-h .num{font-size:26px; font-weight:800; color:#E07A10; line-height:1; text-align:right;}
  .lc-h .num small{display:block; font-size:11px; font-weight:400; color:var(--ink-3);}
  .lc-b{padding:10px 14px 12px;}
  .lc-t{font-size:16px; font-weight:700;}
  .lc-m{font-size:12.5px; color:var(--ink-2); margin-top:2px;}
  .lc-m .warn{color:#C2410C; font-weight:600;}
  .lc-m .soon{color:#D97706; font-weight:600;}
  .lc-row{display:flex; align-items:center; gap:8px; padding:9px 0; border-top:1px solid var(--border);}
  .lc-row:first-child{border-top:0; padding-top:0;}
  .lc-row .t{flex:1; min-width:0;}
  .ibtns{display:flex; gap:5px; flex:none;}
  .ibtns i{font-style:normal; width:26px; height:26px; border-radius:7px; display:grid; place-items:center; font-size:13px; background:var(--card-2); border:1px solid var(--border);}
  .lc-btns{display:flex; gap:8px; margin-top:10px;}
  .lc-btns span{flex:1; text-align:center; font-size:13.5px; font-weight:600; padding:8px 6px; border-radius:10px; background:#EEF0F3; color:var(--ink);}
  .lc-btns span.go{background:var(--line-green); color:#fff;}
  .kv{display:grid; grid-template-columns:auto 1fr; gap:4px 12px; font-size:13px; margin-top:8px;}
  .kv dt{color:var(--ink-3);} .kv dd{margin:0; font-weight:500;}
  .tbl{width:100%; border-collapse:collapse; font-size:13px; margin-top:4px;}
  .tbl th{font-weight:500; color:var(--ink-3); text-align:right; padding:4px 0; font-size:11.5px;}
  .tbl th:first-child,.tbl td:first-child{text-align:left;}
  .tbl td{text-align:right; padding:6px 0; border-top:1px solid var(--border); font-weight:500;}
  .tbl td.ok{color:#059669;} .tbl td.bad{color:#C2410C;}

  /* status legend */
  .legend{display:grid; grid-template-columns:repeat(5,1fr); gap:6px; margin-top:4px;}
  .legend div{background:#fff; border:1px solid var(--border); border-radius:12px; text-align:center; padding:8px 2px 7px; font-size:11.5px; color:var(--ink-2);}
  .legend div b{display:block; font-size:18px; margin-bottom:2px;}

  /* tips + try */
  .tips{margin-top:14px;}
  .try{display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin-top:14px; padding-top:12px; border-top:1px dashed var(--border);}
  .try > b{font-size:12.5px; font-weight:700; margin-right:2px;}
  .chip{font:inherit; font-size:12.5px; background:var(--pink-3); border:1px solid var(--border); color:var(--ink); padding:4px 10px; border-radius:999px; cursor:pointer;}
  .chip.copied{background:var(--line-green); color:#fff; border-color:var(--line-green);}
  .pro{font-size:11px; font-weight:700; color:#9A6A00; background:#FFF2C6; padding:1px 7px; border-radius:999px; margin-left:2px; white-space:nowrap;}

  /* cheat sheet */
  .cheat{list-style:none; margin:10px 0 0; padding:0;}
  .cheat li{display:flex; justify-content:space-between; gap:10px; align-items:center; padding:9px 0; border-top:1px solid var(--border); font-size:13.5px; color:var(--ink-2);}
  .cheat li:first-child{border-top:0;}
  .cheat .cmd{white-space:normal;}

  /* footer CTA */
  .cta{text-align:center; background:var(--card); border-radius:28px; box-shadow:var(--shadow); padding:22px 18px 22px; margin-top:6px;}
  .cta img{width:110px; height:auto;}
  .cta h2{font-size:21px; font-weight:800; margin:6px 0 4px;}
  .cta p{font-size:14px; color:var(--ink-2); line-height:1.6;}
  .btn{display:inline-flex; align-items:center; justify-content:center; gap:8px; margin-top:14px; background:var(--line-green); color:#fff; font-weight:700; font-size:16px; padding:12px 26px; border-radius:999px; text-decoration:none; box-shadow:0 6px 16px rgba(6,199,85,.28);}
  .links{display:flex; flex-wrap:wrap; gap:8px; justify-content:center; margin-top:14px;}
  .links a{font-size:13px; color:var(--ink-2); background:var(--pink-3); border:1px solid var(--border); padding:6px 12px; border-radius:999px; text-decoration:none;}
  .foot{font-size:12px; color:var(--ink-3); text-align:center; margin-top:18px; line-height:1.6;}

  @media (prefers-reduced-motion: reduce){ .hero-art img{animation:none;} }
  @media (max-width:360px){
    .hero-text{padding-right:128px;} .hero-art{transform:scale(.85); transform-origin:top right;}
    .feat-head h2{font-size:24px;} .feat-head .ttl{padding-right:100px;} .feat-art{width:128px; height:128px;} .feat-art img{width:100px;}
  }

  /* ---------- หน้าแรก v2 ---------- */
  .brand{font-weight:700; font-size:15px; display:flex; align-items:center; gap:8px; text-decoration:none;}
  .brand i{width:34px; height:34px; border-radius:50%; background:#fff url(img/logo-icon.webp) center/cover no-repeat; border:2px solid #fff; box-shadow:var(--shadow);}
  .startrow{display:flex; gap:14px; align-items:center; margin-top:14px; padding-top:14px; border-top:1px solid var(--border);}
  .startrow img{width:104px; height:104px; border-radius:14px; border:1px solid var(--border); background:#fff; padding:4px; flex:none;}
  .startrow .btn{margin-top:8px; font-size:15px; padding:10px 20px;}
  .startrow p{font-size:13.5px; color:var(--ink-2); line-height:1.55;}
  .navchips{display:flex; flex-wrap:wrap; gap:8px; margin:4px 0 18px;}
  .navchips a{font-size:13.5px; font-weight:500; text-decoration:none; background:var(--card); box-shadow:var(--shadow); padding:8px 14px; border-radius:999px;}
  .navchips a:focus-visible,.biglink:focus-visible{outline:3px solid var(--red); outline-offset:2px;}
  .sec-label{font-size:13px; font-weight:600; color:var(--ink-3); margin:22px 4px 10px; letter-spacing:.02em;}
  .biglink{display:flex; align-items:center; gap:12px; text-decoration:none; background:var(--pink-3); border:1px solid var(--border); border-radius:16px; padding:12px 14px; margin-top:10px;}
  .biglink b{display:block; font-size:15px; font-weight:600;}
  .biglink small{font-size:12.5px; color:var(--ink-2);}
  .biglink .ic{font-size:24px; flex:none;}
  .biglink .go{margin-left:auto; font-size:20px; color:var(--red); flex:none;}
  .filemsg{display:inline-flex; align-items:center; gap:8px;}
  .filemsg i{font-style:normal; font-size:20px;}
  .kan{display:grid; grid-template-columns:repeat(3,1fr); gap:6px;}
  .kan > div{background:#fff; border:1px solid var(--border); border-radius:12px; padding:8px 6px;}
  .kan h3{font-size:11.5px; font-weight:600; color:var(--ink-3); margin-bottom:6px; text-align:center;}
  .kan span{display:block; font-size:12px; background:var(--pink-3); border-radius:8px; padding:6px 7px; margin-top:5px; line-height:1.35;}
  .kan span.done{background:#E3F6EA; text-decoration:line-through; color:var(--ink-2);}
  .sum-h{font-size:12px; font-weight:700; margin:8px 0 2px;}
  .sum-h.over{color:#C2410C;} .sum-h.today{color:#D97706;} .sum-h.soon{color:var(--ink-3);}
  html{scroll-behavior:smooth;}
  .feat, .card{scroll-margin-top:12px;}
  @media (prefers-reduced-motion: reduce){ html{scroll-behavior:auto;} }
