/* ==========================================================
   Therbsy | style.css
   Green palette: forest > pine > emerald > leaf > fern > sage > mint > mist
   ========================================================== */

:root {
  --forest-950: #0b1f15;
  --forest-900: #0f2a1d;
  --forest-800: #163d2a;
  --pine-700:   #1f5638;
  --emerald-600:#2a7a4b;
  --leaf-500:   #3f9a5f;
  --fern-400:   #6dbb7f;
  --sage-300:   #a3cfa9;
  --mint-200:   #cfe8d3;
  --mint-100:   #e6f3e7;
  --mist-50:    #f3f9f2;
  --lime:       #c5e17a;
  --lime-deep:  #a9cc52;

  --ink:   #12271b;
  --muted: #4f6858;
  --line:  #d6e6d8;
  --white: #ffffff;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", "Noto Sans Thai", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-sm: 12px;
  --radius:    20px;
  --radius-lg: 32px;
  --shadow-sm: 0 2px 8px rgba(15, 42, 29, .06);
  --shadow:    0 12px 32px -12px rgba(15, 42, 29, .22);
  --shadow-lg: 0 30px 60px -24px rgba(15, 42, 29, .35);

  --container: 1180px;
  --gutter: 24px;
  --header-h: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--mist-50);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 500; line-height: 1.12; letter-spacing: -0.015em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--lime); color: var(--forest-900); }
:focus-visible { outline: 3px solid var(--leaf-500); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--forest-800); color: var(--white);
  padding: 10px 16px; border-radius: 10px; transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* Icons inside text elements */
.btn svg, .eyebrow svg, .c-link svg, .to-top svg { width: 18px; height: 18px; flex: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px;
  border-radius: 999px; border: 1.5px solid transparent;
  font: 600 15px/1 var(--font-body); letter-spacing: .01em;
  cursor: pointer; white-space: nowrap;
  transition: transform .25s ease, background-color .25s ease, color .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:hover svg { transform: translateX(3px); }
.btn svg { transition: transform .25s ease; }
.btn-sm { height: 44px; padding: 0 20px; font-size: 14px; }

.btn-primary { background: var(--forest-800); color: var(--white); box-shadow: 0 10px 24px -10px rgba(22, 61, 42, .6); }
.btn-primary:hover { background: var(--pine-700); box-shadow: 0 14px 30px -10px rgba(22, 61, 42, .65); }

.btn-ghost { background: transparent; color: var(--forest-800); border-color: var(--sage-300); }
.btn-ghost:hover { background: var(--mint-100); border-color: var(--fern-400); }

.btn-light { background: var(--mint-100); color: var(--forest-800); }
.btn-light:hover { background: var(--white); }

.btn-lime { background: var(--lime); color: var(--forest-900); box-shadow: 0 12px 28px -12px rgba(197, 225, 122, .7); }
.btn-lime:hover { background: #d3ea8f; }
.btn-lime:hover svg, .btn-outline-light:hover svg { transform: none; }

.btn-outline-light { background: transparent; color: var(--mint-100); border-color: rgba(230, 243, 231, .35); }
.btn-outline-light:hover { background: rgba(230, 243, 231, .1); border-color: rgba(230, 243, 231, .6); }

.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; }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 12px;
  border-radius: 999px;
  background: var(--mint-100); color: var(--emerald-600);
  border: 1px solid var(--mint-200);
  font: 600 12.5px/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase;
}
.eyebrow-light { background: rgba(230, 243, 231, .1); color: var(--lime); border-color: rgba(230, 243, 231, .18); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  transition: background-color .3s ease, box-shadow .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(243, 249, 242, .86);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: rgba(163, 207, 169, .35);
  box-shadow: 0 6px 24px -18px rgba(15, 42, 29, .4);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(140deg, var(--leaf-500), var(--forest-800));
  color: var(--mint-100);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 6px 14px -6px rgba(22,61,42,.6);
}
.brand-mark svg { width: 21px; height: 21px; }
.brand-name { font: 600 24px/1 var(--font-display); letter-spacing: -0.02em; color: var(--forest-800); }
.brand-light .brand-name { color: var(--mint-100); }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  position: relative;
  padding: 10px 14px; border-radius: 999px;
  font-weight: 500; font-size: 15px; color: var(--pine-700);
  transition: color .2s, background-color .2s;
}
.nav a:hover { color: var(--forest-900); background: rgba(207, 232, 211, .55); }
.nav a.is-active { color: var(--forest-900); background: var(--mint-100); }
.nav-cta-mobile { display: none; }

.header-actions { display: flex; align-items: center; gap: 12px; }

.menu-toggle {
  display: none;
  width: 46px; height: 46px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--white);
  cursor: pointer; position: relative;
}
.menu-toggle span {
  position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px;
  background: var(--forest-800); transition: transform .3s ease, top .3s ease;
}
.menu-toggle span:first-child { top: 18px; }
.menu-toggle span:last-child  { top: 26px; }
.menu-open .menu-toggle span:first-child { top: 22px; transform: rotate(45deg); }
.menu-open .menu-toggle span:last-child  { top: 22px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 64px) 0 96px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 520px at 85% 10%, rgba(163, 207, 169, .45), transparent 60%),
    radial-gradient(700px 480px at 0% 100%, rgba(197, 225, 122, .22), transparent 60%),
    linear-gradient(180deg, var(--mint-100) 0%, var(--mist-50) 100%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 56px; }

.hero h1 {
  margin: 22px 0 22px;
  font-size: clamp(42px, 6.2vw, 76px);
  font-weight: 500;
  color: var(--forest-900);
}
.hero h1 em { font-style: italic; font-weight: 400; color: var(--emerald-600); }
.lead { max-width: 520px; font-size: 18px; color: var(--muted); }

.hero-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero-points { display: flex; flex-wrap: wrap; gap: 12px 26px; margin-top: 38px; }
.hero-points li { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; font-size: 15px; color: var(--pine-700); }
.hero-points li span {
  width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--fern-400); color: var(--white);
}
.hero-points li svg { width: 14px; height: 14px; }

/* Hero visual */
.hero-visual { position: relative; max-width: 520px; width: 100%; margin-left: auto; }
.visual-blob { position: relative; filter: drop-shadow(0 40px 50px rgba(22, 61, 42, .28)); }
.botanical { width: 100%; height: auto; }

.sway { transform-box: fill-box; transform-origin: 50% 100%; animation: sway 7s ease-in-out infinite; }
.sway-slow { animation-duration: 9s; animation-delay: -2s; }
.sway-alt { animation-duration: 8s; animation-delay: -4s; }
@keyframes sway { 0%, 100% { transform: rotate(-1.6deg); } 50% { transform: rotate(1.6deg); } }

.float-card {
  position: absolute;
  display: flex; align-items: center; gap: 12px;
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 18px;
  box-shadow: var(--shadow);
  text-align: left;
  animation: float 6s ease-in-out infinite;
}
.card-blend { left: -28px; bottom: 16%; padding: 14px 18px 14px 14px; }
.card-blend strong { display: block; font: 600 16px/1.2 var(--font-display); color: var(--forest-900); }
.card-blend small { font-size: 12.5px; color: var(--muted); }
.float-icon {
  width: 44px; height: 44px; border-radius: 14px; flex: none;
  display: grid; place-items: center;
  background: var(--mint-100); color: var(--emerald-600);
}
.float-icon svg { width: 24px; height: 24px; }

.card-badge { right: -8px; top: 14%; padding: 11px 16px; font-size: 13.5px; font-weight: 600; color: var(--pine-700); animation-delay: -3s; }
.float-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--leaf-500); box-shadow: 0 0 0 5px rgba(63, 154, 95, .18); }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.ring-badge {
  position: absolute; right: 4%; bottom: -2%;
  width: 116px; height: 116px;
  filter: drop-shadow(0 14px 22px rgba(22, 61, 42, .25));
}
.ring-badge text { font: 700 10.5px var(--font-body); letter-spacing: .22em; fill: var(--forest-800); }
.ring-badge textPath { }
.ring-badge > text { transform-origin: 60px 60px; animation: spin 22s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Ribbon ---------- */
.ribbon {
  background: var(--forest-800);
  color: var(--mint-200);
  overflow: hidden;
  padding: 18px 0;
  border-top: 1px solid var(--pine-700);
  border-bottom: 1px solid var(--forest-900);
}
.ribbon-track {
  display: flex; align-items: center; gap: 34px; width: max-content;
  animation: marquee 32s linear infinite;
  font: 400 italic 20px/1 var(--font-display);
  letter-spacing: .01em;
}
.ribbon-track span { white-space: nowrap; }
.ribbon-track i { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 112px 0; }
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head h2, .why h2, .story h2, .cta h2 { font-size: clamp(32px, 4.2vw, 50px); color: var(--forest-900); margin-top: 18px; }
.section-head p { margin-top: 16px; color: var(--muted); font-size: 17px; }

/* ---------- Collections ---------- */
.collection-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.collection-card {
  position: relative;
  display: flex; flex-direction: column;
  min-height: 330px;
  padding: 30px 28px 28px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .35s ease, box-shadow .35s ease;
}
.collection-card::after {
  content: ""; position: absolute; right: -60px; top: -60px;
  width: 180px; height: 180px; border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  transition: transform .5s ease;
}
.collection-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.collection-card:hover::after { transform: scale(1.25); }
.collection-card h3 { font-size: 25px; margin: 26px 0 10px; }
.collection-card p { font-size: 15px; line-height: 1.6; flex: 1; }

.c-icon {
  width: 58px; height: 58px; border-radius: 18px;
  display: grid; place-items: center;
}
.c-icon svg { width: 28px; height: 28px; }
.c-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; font-weight: 600; font-size: 15px; }
.c-link svg { transition: transform .25s ease; }
.collection-card:hover .c-link svg { transform: translateX(4px); }

.tone-mint    { background: var(--mint-200); color: var(--forest-900); }
.tone-mint .c-icon { background: var(--white); color: var(--emerald-600); }
.tone-mint p  { color: var(--pine-700); }

.tone-sage    { background: var(--sage-300); color: var(--forest-900); }
.tone-sage .c-icon { background: rgba(255,255,255,.55); color: var(--forest-800); }
.tone-sage p  { color: var(--forest-800); }

.tone-emerald { background: var(--emerald-600); color: var(--white); }
.tone-emerald .c-icon { background: rgba(255,255,255,.16); color: var(--lime); }
.tone-emerald p { color: var(--mint-100); }

.tone-forest  { background: var(--forest-800); color: var(--white); }
.tone-forest .c-icon { background: rgba(197, 225, 122, .14); color: var(--lime); }
.tone-forest p { color: var(--mint-200); }
.tone-forest .c-link, .tone-emerald .c-link { color: var(--lime); }

/* ---------- Why ---------- */
.why {
  position: relative; overflow: hidden;
  background:
    radial-gradient(700px 400px at 100% 0%, rgba(63, 154, 95, .35), transparent 60%),
    linear-gradient(160deg, var(--forest-800), var(--forest-950));
  color: var(--mint-100);
}
.why-leaf { position: absolute; left: -60px; bottom: -80px; width: 420px; color: rgba(109, 187, 127, .08); pointer-events: none; }
.why-grid { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.why h2 { color: var(--white); }
.why-intro p { margin: 18px 0 32px; font-size: 17px; color: var(--sage-300); max-width: 440px; }

.why-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.feature {
  padding: 28px;
  border-radius: var(--radius);
  background: rgba(230, 243, 231, .05);
  border: 1px solid rgba(163, 207, 169, .16);
  transition: background-color .3s ease, border-color .3s ease, transform .3s ease;
}
.feature:hover { background: rgba(230, 243, 231, .09); border-color: rgba(197, 225, 122, .35); transform: translateY(-4px); }
.f-icon {
  width: 50px; height: 50px; border-radius: 15px;
  display: grid; place-items: center;
  background: linear-gradient(140deg, var(--leaf-500), var(--emerald-600));
  color: var(--white);
  box-shadow: 0 10px 20px -10px rgba(63, 154, 95, .8);
}
.f-icon svg { width: 25px; height: 25px; }
.feature h3 { font-size: 21px; margin: 20px 0 8px; color: var(--white); }
.feature p { font-size: 15px; color: var(--sage-300); }

/* ---------- Process ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; }
.steps::before {
  content: ""; position: absolute; left: 12%; right: 12%; top: 46px;
  border-top: 2px dashed var(--sage-300);
}
.step {
  position: relative;
  padding: 0 28px 34px;
  text-align: center;
}
.step-num {
  position: relative;
  width: 92px; height: 92px; margin: 0 auto 26px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm), 0 0 0 10px var(--mist-50);
  font: 500 28px/1 var(--font-display); color: var(--emerald-600);
  transition: background-color .3s ease, color .3s ease;
}
.step:hover .step-num { background: var(--emerald-600); color: var(--white); border-color: var(--emerald-600); }
.step h3 { font-size: 26px; color: var(--forest-900); margin-bottom: 10px; }
.step p { color: var(--muted); max-width: 300px; margin: 0 auto; }

/* ---------- Story ---------- */
.story { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.story-panel {
  position: relative;
  padding: 44px 44px 36px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--mint-100), var(--mint-200));
  overflow: hidden;
}
.story-panel svg { width: 78%; margin: 0 auto; }
.story-panel blockquote {
  margin: 28px 0 0;
  padding: 22px 24px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  font: italic 400 19px/1.45 var(--font-display);
  color: var(--forest-800);
}
.story-copy p { margin-top: 18px; color: var(--muted); font-size: 17px; }
.story-copy h2 { margin-bottom: 4px; }

.story-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.story-stats div { padding: 18px 16px; border-radius: var(--radius-sm); background: var(--mist-50); border: 1px solid var(--line); }
.story-stats strong { display: block; font: 600 20px/1.2 var(--font-display); color: var(--emerald-600); }
.story-stats span { font-size: 14px; color: var(--muted); }

/* ---------- CTA ---------- */
.cta-wrap { padding: 104px 0; }
.cta {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.3fr auto; gap: 40px; align-items: center;
  padding: 64px 64px;
  border-radius: 40px;
  background:
    radial-gradient(500px 300px at 100% 100%, rgba(197, 225, 122, .25), transparent 60%),
    linear-gradient(130deg, var(--emerald-600), var(--pine-700) 45%, var(--forest-900));
  color: var(--mint-100);
  box-shadow: var(--shadow-lg);
}
.cta-leaves { position: absolute; right: -40px; top: -60px; width: 320px; color: rgba(230, 243, 231, .07); pointer-events: none; }
.cta h2 { color: var(--white); }
.cta p { margin-top: 14px; font-size: 17px; color: var(--mint-200); max-width: 520px; }
.cta-actions { position: relative; display: flex; flex-direction: column; gap: 12px; }

/* ---------- Chat widget ---------- */
.chat { position: fixed; right: 24px; bottom: 24px; z-index: 150; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; font-family: var(--font-body); pointer-events: none; }
.chat > * { pointer-events: auto; }

.chat-launcher {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 6px 6px 6px 20px;
  border: 0; border-radius: 999px; cursor: pointer;
  background: var(--forest-800); color: var(--white);
  box-shadow: 0 18px 36px -14px rgba(15, 42, 29, .65);
  font: 600 14.5px/1 var(--font-body);
  transition: transform .25s ease, background-color .25s ease, padding .25s ease;
}
.chat-launcher:hover { transform: translateY(-2px); background: var(--pine-700); }
.chat-launcher-icon {
  position: relative;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--lime); color: var(--forest-900);
}
.chat-launcher-icon svg { position: absolute; width: 23px; height: 23px; transition: transform .3s ease, opacity .2s ease; }
.chat-launcher .icon-close { opacity: 0; transform: rotate(-90deg) scale(.6); }
.chat-open .chat-launcher { padding-left: 6px; }
.chat-open .chat-launcher-label { display: none; }
.chat-open .chat-launcher .icon-open { opacity: 0; transform: rotate(90deg) scale(.6); }
.chat-open .chat-launcher .icon-close { opacity: 1; transform: none; }

.chat-panel {
  width: 380px;
  height: min(600px, calc(100vh - 130px));
  height: min(600px, calc(100dvh - 130px));
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: 0 30px 70px -20px rgba(15, 42, 29, .45);
  overflow: hidden;
  transform-origin: bottom right;
  animation: chat-in .28s cubic-bezier(.2, .8, .2, 1);
}
.chat-panel[hidden] { display: none; }
@keyframes chat-in { from { opacity: 0; transform: translateY(12px) scale(.96); } }

.chat-head {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 16px 16px 18px;
  background: linear-gradient(130deg, var(--emerald-600), var(--forest-800));
  color: var(--white);
}
.chat-avatar { width: 40px; height: 40px; border-radius: 13px; flex: none; display: grid; place-items: center; background: rgba(230, 243, 231, .14); color: var(--lime); }
.chat-avatar svg { width: 21px; height: 21px; }
.chat-title { flex: 1; min-width: 0; }
.chat-title strong { display: block; font: 600 17px/1.2 var(--font-display); }
.chat-title small { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--mint-200); }
.chat-online { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 3px rgba(197, 225, 122, .25); }
.chat-close { width: 36px; height: 36px; border-radius: 11px; border: 0; cursor: pointer; display: grid; place-items: center; background: rgba(230, 243, 231, .12); color: var(--white); transition: background-color .2s; }
.chat-close:hover { background: rgba(230, 243, 231, .22); }
.chat-close svg { width: 18px; height: 18px; }

.chat-log { flex: 1; overflow-y: auto; padding: 18px 16px 8px; display: flex; flex-direction: column; gap: 10px; background: var(--mist-50); overscroll-behavior: contain; }
.msg { max-width: 85%; padding: 11px 14px; border-radius: 18px; font-size: 14.5px; line-height: 1.55; word-wrap: break-word; overflow-wrap: anywhere; }
.msg p { white-space: pre-wrap; }
.msg p + p { margin-top: 6px; }
.msg a { color: var(--emerald-600); text-decoration: underline; text-underline-offset: 2px; }
.msg-bot { align-self: flex-start; background: var(--white); color: var(--ink); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg-user { align-self: flex-end; background: var(--emerald-600); color: var(--white); border-bottom-right-radius: 6px; }
.msg-error { align-self: flex-start; background: #fff6e5; color: #6b4b12; border: 1px solid #f1dfb4; border-bottom-left-radius: 6px; }

.chat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.chat-chips button {
  padding: 8px 13px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--sage-300); background: var(--white); color: var(--pine-700);
  font: 500 13px/1.2 var(--font-body);
  transition: background-color .2s, border-color .2s;
}
.chat-chips button:hover { background: var(--mint-100); border-color: var(--fern-400); }

.typing { display: inline-flex; gap: 5px; padding: 14px 16px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--fern-400); animation: blink 1.2s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

.chat-form { display: flex; align-items: flex-end; gap: 8px; padding: 12px 12px 8px; border-top: 1px solid var(--line); background: var(--white); }
.chat-form textarea {
  flex: 1; resize: none; max-height: 120px; overflow-y: hidden;
  padding: 11px 14px; border-radius: 16px;
  border: 1px solid var(--line); background: var(--mist-50); color: var(--ink);
  font: 400 15px/1.45 var(--font-body);
  transition: border-color .2s, background-color .2s;
}
.chat-form textarea:focus { outline: none; border-color: var(--fern-400); background: var(--white); }
.chat-send { width: 44px; height: 44px; flex: none; border: 0; border-radius: 14px; cursor: pointer; display: grid; place-items: center; background: var(--forest-800); color: var(--white); transition: background-color .2s, opacity .2s; }
.chat-send:hover { background: var(--pine-700); }
.chat-send:disabled { opacity: .45; cursor: default; }
.chat-send svg { width: 20px; height: 20px; }
.chat-note { padding: 0 14px 10px; background: var(--white); font-size: 11.5px; color: var(--muted); text-align: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest-950); color: var(--sage-300); padding: 80px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand p { margin-top: 16px; max-width: 280px; font-size: 15px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { font: 600 13px/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--lime); margin-bottom: 8px; }
.footer-col a { font-size: 15px; transition: color .2s; width: fit-content; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-top: 64px; padding-top: 26px;
  border-top: 1px solid rgba(163, 207, 169, .14);
  font-size: 14px; color: rgba(163, 207, 169, .75);
}
.to-top { display: inline-flex; align-items: center; gap: 8px; transition: color .2s; }
.to-top svg { transform: rotate(-90deg); width: 16px; height: 16px; }
.to-top:hover { color: var(--white); }

/* ---------- Reveal on scroll (only when JS is running) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1080px) {
  .collection-grid { grid-template-columns: repeat(2, 1fr); }
  .collection-card { min-height: 280px; }
  .why-grid { grid-template-columns: 1fr; gap: 44px; }
  .card-blend { left: -8px; }
  .card-badge { right: 0; }
}

@media (max-width: 900px) {
  :root { --header-h: 68px; }

  .menu-toggle { display: block; }
  .header-cta { display: none; }

  .nav {
    position: fixed; left: 12px; right: 12px; top: calc(var(--header-h) + 4px);
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 14px;
    border-radius: 22px;
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
  }
  .menu-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: 14px 16px; font-size: 16px; border-radius: 14px; }
  .nav .nav-cta-mobile { display: block; margin-top: 6px; text-align: center; background: var(--forest-800); color: var(--white); }
  .nav .nav-cta-mobile:hover { background: var(--pine-700); color: var(--white); }
  .menu-open .site-header { background: rgba(243, 249, 242, .96); }

  .hero { padding: calc(var(--header-h) + 40px) 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .lead { margin: 0 auto; }
  .hero-buttons, .hero-points { justify-content: center; }
  .hero-visual { margin: 0 auto; max-width: 460px; }

  .section { padding: 84px 0; }
  .steps { grid-template-columns: 1fr; gap: 16px; max-width: 520px; margin: 0 auto; }
  .steps::before { display: none; }
  .step { padding: 30px 24px 32px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
  .step-num { width: 72px; height: 72px; margin-bottom: 18px; font-size: 24px; background: var(--mint-100); border-color: var(--mint-200); box-shadow: none; }
  .story-grid { grid-template-columns: 1fr; gap: 48px; }
  .story-art { max-width: 520px; margin: 0 auto; width: 100%; }

  .cta { grid-template-columns: 1fr; padding: 52px 40px; text-align: left; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  :root { --gutter: 16px; }
  body { font-size: 15.5px; }

  .brand-name { font-size: 22px; }
  .hero h1 { font-size: clamp(38px, 11vw, 48px); }
  .lead { font-size: 16.5px; }
  .hero-buttons { flex-direction: column; width: 100%; }
  .hero-buttons .btn { width: 100%; }
  .hero-points { gap: 10px 18px; }

  .card-blend { left: 0; bottom: 8%; padding: 10px 14px 10px 10px; }
  .card-blend strong { font-size: 14.5px; }
  .card-blend small { font-size: 11.5px; }
  .float-icon { width: 38px; height: 38px; border-radius: 12px; }
  .card-badge { right: 0; top: 6%; font-size: 12px; padding: 9px 12px; }
  .ring-badge { width: 88px; height: 88px; right: 0; bottom: -4%; }

  .ribbon-track { font-size: 17px; gap: 26px; }

  .section { padding: 72px 0; }
  .section-head { margin-bottom: 40px; }
  .collection-grid { grid-template-columns: 1fr; gap: 16px; }
  .collection-card { min-height: 0; padding: 26px 24px; }
  .collection-card h3 { margin-top: 20px; }

  .why-features { grid-template-columns: 1fr; gap: 14px; }
  .feature { padding: 24px; }

  .story-panel { padding: 28px 22px 22px; }
  .story-panel blockquote { font-size: 17px; padding: 18px 20px; }
  .story-stats { grid-template-columns: 1fr; gap: 10px; }
  .story-stats div { display: flex; align-items: baseline; gap: 8px; padding: 14px 16px; }

  .cta-wrap { padding: 64px 0; }
  .cta { padding: 40px 24px; border-radius: 28px; }
  .cta-actions .btn { width: 100%; }

  .chat { right: 12px; bottom: 12px; left: 12px; }
  .chat-panel { width: 100%; height: calc(100vh - 100px); height: calc(100dvh - 100px); border-radius: 22px; }
  .chat-launcher-label { display: none; }
  .chat-launcher { padding: 6px; }
  .chat-form textarea { font-size: 16px; }

  .site-footer { padding-top: 60px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
