/* =========================================================
   FlowIQ by Nebrix — Public Website Shared Styles
   Palette: Navy #0B1437 | Teal #0D8A6E | Gold #E8A020
   Font: Sarabun (Thai) + Bootstrap 5
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Sarabun:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; }

:root {
  --nb-navy:        #0B1437;
  --nb-navy-mid:    #1E2D5A;
  --nb-teal:        #0D8A6E;
  --nb-teal-light:  #12B589;
  --nb-teal-pale:   #E0F5EF;
  --nb-gold:        #E8A020;
  --nb-gold-light:  #FBBF24;
  --nb-gold-pale:   #FEF3DC;
  --nb-text:        #0F1C3F;
  --nb-muted:       #5A6A8A;
  --nb-border:      #D4DCF0;
  --nb-surface:     #F0F4FF;
  --nb-white:       #FFFFFF;
  --radius-sm:      8px;
  --radius-md:      12px;
  --radius-lg:      16px;
  --radius-xl:      24px;
  --shadow-card:    0 2px 12px rgba(11,20,55,0.08);
  --shadow-hover:   0 6px 24px rgba(11,20,55,0.14);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Sarabun', sans-serif;
  font-size: 16px;
  color: var(--nb-text);
  background: #FAFBFF;
  -webkit-font-smoothing: antialiased;
  margin: 0; padding: 0;
}

h1,h2,h3,h4,h5,h6 { font-family: 'Sarabun', sans-serif; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--nb-surface); }
::-webkit-scrollbar-thumb { background: var(--nb-border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--nb-muted); }

/* =========================================================
   NAVBAR
   ========================================================= */
.nb-navbar {
  background: var(--nb-navy);
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nb-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nb-logo-icon {
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--nb-teal) 0%, var(--nb-gold) 100%);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: white; font-size: 14px;
  flex-shrink: 0;
}
.nb-logo-text {
  font-size: 18px; font-weight: 700; color: white; line-height: 1;
}
.nb-logo-text span { color: var(--nb-gold-light); }
.nb-logo-sub {
  font-size: 10px; font-weight: 400;
  color: rgba(255,255,255,0.45); letter-spacing: 0.5px;
  margin-top: 2px;
}

.nb-nav-links {
  display: flex; align-items: center; gap: 28px;
  list-style: none; margin: 0; padding: 0;
}
.nb-nav-links a {
  color: rgba(255,255,255,0.65);
  text-decoration: none; font-size: 14px; font-weight: 500;
  transition: color 0.2s;
}
.nb-nav-links a:hover,
.nb-nav-links a.active { color: white; }

.nb-nav-actions { display: flex; align-items: center; gap: 10px; }

.btn-nav-login {
  color: rgba(255,255,255,0.8);
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-sm);
  padding: 7px 18px;
  font-size: 14px; font-weight: 500;
  font-family: 'Sarabun', sans-serif;
  cursor: pointer; text-decoration: none;
  transition: all 0.2s;
  display: inline-block;
}
.btn-nav-login:hover {
  border-color: rgba(255,255,255,0.55);
  color: white;
}

.btn-nav-cta {
  background: var(--nb-gold);
  color: var(--nb-navy);
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 20px;
  font-size: 14px; font-weight: 700;
  font-family: 'Sarabun', sans-serif;
  cursor: pointer; text-decoration: none;
  transition: background 0.2s;
  display: inline-block;
}
.btn-nav-cta:hover { background: var(--nb-gold-light); color: var(--nb-navy); }

/* Mobile hamburger */
.nb-hamburger {
  display: none;
  background: none; border: none;
  color: white; font-size: 22px; cursor: pointer; padding: 4px;
}

/* =========================================================
   BUTTONS (global)
   ========================================================= */
.btn-primary-nb {
  background: var(--nb-teal);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  padding: 13px 30px;
  font-size: 15px; font-weight: 700;
  font-family: 'Sarabun', sans-serif;
  cursor: pointer; text-decoration: none;
  display: inline-block;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary-nb:hover { background: var(--nb-teal-light); color: white; transform: translateY(-1px); }

.btn-outline-nb {
  background: transparent;
  color: white;
  border: 1.5px solid rgba(255,255,255,0.35);
  border-radius: var(--radius-md);
  padding: 13px 30px;
  font-size: 15px; font-weight: 600;
  font-family: 'Sarabun', sans-serif;
  cursor: pointer; text-decoration: none;
  display: inline-block;
  transition: border-color 0.2s, color 0.2s;
}
.btn-outline-nb:hover { border-color: white; color: white; }

.btn-ghost-nb {
  background: white;
  color: var(--nb-text);
  border: 1.5px solid var(--nb-border);
  border-radius: var(--radius-md);
  padding: 11px 24px;
  font-size: 14px; font-weight: 600;
  font-family: 'Sarabun', sans-serif;
  cursor: pointer; text-decoration: none;
  display: inline-block;
  transition: all 0.2s;
}
.btn-ghost-nb:hover { border-color: var(--nb-teal); color: var(--nb-teal); }

/* =========================================================
   SECTION WRAPPERS
   ========================================================= */
.section-light  { background: #FAFBFF;        padding: 72px 0; }
.section-alt    { background: var(--nb-surface); padding: 72px 0; }
.section-dark   { background: var(--nb-navy);    padding: 72px 0; }
.section-teal   { background: var(--nb-teal);    padding: 72px 0; }

.section-title {
  font-size: 28px; font-weight: 800;
  color: var(--nb-text); margin-bottom: 8px;
}
.section-title.light { color: white; }
.section-subtitle {
  font-size: 15px; color: var(--nb-muted); margin-bottom: 48px;
}
.section-subtitle.light { color: rgba(255,255,255,0.6); }

/* =========================================================
   HERO
   ========================================================= */
.nb-hero {
  background: var(--nb-navy);
  padding: 80px 0 96px;
  position: relative;
  overflow: hidden;
}
.nb-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 75% 55% at 50% 110%, rgba(13,138,110,0.22) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  background: rgba(232,160,32,0.15);
  border: 1px solid rgba(232,160,32,0.38);
  color: var(--nb-gold-light);
  font-size: 13px; font-weight: 500;
  padding: 6px 18px; border-radius: 100px;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 46px; font-weight: 800;
  color: white; line-height: 1.15;
  margin-bottom: 10px;
}
.hero-title span { color: var(--nb-gold-light); }

.hero-subtitle {
  font-size: 17px; color: rgba(255,255,255,0.65);
  line-height: 1.75; max-width: 580px; margin: 0 auto 10px;
}
.hero-en {
  font-size: 13px; color: rgba(255,255,255,0.3);
  font-style: italic; margin-bottom: 36px;
}

.hero-btn-group {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero-stats {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 36px;
  display: flex; justify-content: center; gap: 48px; flex-wrap: wrap;
}
.hero-stat-num {
  font-size: 30px; font-weight: 800; color: var(--nb-gold-light);
}
.hero-stat-lbl {
  font-size: 12px; color: rgba(255,255,255,0.45); margin-top: 3px;
}

/* =========================================================
   FEATURE CARDS
   ========================================================= */
.feat-card {
  background: white;
  border: 1px solid var(--nb-border);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  transition: box-shadow 0.2s, transform 0.2s;
  height: 100%;
}
.feat-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.feat-icon-wrap {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 16px;
}
.feat-icon-wrap.teal   { background: var(--nb-teal-pale); }
.feat-icon-wrap.gold   { background: var(--nb-gold-pale); }
.feat-icon-wrap.blue   { background: #E6EFFF; }
.feat-icon-wrap.coral  { background: #FEF0EC; }
.feat-icon-wrap.purple { background: #F0EEFF; }

.feat-card-title { font-size: 16px; font-weight: 700; color: var(--nb-text); margin-bottom: 8px; }
.feat-card-desc  { font-size: 14px; color: var(--nb-muted); line-height: 1.65; }

.feat-badge { display: inline-block; margin-top: 12px; font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 100px; }
.badge-live   { background: var(--nb-teal-pale); color: var(--nb-teal); }
.badge-soon   { background: var(--nb-gold-pale); color: #B87A10; }
.badge-future { background: #EEF0FF; color: #4A55A2; }

/* =========================================================
   PRICING CARDS
   ========================================================= */
.pricing-card {
  background: white;
  border: 1.5px solid var(--nb-border);
  border-radius: var(--radius-xl);
  padding: 28px 22px;
  position: relative; transition: box-shadow 0.2s;
  height: 100%; display: flex; flex-direction: column;
}
.pricing-card:hover { box-shadow: var(--shadow-hover); }
.pricing-card.featured { border-color: var(--nb-teal); border-width: 2px; }
.pricing-card.free-card { border-color: #378ADD; }

.pkg-popular-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--nb-teal); color: white;
  font-size: 12px; font-weight: 700; padding: 4px 18px; border-radius: 100px; white-space: nowrap;
}
.pkg-free-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: #185FA5; color: white;
  font-size: 12px; font-weight: 700; padding: 4px 18px; border-radius: 100px; white-space: nowrap;
}

.pkg-tier { font-size: 11px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; margin-bottom: 10px; }
.pkg-tier.free    { color: #185FA5; }
.pkg-tier.starter { color: var(--nb-muted); }
.pkg-tier.biz     { color: var(--nb-teal); }
.pkg-tier.pro     { color: #7C3AED; }
.pkg-tier.ent     { color: var(--nb-gold); }

.pkg-price-num  { font-size: 32px; font-weight: 800; color: var(--nb-text); line-height: 1; }
.pkg-price-unit { font-size: 14px; font-weight: 400; color: var(--nb-muted); }
.pkg-price-ann  { font-size: 12px; color: var(--nb-teal); min-height: 18px; margin-top: 2px; }
.pkg-target     { font-size: 13px; color: var(--nb-muted); margin: 10px 0 16px; line-height: 1.5; }
.pkg-divider    { border: none; border-top: 1px solid var(--nb-border); margin: 14px 0; }

.pkg-feature-list { list-style: none; padding: 0; margin: 0; flex: 1; }
.pkg-feature-list li { font-size: 13px; color: #2C3A5A; padding: 5px 0; display: flex; gap: 8px; align-items: flex-start; line-height: 1.45; }
.pkg-feature-list li .chk { color: var(--nb-teal); font-weight: 700; flex-shrink: 0; font-size: 13px; }
.pkg-feature-list li.na { color: var(--nb-border); }
.pkg-feature-list li.na .chk { color: var(--nb-border); }

.pkg-cta {
  width: 100%; margin-top: 20px; padding: 12px; border-radius: var(--radius-md);
  font-size: 14px; font-weight: 700; font-family: 'Sarabun', sans-serif;
  cursor: pointer; border: 1.5px solid var(--nb-border);
  background: white; color: var(--nb-text);
  transition: all 0.2s; text-align: center; text-decoration: none; display: block;
}
.pkg-cta:hover { border-color: var(--nb-teal); color: var(--nb-teal); }
.pkg-cta.teal { background: var(--nb-teal); color: white; border-color: var(--nb-teal); }
.pkg-cta.teal:hover { background: #0A7360; color: white; }
.pkg-cta.blue { background: #185FA5; color: white; border-color: #185FA5; }
.pkg-cta.blue:hover { background: #0C447C; color: white; }

.annual-toggle-row { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 36px; }
.toggle-label { font-size: 14px; color: var(--nb-muted); }
.annual-save-badge { background: var(--nb-teal-pale); color: var(--nb-teal); font-size: 12px; font-weight: 600; padding: 3px 12px; border-radius: 100px; }

.toggle-switch { position: relative; display: inline-block; width: 46px; height: 25px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-track { position: absolute; inset: 0; background: var(--nb-border); border-radius: 100px; cursor: pointer; transition: background 0.2s; }
.toggle-track::before { content: ''; position: absolute; width: 19px; height: 19px; left: 3px; top: 3px; background: white; border-radius: 50%; transition: transform 0.2s; }
.toggle-switch input:checked + .toggle-track { background: var(--nb-teal); }
.toggle-switch input:checked + .toggle-track::before { transform: translateX(21px); }

/* =========================================================
   ROADMAP
   ========================================================= */
.road-timeline { max-width: 860px; margin: 0 auto; }
.road-row { display: flex; gap: 20px; margin-bottom: 20px; align-items: flex-start; flex-wrap: wrap; }
.road-qtr { min-width: 80px; font-size: 13px; font-weight: 700; color: var(--nb-gold-light); padding-top: 6px; }
.road-chips { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; }
.road-chip { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.15); color: rgba(255,255,255,0.75); font-size: 12px; padding: 5px 14px; border-radius: 100px; font-family: 'Sarabun', sans-serif; }
.road-chip.done { background: rgba(13,138,110,0.2); border-color: rgba(13,138,110,0.4); color: #5DD4B0; }

/* =========================================================
   TESTIMONIAL / TRUST
   ========================================================= */
.trust-card { background: white; border-radius: var(--radius-lg); border: 1px solid var(--nb-border); padding: 24px; height: 100%; }
.trust-stars  { color: var(--nb-gold); font-size: 16px; margin-bottom: 12px; }
.trust-quote  { font-size: 14px; color: var(--nb-muted); line-height: 1.7; margin-bottom: 16px; font-style: italic; }
.trust-author { font-size: 13px; font-weight: 600; color: var(--nb-text); }
.trust-role   { font-size: 12px; color: var(--nb-muted); }

/* =========================================================
   CTA BOX
   ========================================================= */
.cta-box { background: var(--nb-navy-mid); border-radius: var(--radius-xl); padding: 56px 32px; border: 1px solid rgba(255,255,255,0.08); text-align: center; }
.cta-box h2 { font-size: 28px; font-weight: 800; color: white; margin-bottom: 14px; }
.cta-box p  { font-size: 15px; color: rgba(255,255,255,0.6); margin-bottom: 30px; }
.cta-note   { font-size: 12px; color: rgba(255,255,255,0.35); margin-top: 16px; }

/* =========================================================
   REGISTER PAGE
   ========================================================= */
.register-wrap { min-height: calc(100vh - 64px); background: var(--nb-surface); display: flex; align-items: flex-start; padding: 48px 0 80px; }
.register-card { background: white; border-radius: var(--radius-xl); border: 1px solid var(--nb-border); padding: 40px 36px; max-width: 560px; width: 100%; }
.register-plan-selector { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 28px; }
.plan-option { border: 1.5px solid var(--nb-border); border-radius: var(--radius-md); padding: 10px 6px; text-align: center; cursor: pointer; transition: all 0.2s; }
.plan-option:hover { border-color: var(--nb-teal); }
.plan-option.selected { border-color: var(--nb-teal); background: var(--nb-teal-pale); }
.plan-option .plan-name { font-size: 12px; font-weight: 700; margin-bottom: 2px; }
.plan-option .plan-price-sm { font-size: 11px; color: var(--nb-muted); }

.form-label-nb { font-size: 14px; font-weight: 600; color: var(--nb-text); margin-bottom: 6px; display: block; }
.form-input-nb { width: 100%; padding: 11px 14px; border: 1.5px solid var(--nb-border); border-radius: var(--radius-sm); font-size: 14px; font-family: 'Sarabun', sans-serif; color: var(--nb-text); outline: none; transition: border-color 0.2s; }
.form-input-nb:focus { border-color: var(--nb-teal); }
.form-input-nb::placeholder { color: #A0AABF; }

.form-hint  { font-size: 12px; color: var(--nb-muted); margin-top: 5px; }
.form-error { font-size: 12px; color: #DC2626; margin-top: 5px; display: none; }

.divider-or { display: flex; align-items: center; gap: 12px; color: var(--nb-muted); font-size: 13px; margin: 20px 0; }
.divider-or::before, .divider-or::after { content: ''; flex: 1; height: 1px; background: var(--nb-border); }

.step-indicator { display: flex; gap: 8px; align-items: center; margin-bottom: 28px; }
.step-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--nb-border); transition: background 0.2s; }
.step-dot.active { background: var(--nb-teal); width: 24px; border-radius: 4px; }
.step-dot.done   { background: var(--nb-teal); }

/* =========================================================
   FOOTER
   ========================================================= */
.nb-footer { background: var(--nb-navy); padding: 28px 2rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; border-top: 1px solid rgba(255,255,255,0.06); }
.footer-brand { color: rgba(255,255,255,0.65); font-size: 13px; }
.footer-brand strong { color: white; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,0.4); font-size: 12px; text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: rgba(255,255,255,0.75); }

/* =========================================================
   UTILITY
   ========================================================= */
.text-teal     { color: var(--nb-teal) !important; }
.text-gold     { color: var(--nb-gold-light) !important; }
.text-navy     { color: var(--nb-navy) !important; }
.text-muted-nb { color: var(--nb-muted) !important; }
.bg-navy       { background: var(--nb-navy) !important; }
.bg-teal       { background: var(--nb-teal) !important; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 768px) {
  .nb-hamburger   { display: block; }
  .nb-nav-links   { display: none; }
  .nb-nav-actions { display: none; }
  .hero-title  { font-size: 30px; }
  .hero-stats  { gap: 24px; }
  .register-plan-selector { grid-template-columns: repeat(3, 1fr); }
  .register-card { padding: 28px 20px; }
}

@media (max-width: 480px) {
  .section-light, .section-alt, .section-dark { padding: 48px 0; }
  .hero-title { font-size: 26px; }
  .register-plan-selector { grid-template-columns: repeat(2, 1fr); }
  .pp-grid { grid-template-columns: 1fr; }
}

/* ── Pain Points Section ── */
.pp-section { background: var(--nb-navy); padding: 64px 0; }
.pp-label { font-size: 12px; font-weight: 700; color: var(--nb-teal-light); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 12px; }
.pp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px; margin-bottom: 48px; }
.pp-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); border-radius: 14px; padding: 24px; transition: border-color .2s, transform .2s; }
.pp-card:hover { border-color: rgba(93,202,165,0.3); transform: translateY(-2px); }
.pp-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.pp-card-title { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.pp-card-desc { font-size: 13px; color: rgba(255,255,255,0.55); line-height: 1.6; margin-bottom: 14px; }
.pp-sol { font-size: 12px; font-weight: 600; color: var(--nb-teal-light); background: rgba(93,202,165,0.12); padding: 4px 12px; border-radius: 20px; display: inline-block; }
.pp-quote-wrap { text-align: center; padding: 32px 0 8px; border-top: 1px solid rgba(255,255,255,0.07); }
.pp-quote { font-size: 18px; color: rgba(255,255,255,0.7); line-height: 1.7; font-style: italic; }
.pp-qmark { color: var(--nb-teal-light); font-size: 28px; line-height: 0; vertical-align: -8px; margin: 0 4px; }
