/* Duckbot Home — brand CI locked */
:root {
  --teal: #4ECDC4;
  --teal-dark: #3AB5AC;
  --teal-light: #D4F0EE;
  --forest: #2D5016;
  --orange: #F4A42C;
  --cream: #FFF8E1;
  --yellow: #F9E8A0;
  --peach: #F5C0C0;
  --pink: #ffb7eb;
  --ink: #1A1A1A;
  --grey: #F7F7F7;
  --white: #ffffff;
  --shadow: 0 8px 28px rgba(45, 80, 22, 0.10);
  --shadow-soft: 0 4px 16px rgba(45, 80, 22, 0.08);
  --radius: 1.25rem;
  --radius-lg: 1.75rem;
  --max: 68rem;
  --font-display: "Nunito", "Noto Sans Thai", system-ui, sans-serif;
  --font-body: "Nunito Sans", "Noto Sans Thai", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--forest);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--teal-dark);
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--forest);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 {
  font-weight: 900;
  font-size: clamp(2.25rem, 5vw, 3.25rem);
}

h2 {
  font-weight: 800;
  font-size: clamp(1.6rem, 3.5vw, 2rem);
}

h3 {
  font-weight: 700;
  font-size: 1.15rem;
}

p {
  margin: 0 0 1em;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 0.6rem;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* ——— Nav ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 248, 225, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(78, 205, 196, 0.25);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--forest);
}

.nav-brand:hover {
  color: var(--forest);
}

.nav-logo {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
  border-radius: 0.55rem;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.nav-wordmark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.nav-links {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.25rem 1.25rem;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--forest);
  padding: 0.35rem 0.2rem;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--teal-dark);
}

.nav-cta {
  display: none;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 2px solid var(--teal);
  border-radius: 999px;
  background: var(--white);
  color: var(--forest);
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
}

.nav-toggle[aria-expanded="true"] {
  background: var(--teal-light);
}

.nav-panel {
  display: none;
  padding: 0 0 1rem;
}

.nav-panel.is-open {
  display: block;
}

.nav-panel .nav-links {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.25rem;
}

.nav-panel .nav-links a {
  padding: 0.65rem 0.75rem;
  border-radius: 0.75rem;
}

.nav-panel .nav-links a:hover {
  background: var(--teal-light);
}

.nav-panel .btn {
  margin-top: 0.75rem;
  width: 100%;
  text-align: center;
}

@media (min-width: 840px) {
  .nav-toggle {
    display: none;
  }

  .nav-links {
    display: flex;
  }

  .nav-cta {
    display: inline-flex;
  }

  .nav-panel {
    display: none !important;
  }
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.2;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: none;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-primary {
  background: var(--orange);
  color: var(--ink);
  box-shadow: 0 4px 14px rgba(244, 164, 44, 0.35);
}

.btn-primary:hover {
  background: #e89520;
  color: var(--ink);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.55);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.btn-link {
  background: transparent;
  color: var(--forest);
  padding: 0.5rem 0;
  box-shadow: none;
  font-size: 0.95rem;
}

.btn-link:hover {
  color: var(--teal-dark);
  transform: none;
}

.btn-link::after {
  content: " →";
  color: var(--orange);
  font-weight: 900;
}

/* ——— Hero ——— */
.hero {
  position: relative;
  overflow: hidden;
  padding: 2.5rem 0 3.5rem;
  background: linear-gradient(135deg, var(--yellow) 0%, var(--peach) 50%, var(--pink) 100%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero::before {
  width: 12rem;
  height: 12rem;
  background: rgba(78, 205, 196, 0.35);
  top: -4rem;
  right: -3rem;
}

.hero::after {
  width: 8rem;
  height: 8rem;
  background: rgba(244, 164, 44, 0.3);
  bottom: -2rem;
  left: 8%;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 840px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
  }
}

.hero-kicker {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--teal-dark);
  margin: 0 0 0.15rem;
}

.hero h1 {
  margin-bottom: 0.35em;
}

.hero-tagline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  color: var(--ink);
  margin: 0 0 0.75em;
}

.hero-sub {
  font-size: 1.05rem;
  max-width: 32rem;
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-logo-wrap {
  position: relative;
  width: min(100%, 17.5rem);
  display: grid;
  place-items: center;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.hero-blob-a {
  width: 70%;
  height: 70%;
  background: rgba(78, 205, 196, 0.45);
  top: -8%;
  right: -12%;
}

.hero-blob-b {
  width: 55%;
  height: 55%;
  background: rgba(244, 164, 44, 0.35);
  bottom: -6%;
  left: -10%;
}

.hero-logo {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  border-radius: 1.75rem;
  box-shadow: var(--shadow);
  background: var(--white);
}

/* ——— Sections ——— */
.section {
  padding: 3.5rem 0;
}

.section-header {
  max-width: 38rem;
  margin-bottom: 2rem;
}

.section-header p {
  color: #333;
}

.section-muted {
  background: var(--grey);
}

.section-teal {
  background: var(--teal);
}

.section-teal .eyebrow,
.section-teal h2,
.section-teal p,
.section-teal .channel-note {
  color: var(--forest);
}

.product-soon {
  margin-top: 1.75rem;
  text-align: center;
  font-size: 0.95rem;
  color: var(--ink-soft, #3a4a4a);
}
.product-soon .badge {
  position: static;
  display: inline-block;
  margin-right: 0.5rem;
  vertical-align: middle;
}

.channel-note {
  color: var(--forest);
}

.section-cream {
  background: var(--cream);
}

/* ——— Cards ——— */
.card-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .card-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .card-grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-grid.cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .card-grid.cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow);
}

.card-cream { background: var(--cream); }
.card-yellow { background: var(--yellow); }
.card-peach { background: var(--peach); }
.card-teal { background: var(--teal); }
.card-teal-light { background: var(--teal-light); }

.card-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.75rem;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 0.65rem;
}

.card h3 {
  margin-bottom: 0.4rem;
}

.card p:last-child {
  margin-bottom: 0;
}

.section-teal .problem-summary,
.problem-summary {
  margin-top: 1.75rem;
  background: var(--forest);
  color: var(--white);
  text-align: center;
  padding: 1rem 1.5rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: var(--shadow-soft);
}

.problem-summary strong {
  color: var(--yellow);
}

/* ——— Pillars ——— */
.pillars {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .pillars {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pillar {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow);
  text-align: left;
}

.pillar-num {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--teal-light);
  color: var(--forest);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}


.pillar h3 {
  margin-bottom: 0.5rem;
}

@media (min-width: 640px) {
  .pillars.pillars-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .pillars.pillars-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ——— Channels ——— */
.channel-card {
  text-align: center;
  padding: 1.6rem 1.1rem;
}

.channel-icon {
  width: 3.25rem;
  height: 3.25rem;
  margin: 0 auto 0.85rem;
  border-radius: 50%;
  background: var(--white);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1rem;
  color: var(--forest);
  box-shadow: var(--shadow-soft);
}

.channel-card h3 {
  margin-bottom: 0.2rem;
}

.channel-card p {
  margin: 0;
  font-size: 0.95rem;
}

.badge {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: var(--orange);
  color: var(--forest);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.product-soon {
  margin-top: 1.75rem;
  text-align: center;
  font-size: 0.95rem;
  color: var(--ink-soft, #3a4a4a);
}
.product-soon .badge {
  position: static;
  display: inline-block;
  margin-right: 0.5rem;
  vertical-align: middle;
}

.channel-note {
  text-align: center;
  margin-top: 1.75rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--forest);
}

/* ——— Use cases ——— */
.usecase {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
}

.usecase-badge {
  align-self: flex-start;
  background: var(--teal-light);
  color: var(--forest);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}

.usecase-flow {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.usecase-flow li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.95rem;
}

.usecase-flow .step {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--teal-light);
  color: var(--forest);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.75rem;
  display: grid;
  place-items: center;
  margin-top: 0.1rem;
}

.usecase-flow li:last-child .step {
  background: var(--orange);
}

.usecase .btn-link {
  margin-top: auto;
  align-self: flex-start;
}

/* ——— Closing CTA ——— */
.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--forest);
  color: var(--white);
  padding: 3.5rem 0;
}

.cta-band::before,
.cta-band::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.cta-band::before {
  width: 14rem;
  height: 14rem;
  background: var(--teal);
  opacity: 0.9;
  bottom: -7rem;
  left: -4rem;
}

.cta-band::after {
  width: 12rem;
  height: 12rem;
  background: var(--orange);
  opacity: 0.85;
  top: -6rem;
  right: -3rem;
}

.cta-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 720px) {
  .cta-inner {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.cta-band .eyebrow {
  color: var(--yellow);
}

.cta-band h2 {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 28rem;
  margin-bottom: 1.35rem;
}

.cta-mascot {
  justify-self: center;
  width: min(100%, 13rem);
  display: grid;
  place-items: center;
}

.cta-mascot-inner {
  width: 100%;
  border-radius: 1.75rem;
  display: grid;
  place-items: center;
  padding: 0;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.cta-mascot img {
  width: 100%;
  height: auto;
  border-radius: 1.75rem;
  display: block;
}

/* ——— Footer ——— */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.85);
  padding: 2.5rem 0 2rem;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: 1.2fr 1fr;
    align-items: start;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}

.footer-brand img {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
}

.footer-brand span {
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--white);
  font-size: 1.1rem;
}

.site-footer a {
  color: var(--teal);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--yellow);
  text-decoration: underline;
}

.footer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.footer-nav a {
  font-family: var(--font-display);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
}

.footer-meta {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}

.footer-meta a {
  color: var(--teal);
}

/* ——— Contact stub ——— */
#contact {
  scroll-margin-top: 5rem;
}

.contact-stub {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  max-width: 32rem;
}

.contact-stub p:last-child {
  margin-bottom: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ——— Use cases page ——— */
.hero-compact {
  /* Extra top padding so sticky nav doesn't clip the logo card */
  padding: 4.25rem 0 2.75rem;
}

.hero-compact .hero-sub {
  margin-bottom: 1.25rem;
}

.hero-logo-wrap-sm {
  width: min(100%, 14rem);
}

#real-estate,
#restaurants,
#more {
  scroll-margin-top: 5rem;
}

.deep-grid {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 800px) {
  .deep-grid {
    grid-template-columns: 1.35fr 0.9fr;
    gap: 2rem;
  }
}

/* Use-case demo chat visuals */
.deep-visual {
  margin: 0;
  justify-self: center;
  width: 100%;
  max-width: 300px;
}

.deep-visual img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 18px rgba(45, 80, 22, 0.14));
}

@media (min-width: 800px) {
  .deep-grid--visual {
    grid-template-columns: minmax(0, 1fr) 280px;
    grid-template-areas: "flow visual" "aside visual";
    column-gap: 2.5rem;
  }
  .deep-grid--visual.deep-grid--flip {
    grid-template-columns: 280px minmax(0, 1fr);
    grid-template-areas: "visual flow" "visual aside";
  }
  .deep-grid--visual > div:first-child { grid-area: flow; }
  .deep-grid--visual > aside { grid-area: aside; }
  .deep-grid--visual > .deep-visual { grid-area: visual; align-self: center; }
}

@media (min-width: 1100px) {
  .deep-grid--visual {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.95fr) 280px;
    grid-template-areas: "flow aside visual";
  }
  .deep-grid--visual.deep-grid--flip {
    grid-template-columns: 280px minmax(0, 1.2fr) minmax(0, 0.95fr);
    grid-template-areas: "visual flow aside";
  }
}

.deep-subtitle {
  margin-bottom: 1rem;
}

.deep-flow {
  margin-top: 0;
}

.deep-flow li {
  font-size: 1rem;
  line-height: 1.55;
}

.deep-flow strong {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--forest);
}

.deep-aside h3 {
  margin-bottom: 0.85rem;
}

.deep-aside-note {
  margin: 1rem 0 0;
  font-size: 0.95rem;
  color: #333;
}

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.check-list li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 0.95rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 0.25rem;
  background: var(--teal);
  box-shadow: inset 0 0 0 2px rgba(45, 80, 22, 0.15);
}

.channel-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.65rem;
  margin-top: 2rem;
  padding: 1rem 1.15rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.channel-strip-label {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--forest);
  margin-right: 0.25rem;
}

.channel-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--teal-light);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--forest);
}

.channel-chip em {
  font-style: normal;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--orange);
  color: var(--forest);
  padding: 0.15rem 0.4rem;
  border-radius: 999px;
}

.more-note {
  padding: 2rem 1.75rem;
}

.more-note .section-header {
  max-width: 42rem;
}

.section-header .usecase-badge {
  display: inline-block;
  margin-bottom: 0.85rem;
}

.section-header-flush {
  margin-bottom: 0;
}

/* ——— Contact page ——— */
#form {
  scroll-margin-top: 5rem;
}

.contact-layout {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 880px) {
  .contact-layout {
    grid-template-columns: 1.45fr 0.9fr;
    gap: 2rem;
  }
}

.contact-form-card {
  padding: 1.75rem 1.5rem 2rem;
}

@media (min-width: 600px) {
  .contact-form-card {
    padding: 2rem 2rem 2.25rem;
  }
}

.contact-form {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-field label,
.form-fieldset legend {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--forest);
}

.form-field .req,
.form-fieldset .req {
  color: var(--orange);
}

.form-field .optional {
  font-weight: 600;
  font-size: 0.8rem;
  color: #666;
}

.form-field input,
.form-field select,
.form-field textarea {
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 2px solid rgba(78, 205, 196, 0.45);
  border-radius: 0.75rem;
  padding: 0.7rem 0.9rem;
  width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--teal-dark);
  box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.35);
}

.form-field textarea {
  resize: vertical;
  min-height: 6.5rem;
}

.form-field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--forest) 50%),
    linear-gradient(135deg, var(--forest) 50%, transparent 50%);
  background-position: calc(100% - 1.15rem) calc(50% - 0.15rem),
    calc(100% - 0.85rem) calc(50% - 0.15rem);
  background-size: 0.35rem 0.35rem, 0.35rem 0.35rem;
  background-repeat: no-repeat;
  padding-right: 2.25rem;
}

.form-row {
  display: grid;
  gap: 1.1rem;
}

@media (min-width: 560px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.form-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.form-fieldset legend {
  margin-bottom: 0.65rem;
  padding: 0;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem 0.75rem;
}

@media (min-width: 480px) {
  .checkbox-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.check-option {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.65rem;
  background: var(--teal-light);
  border-radius: 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--forest);
  cursor: pointer;
}

.check-option input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--teal-dark);
  flex-shrink: 0;
}

.form-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 0.35rem;
}

.form-fallback,
.cta-fallback {
  margin: 0;
  font-size: 0.95rem;
  color: #444;
}

.cta-fallback {
  margin-top: 1rem;
}

.cta-fallback a,
.form-fallback a {
  font-weight: 700;
}

.contact-aside {
  padding: 1.75rem 1.5rem;
}

.contact-aside-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.contact-company {
  margin-bottom: 1rem;
}

.contact-company strong {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--forest);
}

.contact-address {
  font-style: normal;
  margin: 0 0 1.25rem;
  line-height: 1.55;
  color: #333;
}

.contact-details {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-details li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.contact-label {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-dark);
}

.contact-details a {
  font-weight: 700;
  text-decoration: none;
}

.contact-details a:hover {
  text-decoration: underline;
}

/* Contact form status */
.form-status { margin: 0.5rem 0 0; font-weight: 600; min-height: 1.2em; color: var(--forest); }
.form-status.is-success { color: #2D5016; }
.form-status.is-error { color: #B3261E; }

/* ——— Case studies ——— */
.case-grid, .feature-grid { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 860px) {
  .case-grid { grid-template-columns: 1.4fr 1fr; }
  .case-grid-flip { grid-template-columns: 1fr 1.4fr; }
  .feature-grid { grid-template-columns: 1fr 1.3fr; align-items: center; }
  .feature-grid-flip .feature-copy { order: 2; }
  .feature-grid-flip { grid-template-columns: 1.3fr 1fr; }
}
.case-story > p { color: #333; }
.case-story .deep-subtitle { margin-top: 1.5rem; }
.case-story .deep-subtitle:first-child { margin-top: 0; }
.case-outcome { margin-top: 1.5rem; }
.case-visual { margin: 0; text-align: center; }
.case-visual img { width: 100%; max-width: 320px; height: auto; filter: drop-shadow(0 12px 24px rgba(45, 80, 22, 0.18)); }
.case-visual figcaption, .case-footnote, .stat-note, .price-note { font-size: 0.85rem; color: #555; margin-top: 0.75rem; }
.case-footnote { text-align: center; margin-top: 1.5rem; }
.stat-block { margin-top: 1.25rem; display: flex; flex-wrap: wrap; gap: 1rem; background: var(--forest); color: var(--white); border-radius: var(--radius-lg); padding: 1.25rem 1.5rem; box-shadow: var(--shadow-soft); }
.stat { display: flex; flex-direction: column; min-width: 9rem; }
.stat-num { font-family: var(--font-display); font-weight: 900; font-size: 2.25rem; line-height: 1; color: var(--orange); }
.stat-label { font-size: 0.9rem; margin-top: 0.3rem; }
.stat-block .stat-note { flex-basis: 100%; color: rgba(255,255,255,0.8); margin: 0; }
.price-list { list-style: none; padding: 0; margin: 0 0 0.5rem; }
.price-list li { display: grid; gap: 0.15rem; padding: 0.5rem 0; border-bottom: 1px dashed rgba(45, 80, 22, 0.2); }
.price-list li span:first-child { font-family: var(--font-display); font-weight: 800; color: var(--forest); }
.feature-visual { margin: 0; }
.feature-visual img { width: 100%; height: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.feature-copy .check-list { margin-bottom: 1rem; }

/* Email fallback on dark CTA band: keep it readable */
.cta-band .cta-fallback {
  color: rgba(255, 255, 255, 0.85);
}
.cta-band .cta-fallback a {
  color: var(--yellow);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cta-band .cta-fallback a:hover,
.cta-band .cta-fallback a:focus-visible {
  color: var(--white);
}

/* ——— Language switch (EN / TH) ——— */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

/* Small screens: header shows logo + language pill + menu button;
   the CTA lives in the menu panel (and in each page's hero). */
.nav-actions .nav-cta {
  display: none;
}

@media (min-width: 840px) {
  .nav-actions .nav-cta {
    display: inline-flex;
  }
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  height: 2.25rem;
  padding: 0 0.75rem;
  border: 2px solid var(--teal);
  border-radius: 999px;
  background: var(--white);
  color: var(--forest);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  line-height: 1;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.lang-switch:hover,
.lang-switch:focus-visible {
  background: var(--teal-light);
  border-color: var(--teal-dark);
  color: var(--forest);
}

/* ——— Thai typography ———
   Thai has stacked vowels/tone marks and no capitals, so loosen line-height
   and drop the wide uppercase tracking used on small labels. */
html[lang="th"] body {
  line-height: 1.75;
}

html[lang="th"] h1,
html[lang="th"] h2,
html[lang="th"] h3 {
  line-height: 1.4;
}

html[lang="th"] .eyebrow,
html[lang="th"] .usecase-badge,
html[lang="th"] .contact-label {
  letter-spacing: 0.01em;
  font-size: 0.8rem;
}

html[lang="th"] .nav-links a {
  font-size: 0.92rem;
  white-space: nowrap;
}

/* Keep the menu-button layout until all six links fit on one line next to
   the language pill and CTA (Thai labels are longer, so Thai switches later). */
@media (min-width: 840px) and (max-width: 999px) {
  html[lang="en"] .nav > .nav-links {
    display: none;
  }

  html[lang="en"] .nav-toggle {
    display: inline-flex;
  }

  html[lang="en"] .nav-panel.is-open {
    display: block !important;
  }
}

@media (min-width: 840px) and (max-width: 1099px) {
  html[lang="th"] .nav > .nav-links {
    display: none;
  }

  html[lang="th"] .nav-toggle {
    display: inline-flex;
  }

  html[lang="th"] .nav-panel.is-open {
    display: block !important;
  }
}

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

/* ---------- Animated demo chat phone (assets/chat-demo.js, tools/chat_demo.py) ---------- */
.chat-demo { max-width: 300px; }
.cd-phone {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 580px;
  background: var(--cream);
  border: 5px solid var(--forest);
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 4px 0 rgba(45, 80, 22, 0.12), 0 10px 22px rgba(45, 80, 22, 0.12);
  font-family: var(--font-body);
  color: var(--ink);
  text-align: left;
}
.cd-top {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 26px 14px 11px;
  background: var(--peach);
  flex: none;
}
.cd-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 10px;
  border-radius: 8px;
  background: var(--forest);
}
.chat-demo .cd-av { filter: none; width: 40px; height: 40px; border-radius: 11px; flex: none; display: block; }
.cd-title { display: flex; flex-direction: column; min-width: 0; }
.cd-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.25;
  color: var(--forest);
}
.cd-ch { font-size: 0.75rem; line-height: 1.3; color: var(--forest); }
.cd-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.cd-note {
  align-self: center;
  flex: none;
  margin: 9px 0 2px;
  padding: 2px 11px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--forest);
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.6;
}
.cd-scroll {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  scrollbar-width: thin;
  padding: 6px 12px 10px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 16px);
  mask-image: linear-gradient(to bottom, transparent 0, #000 16px);
}
.cd-msgs {
  list-style: none;
  margin: auto 0 0; /* bottom-align short chats but keep long ones scrollable */
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cd-msg { margin: 0; padding: 0; display: flex; flex-direction: column; }
.cd-who {
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 4px 0 2px;
  color: var(--forest);
  opacity: 0.8;
}
.cd-c .cd-who { align-self: flex-end; }
.cd-b .cd-who { margin-left: 32px; }
.cd-row { display: flex; align-items: flex-end; gap: 6px; }
.cd-c .cd-row { justify-content: flex-end; }
.chat-demo .cd-bav { filter: none; width: 26px; height: 26px; border-radius: 8px; flex: none; display: block; }
.cd-bub {
  max-width: 82%;
  padding: 7px 11px;
  border-radius: 15px;
  font-size: 0.84375rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.cd-c .cd-bub { background: var(--peach); color: var(--ink); border-bottom-right-radius: 5px; }
.cd-b .cd-bub { background: var(--white); border: 1.5px solid var(--peach); border-bottom-left-radius: 5px; }
.cd-bar { display: flex; align-items: center; gap: 8px; padding: 8px 11px 20px; flex: none; }
.cd-inp {
  flex: 1;
  height: 32px;
  border-radius: 16px;
  border: 1.5px solid #e4dcc0;
  background: var(--white);
  color: #8a8a8a;
  font-size: 0.75rem;
  line-height: 29px;
  padding: 0 13px;
}
.cd-send {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.cd-home {
  position: absolute;
  bottom: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 84px;
  height: 4px;
  border-radius: 3px;
  background: var(--forest);
}

/* Animation states (set by chat-demo.js) */
.cd-anim .cd-scroll { overflow-y: hidden; }
.cd-anim .cd-msg { display: none; }
.cd-anim .cd-msg.is-in { display: flex; animation: cd-in 0.32s ease-out both; }
.cd-anim .cd-c.is-in { transform-origin: bottom right; }
.cd-anim .cd-b.is-in { transform-origin: bottom left; }
.cd-msgs { transition: opacity 0.4s ease; }
.cd-out .cd-msgs { opacity: 0; }
.cd-dots { display: inline-flex; gap: 4px; align-items: center; padding: 11px 13px; }
.cd-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--forest);
  opacity: 0.35;
  animation: cd-dot 1.1s infinite ease-in-out;
}
.cd-dots i:nth-child(2) { animation-delay: 0.16s; }
.cd-dots i:nth-child(3) { animation-delay: 0.32s; }
@keyframes cd-in {
  from { opacity: 0; transform: translateY(8px) scale(0.96); }
  to { opacity: 1; transform: none; }
}
@keyframes cd-dot {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 0.85; transform: translateY(-3px); }
}
@media (prefers-reduced-motion: reduce) {
  .cd-anim .cd-msg.is-in, .cd-dots i { animation: none; }
  .cd-msgs { transition: none; }
}

/* Use-case anchors (sticky header offset); #spa-clinics is the old anchor kept as an alias of #massage */
#massage,
#recruitment,
#sports-courts,
.anchor-alias {
  scroll-margin-top: 5rem;
}
.anchor-alias { display: block; height: 0; }

/* Home use-case grid with 5 cards: 1 col → 2 cols (last card full width) → 2 + 3 */
@media (min-width: 640px) {
  .card-grid.cols-5 { grid-template-columns: repeat(2, 1fr); }
  .card-grid.cols-5 > :last-child { grid-column: 1 / -1; }
}
@media (min-width: 1000px) {
  .card-grid.cols-5 { grid-template-columns: repeat(6, 1fr); }
  .card-grid.cols-5 > * { grid-column: span 2; }
  .card-grid.cols-5 > :nth-child(-n+2) { grid-column: span 3; }
  .card-grid.cols-5 > :last-child { grid-column: span 2; }
}

.channel-icon img {
  width: 82%;
  height: 82%;
  object-fit: contain;
  display: block;
}
