/* ManageRestaurant website
 * genre: modern-minimal · type: Space Grotesk (owner's choice, self-hosted) · paper warm white, ink charcoal-green,
 * accent kitchen green, highlight saffron · signature: a live kitchen ticket ticking on top of the real dashboard */
@font-face{font-family:"Space Grotesk";font-style:normal;font-weight:400;font-display:swap;src:url(fonts/space-grotesk-latin-400-normal.woff2) format("woff2")}
@font-face{font-family:"Space Grotesk";font-style:normal;font-weight:500;font-display:swap;src:url(fonts/space-grotesk-latin-500-normal.woff2) format("woff2")}
@font-face{font-family:"Space Grotesk";font-style:normal;font-weight:600;font-display:swap;src:url(fonts/space-grotesk-latin-600-normal.woff2) format("woff2")}
@font-face{font-family:"Space Grotesk";font-style:normal;font-weight:700;font-display:swap;src:url(fonts/space-grotesk-latin-700-normal.woff2) format("woff2")}

:root {
  --paper: #FBFAF6; --paper-2: #F2F1EB; --card: #FFFFFF; --rule: #E3E2DA;
  --ink: #17201C; --ink-2: #3E4742; --muted: #5E6862;
  --accent: #1E6A4C; --accent-2: #175A3F; --accent-soft: #E2EFE8; --saffron: #F2B441; --saffron-soft: #FCF0D6;
  --late: #B42318; --dark: #141A17; --dark-2: #1F2723; --dark-ink: #E8ECE9; --dark-ink-2: #AEB8B2;
  --font: "Space Grotesk", Arial, sans-serif;
  --container: 1240px; --r: 14px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.02em; line-height: 1.06; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 4.6vw + 0.6rem, 4.6rem); max-width: 14ch; }
h2 { font-size: clamp(2rem, 2.4vw + 1rem, 3.2rem); max-width: 22ch; }
h3 { font-size: 1.2rem; line-height: 1.25; letter-spacing: -0.01em; }
p { margin: 0; }
.lead { font-size: clamp(1.1rem, 0.4vw + 1rem, 1.3rem); color: var(--ink-2); max-width: 54ch; }
.eyebrow { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.num { font-variant-numeric: tabular-nums; }
.wrap { max-width: var(--container); margin: 0 auto; padding-inline: max(20px, env(safe-area-inset-left, 0px)) max(20px, env(safe-area-inset-right, 0px)); }
.section { padding-block: clamp(64px, 8vw, 104px); }
.section--band { background: var(--paper-2); }
.section-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: clamp(32px, 4vw, 52px); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip { position: absolute; left: 16px; top: -80px; z-index: 50; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 12px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); font: 600 1rem var(--font); text-decoration: none; cursor: pointer; transition: background-color .2s var(--ease), transform .12s ease, border-color .2s; }
.btn:hover { background: var(--card); }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn--small { min-height: 42px; padding: 0 16px; font-size: 0.95rem; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* header */
.bar { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.bar.scrolled { border-bottom-color: var(--rule); }
.bar .wrap { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand svg { flex: none; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: 0.97rem; }
.nav a:hover { background: var(--paper-2); color: var(--ink); }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border: 1.5px solid var(--rule); border-radius: 10px; background: var(--card); cursor: pointer; align-items: center; justify-content: center; }
@media (max-width: 960px) {
  .nav { display: none; position: absolute; left: 0; right: 0; top: 72px; flex-direction: column; padding: 12px 20px 20px; background: var(--paper); border-bottom: 1px solid var(--rule); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 12px; font-size: 1.05rem; }
  .menu-btn { display: inline-flex; }
  .bar .btn--primary { display: none; }
}

/* hero */
.hero { padding-block: clamp(40px, 6vw, 80px) clamp(56px, 7vw, 96px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero-note { font-size: 0.95rem; color: var(--muted); }
.stage { position: relative; }
.frame { background: var(--card); border: 1px solid var(--rule); border-radius: 16px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(23, 32, 28, .35); }
.frame-bar { display: flex; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--rule); background: var(--paper-2); }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--rule); }
.ticket { position: absolute; left: -28px; bottom: -26px; width: 230px; background: var(--card); border-radius: 14px; border: 1px solid var(--rule); box-shadow: 0 24px 40px -18px rgba(23, 32, 28, .4); overflow: hidden; font-size: 0.9rem; }
.ticket-h { display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; background: var(--late); color: #fff; font-weight: 700; }
.ticket ul { list-style: none; margin: 0; padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 5px; }
.ticket li b { display: inline-block; width: 24px; }
.ticket em { display: block; font-style: normal; font-size: 0.78rem; font-weight: 700; color: var(--late); padding-left: 24px; }
.phone { position: absolute; right: -14px; top: -30px; width: 150px; border: 6px solid var(--dark); border-radius: 26px; overflow: hidden; box-shadow: 0 24px 40px -18px rgba(23, 32, 28, .45); background: var(--dark); }
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .ticket { left: 8px; bottom: -22px; width: 200px; }
  .phone { display: none; }
}

/* figures */
.figures { border-block: 1px solid var(--rule); }
.figures-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.figure { padding: 28px 24px; display: flex; flex-direction: column; gap: 6px; border-left: 1px solid var(--rule); }
.figure:first-child { border-left: 0; padding-left: 0; }
.figure b { font-size: clamp(2rem, 2vw + 1rem, 2.8rem); letter-spacing: -0.03em; line-height: 1; }
.figure span { color: var(--ink-2); font-size: 0.97rem; }
.for-line { padding-block: 18px 26px; color: var(--muted); font-size: 0.97rem; }
@media (max-width: 760px) {
  .figures-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figure { padding: 20px 16px; }
  .figure:nth-child(odd) { border-left: 0; padding-left: 0; }
  .figure:nth-child(n+3) { border-top: 1px solid var(--rule); }
}

/* tour */
.tour { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 32px; align-items: start; }
.tabs { display: flex; flex-direction: column; gap: 4px; }
.tab { display: flex; gap: 14px; align-items: baseline; width: 100%; padding: 14px 16px; border: 0; border-radius: 12px; background: transparent; text-align: left; font: inherit; color: var(--ink-2); cursor: pointer; transition: background-color .2s; }
.tab:hover { background: var(--paper-2); }
.tab[aria-selected="true"] { background: var(--card); color: var(--ink); box-shadow: inset 3px 0 0 var(--accent), 0 1px 2px rgba(23, 32, 28, .08); }
.tab .t { font-size: 0.85rem; font-weight: 600; color: var(--muted); width: 72px; flex: none; font-variant-numeric: tabular-nums; }
.tab b { font-weight: 600; }
.panel { display: flex; flex-direction: column; gap: 20px; animation: fade .35s var(--ease); }
.panel[hidden] { display: none; }
.panel-copy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.panel h3 { font-size: 1.5rem; }
.ticks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; color: var(--ink-2); }
.ticks li { display: flex; gap: 10px; }
.ticks li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%231E6A4C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
@keyframes fade { from { opacity: .3; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (max-width: 960px) {
  .tour { grid-template-columns: 1fr; }
  .tabs { flex-direction: row; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
  .tab { flex-direction: column; gap: 2px; width: auto; min-width: 128px; }
  .tab[aria-selected="true"] { box-shadow: inset 0 -3px 0 var(--accent); }
  .panel-copy { grid-template-columns: 1fr; }
}

/* features */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.feature .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.feature p { color: var(--ink-2); font-size: 0.97rem; }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

/* security */
.split { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.split .ticks { gap: 14px; font-size: 1.02rem; }
.split .ticks b { color: var(--ink); }
.matrix-box { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); overflow-x: auto; }
.matrix { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 0.95rem; }
.matrix th, .matrix td { padding: 12px 14px; border-bottom: 1px solid var(--rule); text-align: center; }
.matrix th:first-child, .matrix td:first-child { text-align: left; }
.matrix thead th { font-size: 0.78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.matrix tr:last-child td { border-bottom: 0; }
.yes, .pin, .no { display: inline-block; font-size: 0.8rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.yes { background: var(--accent-soft); color: var(--accent-2); }
.pin { background: var(--saffron-soft); color: #6B4A08; }
.no { color: var(--muted); font-weight: 500; }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; } }

/* pricing */
.cycle { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--card); border: 1px solid var(--rule); align-self: flex-start; }
.cycle button { min-height: 40px; padding: 0 16px; border: 0; border-radius: 9px; background: transparent; font: 600 0.95rem var(--font); color: var(--ink-2); cursor: pointer; }
.cycle button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.plan { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.plan.pick { border: 2px solid var(--accent); }
.plan .badge { align-self: flex-start; font-size: 0.78rem; font-weight: 700; color: var(--accent-2); background: var(--accent-soft); padding: 4px 10px; border-radius: 999px; }
.plan .for { color: var(--muted); font-size: 0.95rem; }
.price { font-size: 2.4rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.price small { font-size: 0.95rem; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.plan .ticks { font-size: 0.95rem; flex: 1 1 auto; }
.fine { margin-top: 22px; color: var(--muted); font-size: 0.95rem; }
@media (max-width: 1100px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .plans { grid-template-columns: 1fr; } }

/* faq */
.faq { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; }
.faq .section-head { align-items: center; text-align: center; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font-weight: 600; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 1.5rem; font-weight: 400; color: var(--accent); transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--ink-2); max-width: 70ch; }

/* demo form */
.demo-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.demo-form { background: var(--card); border: 1px solid var(--rule); border-radius: 18px; padding: clamp(20px, 3vw, 32px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.f { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.f.full { grid-column: 1 / -1; }
.f label { font-size: 0.9rem; font-weight: 600; color: var(--ink-2); }
.f input, .f select, .f textarea { width: 100%; min-height: 48px; padding: 0 14px; border: 1.5px solid var(--rule); border-radius: 10px; background: var(--paper); font: 400 1rem var(--font); color: var(--ink); }
.f textarea { padding: 12px 14px; min-height: 96px; resize: vertical; }
.f input:focus, .f select:focus, .f textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.f .err { color: var(--late); font-size: 0.85rem; min-height: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { grid-column: 1 / -1; font-weight: 600; }
.form-status.ok { color: var(--accent-2); }
.form-status.bad { color: var(--late); }
.demo-copy { display: flex; flex-direction: column; gap: 18px; }
@media (max-width: 960px) { .demo-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .demo-form { grid-template-columns: 1fr; } }

/* footer */
.foot { background: var(--dark); color: var(--dark-ink); padding-block: 56px 32px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot p { color: var(--dark-ink-2); font-size: 0.95rem; max-width: 36ch; margin-top: 12px; }
.foot h2 { font-size: 0.8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--dark-ink-2); margin-bottom: 12px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.foot a { color: var(--dark-ink); text-decoration: none; }
.foot a:hover { text-decoration: underline; text-decoration-color: var(--saffron); text-underline-offset: 3px; }
.foot-base { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--dark-2); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--dark-ink-2); font-size: 0.9rem; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }

/* reveal on scroll: visible by default, animated only when JS runs */
.js .rise { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .rise.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .rise { opacity: 1; transform: none; }
}

.link { color: var(--accent-2); font-weight: 600; text-decoration: underline; text-decoration-color: var(--saffron); text-underline-offset: 3px; }
