/* =====================================================
   small-win — Shared Stylesheet
   Style Guide: Teal #27C4C9 / Dark Teal #005F66 / Gold #D4AF37
   Font: Prompt · Radius 24px · Max width 1280px
   ===================================================== */

:root {
  --bg: #FFFFFF;
  --section-bg: #F7FAFA;
  --primary: #27C4C9;
  --primary-soft: #E4F7F8;
  --dark-teal: #005F66;
  --gold: #D4AF37;
  --gold-dark: #B8962E;
  --text: #1F2937;
  --text-muted: #6B7280;
  --border: #E5E7EB;
  --radius: 24px;
  --shadow: 0 20px 60px rgba(0, 0, 0, .08);
  --shadow-hover: 0 28px 70px rgba(0, 95, 102, .16);
  --maxw: 1280px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Prompt', 'Sukhumvit Set', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 88px 0; }

.section-alt { background: var(--section-bg); }

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.section-head h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
}
.section-head h2 .accent { color: var(--dark-teal); }
.section-head p { margin-top: 12px; color: var(--text-muted); }

.eyebrow {
  display: inline-block;
  background: var(--primary-soft);
  color: var(--dark-teal);
  font-size: .85rem;
  font-weight: 600;
  padding: 6px 18px;
  border-radius: 999px;
  margin-bottom: 16px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  padding: 15px 36px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.btn:hover { transform: translateY(-3px); }

.btn-gold {
  background: linear-gradient(135deg, #E6C558, var(--gold) 55%, var(--gold-dark));
  color: #FFFFFF;
  box-shadow: 0 10px 30px rgba(212, 175, 55, .35);
}
.btn-gold:hover { box-shadow: 0 16px 42px rgba(212, 175, 55, .55); }

.btn-teal {
  background: linear-gradient(135deg, var(--primary), var(--dark-teal));
  color: #FFFFFF;
  box-shadow: 0 10px 30px rgba(39, 196, 201, .3);
}
.btn-teal:hover { box-shadow: 0 16px 42px rgba(39, 196, 201, .5); }

.btn-outline {
  background: #FFFFFF;
  color: var(--dark-teal);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--primary); }

.btn-lg { font-size: 1.1rem; padding: 18px 44px; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--dark-teal);
  letter-spacing: .02em;
}
.brand .dot { color: var(--gold); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: .95rem;
  font-weight: 500;
}
.nav-links a:hover { color: var(--dark-teal); }
.nav-cta { padding: 10px 26px; font-size: .9rem; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--dark-teal);
  cursor: pointer;
}

/* ---------- Hero (small-win home) ---------- */
.hero-home {
  position: relative;
  background:
    linear-gradient(90deg, rgba(255,255,255,.97) 0%, rgba(255,255,255,.88) 42%, rgba(255,255,255,0) 68%),
    url('../img/kaew-future-time-founder-small-win.webp') right center / cover no-repeat;
  min-height: 620px;
  display: flex;
  align-items: center;
  padding: 80px 0;
}
.hero-home .container { width: 100%; }
.hero-copy { max-width: 560px; }
.hero-copy h1 {
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  font-weight: 800;
  line-height: 1.35;
  color: var(--text);
}
.hero-copy h1 .hl { color: var(--dark-teal); }
.hero-copy .sub {
  margin: 22px 0 34px;
  color: var(--text-muted);
  font-size: 1.05rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

/* ---------- Hero (Future Time) ---------- */
.hero-ft {
  position: relative;
  overflow: hidden;
  background: var(--bg);
  padding: 90px 0 70px;
}
.hero-ft::before {
  content: '';
  position: absolute;
  top: -180px;
  right: -140px;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(39,196,201,.22), rgba(39,196,201,0) 68%);
  filter: blur(20px);
  pointer-events: none;
}
.hero-ft .container {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
}
.hero-ft h1 {
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  font-weight: 800;
  line-height: 1.3;
}
.hero-ft h1 .hl { color: var(--dark-teal); }
.hero-ft .sub { margin: 20px 0 34px; color: var(--text-muted); font-size: 1.05rem; }
.hero-ft-visual { position: relative; text-align: center; }
.hero-ft-visual img {
  margin: 0 auto;
  max-width: 420px;
  filter: drop-shadow(0 24px 48px rgba(39, 196, 201, .28));
}
.scroll-hint {
  display: inline-block;
  margin-top: 28px;
  color: var(--text-muted);
  font-size: .9rem;
}
.scroll-hint span { display: block; text-align: center; animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ---------- Cards grid ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow);
  transition: transform .3s ease, box-shadow .3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.card .icon {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: var(--primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  margin-bottom: 20px;
}
.card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: .95rem; flex: 1; }
.card .card-cta { margin-top: 24px; }
.card .tag {
  position: absolute;
  top: 22px;
  right: 22px;
  font-size: .75rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--dark-teal);
}
.card .tag-gold { background: #FBF3DC; color: var(--gold-dark); }

.card-featured {
  border: 2px solid var(--primary);
  box-shadow: 0 20px 60px rgba(39, 196, 201, .22);
}

/* ---------- Checklist ---------- */
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  font-size: .95rem;
}
.checklist li::before {
  content: '✓';
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--dark-teal);
  font-size: .75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Steps (Future Time) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  counter-reset: step;
}
.step {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 30px;
  box-shadow: var(--shadow);
  position: relative;
}
.step .step-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--dark-teal));
  color: #FFFFFF;
  font-weight: 700;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 8px 20px rgba(39, 196, 201, .35);
}
.step h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 6px; }
.step .step-sub { color: var(--primary); font-weight: 600; font-size: .9rem; margin-bottom: 14px; }
.step p, .step li { color: var(--text-muted); font-size: .92rem; }

.flow-strip {
  margin: 48px auto 0;
  max-width: 780px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.flow-strip .node { text-align: center; font-size: .88rem; font-weight: 600; color: var(--dark-teal); }
.flow-strip .node .n-icon { font-size: 1.5rem; display: block; margin-bottom: 4px; }
.flow-strip .arrow { color: var(--primary); font-size: 1.2rem; }

/* ---------- Glass feature cards ---------- */
.glass-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.glass-card {
  background: rgba(255, 255, 255, .65);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 26px;
  text-align: center;
  transition: transform .3s ease;
}
.glass-card:hover { transform: translateY(-6px); }
.glass-card .g-icon { font-size: 2rem; margin-bottom: 12px; }
.glass-card h3 { font-size: 1.02rem; font-weight: 700; margin-bottom: 6px; }
.glass-card p { color: var(--text-muted); font-size: .88rem; }

/* ---------- Video previews ---------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}
.video-thumb {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 9 / 12;
  background: linear-gradient(160deg, var(--primary-soft), #D2EFF0 60%, #BCE6E8);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .3s ease;
}
.video-thumb:hover { transform: translateY(-6px); }
.video-thumb .play {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: var(--dark-teal);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 95, 102, .25);
}
.video-thumb .duration {
  position: absolute;
  bottom: 14px;
  right: 16px;
  background: rgba(31, 41, 55, .75);
  color: #FFFFFF;
  font-size: .78rem;
  padding: 3px 10px;
  border-radius: 999px;
}
.video-thumb .label {
  position: absolute;
  top: 14px;
  left: 16px;
  color: var(--dark-teal);
  font-size: .85rem;
  font-weight: 600;
}

/* ---------- Social proof ---------- */
.proof {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  align-items: center;
}
.proof-stat { text-align: center; }
.proof-stat .stars { color: var(--gold); font-size: 1.3rem; letter-spacing: .2em; }
.proof-stat .big {
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--dark-teal);
  line-height: 1.15;
}
.proof-stat p { color: var(--text-muted); }
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.quote {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.quote .stars { color: var(--gold); font-size: .95rem; letter-spacing: .15em; margin-bottom: 8px; }
.quote p { font-size: .95rem; font-weight: 500; }
.quote .who { margin-top: 10px; color: var(--text-muted); font-size: .82rem; }

/* ---------- Premium CTA ---------- */
.premium-cta {
  background:
    radial-gradient(ellipse at 20% 20%, rgba(39,196,201,.35), transparent 55%),
    radial-gradient(ellipse at 85% 80%, rgba(212,175,55,.18), transparent 50%),
    var(--dark-teal);
  color: #FFFFFF;
  text-align: center;
  padding: 110px 0;
}
.premium-cta h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.35;
}
.premium-cta h2 .hl { color: var(--primary); }
.premium-cta p { margin: 18px auto 38px; max-width: 560px; color: rgba(255, 255, 255, .85); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 18px;
  margin-bottom: 14px;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  text-align: left;
}
.faq-q .pm {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--dark-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  transition: transform .3s ease;
}
.faq-item.open .pm { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}
.faq-a p { padding: 0 24px 22px; color: var(--text-muted); font-size: .95rem; }

/* ---------- Reveal panel (workflow slide-down) ---------- */
.reveal-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .5s ease;
}
.reveal-panel.open { max-height: 3000px; }

/* ---------- Modal / Popup ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 40, 42, .55);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 24px;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: var(--radius);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .3);
  width: 100%;
  max-width: 440px;
  padding: 36px 34px;
  position: relative;
}
.modal h3 { font-size: 1.3rem; font-weight: 700; color: var(--dark-teal); margin-bottom: 20px; text-align: center; }
.modal .close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.3rem;
  color: var(--text-muted);
  cursor: pointer;
}
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 6px; }
.field input[type="text"],
.field input[type="email"] {
  width: 100%;
  font-family: inherit;
  font-size: .95rem;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  outline: none;
  transition: border-color .2s ease;
}
.field input:focus { border-color: var(--primary); }
.consent {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: .82rem;
  color: var(--text-muted);
  margin: 4px 0 20px;
}
.consent input { margin-top: 4px; }
.form-note { font-size: .82rem; color: var(--text-muted); text-align: center; margin-top: 14px; }
.form-success { text-align: center; padding: 20px 0; display: none; }
.form-success .big-emoji { font-size: 2.6rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--section-bg);
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
  font-size: .92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 40px;
}
.footer-grid h4 { font-size: .95rem; font-weight: 700; margin-bottom: 14px; color: var(--dark-teal); }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: var(--text-muted); }
.footer-grid a:hover { color: var(--dark-teal); }
.footer-brand p { color: var(--text-muted); margin-top: 8px; max-width: 320px; }
.copyright {
  text-align: center;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 24px;
  font-size: .85rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  section { padding: 64px 0; }
  .hero-ft .container { grid-template-columns: 1fr; text-align: center; }
  .hero-ft-visual img { max-width: 320px; }
  .hero-ft .hero-actions { justify-content: center; }
  .steps { grid-template-columns: 1fr; }
  .proof { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #FFFFFF;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
    gap: 18px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .hero-home {
    background:
      linear-gradient(rgba(255,255,255,.94), rgba(255,255,255,.9)),
      url('../img/kaew-future-time-founder-small-win.webp') 70% center / cover no-repeat;
    min-height: 520px;
  }
  .flow-strip { flex-direction: column; }
  .flow-strip .arrow { transform: rotate(90deg); }
}
