/* =====================================================================
   MenuAI · Landing V2 — "Golden Hour Noir"
   Editorial, cinematic, dark. Restaurant world at dusk: warm gold on
   deep olive-charcoal, magazine serif display + clean system sans.
   Self-contained, zero external deps, system fonts only.
   ===================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* base — warm dark, never pure black */
  --ink-900: #101109;
  --ink-850: #14150f;
  --ink-800: #191b12;
  --ink-700: #20221a;
  --ink-650: #262920;
  --line: #34362b;
  --line-soft: rgba(244, 239, 230, 0.09);

  /* text */
  --cream: #f4efe6;
  --cream-dim: #cdc7b8;
  --cream-mut: #9a9484;

  /* accents */
  --gold: #e2ac4e;
  --gold-hi: #f2c96f;
  --gold-deep: #b7822f;
  --olive: #97a25e;
  --olive-dim: #6f7846;

  /* glows / tints */
  --gold-glow: rgba(226, 172, 78, 0.16);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 34px;

  --wrap: 1240px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Georgia", ui-serif, serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink-850);
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--gold); color: var(--ink-900); }

:focus-visible {
  outline: 2px solid var(--gold-hi);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--gold); color: var(--ink-900); font-weight: 700;
  padding: 12px 18px; border-radius: var(--r-sm);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: 760px; }

/* ---------- Ambient FX ---------- */
.fx-aurora {
  position: fixed; inset: -20% -10% auto -10%; height: 120vh; z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(45% 40% at 78% 12%, rgba(226,172,78,0.18), transparent 60%),
    radial-gradient(40% 40% at 12% 30%, rgba(151,162,94,0.13), transparent 62%),
    radial-gradient(55% 45% at 60% 78%, rgba(183,130,47,0.10), transparent 65%);
  filter: blur(8px);
  animation: aurora 22s ease-in-out infinite alternate;
}
@keyframes aurora {
  0% { transform: translate3d(0,0,0) scale(1); }
  100% { transform: translate3d(-3%, 2%, 0) scale(1.08); }
}
.fx-grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (prefers-reduced-motion: reduce) { .fx-aurora { animation: none; } }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 22px;
}
.eyebrow__dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-glow);
  animation: pulse 2.4s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) { .eyebrow__dot { animation: none; } }

.section-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(2.1rem, 5.4vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin: 0 0 20px;
}
.section-title em { font-style: italic; color: var(--gold); }
.gold { color: var(--gold); }

.section-desc {
  color: var(--cream-dim); font-size: 1.08rem; max-width: 56ch; margin: 0 auto;
}
.section-head { text-align: center; margin: 0 auto 56px; max-width: 720px; }
.section-head--left { text-align: left; margin-left: 0; }
.section-head--left .section-desc { margin-left: 0; }

/* ---------- Buttons ---------- */
.btn {
  --pad: 13px 22px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: var(--pad); border-radius: 999px; border: 1px solid transparent;
  font-family: var(--font-sans); font-weight: 650; font-size: .98rem; cursor: pointer;
  min-height: 46px; transition: transform .18s var(--ease), background .2s, border-color .2s, color .2s;
  will-change: transform;
}
.btn--lg { --pad: 16px 30px; font-size: 1.05rem; min-height: 54px; }
.btn--full { width: 100%; }
.btn--gold {
  background: linear-gradient(180deg, var(--gold-hi), var(--gold));
  color: #241a06;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 10px 26px -12px rgba(226,172,78,0.55);
}
.btn--gold:hover { transform: translateY(-2px); }
.btn--gold:active { transform: translateY(0) scale(.98); }
.btn--ghost {
  background: rgba(244,239,230,0.04);
  color: var(--cream);
  border-color: var(--line);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-hi); transform: translateY(-2px); }
.btn--ghost:active { transform: translateY(0) scale(.98); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  transition: background .3s var(--ease), border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(20, 21, 15, 0.72);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line-soft);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.nav__brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 700; }
.nav__mark {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(160deg, var(--gold-hi), var(--gold-deep));
  color: #241a06; font-family: var(--font-serif); font-weight: 700; font-size: 1.15rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4);
}
.nav__word { font-size: 1.12rem; letter-spacing: -0.01em; }
.nav__links { display: flex; gap: 28px; }
.nav__links a { color: var(--cream-dim); font-size: .96rem; font-weight: 550; transition: color .2s; }
.nav__links a:hover { color: var(--gold-hi); }
.nav__cta { padding: 10px 20px; min-height: 42px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding: 90px 0 40px; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 118%; object-fit: cover; object-position: 62% center; will-change: transform; }
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--ink-850) 8%, rgba(20,21,15,0.72) 46%, rgba(20,21,15,0.15) 100%),
    linear-gradient(0deg, var(--ink-850) 2%, transparent 42%);
}
.hero__grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.02fr 0.98fr; gap: clamp(30px, 4vw, 64px); align-items: center;
}
.hero__copy { max-width: 620px; }
.hero__title {
  font-family: var(--font-serif); font-weight: 600;
  font-size: clamp(2.7rem, 8vw, 5.4rem); line-height: 0.98; letter-spacing: -0.02em;
  margin: 0 0 24px; text-wrap: balance;
}
.hero__title em { font-style: italic; color: var(--gold-hi); }
.hero__lead { font-size: clamp(1.08rem, 2.2vw, 1.32rem); color: var(--cream-dim); max-width: 46ch; margin: 0 0 32px; }
.hero__lead strong { color: var(--cream); font-weight: 650; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 20px; }
.hero__note { font-size: .9rem; color: var(--cream-mut); margin: 0; }

/* hero showcase (animated product preview) */
.hero__showcase { position: relative; display: flex; justify-content: center; align-items: center; min-height: 480px; }
.hero__glow {
  position: absolute; width: 118%; height: 78%; left: -9%; top: 8%; z-index: 0; pointer-events: none;
  background: radial-gradient(50% 50% at 60% 45%, rgba(226,172,78,0.4), transparent 68%),
              radial-gradient(40% 42% at 28% 72%, rgba(151,162,94,0.28), transparent 66%);
  filter: blur(38px); opacity: .85;
  animation: heroGlow 7s ease-in-out infinite alternate;
}
@keyframes heroGlow { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.12); opacity: 1; } }

.phone-mockup--hero {
  position: relative; z-index: 1; width: 288px;
  animation: heroFloat 6.5s ease-in-out infinite;
  box-shadow: 0 50px 90px -32px rgba(0,0,0,0.85), 0 0 0 1px rgba(226,172,78,0.12), inset 0 0 0 2px rgba(244,239,230,0.04);
}
@keyframes heroFloat { 0%,100% { transform: translateY(0) rotate(-1.2deg); } 50% { transform: translateY(-14px) rotate(0.4deg); } }

.hero-menu { display: flex; flex-direction: column; height: 100%; background: var(--ink-800); color: var(--cream); }
.hero-menu__head { display: flex; align-items: center; gap: 9px; padding: 30px 14px 12px; border-bottom: 1px solid var(--line-soft); }
.hero-menu__logo {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; flex: none;
  background: linear-gradient(160deg, var(--gold-hi), var(--gold-deep)); color: #241a06; font-family: var(--font-serif); font-weight: 700; font-size: .9rem;
}
.hero-menu__brand { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hero-menu__name { font-weight: 700; font-size: .84rem; line-height: 1.15; }
.hero-menu__sub { font-size: .68rem; color: var(--gold); font-weight: 600; }
.hero-menu__live { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(151,162,94,0.15); }
.hero-menu__live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--olive); animation: pulse 2s ease-in-out infinite; }
.hero-menu__cats { display: flex; gap: 6px; padding: 11px 14px 6px; }
.hero-menu__cats span {
  font-size: .68rem; font-weight: 600; padding: 5px 10px; border-radius: 999px; white-space: nowrap;
  background: rgba(244,239,230,0.07); color: var(--cream-mut);
}
.hero-menu__cats .is-on { background: var(--gold); color: #241a06; }
.hero-menu__list { flex: 1; padding: 6px 14px 16px; display: flex; flex-direction: column; }
.hero-dish {
  display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line-soft);
  opacity: 1;
  animation: heroDishIn .55s var(--ease) both;
  animation-delay: calc(var(--i) * 0.14s + 0.35s);
}
@keyframes heroDishIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero-dish__emoji {
  width: 40px; height: 40px; border-radius: 10px; flex: none; display: grid; place-items: center;
  background: rgba(244,239,230,0.06); font-size: 1.25rem;
}
.hero-dish__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hero-dish__txt b { font-size: .82rem; font-weight: 650; }
.hero-dish__txt i { font-size: .68rem; color: var(--cream-mut); font-style: normal; }
.hero-dish__price { font-weight: 700; font-size: .82rem; color: var(--gold); }
.hero-dish__price::before { content: "€"; opacity: .7; }
.hero-dish--star { position: relative; }
.hero-dish--star .hero-dish__txt b::after {
  content: "★"; color: var(--gold-hi); font-size: .7rem; margin-left: 6px; vertical-align: 1px;
}

.hero-bubble {
  position: absolute; z-index: 2; left: -6%; bottom: 8%; max-width: 224px;
  display: flex; gap: 9px; align-items: flex-start;
  background: linear-gradient(180deg, var(--ink-650), var(--ink-700));
  border: 1px solid var(--line); border-radius: 16px 16px 16px 4px; padding: 11px 13px;
  box-shadow: 0 24px 44px -18px rgba(0,0,0,0.7);
  animation: heroBubbleIn .6s var(--ease) 1.5s both, heroBubbleFloat 5s ease-in-out 2.1s infinite;
}
.hero-bubble__ava {
  width: 26px; height: 26px; border-radius: 8px; flex: none; display: grid; place-items: center;
  background: linear-gradient(160deg, var(--gold-hi), var(--gold-deep)); color: #241a06;
}
.hero-bubble__txt { font-size: .84rem; line-height: 1.4; color: var(--cream); }
.hero-bubble__txt b { color: var(--gold-hi); }
@keyframes heroBubbleIn { from { opacity: 0; transform: translateY(10px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes heroBubbleFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

@media (prefers-reduced-motion: reduce) {
  .hero__glow, .phone-mockup--hero, .hero-dish, .hero-bubble, .hero-menu__live-dot { animation: none; }
  .hero-dish { opacity: 1; transform: none; }
  .hero-bubble { opacity: 1; transform: none; }
}

/* marquee */
.marquee {
  position: relative; z-index: 2; margin-top: clamp(40px, 8vh, 90px);
  border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
  padding: 16px 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex; align-items: center; white-space: nowrap; width: max-content;
  font-family: var(--font-serif); font-style: italic; font-size: 1.15rem; color: var(--cream-dim);
  animation: marquee 34s linear infinite; will-change: transform;
}
/* Uniform per-item spacing (NOT flex gap) so translateX(-50%) lands exactly on the
   seam after the JS duplicates the track -> loop infinito sin costura. */
.marquee__track > span { margin: 0 11px; }
.marquee__dot { color: var(--gold); font-style: normal; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal--d1 { transition-delay: .09s; }
.reveal--d2 { transition-delay: .18s; }
.reveal--d3 { transition-delay: .27s; }
.reveal--d4 { transition-delay: .36s; }
.reveal--d5 { transition-delay: .45s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Section rhythm ---------- */
.mesa, .demos, .steps, .why, .pricing, .faq { padding: clamp(72px, 11vh, 130px) 0; position: relative; }

/* =====================================================================
   VISIR — "Mesa" interactive widget
   ===================================================================== */
.visir__stage { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: 44px; align-items: stretch; }

/* phone */
.visir__phone-col { display: flex; justify-content: center; }
.phone-mockup {
  position: relative; width: 300px; max-width: 100%; aspect-ratio: 300 / 620;
  background: #0c0d08; border-radius: 42px; padding: 12px;
  border: 1px solid var(--line);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.8), inset 0 0 0 2px rgba(244,239,230,0.03);
}
.phone-mockup__notch {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 116px; height: 22px; background: #0c0d08; border-radius: 0 0 14px 14px; z-index: 5;
}
.phone-mockup__screen { height: 100%; border-radius: 32px; overflow: hidden; background: var(--ink-800); }

.visir-menu { display: flex; flex-direction: column; height: 100%; background: var(--ink-800); color: var(--cream); transition: background .3s, color .3s; }
.visir-menu--light { background: #f7f2e8; color: #2a271f; }
.visir-menu--light .visir-menu__topbar { border-color: rgba(0,0,0,0.08); }
.visir-menu--light .visir-cat { background: rgba(0,0,0,0.05); color: #55503f; }
.visir-menu--light .visir-cat.is-active { background: var(--gold); color: #241a06; }
.visir-menu--light .visir-dish { border-color: rgba(0,0,0,0.07); }
.visir-menu--light .visir-dish__thumb { background: rgba(0,0,0,0.05); }
.visir-menu--light .visir-dish p { color: #6f6a58; }
.visir-menu--light .visir-menu__cat-head { color: #8a8471; }
.visir-menu--light .visir-icon-btn,
.visir-menu--light .visir-seg { background: rgba(0,0,0,0.05); }
.visir-menu--light .visir-seg__btn.is-active { background: #fff; color: #241a06; }

.visir-menu__topbar {
  display: flex; align-items: center; gap: 10px; padding: 30px 14px 12px;
  border-bottom: 1px solid var(--line-soft);
}
.visir-menu__logo {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; flex: none;
  background: linear-gradient(160deg, var(--gold-hi), var(--gold-deep)); color: #241a06;
  font-family: var(--font-serif); font-weight: 700;
}
.visir-menu__brand { flex: 1; min-width: 0; }
.visir-menu__name { font-weight: 700; font-size: .92rem; line-height: 1.1; }
.visir-menu__table { font-size: .72rem; color: var(--gold); font-weight: 600; }
.visir-menu__controls { display: flex; align-items: center; gap: 6px; }
.visir-icon-btn {
  width: 28px; height: 28px; border: none; border-radius: 8px; cursor: pointer;
  background: rgba(244,239,230,0.08); font-size: .82rem; line-height: 1; display: grid; place-items: center;
}
.visir-seg { display: flex; background: rgba(244,239,230,0.08); border-radius: 8px; padding: 2px; }
.visir-seg__btn {
  border: none; background: transparent; color: inherit; cursor: pointer;
  font-size: .68rem; font-weight: 700; padding: 4px 7px; border-radius: 6px;
}
.visir-seg__btn.is-active { background: var(--gold); color: #241a06; }

.visir-menu__cats { display: flex; gap: 6px; padding: 12px 14px; overflow-x: auto; scrollbar-width: none; }
.visir-menu__cats::-webkit-scrollbar { display: none; }
.visir-cat {
  border: none; cursor: pointer; white-space: nowrap; flex: none;
  background: rgba(244,239,230,0.07); color: var(--cream-dim);
  padding: 6px 12px; border-radius: 999px; font-size: .76rem; font-weight: 600; transition: background .2s, color .2s;
}
.visir-cat.is-active { background: var(--gold); color: #241a06; }

.visir-menu__list { flex: 1; overflow-y: auto; padding: 4px 14px 12px; scrollbar-width: thin; scroll-behavior: smooth; }
.visir-menu__cat-head {
  font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--cream-mut); margin: 14px 0 8px;
}
.visir-dish {
  display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line-soft);
  transition: background .3s; border-radius: 8px;
}
.visir-dish.is-highlight { background: var(--gold-glow); box-shadow: 0 0 0 8px var(--gold-glow); }
.visir-dish__thumb {
  width: 42px; height: 42px; border-radius: 10px; flex: none; display: grid; place-items: center;
  background: rgba(244,239,230,0.06); font-size: 1.3rem;
}
.visir-dish__info { flex: 1; min-width: 0; }
.visir-dish__info h5 { margin: 0; font-size: .84rem; font-weight: 650; }
.visir-dish__info p { margin: 2px 0 6px; font-size: .74rem; color: var(--cream-mut); line-height: 1.35; }
.visir-dish__bottom { display: flex; align-items: center; justify-content: space-between; }
.visir-dish__price { font-weight: 700; font-size: .82rem; color: var(--gold); }
.visir-dish__add {
  width: 26px; height: 26px; border: none; border-radius: 8px; cursor: pointer;
  background: rgba(226,172,78,0.15); color: var(--gold-hi); font-size: 1.1rem; line-height: 1; font-weight: 700;
  transition: transform .15s var(--ease), background .2s;
}
.visir-dish__add:hover { background: var(--gold); color: #241a06; transform: scale(1.1); }
.visir-dish__add:active { transform: scale(.9); }

.visir-menu__cart {
  margin: 0 14px 14px; display: flex; align-items: center; justify-content: center; gap: 8px;
  border: none; cursor: pointer; padding: 12px; border-radius: 12px; font-weight: 700; font-size: .86rem;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold)); color: #241a06;
}
.visir-menu__cart.is-bump { animation: bump .4s var(--ease); }
@keyframes bump { 30% { transform: scale(1.06); } 60% { transform: scale(0.98); } }
.visir-menu__cart-badge {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center;
  background: rgba(36,26,6,0.25); font-size: .78rem;
}
@media (prefers-reduced-motion: reduce) { .visir-menu__cart.is-bump { animation: none; } }

/* chat */
.visir__chat-col { display: flex; }
.visir-chat {
  flex: 1; display: flex; flex-direction: column; min-height: 560px;
  background: linear-gradient(180deg, var(--ink-700), var(--ink-800));
  border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(0,0,0,0.7), inset 0 1px 0 rgba(244,239,230,0.05);
}
.visir-chat__head {
  display: flex; align-items: center; gap: 12px; padding: 18px 22px;
  border-bottom: 1px solid var(--line-soft); background: rgba(226,172,78,0.05);
}
.visir-chat__avatar {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; flex: none;
  background: linear-gradient(160deg, var(--gold-hi), var(--gold-deep)); color: #241a06;
}
.visir-chat__title strong { display: block; font-size: 1rem; }
.visir-chat__title span { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--cream-mut); }
.visir-chat__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--olive); box-shadow: 0 0 0 3px rgba(151,162,94,0.2); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .4; } }
@media (prefers-reduced-motion: reduce) { .visir-chat__dot { animation: none; } }

.visir-chat__log { flex: 1; overflow-y: auto; padding: 22px; display: flex; flex-direction: column; gap: 14px; scrollbar-width: thin; }
.visir-msg { display: flex; gap: 10px; max-width: 88%; }
.visir-msg--user { align-self: flex-end; flex-direction: row-reverse; }
.visir-msg--mesa { align-self: flex-start; }
.visir-msg__avatar {
  width: 30px; height: 30px; border-radius: 9px; flex: none; display: grid; place-items: center;
  background: linear-gradient(160deg, var(--gold-hi), var(--gold-deep)); color: #241a06; margin-top: 2px;
}
.visir-msg__bubble {
  padding: 11px 15px; border-radius: 16px; font-size: .95rem; line-height: 1.5;
  background: var(--ink-650); border: 1px solid var(--line-soft);
}
.visir-msg--user .visir-msg__bubble { background: linear-gradient(180deg, var(--gold-hi), var(--gold)); color: #241a06; border-color: transparent; font-weight: 550; }
.visir-msg__bubble strong { color: var(--gold-hi); }
.visir-msg--user .visir-msg__bubble strong { color: #241a06; }
.visir-msg__bubble--typing { display: inline-flex; gap: 4px; align-items: center; }
.visir-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cream-mut); animation: typing 1.2s infinite; }
.visir-dot:nth-child(2) { animation-delay: .2s; }
.visir-dot:nth-child(3) { animation-delay: .4s; }
@keyframes typing { 0%,60%,100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .visir-dot { animation: none; } }

.visir-cta {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 10px;
  border: 1px solid var(--gold); background: rgba(226,172,78,0.12); color: var(--gold-hi);
  padding: 8px 14px; border-radius: 999px; font-weight: 650; font-size: .86rem; cursor: pointer;
  transition: background .2s, transform .15s var(--ease);
}
.visir-cta:hover { background: var(--gold); color: #241a06; transform: translateY(-1px); }
.visir-cta.is-done { background: var(--olive-dim); border-color: var(--olive-dim); color: var(--cream); cursor: default; }
.visir-cta__plus { font-weight: 800; }

.visir-chat__hint { padding: 0 22px 8px; font-size: .8rem; color: var(--cream-mut); text-align: center; transition: opacity .3s; }
.visir-chat__hint.is-hidden { opacity: 0; height: 0; padding: 0; overflow: hidden; }
.visir-chat__suggest { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 22px 22px; }
.visir-chip {
  border: 1px solid var(--line); background: rgba(244,239,230,0.04); color: var(--cream-dim);
  padding: 9px 14px; border-radius: 999px; font-size: .84rem; font-weight: 550; cursor: pointer;
  transition: border-color .2s, color .2s, transform .15s var(--ease);
}
.visir-chip:hover:not(:disabled) { border-color: var(--gold); color: var(--gold-hi); transform: translateY(-1px); }
.visir-chip:disabled { opacity: .45; cursor: default; }

/* =====================================================================
   DEMOS
   ===================================================================== */
.demos { background: linear-gradient(180deg, var(--ink-850), var(--ink-900)); }
.demo-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.demo-card {
  position: relative; display: flex; flex-direction: column; gap: 16px;
  background: var(--ink-700); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 20px 18px 16px; overflow: hidden;
  transition: transform .45s var(--ease), opacity .55s var(--ease), border-color .3s, box-shadow .3s;
}
.demo-card::before {
  content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background: radial-gradient(120% 60% at 50% -10%, var(--dm-glow, transparent), transparent 60%);
  transition: opacity .3s;
}
.demo-card:hover, .demo-card:focus-visible {
  transform: translateY(-8px); transition-delay: 0s;
  border-color: var(--gold);
  box-shadow: 0 34px 64px -28px rgba(0,0,0,0.75), 0 0 0 1px rgba(226,172,78,0.35), inset 0 1px 0 rgba(244,239,230,0.06);
}
.demo-card:hover::before, .demo-card:focus-visible::before { opacity: 1; }
.demo-card:hover .demo-card__phone { transform: scale(1.03) rotate(-0.6deg); }
.demo-card--editorial { --dm-glow: rgba(226,172,78,0.18); }
.demo-card--aurora { --dm-glow: rgba(139,120,220,0.22); }
.demo-card--izakaya { --dm-glow: rgba(214,90,90,0.20); }
.demo-card--trattoria { --dm-glow: rgba(120,170,90,0.20); }
.demo-card--luxe { --dm-glow: rgba(226,172,78,0.28); }

.demo-card__phone {
  position: relative; z-index: 1; border-radius: 16px; overflow: hidden;
  aspect-ratio: 5 / 6; border: 1px solid var(--line-soft);
  transition: transform .5s var(--ease);
}

.demos__more { text-align: center; margin: 40px auto 0; color: var(--cream-mut); font-size: 1rem; max-width: 52ch; }
.demos__more strong { color: var(--gold-hi); }
.dm { height: 100%; padding: 14px 13px; display: flex; flex-direction: column; gap: 9px; font-size: .72rem; }
.dm__top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 8px; margin-bottom: 3px; border-bottom: 1px solid currentColor; opacity: .95; }
.dm__brand { font-weight: 700; }
.dm__tag { font-size: .6rem; opacity: .7; letter-spacing: .05em; }
.dm__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 5px 0; border-bottom: 1px dashed currentColor; }
.dm__row b { font-variant-numeric: tabular-nums; }
.dm__row--star { font-weight: 700; }
.dm__row--star::before { content: "★ "; }

/* per-design theming (previews of the 5 designs) */
.dm--editorial { background: #17130b; color: #e8d3a3; font-family: var(--font-serif); }
.dm--editorial .dm__row--star { color: var(--gold-hi); }

.dm--aurora { background: linear-gradient(165deg, #1a1533, #241a44); color: #d9d3f5; border-radius: 14px; }
.dm--aurora .dm__top { border-color: rgba(217,211,245,0.25); }
.dm--aurora .dm__bento { display: grid; grid-template-columns: 1.4fr 1fr; grid-auto-rows: 1fr; gap: 7px; flex: 1; }
.dm--aurora .dm__tile { border-radius: 12px; padding: 9px; display: flex; flex-direction: column; justify-content: flex-end; font-weight: 600; background: linear-gradient(160deg, rgba(139,120,220,0.4), rgba(90,150,220,0.25)); }
.dm--aurora .dm__tile--lg { grid-row: span 2; font-size: .8rem; background: linear-gradient(160deg, rgba(180,120,220,0.5), rgba(90,150,220,0.3)); }
.dm--aurora .dm__tile b { color: #fff; }

.dm--izakaya { background: #14100f; color: #e7c9b0; }
.dm--izakaya .dm__top { border-color: #d65a5a; color: #f0d7c2; }
.dm--izakaya .dm__brand { color: #e07a6a; }
.dm--izakaya .dm__row { border-color: rgba(214,90,90,0.35); }
.dm--izakaya .dm__row--star { color: #ef9a6a; }
.dm--izakaya .dm__row--star::before { content: "赤 "; font-size: .6rem; }

.dm--trattoria { background: #f4ead5; color: #4a3c28; }
.dm--trattoria .dm__top { border-color: rgba(74,60,40,0.3); }
.dm--trattoria .dm__brand { color: #8a2b2b; font-family: var(--font-serif); }
.dm--trattoria .dm__tag { color: #4c6b34; }
.dm--trattoria .dm__row { border-color: rgba(74,60,40,0.25); }
.dm--trattoria .dm__row--star { color: #8a2b2b; }

.dm--luxe { background: radial-gradient(120% 80% at 50% 0%, #1c1a14, #0a0a08); color: #d8c9a4; font-family: var(--font-serif); }
.dm--luxe .dm__top { border-color: rgba(216,201,164,0.3); }
.dm--luxe .dm__brand { letter-spacing: .16em; text-transform: uppercase; font-size: .66rem; color: #e7cf9a; }
.dm--luxe .dm__tag { font-style: italic; opacity: .8; }
.dm--luxe .dm__row { border-color: rgba(216,201,164,0.2); }
.dm--luxe .dm__row--star { color: #f0d79a; }
.dm--luxe .dm__row--star::before { content: "◆ "; font-size: .55rem; }

.demo-card__meta { position: relative; z-index: 1; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.demo-card__kicker { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 3px; }
.demo-card__meta h3 { margin: 0; font-family: var(--font-serif); font-size: 1.3rem; font-weight: 600; }
.demo-card__go { display: inline-flex; align-items: center; gap: 5px; font-size: .8rem; font-weight: 650; color: var(--cream-dim); white-space: nowrap; transition: color .2s, gap .2s; }
.demo-card:hover .demo-card__go { color: var(--gold-hi); gap: 8px; }

/* =====================================================================
   STEPS
   ===================================================================== */
.steps__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: clamp(40px, 7vh, 90px); }
.step { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.step--rev .step__media { order: 2; }
.step__media {
  position: relative; width: 100%; max-width: 520px; margin-inline: auto;
  aspect-ratio: 3 / 4; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line); box-shadow: 0 40px 80px -34px rgba(0,0,0,0.78);
}
.step__media img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .8s var(--ease); }
.step:hover .step__media img { transform: scale(1.05); }
.step__num { display: block; font-family: var(--font-serif); font-size: 3.2rem; line-height: 1; color: var(--gold); opacity: .55; margin-bottom: 10px; font-style: italic; }
.step__body h3 { font-family: var(--font-serif); font-size: clamp(1.5rem, 3.2vw, 2.2rem); font-weight: 600; margin: 0 0 12px; }
.step__body p { color: var(--cream-dim); max-width: 44ch; margin: 0; font-size: 1.06rem; }

/* =====================================================================
   WHY
   ===================================================================== */
.why { overflow: hidden; }
.why__bg { position: absolute; inset: 0; z-index: 0; }
.why__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .16; }
.why::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, var(--ink-850) 4%, rgba(20,21,15,0.6) 40%, var(--ink-850) 96%); }
.why .wrap { position: relative; z-index: 2; }
.why__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 46px; }
.why__card {
  background: rgba(32,34,26,0.6); backdrop-filter: blur(6px);
  border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px 22px;
  transition: transform .45s var(--ease), opacity .55s var(--ease), border-color .3s, background .3s, box-shadow .3s;
}
.why__card:hover {
  transform: translateY(-7px); transition-delay: 0s; border-color: var(--gold);
  background: rgba(38,41,32,0.78); box-shadow: 0 28px 56px -30px rgba(0,0,0,0.6);
}
.why__card:hover .why__ico { transform: translateY(-2px) scale(1.06); }
.why__ico { transition: transform .35s var(--ease); }
.why__ico {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 13px; margin-bottom: 18px;
  background: rgba(226,172,78,0.12); color: var(--gold-hi); border: 1px solid rgba(226,172,78,0.25);
}
.why__card h3 { font-family: var(--font-serif); font-size: 1.28rem; font-weight: 600; margin: 0 0 8px; }
.why__card p { color: var(--cream-dim); font-size: .98rem; margin: 0; }

/* =====================================================================
   PRICING
   ===================================================================== */
.pricing { background: linear-gradient(180deg, var(--ink-900), var(--ink-850)); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; max-width: 1040px; margin: 0 auto; }
.plan {
  position: relative; background: var(--ink-700); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 32px 26px;
  transition: transform .45s var(--ease), opacity .55s var(--ease), border-color .3s, box-shadow .3s;
}
.plan:hover { transform: translateY(-6px); transition-delay: 0s; border-color: rgba(226,172,78,0.4); box-shadow: 0 30px 60px -34px rgba(0,0,0,0.62); }
.plan--featured {
  border-color: var(--gold); background: linear-gradient(180deg, var(--ink-650), var(--ink-700));
  box-shadow: 0 30px 70px -35px rgba(226,172,78,0.35);
}
.plan--featured:hover { border-color: var(--gold-hi); }
.plan__badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(180deg, var(--gold-hi), var(--gold)); color: #241a06;
  font-size: .72rem; font-weight: 700; letter-spacing: .04em; padding: 5px 14px; border-radius: 999px; white-space: nowrap;
}
.plan__name { font-family: var(--font-serif); font-size: 1.6rem; font-weight: 600; margin: 0 0 4px; }
.plan__tag { color: var(--cream-mut); font-size: .9rem; margin: 0 0 20px; }
.plan__price { display: flex; align-items: baseline; gap: 3px; margin-bottom: 2px; }
.plan__amount { font-family: var(--font-serif); font-size: 3.4rem; font-weight: 600; line-height: 1; }
.plan__cur { font-size: 1.5rem; color: var(--gold); font-weight: 600; }
.plan__mo { font-size: .95rem; color: var(--cream-mut); align-self: flex-end; margin-left: 2px; }
.plan__period { font-size: .82rem; color: var(--cream-mut); margin: 0 0 22px; }
.plan__feats { list-style: none; margin: 22px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 11px; }
.plan__feats li { position: relative; padding-left: 26px; font-size: .94rem; color: var(--cream-dim); }
.plan__feats li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 15px; height: 8px;
  border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg);
}

/* =====================================================================
   FAQ
   ===================================================================== */
.faq__list { display: flex; flex-direction: column; gap: 12px; }
.faq__item {
  background: var(--ink-700); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 4px 20px; transition: border-color .2s;
}
.faq__item[open] { border-color: rgba(226,172,78,0.4); }
.faq__item summary {
  list-style: none; cursor: pointer; padding: 16px 30px 16px 0; position: relative;
  font-weight: 600; font-size: 1.05rem;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: var(--gold); transition: transform .25s var(--ease); font-weight: 400;
}
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__item p { margin: 0 0 16px; color: var(--cream-dim); }

/* =====================================================================
   CTA FINAL
   ===================================================================== */
.cta { position: relative; padding: clamp(90px, 15vh, 160px) 0; overflow: hidden; text-align: center; }
.cta__bg { position: absolute; inset: 0; z-index: 0; }
.cta__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.cta::after { content: ""; position: absolute; inset: 0; z-index: 0; background: radial-gradient(60% 80% at 50% 50%, rgba(20,21,15,0.55), var(--ink-850) 90%); }
.cta__inner { position: relative; z-index: 2; }
.cta__title { font-family: var(--font-serif); font-weight: 600; font-size: clamp(2rem, 6vw, 4rem); line-height: 1.02; letter-spacing: -0.02em; margin: 0 0 16px; text-wrap: balance; }
.cta__title em { font-style: italic; color: var(--gold-hi); }
.cta__desc { color: var(--cream-dim); font-size: 1.15rem; max-width: 46ch; margin: 0 auto 30px; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer { border-top: 1px solid var(--line-soft); padding: 56px 0 40px; background: var(--ink-900); }
.footer__inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 36px; }
.footer__brand { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.footer__brand p { width: 100%; color: var(--cream-mut); font-size: .9rem; margin: 6px 0 0; }
.footer__nav { display: flex; gap: 26px; flex-wrap: wrap; align-items: center; }
.footer__nav a { color: var(--cream-dim); font-size: .95rem; transition: color .2s; }
.footer__nav a:hover { color: var(--gold-hi); }
.footer__legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; padding-top: 26px; border-top: 1px solid var(--line-soft); color: var(--cream-mut); font-size: .85rem; }
.footer__legal-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer__legal-links a { color: var(--cream-mut); transition: color .2s; }
.footer__legal-links a:hover { color: var(--gold-hi); }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1024px) {
  .demo-grid { grid-template-columns: repeat(3, 1fr); }
  .why__grid { grid-template-columns: repeat(2, 1fr); }
  .visir__stage { grid-template-columns: 1fr; gap: 34px; }
  .visir__phone-col { order: -1; }
}

@media (max-width: 920px) {
  .hero__grid { grid-template-columns: 1fr; gap: 48px; justify-items: start; }
  .hero__showcase { justify-self: center; min-height: 440px; margin-top: 4px; }
}

@media (max-width: 860px) {
  .nav__links { display: none; }
}

@media (max-width: 768px) {
  body { font-size: 16px; }
  .demo-grid { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; max-width: 420px; }
  .plan--featured { order: -1; }
  .step, .step--rev { grid-template-columns: 1fr; gap: 24px; }
  .step--rev .step__media { order: 0; }
  .step__media { max-width: 400px; }
  .hero { min-height: auto; padding: 120px 0 50px; }
  .hero__media img { object-position: 68% center; }
  .hero__scrim { background: linear-gradient(180deg, rgba(20,21,15,0.35) 0%, rgba(20,21,15,0.82) 55%, var(--ink-850) 100%); }
  .section-head { margin-bottom: 40px; }
}

@media (max-width: 520px) {
  .demo-grid { grid-template-columns: 1fr; }
  .why__grid { grid-template-columns: 1fr; }
  .wrap { padding: 0 18px; }
  .hero__actions .btn { flex: 1; }
  .footer__legal { justify-content: flex-start; }
  .phone-mockup--hero { width: 252px; }
  .hero__showcase { min-height: 400px; }
  .hero-bubble { left: 0; max-width: 210px; }
  .step__media { max-width: 320px; }
}
