/* ==========================================================================
   CloudOS — web.css  (ดีไซน์ใหม่ของหน้าเว็บสาธารณะ / auth / 404)
   ใช้เฉพาะ layouts/site.php, layouts/auth.php และ errors/404.php
   แดชบอร์ดและแอดมินยังใช้สไตล์เดิม ไม่ได้รับผลกระทบ
   ========================================================================== */

:root {
  --ink: #0a0f1f;
  --ink-2: #1a2342;
  --muted: #586079;
  --faint: #8089a3;
  --line: #e4e8f3;
  --line-2: #d3d9ea;
  --bg: #f6f8fd;
  --card: #ffffff;
  --blue: #2f5bff;
  --blue-d: #1f43d6;
  --blue-soft: #e9eeff;
  --cyan: #12c2e9;
  --violet: #7a5cff;
  --green: #12a56b;
  --green-soft: #e3f7ee;
  --red: #d6334a;
  --red-soft: #fdebee;
  --amber: #b97309;
  --grad: linear-gradient(115deg, #2f5bff 0%, #12c2e9 100%);
  --grad-warm: linear-gradient(115deg, #7a5cff 0%, #2f5bff 55%, #12c2e9 100%);
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --shadow-sm: 0 1px 2px rgba(10, 15, 31, .05), 0 2px 8px rgba(10, 15, 31, .04);
  --shadow: 0 10px 30px -8px rgba(30, 50, 120, .16), 0 2px 6px rgba(10, 15, 31, .04);
  --shadow-lg: 0 40px 80px -24px rgba(30, 50, 140, .28), 0 8px 24px rgba(10, 15, 31, .06);
  --font-d: "Anuphan", "Leelawadee UI", "Segoe UI", Tahoma, sans-serif;
  --font-b: "IBM Plex Sans Thai", "Leelawadee UI", "Segoe UI", Tahoma, sans-serif;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-b); font-size: 16px; line-height: 1.75;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
::selection { background: #cfdcff; }
h1, h2, h3, h4 { font-family: var(--font-d); letter-spacing: -.02em; line-height: 1.25; font-weight: 700; }

.ic { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 999; background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 10px; }
.skip-link:focus { top: 12px; }
.grad-text { background: var(--grad-warm); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--line-2);
  background: #fff; color: var(--ink); font-family: var(--font-d); font-weight: 600; font-size: 15px;
  cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s, border-color .18s, color .18s;
  white-space: nowrap;
}
.btn:hover { border-color: var(--ink); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .ic { font-size: 18px; }
.btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 8px 20px -6px rgba(47, 91, 255, .55); }
.btn-primary:hover { background: var(--blue-d); border-color: var(--blue-d); box-shadow: 0 12px 26px -6px rgba(47, 91, 255, .6); }
.btn-dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); border-color: var(--ink-2); }
.btn-light { background: #fff; border-color: #fff; color: var(--ink); }
.btn-light:hover { background: #eef2ff; border-color: #eef2ff; }
.btn-ghost-light { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.28); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,.16); border-color: #fff; }
.btn-lg { min-height: 54px; padding: 0 30px; font-size: 16px; }
.btn-sm { min-height: 36px; padding: 0 16px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-google { background: #fff; gap: 12px; }
.btn[disabled] { opacity: .5; pointer-events: none; }

.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-family: var(--font-d); font-size: 13px; font-weight: 600; color: var(--ink-2);
}
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(18, 165, 107, .18); }
.eyebrow { font-family: var(--font-d); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }

/* ---------- Navigation ---------- */
.nav-shell { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.86); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid var(--line); }
.nav-shell::before { content: ""; display: block; height: 3px; background: var(--grad-warm); }
.nav { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-d); font-weight: 800; font-size: 22px; letter-spacing: -.03em; }
.brand-mark {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; color: #fff;
  background: var(--grad-warm); font-size: 20px; font-weight: 800; box-shadow: 0 6px 14px -4px rgba(47, 91, 255, .6);
}
.nav .brand { justify-self: start; }
.nav-links { display: flex; align-items: center; gap: 30px; height: 100%; }
.nav-links a { position: relative; display: flex; align-items: center; height: 100%; font-family: var(--font-d); font-size: 15px; font-weight: 500; color: var(--muted); transition: color .15s; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--blue); transform: scaleX(0); transition: transform .25s ease; }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(.4); }
.nav-links a.active { color: var(--ink); font-weight: 700; }
.nav-links a.active::after { transform: scaleX(1); }
.nav-links-cta { display: none; }
.nav-cta { display: flex; align-items: center; gap: 18px; justify-self: end; }
.nav-login { font-family: var(--font-d); font-weight: 600; font-size: 15px; color: var(--ink-2); }
.nav-login:hover { color: var(--blue); }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; padding: 0; position: relative; justify-self: end; }
.nav-toggle span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .2s, top .25s; }
.nav-toggle span:nth-child(1) { top: 16px; } .nav-toggle span:nth-child(2) { top: 21px; } .nav-toggle span:nth-child(3) { top: 26px; }
.nav-toggle.open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ---------- Layout blocks ---------- */
main { display: block; }
.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.sec-head { max-width: 720px; margin-bottom: 52px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head .eyebrow { display: block; margin-bottom: 14px; }
.sec-head h2 { font-size: clamp(30px, 4.2vw, 46px); }
.sec-head p { margin-top: 16px; color: var(--muted); font-size: 17px; }
.sec-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 44px; }
.sec-head-row .sec-head { margin-bottom: 0; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-d); font-weight: 600; color: var(--blue-d); }
.link-arrow .ic { transition: transform .2s; }
.link-arrow:hover .ic { transform: translate(3px, -3px); }

/* inner page hero */
.page-hero { position: relative; padding: 72px 0 56px; text-align: center; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: -40% -10% auto; height: 520px; z-index: -1;
  background: radial-gradient(40% 50% at 30% 40%, rgba(47, 91, 255, .16), transparent 70%), radial-gradient(35% 45% at 72% 30%, rgba(18, 194, 233, .16), transparent 70%);
}
.page-hero .chip { margin-bottom: 22px; }
.page-hero h1 { font-size: clamp(36px, 6vw, 64px); max-width: 900px; margin: 0 auto; }
.page-hero p.lead { max-width: 640px; margin: 20px auto 0; font-size: 18px; color: var(--muted); }

/* ---------- Home hero ---------- */
.hero { position: relative; padding: 64px 0 40px; }
.hero::before {
  content: ""; position: absolute; inset: -120px 0 0; z-index: -1;
  background:
    radial-gradient(48% 55% at 18% 25%, rgba(47, 91, 255, .15), transparent 70%),
    radial-gradient(40% 50% at 85% 20%, rgba(18, 194, 233, .20), transparent 70%),
    radial-gradient(40% 40% at 60% 90%, rgba(122, 92, 255, .12), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: -120px 0 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px; -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent 75%); mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent 75%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(42px, 6.6vw, 80px); line-height: 1.08; margin: 22px 0 24px; letter-spacing: -.035em; }
.hero-desc { font-size: 19px; color: var(--muted); max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-note { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--faint); font-size: 14px; }
.hero-note span { display: inline-flex; align-items: center; gap: 7px; }
.hero-note .ic { color: var(--green); font-size: 16px; stroke-width: 2.4; }

/* explorer mock */
.mock { position: relative; padding: 28px 10px 34px; }
.mock::before { content: ""; position: absolute; inset: 6% 0 4% 8%; border-radius: 40px; background: var(--grad-warm); opacity: .16; transform: rotate(3deg); filter: blur(2px); }
.win { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden; }
.win-bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: linear-gradient(#fff, #fafbff); font-family: var(--font-d); font-size: 13px; font-weight: 600; }
.win-bar .brand-mark { width: 22px; height: 22px; border-radius: 7px; font-size: 12px; box-shadow: none; }
.win-dots { margin-left: auto; display: flex; gap: 6px; }
.win-dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); }
.win-addr { display: flex; align-items: center; gap: 10px; margin: 12px 16px; padding: 8px 14px; border-radius: 10px; background: var(--bg); color: var(--muted); font-size: 12.5px; }
.win-addr b { color: var(--ink); font-weight: 600; }
.win-body { display: grid; grid-template-columns: 148px 1fr; min-height: 292px; }
.win-side { padding: 6px 12px 16px 16px; font-size: 12.5px; color: var(--muted); display: flex; flex-direction: column; gap: 2px; }
.win-side small { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin: 6px 0; }
.win-side div { padding: 7px 10px; border-radius: 9px; }
.win-side .on { background: var(--blue-soft); color: var(--blue-d); font-weight: 600; }
.win-store { margin-top: auto; padding: 12px; border-radius: 14px; background: linear-gradient(160deg, var(--blue-soft), var(--bg)); border: 1px solid var(--line); }
.drive-row { display: flex; align-items: center; gap: 9px; }
.drive-row b { display: block; font-family: var(--font-d); font-size: 12.5px; color: var(--ink); line-height: 1.3; }
.drive-row div span { font-size: 10.5px; }
.drive-ico { display: grid !important; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 10px; background: var(--grad); color: #fff !important; font-size: 17px !important; box-shadow: 0 6px 14px -6px rgba(47,91,255,.6); }
.win-status { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; padding: 11px 18px; border-top: 1px solid var(--line); background: linear-gradient(#fafbff, #f3f6ff); font-size: 12px; color: var(--muted); }
.win-status b { color: var(--green); font-family: var(--font-d); font-weight: 700; }
.win-status em { margin-left: auto; font-style: normal; padding: 3px 10px; border-radius: 999px; background: var(--blue-soft); color: var(--blue-d); font-weight: 600; font-size: 11.5px; }
.ok-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.win-store span { display: block; font-size: 11px; color: var(--faint); }
.meter { height: 6px; border-radius: 6px; background: var(--line); margin: 7px 0 5px; overflow: hidden; }
.meter i { display: block; height: 100%; width: 25%; border-radius: 6px; background: var(--grad); }
.win-files { padding: 4px 18px 18px 8px; }
.win-files-head { display: flex; justify-content: space-between; align-items: baseline; padding: 4px 4px 10px; font-family: var(--font-d); }
.win-files-head strong { font-size: 15px; } .win-files-head span { font-size: 12px; color: var(--faint); }
.file { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 12px; padding: 10px 8px; border-radius: 12px; transition: background .15s; }
.file:hover { background: var(--bg); }
.file-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; font-family: var(--font-d); font-weight: 800; font-size: 15px; }
.file-ico .ic { font-size: 20px; }
.f-folder { background: #fff3d6; color: #b87908; } .f-x { background: #dff5ea; color: #137a4f; } .f-w { background: #e4ebff; color: #2748c9; } .f-i { background: #efe8ff; color: #6a47e0; }
.file b { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.file small { font-size: 11.5px; color: var(--faint); }
.file-ok { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; background: var(--green-soft); color: var(--green); font-size: 11.5px; font-weight: 600; }
.file-ok .ic { font-size: 12px; stroke-width: 2.8; }
.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; border-radius: 16px;
  background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 13px; line-height: 1.4;
  animation: bob 6s ease-in-out infinite;
}
.float-card b { display: block; font-family: var(--font-d); font-size: 13.5px; }
.float-card small { color: var(--faint); font-size: 12px; }
.float-card .fi { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; font-size: 19px; }
.fc-1 { left: -14px; bottom: 6px; } .fc-1 .fi { background: var(--green-soft); color: var(--green); }
.fc-2 { right: -8px; top: 0; animation-delay: -3s; } .fc-2 .fi { background: var(--blue-soft); color: var(--blue); }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* proof strip */
.strip { padding: 36px 0 12px; }
.strip-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 14px; }
.strip-row > span { font-size: 14px; color: var(--faint); margin-right: 8px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-family: var(--font-d); font-size: 14px; font-weight: 600; color: var(--ink-2); }
.pill .ic { color: var(--blue); font-size: 17px; }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.tile {
  position: relative; overflow: hidden; padding: 30px; border-radius: var(--r-lg); background: var(--card);
  border: 1px solid var(--line); transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-2); }
.tile h3 { font-size: 21px; margin: 18px 0 8px; }
.tile p { color: var(--muted); font-size: 15.5px; }
.tile .ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; font-size: 25px; background: var(--blue-soft); color: var(--blue); }
.tile .num { position: absolute; top: 24px; right: 28px; font-family: var(--font-d); font-weight: 700; font-size: 13px; letter-spacing: .1em; color: var(--line-2); }
.t-a { grid-column: span 3; } .t-b { grid-column: span 3; } .t-c { grid-column: span 2; } .t-d { grid-column: span 2; } .t-e { grid-column: span 2; }
.tile.dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.tile.dark p { color: #aeb7d3; } .tile.dark .num { color: #3a4468; }
.tile.dark .ico { background: rgba(255,255,255,.1); color: #7fe0f5; }
.tile.grad { background: var(--grad-warm); border: 0; color: #fff; }
.tile.grad p { color: rgba(255,255,255,.88); } .tile.grad .ico { background: rgba(255,255,255,.2); color: #fff; } .tile.grad .num { color: rgba(255,255,255,.4); }
.tile-visual { margin-top: 22px; display: flex; gap: 8px; flex-wrap: wrap; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: rgba(255,255,255,.12); color: #fff; font-family: var(--font-d); }
.tag.light { background: var(--blue-soft); color: var(--blue-d); }

/* ---------- Steps ---------- */
.dark-band { position: relative; background: var(--ink); color: #fff; overflow: hidden; border-radius: var(--r-xl); width: calc(100% - 40px); max-width: 1240px; margin: 0 auto; }
.dark-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(40% 60% at 85% 0%, rgba(47, 91, 255, .45), transparent 70%), radial-gradient(35% 50% at 5% 100%, rgba(18, 194, 233, .28), transparent 70%); }
.dark-band > .wrap { position: relative; }
.dark-band .eyebrow { color: #7fe0f5; } .dark-band .sec-head p { color: #aeb7d3; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.step { position: relative; padding: 30px; border-radius: var(--r-lg); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(6px); }
.step .n { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; font-family: var(--font-d); font-weight: 800; font-size: 17px; background: var(--grad); color: #fff; margin-bottom: 22px; }
.step h3 { font-size: 20px; margin-bottom: 8px; } .step p { color: #aeb7d3; font-size: 15.5px; }

/* ---------- Pricing ---------- */
.cycle { display: inline-flex; padding: 5px; border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.cycle button { display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; padding: 10px 24px; border-radius: 999px; font-family: var(--font-d); font-weight: 600; font-size: 14.5px; color: var(--muted); cursor: pointer; transition: all .2s; }
.cycle button.active { background: var(--ink); color: #fff; }
.save-tag { padding: 2px 10px; border-radius: 999px; background: var(--green-soft); color: var(--green); font-size: 11.5px; font-weight: 700; }
.cycle button.active .save-tag { background: rgba(255,255,255,.18); color: #9af0cb; }
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 32px 28px 28px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); transition: transform .25s, box-shadow .25s; }
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.plan.featured { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: var(--shadow-lg); }
.plan.featured::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; background: var(--grad-warm); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.plan-badge { position: absolute; top: -13px; left: 28px; padding: 4px 14px; border-radius: 999px; background: var(--grad); color: #fff; font-family: var(--font-d); font-size: 12px; font-weight: 700; }
.plan-name { font-family: var(--font-d); font-weight: 700; font-size: 18px; color: var(--muted); }
.plan.featured .plan-name { color: #aeb7d3; }
.plan-price { margin: 12px 0 2px; font-family: var(--font-d); font-weight: 800; font-size: 46px; letter-spacing: -.04em; line-height: 1.1; }
.plan-price small { font-size: 15px; font-weight: 500; color: var(--faint); letter-spacing: 0; }
.yearly-note { min-height: 24px; font-size: 13px; color: var(--green); font-weight: 600; }
.plan.featured .yearly-note { color: #7be3b9; }
.plan-spec { display: flex; gap: 10px; margin: 16px 0 6px; flex-wrap: wrap; }
.plan-spec span { padding: 6px 12px; border-radius: 10px; background: var(--bg); font-size: 13.5px; font-weight: 600; font-family: var(--font-d); }
.plan.featured .plan-spec span { background: rgba(255,255,255,.1); }
.plan ul { margin: 18px 0 26px; display: grid; gap: 10px; flex: 1; align-content: start; }
.plan li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--muted); line-height: 1.55; }
.plan.featured li { color: #cdd4ec; }
.plan li .ic { margin-top: 3px; color: var(--green); font-size: 16px; stroke-width: 2.6; }
.plan.featured li .ic { color: #5ee0ad; }
.plan .btn-block { margin-top: auto; }
.plan.featured .btn { background: #fff; border-color: #fff; color: var(--ink); box-shadow: none; }
.plan.featured .btn:hover { background: #eaf0ff; }
.pay-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 12px; margin-top: 44px; padding: 20px 26px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); }
.pay-row strong { font-family: var(--font-d); margin-right: 8px; }
.pay-row .pill { background: var(--bg); border-color: transparent; font-weight: 500; font-size: 13.5px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 860px; margin: 0 auto; }
.faq details, .qa details { border-radius: var(--r); background: #fff; border: 1px solid var(--line); transition: border-color .2s, box-shadow .2s; }
.faq details[open], .qa details[open] { border-color: #bccaff; box-shadow: var(--shadow); }
.faq summary, .qa summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; cursor: pointer; list-style: none; font-family: var(--font-d); font-weight: 600; font-size: 17px; }
.faq summary::-webkit-details-marker, .qa summary::-webkit-details-marker { display: none; }
.faq summary::after, .qa summary::after { content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f5bff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center/16px no-repeat; transition: transform .25s; }
.faq details[open] summary::after, .qa details[open] summary::after { transform: rotate(180deg); background-color: var(--blue-soft); }
.faq .ans, .qa .ans { padding: 0 24px 22px; color: var(--muted); font-size: 15.5px; max-width: 720px; }
.qa { display: grid; gap: 12px; }
.split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.split .sec-head { margin-bottom: 0; position: sticky; top: 110px; }

/* ---------- CTA ---------- */
.cta-band { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 40px; row-gap: 4px; width: calc(100% - 40px); max-width: 1120px; margin: 0 auto; padding: 38px 48px; border-radius: 28px; color: #fff; background: var(--ink); }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 120% at 0% 0%, rgba(47, 91, 255, .65), transparent 70%), radial-gradient(40% 110% at 100% 100%, rgba(18, 194, 233, .45), transparent 70%); }
.cta-band > * { position: relative; grid-column: 1; }
.cta-band h2 { font-size: clamp(22px, 2.6vw, 30px); }
.cta-band p { color: #c3cbe6; font-size: 15.5px; margin: 0; }
.cta-band .eyebrow { font-size: 12px; }
.cta-band .row { grid-column: 2; grid-row: 1 / span 4; display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Features page ---------- */
.feat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.feat { padding: 30px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); transition: transform .25s, box-shadow .25s; }
.feat:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feat .ico { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 17px; font-size: 26px; margin-bottom: 20px; }
.feat h3 { font-size: 20px; margin-bottom: 8px; } .feat p { color: var(--muted); font-size: 15.5px; }
.c-blue { background: var(--blue-soft); color: var(--blue); } .c-cyan { background: #dff6fc; color: #0a9cc0; } .c-violet { background: #eee9ff; color: #6a47e0; }
.c-green { background: var(--green-soft); color: var(--green); } .c-amber { background: #fff1d6; color: #b97309; } .c-rose { background: var(--red-soft); color: var(--red); }

/* ---------- Compare ---------- */
.cmp { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-sm); }
.cmp table { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 560px; }
.cmp th, .cmp td { padding: 18px 26px; text-align: center; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.cmp th:first-child, .cmp td:first-child { text-align: left; font-weight: 500; }
.cmp thead th { font-family: var(--font-d); font-size: 15px; color: var(--muted); background: #fafbff; }
.cmp thead th.us { background: var(--ink); color: #fff; font-size: 17px; }
.cmp td.us { background: #f3f6ff; }
.cmp tr:last-child td { border-bottom: 0; }
.mk { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-size: 16px; }
.mk .ic { stroke-width: 2.6; }
.mk.y { background: var(--green-soft); color: var(--green); } .mk.n { background: #f0f2f8; color: var(--faint); }

/* ---------- Reviews ---------- */
.masonry { columns: 3 300px; column-gap: 18px; }
.review { break-inside: avoid; margin-bottom: 18px; padding: 28px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); transition: box-shadow .25s, transform .25s; }
.review:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.stars { display: flex; gap: 3px; color: #f5a623; font-size: 17px; }
.stars .ic { fill: currentColor; stroke-width: 1; } .stars .off { color: var(--line-2); }
.review blockquote { margin: 16px 0 22px; font-size: 16.5px; line-height: 1.7; }
.who { display: flex; align-items: center; gap: 12px; }
.avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: #fff; font-family: var(--font-d); font-weight: 700; background: var(--grad-warm); }
.who b { display: block; font-family: var(--font-d); font-size: 15px; line-height: 1.3; } .who small { color: var(--faint); font-size: 13px; }
.box { max-width: 620px; margin: 0 auto; padding: 36px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.box.center { text-align: center; }
.box h2 { font-size: 26px; margin-bottom: 8px; } .box > p { color: var(--muted); }
.box .row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }

/* ---------- Download ---------- */
.dl-card { position: relative; overflow: hidden; max-width: 880px; margin: 0 auto; padding: 44px; border-radius: var(--r-xl); background: var(--ink); color: #fff; box-shadow: var(--shadow-lg); }
.dl-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 100% 0%, rgba(47, 91, 255, .55), transparent 70%), radial-gradient(40% 60% at 0% 100%, rgba(18, 194, 233, .3), transparent 70%); }
.dl-card > * { position: relative; }
.dl-top { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.dl-os { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 22px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); font-size: 38px; }
.dl-os .ic { fill: currentColor; stroke: none; }
.dl-top h2 { font-size: 28px; } .dl-top p { color: #aeb7d3; font-size: 15px; }
.dl-meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0; }
.dl-meta span { padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.1); font-size: 13.5px; font-family: var(--font-d); font-weight: 500; }
.dl-notes { margin-top: 30px; padding: 22px 24px; border-radius: var(--r); background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); }
.dl-notes h3 { font-size: 15px; margin-bottom: 10px; color: #7fe0f5; }
.dl-notes div { white-space: pre-line; color: #cdd4ec; font-size: 14.5px; }
.tbl { max-width: 880px; margin: 0 auto; overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--line); background: #fff; }
.tbl table { width: 100%; border-collapse: collapse; min-width: 480px; }
.tbl th, .tbl td { padding: 16px 24px; text-align: left; border-bottom: 1px solid var(--line); font-size: 15px; }
.tbl th { font-family: var(--font-d); font-size: 13px; color: var(--faint); background: #fafbff; font-weight: 600; }
.tbl tr:last-child td { border-bottom: 0; } .tbl td:last-child { text-align: right; }
.reqs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; max-width: 880px; margin: 32px auto 0; }
.req { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); font-size: 14.5px; }
.req .ic { font-size: 22px; color: var(--blue); margin-top: 3px; } .req b { display: block; font-family: var(--font-d); }
.req span { color: var(--muted); }

/* ---------- Footer ---------- */
.footer { position: relative; overflow: hidden; margin-top: 56px; background: #fff; border-top: 1px solid var(--line); padding: 64px 0 0; color: var(--muted); }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer .brand { color: var(--ink); margin-bottom: 16px; }
.footer p { font-size: 15px; max-width: 340px; }
.footer-status { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; padding: 6px 14px; border-radius: 999px; background: var(--green-soft); color: var(--green); font-family: var(--font-d); font-size: 13px; font-weight: 600; }
.footer-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.footer h5 { margin: 0 0 18px; font-family: var(--font-d); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.footer li { margin-bottom: 12px; }
.footer li a { font-size: 15px; display: inline-flex; align-items: center; gap: 6px; transition: color .15s, transform .15s; }
.footer li a:hover { color: var(--blue); transform: translateX(3px); }
.footer-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 24px; padding: 20px 0; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--faint); }
.footer-mark { position: relative; z-index: 0; margin: 0 0 -.17em; text-align: center; font-family: var(--font-d); font-weight: 800; font-size: clamp(80px, 19vw, 280px); line-height: .9; letter-spacing: -.06em; user-select: none; pointer-events: none;
  background: linear-gradient(180deg, rgba(47, 91, 255, .16), rgba(18, 194, 233, 0) 85%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Alerts / forms ---------- */
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 13px 16px; border-radius: 12px; font-size: 14.5px; margin-bottom: 18px; line-height: 1.55; }
.alert-error { background: var(--red-soft); color: #9c1d31; border: 1px solid #f6c5cd; }
.alert-success { background: var(--green-soft); color: #0b7a4d; border: 1px solid #b6e8d1; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 7px; font-family: var(--font-d); font-size: 14px; font-weight: 600; color: var(--ink-2); }
.input, .form-group input[type=text], .form-group input[type=email], .form-group input[type=password], .form-group select, .form-group textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 14px; border: 1.5px solid var(--line-2); background: #fff; font-size: 16px;
  transition: border-color .15s, box-shadow .15s;
}
.form-group textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.form-group input:hover, .form-group select:hover, .form-group textarea:hover { border-color: #aab4d4; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(47, 91, 255, .15); }
.pw { position: relative; } .pw input { padding-right: 52px !important; }
.pw button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; background: transparent; border-radius: 10px; color: var(--faint); cursor: pointer; font-size: 20px; display: grid; place-items: center; }
.pw button:hover { background: var(--bg); color: var(--ink); }
.check { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--muted); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--blue); }
.hp { font-size: 13px; color: var(--faint); margin-top: 6px; }

/* ---------- Auth ---------- */
.auth-body { min-height: 100vh; background: #fff; }
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; }
.auth-side { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 40px 56px 48px; color: #fff; background: var(--ink); }
.auth-side::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 50% at 90% 0%, rgba(47, 91, 255, .75), transparent 70%), radial-gradient(55% 45% at 0% 100%, rgba(18, 194, 233, .5), transparent 70%), radial-gradient(40% 35% at 60% 60%, rgba(122, 92, 255, .35), transparent 70%); }
.auth-side::after { content: ""; position: absolute; inset: 0; opacity: .12; background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: linear-gradient(160deg, #000, transparent 70%); mask-image: linear-gradient(160deg, #000, transparent 70%); }
.auth-side > * { position: relative; z-index: 1; }
.auth-side .brand { color: #fff; font-size: 24px; }
.auth-side h2 { font-size: clamp(32px, 3.6vw, 48px); margin: 0 0 18px; line-height: 1.18; }
.auth-side > div > p { color: #c3cbe6; font-size: 17px; max-width: 440px; }
.auth-points { display: grid; gap: 14px; margin-top: 30px; }
.auth-points li { display: flex; gap: 12px; align-items: center; font-size: 15.5px; color: #e4e9fb; }
.auth-points .ic { display: grid; place-items: center; width: 28px; height: 28px; padding: 6px; border-radius: 50%; background: rgba(255,255,255,.16); stroke-width: 2.8; }
.auth-quote { padding: 18px 20px; border-radius: 18px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(8px); max-width: 440px; font-size: 14.5px; color: #e4e9fb; }
.auth-main { display: flex; flex-direction: column; padding: 28px 28px 36px; }
.auth-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.auth-top .brand { display: none; }
.auth-back { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-d); font-weight: 600; font-size: 14.5px; color: var(--muted); padding: 8px 14px 8px 10px; border-radius: 999px; transition: background .15s, color .15s; }
.auth-back:hover { background: var(--bg); color: var(--ink); } .auth-back .ic { transform: rotate(180deg); }
.auth-card { width: 100%; max-width: 440px; margin: auto; padding: 32px 0; }
.auth-card h1 { font-size: 34px; margin-bottom: 10px; }
.auth-card .subtitle { color: var(--muted); margin-bottom: 28px; font-size: 16px; }
.auth-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: var(--blue-soft); color: var(--blue); font-size: 28px; margin-bottom: 22px; }
.auth-divider { display: flex; align-items: center; gap: 14px; margin: 22px 0; color: var(--faint); font-size: 13.5px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-links { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; font-size: 14.5px; }
.auth-links a, .auth-footer a, .text-link { color: var(--blue-d); font-weight: 600; } .auth-links a:hover, .auth-footer a:hover { text-decoration: underline; }
.auth-footer { margin-top: 26px; text-align: center; color: var(--muted); font-size: 15px; }
.code-input { text-align: center; letter-spacing: .5em; font-family: var(--font-d); font-size: 28px !important; font-weight: 700; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }

/* ---------- 404 ---------- */
.nf { min-height: 100vh; display: grid; place-items: center; padding: 32px 20px; text-align: center; position: relative; overflow: hidden; background: var(--bg); }
.nf::before { content: ""; position: absolute; inset: 0; background: radial-gradient(45% 50% at 25% 30%, rgba(47, 91, 255, .16), transparent 70%), radial-gradient(40% 45% at 78% 70%, rgba(18, 194, 233, .2), transparent 70%); }
.nf > div { position: relative; max-width: 520px; }
.nf .code { font-family: var(--font-d); font-weight: 800; font-size: clamp(110px, 24vw, 220px); line-height: 1; letter-spacing: -.06em; background: var(--grad-warm); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nf h1 { font-size: 28px; margin: 6px 0 10px; } .nf p { color: var(--muted); }
.nf .row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-desc { max-width: 620px; }
  .mock { max-width: 640px; }
  .t-a, .t-b { grid-column: span 6; } .t-c, .t-d, .t-e { grid-column: span 3; } .t-e { grid-column: span 6; }
  .split { grid-template-columns: 1fr; gap: 28px; } .split .sec-head { position: static; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .auth { grid-template-columns: 1fr; } .auth-side { display: none; }
  .auth-top .brand { display: inline-flex; }
}
@media (max-width: 860px) {
  .nav { grid-template-columns: 1fr auto; height: 64px; }
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
  .nav-links { display: none; position: absolute; top: 100%; left: -28px; right: -28px; flex-direction: column; align-items: stretch; height: auto; gap: 0; padding: 8px 28px 20px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -20px rgba(10, 15, 31, .25); }
  .nav-links.open { display: flex; }
  .nav-links a { height: auto; padding: 15px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
  .nav-links a::after { display: none; }
  .nav-links a.active { color: var(--blue); }
  .nav-links .nav-links-cta { display: flex; flex-direction: column; gap: 10px; padding-top: 18px; }
  .nav-links .nav-links-cta a { border: 0; padding: 0 22px; font-size: 15px; }
  .steps { grid-template-columns: 1fr; }
  .cta-band { grid-template-columns: 1fr; padding: 32px 26px; }
  .cta-band .row { grid-column: 1; grid-row: auto; margin-top: 16px; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .wrap { padding: 0 18px; }
  .section { padding: 64px 0; } .section-tight { padding: 44px 0; }
  .sec-head { margin-bottom: 36px; }
  .dark-band, .cta-band { width: calc(100% - 20px); border-radius: 22px; }
  .hero { padding-top: 36px; } .hero-actions .btn { flex: 1 1 100%; }
  .win-body { grid-template-columns: 1fr; } .win-side { display: none; }
  .float-card { display: none; }
  .bento { grid-template-columns: 1fr; } .t-a, .t-b, .t-c, .t-d, .t-e { grid-column: auto; }
  .tile { padding: 24px; }
  .footer { margin-top: 40px; padding-top: 48px; } .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; } .footer-top > div:first-child { grid-column: 1 / -1; }
  .dl-card { padding: 28px 22px; } .dl-card .btn { width: 100%; }
  .auth-main { padding: 18px 18px 28px; } .auth-card h1 { font-size: 29px; }
  .cmp th, .cmp td { padding: 14px 16px; font-size: 14.5px; }
  .box { padding: 26px 22px; }
  .plan-price { font-size: 40px; }
}

/* ---------- Auth: ปรับขนาดให้กระชับ ---------- */
.auth { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-side { padding: 32px 44px 36px; }
.auth-side .brand { font-size: 20px; }
.auth-side .brand-mark { width: 32px; height: 32px; font-size: 17px; }
.auth-side h2 { font-size: clamp(26px, 2.6vw, 34px); margin-bottom: 12px; }
.auth-side > div > p { font-size: 15px; max-width: 380px; }
.auth-points { gap: 10px; margin-top: 22px; }
.auth-points li { font-size: 14px; }
.auth-points .ic { width: 24px; height: 24px; padding: 5px; }
.auth-quote { font-size: 13px; padding: 14px 16px; border-radius: 14px; max-width: 380px; }
.auth-main { padding: 20px 24px 24px; }
.auth-back { font-size: 13.5px; padding: 6px 12px 6px 8px; }
.auth-card { max-width: 380px; padding: 16px 0; }
.auth-card h1 { font-size: 26px; margin-bottom: 6px; }
.auth-card .subtitle { font-size: 14.5px; margin-bottom: 20px; line-height: 1.6; }
.auth-icon { width: 46px; height: 46px; border-radius: 14px; font-size: 23px; margin-bottom: 16px; }
.auth-card .form-group { margin-bottom: 14px; }
.auth-card .form-group label { font-size: 13.5px; margin-bottom: 5px; }
.auth-card .form-group input[type=text], .auth-card .form-group input[type=email], .auth-card .form-group input[type=password] { min-height: 44px; padding: 9px 14px; font-size: 15px; border-radius: 12px; }
.auth-card .pw button { width: 34px; height: 34px; font-size: 18px; }
.auth-card .btn, .auth-card .btn-lg { min-height: 44px; font-size: 15px; padding: 0 20px; }
.auth-card .btn-google { gap: 10px; }
.auth-card .alert { padding: 10px 14px; font-size: 13.5px; margin-bottom: 14px; border-radius: 10px; }
.auth-divider { margin: 16px 0; font-size: 12.5px; }
.auth-footer { margin-top: 18px; font-size: 14px; }
.row-between { margin-bottom: 16px; }
.row-between .check, .row-between .text-link { font-size: 13.5px !important; }
.hp { font-size: 12px; margin-top: 4px; }
.code-input { font-size: 22px !important; }
@media (max-width: 1020px) { .auth { grid-template-columns: 1fr; } }
