/* Drop & Done — เว็บไซต์ (สไตล์เดียวกับแอป: dd.css / dd2.css)
   layout: โต๊ะมืด · เทปส้มคาดหัว · แฟ้ม manila มีแท็บ · กระดาษ/ใบเสร็จเอียง · สติกเกอร์ blob ส้ม · บัตร Editor ห้อยสาย */

@font-face { font-family: 'Kanit'; font-weight: 400; font-display: swap; src: url(/fonts/Kanit-Regular.woff2) format('woff2'); }
@font-face { font-family: 'Kanit'; font-weight: 500; font-display: swap; src: url(/fonts/Kanit-Medium.woff2) format('woff2'); }
@font-face { font-family: 'Kanit'; font-weight: 600; font-display: swap; src: url(/fonts/Kanit-SemiBold.woff2) format('woff2'); }
@font-face { font-family: 'Kanit'; font-weight: 700; font-display: swap; src: url(/fonts/Kanit-Bold.woff2) format('woff2'); }
@font-face { font-family: 'Kanit'; font-weight: 800; font-display: swap; src: url(/fonts/Kanit-ExtraBold.woff2) format('woff2'); }
@font-face { font-family: 'Google Sans'; font-weight: 400; font-display: swap; src: url(/fonts/GoogleSans-Regular.woff2) format('woff2'); }
@font-face { font-family: 'Google Sans'; font-weight: 600 700; font-display: swap; src: url(/fonts/GoogleSans-SemiBold.woff2) format('woff2'); }
@font-face { font-family: 'Space Mono'; font-weight: 400; font-display: swap; src: url(/fonts/SpaceMono-Regular.woff2) format('woff2'); }
@font-face { font-family: 'Space Mono'; font-weight: 700; font-display: swap; src: url(/fonts/SpaceMono-Bold.woff2) format('woff2'); }
@font-face { font-family: 'Bagel Fat One'; font-display: swap; src: url(/fonts/BagelFatOne-Regular.woff2) format('woff2'); }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-display: swap; src: url(/fonts/InstrumentSerif-Italic.woff2) format('woff2'); }
@font-face { font-family: 'Instrument Serif'; font-style: normal; font-display: swap; src: url(/fonts/InstrumentSerif-Regular.woff2) format('woff2'); }
@font-face { font-family: 'Rubik Dirt'; font-display: swap; src: url(/fonts/RubikDirt-Regular.woff2) format('woff2'); }
@font-face { font-family: 'Rubik Mono One'; font-display: swap; src: url(/fonts/RubikMonoOne-Regular.woff2) format('woff2'); }
@font-face { font-family: 'Mali'; font-weight: 600; font-display: swap; src: url(/fonts/Mali-SemiBold.woff2) format('woff2'); }
@font-face { font-family: 'Mali'; font-weight: 700; font-display: swap; src: url(/fonts/Mali-Bold.woff2) format('woff2'); }

:root {
  color-scheme: dark;
  /* สีเดียวกับแอป */
  --bg: #262624; --bg2: #1f1f1d; --paper: #EEEAE3; --paper2: #F4F1EC; --ink: #1A1A18; --acc: #E8531F; --acc2: #B93C12;
  --manila: #E2C6A0; --manila2: #D2B387; --muted: #55534E; --line: #CFC9BE; --peach: #F6C9B4; --yellow: #FFD23F; --grey: #7C7B76;
  --on-bg: #EEEAE3; --on-bg-muted: #A9A59C;
  --ui: 'Google Sans', 'Kanit', system-ui, sans-serif;
  --th: 'Kanit', 'Google Sans', system-ui, sans-serif;
  --mono: 'Space Mono', 'Kanit', ui-monospace, monospace;
  --hand: 'Mali', 'Kanit', cursive;
  --gl: max(16px, env(safe-area-inset-left, 0px));
  --gr: max(16px, env(safe-area-inset-right, 0px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--on-bg); font: 400 16px/1.6 var(--th); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
p, h1, h2, h3, h4 { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--acc); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

.wrap { width: 100%; max-width: 1220px; margin: 0 auto; padding-left: var(--gl); padding-right: var(--gr); }
.mono { font-family: var(--mono); }
.lab { font: 700 11px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .05em; }
.acc { color: var(--acc); }
.f-dirt { font-family: 'Rubik Dirt', 'Kanit'; font-weight: 400; }
.f-serif { font-family: 'Instrument Serif', 'Kanit'; font-style: italic; font-weight: 400; }
.f-bagel { font-family: 'Bagel Fat One', 'Kanit'; font-weight: 400; }
.f-rmono { font-family: 'Rubik Mono One', 'Kanit'; font-weight: 400; }

/* ── ชื่อหัวข้อแบบแอป: ตัวอักษรผสมฟอนต์ทีละตัว ── */
.mix { display: inline-flex; align-items: baseline; flex-wrap: wrap; line-height: .95; color: var(--paper); font: 400 clamp(54px, 9vw, 104px)/.95 'Bagel Fat One', 'Kanit'; letter-spacing: -.01em; }
.mix .ltr { display: inline-block; }
.mix .star { font: 700 .45em/1 var(--mono); color: var(--acc); align-self: flex-start; margin-left: 4px; }
.mix.ink { color: var(--ink); }
.mix.sm { font-size: clamp(44px, 6.4vw, 78px); }
.sub-th { font: 700 clamp(20px, 2.6vw, 28px)/1.25 var(--th); color: var(--on-bg); margin-left: 8px; }
.ink .sub-th, .sub-th.ink { color: var(--ink); }
.head-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px 18px; margin-bottom: 26px; }
.head-row p { flex: 1 1 280px; color: var(--on-bg-muted); max-width: 34em; padding-bottom: 10px; }

/* ── เทปส้มคาดหัว (วิ่ง) ── */
.tapebar { position: relative; z-index: 3; margin: 18px 0 0; }
.tapebar .t { background: var(--acc); color: var(--ink); height: 36px; display: flex; align-items: center; overflow: hidden; transform: rotate(-.6deg); }
.tapebar .run { display: flex; gap: 56px; padding-left: 24px; white-space: nowrap; font: 700 13px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; animation: run 38s linear infinite; }
.tapebar .run span { display: inline-flex; gap: 56px; }
.tapebar .sh { height: 12px; background: var(--grey); opacity: .5; margin: 0 6% 0 4%; transform: rotate(-.6deg); }
@keyframes run { to { transform: translateX(-50%); } }

/* ── เมนู ── */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 40; background: var(--bg); }
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(8px); }
.nav .wrap { display: flex; align-items: center; gap: 16px; padding-block: 10px; }
.nav .logo img { height: 44px; width: auto; }
.nav .links { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav .links a.l { text-decoration: none; font: 600 14px/1 var(--th); padding: 10px 12px; border-radius: 999px; color: var(--on-bg-muted); }
.nav .links a.l:hover { color: var(--paper); background: rgba(255,255,255,.06); }
@media (max-width: 880px) { .nav .links a.l { display: none; } }

/* ── ปุ่ม (แบบแอป) ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border: 0; border-radius: 999px;
  background: var(--ink); color: var(--paper); font: 700 15px/1 var(--th); text-decoration: none; transition: transform .15s, background .15s; white-space: nowrap; }
.btn:hover { background: #000; transform: translateY(-1px); }
.btn.acc { background: var(--acc); color: var(--ink); }
.btn.acc:hover { background: #F06A2A; }
.btn.line { background: transparent; border: 2px solid var(--ink); color: var(--ink); }
.btn.line:hover { background: rgba(26,26,24,.06); }
.btn.line-l { background: transparent; border: 2px solid var(--paper); color: var(--paper); }
.btn.line-l:hover { background: rgba(255,255,255,.07); }
.btn.sm { height: 36px; padding: 0 16px; font-size: 13px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .45; cursor: default; transform: none; }

/* ปุ่มดาวน์โหลดใหญ่ (แบบปุ่ม "บันทึกวิดีโอ .MP4" ในหน้า Done) */
.dl { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; min-height: 80px; padding: 14px 22px; border-radius: 14px;
  text-decoration: none; background: var(--acc); color: var(--ink); box-shadow: 0 5px 0 var(--acc2); transition: transform .15s, box-shadow .15s; border: 0; width: 100%; text-align: left; }
.dl:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--acc2); }
.dl:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--acc2); }
.dl svg { width: 34px; height: 34px; }
.dl b { display: block; font: 800 22px/1.1 var(--th); }
.dl small { display: block; font: 700 11px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .04em; opacity: .75; margin-top: 3px; }
.dl .ext { font: 700 13px/1 var(--mono); }
.dl.win { background: var(--bg); color: var(--paper); border: 3px solid var(--paper); box-shadow: none; }
.dl.win:hover { transform: translateY(-2px); background: #2f2f2c; }
.dl.soon { position: relative; }
.dl.soon .ext { background: var(--yellow); color: var(--ink); padding: 6px 8px; border-radius: 6px; transform: rotate(-4deg); }

/* ── วัสดุ ── */
.paper { background: var(--paper); color: var(--ink); box-shadow: 0 10px 30px rgba(0,0,0,.28); }
.folder { position: relative; background: var(--manila); color: var(--ink); border-radius: 18px; padding: clamp(22px, 4vw, 48px); margin-top: 34px; box-shadow: 0 18px 40px rgba(0,0,0,.3); }
.folder > .tab { position: absolute; left: 0; top: -34px; height: 40px; padding: 10px 22px 0; background: var(--manila); border-radius: 16px 16px 0 0; font: 700 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--ink); }
.folder > .tab.r { left: auto; right: 0; }
.blob { position: absolute; display: grid; place-items: center; text-align: center; background: var(--acc); border: 6px solid var(--paper2); color: var(--ink);
  border-radius: 48% 52% 44% 56% / 55% 45% 55% 45%; box-shadow: 0 6px 14px rgba(0,0,0,.3); font: 400 clamp(22px, 2.6vw, 34px)/.95 'Bagel Fat One', 'Kanit'; z-index: 4; transition: transform .25s; }
.blob small { display: block; font: 600 12px/1.2 var(--th); margin-top: 2px; }
.blob:hover { transform: rotate(0) scale(1.06) !important; }
.pill-o { display: inline-flex; align-items: center; justify-content: center; border: 3px solid var(--ink); border-radius: 999px; font: 400 clamp(16px, 2vw, 22px)/1 'Rubik Mono One', 'Kanit'; padding: 10px 26px; letter-spacing: .04em; }
.strip { position: absolute; background: var(--acc); opacity: .92; height: 34px; z-index: 3; }
.tape-sm { display: inline-block; background: var(--acc); color: var(--ink); font: 700 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .05em; padding: 7px 10px; transform: rotate(-2deg); }
.tape-y { position: absolute; width: 90px; height: 24px; background: rgba(255,255,255,.55); top: -12px; left: 50%; margin-left: -45px; transform: rotate(-3deg); }
.note { position: relative; background: var(--yellow); color: var(--ink); padding: 18px 18px 16px; font: 600 15px/1.45 var(--hand); box-shadow: 0 10px 18px rgba(0,0,0,.28); }
.note.o { background: var(--acc); }
.note.p { background: var(--paper2); }
.spark { position: absolute; color: var(--paper); font: 400 30px/1 var(--mono); pointer-events: none; }

/* ── HERO ── */
.hero { position: relative; padding-block: 18px 30px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 38px; align-items: center; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }
.hero .folder { margin-top: 44px; padding: clamp(18px, 3vw, 36px); }
.hero .folder .tab { width: min(190px, 40%); }
.hero .idcard { position: absolute; left: 24px; top: 26px; display: grid; gap: 6px; }
.hero .idcard .pill-o { font-size: 13px; padding: 5px 10px; }
.hero .idcard .mono { font-size: 11px; line-height: 1.4; }
.sheet { position: relative; background: var(--paper); color: var(--ink); padding: clamp(22px, 3.6vw, 40px) clamp(18px, 3.4vw, 40px) clamp(22px, 3vw, 34px);
  margin-left: clamp(0px, 13%, 150px); box-shadow: 0 14px 30px rgba(0,0,0,.25); }
@media (max-width: 640px) { .hero .idcard { display: none; } .sheet { margin-left: 0; } }
.sheet .logo-big { width: min(430px, 88%); margin: 0 auto; filter: invert(1) brightness(.12) sepia(.1); }
.sheet .logo-big.keep { filter: none; }
.sheet .strip { left: -9%; top: 16%; width: 30%; transform: rotate(-3deg); }
.ae { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; justify-content: center; margin: 18px 0 18px; }
.ae .mono { font-size: 12px; line-height: 1.45; }
.drop { position: relative; border: 2.5px dashed var(--ink); border-radius: 18px; padding: 22px clamp(14px, 3vw, 28px) 20px; text-align: center; transition: background .2s, border-color .2s; }
.drop .num { position: absolute; left: 10px; top: 6px; font: 700 22px/1 var(--mono); color: var(--acc); }
.drop h1 { font: 700 clamp(22px, 3vw, 30px)/1.25 var(--th); margin: 6px 0 4px; }
.drop h1 em { font-style: normal; color: var(--acc); }
.drop .hint { font: 400 12px/1.5 var(--mono); color: var(--muted); }
.drop .dls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
@media (max-width: 520px) { .drop .dls { grid-template-columns: 1fr; } }
.drop .dl { min-height: 64px; padding: 10px 16px; gap: 10px; }
.drop .dl b { font-size: 17px; }
.drop .dl svg { width: 26px; height: 26px; }
.drop.over { background: rgba(232, 83, 31, .08); border-color: var(--acc); }
.drop .ping { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(238,234,227,.94); border-radius: 16px; font: 700 18px/1.4 var(--th); padding: 16px; }

.phone-wrap { position: relative; justify-self: center; width: min(330px, 86vw); padding: 50px 26px 30px; background: var(--manila); border-radius: 14px; transform: rotate(2.4deg); box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.phone-wrap .tab { position: absolute; top: -26px; right: 30px; height: 32px; padding: 8px 16px 0; background: var(--manila); border-radius: 12px 12px 0 0; font: 700 11px/1 var(--mono); color: var(--ink); }
.phone { position: relative; border: 9px solid #111; border-radius: 34px; overflow: hidden; background: #000; aspect-ratio: 9 / 16; max-width: 100%; box-shadow: 0 0 0 2px #3a3a38; }
.phone video { width: 100%; height: 100%; object-fit: cover; }
.phone .lbl { position: absolute; top: 12px; left: 16px; font: 400 11px/1 var(--mono); color: #fff; mix-blend-mode: difference; z-index: 2; }
.phone .snd { position: absolute; right: 10px; bottom: 10px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--acc); color: var(--ink); display: grid; place-items: center; }
.binder { position: absolute; left: 50%; top: 18px; width: 64px; height: 40px; margin-left: -32px; z-index: 3; }
.binder::before { content: ""; position: absolute; left: 8px; right: 8px; top: 0; height: 28px; border: 4px solid #A3A29D; border-bottom: 0; border-radius: 14px 14px 0 0; }
.binder::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 14px; background: #2a2a28; border-radius: 3px; }
.phone-wrap .blob { width: 112px; height: 112px; right: -46px; top: 38%; transform: rotate(-12deg); padding: 10px; }
.phone-wrap .blob img { width: 70px; }
.phone-cap { text-align: center; margin-top: 12px; font: 700 11px/1.4 var(--mono); color: var(--ink); text-transform: uppercase; }

/* ── stats tape (label-maker แบบหน้า Done) ── */
.labels { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 28px; }
.lm { background: #111; color: var(--paper); border: 1px solid #3c3c39; padding: 10px 14px; font: 400 13px/1 var(--mono); text-transform: uppercase; display: inline-flex; gap: 10px; align-items: center; }
.lm b { color: var(--yellow); font-weight: 700; font-size: 16px; }
.lm:nth-child(odd) { transform: rotate(-1deg); } .lm:nth-child(even) { transform: rotate(.8deg); }

/* ── SECTION shells ── */
.sec { position: relative; padding-block: 64px 20px; }
.sec .kicker { display: inline-block; margin-bottom: 10px; }

/* ── ปัญหา: To-do ตัดเอง vs ใบเสร็จ ── */
.vs { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 34px; align-items: start; }
@media (max-width: 860px) { .vs { grid-template-columns: 1fr; } }
.todo { transform: rotate(-2deg); padding: 26px 24px 22px; }
.todo h3 { font: 700 22px/1.2 var(--hand); margin-bottom: 12px; }
.todo ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.todo li { position: relative; padding-left: 26px; font: 600 15px/1.4 var(--hand); }
.todo li::before { content: ""; position: absolute; left: 0; top: 3px; width: 15px; height: 15px; border: 2px solid var(--ink); border-radius: 3px; }
.todo li s { text-decoration-color: var(--acc); text-decoration-thickness: 3px; }
.todo .sig { margin-top: 14px; font: 700 13px/1.3 var(--mono); }
.receipt { position: relative; background: #FAF8F4; color: var(--ink); padding: 26px clamp(18px, 3vw, 30px) 34px; box-shadow: 0 14px 30px rgba(0,0,0,.3); transform: rotate(1deg); }
.receipt::after { content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 10px; background: radial-gradient(circle 6px at 8px 0, #FAF8F4 98%, transparent) 0 0 / 16px 10px repeat-x; }
.receipt .rh { text-align: center; }
.receipt .rh b { font: 400 18px/1 'Rubik Mono One', 'Kanit'; letter-spacing: .06em; }
.receipt .rh span { display: block; font: 400 11px/1.6 var(--mono); color: var(--muted); }
.receipt hr { border: 0; border-top: 2px dashed #3a3a38; margin: 14px 0; opacity: .7; }
.receipt .ln { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 5px 0; align-items: baseline; }
.receipt .ln span:first-child { font: 500 15px/1.35 var(--th); }
.receipt .ln small { display: block; font: 400 11px/1.4 var(--mono); color: var(--muted); }
.receipt .ln .v { font: 700 12px/1 var(--mono); color: var(--acc); }
.receipt .tot { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font: 700 13px/1.3 var(--mono); text-transform: uppercase; }
.receipt .tot b { font: 400 34px/1 'Bagel Fat One', 'Kanit'; }
.receipt .tot b i { font-style: normal; color: var(--acc); font-size: .6em; }
.receipt .foot { text-align: center; margin-top: 12px; font: 400 11px/1.5 var(--mono); color: var(--muted); }
.receipt .blob { width: 110px; height: 110px; right: -24px; bottom: -34px; transform: rotate(-10deg); }

/* ── FEATURES: แท็บแฟ้มแบบหน้า Settings ── */
.ftabs { display: flex; gap: 4px; overflow-x: auto; padding: 8px 4px 0; margin: 0 0 -1px; scrollbar-width: none; }
.ftabs::-webkit-scrollbar { display: none; }
.ftabs button { flex: none; border: 0; border-radius: 14px 14px 0 0; background: var(--manila2); color: var(--ink); padding: 12px 18px 10px; font: 600 15px/1 var(--th); display: inline-flex; gap: 8px; align-items: baseline; transform: translateY(6px); transition: transform .15s, background .15s; }
.ftabs button small { font: 700 10px/1 var(--mono); opacity: .7; }
.ftabs button[aria-selected="true"] { background: var(--manila); transform: none; font-weight: 700; }
.ftabs button:hover { transform: translateY(2px); }
.fbody { background: var(--manila); border-radius: 0 18px 18px 18px; padding: clamp(14px, 3vw, 34px); display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 28px; color: var(--ink); box-shadow: 0 18px 40px rgba(0,0,0,.3); }
@media (max-width: 900px) { .fbody { grid-template-columns: 1fr; } }
.fsheet { background: var(--paper); padding: clamp(18px, 3vw, 32px); box-shadow: 0 10px 24px rgba(0,0,0,.18); min-width: 0; }
.fsheet .fh { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; border-bottom: 2px solid var(--ink); padding-bottom: 12px; margin-bottom: 8px; }
.fsheet .fh .l { font: 700 18px/1 var(--mono); color: var(--acc); }
.fsheet .fh h3 { font: 800 clamp(24px, 3vw, 32px)/1.1 var(--th); }
.fsheet .fh span { font: 400 13px/1.4 var(--th); color: var(--muted); }
.fsheet .fh .pg { margin-left: auto; font: 400 11px/1 var(--mono); color: var(--muted); }
.flist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 30px; }
@media (max-width: 640px) { .flist { grid-template-columns: 1fr; } }
.fi { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.fi::before { content: ""; width: 20px; height: 20px; margin-top: 2px; border-radius: 6px; background: var(--acc) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3L15 6.5' fill='none' stroke='%231A1A18' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
.fi b { display: block; font: 600 16px/1.35 var(--th); }
.fi small { display: block; font: 400 12.5px/1.5 var(--th); color: var(--muted); margin-top: 2px; }
.fi .new { font: 700 9px/1 var(--mono); background: var(--ink); color: var(--yellow); padding: 3px 5px; border-radius: 4px; vertical-align: 2px; margin-left: 6px; }
.fside { display: grid; gap: 22px; align-content: start; }
.fside .note { transform: rotate(2deg); }
.fside .note.o { transform: rotate(-2deg); }
.fside .note b { display: block; font: 700 12px/1 var(--mono); text-transform: uppercase; margin-bottom: 6px; }
.fpanel[hidden] { display: none !important; }

/* แถบชิปฟีเจอร์เล็กๆ (วิ่งสองทาง) */
.chips { margin-top: 40px; display: grid; gap: 10px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.chips .row { display: flex; gap: 10px; width: max-content; animation: run 60s linear infinite; }
.chips .row.rev { animation-direction: reverse; animation-duration: 70s; }
.chips .row:hover { animation-play-state: paused; }
.chip { flex: none; border: 2px solid var(--paper); border-radius: 999px; padding: 8px 16px; font: 500 14px/1 var(--th); color: var(--paper); white-space: nowrap; }
.chip:nth-child(4n+1) { background: var(--acc); border-color: var(--acc); color: var(--ink); }
.chip:nth-child(6n+3) { background: var(--paper); color: var(--ink); }
.chip.m { font: 700 12px/1 var(--mono); text-transform: uppercase; }

/* ── EDITORS: บัตรห้อยสายบนราว ── */
.rail { position: relative; margin-top: 12px; padding-top: 14px; }
.rail::before { content: ""; position: absolute; left: -2%; right: -2%; top: 0; height: 12px; border-radius: 6px; background: linear-gradient(#9a9993, #5f5e5a); box-shadow: 0 4px 8px rgba(0,0,0,.4); }
.eds { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; align-items: start; }
@media (max-width: 1000px) { .eds { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 620px) { .eds { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ed { display: grid; justify-items: center; gap: 0; transform-origin: 50% 0; cursor: pointer; border: 0; background: none; padding: 0; text-align: center; color: inherit; }
.ed .str { width: 4px; height: 26px; background: var(--acc); }
.ed img { width: 100%; max-width: 210px; height: auto; filter: drop-shadow(0 12px 16px rgba(0,0,0,.45)); transition: transform .3s; transform-origin: 50% 0; }
.ed:hover img, .ed:focus-visible img { animation: swing 1.2s ease; }
@keyframes swing { 0% { transform: rotate(0); } 20% { transform: rotate(5deg); } 45% { transform: rotate(-4deg); } 70% { transform: rotate(2deg); } 100% { transform: rotate(0); } }
.ed .nm { margin-top: 14px; font: 400 26px/1 'Bagel Fat One', 'Kanit'; color: var(--paper); }
.ed .role { font: 700 11px/1.3 var(--mono); text-transform: uppercase; color: var(--acc); margin-top: 4px; }
.ed .fit { margin-top: 10px; background: var(--paper2); color: var(--ink); padding: 12px 12px 10px; font: 600 13.5px/1.45 var(--hand); transform: rotate(-1.5deg); box-shadow: 0 6px 12px rgba(0,0,0,.3); width: 100%; }
.ed:nth-child(even) .fit { transform: rotate(1.5deg); }
.ed .sty { margin-top: 8px; font: 400 13px/1.5 var(--th); color: var(--on-bg-muted); }
.ed.cat .fit { background: var(--yellow); }

/* ── HOW ── */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; background: var(--paper); color: var(--ink); padding: 56px 22px 22px; box-shadow: 0 12px 26px rgba(0,0,0,.3); display: grid; gap: 12px; align-content: start; }
.step:nth-child(1) { transform: rotate(-1.2deg); } .step:nth-child(3) { transform: rotate(1.2deg); }
.step .tp { position: absolute; left: -10px; right: 18%; top: 14px; background: var(--acc); padding: 9px 14px; font: 700 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .04em; transform: rotate(-1.5deg); }
.step h3 { font: 800 22px/1.2 var(--th); }
.step p { font-size: 14.5px; color: var(--muted); }
.mini { border-radius: 12px; min-height: 150px; display: grid; place-items: center; padding: 14px; }
.mini.dz { border: 2px dashed var(--ink); text-align: center; font: 600 14px/1.4 var(--th); gap: 6px; }
.mini.dz svg { width: 26px; height: 26px; margin: 0 auto; animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(5px); } }
.mini.pr { background: #FAF8F4; border: 1px solid var(--line); display: grid; gap: 10px; place-items: stretch; align-content: center; }
.mini.pr .pct { display: flex; justify-content: space-between; align-items: baseline; font: 400 12px/1 var(--mono); }
.mini.pr .pct b { font: 400 40px/1 'Bagel Fat One', 'Kanit'; }
.mini.pr .pct b i { font-style: normal; color: var(--acc); font-size: .55em; }
.mini.pr .bar { display: flex; gap: 3px; }
.mini.pr .bar i { flex: 1; height: 14px; background: #E5DFD3; }
.mini.pr .bar i.on { background: var(--acc); }
.mini.pr .st { font: 400 11px/1.4 var(--mono); color: var(--muted); }
.mini.rd { background: var(--bg); color: var(--paper); gap: 10px; }
.mini.rd .mix { font-size: 48px; }
.mini.rd .row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.mini.rd .row span { font: 700 11px/1 var(--mono); border: 1px solid #555; padding: 7px 9px; border-radius: 6px; }
.mini.rd .row span.a { background: var(--acc); color: var(--ink); border-color: var(--acc); }

/* ── PRICING: ใบเสร็จ ── */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; align-items: start; margin-top: 10px; }
@media (max-width: 1040px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .plans { grid-template-columns: 1fr; } }
.plan.receipt { transform: none; padding-top: 30px; display: grid; gap: 4px; min-width: 0; }
.plan.receipt:nth-child(odd) { transform: rotate(-1deg); }
.plan.receipt:nth-child(even) { transform: rotate(.8deg); }
.plan .pn { font: 800 22px/1.1 var(--th); text-align: center; margin-top: 6px; }
.plan .price { text-align: center; font: 400 56px/1 'Bagel Fat One', 'Kanit'; margin-top: 6px; font-variant-numeric: tabular-nums; }
.plan .price small { display: block; font: 400 11px/1.6 var(--mono); text-transform: uppercase; color: var(--muted); }
.plan .ln span:first-child { font-size: 14px; }
.plan .ln .v { color: var(--ink); font-size: 14px; }
.plan .why { font: 600 14px/1.4 var(--hand); color: var(--muted); text-align: center; margin: 4px 0 12px; }
.plan .blob { width: 86px; height: 86px; right: -20px; top: -26px; bottom: auto; font-size: 20px; border-width: 5px; transform: rotate(10deg); }
.plan .blob small { font-size: 11px; }
.plan.pop { outline: 4px solid var(--acc); outline-offset: 6px; }
.plan .poptag { position: absolute; left: 50%; top: -18px; transform: translateX(-50%) rotate(-2deg); }
.pnotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 46px; }
@media (max-width: 860px) { .pnotes { grid-template-columns: 1fr; } }
.pnotes .note:nth-child(1) { transform: rotate(-1.5deg); } .pnotes .note:nth-child(2) { transform: rotate(1deg); } .pnotes .note:nth-child(3) { transform: rotate(-.6deg); }
.pnotes .note b { display: block; font: 700 17px/1.3 var(--th); margin-bottom: 4px; }

/* ── DOWNLOAD ── */
.dlgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 34px; align-items: start; }
@media (max-width: 900px) { .dlgrid { grid-template-columns: 1fr; } }
.dlbtns { display: grid; gap: 14px; }
.dlbtns .lab { color: var(--muted); }
.sysreq { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.sysreq span { font: 700 11px/1 var(--mono); text-transform: uppercase; border: 2px solid var(--ink); border-radius: 999px; padding: 6px 10px; }
.inst { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: s; }
.inst li { counter-increment: s; position: relative; background: var(--paper); color: var(--ink); padding: 14px 16px 14px 62px; box-shadow: 0 6px 14px rgba(0,0,0,.18); }
.inst li:nth-child(odd) { transform: rotate(-.6deg); } .inst li:nth-child(even) { transform: rotate(.5deg); }
.inst li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 14px; top: 14px; font: 700 22px/1 var(--mono); color: var(--acc); }
.inst b { display: block; font: 700 16px/1.3 var(--th); }
.inst span { font-size: 14px; color: var(--muted); }
.inst kbd { font: 700 12px/1 var(--mono); background: var(--ink); color: var(--paper); padding: 3px 6px; border-radius: 4px; }
.term { margin-top: 8px; overflow-x: auto; background: var(--ink); color: var(--paper); padding: 12px 14px; font: 400 12.5px/1.5 var(--mono); white-space: pre; border-radius: 8px; }
.inst .shot { margin-top: 10px; border-radius: 8px; overflow: hidden; border: 2px solid var(--ink); }
.inst .shot:empty { display: none; }

/* ── FAQ ── */
.faq { background: var(--paper); color: var(--ink); padding: clamp(18px, 3vw, 34px); box-shadow: 0 12px 26px rgba(0,0,0,.3); }
.faq details { border-bottom: 1px dashed var(--line); padding: 14px 0; }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 14px; font: 600 17px/1.4 var(--th); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; font: 700 18px/1 var(--mono); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--acc); color: var(--ink); }
.faq details p { margin-top: 8px; color: var(--muted); font-size: 15px; max-width: 64em; }

/* ── FOOTER ── */
.foot { padding-block: 70px 50px; text-align: center; position: relative; }
.foot .big { width: min(520px, 80%); margin: 0 auto; }
.foot .cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px; }
.foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin-top: 34px; font: 400 13px/1 var(--mono); color: var(--on-bg-muted); }
.foot nav a { text-decoration: none; }
.foot nav a:hover { color: var(--paper); }

/* ── หน้า login / account / legal ── */
.page { padding-block: 34px 70px; }
.card-paper { position: relative; background: var(--paper); color: var(--ink); padding: clamp(22px, 4vw, 40px); box-shadow: 0 16px 34px rgba(0,0,0,.35); }
.auth-wrap { position: relative; max-width: 470px; margin: 30px auto 0; }
.auth-wrap .folder { margin-top: 30px; padding: clamp(14px, 3vw, 26px); }
.auth h1 { font: 800 30px/1.2 var(--th); }
.auth .sub { color: var(--muted); margin-top: 6px; font-size: 14px; }
.auth .blob { width: 96px; height: 96px; right: -30px; top: -40px; transform: rotate(-10deg); font-size: 22px; }
.tabs { display: flex; gap: 6px; margin: 22px 0 18px; }
.tabs button { flex: 1; height: 40px; border: 2px solid var(--ink); border-radius: 10px; background: var(--paper2); font: 600 14px/1 var(--th); color: var(--ink); }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper2); }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font: 700 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .03em; }
.field input { height: 46px; border: 2px solid var(--ink); border-radius: 10px; background: var(--paper2); padding: 0 12px; font: 400 16px/1 var(--th); color: var(--ink); width: 100%; outline: 0; }
.field input:focus { border-color: var(--acc); box-shadow: 0 0 0 3px rgba(232,83,31,.25); }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font: 400 11px/1 var(--mono); text-transform: uppercase; margin: 18px 0; }
.or::before, .or::after { content: ""; flex: 1; border-top: 2px dashed var(--line); }
.btn-google { background: #fff; color: #1f1f1f; border: 2px solid var(--ink); }
.btn-google:hover { background: #f6f6f6; }
.btn-google svg { width: 18px; height: 18px; }
.msg { margin-top: 14px; padding: 10px 14px; border-radius: 10px; font-size: 14px; border: 2px solid; }
.msg.err { background: #FBE3DA; color: #7a2410; border-color: var(--acc); }
.msg.ok { background: #E4F0DF; color: #24531c; border-color: #4E8A3E; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; font-size: 14px; }

.acct { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 30px; align-items: start; margin-top: 30px; }
@media (max-width: 880px) { .acct { grid-template-columns: 1fr; } }
.acct h1 { font: 800 30px/1.2 var(--th); }
.bal { display: grid; gap: 2px; margin: 18px 0 10px; }
.bal .n { font: 400 clamp(56px, 10vw, 88px)/1 'Bagel Fat One', 'Kanit'; font-variant-numeric: tabular-nums; }
.bal .u { font: 400 12px/1.5 var(--mono); color: var(--muted); text-transform: uppercase; }
.bal .m { font: 500 15px/1.4 var(--th); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font: 700 12px/1 var(--th); background: var(--line); color: var(--ink); border: 2px solid var(--ink); }
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pill.on { background: #DCEED5; color: #24531c; }
.pill.warn { background: var(--yellow); }
.pill.off { background: #F6D3C6; color: #7a2410; }
.kv { display: grid; gap: 8px; margin-top: 18px; }
.kv div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--line); padding-bottom: 8px; font-size: 14px; }
.kv span:first-child { font: 700 11px/1.8 var(--mono); text-transform: uppercase; color: var(--muted); }
.acct-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.mini-plans { display: grid; gap: 10px; margin-top: 14px; }
.mini-plan { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; align-items: center; background: var(--paper); color: var(--ink); padding: 12px 14px; box-shadow: 0 4px 10px rgba(0,0,0,.15); }
.mini-plan b { font: 700 16px/1.3 var(--th); }
.mini-plan small { font: 400 11px/1.5 var(--mono); color: var(--muted); grid-column: 1; }
.mini-plan > :last-child { grid-row: 1 / span 2; grid-column: 2; }
.skeleton { color: transparent !important; background: linear-gradient(90deg, #e2dccf, #f2ede4, #e2dccf); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 8px; }
@keyframes sk { to { background-position: -200% 0; } }

.legal { max-width: 780px; margin: 30px auto 0; }
.legal h1 { font: 800 30px/1.2 var(--th); margin-bottom: 6px; }
.legal h2 { font: 700 19px/1.3 var(--th); margin: 26px 0 8px; }
.legal p, .legal li { font-size: 15px; }
.legal ul { padding-left: 1.2em; display: grid; gap: 4px; }
.draft { background: var(--yellow); padding: 10px 12px; font: 600 14px/1.4 var(--hand); margin-bottom: 18px; }
.page-title { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 4px 14px; }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 12px); background: var(--ink); color: var(--paper);
  padding: 12px 22px; border-radius: 999px; font: 500 14px/1.4 var(--th); opacity: 0; transition: .25s; pointer-events: none; z-index: 90; border: 2px solid var(--acc); max-width: calc(100vw - 32px); text-align: center; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ── ปรับรอบ 2 ── */
.nav .logo img { height: 56px; }
.drop .dls { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.drop .dl small { white-space: normal; }
.plan .blob { right: -30px; top: -40px; }
#download .folder, #features .ftabs { margin-top: 8px; }
#download .folder { margin-top: 48px; }
.hero, .sec { overflow-x: clip; }
@media (max-width: 700px) {
  .sheet .blob { right: -8px !important; }
  .sheet .blob + .blob { left: -8px !important; right: auto !important; }
  .phone-wrap .blob { right: -10px; width: 92px; height: 92px; }
  .receipt .blob, .plan .blob { right: -6px; }
  .nav .logo img { height: 46px; }
}
@media (max-width: 700px) {
  .logoword { font-size: min(13vw, 64px) !important; }
  .sheet .blob:not(.blob + .blob) { top: -34px !important; width: 92px !important; height: 86px !important; font-size: 22px; }
  .sheet .blob + .blob { width: 104px !important; height: 82px !important; font-size: 22px; bottom: -40px !important; }
  .sheet .strip { display: none; }
}
.hero .folder .tab { width: auto; white-space: nowrap; }
.dl b { white-space: nowrap; }
@media (max-width: 420px) { .dl b { font-size: 17px; } .drop .dl b { font-size: 16px; } }
.folder:has(> .tab:not(.r)) { border-top-left-radius: 0; }

/* สติกเกอร์แถมเครดิต: วงกลมเท่ากันทุกใบ ตำแหน่งเดียวกัน ข้างราคา */
.plan .prow { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 6px; }
.plan .prow .price { margin-top: 0; }
.plan .bonus { position: relative; flex: none; width: 68px; height: 68px; border-radius: 50%; background: var(--acc); color: var(--ink);
  border: 4px solid var(--paper2); box-shadow: 0 4px 10px rgba(0,0,0,.25); display: grid; place-content: center; text-align: center;
  font: 400 19px/1 'Bagel Fat One', 'Kanit'; letter-spacing: -.01em; transform: rotate(-10deg); font-variant-numeric: tabular-nums; }
.plan .bonus small { display: block; font: 600 11px/1 var(--th); margin-bottom: 3px; letter-spacing: 0; }
.plan .bonus.base { background: var(--ink); color: var(--paper); font-size: 17px; }
.plan .price { padding-right: 0; }
