/* Vuedia homepage and restaurant page, EN + FR. White in light mode, black in dark mode. */
:root {
  --bg: #ffffff;
  --wash: #f5f5f7;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --blue: #0071e3;
  --on-blue: #ffffff;
  --rule: rgba(0,0,0,.12);
  --ok: #248a3d;
  --card: #ffffff;
  --bubble-ai: #f0f0f2;
  --shadow: 0 20px 40px -24px rgba(0,0,0,.28);
  /* names track.js and the chat widget already use */
  --label: var(--ink); --label2: var(--muted); --sep: var(--rule); --tint: var(--blue); --bg2: var(--wash); --bubble-me: var(--blue);
  --serif: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --wash: #161617;
    --ink: #f5f5f7;
    --muted: #a1a1a6;
    --blue: #2997ff;
    --on-blue: #000000;
    --rule: rgba(255,255,255,.16);
    --ok: #30d158;
    --card: #1c1c1e;
    --bubble-ai: #2c2c2e;
    --shadow: 0 20px 40px -24px rgba(0,0,0,.9);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 68px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.5 var(--sans); }
a { color: var(--blue); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(38px, 5vw, 64px); line-height: 1.05; }
h2 { font-size: clamp(30px, 3.8vw, 46px); line-height: 1.1; max-width: 18em; }
h3 { font-size: clamp(24px, 2.4vw, 30px); line-height: 1.15; }
h4 { font-size: 17px; line-height: 1.3; font-weight: 600; }
.lead { font-size: 20px; line-height: 1.45; color: var(--muted); max-width: 34em; margin-top: 20px; text-wrap: pretty; }
.fine { color: var(--muted); font-size: 14px; max-width: 62em; margin-top: 16px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px; border: 0; border-radius: 980px;
  background: var(--blue); color: var(--on-blue);
  font: 600 17px/1 var(--sans); text-decoration: none; cursor: pointer;
}
.btn.small { min-height: 36px; padding: 0 16px; font-size: 14px; }
.btn.ghost { background: transparent; color: var(--blue); box-shadow: inset 0 0 0 1.5px currentColor; }

/* Nav */
nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--rule);
}
nav .wrap { display: flex; align-items: center; gap: 24px; height: 56px; }
/* Wordmark: lowercase, tight, the dot of the i in brand blue (a dotless ı plus a drawn dot). */
.brand { font-weight: 700; font-size: 22px; line-height: 1; letter-spacing: -0.05em; color: var(--ink); text-decoration: none; margin-right: auto; white-space: nowrap; flex: none; }
.brand .i { position: relative; display: inline-block; }
.brand .i::after { content: ""; position: absolute; left: 50%; top: 0.23em; width: 0.17em; height: 0.17em; margin-left: -0.085em; border-radius: 50%; background: var(--blue); }
nav a.link { color: var(--ink); text-decoration: none; font-size: 15px; }
nav a.link:hover { color: var(--blue); }
nav .btn { white-space: nowrap; }
@media (max-width: 700px) { nav a.link:not(.lang) { display: none; } } /* the language switch stays on phones */

/* Sections */
main > section { padding: 96px 0; }
main > section + section { border-top: 1px solid var(--rule); } /* white or black only: sections split by a hairline */
@media (max-width: 700px) { main > section { padding: 64px 0; } }

/* Hero: the question on the left, the answer on the table */
main > .hero { padding: 64px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; }
.cta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 32px; }

.chat { margin: 0 auto; max-width: 440px; background: var(--card); border-radius: 22px; padding: 20px; border: 1px solid var(--rule); box-shadow: var(--shadow); }
.chat .me, .chat .ai { padding: 12px 16px; border-radius: 20px; }
.chat .me { background: var(--bubble-me); color: var(--on-blue); margin-left: auto; border-bottom-right-radius: 4px; width: fit-content; max-width: 88%; }
.chat .ai { background: var(--bubble-ai); margin-top: 14px; border-bottom-left-radius: 4px; max-width: 94%; }
.chat .pick { margin-top: 12px; padding: 12px 14px; background: var(--card); border-radius: 12px; }
.chat .pick strong { display: block; font: 600 20px/1.2 var(--serif); }
.chat .pick span { color: var(--muted); font-size: 15px; }
.chat .src { margin-top: 12px; font-size: 13px; color: var(--muted); }
.chat .src b { color: var(--ok); font-weight: 600; }
.chat .note { color: var(--muted); font-size: 13px; margin: 14px 4px 0; }
@media (prefers-reduced-motion: no-preference) { .chat .ai { animation: appear .5s ease-out .7s both; } }
@keyframes appear { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 860px) {
  main > .hero { padding: 40px 0 64px; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}

/* "What kind of business do you run?": one link per kind, restaurants have their own page */
main > .ask { padding: 48px 0 64px; }
.ask h2 { font-size: clamp(26px, 3vw, 34px); }
.types { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.types a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border: 1px solid var(--rule); border-radius: 980px; color: var(--ink); font-weight: 600; text-decoration: none; }
.types a:hover { border-color: var(--blue); color: var(--blue); }

/* Three situations, the last one is ours */
.states { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 56px; }
.states > div { border-top: 1px solid var(--rule); padding-top: 20px; }
.states > .yes { border-top: 3px solid var(--blue); padding-top: 18px; }
.states h3 { font-size: 22px; }
.states p { color: var(--muted); margin-top: 8px; }
@media (max-width: 860px) { .states { grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 40px; } }

/* Stage rows: a name on the left, what it covers on the right */
.journey { margin-top: 56px; }
.stage { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: 24px 64px; padding: 40px 0; border-top: 1px solid var(--rule); }
.stage:last-child { padding-bottom: 0; }
.stage > header p { color: var(--muted); margin-top: 8px; }
.stage ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 48px; align-content: start; }
.stage li p { color: var(--muted); font-size: 16px; margin-top: 4px; }
.tag { display: inline-block; margin-top: 8px; font-size: 14px; font-weight: 600; color: var(--ink); }
a.tag { color: var(--blue); }
@media (max-width: 860px) {
  .journey { margin-top: 40px; }
  .stage { grid-template-columns: minmax(0, 1fr); padding: 32px 0; }
}
@media (max-width: 560px) { .stage ul { grid-template-columns: minmax(0, 1fr); gap: 20px; } }

/* Promotions: a plain two-column list */
.board-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.board img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 18px; }
.specials { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
.specials li { padding: 20px 0; border-top: 1px solid var(--rule); }
.specials h3 { font-size: 21px; }
.specials p { margin-top: 6px; font-size: 16px; color: var(--muted); }
@media (max-width: 860px) {
  .board-top { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .specials { grid-template-columns: minmax(0, 1fr); margin-top: 32px; }
}

/* Pricing: one bordered row per offer, the price on the right */
.menu { max-width: 880px; margin: 0 auto; }
.menu-sub { margin-top: 16px; max-width: 34em; color: var(--muted); font-size: 19px; }
.course { margin-top: 56px; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; font-size: 26px; }
.course small { font: 400 15px/1.3 var(--sans); letter-spacing: 0; color: var(--muted); }
.dish { margin-top: 16px; padding: 24px; background: var(--card); border: 1px solid var(--rule); border-radius: 18px; }
.dish-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.dish-head h4 { font-size: 21px; }
.dish-head .cost { font: 600 28px/1 var(--sans); letter-spacing: -0.02em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dish p { margin-top: 8px; max-width: 60ch; font-size: 16px; color: var(--muted); }
.dish .act { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-top: 16px; }
.dish .act a:not(.btn) { font-weight: 600; text-underline-offset: 3px; }
.served { margin-top: 40px; font-weight: 600; font-size: 19px; }
.ticks { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 40px; }
.ticks li { padding-left: 26px; position: relative; font-weight: 600; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.ticks small { display: block; font-weight: 400; font-size: 15px; color: var(--muted); }
#pricing .fine { max-width: 880px; margin: 16px auto 0; }
#pricing .menu + .fine { margin-top: 32px; }
@media (max-width: 560px) {
  .dish { padding: 20px; }
  .ticks { grid-template-columns: minmax(0, 1fr); }
  .dish-head h4 { font-size: 19px; }
  .dish-head .cost { font-size: 24px; }
}

/* Steps: a real sequence, so the numbers are earned */
.steps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; gap: 32px; grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: s; }
.steps li { counter-increment: s; border-top: 1px solid var(--rule); padding-top: 20px; }
.steps li::before { content: counter(s); display: block; font: 600 40px/1 var(--serif); color: var(--blue); margin-bottom: 12px; }
.steps h3 { font-size: 22px; }
.steps p { color: var(--muted); margin-top: 8px; }
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: minmax(0, 1fr); gap: 24px; } }

/* FAQ */
.split { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: 32px 64px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }
details { border-top: 1px solid var(--rule); }
details:last-child { border-bottom: 1px solid var(--rule); }
summary { cursor: pointer; padding: 20px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--blue); font-weight: 400; font-size: 24px; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { margin: 0 0 20px; color: var(--muted); max-width: 62ch; }

/* Last call */
main > .start { padding: 72px 0; }
.start-card { max-width: 720px; background: var(--card); border: 1px solid var(--rule); border-radius: 28px; padding: clamp(28px, 5vw, 56px); }
.start-card p { color: var(--muted); margin-top: 12px; font-size: 19px; }
.start-card .btn { margin-top: 28px; }

footer { padding: 32px 0 96px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--rule); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; }
footer .wrap > :first-child { margin-right: auto; }

/* Chat bubble (bottom right) */
.chat-open { position: fixed; right: calc(16px + env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 20; transform: translateZ(0); /* iPhone: stay above the home bar, no lag while scrolling */ display: flex; gap: 8px; align-items: center; min-height: 48px; padding: 0 20px; border: 0; border-radius: 980px; background: var(--blue); color: var(--on-blue); font: 600 15px/1 var(--sans); cursor: pointer; box-shadow: 0 8px 24px -8px rgba(0,0,0,.4); }
.chat-panel { position: fixed; right: calc(16px + env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 20; transform: translateZ(0); width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100dvh - 32px)); display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--rule); border-radius: 20px; box-shadow: 0 24px 48px -16px rgba(0,0,0,.45); overflow: hidden; padding: 0; }
.chat-panel[hidden], .chat-open[hidden] { display: none; }
.chat-panel header { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--rule); }
.chat-close { width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--wash); color: var(--ink); font-size: 20px; cursor: pointer; }
.chat-log { list-style: none; margin: 0; padding: 16px; flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.chat-log li { max-width: 85%; padding: 10px 14px; border-radius: 18px; font-size: 15px; line-height: 1.4; white-space: pre-wrap; }
.chat-log .bot { background: var(--bubble-ai); border-bottom-left-radius: 4px; }
.chat-log .me { background: var(--bubble-me); color: var(--on-blue); margin-left: auto; border-bottom-right-radius: 4px; }
.chat-log .typing, .chat-log .error { color: var(--muted); }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--rule); }
.chat-form input { flex: 1; min-width: 0; font: inherit; font-size: 16px; color: var(--ink); background: var(--wash); border: 1px solid var(--rule); border-radius: 980px; padding: 8px 14px; }
.chat-form .btn:disabled { opacity: .5; }
.chat-alt { margin: 0; padding: 0 16px 12px; font-size: 13px; color: var(--muted); text-align: center; }
