/*
 * สไตล์หน้า Landing (public/index.html) — ยกจากหน้าแรกของ ALL ACCOUNT for SME / Doc Reader
 * โหลดเฉพาะ index.html (หน้าอื่นใช้ site.css)
 * #landing-static เป็น scroll container เอง (body ของ Ionic เป็น position:fixed + overflow:hidden)
 */
html.landing-root #landing-static { position: fixed; inset: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; --font-body: Sarabun, Tahoma, Verdana, sans-serif; --font-prompt: Prompt; }
#landing-static * { box-sizing: border-box; }
#landing-static ul, #landing-static ol { margin: 0; padding: 0; list-style: none; }
.page {
  --ink: #283b49;
  --muted: #617581;
  --blue: #2999c9;
  min-height: 100vh;
  overflow-x: clip;
  background: #fff;
  color: var(--ink);
  font-family: Tahoma, Verdana, Segoe, sans-serif;
}

:root { scroll-padding-top: 90px; }
:where(#landing-static) a { color: inherit; text-decoration: none; }

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  min-height: 68px;
  padding: 0 max(24px, calc((100% - 1200px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid #edf1f3;
  background: #eef0f3;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}

.wordmark b { font-weight: 700; }

.wordmark {
  letter-spacing: -0.04em;
  color: var(--blue);
  font-family: var(--font-body, Sarabun, Tahoma, Verdana, sans-serif);
  font-size: 23px;
  font-weight: 300;
  line-height: 1;
  white-space: nowrap;
}

.brandMark {
  width: 36px;
  height: 36px;
  flex: none;
  color: var(--blue);
}

.nav,
.headerActions {
  display: flex;
  align-items: center;
  gap: 25px;
}

.phoneChip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 18px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(31, 55, 70, 0.12);
  color: #465b68;
  font-size: 15px;
  white-space: nowrap;
}

.phoneChip svg { color: #22a85a; flex: none; }
.phoneChip b { font-weight: 500; }
.phoneChip:hover { color: var(--blue); }

.nav a,
.loginLink {
  color: #465b68;
  font-size: 15px;
  white-space: nowrap;
}

.loginLink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.loginLink svg { color: var(--blue); flex: none; }

.nav a:hover,
.loginLink:hover { color: var(--blue); }

.headerCta,
.primaryCta,
.secondaryCta,
.darkCta {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.headerCta { background: var(--blue); }
.stickyCta { display: none; }
.headerCta:hover { background: #2185b2; transform: translateY(-1px); }
.primaryCta,
.darkCta { background: var(--blue); }
.primaryCta:hover,
.darkCta:hover { background: #2185b2; transform: translateY(-1px); }
.secondaryCta { border-color: var(--blue); background: #fff; color: var(--blue); }
.secondaryCta:hover { background: #eff9fd; }
.primaryCta span,
.darkCta span { color: #e3f6fc; font-size: 20px; }

.hero {
  padding: 20px 24px 40px;
  background: #fff;
}

.heroLayout {
  width: min(1200px, 100%);
  min-height: 400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  align-items: center;
  gap: 44px;
}

.heroInner { min-width: 0; }

.eyebrow,
.sectionKicker {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.eyebrow span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
}

.hero h1 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 39px;
  line-height: 1.15;
  font-family: var(--font-prompt), sans-serif;
  font-weight: 500;
}

.hero h1 span { color: #354e5d; }

.heroCopy {
  max-width: 500px;
  margin: 0;
  color: #586d79;
  font-size: 18px;
  line-height: 1.55;
}

.benefits {
  margin: 12px 0 16px;
  padding: 0;
  display: grid;
  gap: 4px;
  list-style: none;
}

.benefits li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #526875;
  font-size: 16px;
  line-height: 1.45;
}

.benefits li span {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  display: grid;
  place-items: center;
  margin-top: 0;
  border-radius: 50%;
  background: #e3f4fa;
  color: var(--blue);
  font-size: 15px;
  font-weight: 700;
}

.heroActions { display: flex; align-items: center; flex-wrap: wrap; gap: 11px 24px; }

.socialSignup { display: inline-flex; align-items: center; gap: 12px; color: #526875; font-size: 16px; white-space: nowrap; }

.googleBtn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid #e3eaee;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(31, 55, 70, 0.12);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.googleBtn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(31, 55, 70, 0.18); }

.productWindow {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid #d6e6ec;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(38, 92, 117, 0.15);
  transform: perspective(1400px) rotateY(-3deg);
}

.windowBar {
  height: 47px;
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e7eef1;
  background: #fff;
}

.windowBrand,
.windowUser { display: flex; align-items: center; gap: 8px; }
.windowBrand { color: #344f5d; font-size: 12px; font-weight: 600; }
.windowWordmark { color: var(--blue); font-size: 10px; font-weight: 300; white-space: nowrap; }
.windowUser { color: #657984; font-size: 11px; }
.windowUser span { width: 7px; height: 7px; border-radius: 50%; background: #62b900; }

.windowBody {
  min-height: 325px;
  display: grid;
  grid-template-columns: 126px 1fr;
}

.windowNav {
  padding: 18px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-right: 1px solid #e5edf0;
  background: #f8fafb;
}

.windowNav span { padding: 8px 9px; border-radius: 4px; color: #687c87; font-size: 11px; }
.windowNav .activeNav { background: #e5f4fa; color: #2185b1; font-weight: 700; }
.windowContent { min-width: 0; padding: 21px 19px 18px; }
.windowHeading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.windowHeading div { display: flex; flex-direction: column; gap: 4px; }
.windowHeading small { color: #83939b; font-size: 10px; }
.windowHeading strong { color: #304a58; font-size: 13px; }
.dateBadge { padding: 6px 7px; border: 1px solid #e3ebee; border-radius: 4px; color: #687c86; font-size: 10px; }

.summaryGrid { margin-top: 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.summaryTile { min-height: 78px; padding: 9px 8px; display: flex; flex-direction: column; gap: 6px; border: 1px solid #e4ecef; border-radius: 5px; background: #fff; }
.summaryTile span { color: #788992; font-size: 10px; }
.summaryTile b { color: #344e5c; font-size: 10px; font-weight: 600; }
.summaryTile i { width: 25px; height: 3px; margin-top: auto; border-radius: 2px; }
.greenBar { background: #41a6ce; }
.yellowBar { background: #e4b94b; }
.coralBar { background: #e58c70; }

.activity { margin-top: 17px; }
.activityTitle,
.activityRow { display: grid; grid-template-columns: minmax(100px, 1.1fr) minmax(105px, 1.2fr) minmax(82px, 1fr) 58px; align-items: center; gap: 7px; }
.activityTitle { padding: 0 7px 7px; border-bottom: 1px solid #e5edf0; }
.activityTitle strong { grid-column: 1 / 3; color: #354f5d; font-size: 11px; }
.activityTitle span { grid-column: 3 / 5; color: #89989e; font-size: 9px; text-align: right; }
.activityRow { min-height: 42px; padding: 4px 7px; border-bottom: 1px solid #edf2f4; color: #70828b; font-size: 9px; }
.activityRow b { color: #344e5c; font-size: 10px; font-weight: 600; }
.activityRow i { color: #2889b4; font-size: 9px; font-style: normal; text-align: right; }
.rowIcon { display: none; }
.previewCaption { display: block; padding: 7px 11px; background: #f8fbfc; color: #83929a; font-size: 10px; text-align: right; }

.features { padding: 64px max(24px, calc((100% - 1120px) / 2)) 78px; background: #f8fbfc; }
.featuresHeader { margin-bottom: 32px; display: flex; align-items: end; justify-content: space-between; gap: 28px; }
.featuresHeader h2,
.workflow h2,
.faq h2 { margin: 0; color: var(--ink); font-size: 32px; line-height: 1.38; }
.featuresHeader h2,
.workflow h2,
.faq h2 { font-family: var(--font-prompt), sans-serif; font-weight: 500; }
.featuresHeader > p { max-width: 370px; margin: 0 0 4px; color: var(--muted); font-size: 17px; line-height: 1.75; }
.featureGrid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid #dce7eb; border-bottom: 1px solid #dce7eb; }
.feature { min-height: 250px; padding: 20px 18px; display: flex; flex-direction: column; border-right: 1px solid #dce7eb; background: #fff; }
.feature:first-child { border-left: 1px solid #dce7eb; }
.featureNumber { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 6px; background: #e5f4fa; color: #2588b5; font-size: 11px; font-weight: 700; }
.lime .featureNumber { background: #f4f6dc; color: #737d29; }
.coral .featureNumber { background: #fff0e9; color: #a85539; }
.ink .featureNumber { background: #e9eff2; color: #3c5664; }
.feature h3 { margin: 19px 0 8px; color: #294454; font-family: var(--font-prompt), sans-serif; font-size: 16px; font-weight: 500; }
.feature p { margin: 0; color: #627681; font-size: 16px; line-height: 1.65; }
.featureDetail { margin-top: auto; padding-top: 14px; color: #69808b; font-size: 14px; line-height: 1.6; }

.workflow { padding: 76px max(24px, calc((100% - 1120px) / 2)); display: grid; grid-template-columns: 1fr 0.9fr; gap: 70px; background: #eaf6fa; }
.workflow .sectionKicker { color: var(--blue); }
.workflowCopy > p:not(.sectionKicker) { max-width: 430px; margin: 16px 0 21px; color: #5c707b; font-size: 17px; line-height: 1.75; }
.steps { margin: 0; padding: 0; list-style: none; }
.steps li { min-height: 86px; display: grid; grid-template-columns: 42px 1fr; gap: 12px; border-bottom: 1px solid #d4e5eb; }
.steps li:first-child { border-top: 1px solid #d4e5eb; }
.steps li > span { padding-top: 22px; color: var(--blue); font-size: 12px; font-weight: 700; }
.steps li div { padding: 17px 0 13px; }
.steps b { color: var(--ink); font-size: 14px; }
.steps p { margin: 4px 0 0; color: #617782; font-size: 15px; line-height: 1.6; }

.faq { padding: 78px max(24px, calc((100% - 1000px) / 2)) 84px; display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 54px; background: #fff; }
.faq h2 { font-size: 28px; }
.faqList { border-top: 1px solid #d7e4e9; }
.faqItem { border-bottom: 1px solid #d7e4e9; }
.faqItem summary { min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #2d4b5b; font-size: 15px; font-weight: 600; cursor: pointer; list-style: none; }
.faqItem summary::-webkit-details-marker { display: none; }
.faqItem summary span { color: #328db5; font-size: 20px; font-weight: 400; }
.faqItem[open] summary span { transform: rotate(45deg); }
.faqItem > p { max-width: 600px; margin: -2px 32px 17px 0; color: #627681; font-size: 15px; line-height: 1.7; }

.footer { padding: 0 max(24px, calc((100% - 1120px) / 2)); background: linear-gradient(160deg, #4f9fc8, #62b1d8 60%, #86cbe8); color: #fff; }
.footerMain { padding: 16px 0 8px; display: flex; justify-content: flex-start; align-items: flex-start; gap: 40px; }
.footerContact { max-width: 440px; display: flex; flex-direction: column; gap: 4px; font-style: normal; font-size: 14px; line-height: 1.35; }
.footerContact > b { font-size: 15px; font-weight: 600; line-height: 1.3; }
.contactRow { display: flex; align-items: flex-start; gap: 10px; color: #fff; }
.contactRow { gap: 8px; }
.contactRow svg { flex: none; width: 16px; height: 16px; margin-top: 2px; }
a.contactRow:hover { text-decoration: underline; }
.footerCopy { padding: 10px max(24px, calc((100% - 1120px) / 2)); background: #eef0f3; color: #000; font-size: 12.5px; line-height: 1.5; }

/* Narrower desktops / tablets: tighten the header so the sign-up button is never clipped. */
@media (max-width: 1280px) {
  .header { gap: 14px; }
  .nav { gap: 16px; }
  .headerActions { gap: 14px; }
  .headerCta { padding: 0 18px; min-height: 44px; flex-shrink: 0; }
  .phoneChip span { display: none; }
  .phoneChip { padding: 10px; background: #22a85a; box-shadow: 0 4px 12px rgba(34, 168, 90, 0.35); }
  .phoneChip svg { color: #fff; }
  .phoneChip:hover { background: #1b9250; color: #fff; }
}

@media (max-width: 1000px) {
  .wordmark { font-size: 19px; }
  .nav { gap: 12px; }
}

/* Tablet: the header nav keeps just pricing and getting started. */
@media (min-width: 621px) and (max-width: 1024px) {
  .nav a[href="#features"],
  .nav a[href="#faq"] { display: none; }
}

/* Tablet only: icon-only login link (phones keep the "เข้าสู่ระบบ" label). */
@media (min-width: 621px) and (max-width: 1000px) {
  .loginLink span { display: none; }
}

@media (max-width: 1100px) {
  .phoneChip { padding: 10px; background: #22a85a; box-shadow: 0 4px 12px rgba(34, 168, 90, 0.35); }
  .phoneChip svg { color: #fff; }
  .phoneChip:hover { background: #1b9250; color: #fff; }
}

@media (max-width: 900px) {
  .header { padding-right: 22px; padding-left: 22px; }
  .nav { gap: 14px; }
  .nav a { font-size: 13px; }
  .hero { padding-top: 40px; padding-bottom: 44px; }
  .heroLayout { min-height: 390px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; }
  .hero h1 { font-size: 32px; }
  .heroCopy { font-size: 16px; }
  .benefits li { font-size: 14px; }
  .productWindow { transform: none; }
  .windowBody { grid-template-columns: 100px 1fr; }
  .windowContent { padding: 16px 12px; }
  .activityTitle,
  .activityRow { grid-template-columns: minmax(70px, 1fr) minmax(75px, 1fr) 48px; }
  .activityTitle span,
  .activityRow > span:nth-of-type(2) { display: none; }
  .activityTitle strong { grid-column: 1 / 3; }
  .activityRow { grid-template-columns: 1fr 48px; }
  .featureGrid { grid-template-columns: repeat(2, 1fr); }
  .feature:nth-child(3) { border-left: 1px solid #dce7eb; }
  .feature:nth-child(n + 3) { border-top: 1px solid #dce7eb; }
  .workflow { grid-template-columns: 1fr 1fr; gap: 34px; }
  .faq { gap: 30px; }
}

@media (max-width: 620px) {
  .header { min-height: 58px; padding: 0 12px; gap: 8px; }
  .brand { gap: 6px; font-size: 12px; }
  .wordmark { font-size: 15px; }
  .brandMark { width: 28px; height: 28px; }
  .nav { display: none; }
  .headerActions { gap: 6px; }
  .phoneChip { padding: 8px; }
  .headerCta { display: none; }
  .stickyCta {
    position: fixed;
    top: 62px;
    left: 50%;
    z-index: 45;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 22px;
    border-radius: 999px;
    background: var(--blue);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 6px 18px rgba(31, 90, 120, 0.35);
    transform: translateX(-50%);
  }
  .heroCta,
  .darkCta { display: none; }
  .hero { padding: 32px 18px 38px; }
  .heroLayout { min-height: 0; grid-template-columns: 1fr; gap: 25px; }
  .hero h1 { margin: 8px 0 8px; font-size: 30px; line-height: 1.2; }
  .heroCopy { font-size: 16px; line-height: 1.5; }
  .benefits { margin: 14px 0 17px; gap: 7px; }
  .benefits li { font-size: 14px; }
  .heroActions { flex-wrap: wrap; gap: 8px; }
  .primaryCta, .secondaryCta { min-height: 40px; padding: 0 12px; font-size: 12px; }
  .productWindow { border-radius: 6px; }
  .windowBar { height: 43px; padding: 0 10px; }
  .windowBrand { font-size: 11px; }
  .windowUser { font-size: 10px; }
  .windowBody { min-height: 0; grid-template-columns: 1fr; }
  .windowNav { padding: 7px; flex-direction: row; gap: 3px; overflow: auto; border-right: 0; border-bottom: 1px solid #e1ebef; }
  .windowNav span { flex: 0 0 auto; padding: 6px 8px; font-size: 10px; }
  .windowContent { padding: 14px 10px 11px; }
  .windowHeading strong { font-size: 11px; }
  .dateBadge { padding: 5px; font-size: 9px; }
  .summaryGrid { gap: 5px; }
  .summaryTile { min-height: 68px; padding: 7px 5px; gap: 5px; }
  .summaryTile span, .summaryTile b { font-size: 9px; }
  .activity { margin-top: 12px; }
  .activityTitle { grid-template-columns: 1fr; }
  .activityTitle strong { grid-column: 1; }
  .activityRow { grid-template-columns: 20px 1fr auto; gap: 5px; min-height: 37px; }
  .activityRow > span:nth-of-type(2) { display: none; }
  .activityRow b, .activityRow i { font-size: 9px; }
  .rowIcon { width: 18px; height: 18px; display: grid; place-items: center; border-radius: 4px; background: #e9f4f8; color: #3285a8; font-size: 9px; }
  .previewCaption { padding: 6px; font-size: 9px; }
  .features { padding: 50px 18px 58px; }
  .featuresHeader { margin-bottom: 22px; align-items: flex-start; flex-direction: column; gap: 9px; }
  .featuresHeader h2, .workflow h2 { font-size: 27px; }
  .featuresHeader > p { font-size: 15px; }
  .featureGrid { grid-template-columns: 1fr; }
  .feature, .feature:first-child, .feature:nth-child(3) { min-height: 0; padding: 17px 15px; border-right: 1px solid #dce7eb; border-left: 1px solid #dce7eb; }
  .feature + .feature { border-top: 1px solid #dce7eb; }
  .feature h3 { margin: 13px 0 7px; font-size: 16px; }
  .feature p { font-size: 15px; }
  .featureDetail { font-size: 13px; }
  .featureDetail { margin-top: 10px; padding-top: 9px; }
  .workflow { padding: 50px 21px; grid-template-columns: 1fr; gap: 25px; }
  .workflowCopy > p:not(.sectionKicker) { font-size: 15px; }
  .faq { padding: 50px 21px 58px; grid-template-columns: 1fr; gap: 18px; }
  .faq h2 { font-size: 25px; }
  .faqItem summary { min-height: 54px; font-size: 14px; }
  .faqItem > p { font-size: 14px; }
  .footer { padding: 0 18px; }
  .footerMain { flex-direction: column; gap: 8px; padding: 14px 0 6px; }
  .footerCopy { padding: 10px 18px; }
}

@media (max-width: 380px) {
  .loginLink { display: none; }
}
/* ---- hero mockup ---- */
.stage {
  --blue: #2a93c1;
  position: relative;
  width: 100%;
  margin: 0;
  aspect-ratio: 1.63;
  container-type: inline-size;
  font-size: 1.2cqw;
  color: #34495a;
}

.sparkle { position: absolute; left: 2.5%; top: 17%; width: 5cqw; fill: var(--blue); z-index: 4; }

.pills { position: absolute; left: 7%; top: 0; z-index: 5; display: flex; flex-wrap: nowrap; justify-content: flex-start; gap: 0.8cqw; }
.pills span { display: inline-flex; align-items: center; gap: 0.7cqw; padding: 0.9cqw 1.6cqw; border: 1px solid #555; border-radius: 1cqw; background: #000; color: #fff; font-size: 1.4cqw; font-weight: 600; }
.pills svg { width: 1.9cqw; height: 1.9cqw; flex: none; }

.laptop { position: absolute; left: 7%; top: 9%; width: 79%; }

.screen {
  display: flex;
  aspect-ratio: 1.62;
  border: 0.8cqw solid #20262c;
  border-radius: 1.8cqw 1.8cqw 0.3cqw 0.3cqw;
  background: #f1f5f8;
  overflow: hidden;
}

.deck {
  position: relative;
  height: 6cqw;
  margin: 0 -3%;
  border-radius: 0 0 3cqw 3cqw / 0 0 2.5cqw 2.5cqw;
  background: linear-gradient(#e6eaee 0, #c3cbd2 70%, #a9b3bb);
  box-shadow: 0 2.5cqw 4cqw rgba(30, 60, 80, 0.22);
}
.deck span { position: absolute; left: 50%; top: 0; width: 16%; height: 1cqw; transform: translateX(-50%); border-radius: 0 0 1cqw 1cqw; background: #98a3ac; }

.rail { width: 6%; display: flex; flex-direction: column; align-items: center; gap: 2.4cqw; padding-top: 1.6cqw; background: #fff; border-right: 1px solid #e3eaef; }
.rail b { width: 2.8cqw; height: 2.8cqw; display: grid; place-items: center; border-radius: 50%; background: var(--blue); color: #fff; font-size: 1.5cqw; }
.rail i { color: var(--blue); font-style: normal; font-size: 2cqw; line-height: 1; }

.dash { flex: 1; min-width: 0; padding: 1.2cqw 1.8cqw; display: flex; flex-direction: column; gap: 0.9cqw; }
.dashTop { display: flex; justify-content: space-between; align-items: center; font-size: 1.8cqw; }
.topRight { display: flex; gap: 1cqw; align-items: center; font-size: 1cqw; color: #688; }
.topRight em { font-style: normal; padding: 0.2cqw 0.8cqw; border: 1px solid #d3dde4; border-radius: 0.5cqw; background: #fff; }
.topRight u { text-decoration: none; }
.dateRow { display: flex; justify-content: space-between; font-size: 1cqw; color: #688; }
.dateRow span { padding: 0.3cqw 1cqw; border: 1px solid #d3dde4; border-radius: 0.5cqw; background: #fff; }

.kpiRow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.9cqw; }
.kpi, .card { padding: 0.9cqw 1.1cqw; border-radius: 0.7cqw; background: #fff; box-shadow: 0 0.2cqw 0.8cqw rgba(40, 80, 100, 0.09); }
.kpi span, .card > span { display: block; font-size: 1cqw; color: #6f8390; }
.kpi b { display: block; margin-top: 0.3cqw; font-size: 1.7cqw; color: #1f3d52; }
.kpi small { display: block; margin-top: 0.3cqw; font-size: 0.9cqw; color: #d8456a; }
.blue b { color: var(--blue); }
.red b { color: #d8456a; }

.midRow { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 0.9cqw; }
.card b { display: block; margin-top: 0.3cqw; font-size: 1.6cqw; color: #1f3d52; }
.card small { display: block; font-size: 1cqw; color: #6f8390; }
.neg { color: #d8456a !important; }
.seg { display: flex; gap: 0.3cqw; margin-top: 0.8cqw; }
.seg i { flex: 1; height: 1cqw; border-radius: 0.3cqw; background: #f0a0b8; }
.seg i:nth-child(2) { background: #e05a7a; }
.seg i:nth-child(3) { background: #b8345a; }
.seg i:nth-child(4) { background: #7a2040; }
.miniDonut {
  width: 5cqw; height: 5cqw; margin-top: 0.6cqw; border-radius: 50%;
  background: conic-gradient(var(--blue) 0 55%, #e05a7a 0 80%, #f1b13a 0);
  -webkit-mask: radial-gradient(circle, transparent 50%, #000 52%);
  mask: radial-gradient(circle, transparent 50%, #000 52%);
}

.area { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 0.9cqw 1.2cqw; border-radius: 0.7cqw; background: #fff; box-shadow: 0 0.2cqw 0.8cqw rgba(40, 80, 100, 0.09); }
.areaHead { display: flex; justify-content: space-between; font-size: 1cqw; color: #6f8390; }
.areaHead i { display: inline-block; width: 1cqw; height: 0.4cqw; margin: 0 0.3cqw 0.2cqw 0.8cqw; vertical-align: middle; }
.l1 { background: var(--blue); }
.l2 { background: #e05a7a; }
.area svg { flex: 1; width: 100%; min-height: 0; }

.aiCard {
  position: absolute;
  left: -5%;
  top: 38%;
  z-index: 3;
  width: 36%;
  padding: 1.8cqw;
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 1.6cqw;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(1px);
  box-shadow: 0 2cqw 5cqw rgba(30, 70, 100, 0.25);
  display: flex;
  flex-direction: column;
  gap: 1.2cqw;
}
.aiTitle { display: flex; align-items: center; font-size: 1.2cqw; color: #6a7c88; }
.aiTitle span { display: flex; gap: 0.5cqw; }
.aiTitle b { flex: 1; text-align: center; font-weight: 500; }
.aiTitle i { width: 0.9cqw; height: 0.9cqw; border-radius: 50%; background: #f0a8a0; }
.aiTitle i:nth-child(2) { background: #f3d27a; }
.aiTitle i:nth-child(3) { background: #8fd29a; }
.aiBubble { align-self: flex-end; padding: 0.9cqw 1.4cqw; border-radius: 1cqw; background: var(--blue); color: #fff; font-size: 1.15cqw; }
.aiPanel { padding: 1.3cqw; border-radius: 1cqw; background: transparent; display: flex; flex-direction: column; gap: 0.9cqw; }
.aiPanel small { font-size: 1cqw; color: #6f8390; }
.aiStats { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1cqw; }
.aiStats div { padding: 1cqw; border: 1px solid #dfe8ee; border-radius: 0.8cqw; text-align: center; }
.aiStats b { display: block; font-size: 1.8cqw; color: var(--blue); }
.aiStats span { font-size: 1cqw; color: #7d909b; }
.aiLine { height: 0.5cqw; border-radius: 1cqw; background: #e1ecf2; }
.aiLine i { display: block; height: 100%; border-radius: 1cqw; background: var(--blue); }
.aiInput { display: flex; justify-content: space-between; align-items: center; padding: 1cqw 1.2cqw; border: 1px solid rgba(190, 210, 222, 0.8); border-radius: 0.8cqw; background: transparent; color: var(--blue); font-size: 1.4cqw; }
.aiInput em { font-style: normal; color: #9aaab4; font-size: 1.05cqw; }

.phone {
  position: absolute;
  right: 1%;
  bottom: 0;
  z-index: 4;
  width: 28%;
  aspect-ratio: 0.49;
  padding: 0.35cqw;
  border-radius: 4.4cqw;
  background: linear-gradient(135deg, #ffffff 0%, #cfd6dc 40%, #f3f5f7 70%, #b9c2c9 100%);
  transform: perspective(130cqw) rotateY(-16deg) rotateX(3deg) rotateZ(1deg);
  transform-origin: 65% 50%;
  box-shadow:
    0.3cqw 0 0 #b7c0c7,
    0.6cqw 0.05cqw 0 #98a3ab,
    0.9cqw 0.1cqw 0 #818c95,
    3.5cqw 3cqw 5cqw rgba(20, 40, 60, 0.3);
}
.btnL1, .btnL2, .btnR { position: absolute; width: 0.3cqw; border-radius: 0.2cqw; background: #aab4bb; }
.btnL1 { left: -0.35cqw; top: 14%; height: 3.5cqw; }
.btnL2 { left: -0.35cqw; top: 22%; height: 5cqw; }
.btnR { right: -0.35cqw; top: 20%; height: 7cqw; background: #98a3ab; }

.phoneScreen {
  position: relative;
  height: 100%;
  border: 0.45cqw solid #0b0f13;
  border-radius: 4.1cqw;
  background: #f3f8fb;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.phoneScreen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0) 32%);
  pointer-events: none;
}

.island { position: absolute; left: 50%; top: 1cqw; width: 6.2cqw; height: 1.8cqw; transform: translateX(-50%); border-radius: 1cqw; background: #05080b; z-index: 3; }
.statusBar { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; padding: 1.2cqw 2.4cqw 0; color: #fff; font-size: 1.15cqw; }
.statusBar span { display: flex; gap: 0.4cqw; }
.statusBar span i { width: 1cqw; height: 0.9cqw; border-radius: 0.2cqw; background: #fff; }
.statusBar span i:last-child { width: 1.6cqw; }

.phoneHero { display: flex; align-items: center; gap: 0.8cqw; padding: 1.4cqw 1.6cqw 4.6cqw; background: linear-gradient(160deg, #1f86b8, #4fb7de); color: #fff; }
.phoneHero div { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 1.35cqw; white-space: nowrap; }
.phoneHero small { font-size: 1cqw; color: rgba(255, 255, 255, 0.85); }
.avatar { width: 3.8cqw; height: 3.8cqw; display: grid; place-items: center; border: 0.2cqw solid rgba(255, 255, 255, 0.8); border-radius: 50%; background: rgba(255, 255, 255, 0.25); color: #fff; font-size: 1.7cqw; font-weight: 700; }
.heroBtns { display: flex; gap: 0.6cqw; }
.heroBtns i { width: 2.2cqw; height: 2.2cqw; border-radius: 50%; background: rgba(255, 255, 255, 0.25); }

.phoneTabs { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9cqw; margin: -3.4cqw 1.5cqw 0; }
.phoneTabs > span { position: relative; display: flex; flex-direction: column; align-items: center; gap: 0.6cqw; padding: 1.2cqw 0 1cqw; border-radius: 1.4cqw; background: #fff; font-size: 1.15cqw; font-weight: 600; box-shadow: 0 0.6cqw 1.6cqw rgba(30, 80, 110, 0.18); }
.phoneTabs > span i { width: 2.6cqw; height: 2.6cqw; border-radius: 0.8cqw; }
.ic1 { background: linear-gradient(135deg, #6cc4e6, #2a93c1); }
.ic2 { background: linear-gradient(135deg, #8fd6a0, #3fae6a); }
.ic3 { background: linear-gradient(135deg, #ffd27a, #f19a2a); }
.phoneTabs .tabOn { background: var(--blue); color: #fff; }
.phoneTabs .tabOn i { background: rgba(255, 255, 255, 0.9); }
.phoneTabs em { position: absolute; right: -0.3cqw; top: -0.8cqw; padding: 0.1cqw 0.7cqw; border-radius: 1cqw; background: #ff8a3d; color: #fff; font-size: 0.85cqw; font-style: normal; }

.phoneBody { flex: 1; display: flex; flex-direction: column; gap: 1cqw; padding: 1.6cqw 1.5cqw 1.4cqw; }
.phoneLabel { font-size: 1.2cqw; font-weight: 700; color: #26495c; }
.phoneList { display: flex; flex-direction: column; gap: 0.9cqw; }
.phoneRow { display: flex; align-items: center; gap: 1cqw; padding: 1cqw; border-radius: 1.2cqw; background: #fff; box-shadow: 0 0.3cqw 1cqw rgba(30, 80, 110, 0.1); }
.phoneRow > span { width: 3.2cqw; height: 3.2cqw; flex: none; border-radius: 1cqw; }
.t1 { background: linear-gradient(135deg, #ffb3c6, #ee6b8e); }
.t2 { background: linear-gradient(135deg, #8fd0ef, #2a93c1); }
.t3 { background: linear-gradient(135deg, #ffd27a, #f19a2a); }
.phoneRow div { flex: 1; min-width: 0; white-space: nowrap; display: flex; flex-direction: column; font-size: 1.2cqw; color: #26495c; }
.phoneRow div small { font-size: 0.95cqw; color: #8a9aa5; }
.phoneRow em { white-space: nowrap; font-style: normal; font-size: 1.15cqw; font-weight: 600; color: #26495c; }
.chips { display: flex; gap: 0.7cqw; flex-wrap: wrap; }
.chips span { padding: 0.6cqw 1.4cqw; border: 1px solid #c4d6e1; border-radius: 2cqw; background: #fff; font-size: 1.1cqw; color: #4a6272; }
.chips .chipOn { border-color: var(--blue); background: var(--blue); color: #fff; }

.shot { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.phoneScreen .shot { object-fit: fill; }

/* ---- ฟังก์ชัน 6 ช่อง (3 คอลัมน์) ---- */
.featureGrid.cols3 { grid-template-columns: repeat(3, 1fr); }
.featureGrid.cols3 .feature:nth-child(n + 4) { border-top: 1px solid #dce7eb; }
.featureGrid.cols3 .feature:nth-child(3n + 1) { border-left: 1px solid #dce7eb; }
@media (max-width: 900px) { .featureGrid.cols3 { grid-template-columns: repeat(2, 1fr); } .featureGrid.cols3 .feature:nth-child(n + 3) { border-top: 1px solid #dce7eb; } .featureGrid.cols3 .feature:nth-child(2n + 1) { border-left: 1px solid #dce7eb; } }
@media (max-width: 620px) { .featureGrid.cols3 { grid-template-columns: 1fr; } .featureGrid.cols3 .feature + .feature { border-top: 1px solid #dce7eb; } }
.reads a { font-weight: 700; color: #294454; }
.reads p { margin: 8px 0 0; color: #627681; }
.readsMore { text-align: center; margin: 20px 0 0; font-weight: 600; }
.heroMore { margin: 16px 0 0; font-size: 15px; } .heroMore a { color: var(--blue); font-weight: 600; }
.shot { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.phoneScreen .shot { object-fit: fill; }

/* ===== Pricing (3 แพ็กเกจ) ===== */
.pricing { padding: 72px max(24px, calc((100% - 1200px) / 2)); background: #f6fafc; }
.pricingHead { text-align: center; }
.pricingHead h2 { margin: 0 0 18px; color: #294454; font-family: var(--font-prompt), sans-serif; font-size: 32px; font-weight: 600; line-height: 1.3; }
.pricingPromo { display: inline-block; margin: 0 0 20px; padding: 10px 24px; border-radius: 999px; background: #fdf0dc; color: #c2680a; font-size: 16px; font-weight: 600; }
.billingToggle { display: flex; align-items: center; justify-content: center; gap: 14px; color: #8a99a3; font-size: 16px; font-weight: 600; }
.billingToggle .on { color: #283b49; }
.billingToggle em { margin-left: 6px; color: #f59e0b; font-style: italic; }
.billingToggle button { position: relative; width: 52px; height: 28px; padding: 0; border: 0; border-radius: 999px; background: var(--blue); cursor: pointer; }
.billingToggle button i { position: absolute; top: 3px; left: 27px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: left 140ms ease; }
.billingToggle button[aria-pressed="false"] i { left: 3px; }
.planGrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; align-items: stretch; }
.plan { display: flex; flex-direction: column; overflow: hidden; border: 1px solid #dce7eb; border-radius: 10px; background: #fff; }
.planBadge { padding: 9px; background: #e6ebee; color: #5c707b; font-size: 14px; font-weight: 700; letter-spacing: .08em; text-align: center; }
.plan.featured { border-color: var(--blue); box-shadow: 0 10px 30px rgba(41, 153, 201, .16); }
.plan.featured .planBadge { background: var(--blue); color: #fff; }
.plan:last-child .planBadge { background: linear-gradient(90deg, #c9961a, #f5c542 50%, #c9961a); color: #4a3500; }
.planBody { flex: 1; padding: 26px 24px 8px; }
.planBody h3 { margin: 0 0 6px; color: #283b49; font-family: var(--font-prompt), sans-serif; font-size: 24px; font-weight: 600; text-align: center; }
.planDesc { min-height: 52px; margin: 0 0 14px; color: #627681; font-size: 15px; line-height: 1.6; text-align: center; }
.planPrice { display: flex; align-items: baseline; justify-content: center; flex-wrap: wrap; gap: 8px; min-height: 64px; }
.planPrice b { color: var(--blue); font-family: var(--font-prompt), sans-serif; font-size: 44px; font-weight: 600; line-height: 1.1; }
.planPrice b.free { font-size: 52px; }
.planPrice small { color: #627681; font-size: 16px; }
.planPrice .was { width: 100%; color: #9aa7af; font-size: 16px; text-align: center; text-decoration: line-through; }
.planSub { min-height: 26px; margin: 8px 0 18px; color: #f59e0b; font-size: 14px; font-weight: 600; text-align: center; }
.pricing.monthly .py, .pricing:not(.monthly) .pm { display: none; }
.pricing.monthly .planSub { color: #8a99a3; }
.planList { display: grid; gap: 10px; padding-bottom: 16px; }
.planList li { display: flex; gap: 8px; color: #2f7d3b; font-size: 15px; font-weight: 600; line-height: 1.5; }
.planList li span { color: #2f9e44; }
.planBtn { margin: 8px 24px 24px; min-height: 48px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--blue); border-radius: 6px; font-size: 16px; font-weight: 600; transition: background 140ms ease, transform 140ms ease; }
.planBtn.solid { background: var(--blue); color: #fff; }
.planBtn.solid:hover { background: #2185b2; transform: translateY(-1px); }
.planBtn.outline { background: #fff; color: var(--blue); }
.planBtn.outline:hover { background: #eaf6fb; }
.pricingNote { max-width: 780px; margin: 24px auto 0; color: #7a8c96; font-size: 14px; line-height: 1.7; text-align: center; }
@media (max-width: 900px) { .planGrid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } .planDesc { min-height: 0; } }
@media (max-width: 620px) { .pricing { padding: 48px 16px; } .pricingHead h2 { font-size: 24px; } .pricingPromo { padding: 9px 16px; font-size: 14px; } }
.planList li.special { align-items: center; flex-wrap: wrap; }
.planList li.special span { color: #f59e0b; }
.planTag { padding: 1px 9px; border-radius: 4px; background: #f59e0b; color: #fff; font-size: 12px; font-style: normal; font-weight: 700; line-height: 1.6; }
.planList li.exclude, .planList li.exclude span { color: #111; }

/* ---- ลดขนาดตัวอักษร/ช่องว่างระหว่างส่วน (desktop+tablet) — 2026-10-11 ---- */
@media (min-width: 761px) {
  .hero { padding: 12px 24px 20px; }
  .heroLayout { min-height: 330px; gap: 34px; }
  .eyebrow, .sectionKicker { margin-bottom: 8px; }
  .hero h1 { margin-bottom: 6px; font-size: 34px; line-height: 1.1; }
  .heroCopy { font-size: 16px; line-height: 1.45; }
  .benefits { margin: 8px 0 12px; gap: 2px; }
  .benefits li { font-size: 15px; line-height: 1.35; gap: 10px; }
  .benefits li span { width: 22px; height: 22px; flex-basis: 22px; font-size: 13px; }
  .features { padding: 40px max(24px, calc((100% - 1120px) / 2)) 48px; }
  .featuresHeader > p { font-size: 16px; line-height: 1.6; }
  .feature { min-height: 200px; padding: 16px 16px; }
  .feature p { font-size: 15px; line-height: 1.55; }
  .featureDetail { padding-top: 10px; font-size: 13px; line-height: 1.5; }
  .workflow { padding: 44px max(24px, calc((100% - 1120px) / 2)); gap: 48px; }
  .workflowCopy > p:not(.sectionKicker) { margin: 12px 0 16px; font-size: 16px; line-height: 1.6; }
  .steps li { min-height: 70px; }
  .steps li > span { padding-top: 16px; }
  .steps li div { padding: 12px 0 10px; }
  .steps p { font-size: 14px; line-height: 1.5; }
  .faq { padding: 44px max(24px, calc((100% - 1000px) / 2)) 48px; gap: 40px; }
  .workflow h2, .faq h2, .featuresHeader h2 { font-size: 26px; line-height: 1.3; }
  .faqItem summary { min-height: 46px; font-size: 15px; }
  .faqItem > p { margin-bottom: 12px; font-size: 14.5px; line-height: 1.6; }
}

/* ลดช่องว่าง/ขนาดส่วนแพ็กเกจ — 2026-10-11 */
@media (min-width: 761px) {
  .pricing { padding: 40px max(24px, calc((100% - 1200px) / 2)); }
  .pricingHead h2 { margin-bottom: 12px; font-size: 28px; line-height: 1.25; }
  .pricingPromo { margin-bottom: 14px; padding: 8px 20px; font-size: 15px; }
  .planGrid { margin-top: 24px; gap: 16px; }
  .planBody { padding: 18px 20px 6px; }
  .planBody h3 { font-size: 21px; }
  .planDesc { min-height: 44px; margin-bottom: 8px; font-size: 14px; line-height: 1.5; }
  .planPrice { min-height: 52px; }
  .planPrice b { font-size: 38px; }
  .planPrice b.free { font-size: 44px; }
  .planSub { margin: 4px 0 12px; }
  .planList { gap: 7px; padding-bottom: 10px; }
  .planList li { font-size: 14px; line-height: 1.4; }
  .planBtn { margin: 6px 20px 18px; min-height: 42px; font-size: 15px; }
}

/* กรอบมือถือ: ภาพสำเร็จรูป (บิด 3D + เงา เรนเดอร์ที่ 4 เท่าแล้วย่อด้วย Lanczos) — คมกว่าให้เบราว์เซอร์บิดสดๆ */
.phoneImg { position: absolute; left: 70.4cqw; bottom: -8.025cqw; width: 36.5cqw; height: auto; z-index: 4; pointer-events: none; }

/* โปรโมชั่นย้ายมาไว้ใต้ปุ่มสมัครใช้งานฟรีใน hero */
.heroPromo { margin: 14px 0 0; padding: 8px 20px; font-size: 15px; }

/* ไม่มีหัวข้อแพ็กเกจแล้ว — ดึงการ์ดแพ็กเกจขึ้นให้ชิดส่วน hero */
.pricing { padding-top: 16px; }
.pricing .planGrid { margin-top: 0; }
@media (max-width: 620px) { .pricing { padding-top: 24px; } }

/* เมนู "แพ็กเกจ": เลื่อนมาแล้วต้องเห็นหัวการ์ดใต้ header (scroll-padding ของ html ไม่มีผลกับ container ที่เลื่อนเอง) */
.pricing { scroll-margin-top: 84px; }

/* ปุ่มติดต่อฝ่ายขาย (เหมือนปุ่มโทรใน header) แทนปุ่มสมัครของแพ็กเกจที่ต้องคุยกับฝ่ายขาย */
.salesBtn { margin: 8px 24px 24px; min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid #e3ebef; border-radius: 12px; background: #fff; box-shadow: 0 4px 16px rgba(31, 55, 70, 0.12); color: #465b68 !important; font-size: 15px; white-space: nowrap; transition: color 140ms ease; }
.salesBtn svg { color: #22a85a; flex: none; }
.salesBtn b { font-weight: 500; }
.salesBtn:hover { color: var(--blue) !important; }
@media (min-width: 761px) { .salesBtn { margin: 6px 20px 18px; min-height: 42px; } }

/* ภาพโปรโมต ก่อน/หลัง ใช้ Paperless Account (ใต้ส่วนหัว ก่อนแพ็กเกจ) */
.promo { padding: 0 max(24px, calc((100% - 1200px) / 2)) 40px; background: #fff; }
.promoImg { display: block; width: min(1152px, 100%); height: auto; margin: 0 auto; border-radius: 20px; box-shadow: 0 12px 32px rgba(30, 64, 110, 0.16); }
@media (max-width: 760px) {
  .promo { padding: 0 12px 28px; }
  .promoImg { border-radius: 12px; }
}

.phoneChip.fbChip svg { color: #1877f2; }
@media (max-width: 980px) {
  .phoneChip.fbChip svg { color: #fff; }
  .phoneChip.fbChip { background: #1877f2; box-shadow: 0 4px 12px rgba(24, 119, 242, 0.35); }
  .phoneChip.fbChip:hover { background: #1466d1; color: #fff; }
}

.phoneChip.lineChip svg { color: #06c755; }
@media (max-width: 980px) {
  .phoneChip.lineChip svg { color: #fff; }
  .phoneChip.lineChip { background: #06c755; box-shadow: 0 4px 12px rgba(6, 199, 85, 0.35); }
  .phoneChip.lineChip:hover { background: #05a647; color: #fff; }
}

/* เมนูหลักอยู่กึ่งกลางหน้าจอ (จอกว้างพอ) — chip Facebook/LINE เหลือแค่ไอคอนเพื่อให้พอที่ */
@media (min-width: 1600px) {
  .header { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; padding: 0 max(24px, calc((100% - 1800px) / 2)); }
  .header > .brand { justify-self: start; }
  .header > .nav { justify-self: center; }
  .header > .headerActions { justify-self: end; gap: 14px; }
  .phoneChip.fbChip span, .phoneChip.lineChip span { display: none; }
  .phoneChip.fbChip, .phoneChip.lineChip { padding: 10px; }
}

/* tablet: เมนูหลักเหลือแค่ "แพ็กเกจ/ราคา" */
@media (min-width: 761px) and (max-width: 1024px) {
  .nav a:not([href$="#pricing"]) { display: none; }
}
