/* Shop landing page: calm boutique salon. Travertine / oat / espresso, brass hairlines, sage for "online".
   Fonts are self-hosted (fonts.css); the CSP only allows font-src 'self'. Brass (#b08d6a) is decoration only: text uses --brass-ink. */
:root {
  --travertine: #f4ede4; --oat: #e6d8c6; --oat-2: #efe5d8; --paper: #fbf8f3;
  --brass: #b08d6a; --brass-ink: #6d4f31; --brass-soft: #d2b48f;
  --espresso: #2b2420; --espresso-2: #3a302a; --muted: #62544a;
  --sage: #8a9a7b; --sage-ink: #4f5d43;
  --line: rgba(176, 141, 106, .5);
  --serif: "Cormorant Garamond", "Noto Serif Thai", "Noto Serif", Georgia, serif;
  --sans: "IBM Plex Sans Thai", "Noto Sans Thai", "Leelawadee UI", system-ui, sans-serif;
  --accent: var(--espresso);          /* chat-widget.css reads --accent */
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 12px; }
body { margin: 0; background: var(--travertine); color: var(--espresso); font: 400 16px/1.75 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--brass-ink); text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 600; line-height: 1.3; letter-spacing: 0; font-variant-numeric: lining-nums; }
h2 { font-size: clamp(1.7rem, 4.6vw, 2.5rem); text-wrap: balance; }
h3 { font-size: 1.3rem; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 3px rgba(138, 154, 123, .3); }

.demo-bar { margin: 0; padding: 7px 16px; background: var(--espresso); color: var(--oat); font-size: .8125rem; line-height: 1.5; text-align: center; letter-spacing: .01em; }

/* ---- hero ---- */
.hero { max-width: 1160px; margin: 0 auto; padding: 0 20px 56px; }
.nav { display: flex; align-items: center; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.brand { font: 600 1.35rem/1.2 var(--serif); color: var(--espresso); text-decoration: none; margin-right: auto; }
.nav-links { display: none; list-style: none; margin: 0; padding: 0; gap: 28px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: .9375rem; }
.nav-links a:hover { color: var(--espresso); text-decoration: underline; text-decoration-color: var(--brass); }
.nav-cta { min-height: 44px; padding: 0 20px; border: 1px solid var(--espresso); border-radius: 999px; background: transparent; color: var(--espresso); font: 500 .9375rem/1 var(--sans); cursor: pointer; }
.nav-cta:hover { background: var(--espresso); color: var(--travertine); }
.hero-grid { display: grid; gap: 36px; padding-top: 36px; }
.eyebrow { font-variant-numeric: lining-nums; font: 500 1rem/1.4 var(--serif); letter-spacing: .16em; text-transform: uppercase; color: var(--brass-ink); }
.eyebrow.on-dark { color: var(--brass-soft); }
h1 { margin: 10px 0 16px; font-size: clamp(2.5rem, 9.5vw, 4.4rem); line-height: 1.2; }
.h-name { display: block; font-family: "Noto Serif Thai", var(--serif); font-weight: 600; }
.h-tag { display: block; margin-top: 4px; font: italic 500 1.25rem/1.4 var(--serif); color: var(--brass-ink); }
.lead { text-wrap: pretty; max-width: 30em; font-size: 1.125rem; color: var(--muted); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border: 1px solid var(--espresso); border-radius: 999px;
  background: var(--espresso); color: var(--travertine); font: 500 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: background .2s, color .2s, transform .2s; }
.btn:hover { background: var(--espresso-2); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--espresso); border-color: var(--brass); }
.btn.ghost:hover { background: var(--oat); }
.btn.light { background: var(--travertine); color: var(--espresso); border-color: var(--travertine); }
.btn.light:hover { background: #fff; }
.hero-facts { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); max-width: 30em; font-size: .9375rem; color: var(--muted); }
.hero-art { position: relative; margin: 0; width: min(100%, 440px); justify-self: center; }
.arch { position: relative; overflow: hidden; border-radius: 999px 999px 18px 18px; background: var(--oat); }
.hero-art .arch { aspect-ratio: 4 / 5; }
.hero-art .arch img { width: 100%; height: 100%; object-fit: cover; object-position: 42% 50%; }
.hero-art::before { content: ""; position: absolute; inset: 14px -12px -12px 12px; border: 1px solid var(--brass); border-radius: 999px 999px 18px 18px; z-index: -1; }
@media (max-width: 899px) { .hero-art { order: -1; width: min(100%, 360px); } .hero-art .arch { aspect-ratio: 5 / 4; } .hero-grid { padding-top: 24px; } }
.hero-chip { position: absolute; left: -6px; bottom: 28px; display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; background: var(--paper);
  box-shadow: 0 10px 30px -10px rgba(43, 36, 32, .45); font-size: .9375rem; font-weight: 500; }

/* ---- example chat: the product, so it is the dark centre of the page ---- */
.chat-sec { background: var(--espresso); color: var(--travertine); padding: 72px 0 40px; }
.chat-grid { display: grid; gap: 40px; align-items: center; }
.chat-copy h2 { margin: 10px 0 20px; }
.ticks { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 10px; color: var(--oat); }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: .6em; width: 12px; height: 7px; border-left: 2px solid var(--sage); border-bottom: 2px solid var(--sage); transform: rotate(-45deg) translateY(-50%); }
.chat-foot { margin-top: 26px; font-size: .875rem; color: var(--brass-soft); text-align: center; }

.demo-chat { width: 100%; max-width: 440px; justify-self: center; background: var(--paper); color: var(--espresso); border-radius: 28px; overflow: hidden;
  box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(210, 180, 143, .35); }
.dc-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: #fff; border-bottom: 1px solid #e8dccb; }
.avatar { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(150deg, #e3cba8, #c4a47c); color: var(--espresso); font: 600 1.25rem/1 "Noto Serif Thai", var(--serif); }
.dc-head strong { display: block; font-weight: 600; line-height: 1.3; }
.dc-sub { display: flex; align-items: center; gap: 8px; font-size: .8125rem; color: var(--muted); }
.dc-sub .dot { width: 8px; height: 8px; }
.dc-log { display: flex; flex-direction: column; gap: 10px; padding: 18px 14px 20px; background: #ece2d3; }
.m { max-width: 86%; font-size: 1rem; line-height: 1.6; }
.m p { overflow-wrap: anywhere; }
.m time { display: block; margin-top: 2px; font-size: .75rem; line-height: 1.4; color: var(--muted); }
.m.me { align-self: flex-end; padding: 9px 14px 6px; border-radius: 18px 18px 4px 18px; background: #cfdcc2; }
.m.me time { text-align: right; }
.m.bot { align-self: flex-start; }
.m.bot .b { padding: 9px 14px 6px; border-radius: 18px 18px 18px 4px; background: #fff; box-shadow: 0 1px 0 rgba(43, 36, 32, .06); }
.bk { margin: 8px 0 0; padding: 8px 12px; border-left: 3px solid var(--sage); background: var(--travertine); border-radius: 4px 10px 10px 4px; display: grid; gap: 1px; font-size: .9375rem; }
.bk div { display: flex; justify-content: space-between; gap: 12px; }
.bk dt { color: var(--muted); }
.bk dd { margin: 0; font-weight: 500; text-align: right; }
.bk .ref { font-family: var(--sans); font-variant-numeric: tabular-nums; font-size: 1rem; font-weight: 600; letter-spacing: .04em; color: var(--sage-ink); }
.bk-note { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin-top: 10px; font-size: .9375rem; color: var(--muted); }
.chip { display: inline-block; padding: 1px 10px; border-radius: 999px; background: #f1e3c8; color: var(--brass-ink); font-size: .8125rem; font-weight: 600; }
.dc-input { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 60px; padding: 8px 10px 8px 20px; border: 0; border-top: 1px solid #e8dccb;
  background: #fff; color: var(--muted); font: inherit; font-size: 1rem; text-align: left; cursor: text; }
.dc-send { display: grid; place-items: center; min-width: 52px; height: 44px; padding: 0 16px; border-radius: 999px; background: var(--espresso); color: var(--travertine); font-size: .9375rem; font-weight: 500; }
.dc-input:hover .dc-send { background: var(--espresso-2); }
/* typing dots: shop.js shows this row before a bot message "arrives" */
.m.typing-row .b { display: flex; gap: 5px; padding: 15px 16px; }
.typing-row i { display: block; width: 8px; height: 8px; border-radius: 50%; background: var(--brass); animation: blink 1s infinite ease-in-out both; }
.typing-row i:nth-child(2) { animation-delay: .15s; }
.typing-row i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; transform: scale(.8); } 40% { opacity: 1; transform: scale(1); } }

.line-card { max-width: 340px; border-radius: 18px; overflow: hidden; background: #fff; color: var(--espresso); box-shadow: 0 24px 40px -24px rgba(0, 0, 0, .8); }
.lc-top { display: flex; align-items: center; gap: 10px; padding: 9px 16px; background: #f0eadf; font-size: .875rem; font-weight: 500; color: var(--muted); }
.lc-badge { padding: 0 8px; border-radius: 6px; background: var(--sage-ink); color: #fff; font-size: .75rem; font-weight: 700; letter-spacing: .06em; line-height: 1.6; }
.lc-body { padding: 14px 16px 16px; }
.lc-title { font-weight: 700; }
.lc-sub { font-size: .8125rem; color: var(--muted); }
.lc-body dl { margin: 10px 0 14px; display: grid; gap: 2px; font-size: .9375rem; }
.lc-body dl div { display: grid; grid-template-columns: 5.5em 1fr; gap: 8px; }
.lc-body dt { color: var(--muted); }
.lc-body dd { margin: 0; }
.lc-btns { display: grid; gap: 8px; }
.lc-btns span { display: grid; place-items: center; min-height: 40px; border-radius: 10px; background: #e9e4dc; font-size: .9375rem; font-weight: 500; }
.lc-btns .ok { background: var(--sage-ink); color: #fff; }

/* ---- sections ---- */
.sec { padding-top: 80px; padding-bottom: 8px; }
.sec-head { margin-bottom: 32px; }
.sec-head h2 { margin-top: 6px; }
.services { list-style: none; margin: 0 -20px; padding: 0 20px 8px; display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 20px; scrollbar-width: none; }
.services::-webkit-scrollbar { display: none; }
.svc { flex: 0 0 78%; max-width: 320px; scroll-snap-align: start; }
.svc { display: grid; gap: 18px; align-content: start; }
.svc-img { overflow: hidden; border-radius: 999px 999px 14px 14px; background: var(--oat); aspect-ratio: 4 / 5; }
.svc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.svc:hover .svc-img img { transform: scale(1.04); }
.svc-body { padding: 0 6px; text-align: center; }
.svc h3 { font-family: "Noto Serif Thai", var(--serif); font-size: 1.35rem; }
.en { font: italic 500 1.2rem/1 var(--serif); color: var(--brass-ink); margin-left: .2em; }
.price { margin-top: 6px; font: 600 1.55rem/1.35 var(--serif); font-variant-numeric: lining-nums; }
.meta { margin-top: 2px; font-size: .9375rem; color: var(--brass-ink); font-weight: 500; letter-spacing: .02em; }
.note { margin-top: 8px; color: var(--muted); font-size: .9375rem; }
.link-btn { margin-top: 14px; min-height: 44px; padding: 0 4px; border: 0; border-bottom: 1px solid var(--brass); background: none; color: var(--espresso); font: 500 .9375rem/1.3 var(--sans); cursor: pointer; }
.link-btn:hover { color: var(--brass-ink); }

.how { margin-top: 88px; padding: 72px 0 80px; background: var(--oat); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 34px; counter-reset: s; }
.steps li { position: relative; padding-top: 18px; border-top: 1px solid var(--brass); }
.num { font-variant-numeric: lining-nums; display: block; margin-bottom: 4px; font: 500 3.2rem/1 var(--serif); color: var(--brass-ink); }
.steps h3 { font-family: "Noto Serif Thai", var(--serif); margin-bottom: 6px; }
.steps p { color: var(--muted); }

.visit-grid { display: grid; gap: 40px; align-items: center; }
.visit h2 { margin: 6px 0 22px; }
.hours { margin: 0 0 14px; padding: 4px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hrow { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; }
.hrow dt { color: var(--muted); }
.hrow dd { margin: 0; font: 600 1.25rem/1.4 var(--serif); }
.closed { color: var(--brass-ink); font-weight: 500; }
.addr { margin: 4px 0 20px; color: var(--muted); }
.visit-art { margin: 0; width: min(100%, 360px); justify-self: center; }
.visit-art .arch { aspect-ratio: 4 / 5; }
.visit-art img { width: 100%; height: 100%; object-fit: cover; }

.faq-list { max-width: 760px; border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding: 8px 2px; cursor: pointer; font-weight: 500; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; flex: none; font: 400 1.8rem/1 var(--serif); color: var(--brass-ink); transition: transform .25s; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 2px 18px; color: var(--muted); }

.own { margin-top: 88px; background: var(--espresso); color: var(--travertine); }
.own-in { display: grid; gap: 22px; padding-top: 56px; padding-bottom: 56px; align-items: center; }
.own h2 { font-family: "Noto Serif Thai", var(--serif); margin-bottom: 10px; }
.own p { color: var(--oat); max-width: 38em; }
.own .btn { justify-self: start; }

.foot { background: var(--espresso); color: var(--oat); border-top: 1px solid rgba(210, 180, 143, .3); padding: 36px 0 110px; font-size: .9375rem; }
.foot-in { display: grid; gap: 10px; }
.foot a { color: var(--travertine); }
.foot-brand { font: 600 1.4rem/1.3 var(--serif); color: var(--travertine); }
.credit { color: var(--brass-soft); }
.own + .foot, .foot { margin-top: 0; }

/* ---- motion: only when shop.js is running and the visitor has not asked for less ---- */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-copy > :nth-child(2) { animation-delay: .08s; }
  .hero-copy > :nth-child(3) { animation-delay: .16s; }
  .hero-copy > :nth-child(4) { animation-delay: .24s; }
  .hero-copy > :nth-child(5) { animation-delay: .32s; }
  .hero-art { animation: rise 1s .15s cubic-bezier(.2, .7, .2, 1) both; }
  .js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
  .js [data-reveal].in { opacity: 1; transform: none; }
  .js .services .svc:nth-child(2), .js .steps li:nth-child(2) { transition-delay: .12s; }
  .js .services .svc:nth-child(3), .js .steps li:nth-child(3) { transition-delay: .24s; }
  .js .demo-chat .m.pending { display: none; }
  .m.pop { animation: pop .35s ease-out both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .typing-row i { animation: none; } }

/* ---- wider screens ---- */
@media (min-width: 720px) {
  .nav-links { display: flex; }
  .services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin: 0; padding: 0; overflow: visible; }
  .svc { max-width: none; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 36px; }
  .own-in { grid-template-columns: 1fr auto; gap: 48px; }
}
@media (min-width: 900px) {
  .hero { padding-bottom: 88px; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; padding-top: 56px; }
  .hero-art { width: min(100%, 480px); justify-self: end; margin-right: 12px; }
  .chat-sec { padding: 104px 0 56px; }
  .chat-grid { grid-template-columns: 1fr 480px; gap: 72px; }
  .demo-chat { max-width: 480px; }
  .sec { padding-top: 112px; }
  .how { margin-top: 112px; padding: 96px 0 104px; }
  .visit-grid { grid-template-columns: 1fr 360px; gap: 96px; }
  .own { margin-top: 112px; }
}

/* the example chat has its own input bar, so the floating launcher steps aside while it is on screen */
.cw-open { transition: opacity .3s, visibility .3s, box-shadow .25s, transform .25s; }
.demo-in-view .cw-open { opacity: 0; visibility: hidden; }
