:root {
  --ink: #2a241c;
  --muted: #6a5f52;
  --bg: #e6e1d8;
  --bg-soft: #dcd5c9;
  --white: #f7f4ef;
  --line: rgba(42, 36, 28, 0.14);
  --amber: #e09a18;
  --amber-deep: #b8750c;
  --amber-soft: #f0c46a;
  --ok: #2f7a4a;
  --hot: #c45a28;
  --full: #6b6560;
  --hold: #8a6b1f;
  --on-amber: #1c1408;
  --font: 'Anuphan', sans-serif;
  --heading: 'Prompt', 'Anuphan', sans-serif;
  --mono: 'IBM Plex Mono', 'Anuphan', monospace;
  --max: 920px;
  --demo-h: 48px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 4px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
body {
  font-family: var(--font); color: var(--ink); line-height: 1.65; overflow-x: hidden; font-synthesis: none;
  background:
    repeating-linear-gradient(90deg, transparent, transparent 48px, rgba(224, 154, 24, 0.035) 48px, rgba(224, 154, 24, 0.035) 49px),
    radial-gradient(ellipse 50% 40% at 0% 0%, rgba(224, 154, 24, 0.16), transparent 55%),
    var(--bg);
}
img { max-width: 100%; display: block; } a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; font-size: 16px; } ul, ol { list-style: none; }
.wrap { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

.demo-bar { position: sticky; top: 0; z-index: 60; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding: .55rem 1.25rem; background: #1a1612; color: #fff; font-size: .82rem; }
.demo-bar strong { font-family: var(--mono); font-size: .68rem; letter-spacing: .06em; color: var(--amber-soft); font-weight: 500; }
.demo-bar__actions { display: flex; gap: .45rem; flex-wrap: wrap; }
.demo-bar a { padding: .35rem .7rem; border: 1px solid rgba(255,255,255,.25); border-radius: var(--radius); font-size: .78rem; font-weight: 500; }
.demo-bar a.is-primary { background: var(--amber); border-color: var(--amber); color: var(--on-amber); }

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

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

.hero { position: relative; min-height: min(90dvh, 820px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; animation: ken 20s var(--ease) both; }
.hero__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(26, 22, 16, .92) 0%, rgba(26, 22, 16, .55) 55%, rgba(26, 22, 16, .28) 100%); }
.hero__inner { position: relative; z-index: 2; padding: 5rem 0 3.5rem; max-width: 36rem; margin-left: max(calc((100% - var(--max)) / 2), 1.25rem); width: min(100% - 2.5rem, 36rem); animation: rise .9s var(--ease) both; }
.hero__brand { font-family: var(--heading); font-size: 1.15rem; font-weight: 700; margin-bottom: 1rem; display: flex; gap: .5rem; align-items: baseline; flex-wrap: wrap; }
.hero__brand span { font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--amber-soft); }
.hero h1 { font-family: var(--heading); font-size: clamp(2.15rem, 5vw, 3.3rem); line-height: 1.18; letter-spacing: -.02em; margin-bottom: .9rem; }
.hero h1 em { display: block; font-style: normal; color: var(--amber-soft); font-size: .72em; margin-top: .25rem; }
.hero__lead { color: rgba(255,255,255,.88); margin-bottom: 1.5rem; }
@keyframes ken { from { transform: scale(1.05); } to { transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }

.strip { background: var(--white); border-bottom: 1px solid var(--line); }
.strip__inner { display: flex; gap: 1.25rem; align-items: baseline; flex-wrap: wrap; padding: 1.1rem 0; }
.strip__label { font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--amber-deep); white-space: nowrap; }

.section { padding: 4.5rem 0; }
.section--soft { background: var(--bg-soft); }
.section--accent { background: #241f18; color: #fff; }
.section__head { margin-bottom: 2rem; max-width: 38rem; }
.section__head h2 { font-family: var(--heading); font-size: clamp(1.7rem, 3.2vw, 2.35rem); letter-spacing: -.02em; margin-bottom: .5rem; }
.section__head p { color: var(--muted); }
.eyebrow { font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--amber-deep); margin-bottom: .5rem; }
.eyebrow.light { color: var(--amber-soft); }
.mono { font-family: var(--mono); }

/* BAY BOARD — signature */
.bayboard {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 14px 0 -6px rgba(42, 36, 28, .08);
}
.bayboard__meta {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: .85rem 1.15rem; background: #2a241c; color: rgba(255,255,255,.85); font-size: .78rem;
}
.bayboard__meta .mono { letter-spacing: .08em; color: var(--amber-soft); font-size: .68rem; }
.live { display: inline-flex; align-items: center; gap: .45rem; font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: #3dbf6e; animation: pulse 1.6s ease-in-out infinite; }
.bayboard__head, .bayboard__row {
  display: grid; grid-template-columns: 4.5rem 1.4fr 4.5rem 6.5rem 4.5rem;
  gap: .75rem; align-items: center; padding: 1rem 1.15rem;
}
.bayboard__head {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); background: color-mix(in srgb, var(--amber) 8%, var(--white)); border-bottom: 1px solid var(--line);
}
.bayboard__row { border-bottom: 1px dashed color-mix(in srgb, var(--ink) 14%, transparent); transition: background .2s var(--ease), transform .2s var(--ease); }
.bayboard__row:last-child { border-bottom: none; }
.bayboard__row:hover { background: color-mix(in srgb, var(--amber) 10%, var(--white)); transform: translateX(3px); }
.bayboard__row .mono { font-weight: 500; color: var(--amber-deep); font-size: .9rem; }
.bayboard__row .sku { font-variant-numeric: tabular-nums; color: var(--ink); font-size: 1.05rem; }
.bayboard__row strong { display: block; font-family: var(--heading); font-size: 1.05rem; }
.bayboard__row small { display: block; color: var(--muted); font-size: .85rem; margin-top: .15rem; }
.pill {
  display: inline-flex; justify-content: center; font-family: var(--mono); font-size: .68rem; letter-spacing: .06em;
  text-transform: uppercase; padding: .35rem .55rem; border-radius: 2px; font-weight: 600; width: fit-content;
}
.pill--open { background: color-mix(in srgb, var(--ok) 18%, white); color: var(--ok); }
.pill--hot { background: color-mix(in srgb, var(--hot) 18%, white); color: var(--hot); }
.pill--full { background: color-mix(in srgb, var(--full) 16%, white); color: var(--full); }
.pill--hold { background: color-mix(in srgb, var(--hold) 18%, white); color: var(--hold); }
.row-cta { font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; color: var(--amber-deep); font-weight: 600; text-align: right; }

.plans { display: grid; gap: .75rem; }
.plan-row {
  display: grid; grid-template-columns: 7.5rem 1fr auto; gap: 1rem; align-items: center;
  background: var(--white); border: 1px solid var(--line); padding: .95rem 1.1rem;
  transition: transform .25s var(--ease), border-color .2s;
}
.plan-row:hover { transform: translateX(4px); border-color: var(--amber); }
.plan-row__code {
  font-size: .68rem; letter-spacing: .08em; text-align: center; padding: .75rem .4rem;
  background: color-mix(in srgb, var(--amber) 22%, white); color: var(--amber-deep); font-weight: 600;
}
.plan-row__body { display: grid; gap: .2rem; min-width: 0; }
.plan-row__body strong { font-family: var(--heading); font-size: 1.1rem; }
.plan-row__body small { color: var(--muted); font-size: .88rem; }
.plan-row__price { font-family: var(--heading); font-weight: 700; color: var(--amber-deep); white-space: nowrap; font-variant-numeric: tabular-nums; }

.proof { display: grid; grid-template-columns: repeat(3, 1fr); gap: .85rem; margin-bottom: 2.5rem; }
.proof figure { margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.proof img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .55s var(--ease); }
.proof figure:hover img { transform: scale(1.04); }
.proof figcaption { padding: .7rem .85rem; font-size: .88rem; color: var(--muted); }

.voices { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.voices blockquote { border-top: 3px solid var(--amber); padding-top: 1.1rem; }
.voices p { font-family: var(--heading); font-size: 1.15rem; line-height: 1.4; margin-bottom: .7rem; }
.voices footer { color: var(--muted); font-size: .9rem; }

.book { display: grid; grid-template-columns: .9fr 1.1fr; gap: 2.5rem; }
.book h2 { font-family: var(--heading); font-size: clamp(1.8rem, 3vw, 2.4rem); color: #fff; margin: .4rem 0 .7rem; }
.form { background: var(--white); color: var(--ink); padding: 1.6rem; border-radius: var(--radius); display: grid; gap: .9rem; }
.field { display: grid; gap: .3rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.field label { font-size: .85rem; font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea { padding: .75rem .9rem; border: 1px solid var(--line); border-radius: var(--radius); background: #f3efe8; }

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

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

@media (max-width: 900px) {
  .proof, .voices, .book { grid-template-columns: 1fr; }
  .bayboard__head, .bayboard__row { grid-template-columns: 3.8rem 1fr 3.5rem; }
  .bayboard__head span:nth-child(4), .bayboard__head span:nth-child(5),
  .bayboard__row .pill, .bayboard__row .row-cta { display: none; }
  .plan-row { grid-template-columns: 5.5rem 1fr; }
  .plan-row__price { grid-column: 2; }
  .field-row { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; background: var(--bg); border-bottom: 1px solid var(--line); padding: .75rem 1.25rem 1rem; }
  .nav.is-open { display: flex; }
  .nav a { padding: .7rem 0; border-bottom: 1px solid var(--line); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__media img, .hero__inner, .live i { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
