/* =====================================================================
   PIZZERIA PICASSO LEMPÄÄLÄ — visuaalinen ilme
   Konsepti: "Katettu pöytä". Punainen ruutuliina on sivun pohja,
   musta flyer-taulu kantaa tekstin, logon käsialaa käytetään
   otsikoissa ja kyltin vihreä–valkoinen–punainen rytmittää osioita.
   Yksi tarkoituksellinen vaalea ilme (ei tummaa teemaa).
   ===================================================================== */
:root {
  color-scheme: light;
  /* Värit */
  --ink: #191716;          /* flyerin musta */
  --ink-2: #2b2725;
  --paper: #fdfbf7;        /* ruokalistan paperi */
  --paper-2: #f2ede5;
  --line: #e0d8cc;
  --muted: #645c55;
  --on-ink: #fbf3e4;       /* kerma mustalla */
  --on-ink-muted: #c9bfb1;
  --red: #c41f2a;          /* ruutuliina */
  --red-deep: #a0151f;     /* teksti paperilla */
  --green: #1e6a3d;        /* kyltin vihreä */
  --green-deep: #164f2e;
  --blue: #2c4f9b;         /* sininen liina (sali) */
  --focus: #1a73e8;
  --check: 26px;

  /* Typografia */
  --f-script: "Yellowtail", "Brush Script MT", cursive;
  --f-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --f-body: "Barlow", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.2rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.9rem, 1.4rem + 2.2vw, 2.6rem);
  --step-4: clamp(2.6rem, 1.6rem + 5vw, 4.6rem);
  --step-5: clamp(3.6rem, 2rem + 8vw, 7.5rem);

  --radius: 6px;
  --header-h: 60px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 64px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--step-0);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.05; text-wrap: balance; }
p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--ink); color: var(--on-ink); padding: 10px 14px; border-radius: var(--radius); }
.skip:focus { top: 8px; }
.tnum { font-variant-numeric: tabular-nums; }
.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Ruutuliina ---------- */
.cloth {
  background-color: #fff;
  background-image:
    linear-gradient(90deg, rgba(196, 31, 42, .55) 50%, transparent 50%),
    linear-gradient(rgba(196, 31, 42, .55) 50%, transparent 50%);
  background-size: var(--check) var(--check);
}
.cloth--blue {
  background-image:
    linear-gradient(90deg, rgba(44, 79, 155, .5) 50%, transparent 50%),
    linear-gradient(rgba(44, 79, 155, .5) 50%, transparent 50%);
}
.tricolor { height: 6px; background: linear-gradient(90deg, var(--green) 0 33.3%, #fff 33.3% 66.6%, var(--red) 66.6%); }

/* ---------- Demo-banneri ---------- */
.demo-banner {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px;
  background: #fff3c4; color: #4a3b00; font-size: var(--step--1);
  padding: 8px var(--gutter); text-align: center; border-bottom: 1px solid #e8d78a;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40;
  background: var(--ink); color: var(--on-ink);
}
.site-header__row { display: flex; align-items: center; gap: 12px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand img { width: 44px; height: 43px; }
.brand__name { font-family: var(--f-script); font-size: 1.85rem; line-height: 1; padding-top: 2px; white-space: nowrap; }
.brand__loc { font-family: var(--f-display); text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; color: var(--on-ink-muted); display: none; }
.nav { display: none; gap: 4px; margin-left: auto; }
.nav a {
  font-family: var(--f-display); font-weight: 600; text-transform: uppercase; letter-spacing: .08em;
  text-decoration: none; font-size: .95rem; padding: 8px 10px; border-radius: var(--radius); color: var(--on-ink);
}
.nav a:hover { background: var(--ink-2); }
.header-cart {
  margin-left: auto; display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 14px; border-radius: 999px; border: 0;
  background: var(--red); color: #fff; font-family: var(--f-display); font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; font-size: 1rem;
}
.header-cart:hover { background: var(--red-deep); }
.header-cart__count {
  min-width: 24px; height: 24px; border-radius: 12px; background: #fff; color: var(--red-deep);
  display: inline-grid; place-items: center; font-size: .85rem; padding: 0 6px;
}
.header-cart.bump { animation: bump .35s var(--ease); }
@keyframes bump { 40% { transform: scale(1.08); } }

@media (min-width: 900px) {
  .nav { display: flex; }
  .header-cart { margin-left: 8px; }
  .brand__loc { display: block; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(20px, 4vw, 56px) clamp(28px, 5vw, 72px); overflow: hidden; }
.hero__grid { display: grid; gap: clamp(18px, 3vw, 36px); align-items: center; }
.board {
  position: relative; background: var(--ink); color: var(--on-ink);
  padding: clamp(22px, 4vw, 48px); border-radius: 4px;
  box-shadow: 0 2px 0 rgba(0,0,0,.25);
}
.board__kicker {
  font-family: var(--f-display); text-transform: uppercase; letter-spacing: .16em; font-size: .85rem;
  color: var(--on-ink-muted); display: flex; flex-wrap: wrap; gap: 6px 14px;
}
.hero h1 { margin-top: 10px; }
.hero h1 .small {
  display: block; font-family: var(--f-display); font-weight: 800; text-transform: uppercase;
  letter-spacing: .3em; font-size: clamp(1rem, .8rem + 1vw, 1.4rem); color: var(--on-ink);
}
.hero h1 .script {
  display: block; font-family: var(--f-script); font-weight: 400; font-size: var(--step-5);
  line-height: .95; letter-spacing: -.01em; color: var(--on-ink); margin-top: 4px;
}
.swash { display: block; width: min(320px, 70%); height: auto; margin-top: -2px; color: var(--red); }
.swash path { fill: currentColor; }
.hero .swash { clip-path: inset(0 100% 0 0); animation: swash 1s .25s var(--ease) forwards; }
@keyframes swash { to { clip-path: inset(0 0 0 0); } }
.hero__lead { margin-top: 18px; font-size: var(--step-1); max-width: 34ch; color: var(--on-ink); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 22px; border-radius: 999px; border: 2px solid transparent;
  font-family: var(--f-display); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 1.1rem;
  text-decoration: none; transition: transform .15s var(--ease), background-color .15s;
}
.btn:active { transform: translateY(1px); }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-deep); }
.btn--green { background: var(--green); color: #fff; }
.btn--green:hover { background: var(--green-deep); }
.btn--ghost-light { border-color: var(--on-ink); color: var(--on-ink); background: transparent; }
.btn--ghost-light:hover { background: var(--on-ink); color: var(--ink); }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }

.status {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 22px;
  font-family: var(--f-display); font-size: 1.05rem; letter-spacing: .04em;
}
.status__dot { width: 10px; height: 10px; border-radius: 50%; background: #9a9088; flex: none; }
.status--open .status__dot { background: #4fc47a; box-shadow: 0 0 0 4px rgba(79,196,122,.22); }
.hero__hours { margin-top: 6px; color: var(--on-ink-muted); font-size: var(--step--1); }

.hero__photos { position: relative; display: grid; grid-template-columns: 1fr; }
.photo {
  position: relative; background: #fff; padding: 8px; border-radius: 3px;
  box-shadow: 0 10px 24px -14px rgba(0,0,0,.55);
}
.photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 1px; }
.hero__main-photo { aspect-ratio: 16 / 10; transform: rotate(1.2deg); max-width: 100%; }
.hero__main-photo img { object-position: 50% 55%; }
.stamp {
  position: absolute; width: clamp(96px, 22vw, 150px); aspect-ratio: 1; right: -6px; bottom: -26px;
  transform: rotate(-12deg); background: var(--paper); border-radius: 50%; padding: 6px;
  box-shadow: 0 6px 16px -10px rgba(0,0,0,.6);
  animation: stamp .6s .5s var(--ease) both;
}
.stamp img { width: 100%; height: 100%; object-fit: contain; }
@keyframes stamp { from { transform: rotate(-24deg) scale(1.35); opacity: 0; } to { transform: rotate(-12deg) scale(1); opacity: 1; } }

@media (min-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
  .hero__main-photo { aspect-ratio: 1 / 1; }
  .hero__main-photo img { object-position: 42% 50%; }
  .stamp { right: auto; left: -40px; bottom: auto; top: 40px; }
}

/* ---------- Kylttipaneelit ---------- */
.signs { background: var(--ink); padding-block: clamp(20px, 3vw, 32px); }
.signs__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sign {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center;
  min-height: 112px; padding: 14px 18px; background: #fff; border: 0; border-radius: 3px; text-align: center;
  font-family: var(--f-display); font-weight: 800; font-size: clamp(1.6rem, 1rem + 3vw, 3rem);
  line-height: .95; text-decoration: none; isolation: isolate;
}
.sign::before, .sign::after { content: ""; position: absolute; z-index: -1; width: 34%; height: 110%; }
.sign::before { left: -16%; top: -58%; background: var(--green); border-radius: 0 0 70% 0 / 0 0 90% 0; }
.sign::after { right: -16%; bottom: -58%; background: var(--red); border-radius: 70% 0 0 0 / 90% 0 0 0; }
.sign span { display: block; }
.sign--a { color: var(--red-deep); }
.sign--b { color: var(--green); }
.sign--c { color: var(--red-deep); grid-column: 1 / -1; }
.sign:hover { transform: translateY(-2px); }
.sign { transition: transform .2s var(--ease); }
@media (min-width: 760px) { .signs__grid { grid-template-columns: repeat(3, 1fr); } .sign--c { grid-column: auto; } }

/* ---------- Tilaus + ruokalista ---------- */
.order { padding-block: clamp(36px, 6vw, 80px) 40px; }
.order__head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: end; }
.order__head > * { min-width: 0; }
@media (min-width: 900px) { .order__head { grid-template-columns: minmax(0, 1fr) auto; } }
.section-title {
  font-family: var(--f-script); font-weight: 400; font-size: var(--step-4); color: var(--ink); line-height: 1;
}
.section-title + .swash { width: min(220px, 60%); }
.order__intro { color: var(--muted); max-width: 52ch; margin-top: 10px; }

.mode {
  display: inline-grid; grid-auto-flow: column; gap: 4px; padding: 4px; background: var(--paper-2);
  border: 1px solid var(--line); border-radius: 999px; justify-self: start;
}
.mode button {
  min-height: 46px; padding: 0 clamp(12px, 3vw, 20px); border: 0; border-radius: 999px; background: transparent;
  font-family: var(--f-display); font-weight: 700; text-transform: uppercase; letter-spacing: .07em; font-size: 1rem;
  color: var(--muted);
}
.mode button[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }
.mode-note { font-size: var(--step--1); color: var(--muted); margin-top: 8px; }
.mode-note strong { color: var(--ink); }

.cat-nav {
  position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--header-h)); z-index: 30;
  background: var(--paper); border-bottom: 1px solid var(--line); margin-top: 22px;
}
.cat-nav__list {
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 10px 0; margin: 0; list-style: none;
  scroll-snap-type: x proximity;
}
.cat-nav__list::-webkit-scrollbar { display: none; }
.cat-nav a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px;
  white-space: nowrap; text-decoration: none; font-family: var(--f-display); font-weight: 600;
  text-transform: uppercase; letter-spacing: .07em; font-size: .95rem; border: 1px solid var(--line); background: #fff;
  scroll-snap-align: start;
}
.cat-nav a[aria-current="true"] { background: var(--red); border-color: var(--red); color: #fff; }

.order__layout { display: grid; gap: 28px; margin-top: 18px; }
@media (min-width: 1024px) {
  .order__layout { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
}

/* Ruokalista paperina ruutuliinalla */
.menu-cloth { padding: clamp(8px, 2vw, 22px); border-radius: 4px; }
.menu-sheet { background: var(--paper); padding: clamp(16px, 3vw, 36px); border-radius: 2px; box-shadow: 0 1px 0 rgba(0,0,0,.08); }
.menu-cat + .menu-cat { margin-top: clamp(30px, 4vw, 48px); }
.menu-cat__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; border-bottom: 2px solid var(--ink); padding-bottom: 6px; }
.menu-cat__title { font-family: var(--f-script); font-weight: 400; font-size: var(--step-3); line-height: 1.1; }
.menu-cat__cols { font-family: var(--f-display); font-style: italic; color: var(--muted); display: flex; gap: 0; }
.menu-cat__cols span { width: 4.2rem; text-align: right; }
.menu-cat__note { font-size: var(--step--1); color: var(--muted); margin-top: 8px; max-width: 70ch; }
.menu-list { list-style: none; margin: 4px 0 0; padding: 0; }
.menu-item { display: flex; align-items: stretch; border-bottom: 1px dashed var(--line); }
.menu-item__open {
  flex: 1; min-width: 0; display: grid; grid-template-columns: 2.1rem minmax(0, 1fr) auto; gap: 2px 8px;
  align-items: start; text-align: left; padding: 12px 4px 12px 0; border: 0; background: none; min-height: 56px;
}
.menu-item__open:hover .menu-item__name { color: var(--red-deep); }
.menu-item__num { font-family: var(--f-display); font-weight: 700; color: var(--muted); padding-top: 1px; font-size: 1rem; }
.menu-item__name { font-family: var(--f-display); font-weight: 700; font-size: 1.22rem; line-height: 1.15; overflow-wrap: anywhere; }
.menu-item__desc { grid-column: 2; color: var(--muted); font-size: .92rem; line-height: 1.4; overflow-wrap: anywhere; }
.menu-item__prices { grid-row: 1 / span 2; grid-column: 3; display: flex; font-family: var(--f-display); font-weight: 700; font-size: 1.15rem; }
.menu-item__prices span { width: 4.2rem; text-align: right; }
.menu-item__prices--single span { width: auto; min-width: 3rem; }
.menu-item__add {
  flex: none; align-self: center; width: 44px; height: 44px; margin-left: 8px; border-radius: 50%;
  border: 2px solid var(--ink); background: #fff; display: grid; place-items: center;
}
.menu-item__add:hover { background: var(--ink); color: #fff; }
.menu-item__add svg { width: 18px; height: 18px; }
.menu-item--unavailable .menu-item__open { opacity: .5; }
.badge-sold { font-family: var(--f-display); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--red-deep); }
@media (max-width: 420px) {
  .menu-cat__cols span, .menu-item__prices span { width: 3.3rem; }
  .menu-item__open { grid-template-columns: 1.7rem minmax(0, 1fr) auto; }
}

/* ---------- Ostoskori ---------- */
.cart-aside { display: none; }
@media (min-width: 1024px) {
  .cart-aside { display: block; position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--header-h) + 76px); }
}
.cart {
  background: var(--ink); color: var(--on-ink); border-radius: 4px; padding: 20px;
  display: flex; flex-direction: column; gap: 14px;
}
.cart__title { font-family: var(--f-script); font-weight: 400; font-size: 2.2rem; line-height: 1; }
.cart__type { margin: 0; font-family: var(--f-display); text-transform: uppercase; letter-spacing: .1em; font-size: .85rem; color: var(--on-ink-muted); }
.cart__empty { color: var(--on-ink-muted); padding: 10px 0 4px; }
.cart__lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; max-height: 46vh; overflow: auto; }
.cart-aside .cart__lines { max-height: calc(100vh - 470px); min-height: 80px; }
.cart-line { padding: 14px 0 12px; border-bottom: 1px solid #3a3533; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 14px; align-items: start; }
.cart-line__amount { grid-column: 2; grid-row: 1 / span 2; text-align: right; display: grid; gap: 2px; justify-items: end; }
.cart-line__name { font-family: var(--f-display); font-weight: 700; font-size: 1.1rem; line-height: 1.2; overflow-wrap: anywhere; }
.cart-line__meta { grid-column: 1; color: var(--on-ink-muted); font-size: .86rem; line-height: 1.4; overflow-wrap: anywhere; }
.cart-line__price { font-family: var(--f-display); font-weight: 700; font-size: 1.1rem; white-space: nowrap; }
.cart-line__unit { color: var(--on-ink-muted); font-size: .8rem; white-space: nowrap; }
.cart-line__ctrl { grid-column: 1 / -1; display: flex; align-items: center; gap: 4px 6px; margin-top: 8px; flex-wrap: wrap; }
.cart-line__ctrl .qty { margin-right: 6px; }
.qty { display: inline-flex; align-items: center; border: 1px solid #4a4441; border-radius: 999px; }
.qty button { width: 40px; height: 40px; border: 0; background: none; border-radius: 50%; display: grid; place-items: center; color: inherit; }
.qty button:hover { background: rgba(255,255,255,.08); }
.qty output { min-width: 26px; text-align: center; font-weight: 600; }
.link-btn { border: 0; background: none; text-decoration: underline; text-underline-offset: 3px; color: inherit; min-height: 40px; padding: 0 8px; font-size: .9rem; }
.link-btn:hover { color: #fff; }
.cart__error { color: #ffb3b3; font-size: .85rem; }
.totals { display: grid; gap: 4px; font-size: .95rem; }
.totals div { display: flex; justify-content: space-between; gap: 10px; }
.totals .grand { font-family: var(--f-display); font-weight: 800; font-size: 1.45rem; padding-top: 6px; border-top: 1px solid #3a3533; margin-top: 4px; }
.totals .promo { color: #9fe0b5; }
.notice { margin: 0; font-size: .88rem; line-height: 1.45; padding: 12px 14px; border-radius: var(--radius); background: #2f2a28; color: var(--on-ink); }
.notice--warn { background: #3a2a14; color: #ffe2ad; }
.notice--offer { background: #173826; color: #c9f3d8; }

/* Mobiilin sticky-kori */
.cart-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(transparent, rgba(253,251,247,.9) 30%);
  transform: translateY(0); transition: transform .3s var(--ease);
}
.cart-bar button {
  width: 100%; min-height: 56px; border: 0; border-radius: 999px; background: var(--red); color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 22px;
  font-family: var(--f-display); font-weight: 700; text-transform: uppercase; letter-spacing: .07em; font-size: 1.08rem;
  box-shadow: 0 8px 20px -10px rgba(160,21,31,.8);
}
.cart-bar__sep { opacity: .6; }
.cart-bar button > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.cart-bar button > span:last-child { flex: none; white-space: nowrap; }
@media (min-width: 1024px) { .cart-bar { display: none; } }
body.has-cart-bar { padding-bottom: 88px; }
@media (min-width: 1024px) { body.has-cart-bar { padding-bottom: 0; } }

/* ---------- Dialogit (bottom sheet mobiilissa) ---------- */
dialog.sheet {
  border: 0; padding: 0; margin: auto auto 0; width: 100%; max-width: 100%;
  max-height: 92dvh; max-height: 92vh; background: var(--paper); color: var(--ink);
  border-radius: 14px 14px 0 0; overflow: hidden; display: flex; flex-direction: column;
}
@supports (height: 1dvh) { dialog.sheet { max-height: 92dvh; } }
dialog.sheet:not([open]) { display: none; }
dialog.sheet::backdrop { background: rgba(25, 23, 22, .62); }
dialog.sheet[open] { animation: sheet-up .32s var(--ease); }
@keyframes sheet-up { from { transform: translateY(40px); opacity: .4; } }
@media (min-width: 720px) {
  dialog.sheet { margin: auto; width: min(640px, calc(100% - 48px)); border-radius: 8px; max-height: 88vh; }
  dialog.sheet--wide { width: min(980px, calc(100% - 48px)); }
  dialog.sheet[open] { animation: sheet-in .25s var(--ease); }
  @keyframes sheet-in { from { transform: translateY(12px) scale(.985); opacity: 0; } }
}
.sheet__head { display: flex; align-items: flex-start; gap: 12px; padding: 18px 18px 12px; border-bottom: 1px solid var(--line); background: var(--paper); }
.sheet__head .grip { display: none; }
.sheet__title { font-family: var(--f-display); font-weight: 800; font-size: 1.7rem; line-height: 1.05; overflow-wrap: anywhere; }
.sheet__sub { color: var(--muted); margin-top: 4px; font-size: .95rem; overflow-wrap: anywhere; }
.icon-btn { flex: none; margin-left: auto; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; }
.icon-btn:hover { background: var(--paper-2); }
.icon-btn svg { width: 18px; height: 18px; }
.sheet__body { padding: 16px 18px 24px; overflow-y: auto; overscroll-behavior: contain; flex: 1; -webkit-overflow-scrolling: touch; }
.sheet__foot {
  padding: 12px 18px calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); background: var(--paper);
  display: flex; gap: 10px; align-items: center;
}
dialog.sheet.sheet--dark { background: var(--ink); color: var(--on-ink); }
.sheet--dark .sheet__title { color: var(--on-ink); }
.sheet--dark .sheet__body { padding-top: 6px; }
.sheet--dark .cart { background: transparent; padding: 0; border-radius: 0; }
.sheet--dark .cart__lines { max-height: none; overflow: visible; }
.sheet--dark .sheet__head, .sheet--dark .sheet__foot { background: var(--ink); border-color: #3a3533; }
.sheet--dark .icon-btn { background: transparent; border-color: #4a4441; color: var(--on-ink); }

.fieldset { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.fieldset legend, .label {
  font-family: var(--f-display); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .95rem;
  padding: 0; margin-bottom: 8px; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap;
}
.req-hint { font-family: var(--f-body); text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--muted); font-size: .85rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 999px;
  border: 1.5px solid var(--line); background: #fff; font-size: .95rem; line-height: 1.2;
}
.chip span small { color: var(--muted); font-size: .82rem; }
.chip input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip input:checked + span small { color: var(--on-ink-muted); }
.chip input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.chip input:disabled + span { opacity: .45; }
.chips--remove .chip input:checked + span { background: #fff; color: var(--red-deep); border-color: var(--red-deep); text-decoration: line-through; }
.chips--size .chip span { min-width: 120px; justify-content: space-between; font-family: var(--f-display); font-weight: 700; font-size: 1.1rem; }
.field-error { color: var(--red-deep); font-size: .88rem; margin-top: 6px; font-weight: 500; }
.sheet--dark .field-error { color: #ffb3b3; }

.input, .textarea, .select {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: var(--radius); border: 1.5px solid #cfc6b9; background: #fff;
  font-size: 16px; /* estää iOS-zoomauksen */
}
.textarea { min-height: 84px; resize: vertical; line-height: 1.4; }
.input:focus, .textarea:focus, .select:focus { border-color: var(--ink); outline: 3px solid rgba(26,115,232,.35); outline-offset: 0; }
.input[aria-invalid="true"], .textarea[aria-invalid="true"], .select[aria-invalid="true"] { border-color: var(--red-deep); }
.counter { font-size: .8rem; color: var(--muted); text-align: right; margin-top: 4px; }

.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--ink); border-radius: 999px; }
.stepper button { width: 48px; height: 48px; border: 0; background: none; border-radius: 50%; display: grid; place-items: center; }
.stepper button:hover { background: var(--paper-2); }
.stepper output { min-width: 30px; text-align: center; font-weight: 700; font-size: 1.1rem; }

/* ---------- Checkout ---------- */
.co { display: grid; gap: 24px; }
@media (min-width: 860px) { .co { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } }
.co__section { border-top: 2px solid var(--ink); padding-top: 12px; }
.co__section h3 { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: 1.15rem; margin-bottom: 12px; }
.grid-2 { display: grid; gap: 14px; }
@media (min-width: 560px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-2 .span-2 { grid-column: 1 / -1; } }
.field { display: flex; flex-direction: column; min-width: 0; }
.field label { font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.field .opt { font-weight: 400; color: var(--muted); }
.radio-cards { display: grid; gap: 8px; }
.radio-card { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1.5px solid var(--line); border-radius: var(--radius); background: #fff; cursor: pointer; }
.radio-card input { margin-top: 3px; width: 20px; height: 20px; accent-color: var(--red); flex: none; }
.radio-card:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.radio-card:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.radio-card strong { display: block; font-family: var(--f-display); font-size: 1.1rem; letter-spacing: .02em; }
.radio-card small { color: var(--muted); }
.co__summary { background: var(--ink); color: var(--on-ink); border-radius: 4px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 860px) { .co__summary { position: sticky; top: 0; } }
.sum-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .92rem; }
.sum-lines li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; }
.sum-lines .meta { grid-column: 1; color: var(--on-ink-muted); font-size: .82rem; overflow-wrap: anywhere; }
.form-alert { padding: 12px 14px; border-radius: var(--radius); background: #fde8e8; color: #7a0d14; border: 1px solid #f3b9bd; font-weight: 500; }
.form-alert--info { background: #eef4ff; color: #193a7a; border-color: #c5d6f6; }
.spinner { width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.done { text-align: center; padding: 18px 4px 8px; display: grid; gap: 14px; justify-items: center; }
.done__stamp { width: 132px; transform: rotate(-10deg); }
.done h3 { font-family: var(--f-script); font-weight: 400; font-size: 3rem; }
.done__num { font-family: var(--f-display); font-weight: 800; font-size: 1.6rem; letter-spacing: .06em; }
.dev-payload { width: 100%; text-align: left; font-size: .85rem; }
.dev-payload pre { max-height: 260px; overflow: auto; background: var(--ink); color: #e8e1d6; padding: 12px; border-radius: var(--radius); font-size: .78rem; }

/* Tilauksen seuranta: odotus / hyväksytty / hylätty */
.track { max-width: 460px; margin-inline: auto; }
.track .track__title { font-family: var(--f-display); font-weight: 800; font-size: 1.8rem; line-height: 1.1; text-wrap: balance; }
.track.track--ok .track__title { font-family: var(--f-script); font-weight: 400; font-size: 2.8rem; color: var(--green-deep); }
.track.track--rejected .track__title { color: var(--red-deep); font-size: 1.5rem; }
.track__wait { font-family: var(--f-display); font-size: 1.2rem; letter-spacing: .02em; color: var(--muted); }
.track__spinner { position: relative; width: 120px; height: 120px; display: grid; place-items: center; }
.track__spinner img { width: 88px; height: auto; }
.track__spinner::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 3px solid var(--line); border-top-color: var(--red); border-right-color: var(--green);
  animation: spin 1.4s linear infinite;
}
.track__eta {
  display: grid; gap: 2px; font-family: var(--f-display); font-weight: 800; font-size: 1.7rem; line-height: 1.1;
  padding: 12px 18px; border: 2px solid var(--ink); border-radius: 4px; background: #fff;
}
.track__eta small { font-family: var(--f-body); font-weight: 500; font-size: .95rem; color: var(--muted); }
.track__reason { padding: 10px 14px; background: var(--paper-2); border-radius: var(--radius); }
.track__hint { font-size: .9rem; color: var(--muted); }
.track__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.mode-note__warn { color: var(--red-deep); }
@media (prefers-reduced-motion: reduce) { .track__spinner::before { animation: spin 3s linear infinite !important; } }

/* ---------- Lounastarjous ---------- */
.offer { padding-block: clamp(36px, 6vw, 72px); }
.offer__card {
  max-width: 760px; margin-inline: auto; background: #fff; border: 3px solid var(--red-deep); outline: 6px solid #fff;
  padding: clamp(22px, 4vw, 40px); text-align: center; display: grid; gap: 10px; justify-items: center;
}
.offer__card h2 { font-family: var(--f-script); font-weight: 400; color: var(--red-deep); font-size: var(--step-4); }
.offer__card p { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.25rem, 1rem + 1.2vw, 1.8rem); line-height: 1.25; max-width: 30ch; }
.offer__card em { font-style: normal; color: var(--red-deep); }
.offer__card .offer__state { font-family: var(--f-body); font-weight: 500; font-size: 1rem; color: var(--muted); }

/* ---------- Sali / terassi ---------- */
.room { padding-block: clamp(36px, 6vw, 80px); background: var(--paper-2); }
.room__grid { display: grid; gap: 24px; align-items: center; }
@media (min-width: 860px) { .room__grid { grid-template-columns: 1fr 1fr; gap: 48px; } }
.room__photos { display: grid; grid-template-columns: 1.15fr .85fr; gap: 12px; align-items: end; }
.room__photos .photo:first-child { aspect-ratio: 3 / 4; transform: rotate(-1.5deg); }
.room__photos .photo:last-child { aspect-ratio: 3 / 4; transform: rotate(2deg) translateY(-18px); }
.room__text h2 { font-family: var(--f-script); font-weight: 400; font-size: var(--step-4); }
.room__text p { margin-top: 14px; max-width: 46ch; font-size: var(--step-1); }
.facts { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 0; border-top: 2px solid var(--ink); max-width: 460px; }
.facts li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-family: var(--f-display); font-size: 1.15rem; }
.facts li span:first-child { text-transform: uppercase; letter-spacing: .08em; font-weight: 600; font-size: .95rem; color: var(--muted); }
.facts li span:last-child { font-weight: 700; text-align: right; }

/* ---------- Kuljetus ---------- */
.delivery { background: var(--green); color: #fff; padding-block: clamp(36px, 6vw, 72px); }
.delivery__grid { display: grid; gap: 20px; }
@media (min-width: 860px) { .delivery__grid { grid-template-columns: .9fr 1.1fr; align-items: center; gap: 48px; } }
.delivery h2 { font-family: var(--f-script); font-weight: 400; font-size: var(--step-4); }
.delivery__when { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.6rem, 1.1rem + 2vw, 2.4rem); text-transform: uppercase; letter-spacing: .04em; margin-top: 8px; }
.delivery dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 0 18px; border-top: 2px solid rgba(255,255,255,.6); }
.delivery dt, .delivery dd { margin: 0; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.25); }
.delivery dt { font-family: var(--f-display); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: .95rem; opacity: .85; }
.delivery dd { font-family: var(--f-display); font-weight: 700; font-size: 1.2rem; }
.delivery__note { margin-top: 14px; opacity: .9; }
.wa { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; color: #fff; font-weight: 600; text-underline-offset: 3px; }

/* ---------- Yhteystiedot ---------- */
.visit { padding-block: clamp(36px, 6vw, 80px); }
.visit__grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .visit__grid { grid-template-columns: 1fr 1fr 300px; gap: 40px; align-items: start; } }
.visit h2 { font-family: var(--f-script); font-weight: 400; font-size: var(--step-4); }
.visit h3 { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: 1.05rem; margin-bottom: 8px; }
.hours { width: 100%; border-collapse: collapse; font-family: var(--f-display); font-size: 1.15rem; }
.hours th, .hours td { padding: 8px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 600; }
.hours td { text-align: right; font-weight: 700; }
.hours tr.today th, .hours tr.today td { color: var(--red-deep); }
.hours tr.today th::after { content: " · tänään"; font-weight: 500; font-size: .9rem; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.contact-list .big { font-family: var(--f-display); font-weight: 800; font-size: 1.7rem; line-height: 1.1; letter-spacing: .02em; user-select: all; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.small-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--ink); background: #fff; text-decoration: none; font-weight: 600; font-size: .92rem; }
.small-btn:hover { background: var(--ink); color: #fff; }
.visit__sign { aspect-ratio: 3 / 4; }
.visit__sign img { object-position: 50% 62%; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-ink-muted); padding-bottom: env(safe-area-inset-bottom, 0px); }
.footer__grid {
  display: grid; gap: 30px 24px; padding-block: 40px 32px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.footer__brand { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.footer__brand img { width: 88px; height: auto; }
.footer__brand .btn { min-height: 46px; font-size: 1rem; }
.footer__label { font-family: var(--f-script); color: var(--on-ink); font-size: 1.7rem; line-height: 1; margin-bottom: 12px; }
.footer__hours, .footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer__hours li { display: flex; justify-content: space-between; gap: 12px; max-width: 220px; font-family: var(--f-display); font-size: 1.05rem; color: var(--on-ink); }
.footer__hours li.muted { display: block; color: var(--on-ink-muted); font-size: .95rem; margin-top: 4px; }
.footer__phone { font-family: var(--f-display); font-weight: 800; font-size: 1.45rem; color: var(--on-ink); letter-spacing: .02em; margin-bottom: 6px; }
.site-footer address { font-style: normal; line-height: 1.5; }
.footer__links a { color: var(--on-ink); text-decoration: none; font-family: var(--f-display); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: .92rem; display: inline-block; padding: 3px 0; }
.footer__links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px;
  padding-block: 16px 22px; font-size: .82rem;
  background: linear-gradient(#3a3533, #3a3533) center top / calc(100% - 2 * var(--gutter)) 1px no-repeat;
}
.footer__grid > nav { grid-column: 1 / -1; }
.footer__grid > nav .footer__links { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
@media (min-width: 900px) {
  .footer__grid > nav { grid-column: auto; }
  .footer__grid > nav .footer__links { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1.1fr 1fr 1fr .8fr; padding-block: 56px 44px; }
  .footer__brand { grid-column: auto; flex-direction: column; align-items: flex-start; }
  .footer__brand img { width: 112px; }
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); z-index: 60; transform: translate(-50%, 20px);
  background: var(--ink); color: var(--on-ink); padding: 12px 18px; border-radius: 999px; font-weight: 600;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .25s var(--ease); max-width: calc(100% - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 1024px) { .toast { bottom: 32px; } }


/* ---------- Arvostelut: tilauslaput sinisellä liinalla ---------- */
.hero__rating {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; color: var(--on-ink);
  font-family: var(--f-display); font-weight: 600; letter-spacing: .03em; text-decoration: none; min-height: 32px;
}
.hero__rating:hover .hero__rating-text { text-decoration: underline; text-underline-offset: 3px; }
.stars { display: inline-block; position: relative; width: 90px; height: 17px; flex: none; }
.stars svg { position: absolute; inset: 0; width: 90px; height: 17px; }
.stars .stars__fill { clip-path: inset(0 var(--empty, 12%) 0 0); }
.stars .stars__bg { color: rgba(255,255,255,.28); }
.stars .stars__fill { color: #f2b632; }

.reviews { padding-block: clamp(40px, 6vw, 80px); }
.reviews__grid { display: grid; gap: 22px; align-items: start; }
@media (min-width: 960px) { .reviews__grid { grid-template-columns: 300px minmax(0, 1fr); gap: 32px; } .reviews__board { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--header-h) + 24px); } }
.reviews__board { display: grid; gap: 16px; justify-items: start; }
.reviews__title { font-family: var(--f-script); font-weight: 400; font-size: clamp(2.4rem, 1.8rem + 2vw, 3.2rem); line-height: 1; }
.score { display: grid; gap: 6px; }
.score__num { font-family: var(--f-display); font-weight: 800; font-size: 4.2rem; line-height: .9; font-variant-numeric: tabular-nums; }
.score__num small { font-size: 1.4rem; font-weight: 600; color: var(--on-ink-muted); }
.score__meta { color: var(--on-ink-muted); font-size: .95rem; }
.score .stars { width: 120px; height: 22px; }
.score .stars svg { width: 120px; height: 22px; }

.slips {
  list-style: none; margin: 0; padding: 14px 4px 18px; display: grid; grid-auto-flow: column; grid-auto-columns: min(82%, 340px);
  gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: thin;
}
.slip {
  position: relative; scroll-snap-align: start; background: #fff; color: var(--ink);
  padding: 22px 20px 18px; margin-top: 8px; box-shadow: 0 8px 18px -12px rgba(0,0,0,.55);
  display: flex; flex-direction: column; gap: 14px; break-inside: avoid; -webkit-column-break-inside: avoid;
}
/* repäisty yläreuna */
.slip::before {
  content: ""; position: absolute; left: 0; right: 0; top: -7px; height: 8px;
  background: radial-gradient(circle at 6px 8px, #fff 5.5px, transparent 6px) repeat-x; background-size: 12px 8px;
}
.slip:nth-child(odd) { transform: rotate(-1deg); }
.slip:nth-child(even) { transform: rotate(1.1deg); }
.slip__head { display: flex; align-items: center; gap: 8px; white-space: nowrap; border-bottom: 1px dashed var(--line); padding-bottom: 10px;
  font-family: var(--f-display); text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; color: var(--muted); }
.slip blockquote { margin: 0; font-size: 1.04rem; line-height: 1.5; }
.slip blockquote p::before { content: "”"; font-family: var(--f-script); color: var(--red); font-size: 2.2rem; line-height: 0; vertical-align: -.55em; margin-right: 4px; }
.slip__order {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; margin-top: auto;
  border-radius: 999px; border: 1.5px solid var(--ink); background: #fff; font-family: var(--f-display); font-weight: 700;
  font-size: 1rem; letter-spacing: .02em; text-align: left; line-height: 1.15; padding-block: 6px;
}
.slip__order:hover { background: var(--ink); color: #fff; }
@media (min-width: 960px) {
  .slips { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-columns: auto; gap: 30px 22px; overflow: visible; padding: 8px 0 0; align-items: start; }
}
@media (min-width: 1280px) { .slips { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.reviews__board .btn { font-size: .95rem; padding: 0 18px; min-height: 46px; }

/* Kuvapaikka (puuttuva kuva) */
.img-slot { display: grid; place-items: center; background: var(--paper-2); color: var(--muted); border: 2px dashed var(--line); font-size: .9rem; }

/* ---------- Liike pois ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .hero .swash { clip-path: none; }
}
