:root {
  --ink: #1a2e22;
  --muted: #4f6b58;
  --bg: #e8f0e6;
  --bg-soft: #d5e6d2;
  --paper: #f5faf3;
  --line: rgba(26, 46, 34, 0.14);
  --accent: #2f8f4e;
  --accent-deep: #1f6b38;
  --leaf: #7cbc6a;
  --mint: #b8d9b0;
  --on-accent: #f4fff6;
  --font: 'Anuphan', sans-serif;
  --heading: 'Kanit', 'Anuphan', sans-serif;
  --mono: 'IBM Plex Mono', 'Anuphan', monospace;
  --max: 1100px;
  --demo-h: 48px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  font-family: var(--font);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
  font-synthesis: none;
  background:
    radial-gradient(ellipse 45% 35% at 100% 0%, rgba(47, 143, 78, 0.14), transparent 55%),
    radial-gradient(ellipse 40% 30% at 0% 70%, rgba(184, 217, 176, 0.55), transparent 50%),
    linear-gradient(180deg, #eef5eb, var(--bg));
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; font-size: 16px; }
ul { list-style: none; }
.wrap { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.demo-bar {
  position: sticky; top: 0; z-index: 60;
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; flex-wrap: wrap; padding: 0.55rem 1.25rem;
  background: #122018; color: #fff; font-size: 0.82rem;
}
.demo-bar strong {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.06em;
  color: var(--leaf); font-weight: 500;
}
.demo-bar__actions { display: flex; gap: 0.45rem; flex-wrap: wrap; }
.demo-bar a {
  padding: 0.35rem 0.7rem; border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius); font-size: 0.78rem; font-weight: 500;
}
.demo-bar a.is-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

.site-header {
  position: sticky; top: var(--demo-h); z-index: 50;
  background: rgba(232, 240, 230, 0.94); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-h); position: relative;
}
.brand {
  font-family: var(--heading); font-weight: 700; font-size: 1.3rem;
  display: inline-flex; align-items: baseline; gap: 0.45rem;
}
.brand small {
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent-deep); font-weight: 500;
}
.menu-toggle {
  display: none; background: none; border: 1px solid var(--line);
  padding: 0.45rem 0.8rem; cursor: pointer; border-radius: var(--radius); color: var(--ink);
}
.nav { display: flex; align-items: center; gap: 1.15rem; }
.nav a { font-size: 0.92rem; font-weight: 500; color: var(--muted); }
.nav-cta {
  background: var(--accent); color: var(--on-accent) !important;
  padding: 0.55rem 1.05rem; border-radius: var(--radius); font-weight: 700;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.9rem 1.4rem; font-weight: 700; border-radius: var(--radius);
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform 0.2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--ghost { color: #fff; border-color: rgba(255,255,255,0.45); background: transparent; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.hero {
  position: relative; min-height: min(90dvh, 820px);
  display: flex; align-items: flex-end; color: #fff; overflow: hidden;
}
.hero__media { position: absolute; inset: 0; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover;
  animation: ken 22s var(--ease) both;
}
.hero__media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(18, 40, 28, 0.92) 0%, rgba(18, 40, 28, 0.55) 50%, rgba(18, 40, 28, 0.28) 100%);
}
.hero__fx { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.leaf {
  position: absolute; width: 140px; height: 70px;
  background: radial-gradient(ellipse at 40% 40%, rgba(124, 188, 106, 0.45), transparent 70%);
  border-radius: 0 80% 20% 80%; filter: blur(1px);
  animation: sway 12s ease-in-out infinite;
}
.leaf--1 { top: 16%; right: 12%; }
.leaf--2 { top: 48%; left: 8%; width: 100px; animation-delay: -3s; }
.leaf--3 { bottom: 22%; right: 28%; width: 80px; animation-delay: -6s; }
@keyframes sway {
  0%, 100% { transform: rotate(-6deg) translateY(0); opacity: 0.5; }
  50% { transform: rotate(8deg) translateY(-12px); opacity: 0.85; }
}
@keyframes ken {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}
.hero__inner {
  position: relative; z-index: 2;
  width: min(100% - 2.5rem, var(--max)); margin: 0 auto;
  padding: 4.5rem 0 3.75rem; max-width: 38rem;
}
.hero__brand {
  font-family: var(--heading); font-size: clamp(1.9rem, 4.2vw, 2.75rem);
  font-weight: 700; letter-spacing: -0.03em; margin-bottom: 0.85rem; line-height: 1.15;
}
.hero__brand span {
  display: block; font-family: var(--mono); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--mint); margin-top: 0.35rem;
}
.hero h1 {
  font-family: var(--heading); font-size: clamp(1.55rem, 3.4vw, 2.15rem);
  font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; margin-bottom: 0.85rem;
}
.hero h1 em { font-style: normal; color: #c5ecc0; }
.hero__lead { color: rgba(255,255,255,0.82); margin-bottom: 1.4rem; max-width: 32rem; }

.section { padding: 4.5rem 0; }
.section--mint { background: linear-gradient(180deg, transparent, var(--bg-soft) 30%, var(--bg-soft)); }
.section--contact {
  background: linear-gradient(155deg, #122018 0%, #1a3a28 100%);
  color: #eef8ec;
}
.section__head { margin-bottom: 2rem; max-width: 36rem; }
.section__head h2 {
  font-family: var(--heading); font-size: clamp(1.75rem, 3.2vw, 2.4rem);
  letter-spacing: -0.02em; margin: 0.35rem 0 0.65rem;
}
.section__head p { color: var(--muted); }
.eyebrow {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent-deep); margin-bottom: 0.5rem;
}
.eyebrow.light { color: var(--mint); }

/* Builder — three interactive step columns + preview */
.builder {
  display: grid; grid-template-columns: 1.25fr 0.95fr; gap: 1.5rem; align-items: start;
}
.builder__steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.85rem;
}
.step-col {
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 1.1rem 0.95rem 1.15rem;
  display: grid; gap: 0.55rem; align-content: start;
  box-shadow: 0 12px 28px rgba(26, 46, 34, 0.05);
}
.step-col__head {
  display: flex; align-items: baseline; gap: 0.55rem;
  margin-bottom: 0.35rem; padding-bottom: 0.65rem;
  border-bottom: 1px dashed var(--line);
}
.step-col__num {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em;
  color: var(--accent); font-weight: 500;
}
.step-col h3 {
  font-family: var(--heading); font-size: 1.15rem; font-weight: 600;
}
.chip {
  display: flex; align-items: center; gap: 0.5rem;
  width: 100%; text-align: left;
  padding: 0.7rem 0.8rem; border-radius: 10px;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  cursor: pointer; font-weight: 600; font-size: 0.95rem;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--ease);
}
.chip:hover { transform: translateY(-2px); border-color: var(--accent); }
.chip.is-on {
  background: var(--accent); border-color: var(--accent); color: var(--on-accent);
  animation: chipPop 0.35s var(--ease);
}
@keyframes chipPop {
  0% { transform: scale(0.96); }
  60% { transform: scale(1.03); }
  100% { transform: scale(1); }
}
.swatch {
  width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0;
  border: 1px solid rgba(0,0,0,0.12);
}
.swatch--blush { background: #e8a090; }
.swatch--fresh { background: #5fad5a; }
.swatch--cream { background: #f2ead8; }
.swatch--sunset { background: #e08a4a; }
.chip.is-on .swatch { border-color: rgba(255,255,255,0.5); }

.builder__preview {
  background: var(--ink); color: #eef8ec;
  border-radius: 16px; padding: 1.15rem;
  display: grid; gap: 0.9rem;
  position: sticky; top: 130px;
}
.builder__label {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--mint);
}
.preview-stage {
  border-radius: 12px; overflow: hidden; background: #0f1c14;
  border: 1px solid rgba(255,255,255,0.1);
}
.preview-stage img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  transition: opacity 0.35s var(--ease), transform 0.55s var(--ease);
}
.preview-stage img.is-flash { animation: flashIn 0.45s var(--ease); }
@keyframes flashIn {
  from { opacity: 0.35; transform: scale(1.04); }
  to { opacity: 1; transform: scale(1); }
}
.preview-meta { padding: 0.9rem 1rem 1.05rem; display: grid; gap: 0.25rem; }
.preview-meta strong { font-family: var(--heading); font-size: 1.1rem; }
.preview-meta span { color: rgba(238,248,236,0.7); font-size: 0.9rem; }

.arr-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem;
}
.arr {
  display: grid; gap: 0; text-align: left; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: 14px; overflow: hidden;
  background: var(--paper); color: var(--ink); padding: 0;
  transition: transform 0.25s var(--ease), border-color 0.2s;
}
.arr:hover { transform: translateY(-4px); border-color: var(--accent); }
.arr img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  transition: transform 0.55s var(--ease);
}
.arr:hover img { transform: scale(1.05); }
.arr span { display: grid; gap: 0.2rem; padding: 0.85rem 0.95rem 1rem; }
.arr strong { font-family: var(--heading); font-size: 1rem; }
.arr small { color: var(--muted); font-size: 0.84rem; }

.reveal-stagger > * { opacity: 0; transform: translateY(12px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.reveal.is-in.reveal-stagger > * { opacity: 1; transform: none; }
.reveal.is-in.reveal-stagger > *:nth-child(1) { transition-delay: 0.04s; }
.reveal.is-in.reveal-stagger > *:nth-child(2) { transition-delay: 0.08s; }
.reveal.is-in.reveal-stagger > *:nth-child(3) { transition-delay: 0.12s; }
.reveal.is-in.reveal-stagger > *:nth-child(4) { transition-delay: 0.16s; }

.contact {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 2.5rem; align-items: start;
}
.contact h2 {
  font-family: var(--heading); font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0.4rem 0 0.7rem; color: #fff;
}
.contact > .reveal > p { color: rgba(238,248,236,0.78); }
.build-summary {
  margin-top: 1rem; padding: 0.85rem 1rem;
  border: 1px dashed rgba(184, 217, 176, 0.45); border-radius: 10px;
  font-size: 0.95rem;
}
.build-summary strong { color: var(--mint); }
.form {
  background: var(--paper); color: var(--ink); padding: 1.6rem;
  border-radius: 16px; display: grid; gap: 0.9rem;
}
.field { display: grid; gap: 0.3rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.field label { font-size: 0.85rem; font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
  padding: 0.75rem 0.9rem; border: 1px solid var(--line);
  border-radius: 10px; background: #fff;
}

.site-footer { background: #122018; color: rgba(255,255,255,0.72); padding: 1.75rem 0; }
.footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.site-footer .brand { color: #fff; }
.site-footer .brand small { color: var(--mint); }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.65s var(--ease), transform 0.65s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

.rate-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}
.rate-cell {
  padding: 1.45rem 1.2rem 1.4rem;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: var(--paper);
}
.rate-cell:last-child { border-right: none; }
.rate-cell__size {
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent, #2d6a4f);
  margin-bottom: 0.65rem;
}
.rate-cell h3 {
  font-family: var(--heading);
  font-size: 1.08rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.rate-cell p { color: var(--muted); font-size: 0.92rem; line-height: 1.55; }

.zones {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  align-items: start;
}
.zones > div > p { color: var(--muted); }
.zones__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem 1.25rem;
}
.zones__meta dt {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent, #2d6a4f);
  margin-bottom: 0.3rem;
}
.zones__meta dd { font-weight: 500; line-height: 1.45; }

.faq-rows { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq-row {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.faq-row summary {
  list-style: none;
  cursor: pointer;
  padding: 1.05rem 1.15rem;
  font-family: var(--heading);
  font-weight: 600;
  font-size: 1.02rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.faq-row summary::-webkit-details-marker { display: none; }
.faq-row summary::after {
  content: '+';
  font-family: var(--mono);
  color: var(--muted);
}
.faq-row[open] summary::after { content: '–'; }
.faq-row p {
  margin: 0;
  padding: 0 1.15rem 1.1rem;
  color: var(--muted);
  max-width: 42rem;
}

.voice-path {
  max-width: 42rem;
  width: 100%;
  margin-inline: auto;
  list-style: none;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
  counter-reset: none;
}
#voices .section__head,
#voices header.section__head {
  max-width: 42rem;
  width: 100%;
  margin-inline: auto;
}

.voice-path__step {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.voice-path__mark {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--accent, #2d6a4f);
  padding-top: 0.2rem;
}
.voice-path__step p {
  font-family: var(--heading);
  font-size: 1.08rem;
  line-height: 1.45;
  margin: 0 0 0.5rem;
  font-weight: 500;
}
.voice-path__step cite {
  font-style: normal;
  font-size: 0.88rem;
  color: var(--muted);
}

@media (max-width: 980px) {
  .builder { grid-template-columns: 1fr; }
  .builder__preview { position: static; }
  .builder__steps { grid-template-columns: 1fr; }
  .arr-grid { grid-template-columns: 1fr 1fr; }
  .contact, .zones, .zones__meta { grid-template-columns: 1fr; }
  .rate-rail { grid-template-columns: 1fr 1fr; }
  .rate-cell:nth-child(2n) { border-right: none; }
  .field-row { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .menu-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 100%; right: 0; left: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 0.75rem 1.25rem 1rem; gap: 0.35rem;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 0.65rem 0.35rem; }
  .arr-grid { grid-template-columns: 1fr; }
  .rate-rail { grid-template-columns: 1fr; }
  .rate-cell { border-right: none; }
}
