:root {
  --bg: #fffaf0;
  --surface: #ffffff;
  --surface-soft: #fff4d9;
  --ink: #123f3a;
  --muted: #56645f;
  --line: #06c755;
  --gold: #f6b51d;
  --gold-soft: #ffe6a3;
  --border: #eadfc6;
  --shadow: 0 18px 45px rgba(18, 63, 58, 0.12);
  font-family: "Noto Sans Thai", "Noto Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--ink);
  text-underline-offset: 0.18em;
}

a:hover {
  color: #0b6f43;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 250, 240, 0.94);
  border-bottom: 1px solid rgba(234, 223, 198, 0.9);
  backdrop-filter: blur(12px);
}

.nav {
  width: min(1120px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
  background: rgba(246, 181, 29, 0.14);
}

.nav-links a.language-nav {
  color: #062d20;
  background: rgba(6, 199, 85, 0.16);
  border: 1px solid rgba(6, 91, 41, 0.18);
  font-weight: 800;
}

.hero {
  min-height: calc(100vh - 72px);
  min-height: calc(100svh - 72px);
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(255, 250, 240, 0.96) 0%, rgba(255, 250, 240, 0.86) 39%, rgba(255, 250, 240, 0.18) 75%),
    url("public/hero.png") center bottom / cover no-repeat;
  border-bottom: 1px solid var(--border);
}

.hero-inner,
.section-inner,
.page-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-copy {
  max-width: 640px;
  padding: 72px 0 96px;
}

.hero-logo {
  width: 168px;
  height: 168px;
  border-radius: 50%;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 12px;
  color: #24645a;
  font-weight: 800;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.18;
}

h1 {
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  letter-spacing: 0;
}

.hero h1 {
  white-space: nowrap;
  font-size: clamp(2.15rem, 7.2vw, 5.4rem);
}

h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin-bottom: 18px;
}

h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.subtitle {
  margin: 20px 0 0;
  max-width: 760px;
  color: #2d5650;
  font-size: clamp(1.12rem, 1.9vw, 1.42rem);
}

.hero-subtitle {
  text-wrap: pretty;
}

.nowrap-thai {
  white-space: nowrap;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.hero-actions > .button,
.hero-actions > .line-add-button {
  flex: 1 1 0;
  min-height: 52px;
}

.hero-actions > .line-add-button img {
  height: 38px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 6px;
  background: var(--line);
  color: #062d20;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid rgba(6, 91, 41, 0.2);
}

.button:hover {
  color: #062d20;
  background: #16d864;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink);
}

.line-add-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 18px;
  border-radius: 6px;
  background: #00b900;
  border: 1px solid #00a300;
  line-height: 1;
}

.line-add-button img {
  width: auto;
  height: 36px;
  max-width: 100%;
}

.small-note {
  color: var(--muted);
  font-size: 0.94rem;
}

.section {
  padding: 72px 0;
}

.section.alt {
  background: #ffffff;
  border-block: 1px solid var(--border);
}

.lead {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.08rem;
  margin: 0 0 28px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 22px;
  box-shadow: 0 10px 28px rgba(18, 63, 58, 0.07);
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-soft);
  color: #664500;
  font-weight: 900;
  margin-bottom: 14px;
}

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

.examples li {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  color: #244f49;
}

.privacy-strip {
  background: var(--ink);
  color: #f7fff9;
}

.privacy-strip .lead,
.privacy-strip a {
  color: #f7fff9;
}

.page-main {
  padding: 64px 0 88px;
}

.page-inner {
  max-width: 820px;
}

.page-inner.wide-page {
  max-width: 1120px;
}

.page-title {
  font-size: clamp(2.1rem, 5vw, 4rem);
  margin-bottom: 18px;
}

.content-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: clamp(22px, 4vw, 40px);
  box-shadow: var(--shadow);
}

.content-panel p {
  margin: 0 0 18px;
}

.content-panel h2 {
  font-size: 1.28rem;
  margin: 28px 0 10px;
}

.content-panel > h2:first-child {
  margin-top: 0;
}

.content-panel ul {
  padding-left: 1.35rem;
}

.content-panel li + li {
  margin-top: 6px;
}

.contact-list {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.contact-item {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fffdfa;
}

.language-switch {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  margin: 4px 0 22px;
  background: #fff4d9;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.language-switch a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 6px;
  color: var(--muted);
  font-weight: 800;
  text-decoration: none;
}

.language-switch a[aria-current="page"] {
  color: var(--ink);
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(18, 63, 58, 0.08);
}

.release-featured {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 44px);
  align-items: start;
  margin-top: 36px;
}

.release-featured h2,
.release-entry h2 {
  font-size: clamp(1.35rem, 3vw, 2.1rem);
  margin: 0 0 10px;
}

.release-date {
  margin: 0 0 8px;
  color: #0f6946;
  font-weight: 900;
}

.release-list {
  margin: 0;
  padding-left: 1.2rem;
}

.release-list li + li {
  margin-top: 9px;
}

.release-timeline {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.release-entry {
  padding: clamp(20px, 4vw, 30px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(18, 63, 58, 0.07);
}

.release-entry p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.how-grid {
  display: grid;
  gap: 28px;
  margin: 38px 0;
}

.usage-card {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1fr);
  gap: 28px;
  align-items: center;
  padding: clamp(20px, 4vw, 34px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(18, 63, 58, 0.08);
}

.usage-card.reverse .usage-copy {
  order: 2;
}

.usage-copy h2 {
  font-size: clamp(1.45rem, 3vw, 2.35rem);
  margin-bottom: 12px;
}

.usage-copy p {
  color: var(--muted);
  margin: 0;
}

.step-label {
  display: inline-flex;
  margin-bottom: 12px;
  color: #0f6946;
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  font-weight: 900;
}

.phone-mockup {
  max-width: 390px;
  width: 100%;
  justify-self: center;
  background: #eef6ee;
  border: 1px solid #c7dbc9;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.mock-header {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #06c755;
  color: #062d20;
  font-weight: 900;
}

.mock-header img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
}

.chat-thread {
  min-height: 270px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  background:
    linear-gradient(rgba(238, 246, 238, 0.92), rgba(238, 246, 238, 0.92)),
    url("public/hero.png") center bottom / cover no-repeat;
}

.bubble {
  max-width: 84%;
  padding: 10px 12px;
  border-radius: 16px;
  line-height: 1.45;
  font-size: 0.98rem;
  box-shadow: 0 4px 12px rgba(18, 63, 58, 0.08);
}

.bubble .time {
  display: block;
  margin-bottom: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(9, 47, 43, 0.5);
}

.bubble.user {
  align-self: flex-end;
  background: #9ff29c;
  border-bottom-right-radius: 4px;
}

.bubble.bot {
  align-self: flex-start;
  background: #ffffff;
  border-bottom-left-radius: 4px;
}

.quick-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
}

.quick-pills span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 10px;
  background: #ffffff;
  border: 1px solid #c7dbc9;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
}

.flex-card {
  width: 100%;
  padding: 12px;
  background: #ffffff;
  border: 1px solid #c7dbc9;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(18, 63, 58, 0.08);
}

.flex-card strong {
  display: block;
  margin-bottom: 8px;
}

.muted-card {
  background: #fffdfa;
}

.card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid #e4efe5;
  font-size: 0.9rem;
}

.card-row em {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef6ee;
  color: #0f6946;
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.dashboard-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.dashboard-tabs span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 9px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #c7dbc9;
  color: #244f49;
  font-size: 0.82rem;
  font-weight: 800;
}

.liff-mock {
  min-height: 500px;
  display: flex;
  flex-direction: column;
  background: #f4f5f7;
  color: #1f2937;
}

.liff-titlebar {
  min-height: 72px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 16px;
  padding: 16px 18px 12px;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  text-align: center;
}

.liff-titlebar strong {
  justify-self: center;
  font-size: 1.3rem;
}

.liff-titlebar span {
  color: #111827;
  font-size: 1.55rem;
  line-height: 1;
}

.liff-profile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

.liff-profile strong {
  font-size: 1.28rem;
}

.liff-profile span {
  color: #8a8f98;
  font-weight: 700;
}

.liff-card {
  margin: 14px 14px 0;
  padding: 16px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(17, 24, 39, 0.08);
}

.liff-card.success {
  border-top: 54px solid #17bf78;
  position: relative;
}

.liff-card.success > strong:first-child {
  position: absolute;
  top: -42px;
  left: 16px;
  color: #ffffff;
}

.liff-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.liff-card p {
  margin: 6px 0;
  color: #374151;
}

.liff-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  margin-top: auto;
  padding: 10px 8px 12px;
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
}

.liff-tabs span {
  color: #8a8f98;
  font-size: 0.8rem;
  line-height: 1.2;
  text-align: center;
  font-weight: 800;
}

.liff-tabs span:first-child {
  color: #3278ff;
}

.command-panel {
  margin-top: 34px;
}

.shortcut-panel {
  margin-top: 34px;
}

.shortcut-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.secondary-shortcuts {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.shortcut-grid p {
  color: var(--muted);
  margin: 0;
}

.command-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.command-grid h3 {
  color: #0f6946;
}

.how-cta {
  margin-top: 34px;
  padding: clamp(24px, 4vw, 40px);
  border-radius: 8px;
}

.example-gallery {
  margin: 72px 0 36px;
}

.gallery-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.mockup-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.mini-example {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.mini-example h3 {
  min-height: 2.4em;
  color: var(--ink);
}

.phone-mockup.compact {
  max-width: none;
  border-radius: 18px;
}

.phone-mockup.compact .mock-header {
  min-height: 48px;
  padding: 9px 13px;
}

.phone-mockup.compact .mock-header img {
  width: 28px;
  height: 28px;
}

.phone-mockup.compact .chat-thread {
  min-height: 300px;
  padding: 14px;
}

.phone-mockup.compact .bubble {
  max-width: 92%;
  font-size: 0.9rem;
}

.phone-mockup.compact .quick-pills span {
  min-height: 30px;
  padding: 5px 9px;
  font-size: 0.8rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  background: #fff7e6;
}

.footer-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.94rem;
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

@media (max-width: 820px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 12px 0;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
  }

  .nav-links a {
    padding-inline: 10px;
  }

  .hero {
    min-height: auto;
    background:
      linear-gradient(180deg, rgba(255, 250, 240, 0.97) 0%, rgba(255, 250, 240, 0.78) 58%, rgba(255, 250, 240, 0.28) 100%),
      url("public/hero.png") center bottom / cover no-repeat;
  }

  .hero-copy {
    padding: 44px 0 180px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .release-featured {
    grid-template-columns: 1fr;
  }

  .usage-card,
  .usage-card.reverse {
    grid-template-columns: 1fr;
  }

  .usage-card.reverse .usage-copy {
    order: 0;
  }

  .command-grid {
    grid-template-columns: 1fr;
  }

  .shortcut-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mockup-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section {
    padding: 52px 0;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 15px;
  }

  .hero-inner,
  .section-inner,
  .page-inner,
  .nav,
  .footer-inner {
    width: min(100% - 24px, 1120px);
  }

  .hero-logo {
    width: 132px;
    height: 132px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .mockup-grid {
    grid-template-columns: 1fr;
  }

  .shortcut-grid {
    grid-template-columns: 1fr;
  }

  .mini-example h3 {
    min-height: auto;
  }
}
