/* TouchMenu website. No build step, no external fonts or scripts. */
:root {
  --bg: #fbf8f6;
  --surface: #ffffff;
  --surface-2: #f4eee9;
  --text: #1f1a17;
  --muted: #6b605a;
  --line: #ece3dc;
  --primary: #b23a1e;
  --primary-hover: #962f17;
  --primary-ink: #ffffff;
  --primary-soft: #fbe9e3;
  --good: #2e7d32;
  --shadow: 0 1px 2px rgba(31, 26, 23, .06), 0 12px 32px rgba(31, 26, 23, .08);
  --radius: 14px;
  --max: 1120px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141110;
    --surface: #1e1918;
    --surface-2: #272120;
    --text: #f3ece8;
    --muted: #b3a69f;
    --line: #3a302c;
    --primary: #ff8a65;
    --primary-hover: #ffa488;
    --primary-ink: #2a120b;
    --primary-soft: #3a221b;
    --good: #81c784;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 750; }
h3 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: 20px; }
section { padding-block: clamp(56px, 8vw, 96px); }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow { display: inline-block; margin-bottom: 12px; color: var(--primary); font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: 12px;
  border: 1px solid transparent; font-weight: 700; font-size: 1rem;
  text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, transform .15s;
}
.btn-primary { background: var(--primary); color: var(--primary-ink); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--muted); }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.btn svg { width: 20px; height: 20px; }

/* Header */
.header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header .wrap { display: flex; align-items: center; gap: 24px; min-height: 66px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.15rem; }
.logo-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--primary); color: var(--primary-ink); }
.logo-mark svg { width: 20px; height: 20px; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; white-space: nowrap; }
.nav a:hover { color: var(--text); }
.header .btn { min-height: 40px; padding: 0 16px; white-space: nowrap; }
.menu-toggle { display: none; margin-left: auto; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); }
/* Longer languages (German, Russian…) need the room, so the menu folds up early. */
@media (max-width: 1180px) {
  .menu-toggle { display: grid; place-items: center; }
  .lang-menu { margin-left: auto; }
  .lang-menu ~ .menu-toggle { margin-left: 0; }
  .nav { display: none; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px 20px 16px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .nav a { padding: 12px 0; }
  body.menu-open .nav { display: flex; }
  .header .btn-primary { display: none; }
}

/* Hero */
.hero { padding-block: clamp(48px, 7vw, 88px) clamp(40px, 6vw, 72px); }
.hero .wrap { display: grid; grid-template-columns: 1.02fr 1.1fr; gap: 48px; align-items: center; }
.hero p.lead { font-size: 1.18rem; color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 0; margin: 0; list-style: none; color: var(--muted); font-size: .95rem; }
.checks li { display: inline-flex; align-items: center; gap: 6px; }
.checks svg { width: 18px; height: 18px; color: var(--good); flex: none; }
.hero-art { position: relative; }
.screen { border-radius: 12px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.screen img { width: 100%; height: auto; }
.phone {
  position: absolute; right: -8px; bottom: -36px; width: 34%; min-width: 150px; max-width: 210px;
  border: 8px solid #231c1a; border-radius: 28px; background: #fffaf5; box-shadow: var(--shadow); overflow: hidden;
  color: #1f1a17; font-size: 11px; line-height: 1.35;
}
.phone .bar { padding: 10px 10px 6px; font-weight: 800; font-size: 12px; }
.phone .bar small { display: block; color: #7a6f68; font-weight: 600; font-size: 10px; }
.phone .chips { display: flex; gap: 5px; padding: 0 10px 8px; }
.phone .chips span { padding: 3px 8px; border-radius: 10px; background: #efe6df; font-size: 9.5px; white-space: nowrap; }
.phone .chips span:first-child { background: #1f1a17; color: #fff; }
.phone .dish { display: flex; justify-content: space-between; gap: 8px; margin: 0 8px 7px; padding: 8px; border-radius: 10px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.phone .dish b { display: block; font-size: 11px; }
.phone .dish i { font-style: normal; color: #7a6f68; font-size: 9.5px; }
.phone .dish .thumb { flex: none; width: 34px; height: 34px; border-radius: 8px; background: linear-gradient(135deg, #f6d5c3, #e3a07a); }
.phone .dish:nth-child(4) .thumb { background: linear-gradient(135deg, #dfe6d0, #a2b585); }
.phone .dish:nth-child(5) .thumb { background: linear-gradient(135deg, #f4e3c1, #d6ae66); }
.phone .cart { margin: 8px; padding: 9px; border-radius: 12px; background: #b23a1e; color: #fff; text-align: center; font-weight: 800; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  /* Below the screenshot instead of over the text. */
  .phone { position: relative; right: auto; bottom: auto; width: 52%; margin: -48px 12px 0 auto; }
}

/* Logos strip / stats */
.strip { border-block: 1px solid var(--line); background: var(--surface); padding-block: 22px; }
.strip ul { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; list-style: none; margin: 0; padding: 0; text-align: center; }
.strip b { display: block; font-size: 1.05rem; }
.strip span { color: var(--muted); font-size: .9rem; }
@media (max-width: 720px) { .strip ul { grid-template-columns: repeat(2, 1fr); } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 28px 24px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 16px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-weight: 800; }
.step p { color: var(--muted); margin: 0; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.feature .icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 14px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); }
.feature .icon svg { width: 24px; height: 24px; }
.feature p { color: var(--muted); margin: 0; font-size: .97rem; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

/* Screenshots */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tab { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-weight: 700; font-size: .95rem; cursor: pointer; }
.tab[aria-selected="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }
.tour .screen { max-width: 1000px; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 28px 26px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.plan.featured { border: 2px solid var(--primary); box-shadow: var(--shadow); position: relative; }
.plan .badge { position: absolute; top: -13px; left: 26px; padding: 3px 12px; border-radius: 999px; background: var(--primary); color: var(--primary-ink); font-size: .8rem; font-weight: 800; }
.plan .price { margin: 10px 0 4px; font-size: 2.1rem; font-weight: 800; }
.plan .price .period { font-size: 1rem; color: var(--muted); font-weight: 600; margin-left: 2px; }
.plan .price .soon { font-size: 1.3rem; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 18px 0 26px; display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; }
.plan li svg { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--good); }
.plan .btn { margin-top: auto; }
.plans-note { margin-top: 18px; text-align: center; color: var(--muted); font-size: .93rem; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 32px 16px 0; font-weight: 700; font-size: 1.05rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 1.5rem; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 0 0 16px; }

/* CTA + footer */
.cta { text-align: center; }
.cta .box { padding: clamp(36px, 6vw, 64px) 24px; border-radius: 22px; background: var(--surface-2); border: 1px solid var(--line); }
.cta .hero-actions { justify-content: center; margin-bottom: 0; }
.footer { border-top: 1px solid var(--line); padding-block: 36px; color: var(--muted); font-size: .93rem; }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--text); }

/* Plain pages (download, legal) */
.page { padding-block: 48px 72px; }
.page .wrap { max-width: 820px; }
.page h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.page h2 { font-size: 1.35rem; margin-top: 1.8em; }
.page li { margin-bottom: .4em; }
.card { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); margin: 20px 0; }
.draft { padding: 14px 18px; border-radius: 12px; background: #fff3e0; color: #7a3d00; margin-bottom: 28px; font-size: .95rem; }
@media (prefers-color-scheme: dark) { .draft { background: #3a2a14; color: #ffd8a8; } }
ol.install { padding-left: 1.3em; }
ol.install li { margin-bottom: .8em; }

/* Language menu and hint */
.lang-menu { position: relative; }
.lang-menu summary {
  display: inline-flex; align-items: center; gap: 6px; list-style: none; cursor: pointer;
  min-height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); font-weight: 600; font-size: .92rem;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary svg { width: 18px; height: 18px; color: var(--muted); }
.lang-list {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; display: grid; min-width: 180px; padding: 6px;
  border-radius: 12px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow);
}
.lang-list a { padding: 9px 12px; border-radius: 8px; color: var(--text); text-decoration: none; }
.lang-list a:hover { background: var(--surface-2); }
.lang-list a[aria-current] { color: var(--primary); font-weight: 700; }
.lang-hint { background: var(--primary-soft); border-bottom: 1px solid var(--line); }
.lang-hint .wrap { display: flex; align-items: center; gap: 12px; min-height: 52px; font-weight: 600; }
.lang-hint span { flex: 1; }
.lang-hint .btn { min-height: 36px; padding: 0 14px; }
.lang-hint button { width: 36px; height: 36px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 1.4rem; cursor: pointer; }
@media (max-width: 820px) {
  .lang-menu summary span { display: none; }
  .lang-menu { margin-left: auto; }
  .lang-menu ~ .menu-toggle { margin-left: 0; }
}

/* Sections appear as they come into view */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.features .reveal:nth-child(3n+2), .steps .reveal:nth-child(2), .plans .reveal:nth-child(2) { transition-delay: .08s; }
.features .reveal:nth-child(3n), .steps .reveal:nth-child(3), .plans .reveal:nth-child(3) { transition-delay: .16s; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* Live demo */
.demo { background: var(--surface-2); border-block: 1px solid var(--line); }
.demo-grid { display: grid; grid-template-columns: auto minmax(0, 420px); gap: 40px; justify-content: center; align-items: start; }
.device {
  width: 360px; height: min(720px, calc(100vh - 110px)); min-height: 560px; padding: 12px; border-radius: 44px; background: #231c1a;
  box-shadow: 0 30px 60px rgba(31, 26, 23, .25), inset 0 0 0 2px #3b302c;
}
.device iframe { width: 100%; height: 100%; border: 0; border-radius: 32px; background: #fffaf5; }
.board { padding: 22px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.board-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.board-head svg { width: 24px; height: 24px; color: var(--primary); }
.board-head b { font-size: 1.15rem; }
.live { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; color: var(--good); font-size: .85rem; font-weight: 700; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--good); animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--good) 60%, transparent); } 100% { box-shadow: 0 0 0 10px transparent; } }
.board-list { display: grid; gap: 10px; min-height: 260px; margin: 0 0 14px; padding: 0; list-style: none; }
.board-empty { display: grid; place-items: center; min-height: 240px; padding: 20px; border: 2px dashed var(--line); border-radius: 14px; color: var(--muted); text-align: center; }
.board-card { padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); animation: slide-in .35s ease; }
.board-card.request { border-style: dashed; }
.bc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.board-card ul { margin: 6px 0 0; padding: 0; list-style: none; color: var(--muted); }
.chip { padding: 2px 10px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-size: .8rem; font-weight: 800; }
.board-card[data-status="accepted"] .chip { background: #e3f2fd; color: #0d47a1; }
.board-card[data-status="preparing"] .chip { background: #fff3e0; color: #b45309; }
.board-card[data-status="ready"] .chip { background: #e8f5e9; color: #1b5e20; }
.board-card[data-status="served"] { opacity: .6; }
.board-card[data-status="served"] .chip { background: var(--surface-2); color: var(--muted); }
.board-card.flash { animation: flash .6s ease; }
@keyframes slide-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes flash { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--primary) 45%, transparent); } 100% { box-shadow: 0 0 0 12px transparent; } }
.board-note { margin: 0; color: var(--muted); font-size: .88rem; }
@media (max-width: 860px) {
  .demo-grid { grid-template-columns: 1fr; justify-items: center; }
  .board { width: 100%; max-width: 420px; }
  .board-list { min-height: 0; }
  .board-empty { min-height: 120px; }
}
@media (max-width: 400px) { .device { width: 100%; height: 640px; border-radius: 36px; } }

/* Plans: check marks and the comparison table */
.plan li::before {
  content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px;
  background: var(--good);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.pricing { background: var(--surface-2); border-block: 1px solid var(--line); }
.demo + #features { border-top: 0; }
.compare { max-width: 920px; margin: 28px auto 0; }
.compare summary { display: block; width: fit-content; margin: 0 auto; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; cursor: pointer; list-style: none; }
.compare summary::-webkit-details-marker { display: none; }
.compare[open] summary { margin-bottom: 18px; }
.compare-scroll { overflow-x: auto; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.compare table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .95rem; }
.compare th, .compare td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: center; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare th[scope="row"] { text-align: left; font-weight: 600; }
.compare thead th { background: var(--surface-2); font-weight: 800; }
.compare td.y, .compare td.n { font-size: 0; }
.compare td.y::before { content: "✓"; font-size: 1.1rem; font-weight: 800; color: var(--good); }
.compare td.n::before { content: "–"; font-size: 1.1rem; color: var(--muted); }
.compare th[scope="row"] { position: sticky; left: 0; z-index: 1; background: var(--surface); }
.compare thead th:first-child { position: sticky; left: 0; z-index: 2; }
@media (max-width: 600px) {
  .compare table { min-width: 460px; font-size: .88rem; }
  .compare th, .compare td { padding: 10px 10px; }
  .compare th[scope="row"] { width: 44%; box-shadow: 1px 0 0 var(--line); }
}

.footer-note { flex-basis: 100%; margin: 0; font-size: .85rem; }
.footer-note:empty { display: none; }
