/* ================================================
   COMPLIVAULT V2 — Main Stylesheet
   XeniaOne | xeniaone.com/complivault/
   ================================================ */

:root {
  --teal:       #20A5B5;
  --teal-dark:  #178a99;
  --teal-pale:  #f0fbfc;
  --teal-light: #9AE0E5;
  --green:      #7EBC36;
  --green-dark: #67a02c;
  --dark:       #353535;
  --mid:        #555555;
  --muted:      #888888;
  --light-bg:   #f7fafa;
  --white:      #ffffff;
  --border:     #e2e8ea;
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.07);
  --shadow:     0 4px 20px rgba(0,0,0,0.10);
  --shadow-lg:  0 8px 40px rgba(0,0,0,0.16);
  --radius:     12px;
  --radius-lg:  20px;
  --max-w:      1260px;
  --animate-duration: 600ms;
  --animate-delay: 0.7s;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* Offset anchor targets so fixed nav doesn't cover headings */
section[id], [id="contact"] { scroll-margin-top: 80px; }

body {
  margin: 0; padding: 0;
  font-family: "Kanit-Light", sans-serif;
  font-size: 17px;
  color: var(--dark);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  margin: 0; line-height: 1.2;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
p { margin: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-dark); }
ul, ol { margin: 0; padding: 0; list-style: none; }

/* ---- Fonts ---- */
@font-face { font-family: "Kanit-Light";    src: url("../fonts/Kanit-Light.woff")    format("woff"); }
@font-face { font-family: "Kanit-Regular";  src: url("../fonts/Kanit-Regular.woff")  format("woff"); }
@font-face { font-family: "Kanit-Medium";   src: url("../fonts/Kanit-Medium.woff")   format("woff"); }
@font-face { font-family: "Kanit-SemiBold"; src: url("../fonts/Kanit-SemiBold.woff") format("woff"); }

/* ---- Layout ---- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

section { padding: 88px 0; }

.section-label {
  display: inline-block;
  font-family: "Kanit-Medium";
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--teal);
  margin-bottom: 14px;
}

.section-title {
  font-family: "Kanit-SemiBold";
  font-size: 42px;
  line-height: 1.2;
  color: var(--dark);
  margin-bottom: 18px;
}

.section-sub {
  font-family: "Kanit-Light";
  font-size: 18px;
  color: var(--mid);
  line-height: 1.75;
  max-width: 640px;
  margin-bottom: 52px;
}

.text-center { text-align: center; }
.text-center .section-sub { margin-left: auto; margin-right: auto; }
.text-white { color: var(--white) !important; }
.text-white-muted { color: rgba(255,255,255,0.80) !important; }
.text-teal-light { color: var(--teal-light) !important; }

/* ---- Buttons ---- */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--teal); color: var(--white);
  font-family: "Kanit-Medium"; font-size: 16px;
  padding: 14px 34px; border-radius: var(--radius);
  border: none; cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  text-decoration: none; white-space: nowrap;
}
.btn-primary:hover {
  background: var(--teal-dark); color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(32,165,181,0.35);
}

.btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: var(--dark);
  font-family: "Kanit-Medium"; font-size: 16px;
  padding: 13px 32px; border-radius: var(--radius);
  border: 2px solid rgba(53,53,53,0.25);
  cursor: pointer; transition: border-color 0.2s, color 0.2s;
  text-decoration: none; white-space: nowrap;
}
.btn-outline:hover { border-color: var(--teal); color: var(--teal); }

.btn-white {
  display: inline-flex; align-items: center;
  background: var(--white); color: var(--teal);
  font-family: "Kanit-Medium"; font-size: 16px;
  padding: 14px 34px; border-radius: var(--radius);
  border: none; cursor: pointer;
  transition: box-shadow 0.2s, transform 0.15s;
  text-decoration: none;
}
.btn-white:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); color: var(--teal-dark); }

/* ====================================================
   NAVIGATION
   ==================================================== */
.nav-placeholder { height: 72px; }

.cv-nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--white);
  height: 72px;
  display: flex; align-items: center;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.cv-nav.scrolled {
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; max-width: var(--max-w);
  margin: 0 auto; padding: 0 32px;
}

.nav-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.nav-logo { width: 200px; height: auto; }

.nav-brand-text { display: flex; flex-direction: column; gap: 1px; }

.nav-brand-name {
  font-family: "Kanit-SemiBold";
  font-size: 18px;
  color: var(--dark);
  line-height: 1.1;
  letter-spacing: -0.2px;
}

.nav-suite-badge {
  font-family: "Kanit-Regular";
  font-size: 11px; color: var(--muted);
  background: var(--light-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3px 11px;
  white-space: nowrap;
}

.nav-links {
  display: flex; align-items: center; gap: 4px;
}

.nav-link {
  font-family: "Kanit-Regular"; font-size: 15px;
  color: var(--dark); padding: 8px 14px;
  border-radius: 8px; display: block;
  transition: background 0.18s, color 0.18s;
}
.nav-link:hover { background: var(--teal-pale); color: var(--teal); }

/* Dropdown */
.nav-dropdown { position: relative; }

.dropdown-trigger {
  display: flex; align-items: center; gap: 5px;
  cursor: pointer;
  font-family: "Kanit-Regular"; font-size: 15px;
  color: var(--dark); padding: 8px 14px;
  border-radius: 8px;
  transition: background 0.18s, color 0.18s;
}
.nav-dropdown:hover .dropdown-trigger { background: var(--teal-pale); color: var(--teal); }

.chevron {
  width: 14px; height: 14px; stroke: currentColor;
  transition: transform 0.2s; flex-shrink: 0;
}
.nav-dropdown:hover .chevron { transform: rotate(180deg); }

.dropdown-menu {
  position: absolute; top: calc(100% + 8px); left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 230px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 200;
}
.nav-dropdown:hover .dropdown-menu {
  opacity: 1; visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px;
  font-family: "Kanit-Regular"; font-size: 14px;
  color: var(--dark);
  border-bottom: 1px solid var(--border);
  transition: background 0.15s, color 0.15s;
}
.dropdown-item:last-child { border-bottom: none; }
.dropdown-item:hover { background: var(--teal-pale); color: var(--teal); }
.dropdown-item-dot {
  width: 6px; height: 6px;
  background: var(--teal-light);
  border-radius: 50%; flex-shrink: 0;
}

.nav-cta { margin-left: 20px; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 8px; background: none; border: none;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--dark); border-radius: 2px; transition: all 0.3s; display: block; }

/* ====================================================
   HERO
   ==================================================== */
.hero {
  background: radial-gradient(ellipse at 70% 30%, #9AE0E5 0%, #7BDEE5 60%, #5fd4dd 100%);
  min-height: calc(90vh - 72px);
  display: flex; align-items: center;
  padding: 60px 0;
}

.hero-inner {
  display: flex; align-items: center;
  justify-content: space-between; gap: 60px;
}

.hero-content { flex: 1; max-width: 560px; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.4);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 30px; padding: 5px 14px;
  font-family: "Kanit-Regular"; font-size: 13px;
  color: var(--dark); margin-bottom: 24px;
}
.hero-eyebrow-dot { width: 6px; height: 6px; background: var(--teal-dark); border-radius: 50%; }

.hero h1 {
  font-family: "Kanit-SemiBold"; font-size: 56px;
  line-height: 1.15; color: var(--dark);
  margin-bottom: 28px;
}
.hero h1 em { font-style: normal; color: #12717e; }

.hero-sub {
  font-family: "Kanit-Light"; font-size: 19px;
  line-height: 1.7; color: var(--dark);
  opacity: 0.82; margin-bottom: 44px;
}

.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-proof {
  margin-top: 48px;
  display: flex; align-items: center; gap: 20px;
  flex-wrap: wrap;
}
.hero-proof-label {
  font-family: "Kanit-Light"; font-size: 13px;
  color: var(--dark); opacity: 0.65;
}
.hero-proof-badges { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.hero-badge {
  background: rgba(255,255,255,0.45);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 6px; padding: 4px 10px;
  font-family: "Kanit-Regular"; font-size: 12px;
  color: var(--dark);
}

.hero-img { flex: 0 0 44%; }

/* ====================================================
   TRUST BAR
   ==================================================== */
.trust-bar { background: var(--dark); padding: 20px 0; }

.trust-bar-inner {
  display: flex; align-items: center;
  justify-content: center; gap: 36px; flex-wrap: wrap;
}

.trust-item {
  display: flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.65);
  font-family: "Kanit-Regular"; font-size: 13px;
}
.trust-divider { width: 1px; height: 18px; background: rgba(255,255,255,0.15); }

/* ====================================================
   PROBLEM — "Sound Familiar?"
   ==================================================== */
.problem-section { background: #0f2428; padding: 88px 0; }

.pain-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; margin-top: 52px;
}

.pain-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--radius); padding: 38px 30px;
  position: relative; overflow: hidden;
  transition: background 0.2s;
}
.pain-card:hover { background: rgba(255,255,255,0.07); }
.pain-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 4px; height: 100%; background: var(--teal);
}

.pain-icon { font-size: 30px; margin-bottom: 18px; }

.pain-title {
  font-family: "Kanit-SemiBold"; font-size: 20px;
  color: var(--white); margin-bottom: 14px;
}

.pain-body {
  font-family: "Kanit-Light"; font-size: 15px;
  color: rgba(255,255,255,0.82); line-height: 1.75;
}

/* ====================================================
   WHAT IS COMPLIVAULT
   ==================================================== */
.what-is-section { background: var(--white); }

.what-is-inner {
  display: flex; align-items: center; gap: 88px;
}

.what-is-content { flex: 1; }
.what-is-img { flex: 0 0 36%; }

.what-is-content p {
  font-size: 17px; color: var(--mid);
  line-height: 1.85; margin-bottom: 22px;
}

.suite-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--teal-pale);
  border: 1px solid var(--teal-light);
  border-radius: 30px; padding: 7px 16px;
  font-family: "Kanit-Regular"; font-size: 13px;
  color: var(--teal-dark); margin-top: 8px;
}

/* ====================================================
   PILLARS — 3 Core Strengths
   ==================================================== */
.pillars-section { background: var(--light-bg); }

.pillars-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 28px; margin-top: 52px;
}

.pillar-card {
  background: var(--white); border-radius: var(--radius);
  padding: 44px 34px; border: 1px solid var(--border);
  text-align: center;
  transition: box-shadow 0.2s, transform 0.2s;
}
.pillar-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }

.pillar-num {
  font-family: "Kanit-SemiBold"; font-size: 52px;
  color: var(--teal-light); line-height: 1;
  margin-bottom: 16px;
}

.pillar-title {
  font-family: "Kanit-SemiBold"; font-size: 22px;
  color: var(--dark); margin-bottom: 14px;
}

.pillar-body { font-size: 15px; color: var(--mid); line-height: 1.75; }

/* ====================================================
   DOCUMENT TYPES
   ==================================================== */
.doctypes-section { background: var(--white); }

.doctype-intro {
  font-size: 17px; color: var(--mid);
  line-height: 1.85; max-width: 700px; margin-bottom: 52px;
}

.doctype-categories {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.doctype-category {
  border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}

.doctype-cat-header {
  background: var(--teal); padding: 18px 24px;
}
.doctype-cat-title {
  font-family: "Kanit-Medium"; font-size: 15px;
  color: var(--white); margin-bottom: 3px;
}
.doctype-cat-badge {
  font-family: "Kanit-Light"; font-size: 12px;
  color: rgba(255,255,255,0.75);
}

.doctype-items { padding: 6px 0; }

.doctype-item {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 24px;
  border-bottom: 1px solid var(--border);
}
.doctype-item:last-child { border-bottom: none; }

.doctype-code {
  font-family: "Kanit-Medium"; font-size: 11px;
  color: var(--teal); background: var(--teal-pale);
  border-radius: 4px; padding: 3px 8px;
  min-width: 34px; text-align: center; flex-shrink: 0;
}

.doctype-name {
  font-family: "Kanit-Regular"; font-size: 14px; color: var(--dark);
}

.doctype-freq {
  margin-left: auto; font-family: "Kanit-Light";
  font-size: 11px; color: var(--muted); white-space: nowrap;
}

.doctype-cta { margin-top: 40px; text-align: center; }
.doctype-cta p {
  font-size: 15px; color: var(--mid); margin-bottom: 20px;
}

/* ====================================================
   PMS INTEGRATION
   ==================================================== */
.pms-section {
  background: var(--teal-pale);
  border-top: 1px solid #c9eef2;
  border-bottom: 1px solid #c9eef2;
}

.pms-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: start;
}

.pms-content p {
  font-size: 17px; color: var(--mid);
  line-height: 1.85; margin-bottom: 22px;
}

.pms-note {
  background: var(--white);
  border-left: 4px solid var(--teal);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  font-family: "Kanit-Regular"; font-size: 14px;
  color: var(--mid); margin-top: 28px;
  line-height: 1.65;
}

.pms-caps {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px; margin-top: 36px;
}

.pms-cap {
  background: var(--white); border-radius: var(--radius);
  padding: 24px 20px; border: 1px solid var(--border);
  transition: box-shadow 0.2s;
}
.pms-cap:hover { box-shadow: var(--shadow-sm); }

/* Ingestion method cards */
.pms-method {
  background: var(--white); border-radius: var(--radius);
  padding: 26px 24px; border: 1px solid var(--border);
  display: flex; align-items: flex-start; gap: 18px;
  margin-bottom: 16px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.pms-method:last-child { margin-bottom: 0; }
.pms-method:hover { box-shadow: var(--shadow-sm); transform: translateX(3px); }

.pms-method-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--teal-pale); border: 1px solid var(--teal-light);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.pms-method-icon svg { width: 22px; height: 22px; stroke: var(--teal-dark); fill: none; stroke-width: 1.8; }

.pms-method-content {}
.pms-method-title {
  font-family: "Kanit-Medium"; font-size: 15px;
  color: var(--dark); margin-bottom: 5px;
}
.pms-method-desc {
  font-size: 13px; color: var(--mid); line-height: 1.65;
}

.pms-cap-title {
  font-family: "Kanit-Medium"; font-size: 14px;
  color: var(--teal-dark); margin-bottom: 8px;
}

.pms-cap-body { font-size: 13px; color: var(--mid); line-height: 1.65; }

/* ====================================================
   WORKFLOW DIAGRAM
   ==================================================== */
.workflow-section { background: #0f2428; padding: 88px 0; }

.workflow-steps {
  display: flex; align-items: flex-start;
  justify-content: center; gap: 0;
  margin-top: 60px;
}

.workflow-step {
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
  flex: 1; max-width: 210px;
}

.step-connector {
  flex: 0 0 50px; height: 2px;
  background: linear-gradient(to right, var(--teal), rgba(154,224,229,0.3));
  margin-top: 35px; position: relative; align-self: flex-start;
}
.step-connector::after {
  content: '';
  position: absolute; right: -7px; top: -5px;
  border: 6px solid transparent;
  border-left-color: rgba(154,224,229,0.5);
}

.step-num {
  width: 70px; height: 70px; border-radius: 50%;
  background: var(--teal); color: var(--white);
  font-family: "Kanit-SemiBold"; font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; flex-shrink: 0;
  box-shadow: 0 0 0 8px rgba(32,165,181,0.15);
}

.step-title {
  font-family: "Kanit-Medium"; font-size: 14px;
  color: var(--white); margin-bottom: 10px; line-height: 1.4;
}

.step-desc {
  font-size: 12px; color: rgba(255,255,255,0.52);
  line-height: 1.65; padding: 0 6px;
}

/* ====================================================
   KEY FEATURES
   ==================================================== */
.features-section {
  background: url(../../images/Key-Featured-Bg.jpg) center center no-repeat;
  background-size: cover;
}
.features-overlay { background: rgba(28,28,28,0.86); padding: 88px 0; }

.features-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 20px; margin-top: 52px;
}

.feature-card {
  background: var(--teal); border-radius: var(--radius);
  padding: 30px 22px; text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.feature-icon-wrap {
  width: 74px; height: 74px; background: var(--white);
  border-radius: 50%; display: flex;
  align-items: center; justify-content: center;
  margin: 0 auto 20px auto; padding: 18px;
}
.feature-icon-wrap img { width: 100%; height: auto; }

.feature-title {
  font-family: "Kanit-SemiBold"; font-size: 17px;
  color: var(--white); margin-bottom: 12px; line-height: 1.35;
}

.feature-body {
  font-size: 13px; color: rgba(255,255,255,0.93); line-height: 1.75;
}

/* ====================================================
   WHO IT'S FOR — Personas
   ==================================================== */
.personas-section { background: var(--light-bg); }

.personas-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 24px; margin-top: 52px;
}

.persona-card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border);
  border-left: 5px solid var(--teal);
  padding: 38px 34px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.persona-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }

.persona-role {
  font-family: "Kanit-SemiBold"; font-size: 20px;
  color: var(--dark); margin-bottom: 20px;
  display: flex; align-items: center; gap: 12px;
}

.persona-pain {
  background: #fffbeb;
  border-left: 3px solid #f59e0b;
  border-radius: 0 8px 8px 0;
  padding: 14px 18px;
  font-family: "Kanit-Light"; font-size: 14px;
  color: #6b4f00; line-height: 1.7;
  margin-bottom: 20px; font-style: italic;
}

.persona-relief {
  font-size: 15px; color: var(--mid); line-height: 1.8;
}
.persona-relief strong {
  font-family: "Kanit-SemiBold"; color: var(--teal-dark);
}

/* ====================================================
   BENEFITS
   ==================================================== */
.benefits-section { background: var(--green); padding: 88px 0; }

.benefits-inner { display: flex; align-items: center; gap: 80px; }
.benefits-img { flex: 0 0 28%; }
.benefits-content { flex: 1; }

.benefits-list { margin-top: 36px; }

.benefit-item {
  display: flex; align-items: flex-start; gap: 16px;
  margin-bottom: 22px;
}

.benefit-check {
  width: 24px; height: 24px;
  background: rgba(255,255,255,0.25);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px;
}
.benefit-check svg { width: 12px; height: 12px; stroke: white; stroke-width: 2.5; fill: none; }

.benefit-text {
  font-family: "Kanit-Light"; font-size: 16px;
  color: var(--white); line-height: 1.65;
}
.benefit-text strong { font-family: "Kanit-SemiBold"; }

/* ====================================================
   CTA / CONTACT SECTION
   ==================================================== */
.cta-section {
  background: url(../../images/Contact-bg.jpg) center center no-repeat;
  background-size: cover;
}
.cta-overlay { background: rgba(228,228,228,0.93); padding: 88px 0; }

.cta-header { text-align: center; margin-bottom: 52px; }

.cta-heading {
  font-family: "Kanit-SemiBold"; font-size: 42px;
  line-height: 1.2; color: var(--dark); margin-bottom: 18px;
}

.cta-sub {
  font-size: 18px; color: var(--mid);
  max-width: 640px; margin: 0 auto; line-height: 1.8;
}

.cta-form-wrap {
  max-width: 700px; margin: 0 auto;
  background: var(--white); border-radius: var(--radius-lg);
  padding: 44px 48px; box-shadow: var(--shadow);
}

.form-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px; margin-bottom: 16px;
}
.form-row.full { grid-template-columns: 1fr; }

.form-field {
  width: 100%; height: 50px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  padding: 0 18px; font-family: "Kanit-Regular"; font-size: 15px;
  color: var(--dark); background: var(--white);
  outline: none; transition: border-color 0.2s;
}
.form-field:focus { border-color: var(--teal); }
textarea.form-field { height: 92px; padding: 14px 18px; resize: vertical; }
.form-field::placeholder { color: var(--muted); font-family: "Kanit-Light"; }

/* Error states — must match classes used in utils.js */
.CntctTxtWrn {
  width: 100%; height: 50px;
  border: 1.5px solid #dc2626 !important; border-radius: var(--radius-sm);
  padding: 0 18px; font-family: "Kanit-Regular"; font-size: 15px;
  color: var(--dark); background: #fff5f5;
  outline: none;
}
.CntctTxtWrn::placeholder { color: #dc2626; font-family: "Kanit-Light"; }
.LyrTxtError {
  border: 1.5px solid #dc2626 !important;
  background: #fff5f5;
}

.form-submit-wrap {
  display: flex; justify-content: flex-end; margin-top: 24px;
}

.form-submit-btn {
  background: var(--teal); color: var(--white);
  font-family: "Kanit-Medium"; font-size: 18px;
  padding: 14px 44px; border: none; border-radius: var(--radius);
  cursor: pointer; transition: background 0.2s, transform 0.15s;
}
.form-submit-btn:hover { background: var(--teal-dark); transform: translateY(-1px); }

/* Sending overlay — must use class names referenced in utils.js */
.CntctSendOtr {
  display: none; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 24px; font-family: "Kanit-Medium";
  font-size: 18px; color: var(--dark); gap: 8px;
}

/* Trust badges below form */
.form-trust {
  display: flex; align-items: center; justify-content: center;
  gap: 24px; margin-top: 28px; flex-wrap: wrap;
}
.form-trust-item {
  display: flex; align-items: center; gap: 8px;
  font-family: "Kanit-Regular"; font-size: 13px; color: var(--mid);
}
.form-trust-dot { width: 5px; height: 5px; background: var(--teal); border-radius: 50%; flex-shrink: 0; }
.cert-link { font-family: "Kanit-Medium"; color: var(--teal); font-size: 13px; }

/* ====================================================
   CERTIFICATIONS POPUP (preserved from v1)
   ==================================================== */
/*.overlay {
  position: fixed; top: 0; bottom: 0; left: 0; right: 0;
  background: rgba(0,0,0,0.78);
  transition: opacity 500ms; visibility: hidden; opacity: 0; z-index: 9999;
}
.overlay:target { visibility: visible; opacity: 1; }

.popup {
  padding: 20px; border-radius: 10px; width: 500px;
  position: relative; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.popup .close {
  position: absolute; top: -32px; right: 0;
  font-size: 32px; color: white; text-decoration: none; line-height: 1;
}
.wrapper { overflow: hidden; border-radius: 10px; }
.carousel { position: relative; width: 100%; overflow: hidden; }
.slide { position: absolute; width: 100%; top: 0; }
.slide:first-child { position: relative; }
.slide img { width: 100%; height: auto; display: block; }
.btn.prev, .btn.next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,0.5); border: none; cursor: pointer;
  padding: 8px; z-index: 10; fill: white; border-radius: 4px;
}
.btn.prev { left: 8px; }
.btn.next { right: 8px; }*/

.overlay {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  transition: opacity 500ms;
  visibility: hidden;
  opacity: 0;
}

.overlay:target {
  visibility: visible;
  opacity: 1;
}

.popup {
  /*margin: 0 auto;*/
  padding: 20px;
  /*background: #fff;*/
  border-radius: 5px;
  width: 500px;
  position: relative;
  transition: all 5s ease-in-out;
  top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
}

.popup .close {
  position: absolute;
  top: -20px;
  right: -20px;
  transition: all 200ms;
  font-size: 60px;
  font-weight: bold;
  text-decoration: none;
  color: #96ca39;
  z-index: 100000;
}

.popup .close:hover {
  color: #a50808;
}

.wrapper {
  border-radius: 10px;
  box-shadow: 0 20px 20px 0 rgba(0, 0, 0, 0.3);
  border: 2px solid transparent;
}

.carousel {
  position: relative;
  width: 500px;
  height: 700px;
  border-radius: 10px;
  overflow: hidden;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  transition: left 200ms ease-in-out;
}

.slide img {
  width: 100%;
  height: auto;
  display: block;
}

.btn {
  all: unset;
  position: absolute;
  top: 0;
  bottom: 0;
  margin: auto;
  z-index: 100;
  fill: white;
  padding: 1rem;
  cursor: pointer;
}

.prev {
  left: 0;
}

.next {
  right: 0;
}

.prev:hover {
  background-image: linear-gradient(-90deg, rgba(0, 0, 0, 0.2), transparent);
}

.next:hover {
  background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.2), transparent);
}


.popout {
  position: fixed;
  bottom: 40px;
  right: 40px;
}
.popout .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  outline: none;
  user-select: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  line-height: 60px;
  text-align: center;
  font-size: 32px;
  z-index: 999;
  background: #dfe0e2;
  color: #00a3dd;
  border-radius: 50%;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
  transition: 0.2s opacity ease-in-out;
}
.popout .btn.active {
  visibility: hidden;
  opacity: 0;
}
.popout .btn:after {
  display: block;
  position: absolute;
  /*top: 0;*/
  content: "";
  border-radius: 50%;
  width: 40px;
  height: 40px;
  background: #71b11f;
  z-index: -2;
  transition: transform 0.2s, opacity 0.2s;
  padding: 10px;
}
.popout .btn:active:after {
  -webkit-transform: scale(1.3);
  -moz-transform: scale(1.3);
  -ms-transform: scale(1.3);
  transform: scale(1.3);
  opacity: 0;
}
.popout .panel {
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
  position: absolute;
  bottom: 0;
  right: 0;
  width: 550px;
  text-align: left;
  overflow: hidden;
  visibility: hidden;
  transform: scale(0);
  transform-origin: 100% 100%;
  transition: all 0.2s;
  opacity: 0;
  background-color: #7bdee5;
  border:solid 2px #ffffff;
  border-radius: 10px;
  padding: 20px;
}
.popout .panel.active {
  height: auto;
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  transition: transform 0.2s, visibility 0s 0s, opacity 0.2s;
}
/*.popout .panel-header {
  padding: 2rem;
  font-size: 1.5rem;
  background-color: #F4E0E0;
  font-weight: 300;
  color: black;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
}
.popout .panel-body {
  padding: 1.5rem 2rem;
  background-color: white;
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
  font-size: 13px;
}*/

/* ====================================================
   FAQ SECTION
   ==================================================== */
.faq-section { background: var(--light-bg); }

.faq-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 16px; margin-top: 52px;
}

.faq-item {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 28px 30px;
  cursor: pointer; transition: box-shadow 0.2s;
}
.faq-item:hover { box-shadow: var(--shadow-sm); }

.faq-q {
  font-family: "Kanit-Medium"; font-size: 16px;
  color: var(--dark); margin-bottom: 12px;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
}

.faq-a {
  font-family: "Kanit-Light"; font-size: 14px;
  color: var(--mid); line-height: 1.75;
}

/* ====================================================
   FOOTER
   ==================================================== */
.site-footer { background: #1e1e1e; padding: 44px 0; }

.footer-inner {
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 24px;
}

.footer-logo { width: 140px; filter: brightness(0) invert(1); opacity: 0.75; }

.footer-suite-link {
  font-family: "Kanit-Light"; font-size: 14px;
  color: rgba(255,255,255,0.50); line-height: 1.65; text-align: center;
}
.footer-suite-link a { color: var(--teal-light); text-decoration: underline; text-underline-offset: 3px; }
.footer-suite-link a:hover { color: var(--white); }

.footer-copy {
  font-family: "Kanit-Light"; font-size: 13px;
  color: rgba(255,255,255,0.35); text-align: right;
}

/* ====================================================
   FLOATING DEMO CTA
   ==================================================== */
.floating-demo {
  position: fixed; bottom: 28px; right: 28px; z-index: 500;
  background: var(--teal); color: var(--white);
  font-family: "Kanit-Medium"; font-size: 14px;
  padding: 13px 22px; border-radius: 50px;
  box-shadow: 0 4px 20px rgba(32,165,181,0.42);
  text-decoration: none; display: flex; align-items: center; gap: 8px;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}
.floating-demo:hover {
  background: var(--teal-dark); color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(32,165,181,0.55);
}
.floating-demo svg { width: 16px; height: 16px; }

/* ====================================================
   BOOK A DEMO PAGE — specific styles
   ==================================================== */
.demo-page-hero {
  background: radial-gradient(ellipse at 70% 30%, #9AE0E5 0%, #7BDEE5 100%);
  padding: 80px 0 60px;
  text-align: center;
}
.demo-page-hero h1 {
  font-family: "Kanit-SemiBold"; font-size: 48px;
  line-height: 1.2; color: var(--dark); margin-bottom: 18px;
}
.demo-page-hero p {
  font-family: "Kanit-Light"; font-size: 19px;
  color: var(--dark); opacity: 0.8; max-width: 580px; margin: 0 auto;
}

.demo-split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: start;
  padding: 72px 0;
}

.demo-what h2 {
  font-family: "Kanit-SemiBold"; font-size: 28px;
  color: var(--dark); margin-bottom: 24px;
}

.demo-expect-list { margin-bottom: 40px; }

.demo-expect-item {
  display: flex; align-items: flex-start; gap: 16px;
  margin-bottom: 22px;
}
.demo-expect-num {
  width: 32px; height: 32px; background: var(--teal);
  border-radius: 50%; color: white;
  font-family: "Kanit-Medium"; font-size: 14px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.demo-expect-text { font-size: 15px; color: var(--mid); line-height: 1.7; }
.demo-expect-text strong { font-family: "Kanit-Medium"; color: var(--dark); display: block; }

.demo-note {
  background: var(--teal-pale); border: 1px solid var(--teal-light);
  border-radius: var(--radius); padding: 22px 24px;
}
.demo-note p { font-size: 14px; color: var(--mid); line-height: 1.7; }
.demo-note p + p { margin-top: 10px; }

.demo-form-card {
  background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid var(--border); padding: 44px 40px;
  box-shadow: var(--shadow);
}
.demo-form-card h3 {
  font-family: "Kanit-SemiBold"; font-size: 24px;
  color: var(--dark); margin-bottom: 8px;
}
.demo-form-card > p {
  font-size: 15px; color: var(--mid); margin-bottom: 28px;
}

/* ====================================================
   RESPONSIVE
   ==================================================== */
@media (max-width: 1100px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 46px; }
}

@media (max-width: 960px) {
  .section-title { font-size: 34px; }
  .hero-inner { flex-direction: column; text-align: center; }
  .hero-content { max-width: 100%; }
  .hero-ctas { justify-content: center; }
  .hero-img { max-width: 75%; }
  .hero-proof { justify-content: center; }
  .what-is-inner { flex-direction: column; gap: 40px; }
  .what-is-img { max-width: 60%; margin: 0 auto; }
  .pillars-grid { grid-template-columns: 1fr 1fr; }
  .doctype-categories { grid-template-columns: 1fr; }
  .pms-inner { grid-template-columns: 1fr; gap: 40px; }
  .workflow-steps { flex-wrap: wrap; justify-content: center; gap: 32px; }
  .step-connector { display: none; }
  .workflow-step { flex: 0 0 40%; }
  .personas-grid { grid-template-columns: 1fr; }
  .benefits-inner { flex-direction: column; gap: 40px; }
  .benefits-img { display: none; }
  .pain-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
  .demo-split { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 640px) {
  section { padding: 60px 0; }
  .hero h1 { font-size: 36px; }
  .cta-heading { font-size: 32px; }
  .form-row { grid-template-columns: 1fr; }
  .cta-form-wrap { padding: 28px 24px; }
  .pms-caps { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .pillars-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; align-items: center; }
  .footer-copy { text-align: center; }
  .demo-form-card { padding: 28px 24px; }
  .trust-bar-inner { gap: 20px; }
  .trust-divider { display: none; }
}
