/* Supi landing page. Shares the app palette (assets/app.css) but is a standalone document. */
:root {
    --bg: #f8f1de;
    --surface: #fffdf6;
    --text: #3c1b28;
    --muted: #7a5c68;
    --line: #e7dcc2;
    --primary: #81180f;
    --primary-dark: #6b130c;
    --primary-soft: #f6e2da;
    --amber: #b45309;
    --amber-soft: #f9ecd2;
    --blue: #1d4ed8;
    --blue-soft: #e2e9fc;
    --green: #15803d;
    --green-soft: #e0f3e7;
    --violet: #6d28d9;
    --violet-soft: #ede6fb;
    --ink: #2a0f18;
    --radius: 12px;
    --shadow: 0 1px 3px rgba(86, 39, 54, .10), 0 1px 2px rgba(86, 39, 54, .06);
    --shadow-lg: 0 24px 60px -24px rgba(86, 39, 54, .35);
    --display: "Young Serif", Georgia, serif;
    --body: "Figtree", "Helvetica Neue", Arial, sans-serif;
    --ease: cubic-bezier(.22, 1, .36, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.08; margin: 0; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 2 * clamp(16px, 4vw, 48px), 1180px); margin-inline: auto; }

/* ---------------- top bar */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; }
.top-inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand-mark { width: 26px; height: 26px; border-radius: 8px; background: var(--primary); position: relative; box-shadow: inset 0 -6px 0 rgba(0,0,0,.18); }
.brand-mark::after { content: ""; position: absolute; left: 7px; right: 7px; top: 10px; height: 3px; border-radius: 2px; background: var(--bg); box-shadow: 0 6px 0 var(--bg); }
.brand-name { font-family: var(--display); font-size: 1.45rem; }
.top-nav { display: flex; gap: clamp(14px, 2vw, 28px); }
.top-nav a { text-decoration: none; font-size: .95rem; color: var(--muted); }
.top-nav a:hover { color: var(--text); }
@media (max-width: 760px) { .top-nav { display: none; } }

/* ---------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 999px; font-weight: 600; font-size: .95rem; text-decoration: none; border: 1px solid transparent; transition: transform .3s var(--ease), background .25s, border-color .25s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: 15px 26px; font-size: 1.02rem; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { border-color: rgba(60, 27, 40, .3); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); }
.btn-light { background: var(--bg); color: var(--primary-dark); }
.btn-light:hover { background: #fff; }
.btn-outline-light { border-color: rgba(248, 241, 222, .45); color: var(--bg); }
.btn-outline-light:hover { border-color: var(--bg); }

/* ---------------- type helpers */
.eyebrow { font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--primary); font-weight: 600; margin-bottom: 14px; }
.lede { font-size: clamp(1.1rem, 1.5vw, 1.3rem); color: var(--muted); max-width: 46ch; }
/* Explicit margin: Chrome resolved the inherited `p { margin: 0 0 1em }` to 180px on this class,
   which pushed the checklists in the two-column sections far below the text. */
.body { color: var(--muted); font-size: 1.05rem; max-width: 56ch; margin: 0 0 1em; }
.small { font-size: .85rem; color: rgba(248, 241, 222, .65); margin: 18px 0 10px; }
h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); margin: 0 0 22px; }
h1 em { font-style: normal; color: var(--primary); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); margin-bottom: 16px; }
h3 { font-size: 1.3rem; margin-bottom: 8px; }

/* ---------------- hero */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 110px); position: relative; overflow: hidden; }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 940px) { .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 64px; } }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 30px 0 28px; }
.hero-facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; color: var(--muted); font-size: .95rem; }
.hero-facts li::before { content: "•"; color: var(--primary); margin-right: 10px; }
.hero-facts strong { color: var(--text); font-weight: 600; }

.hero-visual { position: relative; min-height: 380px; }
.glow { position: absolute; inset: 10% -10% -10% 10%; background: radial-gradient(closest-side, rgba(129, 24, 15, .14), transparent 70%); z-index: 0; }
.floor { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: min(100%, 380px); margin-left: auto; transform: rotate(-2deg); }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 12px; box-shadow: var(--shadow); display: grid; gap: 4px; }
.tile span { font-weight: 600; font-size: 1.05rem; }
.tile small { color: var(--muted); font-size: .78rem; }
.tile.busy { background: var(--amber-soft); border-color: #ecd3a6; }
.tile.ready { background: var(--green-soft); border-color: #bfe3cb; }
.tile.qr { background: var(--violet-soft); border-color: #d9ccf5; }
.ticket { position: absolute; z-index: 2; left: 0; bottom: -10px; width: min(88%, 330px); background: var(--surface); border-radius: 6px; box-shadow: var(--shadow-lg); padding: 16px 18px 14px; transform: rotate(2.5deg); border-top: 6px solid var(--primary); }
.ticket::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 8px; background: radial-gradient(circle at 6px -2px, transparent 6px, var(--surface) 7px) repeat-x; background-size: 14px 10px; }
.ticket-head { display: flex; justify-content: space-between; font-size: .85rem; color: var(--muted); margin-bottom: 10px; }
.ticket-table { font-weight: 700; color: var(--text); font-size: 1rem; }
.ticket-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .95rem; }
.ticket-lines li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ticket-lines small { color: var(--muted); font-style: italic; }
.ticket-lines .chip { margin-left: auto; }
.ticket-foot { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: .78rem; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.chip { font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; }
.chip-new { background: var(--amber-soft); color: var(--amber); }
.chip-prep { background: var(--blue-soft); color: var(--blue); }
.chip-ready { background: var(--green-soft); color: var(--green); }
@media (max-width: 939px) { .hero-visual { min-height: 420px; margin-top: 10px; } .floor { margin-left: 0; margin-right: auto; } .ticket { left: auto; right: 0; } }

/* ---------------- sections */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-dark { background: var(--ink); color: var(--bg); }
.section-dark .eyebrow { color: #e8a68f; }
.section-dark .body { color: rgba(248, 241, 222, .75); }
.section-dark h2 a { color: #f4c7b6; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.section-head { max-width: 60ch; margin-bottom: clamp(32px, 5vw, 56px); }

.features { display: grid; gap: 18px; }
@media (min-width: 700px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.feature-icon { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); font-size: 1.15rem; margin-bottom: 14px; }
.feature p { color: var(--muted); margin: 0; font-size: .98rem; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; counter-reset: s; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
.step { position: relative; padding: 26px 24px 24px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); }
.step-n { font-family: var(--display); color: var(--primary); font-size: 1.2rem; display: block; margin-bottom: 12px; }
.step p { color: var(--muted); margin: 0; font-size: .98rem; }

.guests-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .guests-grid { grid-template-columns: 1.1fr .9fr; gap: 72px; } }
.checklist { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; color: var(--text); }
.checklist li { padding-left: 28px; position: relative; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--green); font-weight: 700; }
.phone { width: 270px; margin: 0 auto; background: var(--ink); border-radius: 34px; padding: 14px; box-shadow: var(--shadow-lg); }
.phone-screen { background: var(--bg); border-radius: 24px; overflow: hidden; padding-bottom: 14px; }
.phone-bar { background: var(--primary); color: #fff; font-weight: 600; font-size: .85rem; padding: 14px 16px 10px; }
.phone-cat { font-family: var(--display); font-size: 1.05rem; padding: 14px 16px 6px; }
.phone-item { display: flex; justify-content: space-between; padding: 9px 16px; font-size: .9rem; border-bottom: 1px solid var(--line); }
.phone-cta { margin: 14px 16px 8px; background: var(--primary); color: #fff; text-align: center; border-radius: 999px; padding: 10px; font-weight: 600; font-size: .88rem; }
.phone-link { text-align: center; color: var(--muted); font-size: .8rem; }

/* AI agent section: a chat card, same card language as the ticket and phone mocks. */
.chat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 18px; display: grid; gap: 10px; width: min(100%, 420px); margin: 0 auto; font-size: .92rem; }
.chat-msg { padding: 11px 14px; border-radius: 14px; line-height: 1.45; }
.chat-msg.user { background: var(--primary); color: #fff; border-bottom-right-radius: 4px; justify-self: end; max-width: 88%; }
.chat-msg.agent { background: var(--bg); border: 1px solid var(--line); border-bottom-left-radius: 4px; justify-self: start; max-width: 92%; }
.chat-tool { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .74rem; color: var(--muted); padding: 0 6px; }
.chat-tool::before { content: "⚙ "; }

.contact-grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.15fr .85fr; gap: 72px; } }
.contact-card { background: rgba(248, 241, 222, .06); border: 1px solid rgba(248, 241, 222, .18); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); display: grid; gap: 10px; justify-items: start; }
.contact-card h3 { font-size: 1.5rem; }
.contact-card p { color: rgba(248, 241, 222, .78); }

/* ---------------- footer */
.foot { border-top: 1px solid var(--line); padding: 22px 0; font-size: .85rem; color: var(--muted); }
.foot-inner { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; }
.foot a { color: var(--text); }

/* ---------------- motion */
[data-stagger] > * { opacity: 0; transform: translateY(14px); animation: rise .8s var(--ease) forwards; }
[data-stagger] > *:nth-child(2) { animation-delay: .1s; }
[data-stagger] > *:nth-child(3) { animation-delay: .2s; }
[data-stagger] > *:nth-child(4) { animation-delay: .3s; }
[data-stagger] > *:nth-child(5) { animation-delay: .4s; }
.hero-visual { opacity: 0; animation: fade 1s var(--ease) .25s forwards; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes fade { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .reveal, [data-stagger] > *, .hero-visual { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; } }
