/* ==========================================================================
   PMS OnCloud — one-page website
   Tokens follow the Tailwind scale (4px spacing base, text-xs…text-6xl).
   Brand: evergreen. 60% green-tinted neutrals · 30% deep green · 10% bright green.
   ========================================================================== */

:root {
  /* Brand greens */
  --g-950: #03241a;
  --g-900: #063628;
  --g-800: #0a4a37;
  --g-700: #0d6247;
  --g-600: #0f7a58;   /* primary — 5.4:1 on white */
  --g-500: #16a06f;
  --g-400: #3fc28d;
  --g-300: #86dcb5;
  --g-200: #c0eed8;
  --g-100: #e2f7ec;
  --g-50:  #f1fbf5;

  /* Neutrals with a green undertone */
  --ink-900: #0f1d17;
  --ink-800: #1d2c25;
  --ink-700: #34443c;
  --ink-600: #4d5d55;
  --ink-500: #63736b;
  --ink-400: #8a9891;
  --ink-300: #b5c1bb;
  --line: #e1e9e4;
  --line-soft: #edf3ef;
  --bg: #ffffff;
  --bg-soft: #f5f9f6;

  --amber-100: #fdf3d7;
  --amber-300: #f3d48a;
  --amber-500: #f0c14b;
  --amber-700: #8a5a00;

  --font: "IBM Plex Sans Thai", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Cormorant Garamond", "IBM Plex Sans Thai", Georgia, serif;

  --container: 1200px;
  --header-h: 72px;
  --ease: cubic-bezier(.4, 0, .2, 1);

  --shadow-sm: 0 1px 2px rgba(6, 54, 40, .05), 0 1px 3px rgba(6, 54, 40, .07);
  --shadow-md: 0 4px 6px -1px rgba(6, 54, 40, .07), 0 2px 4px -2px rgba(6, 54, 40, .05);
  --shadow-lg: 0 12px 24px -8px rgba(6, 54, 40, .16), 0 4px 8px -4px rgba(6, 54, 40, .06);
  --shadow-frame: 0 1px 1px rgba(6, 54, 40, .04), 0 32px 64px -24px rgba(6, 54, 40, .32), 0 18px 36px -18px rgba(6, 54, 40, .2);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-700);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; color: var(--ink-900); font-weight: 600; line-height: 1.35; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--g-500); outline-offset: 3px; border-radius: 6px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.icon {
  width: 1.25em; height: 1.25em; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 8px 16px; border-radius: 8px; background: var(--g-700); color: #fff;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 10px;
  border: 1px solid transparent; font-weight: 500; font-size: 15px; line-height: 1;
  white-space: nowrap; cursor: pointer;
  transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.btn .icon { width: 18px; height: 18px; }
.btn--sm { height: 40px; padding: 0 16px; font-size: 15px; }
.btn--lg { height: 52px; padding: 0 24px; font-size: 16px; border-radius: 12px; }
.btn--primary {
  background: var(--g-600); color: #fff;
  box-shadow: 0 1px 2px rgba(6, 54, 40, .2), inset 0 1px 0 rgba(255, 255, 255, .14);
}
.btn--primary:hover { background: var(--g-700); box-shadow: 0 6px 16px -6px rgba(15, 122, 88, .55); }
.btn--ghost { background: #fff; color: var(--ink-900); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn--ghost:hover { border-color: var(--g-300); background: var(--g-50); color: var(--g-800); }
.btn--lg .icon { transition: transform .2s var(--ease); }
.btn--lg:hover .icon { transform: translateX(3px); }

.text-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--g-600); font-weight: 500; font-size: 15px;
}
.text-link .icon { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.text-link:hover .icon { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(255, 255, 255, .9); }
.header-inner { display: flex; align-items: center; gap: 32px; height: 100%; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 19px; color: var(--ink-900); letter-spacing: -.01em; line-height: 1; }
.brand b { color: var(--g-600); font-weight: 600; }
.brand > span { white-space: nowrap; }
.brand__mark { width: 34px; height: 34px; }

.nav { display: flex; gap: 4px; margin-inline: auto; }
.nav a {
  padding: 8px 12px; border-radius: 8px; font-size: 15px; color: var(--ink-600);
  transition: color .15s var(--ease), background-color .15s var(--ease);
}
.nav a:hover { color: var(--ink-900); background: var(--bg-soft); }
.nav a.is-active { color: var(--g-700); }

.header-actions { display: flex; align-items: center; gap: 8px; }
.menu-toggle {
  display: none; width: 40px; height: 40px; place-items: center;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer;
}
.menu-toggle .icon { width: 20px; height: 20px; }
.menu-toggle .icon--close { display: none; }
.menu-toggle[aria-expanded="true"] .icon--open { display: none; }
.menu-toggle[aria-expanded="true"] .icon--close { display: block; }

.mobile-nav { border-top: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-lg); }
.mobile-nav .container { display: flex; flex-direction: column; padding-block: 12px 20px; }
.mobile-nav a:not(.btn) { padding: 12px 4px; border-bottom: 1px solid var(--line-soft); font-size: 16px; color: var(--ink-800); }
.mobile-nav .btn { margin-top: 16px; }

/* ---------- Sections ---------- */
.section { padding-block: 112px; position: relative; }
.section--soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head .section-lead { margin-inline: auto; }
h2 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.625rem); line-height: 1.32; text-wrap: balance; }
.section-lead { margin-top: 16px; font-size: 18px; color: var(--ink-500); max-width: 640px; text-wrap: pretty; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px;
  font-size: 14px; font-weight: 600; color: var(--g-600); letter-spacing: .02em;
}
.eyebrow__num {
  display: inline-grid; place-items: center; height: 24px; padding: 0 8px; border-radius: 6px;
  background: var(--g-100); color: var(--g-700); font-size: 12px; font-variant-numeric: tabular-nums;
}
.eyebrow--light { color: var(--g-300); }
.eyebrow--light .eyebrow__num { background: rgba(134, 220, 181, .14); color: var(--g-300); }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: 72px; overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(55% 45% at 50% 0%, var(--g-100) 0%, transparent 70%),
    radial-gradient(35% 35% at 88% 38%, rgba(134, 220, 181, .28) 0%, transparent 70%),
    radial-gradient(35% 35% at 8% 48%, rgba(192, 238, 216, .45) 0%, transparent 70%),
    linear-gradient(180deg, #fff 0%, var(--g-50) 55%, #fff 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .8;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 55% at 50% 18%, #000 25%, transparent 80%);
  mask-image: radial-gradient(70% 55% at 50% 18%, #000 25%, transparent 80%);
}
.hero__content { max-width: 880px; margin-inline: auto; text-align: center; }
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 5px 16px 5px 5px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-size: 14px; color: var(--ink-600);
}
.pill__tag { padding: 2px 10px; border-radius: 999px; background: var(--g-600); color: #fff; font-size: 13px; font-weight: 500; }
.hero h1 {
  margin-top: 24px;
  font-size: clamp(2.125rem, 1.2rem + 4vw, 4rem);
  line-height: 1.28; font-weight: 600; letter-spacing: -.012em; text-wrap: balance;
}
.hl {
  background: linear-gradient(92deg, var(--g-700) 0%, var(--g-500) 55%, var(--g-400) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-block: .08em;
}
.hero__lead {
  margin: 24px auto 0; max-width: 700px;
  font-size: clamp(1.0625rem, .95rem + .5vw, 1.25rem); line-height: 1.8; color: var(--ink-500); text-wrap: pretty;
}
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.hero__checks { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; margin-top: 24px; font-size: 14px; color: var(--ink-500); }
.hero__checks li { display: inline-flex; align-items: center; gap: 6px; }
.hero__checks .icon { width: 16px; height: 16px; color: var(--g-500); stroke-width: 2.25; }

.hero__visual { position: relative; max-width: 1120px; margin: 72px auto 0; padding-bottom: 96px; }
.hero__visual::before {
  content: ""; position: absolute; inset: 8% 6% 18%; z-index: -1;
  background: radial-gradient(closest-side, rgba(22, 160, 111, .32), transparent);
  filter: blur(40px);
}
.hero-dash { position: relative; z-index: 1; }
.hero-phone { position: absolute; z-index: 3; left: -3.5%; bottom: 40px; width: 20%; }

/* ---------- Floating cards ---------- */
.float-card {
  position: absolute; z-index: 4;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px 12px 12px; border-radius: 14px;
  background: rgba(255, 255, 255, .96); border: 1px solid var(--line);
  box-shadow: var(--shadow-lg), 0 24px 48px -24px rgba(6, 54, 40, .3);
  font-size: 14px; line-height: 1.45; white-space: nowrap;
}
.float-card small { display: block; color: var(--ink-500); font-size: 12px; }
.float-card b { color: var(--ink-900); font-weight: 600; }
.fc-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--g-100); color: var(--g-700); }
.fc-icon .icon { width: 18px; height: 18px; }
.fc-icon--solid { background: var(--g-600); color: #fff; }
.fc-icon--solid .icon { stroke-width: 2.5; }
.fc-amount { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; margin-left: 8px; font-weight: 600; color: var(--ink-900); font-variant-numeric: tabular-nums; }
.fc-booking { right: -4%; top: 16%; animation: float 7s ease-in-out infinite; }
.fc-ledger { right: 8%; bottom: 52px; animation: float 7s ease-in-out -3.5s infinite; }

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

/* ---------- Solutions / flow ---------- */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: flow; }
.flow-card {
  position: relative; display: flex; flex-direction: column;
  padding: 28px 24px 24px; border-radius: 16px; background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.flow-card:hover { transform: translateY(-4px); border-color: var(--g-200); box-shadow: var(--shadow-lg); }
.flow-card:not(:last-child)::after {
  content: ""; position: absolute; top: 52px; right: -24px; width: 24px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--g-300) 0 4px, transparent 4px 8px);
}
.flow-card__num { position: absolute; top: 24px; right: 24px; font-size: 13px; font-weight: 600; color: var(--ink-300); font-variant-numeric: tabular-nums; }
.flow-card__icon {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px;
  background: linear-gradient(135deg, var(--g-50), var(--g-100)); color: var(--g-600);
  box-shadow: inset 0 0 0 1px rgba(15, 122, 88, .1);
}
.flow-card__icon .icon { width: 24px; height: 24px; }
.flow-card h3 { margin-top: 20px; font-size: 19px; }
.flow-card p { margin-top: 8px; font-size: 15px; color: var(--ink-500); line-height: 1.7; flex: 1; }
.flow-card .text-link { margin-top: 20px; }

.flow-strip {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 16px;
  width: fit-content; max-width: 100%; margin: 40px auto 0; padding: 12px 20px; border-radius: 999px;
  background: var(--g-50); border: 1px solid var(--g-100);
  font-size: 14px; color: var(--g-800);
}
.flow-strip > span { display: inline-flex; align-items: center; gap: 8px; }
.flow-strip .icon { width: 18px; height: 18px; color: var(--g-600); }
.flow-strip__arrow { color: var(--g-300) !important; }

/* ---------- Feature sections ---------- */
.feature__head { display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: end; margin-bottom: 56px; }
.feature__head h2 { max-width: 560px; }
.checklist { display: grid; gap: 14px; padding-bottom: 6px; }
.checklist li { display: flex; gap: 12px; font-size: 16px; color: var(--ink-700); line-height: 1.6; }
.checklist .icon {
  width: 22px; height: 22px; padding: 4px; margin-top: 1px; border-radius: 999px;
  background: var(--g-100); color: var(--g-700); stroke-width: 3;
}
.feature__visual { position: relative; }
.feature__visual--duo { display: grid; grid-template-columns: minmax(0, 1fr) 22%; gap: 40px; align-items: center; }
.feature__visual--receipt { margin-bottom: 128px; }

/* Template switcher */
.tpl-switch { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 20px; }
.tpl-switch__label { margin-right: 8px; font-size: 14px; color: var(--ink-500); }
.tpl-switch button {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer;
  font-size: 14px; color: var(--ink-600);
  transition: all .15s var(--ease);
}
.tpl-switch button i { width: 12px; height: 12px; border-radius: 999px; background: var(--c); box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(0, 0, 0, .08); }
.tpl-switch button:hover { border-color: var(--g-300); color: var(--ink-900); }
.tpl-switch button[aria-selected="true"] { background: var(--ink-900); border-color: var(--ink-900); color: #fff; }

/* Dark section (PMS) */
.section--dark {
  background:
    radial-gradient(50% 40% at 15% 0%, rgba(22, 160, 111, .22), transparent 70%),
    radial-gradient(40% 40% at 95% 30%, rgba(63, 194, 141, .14), transparent 70%),
    var(--g-950);
  color: rgba(255, 255, 255, .72);
  overflow: hidden;
}
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .section-lead { color: rgba(255, 255, 255, .66); }
.frame--dark-ring { box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 40px 80px -24px rgba(0, 0, 0, .6); border-color: transparent; }

.legend-inline { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: flex-end; padding-bottom: 8px; font-size: 14px; color: rgba(255, 255, 255, .72); }
.legend-inline span { display: inline-flex; align-items: center; gap: 8px; }
.legend-inline i { width: 22px; height: 10px; border-radius: 4px; }
.lg-stay { background: var(--g-500); }
.lg-conf { background: var(--g-100); box-shadow: inset 0 0 0 1px var(--g-300); }
.lg-pend { background: var(--amber-100); box-shadow: inset 0 0 0 1px var(--amber-300); }

.mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 64px; border-radius: 16px; overflow: hidden; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .08); }
.mini-grid li { display: flex; gap: 16px; padding: 28px; background: var(--g-950); transition: background-color .2s var(--ease); }
.mini-grid li:hover { background: #052c20; }
.mini-icon { display: grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 10px; background: rgba(63, 194, 141, .12); color: var(--g-300); }
.mini-icon .icon { width: 20px; height: 20px; }
.mini-grid h3 { font-size: 17px; }
.mini-grid p { margin-top: 4px; font-size: 15px; line-height: 1.65; color: rgba(255, 255, 255, .6); }

/* Callout */
.callout {
  display: flex; align-items: center; gap: 20px; margin-top: 48px; padding: 24px 28px;
  border-radius: 16px; background: linear-gradient(135deg, var(--g-50), #fff 70%);
  border: 1px solid var(--g-200);
}
.callout__icon { display: grid; place-items: center; flex-shrink: 0; width: 48px; height: 48px; border-radius: 12px; background: var(--g-600); color: #fff; }
.callout__icon .icon { width: 22px; height: 22px; }
.callout h3 { font-size: 18px; }
.callout p { margin-top: 4px; font-size: 15px; color: var(--ink-500); }
.callout .btn { margin-left: auto; }

/* Why */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.why-grid li { padding: 28px; border-radius: 16px; background: #fff; border: 1px solid var(--line); transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.why-grid li:hover { border-color: var(--g-200); box-shadow: var(--shadow-md); }
.why-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--g-50); color: var(--g-600); box-shadow: inset 0 0 0 1px var(--g-100); }
.why-icon .icon { width: 22px; height: 22px; }
.why-grid h3 { margin-top: 20px; font-size: 18px; }
.why-grid p { margin-top: 8px; font-size: 15px; line-height: 1.7; color: var(--ink-500); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 24px; left: 24px; width: calc(75% + 24px); height: 2px;
  background: linear-gradient(90deg, var(--g-200), var(--g-400), var(--g-200));
}
.steps li { position: relative; }
.steps__n {
  position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 999px;
  background: #fff; border: 2px solid var(--g-400); color: var(--g-700); font-weight: 600; font-size: 18px;
  box-shadow: 0 0 0 6px #fff;
}
.steps li:last-child .steps__n { background: var(--g-600); border-color: var(--g-600); color: #fff; }
.steps h3 { margin-top: 20px; font-size: 18px; }
.steps p { margin-top: 6px; font-size: 15px; line-height: 1.7; color: var(--ink-500); }

/* FAQ */
.faq { display: grid; grid-template-columns: 1fr 1.5fr; gap: 64px; align-items: start; }
.faq__intro { position: sticky; top: calc(var(--header-h) + 32px); }
.faq__intro .text-link { margin-top: 24px; }
.faq__list { display: grid; gap: 12px; }
.faq details { border-radius: 14px; background: #fff; border: 1px solid var(--line); transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.faq details[open] { border-color: var(--g-200); box-shadow: var(--shadow-md); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; cursor: pointer; list-style: none;
  font-size: 17px; font-weight: 500; color: var(--ink-900);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--ink-400); transition: transform .2s var(--ease); }
.faq details[open] summary .icon { transform: rotate(180deg); color: var(--g-600); }
.faq details p { padding: 0 24px 22px; margin-top: -4px; font-size: 15px; line-height: 1.8; color: var(--ink-500); }

/* CTA */
.section--cta { padding-top: 96px; }
.cta {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px 64px; align-items: center;
  padding: 64px; border-radius: 28px;
  background:
    radial-gradient(60% 80% at 0% 0%, rgba(63, 194, 141, .35), transparent 60%),
    radial-gradient(50% 70% at 100% 100%, rgba(22, 160, 111, .4), transparent 60%),
    var(--g-900);
  color: rgba(255, 255, 255, .72);
}
.cta::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(60% 80% at 80% 50%, #000, transparent);
  mask-image: radial-gradient(60% 80% at 80% 50%, #000, transparent);
}
.cta h2 { color: #fff; }
.cta__copy > p:last-child { margin-top: 16px; font-size: 18px; color: rgba(255, 255, 255, .72); }
.cta__channels { display: grid; gap: 12px; }
.channel {
  display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: 14px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
  transition: background-color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.channel:hover { background: rgba(255, 255, 255, .1); border-color: rgba(134, 220, 181, .4); transform: translateX(4px); }
.channel small { display: block; font-size: 13px; color: rgba(255, 255, 255, .6); line-height: 1.4; }
.channel > span:nth-child(2) { min-width: 0; }
.channel b { color: #fff; font-weight: 500; font-size: 17px; overflow-wrap: anywhere; }
.channel__icon { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; background: var(--g-500); color: #fff; }
.channel__go { margin-left: auto; color: rgba(255, 255, 255, .5); }
.cta__login { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 15px; }
.cta__login a { color: var(--g-300); font-weight: 500; }
.cta__login a:hover { color: #fff; }
.cta__login .icon { display: inline-block; width: 16px; height: 16px; margin-left: 4px; vertical-align: -3px; }

/* Footer */
.site-footer { padding: 72px 0 32px; border-top: 1px solid var(--line); background: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand p { margin-top: 16px; max-width: 320px; font-size: 15px; color: var(--ink-500); }
.site-footer h3 { margin-bottom: 12px; font-size: 14px; font-weight: 600; color: var(--ink-900); }
.site-footer nav a { display: block; padding: 4px 0; font-size: 15px; color: var(--ink-500); transition: color .15s var(--ease); }
.site-footer nav a:hover { color: var(--g-600); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line-soft); color: var(--ink-400); }

/* ==========================================================================
   Device frames
   A .screen keeps a fixed aspect ratio and is a size container, so the
   mockup inside scales like a screenshot. To use a real screenshot, replace
   the .ui element with <img src="…" alt="">.
   ========================================================================== */
.frame {
  overflow: hidden; border-radius: 14px; background: #fff;
  border: 1px solid rgba(6, 54, 40, .1); box-shadow: var(--shadow-frame);
}
.frame__bar { display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 14px; background: #f3f6f4; border-bottom: 1px solid var(--line); }
.frame__dots { display: flex; gap: 7px; }
.frame__dots i { width: 11px; height: 11px; border-radius: 999px; background: #f2a69c; }
.frame__dots i:nth-child(2) { background: #f3d27f; }
.frame__dots i:nth-child(3) { background: #9fd8a9; }
.frame__url {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  flex: 1; max-width: 400px; height: 24px; margin-inline: auto; transform: translateX(-24px);
  border-radius: 6px; background: #fff; border: 1px solid var(--line);
  font-size: 12px; color: var(--ink-500); white-space: nowrap; overflow: hidden;
}
.frame__url .icon { width: 12px; height: 12px; color: var(--g-600); }

.screen { position: relative; container-type: inline-size; aspect-ratio: 16 / 10; overflow: hidden; background: #f6f8f7; }
.screen > img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }

.phone {
  /* % padding would resolve against the parent's width, so use a fixed bezel */
  padding: clamp(4px, .65vw, 10px); border-radius: 16% / 7.6%;
  background: linear-gradient(145deg, #23302b, #0b1411);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08) inset, 0 40px 70px -24px rgba(3, 36, 26, .55), 0 18px 30px -16px rgba(3, 36, 26, .35);
}
.phone .screen { aspect-ratio: 9 / 19.5; border-radius: 13% / 6%; background: #fff; }
.phone .screen::after {
  content: ""; position: absolute; z-index: 5; top: 1.6%; left: 50%; width: 30%; height: 3.4%;
  transform: translateX(-50%); border-radius: 999px; background: #0b1411;
}

/* ==========================================================================
   Mockup UI — sized in em; 1em scales with the screen width (cqw)
   ========================================================================== */
.ui {
  position: absolute; inset: 0; overflow: hidden;
  font-family: var(--font); font-size: 1.04cqw; line-height: 1.45; color: var(--ink-800);
  text-align: left; letter-spacing: 0;
  -webkit-user-select: none; user-select: none; pointer-events: none;
}
.ui .icon { width: 1.25em; height: 1.25em; }
.ui--phone { font-size: 4.5cqw; }

/* App shell */
.app { display: flex; background: #f6f8f7; }
.app-side { display: flex; flex-direction: column; width: 15em; flex-shrink: 0; padding: 1.3em .9em 1em; background: #fff; border-right: 1px solid var(--line); }
.app-brand { display: flex; align-items: center; gap: .6em; padding: 0 .55em 1.3em; font-weight: 600; font-size: 1.08em; color: var(--ink-900); }
.app-brand svg { width: 1.9em; height: 1.9em; }
.app-nav { display: flex; flex-direction: column; gap: .15em; }
.app-nav a { display: flex; align-items: center; gap: .7em; padding: .55em .7em; border-radius: .6em; color: var(--ink-600); font-size: .95em; }
.app-nav a .icon { color: var(--ink-400); }
.app-nav a.is-active { background: var(--g-50); color: var(--g-700); font-weight: 500; box-shadow: inset 0 0 0 1px var(--g-100); }
.app-nav a.is-active .icon { color: var(--g-600); }
.app-nav-label { padding: 1em .7em .35em; font-size: .78em; color: var(--ink-400); letter-spacing: .02em; }
.app-hotel { display: flex; align-items: center; gap: .7em; margin-top: auto; padding: .7em; border-radius: .7em; background: var(--bg-soft); border: 1px solid var(--line-soft); }
.app-hotel__img { width: 2.4em; height: 2.4em; border-radius: .5em; overflow: hidden; flex-shrink: 0; }
.app-hotel__img svg { width: 100%; height: 100%; }
.app-hotel b { display: block; font-size: .85em; font-weight: 600; color: var(--ink-900); line-height: 1.3; }
.app-hotel small { font-size: .75em; color: var(--ink-400); }

.app-main { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.app-top { display: flex; align-items: center; gap: .9em; height: 4.3em; padding: 0 1.6em; background: #fff; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.app-title { font-size: 1.2em; font-weight: 600; color: var(--ink-900); line-height: 1.3; }
.app-sub { font-size: .8em; color: var(--ink-400); }
.app-search { display: flex; align-items: center; gap: .5em; width: 20em; height: 2.5em; margin-left: auto; padding: 0 .85em; border-radius: .6em; background: var(--bg-soft); border: 1px solid var(--line); color: var(--ink-400); font-size: .88em; }
.app-search .icon { width: 1.1em; height: 1.1em; }
.app-iconbtn { position: relative; display: grid; place-items: center; width: 2.4em; height: 2.4em; border-radius: .6em; border: 1px solid var(--line); color: var(--ink-500); }
.app-iconbtn i { position: absolute; top: .45em; right: .5em; width: .45em; height: .45em; border-radius: 999px; background: #e5484d; box-shadow: 0 0 0 2px #fff; }
.app-btn { display: inline-flex; align-items: center; gap: .4em; height: 2.6em; padding: 0 1em; border-radius: .6em; background: var(--g-600); color: #fff; font-weight: 500; font-size: .9em; white-space: nowrap; }
.app-btn .icon { width: 1.1em; height: 1.1em; stroke-width: 2.25; }
.avatar { display: grid; place-items: center; width: 2.4em; height: 2.4em; border-radius: 999px; background: var(--g-100); color: var(--g-700); font-weight: 600; font-size: .85em; }
.avatar--b { background: #e8eefc; color: #2b4c97; }
.app-body { display: flex; flex-direction: column; gap: 1.1em; flex: 1; min-height: 0; padding: 1.4em 1.6em; }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1em; }
.kpi { padding: 1em 1.15em; border-radius: .9em; background: #fff; border: 1px solid var(--line); }
.kpi__label { font-size: .84em; color: var(--ink-500); }
.kpi__value { margin-top: .15em; font-size: 1.8em; font-weight: 600; line-height: 1.25; color: var(--ink-900); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.kpi__delta { display: flex; align-items: center; gap: .35em; margin-top: .2em; font-size: .78em; color: var(--g-600); font-weight: 500; }
.kpi__delta .icon { width: 1.1em; height: 1.1em; stroke-width: 2.25; }
.kpi__delta--muted { color: var(--ink-400); font-weight: 400; }

.card { padding: 1.1em 1.2em; border-radius: .9em; background: #fff; border: 1px solid var(--line); min-width: 0; }
.card--fill { flex: 1; min-height: 0; }
.card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1em; margin-bottom: .9em; }
.card__title { font-size: 1em; font-weight: 600; color: var(--ink-900); }
.card__sub { font-size: .78em; color: var(--ink-400); }
.card__link { font-size: .82em; color: var(--g-600); font-weight: 500; }

.chip { display: inline-flex; align-items: center; gap: .3em; padding: .12em .65em; border-radius: 999px; font-size: .76em; font-weight: 500; line-height: 1.6; white-space: nowrap; }
.chip .icon { width: 1.1em; height: 1.1em; stroke-width: 2.5; }
.chip--green { background: var(--g-100); color: var(--g-700); }
.chip--amber { background: var(--amber-100); color: var(--amber-700); }
.chip--gray { background: #eef2f0; color: var(--ink-600); }
.chip--blue { background: #e8eefc; color: #2b4c97; }

/* Dashboard */
.dash-grid { display: grid; grid-template-columns: 1.7fr 1fr; grid-template-rows: auto 1fr; gap: 1.1em; flex: 1; min-height: 0; }
.bars { display: flex; align-items: flex-end; gap: .55em; height: 10.5em; border-bottom: 1px solid var(--line); background: repeating-linear-gradient(to top, transparent 0 calc(25% - 1px), var(--line-soft) calc(25% - 1px) 25%); }
.bars span { flex: 1; height: var(--h); border-radius: .35em .35em 0 0; background: var(--g-200); }
.bars span.is-today { background: var(--g-600); }
.bars-x { display: flex; gap: .55em; margin-top: .4em; }
.bars-x span { flex: 1; text-align: center; font-size: .72em; color: var(--ink-400); font-variant-numeric: tabular-nums; }
.bars-x span.is-today { color: var(--g-700); font-weight: 600; }
.donut-wrap { position: relative; width: 8.6em; margin: .2em auto .9em; }
.donut { width: 100%; height: auto; transform: none; }
.donut-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1.15; }
.donut-center b { font-size: 1.7em; font-weight: 600; color: var(--ink-900); }
.donut-center small { font-size: .7em; color: var(--ink-400); }
.legend { display: grid; gap: .35em; font-size: .82em; }
.legend li { display: flex; align-items: center; gap: .55em; color: var(--ink-600); }
.legend i { width: .7em; height: .7em; border-radius: .2em; background: var(--c); }
.legend b { margin-left: auto; color: var(--ink-900); font-weight: 600; font-variant-numeric: tabular-nums; }

.tbl { width: 100%; border-collapse: collapse; font-size: .86em; }
.tbl th { padding: .5em .6em; border-bottom: 1px solid var(--line); text-align: left; font-weight: 500; font-size: .9em; color: var(--ink-400); white-space: nowrap; }
.tbl td { padding: .6em .6em; border-bottom: 1px solid var(--line-soft); color: var(--ink-700); white-space: nowrap; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl td b { color: var(--ink-900); font-weight: 600; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.who { display: inline-flex; align-items: center; gap: .55em; color: var(--ink-900); font-weight: 500; }
.who i { display: grid; place-items: center; width: 1.9em; height: 1.9em; border-radius: 999px; background: var(--g-50); color: var(--g-700); font-style: normal; font-size: .78em; font-weight: 600; box-shadow: inset 0 0 0 1px var(--g-100); }
.progress { height: .5em; border-radius: 999px; background: var(--line-soft); overflow: hidden; }
.progress span { display: block; width: var(--w); height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--g-500), var(--g-400)); }
.hk { display: grid; gap: .1em; margin-top: .7em; font-size: .86em; }
.hk li { display: flex; align-items: center; gap: .7em; padding: .5em 0; border-bottom: 1px solid var(--line-soft); color: var(--ink-600); }
.hk li:last-child { border-bottom: 0; }
.hk b { width: 2.4em; color: var(--ink-900); font-weight: 600; font-variant-numeric: tabular-nums; }
.hk .chip { margin-left: auto; }

/* Tape chart (room calendar) */
.tc-toolbar { display: flex; align-items: center; gap: 1em; font-size: .9em; }
.tc-month { display: inline-flex; align-items: center; gap: .6em; color: var(--ink-900); }
.tc-month .icon { width: 1.9em; height: 1.9em; padding: .35em; border-radius: .5em; border: 1px solid var(--line); background: #fff; color: var(--ink-500); }
.seg { display: inline-flex; padding: .2em; border-radius: .6em; background: #eaf0ec; }
.seg span { padding: .3em .85em; border-radius: .45em; color: var(--ink-500); }
.seg .is-on { background: #fff; color: var(--ink-900); font-weight: 500; box-shadow: var(--shadow-sm); }
.tc-filter { display: inline-flex; align-items: center; gap: .45em; padding: .35em .85em; border-radius: .6em; border: 1px solid var(--line); background: #fff; color: var(--ink-600); }
.tc-filter .icon { width: 1em; height: 1em; }
.tc-stat { margin-left: auto; color: var(--ink-500); }
.tc-stat b { color: var(--g-700); }

.tc { position: relative; display: flex; flex-direction: column; flex: 1; min-height: 0; border-radius: .9em; background: #fff; border: 1px solid var(--line); overflow: hidden; }
.tc-row {
  --label: 10.5em;
  display: grid; grid-template-columns: var(--label) repeat(28, minmax(0, 1fr)); align-items: center;
  height: 3.55em; border-bottom: 1px solid var(--line-soft);
  background-image: linear-gradient(to right, var(--line-soft) 1px, transparent 1px);
  background-size: calc((100% - var(--label)) / 14) 100%;
  background-position: var(--label) 0;
}
.tc-head { height: 3.6em; background-color: #fafcfb; border-bottom-color: var(--line); }
.tc-day { grid-column: span 2; display: flex; flex-direction: column; align-items: center; line-height: 1.2; font-size: .9em; font-weight: 600; color: var(--ink-800); font-variant-numeric: tabular-nums; }
.tc-day small { font-size: .78em; font-weight: 400; color: var(--ink-400); }
.tc-day.is-we { color: var(--ink-400); }
.tc-day.is-today b { display: grid; place-items: center; min-width: 1.7em; height: 1.7em; border-radius: 999px; background: var(--g-600); color: #fff; font-weight: 600; }
.tc-day.is-today small { color: var(--g-700); font-weight: 600; }
.tc-room { grid-column: 1; grid-row: 1; display: flex; align-items: center; gap: .55em; height: 100%; padding: 0 1em; background: #fff; border-right: 1px solid var(--line); font-size: .86em; color: var(--ink-500); white-space: nowrap; position: relative; z-index: 2; }
.tc-room b { color: var(--ink-900); font-weight: 600; font-variant-numeric: tabular-nums; }
.tc-room--head { background: #fafcfb; font-weight: 500; color: var(--ink-400); }
.st { width: .55em; height: .55em; border-radius: 999px; flex-shrink: 0; }
.st--ok { background: var(--g-400); }
.st--dirty { background: var(--amber-500); }
.tc-grid { position: relative; display: flex; flex-direction: column; flex: 1; min-height: 0; }
.tc-grid .tc-row { flex: 1 1 0; height: auto; min-height: 0; }
.tc-grid .tc-row:last-child { border-bottom: 0; }
.tc-today { position: absolute; top: 0; bottom: 0; z-index: 0; left: calc(10.5em + (100% - 10.5em) * 2 / 14); width: calc((100% - 10.5em) / 14); background: rgba(22, 160, 111, .07); border-inline: 1px dashed rgba(15, 122, 88, .25); }
.tc-bar {
  grid-row: 1; grid-column: var(--s) / span var(--n);
  position: relative; z-index: 1; display: flex; align-items: center;
  height: 2.35em; margin: 0 .14em; padding: 0 .7em; border-radius: .5em;
  font-size: .8em; font-weight: 500; white-space: nowrap; overflow: hidden;
}
.tc-bar > span { overflow: hidden; text-overflow: ellipsis; }
.tc-bar--stay { background: var(--g-600); color: #fff; }
.tc-bar--conf { background: var(--g-100); color: var(--g-800); box-shadow: inset 0 0 0 1px var(--g-300); }
.tc-bar--pend { background: var(--amber-100); color: var(--amber-700); box-shadow: inset 0 0 0 1px var(--amber-300); }
.tc-bar--sel { box-shadow: inset 0 0 0 1px var(--g-500), 0 0 0 .22em rgba(22, 160, 111, .35); }

.fc-detail {
  right: -3%; top: 26%; width: 300px; flex-direction: column; align-items: stretch; gap: 0;
  padding: 18px; white-space: normal; animation: float 8s ease-in-out infinite;
}
.fc-detail__top { display: flex; align-items: center; justify-content: space-between; }
.fc-detail .chip { font-size: 12px; }
.fc-detail__top small { font-size: 12px; color: var(--ink-400); font-variant-numeric: tabular-nums; }
.fc-detail__name { margin-top: 12px; font-size: 17px; }
.fc-detail dl { display: grid; gap: 6px; margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.fc-detail dl div { display: flex; justify-content: space-between; font-size: 13px; }
.fc-detail dt { color: var(--ink-500); }
.fc-detail dd { margin: 0; color: var(--ink-900); font-variant-numeric: tabular-nums; }
.fc-detail__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.fc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; border-radius: 9px; border: 1px solid var(--line); font-size: 13px; font-weight: 500; color: var(--ink-800); }
.fc-btn .icon { width: 15px; height: 15px; }
.fc-btn--primary { background: var(--g-600); border-color: var(--g-600); color: #fff; }

/* Accounting */
.acc-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 1.1em; }
.legend-sm { display: inline-flex; align-items: center; gap: .45em; font-size: .78em; color: var(--ink-500); }
.legend-sm i { width: .7em; height: .7em; border-radius: .2em; margin-left: .5em; }
.lg-a { background: var(--g-600); }
.lg-b { background: var(--g-200); }
.pairs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.2em; height: 10.2em; padding-bottom: 1.5em; border-bottom: 1px solid var(--line); background: repeating-linear-gradient(to top, transparent 0 calc(25% - 1px), var(--line-soft) calc(25% - 1px) 25%); background-size: 100% calc(100% - 1.5em); background-repeat: no-repeat; }
.pairs > div { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: .3em; }
.pairs span { position: relative; width: 38%; height: var(--h); border-radius: .3em .3em 0 0; background: #9fbfb1; }
.pairs span:first-child { background: #7fa797; }
.pairs span:nth-child(2) { background: var(--g-100); }
.pairs .is-now span:first-child { background: var(--g-600); }
.pairs .is-now span:nth-child(2) { background: var(--g-200); }
.pairs em { position: absolute; bottom: calc(100% + .3em); left: 50%; transform: translateX(-50%); font-style: normal; font-size: .72em; font-weight: 600; color: var(--g-700); white-space: nowrap; }
.pairs small { position: absolute; bottom: -1.75em; left: 0; right: 0; text-align: center; font-size: .74em; color: var(--ink-400); }
.pairs .is-now small { color: var(--g-700); font-weight: 600; }
.tbl--journal td { padding: .55em .6em; }
.tbl--journal code { display: inline-block; min-width: 3.2em; margin-right: .5em; font-family: inherit; font-size: .9em; color: var(--ink-400); font-variant-numeric: tabular-nums; }
.tbl--journal td.cr { padding-left: 2em; }
.tbl--journal tfoot td { padding-top: .6em; border-top: 1px solid var(--line); font-weight: 600; color: var(--ink-900); }

.receipt {
  position: absolute; z-index: 4; right: -2%; bottom: -96px; width: 280px; padding: 20px;
  border-radius: 12px; background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow-lg), 0 30px 60px -24px rgba(6, 54, 40, .35);
  font-size: 13px; line-height: 1.5; transform: rotate(2deg);
  animation: float-r 8s ease-in-out infinite;
}
@keyframes float-r { 0%, 100% { transform: rotate(2deg) translateY(0); } 50% { transform: rotate(2deg) translateY(-8px); } }
.receipt::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; border-radius: 12px 12px 0 0; background: linear-gradient(90deg, var(--g-600), var(--g-400)); }
.receipt__head { display: flex; gap: 10px; align-items: center; padding-bottom: 14px; border-bottom: 1px dashed var(--line); }
.receipt__head svg { width: 30px; height: 30px; flex-shrink: 0; }
.receipt__head b { display: block; color: var(--ink-900); font-size: 14px; }
.receipt__head small { color: var(--ink-400); font-size: 12px; }
.receipt__to { padding: 12px 0 8px; }
.receipt__to small { display: block; color: var(--ink-400); font-size: 12px; }
.receipt__to b { color: var(--ink-900); font-weight: 500; }
.receipt__row { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; color: var(--ink-700); font-variant-numeric: tabular-nums; }
.receipt__row--muted { color: var(--ink-500); }
.receipt__total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--ink-600); }
.receipt__total b { font-size: 18px; color: var(--ink-900); font-variant-numeric: tabular-nums; }
.receipt__stamp { position: absolute; right: 18px; top: 64px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 6px; border: 1.5px solid var(--g-500); color: var(--g-600); font-size: 12px; font-weight: 600; transform: rotate(-8deg); }
.receipt__stamp .icon { width: 13px; height: 13px; stroke-width: 2.75; }

/* Hotel website template */
.hs { background: var(--hs-bg); color: var(--hs-ink); transition: background-color .4s var(--ease); }
.hs[data-theme="resort"] { --hs-bg: #fbf8f3; --hs-ink: #2b2420; --hs-accent: #a8714a; --hs-display: var(--font-serif); --hs-display-w: 600; --hs-r: .35em; --hs-tag-ls: .22em; }
.hs[data-theme="city"]   { --hs-bg: #f4f5f8; --hs-ink: #151b2e; --hs-accent: #27305a; --hs-display: var(--font); --hs-display-w: 600; --hs-r: 0; --hs-tag-ls: .3em; }
.hs[data-theme="garden"] { --hs-bg: #f4f7f1; --hs-ink: #1f2d22; --hs-accent: #3f6b4f; --hs-display: var(--font); --hs-display-w: 500; --hs-r: 1.1em; --hs-tag-ls: .12em; }
.hs-hero { position: relative; height: 60%; }
.hs-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.hs-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.3) 0%, rgba(0,0,0,0) 55%), linear-gradient(180deg, rgba(0,0,0,.28) 0%, rgba(0,0,0,0) 32%, rgba(0,0,0,0) 48%, rgba(0,0,0,.38) 100%); }
.hs-nav { position: absolute; z-index: 2; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 2.2em; padding: 1.5em 3.2em; color: #fff; }
.hs-logo { font-family: var(--hs-display); font-weight: var(--hs-display-w); font-size: 1.75em; letter-spacing: .02em; line-height: 1; }
.hs[data-theme="city"] .hs-logo { font-size: 1.35em; letter-spacing: .2em; text-transform: uppercase; }
.hs-links { display: flex; gap: 2em; margin-left: auto; font-size: .92em; opacity: .95; }
.hs-lang { font-size: .82em; opacity: .85; }
.hs-book { padding: .65em 1.4em; border-radius: var(--hs-r); background: #fff; color: var(--hs-ink); font-weight: 500; font-size: .92em; }
.hs-copy { position: absolute; z-index: 2; left: 3.2em; bottom: 5.4em; color: #fff; text-shadow: 0 .1em 1.2em rgba(0, 0, 0, .25); }
.hs-tag { font-size: .85em; letter-spacing: var(--hs-tag-ls); text-transform: uppercase; opacity: .92; }
.hs-title { margin-top: .35em; font-family: var(--hs-display); font-weight: var(--hs-display-w); font-size: 3.3em; line-height: 1.28; }
.hs-search { position: absolute; z-index: 3; left: 3.2em; right: 3.2em; bottom: -2.8em; display: grid; grid-template-columns: repeat(3, 1fr) auto; align-items: center; gap: .6em; padding: .7em .7em .7em 1em; border-radius: calc(var(--hs-r) + .2em); background: #fff; box-shadow: 0 1em 2.6em rgba(0, 0, 0, .12); }
.hs-field { padding: .2em 1em; border-right: 1px solid #ece8e2; }
.hs-field small { display: block; font-size: .78em; color: #8b8178; }
.hs-field b { font-size: .98em; font-weight: 500; color: var(--hs-ink); }
.hs-go { padding: 1em 1.8em; border-radius: var(--hs-r); background: var(--hs-accent); color: #fff; font-weight: 500; transition: background-color .4s var(--ease); }
.hs-rooms { padding: 4.8em 3.2em 2em; }
.hs-sec { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 1.3em; }
.hs-sec small { display: block; font-size: .78em; letter-spacing: .2em; color: var(--hs-accent); }
.hs-sec b { font-family: var(--hs-display); font-weight: var(--hs-display-w); font-size: 2em; line-height: 1.3; }
.hs-sec > span { font-size: .88em; color: var(--hs-accent); }
.hs-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5em; }
.hs-img { aspect-ratio: 16 / 10; border-radius: var(--hs-r); overflow: hidden; margin-bottom: .8em; }
.hs-img svg, .be-img svg, .mb-img svg, .be-sum-hotel svg { width: 100%; height: 100%; }
.hs-img--alt svg, .be-img--alt svg { filter: hue-rotate(-28deg) saturate(.85) brightness(1.02); }
.hs-card b { display: block; font-weight: 500; font-size: 1.05em; }
.hs-card small { color: #7d746c; font-size: .86em; }

/* Booking engine (desktop) */
.be { display: flex; flex-direction: column; background: #f7f8f6; }
.be-top { display: flex; align-items: center; gap: 2em; height: 4.4em; padding: 0 2.2em; background: #fff; border-bottom: 1px solid #eceeea; flex-shrink: 0; }
.be-logo { font-family: var(--font-serif); font-weight: 600; font-size: 1.55em; color: #2b2420; line-height: 1; }
.be-logo small { font-family: var(--font); font-size: .45em; letter-spacing: .25em; color: #a8714a; vertical-align: middle; }
.be-steps { display: flex; align-items: center; gap: .7em; margin-left: auto; font-size: .88em; }
.be-step { display: inline-flex; align-items: center; gap: .5em; color: var(--ink-400); white-space: nowrap; }
.be-step i { display: grid; place-items: center; width: 1.8em; height: 1.8em; border-radius: 999px; border: 1px solid var(--line); font-style: normal; font-size: .85em; font-weight: 600; }
.be-step.is-current { color: var(--ink-900); font-weight: 500; }
.be-step.is-current i { background: var(--g-600); border-color: var(--g-600); color: #fff; }
.be-line { width: 2.2em; height: 1px; background: var(--line); }
.be-lang { margin-left: 1.2em; font-size: .85em; color: var(--ink-500); }
.be-body { display: grid; grid-template-columns: 1fr 22em; gap: 1.5em; flex: 1; min-height: 0; padding: 1.5em 2.2em; }
.be-main { display: flex; flex-direction: column; gap: 1em; min-width: 0; }
.be-search { display: grid; grid-template-columns: repeat(3, 1fr) auto; align-items: center; padding: .7em .7em .7em 0; border-radius: .9em; background: #fff; border: 1px solid #eceeea; }
.be-search > div { padding: 0 1.2em; border-right: 1px solid #eceeea; }
.be-search small { display: block; font-size: .76em; color: var(--ink-400); }
.be-search b { display: flex; align-items: center; gap: .45em; font-weight: 500; font-size: .95em; color: var(--ink-900); }
.be-search b .icon { color: var(--g-600); width: 1.1em; height: 1.1em; }
.be-edit { margin-left: .9em; padding: .7em 1.2em; border-radius: .6em; background: var(--g-50); color: var(--g-700); font-size: .88em; font-weight: 500; }
.be-results { display: flex; justify-content: space-between; align-items: center; font-size: .9em; }
.be-results b { color: var(--ink-900); }
.be-results span { display: inline-flex; align-items: center; gap: .3em; color: var(--ink-500); }
.be-room { display: grid; grid-template-columns: 15em 1fr auto; gap: 1.3em; padding: .85em; border-radius: 1em; background: #fff; border: 1px solid #eceeea; }
.be-room.is-selected { border-color: var(--g-500); box-shadow: 0 0 0 .25em rgba(22, 160, 111, .12); }
.be-img { position: relative; aspect-ratio: 16 / 10.5; border-radius: .65em; overflow: hidden; }
.be-badge { position: absolute; left: .55em; top: .55em; padding: .15em .6em; border-radius: .4em; background: rgba(255, 255, 255, .94); font-size: .72em; font-weight: 500; color: var(--g-700); }
.be-badge--warn { color: #b4471c; }
.be-info { display: flex; flex-direction: column; justify-content: center; gap: .3em; min-width: 0; }
.be-info > b { font-size: 1.15em; font-weight: 600; color: var(--ink-900); }
.be-info small { font-size: .84em; color: var(--ink-500); }
.be-tags { display: flex; flex-wrap: wrap; gap: .4em; margin-top: .35em; }
.be-tags span { padding: .15em .6em; border-radius: .4em; background: var(--bg-soft); border: 1px solid var(--line-soft); font-size: .74em; color: var(--ink-600); }
.be-price { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; padding: 0 .4em 0 1.3em; border-left: 1px dashed #e6e8e4; }
.be-price small { font-size: .72em; color: var(--ink-400); }
.be-price b { font-size: 1.55em; font-weight: 600; color: var(--ink-900); line-height: 1.3; font-variant-numeric: tabular-nums; }
.be-btn { display: inline-flex; align-items: center; gap: .35em; margin-top: .55em; padding: .55em 1.1em; border-radius: .55em; border: 1px solid var(--g-600); color: var(--g-700); font-size: .85em; font-weight: 500; }
.be-btn.is-on { background: var(--g-600); color: #fff; }
.be-btn .icon { width: 1em; height: 1em; stroke-width: 2.75; }
.be-summary { display: flex; flex-direction: column; gap: .9em; align-self: start; padding: 1.3em; border-radius: 1em; background: #fff; border: 1px solid #eceeea; box-shadow: 0 .6em 1.6em -.8em rgba(6, 54, 40, .18); }
.be-sum-title { font-size: 1.1em; color: var(--ink-900); }
.be-sum-hotel { display: flex; align-items: center; gap: .7em; }
.be-sum-hotel > span { width: 3.2em; height: 3.2em; border-radius: .6em; overflow: hidden; flex-shrink: 0; }
.be-sum-hotel b { display: block; font-size: .92em; color: var(--ink-900); }
.be-sum-hotel small { font-size: .78em; color: var(--ink-400); }
.be-dl { display: grid; gap: .35em; margin: 0; padding: .8em 0; border-block: 1px solid var(--line-soft); font-size: .84em; }
.be-dl div { display: flex; justify-content: space-between; }
.be-dl dt { color: var(--ink-500); }
.be-dl dd { margin: 0; color: var(--ink-900); }
.be-line-item { display: flex; justify-content: space-between; font-size: .88em; color: var(--ink-700); }
.be-line-item b { font-variant-numeric: tabular-nums; color: var(--ink-900); }
.be-code { display: flex; justify-content: space-between; align-items: center; padding: .5em .7em; border-radius: .55em; border: 1px dashed var(--g-300); background: var(--g-50); font-size: .82em; color: var(--g-800); }
.be-code span { display: inline-flex; align-items: center; gap: .4em; }
.be-code em { font-style: normal; font-weight: 600; color: var(--g-600); }
.be-total { display: flex; justify-content: space-between; align-items: flex-end; padding-top: .7em; border-top: 1px solid var(--line); }
.be-total span { font-weight: 500; color: var(--ink-900); }
.be-total small { display: block; font-weight: 400; font-size: .74em; color: var(--ink-400); }
.be-total b { font-size: 1.7em; font-weight: 600; color: var(--ink-900); line-height: 1.2; font-variant-numeric: tabular-nums; }
.be-cta { display: flex; justify-content: center; align-items: center; gap: .4em; padding: .85em; border-radius: .65em; background: var(--g-600); color: #fff; font-weight: 500; }
.be-secure { display: flex; justify-content: center; align-items: center; gap: .35em; font-size: .74em; color: var(--ink-400); }
.be-secure .icon { width: 1.1em; height: 1.1em; color: var(--g-600); }

.booking-phone { position: relative; z-index: 3; transform: translateY(28px); }
.be-promo { display: flex; align-items: center; gap: .8em; padding: .75em 1em; border-radius: .9em; background: linear-gradient(90deg, var(--g-50), #fff); border: 1px solid var(--g-100); }
.be-promo__icon { display: grid; place-items: center; width: 2.2em; height: 2.2em; border-radius: .6em; background: var(--g-600); color: #fff; flex-shrink: 0; }
.be-promo b { display: block; font-size: .92em; color: var(--g-800); }
.be-promo small { font-size: .8em; color: var(--ink-500); }

/* Phone: shared */
.mb-status { display: flex; justify-content: space-between; align-items: center; padding: 1.15em 1.7em .3em 2em; font-size: .85em; color: var(--ink-900); }
.mb-status span { display: flex; gap: .2em; align-items: flex-end; }
.mb-status i { width: .3em; height: .55em; border-radius: .1em; background: var(--ink-900); }
.mb-status i:nth-child(2) { height: .75em; }
.mb-status i:nth-child(3) { height: .95em; }

/* Phone: mobile booking engine */
.mb { display: flex; flex-direction: column; gap: .75em; padding-bottom: 1em; background: #faf8f4; }
.mb-head { display: flex; flex-direction: column; align-items: center; padding-top: .9em; line-height: 1.05; }
.mb-logo { font-family: var(--font-serif); font-weight: 600; font-size: 1.6em; color: #2b2420; }
.mb-head small { font-size: .55em; letter-spacing: .3em; color: #a8714a; margin-top: .3em; }
.mb-dates { display: flex; align-items: center; justify-content: space-between; margin: 0 1.1em; padding: .65em .9em; border-radius: .8em; background: #fff; border: 1px solid #eeebe5; }
.mb-dates small { display: block; font-size: .72em; color: var(--ink-400); }
.mb-dates b { font-size: .95em; font-weight: 600; color: var(--ink-900); }
.mb-dates .icon { color: var(--g-600); }
.mb-meta { margin: -.3em 1.2em 0; font-size: .78em; color: var(--ink-500); }
.mb-room { margin: 0 1.1em; border-radius: .9em; overflow: hidden; background: #fff; border: 1px solid #eeebe5; }
.mb-img { position: relative; aspect-ratio: 16 / 9; }
.mb-badge { position: absolute; left: .6em; top: .6em; padding: .1em .55em; border-radius: .4em; background: #fff; color: #b4471c; font-size: .68em; font-weight: 600; }
.mb-body { padding: .6em .8em .75em; }
.mb-body b { display: block; font-size: .95em; color: var(--ink-900); }
.mb-body small { display: block; font-size: .7em; color: var(--ink-500); }
.mb-price { margin-top: .3em; font-weight: 600; font-size: 1.05em; color: var(--g-700); font-variant-numeric: tabular-nums; }
.mb-price small { display: inline; font-weight: 400; color: var(--ink-400); }
.mb-cta { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; padding: .9em 1.2em 1.6em; background: #fff; border-top: 1px solid #eeebe5; box-shadow: 0 -.5em 1.5em rgba(0,0,0,.06); }
.mb-cta small { display: block; font-size: .7em; color: var(--ink-400); }
.mb-cta b { font-size: 1.2em; color: var(--ink-900); font-variant-numeric: tabular-nums; }
.mb-cta > span { padding: .7em 1.4em; border-radius: .7em; background: var(--g-600); color: #fff; font-weight: 600; font-size: .9em; }

/* Phone: payment */
.pay { display: flex; flex-direction: column; gap: .8em; background: #f7f8f6; }
.pay-head { display: flex; align-items: center; justify-content: space-between; padding: .7em 1.2em 0; }
.pay-head b { font-size: 1.05em; color: var(--ink-900); }
.pay-head span { font-size: .78em; color: var(--ink-400); }
.pay-progress { height: .25em; margin: 0 1.2em; border-radius: 999px; background: var(--line); }
.pay-progress span { display: block; width: 75%; height: 100%; border-radius: inherit; background: var(--g-500); }
.pay-timer { display: flex; align-items: center; justify-content: center; gap: .4em; margin: 0 1.2em; padding: .45em; border-radius: .6em; background: var(--amber-100); color: var(--amber-700); font-size: .76em; }
.pay-timer .icon { width: 1.1em; height: 1.1em; }
.pay-total { margin: 0 1.2em; padding: .8em 1em; border-radius: .9em; background: var(--g-800); color: rgba(255,255,255,.7); text-align: center; }
.pay-total small { display: block; font-size: .72em; }
.pay-total b { display: block; font-size: 1.75em; line-height: 1.3; color: #fff; font-variant-numeric: tabular-nums; }
.pay-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: .3em; margin: 0 1.2em; padding: .25em; border-radius: .7em; background: #e9eeeb; font-size: .78em; }
.pay-tabs span { display: flex; align-items: center; justify-content: center; gap: .35em; padding: .5em; border-radius: .55em; color: var(--ink-500); }
.pay-tabs .is-on { background: #fff; color: var(--ink-900); font-weight: 600; box-shadow: var(--shadow-sm); }
.pay-qr { display: flex; flex-direction: column; align-items: center; gap: .55em; margin: 0 1.2em; padding: .9em; border-radius: .9em; background: #fff; border: 1px solid var(--line); }
.pay-qr small { font-size: .72em; color: var(--ink-500); }
.pay-qr b { font-size: .8em; color: var(--ink-900); }
.qr { width: 62%; height: auto; }
.qr rect { fill: var(--ink-900); }
.pay-btn { margin: auto 1.2em 1.8em; padding: .85em; border-radius: .75em; background: var(--g-600); color: #fff; text-align: center; font-weight: 600; font-size: .92em; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .float-card, .receipt { animation: none !important; }
  *, *::before, *::after { transition-duration: 0s !important; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .fc-booking { right: 0; }
  .fc-detail { right: 0; }
  .receipt { right: 0; }
}

@media (max-width: 1023px) {
  .nav { display: none; }
  .menu-toggle { display: grid; }
  .header-actions { margin-left: auto; }
  .section { padding-block: 88px; }
  .feature__head { grid-template-columns: 1fr; gap: 28px; align-items: start; }
  .legend-inline { justify-content: flex-start; }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .flow-card:not(:last-child)::after { display: none; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .mini-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .steps::before { display: none; }
  .faq { grid-template-columns: 1fr; gap: 32px; }
  .faq__intro { position: static; }
  .cta { grid-template-columns: minmax(0, 1fr); padding: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .fc-detail { width: 260px; top: auto; bottom: -40px; }
  .receipt { width: 250px; bottom: -60px; }
}

@media (max-width: 767px) {
  :root { --header-h: 64px; }
  .container { padding-inline: 20px; }
  .section { padding-block: 72px; }
  .hero { padding-top: 48px; }
  .hero__visual { margin-top: 48px; padding-bottom: 64px; }
  .hero-phone { width: 30%; left: -2%; bottom: 16px; }
  .fc-booking { top: auto; bottom: 0; right: 0; padding: 10px 12px; font-size: 13px; }
  .fc-booking .fc-amount { display: none; }
  .fc-ledger, .fc-detail, .receipt { display: none; }
  .frame__url { display: none; }
  .frame__bar { height: 28px; }
  .frame__dots i { width: 8px; height: 8px; }
  .frame { border-radius: 10px; }
  .feature__visual--duo { grid-template-columns: minmax(0, 1fr) 27%; gap: 14px; }
  .booking-phone { transform: translateY(16px); }
  .feature__visual--receipt { margin-bottom: 0; }
  .mini-grid { grid-template-columns: 1fr; margin-top: 48px; }
  .callout { flex-direction: column; align-items: flex-start; }
  .callout .btn { margin-left: 0; }
  .cta { padding: 36px 20px; border-radius: 20px; }
  .channel { gap: 12px; padding: 14px 16px; }
  .channel__icon { width: 40px; height: 40px; }
  .channel b { font-size: 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 639px) {
  .hide-sm { display: none; }
  .brand { font-size: 17px; }
  .brand__mark { width: 30px; height: 30px; }
  .flow, .why-grid, .steps { grid-template-columns: 1fr; }
  .flow-strip { border-radius: 16px; flex-direction: column; align-items: flex-start; }
  .flow-strip__arrow { transform: rotate(90deg); margin-left: 1px; }
  .section-lead { font-size: 17px; }
  .tpl-switch__label { width: 100%; }
}

/* Keep short Thai phrases from splitting mid-word */
.nw { white-space: nowrap; }
