@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@400;500;600;700;800&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  /* palette rebuilt on opennote.com's extracted tokens: warm paper canvas,
     near-black ink, and their lilac-pink accent block, kept alongside our
     product coral accent instead of the old generic blue */
  --bg: #FAF8F2;
  --card: #ffffff;
  --ink: #0a0a0a;
  --muted: #6b5847;
  --line: #ececea;
  --chip: #f1f1ef;
  --accent-soft: #f7c3f7;
  --accent-soft-2: #fbe4fb;
  --accent: #e2574c;
  --accent-text: #c8483f; /* darker shade for small text — #e2574c only hits 3.68:1 on white, fails WCAG AA (needs 4.5:1) */
  --radius: 20px;
  --radius-sm: 12px;
  --serif: 'Iowan Old Style', 'Palatino Linotype', Georgia, 'Noto Serif Thai', serif;
}
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Noto Sans Thai', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, .section-head h2, .cta-band h2 { font-family: var(--serif); font-weight: 500; letter-spacing: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.wrap-wide { max-width: 1400px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(250,248,242,.85); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .bar { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
.brand { display: flex; align-items: center; gap: 2px; font-weight: 800; font-size: 19px; }
.wordmark { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 27px; color: var(--ink); letter-spacing: 0; }
.brand .dot {
  width: 34px; height: 34px; border-radius: 11px; background: var(--ink); color: #fff;
  display: grid; place-items: center; font-size: 16px; font-weight: 800;
}
.nav-links { display: flex; align-items: center; gap: 30px; font-weight: 500; font-size: 15px; color: var(--muted); }
.nav-links a:hover { color: var(--ink); }
.header-actions { display: flex; gap: 10px; align-items: center; }

/* ---------- nav dropdown ---------- */
.nav-item.has-dropdown { position: relative; }
.nav-trigger {
  background: none; border: none; font: inherit; color: var(--muted); font-weight: 500; font-size: 15px;
  display: flex; align-items: center; gap: 5px; padding: 0;
}
.nav-trigger::after { content: '⌄'; font-size: 13px; transition: transform .2s ease; }
.nav-item.has-dropdown:hover .nav-trigger,
.nav-item.has-dropdown:focus-within .nav-trigger { color: var(--ink); }
.nav-item.has-dropdown:hover .nav-trigger::after,
.nav-item.has-dropdown:focus-within .nav-trigger::after { transform: rotate(180deg); }
.dropdown-panel {
  position: absolute; top: calc(100% + 16px); left: 50%; transform: translateX(-50%) translateY(6px);
  width: 320px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 24px 50px -20px rgba(0,0,0,.25); padding: 10px; opacity: 0; visibility: hidden;
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease; z-index: 50;
}
.nav-item.has-dropdown:hover .dropdown-panel,
.nav-item.has-dropdown:focus-within .dropdown-panel { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dd-row { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; }
.dd-row:hover { background: var(--chip); }
.dd-row img { width: 30px; height: 30px; flex-shrink: 0; }
.dd-row b { display: block; font-size: 14px; color: var(--ink); }
.dd-row small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.dd-all {
  display: flex; align-items: center; justify-content: space-between; margin-top: 4px;
  padding: 10px; font-size: 13.5px; font-weight: 700; color: var(--accent-text);
}

/* ---------- language switch ---------- */
.lang-switch {
  display: flex; align-items: center; background: var(--chip); border: 1px solid var(--line);
  border-radius: 999px; padding: 3px; gap: 2px; margin-right: 4px;
}
.lang-opt {
  padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: var(--muted);
  transition: background .18s ease, color .18s ease;
}
.lang-opt.active { background: var(--ink); color: #fff; }

/* ---------- hamburger + mobile menu ---------- */
.hamburger {
  display: none; flex-direction: column; justify-content: center; gap: 4px;
  width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: var(--card);
}
.hamburger span { width: 16px; height: 2px; background: var(--ink); margin: 0 auto; transition: transform .2s ease, opacity .2s ease; }
.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.mobile-menu {
  display: none; flex-direction: column; gap: 4px; max-height: 0; overflow: hidden;
  border-top: 1px solid transparent; transition: max-height .25s ease, border-color .25s ease;
}
.mobile-menu.open { max-height: 420px; border-top: 1px solid var(--line); }
.mobile-menu a { padding: 14px 24px; font-weight: 600; font-size: 15px; color: var(--ink); }
.mobile-menu-ctas { display: flex; gap: 10px; padding: 10px 24px 18px; }
.mobile-menu-ctas .btn { flex: 1; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  border-radius: 999px; padding: 11px 22px; font-weight: 600; font-size: 15px;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { background: var(--chip); }
.btn.primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.primary:hover { background: #2c2c2c; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0,0,0,.15); }
.btn.lg { padding: 15px 30px; font-size: 16px; }
.btn.accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn.accent:hover { background: #c8483f; }

/* ---------- hero ---------- */
.hero { padding: 84px 0 60px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; background: var(--chip);
  border-radius: 999px; padding: 7px 16px; font-size: 13px; font-weight: 600; color: var(--muted);
  margin-bottom: 22px;
}
.eyebrow .pulse { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; }
h1 { font-size: 52px; font-weight: 500; line-height: 1.18; letter-spacing: 0; }
h1 .hl { color: var(--accent); }
.hero p.lead { margin-top: 22px; font-size: 18px; color: var(--muted); max-width: 480px; }
.hero-ctas { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: 13px; color: var(--muted); }

/* phone mockup */
.phone-mock {
  background: var(--card); border-radius: 32px; border: 1px solid var(--line);
  padding: 18px; box-shadow: 0 30px 70px -30px rgba(0,0,0,.25);
  max-width: 340px; margin: 0 auto;
}
.phone-mock .screen-head { display: flex; align-items: center; gap: 10px; padding: 6px 6px 14px; border-bottom: 1px solid var(--line); }
.phone-mock .screen-head .av { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg,#f97316,#ec4899); }
.phone-mock .screen-head .name { font-weight: 700; font-size: 14px; }
.phone-mock .screen-head .sub { font-size: 12px; color: var(--muted); }
.msg-row { display: flex; margin: 14px 0; }
.msg-row.in { justify-content: flex-start; }
.msg-row.out { justify-content: flex-end; }
.msg-row.out > div { display: flex; flex-direction: column; align-items: flex-end; }
.bubble { max-width: 78%; padding: 10px 14px; border-radius: 16px; font-size: 13.5px; line-height: 1.45; }
.msg-row.in .bubble { background: var(--chip); border-bottom-left-radius: 4px; }
.msg-row.out .bubble { background: var(--ink); color: #fff; border-bottom-right-radius: 4px; }
.auto-tag {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700;
  color: #16a34a; background: #ecfdf3; padding: 4px 9px; border-radius: 999px; margin-top: 8px;
}

/* ---------- logo strip ---------- */
.strip { padding: 34px 0; background: var(--accent-soft-2); }
.strip .label { text-align: center; font-size: 13px; color: var(--muted); font-weight: 600; margin-bottom: 20px; }
.strip .row { display: flex; justify-content: center; gap: 44px; flex-wrap: wrap; color: var(--muted); font-weight: 700; font-size: 15px; opacity: .7; }

/* ---------- before / after ---------- */
.ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.ba-card {
  border-radius: var(--radius); padding: 40px 32px; text-align: center;
  border: 1px solid var(--line);
}
.ba-card img { width: 140px; height: 140px; object-fit: contain; margin: 0 auto 20px; }
.ba-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 20px; }
.ba-card ul { display: flex; flex-direction: column; gap: 12px; text-align: left; max-width: 340px; margin: 0 auto; list-style: none; }
.ba-card li { font-size: 14.5px; line-height: 1.6; padding-left: 22px; position: relative; }
.ba-before { background: var(--chip); }
.ba-before h3 { color: var(--muted); }
.ba-before li { color: var(--muted); }
.ba-before li::before { content: '×'; position: absolute; left: 0; color: #b3aca3; font-weight: 800; }
.ba-after { background: var(--accent-soft-2); border-color: transparent; }
.ba-after li::before { content: '✓'; position: absolute; left: 0; color: #16a34a; font-weight: 800; }

/* ---------- benefit blocks ---------- */
.benefit-block { padding: 56px 0; }
.benefit-row { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.benefit-reverse .benefit-media { order: 2; }
.benefit-reverse .benefit-copy { order: 1; }
.benefit-media {
  background: var(--accent-soft-2); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; padding: 48px; min-height: 260px;
}
.benefit-media img { max-width: 220px; max-height: 220px; width: 100%; object-fit: contain; }
.benefit-copy h2 { font-size: 30px; font-weight: 500; margin-bottom: 16px; }
.benefit-copy p { color: var(--muted); font-size: 16px; line-height: 1.7; margin-bottom: 24px; max-width: 440px; }

/* ---------- reel demo mock ---------- */
.reel-demo-wrap { display: flex; align-items: flex-end; gap: 18px; }
.reel-mock {
  position: relative; width: 140px; height: 250px; border-radius: 18px; background: var(--ink);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  box-shadow: 0 20px 40px -20px rgba(0,0,0,.35);
}
.reel-mock .reel-badge {
  position: absolute; top: 10px; left: 10px; background: rgba(255,255,255,.18); color: #fff;
  font-size: 10.5px; font-weight: 700; padding: 3px 8px; border-radius: 999px;
}
.reel-play {
  width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.16); color: #fff;
  display: grid; place-items: center; font-size: 15px; padding-left: 3px;
}
.reel-caption { position: absolute; bottom: 14px; left: 14px; right: 14px; color: #fff; font-size: 12px; font-weight: 600; line-height: 1.4; }
.reel-comment { display: flex; flex-direction: column; gap: 10px; padding-bottom: 8px; }
.rc-bubble { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 9px 13px; font-size: 13px; max-width: 170px; }
.rc-dm {
  background: var(--ink); color: #fff; border-radius: 14px; padding: 9px 13px; font-size: 12.5px; font-weight: 600;
  display: flex; align-items: center; gap: 6px; max-width: 190px;
}
.rc-check { color: #4ade80; font-weight: 800; }

/* ---------- section heading ---------- */
.section { padding: 90px 0; }
#features {
  background: var(--accent-soft-2); border-radius: 32px;
  max-width: 1160px; margin: 0 auto; padding: 70px 24px;
}
#features .wrap { padding: 0 16px; }
.section-head { max-width: 620px; margin: 0 auto 52px; text-align: center; }
.section-head h2 { font-size: 36px; font-weight: 500; letter-spacing: 0; }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 17px; }

/* ---------- features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: transform .2s ease, box-shadow .2s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -24px rgba(0,0,0,.2); }
.feature-card .icon {
  width: 52px; height: 52px; position: relative; margin-bottom: 16px;
}
.feature-card .icon img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: 14.5px; }

/* ---------- how it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { position: relative; padding: 30px 26px; background: var(--card); border-radius: var(--radius); border: 1px solid var(--line); }
.step .num {
  width: 36px; height: 36px; border-radius: 10px; background: var(--ink); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 15px; margin-bottom: 16px;
}
.step h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14.5px; }

/* ---------- pricing ---------- */
.price-toggle { display: flex; justify-content: center; margin-bottom: 40px; }
.price-toggle .group { display: inline-flex; background: var(--chip); border-radius: 999px; padding: 4px; }
.price-toggle button {
  border: none; background: transparent; padding: 9px 20px; border-radius: 999px;
  font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--muted);
}
.price-toggle button.active { background: var(--ink); color: #fff; }
.price-toggle .save-tag { font-size: 11px; font-weight: 800; color: #16a34a; margin-left: 4px; }
.price-toggle button.active .save-tag { color: #86efac; }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.price-grid-5 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.price-grid-5 .price-card { padding: 24px 20px; }
.price-grid-5 .amount { font-size: 28px; }
.price-grid-5 li { font-size: 13.5px; }
.price-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; }
.price-card.featured { border: 2px solid var(--ink); position: relative; }
.price-card .badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: #fff; font-size: 12px; font-weight: 700;
  padding: 6px 16px; border-radius: 999px;
}
.price-card h3 { font-size: 18px; font-weight: 700; }
.price-card .desc { color: var(--muted); font-size: 14px; margin-top: 6px; min-height: 40px; }
.price-card .amount { font-size: 38px; font-weight: 800; margin-top: 18px; }
.price-card .amount span { font-size: 15px; font-weight: 600; color: var(--muted); }
.price-card .billed-note { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.contacts-metric { margin-top: 20px; }
.contacts-num { font-size: 24px; font-weight: 800; }
.contacts-label { font-size: 12.5px; color: var(--muted); text-decoration: underline dotted; text-underline-offset: 2px; }
.price-note { text-align: center; margin-top: 36px; font-size: 13px; color: var(--muted); }
.price-card .btn { width: 100%; margin-top: 22px; }
.price-card ul { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.price-card li { display: flex; gap: 10px; font-size: 14px; color: var(--ink); align-items: flex-start; }
.price-card li svg { flex-shrink: 0; margin-top: 2px; }
.price-card li .check { flex-shrink: 0; color: #16a34a; font-weight: 800; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: none; border: none; text-align: left; padding: 18px 22px; font-size: 15.5px; font-weight: 600; color: var(--ink);
}
.faq-chevron { font-size: 18px; color: var(--muted); transition: transform .25s ease; flex-shrink: 0; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-a { height: 0; overflow: hidden; opacity: 0; }
.faq-a p { padding: 0 22px 20px; color: var(--muted); font-size: 14.5px; line-height: 1.7; }

/* ---------- CTA ---------- */
.cta-band {
  background: var(--ink); color: #fff; border-radius: 28px; padding: 64px 48px;
  text-align: center; margin: 0 24px;
}
.cta-band h2 { font-size: 34px; font-weight: 500; }
.cta-band p { color: #bdbdbd; margin-top: 12px; font-size: 16px; }
.cta-band .hero-ctas { justify-content: center; margin-top: 28px; }
.cta-band .btn { border-color: transparent; }
.cta-band .btn.primary { background: #fff; color: var(--ink); }
.cta-band .btn.primary:hover { background: #eee; }
.cta-band .btn.ghost { background: transparent; color: #fff; border: 1px solid #444; }

/* ---------- footer ---------- */
footer { padding: 64px 0 40px; border-top: 1px solid var(--line); margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer-brand p { color: var(--muted); font-size: 14px; margin-top: 14px; max-width: 260px; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: 14.5px; color: var(--ink); }
.footer-col a:hover { color: var(--accent-text); }
.footer-bottom {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: 13px; color: var(--muted);
}

/* ---------- legal pages ---------- */
.legal { padding: 70px 0 100px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: 34px; font-weight: 500; }
.legal .updated { color: var(--muted); font-size: 14px; margin-top: 8px; }
.legal h2 { font-size: 20px; font-weight: 700; margin: 36px 0 12px; }
.legal p, .legal li { color: #2b2b2b; font-size: 15.5px; line-height: 1.75; }
.legal ul { margin: 12px 0 12px 22px; display: flex; flex-direction: column; gap: 8px; }
.legal a { color: var(--accent-text); text-decoration: underline; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  h1 { font-size: 38px; }
  .feature-grid, .steps, .price-grid, .ba-grid, .benefit-row { grid-template-columns: 1fr; }
  .benefit-reverse .benefit-media, .benefit-reverse .benefit-copy { order: initial; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .cta-band { margin: 0 12px; padding: 44px 24px; }
  .hamburger { display: flex; }
  .mobile-menu { display: flex; }
  .header-actions .btn { display: none; }
  .benefit-media { padding: 28px 16px; }
  .reel-demo-wrap { flex-direction: column; align-items: center; gap: 16px; }
  .rc-bubble, .rc-dm { max-width: 220px; }
}
@media (min-width: 901px) {
  .mobile-menu { display: none !important; }
}
