/* menucostly.shop: one stylesheet for the front page, the account pages and the app. Phone first. */
:root {
  --accent: #A8611C;
  --accent-dark: #8A4E14;
  --accent-soft: #F6ECE1;
  --ink: #1F1B16;
  --muted: #5F574E;
  --line: #E6DED2;
  --paper: #FFFFFF;
  --tint: #F7F1E8;
  --card: #FFFFFF;
  --up: #A33A1F;
  --up-soft: #FBEAE4;
  --down: #2F6B45;
  --down-soft: #E6F2EA;
  --radius: 14px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
figure { margin: 0; }
h1, h2, h3, summary { text-wrap: balance; }
p, li, figcaption, td small { text-wrap: pretty; }
.tinted { background: var(--tint); }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper); line-height: 1.6; font-size: 16px; }
img { max-width: 100%; display: block; }
a { color: var(--accent-dark); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 6vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); font-weight: 750; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
.num, table { font-variant-numeric: tabular-nums; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(720px, 100% - 40px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: .7em 1.4em; border-radius: 999px; border: 2px solid var(--accent); background: var(--accent); color: #fff; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s; }
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn.ghost { background: transparent; color: var(--accent-dark); }
.btn.ghost:hover { background: var(--accent-soft); color: var(--ink); }
.btn.small { min-height: 40px; padding: .45em 1em; font-size: .95rem; }
.btn[disabled] { opacity: .55; cursor: wait; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 44px; }
.tap { display: inline-flex; align-items: center; min-height: 44px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(251, 248, 243, .94); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(8px)) { .nav { backdrop-filter: blur(8px); } }
.nav .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; min-width: 44px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav .links { display: none; gap: 22px; margin-left: 12px; }
.nav .links a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav .links a:hover { color: var(--ink); }
.nav .right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.nav .login { color: var(--ink); font-weight: 600; text-decoration: none; padding: 10px 4px; }
.nav .btn { min-height: 42px; padding: .45em 1.1em; font-size: .95rem; }
@media (min-width: 820px) { .nav .links { display: flex; } }

/* sections */
section { padding: 52px 0; }
@media (min-width: 820px) { section { padding: 80px 0; } }
.eyebrow { display: inline-block; font-size: .95rem; font-weight: 700; color: var(--accent-dark); margin-bottom: 8px; }
.lead { font-size: 1.125rem; color: var(--muted); max-width: 38em; }

/* hero */
.hero { padding: 48px 0 64px; }
.hero .grid { display: grid; gap: 40px; align-items: center; }
.hero .cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 24px 0 8px; }
.hero .nocard { color: var(--muted); font-size: .95rem; }
@media (min-width: 960px) { .hero { padding: 72px 0 88px; } .hero .grid { grid-template-columns: 1.02fr 1fr; gap: 56px; } }

/* product screen */
.screen { background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 1px 0 rgba(0,0,0,.02), 0 18px 40px -24px rgba(80, 50, 20, .35); overflow: hidden; }
.screen .bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #FDFBF8; font-size: .82rem; color: var(--muted); }
.screen .bar b { color: var(--ink); }
.screen .bar .tag { margin-left: auto; font-size: .78rem; font-weight: 700; color: var(--accent-dark); background: var(--accent-soft); border-radius: 999px; padding: 2px 10px; }
.screen .body { padding: 16px; }
.flag { display: flex; gap: 10px; align-items: flex-start; background: var(--up-soft); border-radius: 10px; padding: 10px 12px; font-size: .88rem; margin-bottom: 12px; }
.flag .dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--up); margin-top: .55em; }
.rows { width: 100%; border-collapse: collapse; font-size: .88rem; }
.rows th { text-align: left; font-weight: 600; color: var(--muted); font-size: .8rem; padding: 6px 6px 8px; border-bottom: 1px solid var(--line); }
.rows td { padding: 9px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.rows td.dish-c span { display: block; }
@media (max-width: 480px) { .rows th, .rows td { padding-left: 4px; padding-right: 4px; } .screen .body { padding: 12px; } }
.rows tr:last-child td { border-bottom: 0; }
.rows .r { text-align: right; white-space: nowrap; }
.up { color: var(--up); font-weight: 650; }
.down { color: var(--down); font-weight: 650; }
.pill { display: inline-block; font-size: .8rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--up-soft); color: var(--up); white-space: nowrap; }
.pill.ok { background: var(--down-soft); color: var(--down); }
.pill.plain { background: #F0EBE3; color: var(--muted); }
.screen .foot { padding: 10px 16px 14px; font-size: .8rem; color: var(--muted); border-top: 1px solid var(--line); }

/* price table */
.prices { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.prices th, .prices td { padding: 14px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.prices th { font-size: .85rem; color: var(--muted); font-weight: 650; background: #FDFBF8; }
.prices td.r, .prices th.r { text-align: right; white-space: nowrap; }
.prices tr:last-child td { border-bottom: 0; }
.prices .item b { display: block; }
.prices .item span { font-size: .8rem; color: var(--muted); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); }
@media (max-width: 560px) { .hide-s { display: none; } .nav .bn { display: none; } .nav .right { gap: 8px; } .prices th, .prices td { padding: 12px 10px; } }

/* steps, features */
.steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 18px; counter-reset: s; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 20px; counter-increment: s; }
.steps li::before { content: counter(s); display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-dark); font-weight: 800; margin-bottom: 12px; }
.steps p { margin: 0; color: var(--muted); }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.features { display: grid; gap: 18px; margin-top: 32px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feature svg { width: 30px; height: 30px; color: var(--accent); margin-bottom: 12px; }
.feature p { color: var(--muted); margin: 0; }
@media (min-width: 820px) { .features { grid-template-columns: repeat(2, 1fr); } }
.who { display: grid; gap: 14px; margin-top: 28px; }
.who div { border-left: 3px solid var(--accent); padding: 4px 0 4px 16px; }
.who p { margin: 0; color: var(--muted); }
@media (min-width: 820px) { .who { grid-template-columns: repeat(4, 1fr); } }

/* demo */
.demo { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px; margin-top: 28px; }
.demo form { display: grid; gap: 12px; }
@media (min-width: 720px) { .demo form { grid-template-columns: 1fr auto; align-items: end; } }

/* forms */
label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
input, select, textarea { font: inherit; color: inherit; width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid #D6CCBE; border-radius: 10px; background: #fff; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(168, 97, 28, .18); }
textarea { min-height: 96px; resize: vertical; }
.field { margin-bottom: 16px; }
.hint { font-size: .85rem; color: var(--muted); margin-top: 4px; }
.msg { border-radius: 10px; padding: 10px 14px; font-size: .95rem; margin: 12px 0; }
.msg:empty { display: none; }
.msg.err { background: var(--up-soft); color: #7A2914; }
.msg.ok { background: var(--down-soft); color: #1E4D30; }
.msg.info { background: var(--accent-soft); color: #5A350D; }

/* price plan */
.plan { background: var(--card); border: 2px solid var(--accent); border-radius: 20px; padding: 32px 28px; max-width: 520px; margin: 32px auto 0; text-align: center; }
.plan .amount { font-size: 3.4rem; font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
.plan .amount small { font-size: 1.05rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan ul { text-align: left; margin: 24px 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.plan li { padding-left: 28px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 4px; top: .5em; width: 12px; height: 7px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }

/* faq */
.faq { margin-top: 28px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; font-weight: 650; position: relative; min-height: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 14px; font-size: 1.4rem; color: var(--accent); font-weight: 500; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-right: 24px; max-width: 65ch; }
.lead, .feature p, .steps p { max-width: 65ch; }

/* band, footer */
.band { background: var(--ink); color: #F6F1EA; text-align: center; padding: 72px 0; }
.band h2 { color: #fff; }
.band p { color: #CFC6BA; }
.band .btn { margin-top: 12px; }
footer.site { padding: 40px 0 48px; color: var(--muted); font-size: .9rem; border-top: 1px solid var(--line); }
footer.site .wrap { display: grid; gap: 14px; }
footer.site .syng-legal-links a { color: var(--muted); }
footer.site .row { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; }

/* account pages */
.auth { padding: 48px 0 72px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 28px 24px; }
.auth .card { max-width: 440px; margin: 0 auto; }
.auth h1 { font-size: 1.75rem; }

/* the app */
.app-main { padding: 28px 0 72px; }
.app-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; margin-bottom: 18px; }
.app-head h1 { font-size: 1.6rem; margin: 0; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; margin-bottom: 18px; }
.panel h2 { font-size: 1.2rem; }
.kinds { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.kinds label { margin: 0; border: 1.5px solid var(--line); border-radius: 12px; padding: 14px; cursor: pointer; font-weight: 650; display: flex; gap: 10px; align-items: center; min-height: 56px; }
.kinds input { width: 20px; min-height: 20px; height: 20px; accent-color: var(--accent); }
.kinds label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
@media (min-width: 720px) { .kinds { grid-template-columns: repeat(4, 1fr); } }
.grid2 { display: grid; gap: 12px; }
@media (min-width: 720px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.ing { display: grid; grid-template-columns: 1fr 84px 82px 40px; gap: 8px; align-items: center; margin-bottom: 8px; }
.ing input, .ing select { min-height: 44px; padding: 8px 10px; }
.ing .x { width: 40px; height: 44px; border: 0; background: none; color: var(--muted); font-size: 1.3rem; cursor: pointer; border-radius: 8px; }
.ing .x:hover { background: var(--up-soft); color: var(--up); }
.ing .meta { grid-column: 1 / -1; font-size: .8rem; color: var(--muted); margin: -4px 0 4px; }
.dish-list { display: grid; gap: 12px; }
.dish { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: grid; gap: 6px; text-decoration: none; color: inherit; }
.dish:hover { border-color: var(--accent); }
.dish .top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.dish .name { font-weight: 700; font-size: 1.05rem; }
.dish .stats { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .9rem; color: var(--muted); }
.dish .stats b { color: var(--ink); }
.lines td small { display: block; color: var(--muted); font-size: .78rem; line-height: 1.4; }
.badge { display: inline-block; font-size: .78rem; font-weight: 700; padding: 1px 7px; border-radius: 6px; background: #F0EBE3; color: var(--muted); vertical-align: middle; margin-left: 4px; }
.badge.draft { background: #FFF3D6; color: #7A5300; }
.badge.own { background: var(--accent-soft); color: var(--accent-dark); }
.totals { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 16px; margin: 14px 0; border-top: 2px solid var(--ink); }
.totals div { padding: 10px 0 8px; border-bottom: 1px solid var(--line); }
.totals b { display: block; font-size: 1.35rem; }
.totals span { font-size: .8rem; color: var(--muted); }
@media (min-width: 720px) { .totals { grid-template-columns: repeat(4, 1fr); } }
.notice-out { white-space: pre-wrap; background: #FDFBF8; border: 1px dashed var(--accent); border-radius: 12px; padding: 16px; }
.spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -3px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.tabs a { padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 600; border: 1px solid var(--line); background: var(--card); }
.tabs a[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.banner { background: var(--accent-soft); border-radius: 12px; padding: 12px 16px; margin-bottom: 16px; font-size: .95rem; }
[hidden] { display: none !important; }
