:root {
  --bg: #fffaf7; --surface: #ffffff; --alt: #fff1ea; --ink: #17202e; --muted: #5b6575; --line: #efe2da;
  --brand: #e5532d; --brand-ink: #ffffff; --brand-soft: #fde4da; --ok: #0f7b4d;
  --radius: 14px; --shadow: 0 10px 30px rgba(229, 83, 45, .10), 0 2px 6px rgba(23, 32, 46, .06);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #12100f; --surface: #1c1917; --alt: #211a17; --ink: #f3ece8; --muted: #b3a8a2; --line: #3a302b;
    --brand: #ff7a55; --brand-ink: #1a0f0b; --brand-soft: #3a2219; --ok: #5fd39b; --shadow: none; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #12100f; --surface: #1c1917; --alt: #211a17; --ink: #f3ece8; --muted: #b3a8a2; --line: #3a302b;
  --brand: #ff7a55; --brand-ink: #1a0f0b; --brand-soft: #3a2219; --ok: #5fd39b; --shadow: none; color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); line-height: 1.15; margin: 0 0 16px; letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0 0 8px; letter-spacing: -.01em; }
h3 { font-size: 1.08rem; margin: 10px 0 4px; }
.sub { color: var(--muted); margin: 0 0 28px; max-width: 640px; }

.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 62px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; color: var(--ink); text-decoration: none; }
.brand em { font-style: normal; color: var(--brand); }
.mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--brand); color: var(--brand-ink); font-size: 1.05rem; }
.nav nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.nav nav a:not(.btn) { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav nav a:not(.btn):hover { color: var(--ink); }

.btn { display: inline-block; background: var(--brand); color: var(--brand-ink); border: 2px solid var(--brand); border-radius: 999px; padding: 11px 24px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn:hover { filter: brightness(.95); }
.btn.ghost { background: transparent; color: var(--brand); }
.btn.small { padding: 7px 16px; font-size: .92rem; }
.btn:focus-visible, input:focus, textarea:focus, .tabs button:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 2px; }

.hero { padding: 56px 0 40px; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.eyebrow { color: var(--brand); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .82rem; margin: 0 0 10px; }
.lead { font-size: 1.12rem; color: var(--muted); margin: 0 0 24px; max-width: 560px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; color: var(--muted); }
.ticks li::before { content: "✓"; color: var(--ok); font-weight: 800; margin-right: 8px; }
.hero-art { position: relative; min-height: 420px; }
.hero-art .screen { position: absolute; right: 0; top: 30px; width: 88%; border-radius: 12px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.hero-art .phone { position: absolute; left: 0; bottom: 0; width: 38%; z-index: 2; border-radius: 22px; border: 6px solid #17202e; box-shadow: var(--shadow); }

.section { padding: 64px 0; }
.section.alt { background: var(--alt); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.tile p { color: var(--muted); margin: 0; font-size: .95rem; }
.ic { font-size: 1.6rem; }

.steps { list-style: none; counter-reset: s; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 6px; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font-weight: 800; }
.steps b { font-size: 1.1rem; }
.steps span { color: var(--muted); }

.tabs { display: inline-flex; gap: 4px; background: var(--alt); padding: 4px; border-radius: 999px; margin-bottom: 22px; flex-wrap: wrap; }
.tabs button { font: inherit; font-weight: 700; border: 0; background: transparent; color: var(--muted); padding: 8px 18px; border-radius: 999px; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--brand); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.panel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; max-width: 820px; }
.panel.wide { grid-template-columns: 1fr; max-width: 900px; }
.panel.wide.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.panel figure { margin: 0; }
.panel img { border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.panel figcaption { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 8px; }
.panel[hidden] { display: none; }

.who { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.who .sub { margin: 0; }

.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 36px; align-items: start; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
form label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 12px; }
form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
input, textarea { display: block; width: 100%; margin-top: 5px; font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
textarea { resize: vertical; }
form .check { display: flex; align-items: center; gap: 8px; font-weight: 600; }
form .check input { width: auto; margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.note { min-height: 1.5em; margin: 10px 0 0; font-weight: 600; }
.note.ok { color: var(--ok); }
.note.bad { color: var(--brand); }

.foot { border-top: 1px solid var(--line); padding: 22px 0; color: var(--muted); font-size: .9rem; }
.foot-in { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .hero-in, .contact { grid-template-columns: 1fr; }
  .hero-art { min-height: 340px; max-width: 520px; }
  .panel { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
}
@media (max-width: 560px) {
  .nav nav a:not(.btn) { display: none; }
  form .row { grid-template-columns: 1fr; }
  .panel.wide.two { grid-template-columns: 1fr; }
  .hero-art { min-height: 280px; }
  .section { padding: 48px 0; }
}

/* ───────── motion (in the spirit of the HostelMate page; off for "reduce motion") ───────── */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* header gets a shadow after scrolling; links underline; the Book a demo button gently pulses */
.nav { transition: box-shadow .3s, background .3s; }
.nav.scrolled { box-shadow: 0 6px 24px rgba(23, 32, 46, .08); }
.nav nav a:not(.btn) { position: relative; }
.nav nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.nav nav a:not(.btn):hover::after { transform: scaleX(1); }
.btn { transition: transform .2s, box-shadow .2s, filter .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px color-mix(in srgb, var(--brand) 30%, transparent); }
.nav .btn.small { animation: ring 2.8s 2s infinite; }
@keyframes ring { 0%, 70%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand) 45%, transparent); } 85% { box-shadow: 0 0 0 10px transparent; } }

/* hero: rolling word + highlighter stroke + text rising in */
.roller { display: inline-block; overflow: hidden; vertical-align: bottom; height: 1.15em; }
.roller span { display: inline-block; color: var(--brand); }
.roller span.out { animation: rollOut .35s ease forwards; }
.roller span.in { animation: rollIn .5s cubic-bezier(.2, .8, .2, 1); }
@keyframes rollOut { to { transform: translateY(-110%); opacity: 0; } }
@keyframes rollIn { from { transform: translateY(110%); opacity: 0; } }
.mark-word { font-style: normal; position: relative; white-space: nowrap; z-index: 0; }
.mark-word::after { content: ""; position: absolute; left: -2%; right: -2%; bottom: .08em; height: .22em; background: var(--brand); opacity: .28; z-index: -1; border-radius: 4px; transform: scaleX(0); transform-origin: left; animation: mark 1s .6s cubic-bezier(.2, .8, .2, 1) forwards; }
@keyframes mark { to { transform: scaleX(1); } }
.hero-text > * { animation: up .8s cubic-bezier(.2, .8, .2, 1) both; }
.hero-text > :nth-child(2) { animation-delay: .08s; }
.hero-text > :nth-child(3) { animation-delay: .16s; }
.hero-text > :nth-child(4) { animation-delay: .24s; }
.hero-text > :nth-child(5) { animation-delay: .32s; }
@keyframes up { from { opacity: 0; transform: translateY(18px); } }

/* hero scene: kitchen screen slides in, phone floats, QR card scans, order notifications rise */
.hero-art .screen { animation: slideIn 1s .2s cubic-bezier(.2, .8, .2, 1) both; }
.hero-art .phone { animation: phoneIn 1s .4s cubic-bezier(.2, .8, .2, 1) both, bob 6s 1.4s ease-in-out infinite; }
@keyframes slideIn { from { opacity: 0; transform: translateX(40px) rotate(2deg); } }
@keyframes phoneIn { from { opacity: 0; transform: translateY(60px) rotate(-4deg); } }
@keyframes bob { 50% { transform: translateY(-10px) rotate(-1deg); } }
.qr-card { position: absolute; left: 30%; top: 0; z-index: 3; width: 104px; padding: 10px 10px 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); text-align: center; overflow: hidden; animation: pop .6s 1s cubic-bezier(.3, 1.6, .5, 1) both; }
.qr-card .qr { width: 84px; height: 84px; display: block; margin: 0 auto 4px; background: #fff; padding: 4px; border-radius: 6px; }
.qr-card span { font-size: .78rem; font-weight: 700; color: var(--muted); }
.qr-card .scan { position: absolute; left: 6px; right: 6px; top: 10px; height: 3px; border-radius: 3px; background: var(--brand); box-shadow: 0 0 12px var(--brand); animation: scan 2.2s 1.6s ease-in-out infinite; }
@keyframes scan { 0%, 100% { transform: translateY(0); opacity: 0; } 10%, 90% { opacity: 1; } 50% { transform: translateY(84px); } }
@keyframes pop { from { opacity: 0; transform: scale(.4); } }
.toasts { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
.toast { position: absolute; left: 50%; display: flex; align-items: center; gap: 8px; background: var(--surface); color: var(--ink); font-weight: 700; font-size: .86rem; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); box-shadow: var(--shadow); white-space: nowrap; animation: rise 3.4s cubic-bezier(.2, .8, .2, 1) forwards; }
.toast b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-size: .8rem; }
.toast.ok b { background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); }
@keyframes rise { 0% { opacity: 0; transform: translate(-50%, 16px) scale(.85); } 12% { opacity: 1; transform: translate(-50%, 0) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -56px); } }

/* sections wipe in as they scroll into view (only with JS, so the page never stays hidden) */
.js [data-reveal] { clip-path: inset(0 0 100% 0); transform: translateY(24px); transition: clip-path .9s cubic-bezier(.2, .8, .2, 1), transform .9s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--d, 0s); }
.js [data-reveal="scale"] { clip-path: circle(0% at 50% 50%); transform: none; transition-duration: 1.1s; }
.js [data-reveal].in { clip-path: inset(-40px -40px -40px -40px); transform: none; }
.js [data-reveal="scale"].in { clip-path: circle(150% at 50% 50%); }

/* feature tiles: lift + a glow that follows the mouse + icon wiggle */
.tile { --mx: 50%; --my: 50%; position: relative; overflow: hidden; }
.js .tile[data-reveal] { transition: clip-path .9s cubic-bezier(.2, .8, .2, 1), transform .25s ease, box-shadow .3s; transition-delay: var(--d, 0s), 0s, 0s; }
.tile::before { content: ""; position: absolute; inset: 0; background: radial-gradient(300px circle at var(--mx) var(--my), color-mix(in srgb, var(--brand) 14%, transparent), transparent 60%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tile:hover::before { opacity: 1; }
.tile .ic { display: inline-block; transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.tile:hover .ic { transform: scale(1.2) rotate(-8deg); }

/* how it works: the connecting line draws, numbers pop one after another */
.steps { position: relative; }
.steps::after { content: ""; position: absolute; left: 36px; right: 36px; top: 37px; height: 3px; background: var(--brand); border-radius: 3px; transform: scaleX(0); transform-origin: left; transition: transform 1.4s .3s cubic-bezier(.2, .8, .2, 1); z-index: 0; opacity: .35; }
.steps.in::after, html:not(.js) .steps::after { transform: scaleX(1); }
.steps li { position: relative; z-index: 1; }
.js .steps li::before { transform: scale(0); transition: transform .5s cubic-bezier(.3, 1.6, .5, 1); }
.js .steps.in li::before { transform: scale(1); }
.js .steps.in li:nth-child(2)::before { transition-delay: .5s; }
.js .steps.in li:nth-child(3)::before { transition-delay: 1s; }

/* demo: screens slide up one after another when a tab opens */
.panel.show figure { animation: up .6s cubic-bezier(.2, .8, .2, 1) both; }
.panel.show figure:nth-child(2) { animation-delay: .1s; }
.panel.show figure:nth-child(3) { animation-delay: .2s; }
.panel img { transition: transform .35s ease, box-shadow .35s; }
.panel figure:hover img { transform: translateY(-6px); }

@media (max-width: 860px) {
  .steps::after { display: none; }
  .qr-card { left: auto; right: 4%; top: -10px; }
}
@media (max-width: 560px) {
  .qr-card { width: 84px; }
  .qr-card .qr { width: 64px; height: 64px; }
  .qr-card .scan { animation-name: scanSmall; }
}
@keyframes scanSmall { 0%, 100% { transform: translateY(0); opacity: 0; } 10%, 90% { opacity: 1; } 50% { transform: translateY(64px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { clip-path: none; transform: none; }
  .mark-word::after { transform: scaleX(1); }
  .toasts, .qr-card .scan { display: none; }
}
