/* TableBaba marketing site — plain CSS, no build step. */
:root {
  --red: #D32F2F;
  --red-dark: #B71C1C;
  --red-soft: #FDECEC;
  --slate: #263238;
  --slate-2: #455A64;
  --muted: #5F6B72;
  --yellow: #FFC21A;
  --yellow-soft: #FFF6D9;
  --bg: #FFFFFF;
  --bg-alt: #F7F8FA;
  --line: #E6E9EC;
  --ok: #2E7D32;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(38, 50, 56, .08);
  --shadow-lg: 0 24px 60px rgba(38, 50, 56, .16);
  --wrap: 1160px;
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--slate);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--red); }
a:hover { color: var(--red-dark); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; color: var(--slate); }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 6px; }
[id] { scroll-margin-top: 84px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
.section-head p { color: var(--muted); }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--red); background: var(--red-soft);
  padding: 4px 12px; border-radius: 999px; margin-bottom: 14px;
}
.hl { color: var(--red); }
.skip-link {
  position: absolute; left: -9999px; top: 8px; background: var(--slate); color: #fff;
  padding: 8px 14px; border-radius: 8px; z-index: 1000;
}
.skip-link:focus { left: 8px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 .95rem/1 var(--font); padding: 13px 22px; border-radius: 10px;
  border: 2px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 8px 20px rgba(211, 47, 47, .28); }
.btn-primary:hover { background: var(--red-dark); color: #fff; }
.btn-dark { background: var(--slate); color: #fff; }
.btn-dark:hover { background: #1b2428; color: #fff; }
.btn-outline { background: #fff; color: var(--slate); border-color: var(--line); }
.btn-outline:hover { border-color: var(--slate); color: var(--slate); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(160%) blur(8px); -webkit-backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 4px 18px rgba(38, 50, 56, .06); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 70px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--slate); }
.logo svg { width: 36px; height: 36px; }
.logo-text { font-size: 1.35rem; font-weight: 700; letter-spacing: -.01em; }
.logo-text span { color: var(--red); }
.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; }
.main-nav a { color: var(--slate); text-decoration: none; font-weight: 500; font-size: .95rem; }
.main-nav a:hover { color: var(--red); }
.header-cta { display: flex; gap: 10px; }
.header-cta .btn { padding: 10px 16px; font-size: .9rem; }
.nav-toggle {
  display: none; margin-left: auto; background: none; border: 0; padding: 8px; cursor: pointer;
  color: var(--slate); border-radius: 8px;
}
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .main-nav, .header-cta { display: none; }
  .site-header.open .main-nav,
  .site-header.open .header-cta { display: block; }
  .site-header.open .header-inner { flex-wrap: wrap; height: auto; padding-top: 14px; padding-bottom: 16px; }
  .site-header.open .main-nav { order: 3; width: 100%; margin: 0; }
  .site-header.open .main-nav ul { flex-direction: column; gap: 0; }
  .site-header.open .main-nav a { display: block; padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .site-header.open .header-cta { order: 4; width: 100%; display: flex; flex-wrap: wrap; }
  .site-header.open .header-cta .btn { flex: 1 1 140px; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 80px;
  background:
    radial-gradient(900px 400px at 85% -10%, var(--yellow-soft), transparent 70%),
    radial-gradient(700px 360px at -10% 110%, var(--red-soft), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.3rem); font-weight: 700; letter-spacing: -.02em; }
.hero h1 .underline {
  background: linear-gradient(transparent 62%, var(--yellow) 62%, var(--yellow) 90%, transparent 90%);
}
.hero-sub { font-size: 1.1rem; color: var(--slate-2); max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.trust { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 20px; padding: 0; margin: 0; }
.trust li { display: inline-flex; align-items: center; gap: 8px; font-size: .92rem; font-weight: 500; color: var(--slate-2); }
.trust svg { width: 20px; height: 20px; color: var(--ok); flex: none; }

/* ---------- Mock POS (pure HTML/CSS) ---------- */
.mock {
  background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden;
  border: 1px solid var(--line); font-size: 12px; transform: perspective(1400px) rotateY(-4deg);
}
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--slate); color: #fff; }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; display: inline-block; }
.mock-bar i:nth-child(2) { background: #febc2e; }
.mock-bar i:nth-child(3) { background: #28c840; }
.mock-bar b { margin-left: 10px; font-weight: 600; font-size: 12px; }
.mock-bar .mock-status { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 11px; opacity: .9; }
.mock-bar .mock-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #4CAF50; }
.mock-body { display: grid; grid-template-columns: 1.4fr 1fr; min-height: 330px; }
.mock-menu { padding: 12px; background: var(--bg-alt); }
.mock-tabs { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.mock-tabs span { padding: 4px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 500; }
.mock-tabs span.on { background: var(--red); color: #fff; border-color: var(--red); }
.mock-items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mock-item {
  background: #fff; border-radius: 10px; padding: 10px 8px; border: 1px solid var(--line);
  border-left: 4px solid var(--red); min-height: 58px;
}
.mock-item.veg { border-left-color: var(--ok); }
.mock-item b { display: block; font-weight: 600; font-size: 11.5px; line-height: 1.25; }
.mock-item small { color: var(--muted); }
.mock-cart { padding: 12px; display: flex; flex-direction: column; border-left: 1px solid var(--line); }
.mock-cart h4 { font-size: 12px; margin: 0 0 8px; display: flex; justify-content: space-between; }
.mock-cart h4 small { color: var(--muted); font-weight: 500; }
.mock-line { display: grid; grid-template-columns: 1fr 28px 40px; gap: 6px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.mock-line span:last-child { text-align: right; }
.mock-line span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock-line em { font-style: normal; color: var(--muted); }
.mock-total {
  margin-top: auto; background: var(--yellow); border-radius: 10px; padding: 10px 12px;
  display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 15px;
}
.mock-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; }
.mock-btns span { text-align: center; padding: 7px; border-radius: 8px; font-weight: 600; background: var(--slate); color: #fff; }
.mock-btns span + span { background: var(--red); }

/* ---------- Features ---------- */
.grid { display: grid; gap: 20px; }
.features-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.card p { color: var(--muted); font-size: .93rem; margin: 0; }
.icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: var(--red-soft); color: var(--red); margin-bottom: 16px;
}
.icon svg { width: 26px; height: 26px; }
.icon.y { background: var(--yellow-soft); color: #9A6B00; }
.icon.s { background: #ECEFF1; color: var(--slate); }

/* ---------- Formats ---------- */
.formats-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.format {
  text-align: center; padding: 28px 16px; border-radius: var(--radius); background: #fff;
  border: 1px solid var(--line); transition: transform .2s, box-shadow .2s;
}
.format:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.format .icon { margin: 0 auto 14px; width: 64px; height: 64px; border-radius: 50%; }
.format .icon svg { width: 32px; height: 32px; }
.format h3 { font-size: 1rem; margin: 0 0 4px; }
.format p { font-size: .85rem; color: var(--muted); margin: 0; }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 28px 22px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.step-num {
  width: 44px; height: 44px; border-radius: 50%; background: var(--red); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 1.1rem; margin-bottom: 14px;
}
.step h3 { font-size: 1.05rem; }
.step p { color: var(--muted); font-size: .92rem; margin: 0; }

/* ---------- Pricing ---------- */
.pricing-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
.plan { display: flex; flex-direction: column; position: relative; padding: 32px 26px; }
.plan.featured { border: 2px solid var(--red); box-shadow: var(--shadow); }
.plan .badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--yellow);
  color: var(--slate); font-size: .75rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; white-space: nowrap;
}
.plan h3 { font-size: 1.2rem; }
.plan .for { color: var(--muted); font-size: .9rem; min-height: 2.8em; }
.price { font-size: 2.2rem; font-weight: 700; margin: 8px 0 18px; color: var(--slate); }
.price small { font-size: .9rem; font-weight: 500; color: var(--muted); }
.price-ask { font-size: 1.25rem; color: var(--red, #D32F2F); }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.plan li { display: flex; gap: 10px; padding: 6px 0; font-size: .93rem; }
.plan li svg { width: 18px; height: 18px; color: var(--ok); flex: none; margin-top: 3px; }
.pricing-note { text-align: center; color: var(--muted); font-size: .88rem; margin-top: 24px; }

/* ---------- Download ---------- */
.download-grid { grid-template-columns: repeat(2, 1fr); max-width: 900px; margin: 0 auto; }
.dl { padding: 32px; display: flex; flex-direction: column; }
.dl-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.dl-head .icon { margin: 0; }
.dl-head h3 { margin: 0; }
.dl-head p { margin: 0; font-size: .85rem; color: var(--muted); }
.req { list-style: none; padding: 0; margin: 0 0 22px; flex: 1; }
.req li { padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: .92rem; display: flex; justify-content: space-between; gap: 12px; }
.req li span:first-child { color: var(--muted); }
.req li span:last-child { text-align: right; }
.install-note {
  max-width: 900px; margin: 24px auto 0; background: var(--yellow-soft); border: 1px solid #F5DE97;
  border-radius: 12px; padding: 14px 18px; display: flex; gap: 12px; align-items: flex-start; font-size: .95rem;
}
.install-note svg { width: 22px; height: 22px; flex: none; color: #9A6B00; margin-top: 2px; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; background: #fff; overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; padding: 18px 20px; cursor: pointer;
  font: 600 1rem/1.4 var(--font); color: var(--slate); display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq-q svg { width: 20px; height: 20px; flex: none; transition: transform .25s ease; color: var(--red); }
.faq-q[aria-expanded="true"] svg { transform: rotate(45deg); }
.faq-a { padding: 0 20px 18px; color: var(--slate-2); }
.faq-a p { margin: 0; }
.faq-a[hidden] { display: none; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: start; }
.contact-info h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
.contact-info p { color: var(--slate-2); }
.contact-lines { list-style: none; padding: 0; margin: 24px 0 0; }
.contact-lines li { display: flex; gap: 12px; align-items: center; padding: 10px 0; }
.contact-lines .icon { margin: 0; width: 42px; height: 42px; }
.contact-lines .icon svg { width: 22px; height: 22px; }
.contact-lines small { display: block; color: var(--muted); font-size: .8rem; }
.contact-placeholder { font-weight: 600; }
.form-card { padding: 30px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 500; font-size: .9rem; margin-bottom: 6px; }
.field label .req-star { color: var(--red); }
.field input, .field textarea {
  width: 100%; font: 400 1rem/1.4 var(--font); color: var(--slate); padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: 10px; background: #fff; transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(211, 47, 47, .15); }
.field.invalid input, .field.invalid textarea { border-color: var(--red); }
.field-error { color: var(--red-dark); font-size: .82rem; margin-top: 4px; display: none; }
.field.invalid .field-error { display: block; }
.phone-wrap { display: flex; }
.phone-wrap span {
  padding: 12px 12px; border: 1.5px solid var(--line); border-right: 0; border-radius: 10px 0 0 10px;
  background: var(--bg-alt); color: var(--muted); font-weight: 500;
}
.phone-wrap input { border-radius: 0 10px 10px 0; }
.form-status { margin-top: 14px; padding: 12px 14px; border-radius: 10px; font-size: .93rem; display: none; }
.form-status.ok { display: block; background: #E8F5E9; color: #1B5E20; border: 1px solid #A5D6A7; }
.form-status.err { display: block; background: var(--red-soft); color: var(--red-dark); border: 1px solid #F3B4B4; }
.form-fine { font-size: .8rem; color: var(--muted); margin: 10px 0 0; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--slate); color: #fff; border-radius: 20px; padding: 40px; display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 6px; font-size: clamp(1.4rem, 3vw, 1.9rem); }
.cta-band p { margin: 0; color: #CFD8DC; }
.cta-band .actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: #1C2529; color: #B0BEC5; padding: 56px 0 24px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.site-footer .logo { color: #fff; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 4px 0; }
.site-footer a { color: #B0BEC5; text-decoration: none; font-size: .92rem; }
.site-footer a:hover { color: #fff; }
.footer-about { font-size: .92rem; margin-top: 12px; max-width: 320px; }
.footer-bottom { border-top: 1px solid #2F3B40; margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .85rem; }

/* ---------- Legal pages ---------- */
.legal { max-width: 800px; padding: 56px 16px 80px; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.legal h2 { font-size: 1.2rem; margin-top: 1.8em; }
.legal p, .legal li { color: var(--slate-2); }
.legal .updated { color: var(--muted); font-size: .9rem; }
.placeholder-note { background: var(--yellow-soft); border: 1px solid #F5DE97; border-radius: 10px; padding: 12px 16px; font-size: .92rem; }

/* ---------- Scroll animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
  .mock { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .contact-grid { grid-template-columns: 1fr; }
  .mock { transform: none; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .hero { padding: 36px 0 56px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .download-grid, .form-row, .steps { grid-template-columns: 1fr; }
  .mock-body { grid-template-columns: 1fr; }
  .mock-cart { border-left: 0; border-top: 1px solid var(--line); }
  .mock-items { grid-template-columns: repeat(2, 1fr); }
  .dl, .form-card { padding: 22px; }
  .cta-band { padding: 28px 22px; }
  .footer-grid { grid-template-columns: 1fr; }
  .logo-text { font-size: 1.2rem; }
}
