/* Cup2Eat order page: plain, quiet, one column. */

:root {
  --bg: #ffffff;
  --ink: #1d1d1b;
  --muted: #6e6c67;
  --line: #e8e6e1;
  --soft: #f7f6f3;
  --accent: #2f6b4f; /* used sparingly: ticks only */
  --danger: #b3261e;
  --r: 10px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.55 Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
body.has-bar { padding-bottom: calc(80px + var(--safe-b)); }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.wrap { width: 100%; max-width: 620px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-in { height: 56px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.top-link { font-size: 15px; color: var(--muted); text-decoration: none; padding: 8px 0; }
.top-link:hover { color: var(--ink); }

/* intro */
.intro { padding: 28px 0 8px; }
.intro h1 { font-size: 26px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; margin-bottom: 8px; }
.fssai {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; padding: 6px 0;
  background: none; border: 0; font-size: 14px; color: var(--muted); text-align: left;
}
.fssai svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.fssai u { color: var(--ink); text-underline-offset: 3px; }

.step { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 600; margin: 32px 0 12px; }
.step span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); border: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* menu */
.product { padding: 16px 0; border-top: 1px solid var(--line); }
.product:last-child { border-bottom: 1px solid var(--line); }
.p-head { display: flex; gap: 14px; align-items: center; margin-bottom: 8px; }
.p-head img { width: 64px; height: 64px; border-radius: var(--r); object-fit: cover; background: var(--soft); flex: none; }
.p-head h3 { font-size: 16.5px; font-weight: 600; }
.p-head p { font-size: 14px; color: var(--muted); }
.pack { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; }
.pack + .pack { border-top: 1px dashed var(--line); }
.pack-txt { display: flex; flex-direction: column; }
.pack-txt b { font-weight: 500; }
.pack-txt b s { color: var(--muted); font-weight: 400; font-size: 14px; margin-left: 4px; }
.pack-txt small { font-size: 13.5px; color: var(--muted); }

.add, .stepper { height: 40px; border-radius: var(--r); border: 1px solid var(--line); background: #fff; flex: none; }
.add { min-width: 92px; padding: 0 16px; font-weight: 500; font-size: 15px; }
.add:hover { border-color: var(--ink); }
.stepper { display: inline-flex; align-items: center; min-width: 92px; border-color: var(--ink); }
.stepper button { width: 34px; height: 38px; border: 0; background: none; font-size: 20px; line-height: 1; color: var(--ink); }
.stepper output { flex: 1; text-align: center; font-weight: 600; font-size: 15px; }

/* form */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; min-width: 0; }
.field label { font-size: 14px; font-weight: 500; }
.field label small { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--r); border: 1px solid var(--line);
  background: #fff; font-size: 16px;
}
.field textarea { resize: vertical; min-height: 64px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.prefix { display: flex; }
.prefix span { display: grid; place-items: center; padding: 0 12px; border: 1px solid var(--line); border-right: 0; border-radius: var(--r) 0 0 var(--r); background: var(--soft); color: var(--muted); }
.prefix input { border-radius: 0 var(--r) var(--r) 0; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.err { font-size: 13px; color: var(--danger); }
.err:empty { display: none; }
.invalid input, .invalid textarea { border-color: var(--danger); }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; margin-bottom: 10px; font-size: 15px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--ink); }

/* summary */
.sum { border: 1px solid var(--line); border-radius: var(--r); padding: 4px 16px; }
.sum-line { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; font-size: 15px; }
.sum-line + .sum-line { border-top: 1px solid var(--line); }
.sum-line span:first-child { color: var(--muted); }
.sum-line.total { font-weight: 600; font-size: 16px; }
.sum-line.total span:first-child { color: var(--ink); }
.sum-empty { padding: 14px 0; color: var(--muted); font-size: 15px; }
.sum-empty.invalid { color: var(--danger); }
.fine { font-size: 14px; color: var(--muted); margin: 12px 0 8px; }

/* bottom bar: price + one button, always in thumb reach */
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: #fff; border-top: 1px solid var(--line); padding: 12px 0 calc(12px + var(--safe-b)); }
.bar[hidden] { display: none; }
.bar-in { display: flex; align-items: center; gap: 16px; }
.bar-info { display: flex; flex-direction: column; line-height: 1.3; }
.bar-info small { font-size: 13px; color: var(--muted); }
.bar-info b { font-size: 18px; font-weight: 600; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px;
  border: 0; border-radius: var(--r); background: var(--ink); color: #fff; font-weight: 500; font-size: 16px; text-decoration: none;
}
.btn:hover { background: #000; }
.btn:disabled { opacity: 0.6; cursor: default; }
.bar .btn { margin-left: auto; flex: 1; max-width: 240px; }
.btn-block { width: 100%; }
.btn-plain { display: block; width: 100%; min-height: 48px; margin-top: 8px; background: none; border: 1px solid var(--line); border-radius: var(--r); font-weight: 500; }

/* done */
.done { padding: 40px 0 24px; }
.done-mark { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); border: 1px solid var(--line); margin-bottom: 16px; }
.done-mark svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.done h1 { font-size: 26px; font-weight: 600; margin-bottom: 8px; }
.done > p { margin-bottom: 6px; }
.done .sum { margin: 20px 0; }
.kv { font-size: 15px; margin-bottom: 20px; }
.kv span { color: var(--muted); }

/* footer */
.foot { padding: 32px 16px 28px; font-size: 13.5px; color: var(--muted); }
.foot p + p { margin-top: 4px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }

/* certificate dialog */
dialog { width: min(480px, calc(100vw - 32px)); max-height: 90vh; padding: 20px; border: 0; border-radius: 14px; }
dialog::backdrop { background: rgba(0, 0, 0, 0.4); }
dialog h3 { font-size: 17px; font-weight: 600; margin-bottom: 12px; }
dialog img { width: 100%; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 10px; }
dialog form { margin-top: 14px; }

/* ---------- home page ---------- */
.wrap.wide { max-width: 1040px; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14.5px; }
.btn-lg { min-height: 52px; padding: 0 28px; }
.text-link { background: none; border: 0; padding: 0; color: var(--ink); font-size: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #c9c6bf; cursor: pointer; }
.text-link:hover { text-decoration-color: var(--ink); }

.hero { display: grid; gap: 28px; padding-top: 32px; padding-bottom: 8px; }
.hero h1 { font-size: 40px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 12px; }
.lead { font-size: 18px; color: var(--muted); max-width: 30em; }
.hero-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin: 24px 0 10px; }
.hero-cta .btn { width: 100%; }
.hero-cta .text-link { font-size: 15px; color: var(--muted); }
.hero-img { width: 100%; aspect-ratio: 4 / 4.2; object-fit: cover; border-radius: 16px; background: var(--soft); }

.block { padding-top: 48px; }
.block h2 { font-size: 20px; font-weight: 600; margin-bottom: 14px; }

.products { border-top: 1px solid var(--line); }
.prod { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.prod img { width: 56px; height: 56px; border-radius: var(--r); object-fit: cover; flex: none; }
.prod-txt { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.prod-txt b { font-weight: 500; }
.prod-txt small { font-size: 13.5px; color: var(--muted); }
.prod-price { display: flex; align-items: center; gap: 8px; font-size: 14.5px; white-space: nowrap; }
.prod-price i { font-style: normal; font-size: 20px; color: var(--muted); }
.prod:hover .prod-txt b { text-decoration: underline; text-underline-offset: 3px; }

.uses { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.uses figure { margin: 0; }
.uses img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r); background: var(--soft); }
.uses figcaption { font-size: 14px; color: var(--muted); margin-top: 6px; }

.points { display: grid; gap: 16px; }
.points b { font-weight: 500; }
.points p { font-size: 15px; color: var(--muted); }
.trust { list-style: none; margin: 24px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--muted); display: grid; gap: 6px; }
.trust .text-link { color: var(--ink); }

.closing { padding-bottom: 8px; }
.closing .muted { margin-bottom: 18px; }
.closing .btn { width: 100%; }

@media (min-width: 720px) {
  .hero { grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 56px; padding-top: 56px; }
  .hero h1 { font-size: 56px; }
  .hero-cta { flex-direction: row; align-items: center; gap: 20px; }
  .hero-cta .btn { width: auto; }
  .block { padding-top: 72px; }
  .block h2 { font-size: 22px; }
  .uses { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .points { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .closing { text-align: center; padding-top: 88px; }
  .closing .btn { width: auto; }
}

@media (min-width: 720px) {
  .intro { padding-top: 48px; }
  .intro h1 { font-size: 32px; }
  .bar { left: 50%; right: auto; bottom: 16px; width: min(620px, calc(100vw - 32px)); transform: translateX(-50%); border: 1px solid var(--line); border-radius: 14px; padding: 10px 0; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06); }
  .bar .wrap { padding: 0 12px 0 18px; }
  body.has-bar { padding-bottom: 100px; }
}
