/* Grannmat website. One typeface (Geist) plus Geist Mono for numbers.
   Glass top bar, day and night switch, sliding pills, ripples and the FAQ motion come from Mass Check;
   Bullen, the cinnamon bun, is the guide. */
:root {
  color-scheme: light;
  --bg: #FBF6EC;
  --surface: #FFFFFF;
  --ink: #1B1712;
  --muted: #5E564A;
  --faint: #8A8174;
  --glass: rgba(255, 252, 245, 0.68);
  --glass-hi: rgba(255, 255, 255, 0.95);
  --well: rgba(27, 23, 18, 0.05);
  --edge: rgba(27, 23, 18, 0.10);
  --edge-hi: rgba(27, 23, 18, 0.26);
  --lingon: #C2352F;
  --lingon-ink: #FFFFFF;
  --skog: #1F5E46;
  --saffran: #F2A93B;
  --accent: var(--lingon);
  --h-from: #000000;
  --h-to: #666666;
  --shadow: 0 24px 60px -34px rgba(60, 40, 20, .35);
  --ripple: rgba(27, 23, 18, .12);
  --map-bg: #F1E9D8;
  --map-park: #D9E4C8;
  --map-water: #BFD8E2;
  --map-road: #FFFFFF;
  --map-road2: #E6DCC7;
  --font: "Geist", "Segoe UI", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, Consolas, monospace;
  --s25: 2px; --s50: 4px; --s75: 8px; --s100: 12px; --s200: 16px; --s300: 24px; --s400: 32px; --s500: 40px; --s600: 48px; --s700: 64px; --s800: 80px; --s900: 96px;
  --r-md: 6px; --r-lg: 8px; --r-xl: 12px; --r-2xl: 16px; --r-3xl: 24px; --r-full: 9999px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
:root[data-mode="dark"] {
  color-scheme: dark;
  --bg: #131209;
  --surface: #1F1F1F;
  --ink: #F4EFE6;
  --muted: #B3AA9C;
  --faint: #857D70;
  --glass: rgba(39, 39, 39, 0.62);
  --glass-hi: rgba(64, 62, 58, 0.95);
  --well: rgba(255, 255, 255, 0.06);
  --edge: rgba(255, 255, 255, 0.11);
  --edge-hi: rgba(255, 255, 255, 0.3);
  --lingon: #E5564F;
  --skog: #5FBF94;
  --saffran: #F5B85A;
  --h-from: #FFFFFF;
  --h-to: #9B9B9B;
  --shadow: 0 24px 60px -30px rgba(0, 0, 0, .7);
  --ripple: rgba(255, 255, 255, .2);
  --map-bg: #1F1F1F;
  --map-park: #24301F;
  --map-water: #1B2A31;
  --map-road: #313131;
  --map-road2: #272727;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); overflow-x: clip; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink); overflow-x: clip;
  font: 400 16px/24px var(--font); -webkit-font-smoothing: antialiased;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
h1, h2, h3, h4 { text-wrap: balance; font-weight: 600; }
p { text-wrap: pretty; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--r-lg); }
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
.ph { font-size: 1.15em; line-height: 1; flex: none; }

/* Text styles */
.heading-1 { font-size: 60px; line-height: 60px; font-weight: 600; letter-spacing: -0.03em; }
.heading-2 { font-size: 48px; line-height: 48px; font-weight: 600; letter-spacing: -0.025em; }
.heading-3 { font-size: 36px; line-height: 40px; font-weight: 600; letter-spacing: -0.02em; }
.heading-5 { font-size: 24px; line-height: 32px; font-weight: 600; letter-spacing: -0.01em; }
.heading-6 { font-size: 20px; line-height: 28px; font-weight: 600; }
.title-2 { font-size: 18px; line-height: 28px; font-weight: 500; }
.title-3 { font-size: 16px; line-height: 24px; font-weight: 500; }
.title-4 { font-size: 14px; line-height: 20px; font-weight: 500; }
.body-3 { font-size: 16px; line-height: 24px; }
.body-6 { font-size: 14px; line-height: 20px; }
.caption-3 { font-size: 12px; line-height: 16px; font-weight: 600; }
.caption-5 { font-size: 12px; line-height: 16px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }

.grain { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
:root[data-mode="dark"] .grain { mix-blend-mode: overlay; opacity: .08; }

.glass {
  background: var(--glass); border: 1px solid var(--edge); border-radius: var(--r-3xl);
  -webkit-backdrop-filter: blur(22px) saturate(160%); backdrop-filter: blur(22px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), var(--shadow);
}
@media (prefers-reduced-transparency: reduce) { .glass { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; } }

.rp { position: relative; overflow: hidden; isolation: isolate; }
.ripple { position: absolute; border-radius: 50%; pointer-events: none; background: var(--ripple); transform: scale(0); z-index: 3; }

.skip { position: fixed; left: 16px; top: -60px; z-index: 60; background: var(--ink); color: var(--bg); padding: var(--s75) var(--s100); border-radius: var(--r-lg); font-size: 14px; line-height: 20px; font-weight: 600; text-decoration: none; transition: transform 300ms var(--ease); }
.skip:focus { transform: translateY(76px); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s75); border: 1px solid transparent; border-radius: var(--r-full); padding: var(--s75) var(--s100); font-size: 16px; line-height: 24px; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform 300ms var(--ease), background-color 300ms var(--ease), border-color 300ms var(--ease), color 300ms var(--ease); }
.btn:active { transform: scale(0.98); }
.btn.primary { background: var(--lingon); color: var(--lingon-ink); padding-inline: var(--s200); }
.btn.primary:hover { background: color-mix(in srgb, var(--lingon) 88%, #000); }
.btn.ghost { background: var(--well); border-color: var(--edge); }
.btn.ghost:hover { background: var(--glass-hi); border-color: var(--edge-hi); }
.btn.sm { font-size: 14px; line-height: 20px; padding: var(--s50) var(--s100); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--edge); background: var(--well); display: inline-grid; place-items: center; cursor: pointer; flex: none; transition: background-color 300ms var(--ease), transform 300ms var(--ease); }
.icon-btn:hover { background: var(--glass-hi); }
.icon-btn:active { transform: scale(0.96); }

/* Top bar */
.top {
  position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--s100)); z-index: 30;
  width: max-content; max-width: 100%; margin: var(--s100) auto 0; display: flex; align-items: center; gap: var(--s200);
  padding: var(--s75); padding-inline-start: var(--s200); border-radius: var(--r-full);
}
.brand { display: flex; align-items: center; gap: var(--s75); font-weight: 600; font-size: 16px; line-height: 24px; text-decoration: none; white-space: nowrap; }
.brand .mark { width: 32px; height: 32px; border-radius: var(--r-lg); background: var(--lingon); display: grid; place-items: center; }
.navlinks { display: flex; gap: var(--s25); }
.navlinks a { position: relative; padding: var(--s75) var(--s100); border-radius: var(--r-full); font-size: 14px; line-height: 20px; font-weight: 500; text-decoration: none; color: var(--muted); transition: color 300ms var(--ease), background-color 300ms var(--ease); }
.navlinks a:hover { color: var(--ink); background: var(--well); }
.navlinks a[aria-current="true"] { color: var(--ink); background: var(--well); }
.controls { display: flex; align-items: center; gap: var(--s75); }
.cart-btn { position: relative; }
.cart-btn .count { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 var(--s50); border-radius: var(--r-full); background: var(--lingon); color: #fff; font: 600 12px/20px var(--mono); text-align: center; }
.menu-btn { display: none; }
.menu-btn .bars { position: relative; width: 18px; height: 12px; }
.menu-btn .bars i { position: absolute; left: 0; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform 500ms var(--ease), opacity 300ms var(--ease); }
.menu-btn .bars i:nth-child(1) { top: 0; } .menu-btn .bars i:nth-child(2) { top: 5px; } .menu-btn .bars i:nth-child(3) { top: 10px; }
.menu-btn[aria-expanded="true"] .bars i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .bars i:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] .bars i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.pill { position: relative; display: flex; gap: var(--s25); padding: 3px; border-radius: var(--r-full); background: var(--well); border: 1px solid var(--edge); }
.pill .ind { position: absolute; top: 3px; bottom: 3px; left: 0; width: 0; border-radius: var(--r-full); background: var(--glass-hi); box-shadow: 0 1px 2px rgba(0,0,0,.15), inset 0 0 0 1px var(--edge); pointer-events: none; }
.pill button { position: relative; z-index: 1; border: 0; background: transparent; cursor: pointer; padding: var(--s50) var(--s100); border-radius: var(--r-full); font-size: 12px; line-height: 16px; font-weight: 600; color: var(--muted); transition: color 300ms var(--ease); white-space: nowrap; }
.pill button[aria-pressed="true"] { color: var(--ink); }
.pill.lg button { font-size: 14px; line-height: 20px; padding: var(--s75) var(--s200); }

.daynight { position: relative; width: 62px; height: 32px; border-radius: var(--r-full); border: 1px solid var(--edge); cursor: pointer; padding: 0; overflow: hidden; flex: none; background: #8ccdf0; }
.daynight .night { position: absolute; inset: 0; background: #14204a; opacity: 0; }
.daynight .star { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #fff; opacity: 0; }
.daynight .cloud { position: absolute; height: 8px; border-radius: 8px; background: #fff; opacity: .95; }
.daynight .cloud::before { content: ""; position: absolute; width: 9px; height: 9px; border-radius: 50%; background: #fff; top: -4px; left: 4px; }
.daynight .knob { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #ffc93c; box-shadow: 0 0 12px rgba(255,201,60,.7), inset -2px -2px 4px rgba(0,0,0,.12); }
.daynight .crater { position: absolute; border-radius: 50%; background: rgba(120,130,150,.55); opacity: 0; }

.mnav { position: fixed; inset: 0; z-index: 29; display: grid; align-content: start; gap: var(--s100); padding: 120px var(--s300) var(--s400); background: color-mix(in srgb, var(--bg) 88%, transparent); -webkit-backdrop-filter: blur(28px); backdrop-filter: blur(28px); }
.mnav a { font-size: 30px; line-height: 36px; font-weight: 600; text-decoration: none; padding-block: var(--s75); }
.mnav .row { display: flex; gap: var(--s100); align-items: center; margin-top: var(--s300); }

@media (max-width: 1040px) {
  .navlinks, .top .login-btn { display: none; }
  .menu-btn { display: inline-grid; }
  .top { width: 100%; justify-content: space-between; }
}
@media (max-width: 520px) { .top .pill, .top .daynight { display: none; } .brand span { font-size: 16px; } }

main { position: relative; z-index: 1; max-width: 1240px; margin: 0 auto; display: grid; gap: var(--s900); padding-block: var(--s700) var(--s800); }
main > * { min-width: 0; }
section { scroll-margin-top: 96px; }
.eyebrow { display: inline-flex; align-items: center; gap: var(--s75); font: 500 12px/16px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.eyebrow .live { width: 8px; height: 8px; border-radius: 50%; background: var(--skog); box-shadow: 0 0 0 0 color-mix(in srgb, var(--skog) 60%, transparent); animation: live 2s var(--ease) infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.grad { background: linear-gradient(90deg, var(--h-from), var(--h-to)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-head { display: grid; gap: var(--s100); max-width: 680px; margin-bottom: var(--s400); }
.section-head p { color: var(--muted); font-size: 18px; line-height: 28px; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr); gap: var(--s600); align-items: center; min-height: min(640px, calc(100svh - 140px)); padding-top: var(--s400); }
.hero-copy { display: grid; gap: var(--s300); }
.hero h1, .hero .sub { max-width: 680px; }
.hero .sub { font-size: 18px; line-height: 28px; color: var(--muted); }
.finder { display: flex; align-items: center; gap: var(--s75); padding: var(--s75); padding-inline-start: var(--s200); border-radius: var(--r-full); max-width: 560px; }
.finder .ph-magnifying-glass { color: var(--muted); }
.finder input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-size: 16px; line-height: 24px; padding-block: var(--s75); }
.finder input::placeholder { color: var(--faint); }
.finder select { border: 0; background: var(--well); border-radius: var(--r-full); padding: var(--s75) var(--s100); font-size: 14px; line-height: 20px; font-weight: 500; cursor: pointer; max-width: 150px; }
.chips { display: flex; flex-wrap: wrap; gap: var(--s75); }
.chip-stat { display: inline-flex; gap: var(--s75); align-items: baseline; padding: var(--s50) var(--s100); border-radius: var(--r-full); border: 1px solid var(--edge); background: var(--glass); font-size: 14px; line-height: 20px; color: var(--muted); }
.chip-stat b { font-family: var(--mono); font-weight: 500; color: var(--ink); }

.hero-art { position: relative; aspect-ratio: 1 / 1.02; }
.hero-art .map-card { position: absolute; inset: 6% 0 10% 10%; overflow: hidden; padding: 0; }
.hero-art .map-card svg { width: 100%; height: 100%; display: block; }
.hero-art .dish-float { position: absolute; width: 46%; padding: var(--s75); border-radius: var(--r-3xl); display: grid; gap: var(--s75); }
.hero-art .dish-float img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-2xl); }
.hero-art .dish-float .meta { display: flex; justify-content: space-between; align-items: center; gap: var(--s75); padding: 0 var(--s50) var(--s50); }
.hero-art .f1 { left: 0; bottom: 0; }
.hero-art .f2 { right: -2%; top: 0; width: 38%; }
.hero-art .f2 .meta { flex-direction: column; align-items: start; gap: 0; }

.hero-copy, .hero-art { min-width: 0; }
@media (max-width: 600px) {
  .finder { display: grid; grid-template-columns: auto minmax(0, 1fr); border-radius: var(--r-3xl); padding: var(--s75) var(--s75) var(--s75) var(--s200); row-gap: var(--s75); }
  .finder select { grid-column: 1 / -1; max-width: none; width: 100%; }
  .finder .btn { grid-column: 1 / -1; }
  .hero-art .f2 { width: 44%; }
  .hero-art .dish-float .meta { padding: 0 var(--s25); }
}
@media (max-width: 960px) {
  main { padding-top: var(--s300); }
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: var(--s500); padding-top: 0; }
  .hero-art { max-width: 520px; width: 100%; justify-self: center; }
  .heading-1 { font-size: 36px; line-height: 40px; }
  .heading-2 { font-size: 36px; line-height: 40px; }
}

/* Explore */
.explore-bar { display: flex; flex-wrap: wrap; gap: var(--s100); align-items: center; justify-content: space-between; margin-bottom: var(--s300); }
.filters { overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.filters::-webkit-scrollbar { display: none; }
.view-toggle { display: none; }
.explore { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: var(--s300); align-items: start; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s200); }
.card { position: relative; display: grid; gap: var(--s100); padding: var(--s75); border-radius: var(--r-3xl); background: var(--surface); border: 1px solid var(--edge); cursor: pointer; text-align: start; width: 100%;
  transition: transform 500ms var(--ease), box-shadow 500ms var(--ease), border-color 300ms var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--edge-hi); }
.card:active { transform: scale(0.98); }
.card .pic { position: relative; border-radius: var(--r-2xl); overflow: hidden; aspect-ratio: 4 / 3; background: var(--well); }
.card .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease); }
.card:hover .pic img { transform: scale(1.05); }
.badge { position: absolute; top: var(--s75); left: var(--s75); display: inline-flex; align-items: center; gap: var(--s50); padding: var(--s50) var(--s75); border-radius: var(--r-lg); font-size: 12px; line-height: 16px; font-weight: 600; background: rgba(255,255,255,.92); color: #1B1712; }
.badge.rada { background: var(--skog); color: #fff; }
:root[data-mode="dark"] .badge.rada { color: #0d1a13; }
.card .body { display: grid; gap: var(--s50); padding: 0 var(--s75) var(--s75); }
.card .row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s100); }
.card .price { font: 500 16px/24px var(--mono); white-space: nowrap; }
.card .price s { color: var(--faint); font-size: 12px; margin-inline-start: var(--s50); }
.card .meta { display: flex; flex-wrap: wrap; gap: var(--s75); align-items: center; font-size: 14px; line-height: 20px; color: var(--muted); }
.card .meta .ph-star-fill { color: var(--saffran); }
.card.hot { border-color: var(--accent); }
.empty { grid-column: 1 / -1; display: grid; justify-items: center; gap: var(--s100); text-align: center; padding: var(--s700) var(--s300); border-radius: var(--r-3xl); border: 1px dashed var(--edge-hi); color: var(--muted); }

.map-wrap { position: sticky; top: 96px; border-radius: var(--r-3xl); overflow: hidden; border: 1px solid var(--edge); background: var(--map-bg); aspect-ratio: 4 / 5; max-height: calc(100svh - 120px); width: 100%; }
.map-wrap svg { width: 100%; height: 100%; display: block; }
.pin { cursor: pointer; }
.pin .tag { transition: transform 500ms var(--ease); transform-box: fill-box; transform-origin: 50% 100%; }
.pin:hover .tag, .pin.hot .tag { transform: scale(1.18); }
.pin.dim { opacity: .25; }
.map-legend { position: absolute; left: var(--s100); bottom: var(--s100); display: flex; gap: var(--s100); padding: var(--s50) var(--s100); border-radius: var(--r-full); font-size: 12px; line-height: 16px; }
.map-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-inline-end: var(--s50); }

@media (max-width: 1100px) {
  .view-toggle { display: flex; }
  .explore { grid-template-columns: minmax(0, 1fr); }
  .explore[data-view="list"] .map-wrap { display: none; }
  .explore[data-view="map"] .grid { display: none; }
  .map-wrap { position: relative; top: 0; aspect-ratio: 4 / 5; max-height: 70svh; }
}
@media (max-width: 620px) { .grid { grid-template-columns: minmax(0, 1fr); } }

/* Tagline */
.tagline { max-width: 900px; padding-block: var(--s700); }
.tagline p { font-size: 60px; line-height: 60px; font-weight: 600; letter-spacing: -0.03em; text-wrap: balance; }
.tagline .w { color: color-mix(in srgb, var(--ink) 28%, transparent); transition: color 600ms var(--ease); }
.tagline .w.on { color: var(--ink); }
.tagline .w.hl.on { color: var(--lingon); }
@media (max-width: 760px) { .tagline p { font-size: 36px; line-height: 40px; } }

/* Rädda maten */
.rada-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s200); }
.rada-card { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: var(--s200); align-items: center; padding: var(--s100); border-radius: var(--r-3xl); background: var(--surface); border: 1px solid var(--edge); cursor: pointer; text-align: start; transition: transform 500ms var(--ease), border-color 300ms var(--ease); }
.rada-card:hover { transform: translateY(-4px); border-color: var(--skog); }
.rada-card:active { transform: scale(0.98); }
.rada-card img { width: 96px; height: 96px; object-fit: cover; border-radius: var(--r-xl); }
.rada-card .t { display: grid; gap: var(--s50); }
.timer { display: inline-flex; align-items: center; gap: var(--s50); font: 500 14px/20px var(--mono); color: var(--skog); }
.timer.low { color: var(--lingon); }
@media (max-width: 960px) { .rada-row { grid-template-columns: minmax(0, 1fr); } }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s200); counter-reset: step; }
.step { display: grid; gap: var(--s200); padding: var(--s100); border-radius: var(--r-3xl); background: var(--surface); border: 1px solid var(--edge); }
.step img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-xl); width: 100%; }
.step .t { display: grid; gap: var(--s75); padding: 0 var(--s100) var(--s100); }
.step .n { font: 500 12px/16px var(--mono); color: var(--accent); letter-spacing: .12em; }
@media (max-width: 860px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* Proof */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s200); margin-bottom: var(--s200); }
.stat { padding: var(--s300); display: grid; gap: var(--s75); align-content: start; border-radius: var(--r-3xl); background: var(--surface); border: 1px solid var(--edge); }
.stat .big { font: 500 48px/1 var(--mono); letter-spacing: -0.03em; }
.stat .t { font-size: 14px; line-height: 20px; font-weight: 600; }
.stat p { font-size: 14px; line-height: 20px; color: var(--muted); }
.quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s200); }
.quote { display: grid; gap: var(--s200); padding: var(--s300); border-radius: var(--r-3xl); background: var(--surface); border: 1px solid var(--edge); }
.quote blockquote { font-size: 18px; line-height: 28px; font-weight: 500; }
.quote .who { display: flex; align-items: center; gap: var(--s100); }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 14px; line-height: 20px; font-weight: 600; flex: none; }
.stars { color: var(--saffran); display: inline-flex; gap: var(--s25); }
@media (max-width: 960px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .quotes { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .stats { grid-template-columns: minmax(0, 1fr); } }

/* Sell */
.sell { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: var(--s600); align-items: center; padding: var(--s600); border-radius: var(--r-3xl); background: var(--surface); border: 1px solid var(--edge); }
.sell .t { display: grid; gap: var(--s200); justify-items: start; }
.sell ul { display: grid; gap: var(--s100); }
.sell li { display: flex; gap: var(--s100); align-items: start; color: var(--muted); }
.sell li i { color: var(--skog); margin-top: var(--s25); font-size: 20px; flex: none; }
.sell li b { color: var(--ink); font-weight: 600; }
.sell .bun { width: 280px; height: 280px; cursor: pointer; }
.sell .bun svg, .auth-bun svg { width: 100%; height: 100%; overflow: visible; display: block; }
@media (max-width: 860px) { .sell { grid-template-columns: minmax(0, 1fr); padding: var(--s300); } .sell .bun { width: 200px; height: 200px; justify-self: center; order: -1; } }

/* FAQ */
.faq { display: grid; gap: var(--s75); max-width: 860px; }
.faq details { border-radius: var(--r-2xl); background: var(--surface); border: 1px solid var(--edge); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--s200); padding: var(--s200) var(--s300); font-size: 16px; line-height: 24px; font-weight: 500; border-radius: var(--r-2xl); transition: background-color 300ms var(--ease); }
.faq summary::-webkit-details-marker { display: none; }
@media (hover: hover) { .faq summary:hover { background: var(--well); } }
.faq summary .ph { color: var(--muted); }
.faq .a-wrap { overflow: hidden; }
.faq .a { padding: 0 var(--s300) var(--s300); color: var(--muted); max-width: 72ch; }

/* Final CTA */
.final { display: grid; justify-items: center; text-align: center; gap: var(--s300); padding-block: var(--s700); }
.final h2 { max-width: 680px; }
.final p { color: var(--muted); font-size: 18px; line-height: 28px; max-width: 560px; }

footer { position: relative; z-index: 1; max-width: 1240px; margin: 0 auto; padding-block: var(--s400) var(--s600); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s200); font-size: 14px; line-height: 20px; color: var(--faint); border-top: 1px solid var(--edge); }
footer nav { display: flex; flex-wrap: wrap; gap: var(--s200); }
footer a, footer button.link { color: var(--muted); text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; font-size: 14px; line-height: 20px; }
footer a:hover, footer button.link:hover { color: var(--ink); }

/* Overlays */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(15, 12, 8, .42); opacity: 0; }
.drawer { position: fixed; z-index: 41; top: var(--s100); right: var(--s100); bottom: var(--s100); width: min(480px, calc(100vw - 24px)); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; border-radius: var(--r-3xl); background: var(--surface); border: 1px solid var(--edge); box-shadow: 0 40px 80px -30px rgba(0,0,0,.5); overflow: hidden; transform: translateX(110%); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; gap: var(--s100); padding: var(--s200) var(--s200) var(--s100) var(--s300); }
.drawer-body { overflow-y: auto; padding: 0 var(--s300) var(--s300); display: flex; flex-direction: column; gap: var(--s300); overscroll-behavior: contain; min-height: 0; }
.drawer-body > * { flex: none; }
.drawer-foot { padding: var(--s200) var(--s300); border-top: 1px solid var(--edge); display: flex; gap: var(--s100); align-items: center; justify-content: space-between; }
.grab { display: none; }
@media (max-width: 640px) {
  .drawer { top: auto; left: 0; right: 0; bottom: 0; width: 100%; max-height: 92svh; border-radius: var(--r-3xl) var(--r-3xl) 0 0; transform: translateY(110%); padding-bottom: env(safe-area-inset-bottom, 0px); }
  .grab { display: block; position: absolute; z-index: 2; left: 50%; top: var(--s75); width: 40px; height: 5px; margin-left: -20px; border-radius: 5px; background: var(--edge-hi); }
  .drawer-head { padding-top: var(--s300); }
}
.dish-hero { position: relative; border-radius: var(--r-2xl); overflow: hidden; aspect-ratio: 4 / 3; }
.dish-hero img { width: 100%; height: 100%; object-fit: cover; }
.seller { display: flex; gap: var(--s100); align-items: center; padding: var(--s100); border-radius: var(--r-2xl); background: var(--well); }
.seller .grow { flex: 1; min-width: 0; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s75); }
.fact { padding: var(--s100); border-radius: var(--r-xl); border: 1px solid var(--edge); display: grid; gap: var(--s25); }
.fact b { font: 500 14px/20px var(--mono); }
.taglist { display: flex; flex-wrap: wrap; gap: var(--s50); }
.tagchip { padding: var(--s50) var(--s100); border-radius: var(--r-full); font-size: 12px; line-height: 16px; font-weight: 500; background: var(--well); border: 1px solid var(--edge); }
.tagchip.alg { border-color: color-mix(in srgb, var(--saffran) 60%, transparent); background: color-mix(in srgb, var(--saffran) 14%, transparent); }
.stepper { display: inline-flex; align-items: center; gap: var(--s75); padding: var(--s50); border-radius: var(--r-full); background: var(--well); border: 1px solid var(--edge); }
.stepper button { width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--surface); cursor: pointer; display: grid; place-items: center; }
.stepper button:active { transform: scale(0.94); }
.stepper b { min-width: 20px; text-align: center; font: 500 16px/24px var(--mono); }
.rev { display: grid; gap: var(--s50); padding-block: var(--s100); border-top: 1px solid var(--edge); }
.cart-line { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: var(--s100); align-items: center; }
.cart-line img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--r-xl); }
.total { display: flex; justify-content: space-between; font-size: 18px; line-height: 28px; font-weight: 600; }
.total .mono { font-weight: 500; }
.skel { border-radius: var(--r-xl); background: var(--well); position: relative; overflow: hidden; }
.skel::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, var(--glass-hi), transparent); animation: shimmer 1.2s var(--ease) infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
.done { display: grid; justify-items: center; text-align: center; gap: var(--s200); padding-block: var(--s500); }
.done .tick { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--skog); color: #fff; font-size: 36px; }
.code { font: 500 30px/36px var(--mono); letter-spacing: .1em; padding: var(--s100) var(--s300); border-radius: var(--r-2xl); border: 1px dashed var(--edge-hi); }

.fly { position: fixed; z-index: 60; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; pointer-events: none; box-shadow: 0 10px 30px rgba(0,0,0,.3); border: 3px solid #fff; }

/* Modal (auth and legal) */
.modal { position: fixed; z-index: 42; inset: 0; display: grid; place-items: center; padding: var(--s200); overflow-y: auto; }
.modal-card { position: relative; width: min(440px, 100%); border-radius: var(--r-3xl); background: var(--surface); border: 1px solid var(--edge); box-shadow: 0 40px 80px -30px rgba(0,0,0,.5); padding: var(--s300); display: grid; gap: var(--s200); margin-top: 120px; }
.modal-card.plain { margin-top: 0; }
.modal-x { position: absolute; top: var(--s100); right: var(--s100); }
.auth-bun { position: absolute; left: 50%; top: -150px; width: 180px; height: 180px; margin-left: -90px; pointer-events: none; }
.auth-bubble { position: absolute; top: -132px; left: calc(50% + 86px); max-width: 140px; padding: var(--s75) var(--s100); border-radius: var(--r-xl); background: var(--ink); color: var(--bg); font-size: 14px; line-height: 20px; font-weight: 500; opacity: 0; transform: scale(.6); transform-origin: 0 100%; }
@media (max-width: 520px) { .auth-bubble { left: auto; right: 0; } }
.af { display: grid; gap: var(--s50); }
.af > span { font-size: 14px; line-height: 20px; font-weight: 500; }
.af-in { display: flex; align-items: center; gap: var(--s75); padding: var(--s75) var(--s100); border-radius: var(--r-xl); border: 1px solid var(--edge); background: var(--well); transition: border-color 300ms var(--ease), background-color 300ms var(--ease); }
.af-in:focus-within { border-color: var(--accent); background: var(--surface); }
.af-in input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-size: 16px; line-height: 24px; }
.af-in .ph { color: var(--muted); }
.af.err .af-in { border-color: var(--lingon); }
.af-err { color: var(--lingon); font-size: 12px; line-height: 16px; min-height: 16px; }
.eye-btn { border: 0; background: var(--surface); border-radius: var(--r-full); padding: var(--s50) var(--s100); font-size: 12px; line-height: 16px; font-weight: 600; cursor: pointer; }
.meter { display: flex; gap: var(--s50); align-items: center; }
.meter i { flex: 1; height: 4px; border-radius: 4px; background: var(--well); transition: background-color 300ms var(--ease); }
.meter b { font-size: 12px; line-height: 16px; font-weight: 500; min-width: 64px; text-align: end; color: var(--muted); }
.meter[data-s="1"] i:nth-child(1) { background: var(--lingon); }
.meter[data-s="2"] i:nth-child(-n+2) { background: var(--saffran); }
.meter[data-s="3"] i { background: var(--skog); }
.chk { display: flex; gap: var(--s100); align-items: start; border: 0; background: none; padding: 0; cursor: pointer; text-align: start; font-size: 14px; line-height: 20px; color: var(--muted); }
.chk .box { width: 20px; height: 20px; border-radius: var(--r-md); border: 1.5px solid var(--edge-hi); display: grid; place-items: center; flex: none; color: transparent; transition: background-color 300ms var(--ease); }
.chk[aria-checked="true"] .box { background: var(--skog); border-color: var(--skog); color: #fff; }
.or { display: flex; align-items: center; gap: var(--s100); color: var(--faint); font-size: 12px; line-height: 16px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--edge); }
.alt { display: grid; gap: var(--s75); }
.bankid { background: #183E4F; color: #fff; }
.apple { background: var(--ink); color: var(--bg); }
.switch-line { text-align: center; font-size: 14px; line-height: 20px; color: var(--muted); }
.link-btn { border: 0; background: none; padding: 0; color: var(--accent); font-weight: 600; cursor: pointer; font-size: 14px; line-height: 20px; }

/* Bullen, the guide */
.buddy { position: fixed; z-index: 35; bottom: calc(env(safe-area-inset-bottom, 0px) + var(--s300)); right: max(24px, env(safe-area-inset-right, 0px)); width: 84px; height: 84px; border: 0; padding: 0; background: transparent; cursor: pointer; }
.buddy svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 10px 18px rgba(0,0,0,.25)); }
.say { position: fixed; z-index: 35; bottom: calc(env(safe-area-inset-bottom, 0px) + 120px); right: max(24px, env(safe-area-inset-right, 0px)); width: max-content; max-width: min(300px, calc(100vw - 48px)); padding: var(--s100) var(--s200); border-radius: var(--r-2xl); font-size: 14px; line-height: 20px; transform-origin: 85% 100%; display: grid; gap: var(--s100); }
.say .qs { display: flex; flex-wrap: wrap; gap: var(--s50); }
.say .qs button { border: 1px solid var(--edge); background: var(--surface); border-radius: var(--r-full); padding: var(--s50) var(--s100); font-size: 12px; line-height: 16px; font-weight: 500; cursor: pointer; }
.say .qs button:hover { border-color: var(--edge-hi); }
@media (max-width: 640px) { .buddy { width: 64px; height: 64px; right: 16px; bottom: calc(env(safe-area-inset-bottom, 0px) + 16px); } .say { right: 16px; bottom: calc(env(safe-area-inset-bottom, 0px) + 92px); } }

.toast { position: fixed; z-index: 70; left: 0; right: 0; margin: 0 auto; width: max-content; max-width: calc(100vw - 32px); bottom: var(--s300); display: flex; gap: var(--s75); align-items: center; padding: var(--s100) var(--s200); border-radius: var(--r-full); background: var(--ink); color: var(--bg); font-size: 14px; line-height: 20px; font-weight: 500; opacity: 0; transform: translateY(24px); pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 1ms !important; animation: none !important; }
  .tagline .w { color: var(--ink); }
}

/* ---------- v2: backend forms, account, motion helpers, background ---------- */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto !important; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

.fly { left: 0; top: 0; }
.plus-one { position: fixed; z-index: 61; left: 0; top: 0; padding: var(--s25) var(--s75); border-radius: var(--r-full); background: var(--lingon); color: #fff; font: 600 12px/16px var(--mono); pointer-events: none; }
.ghost-img { position: fixed; z-index: 45; left: 0; top: 0; object-fit: cover; border-radius: var(--r-2xl); pointer-events: none; transform-origin: 0 0; box-shadow: 0 30px 60px -20px rgba(0,0,0,.45); }

.card { transform-style: preserve-3d; will-change: transform; }
.card:hover { transform: none; }
.card.soldout .pic img { filter: grayscale(1); opacity: .6; }
.badge.out { background: var(--ink); color: var(--bg); }
.badge.new { background: var(--saffran); color: #1B1712; }

/* Streets behind everything: flat lines, slow parallax */
.bg-streets { position: fixed; left: 0; right: 0; top: -20vh; height: 140vh; z-index: 0; pointer-events: none; color: var(--edge); opacity: .7; }
.bg-streets svg { width: 100%; height: 100%; display: block; }
.bg-dots { position: fixed; inset: 0; z-index: 0; pointer-events: none; background-image: radial-gradient(var(--edge) 1px, transparent 1.2px); background-size: 28px 28px; opacity: .55; -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%); }
@media (prefers-reduced-motion: reduce) { .bg-streets { transform: none !important; } }

.mode-badge { display: inline-flex; align-items: center; gap: var(--s50); }
.mode-badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--saffran); }
.mode-badge.server i { background: var(--skog); }

/* forms in drawers */
.form { display: flex; flex-direction: column; gap: var(--s200); }
.field { display: grid; gap: var(--s50); }
.field > span { font-size: 14px; line-height: 20px; font-weight: 500; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid var(--edge); background: var(--well); border-radius: var(--r-xl); padding: var(--s75) var(--s100); font-size: 16px; line-height: 24px; outline: none; transition: border-color 300ms var(--ease), background-color 300ms var(--ease); }
.field textarea { resize: vertical; min-height: 88px; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); background: var(--surface); }
.field.err input, .field.err textarea { border-color: var(--lingon); }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s100); }
.imgpick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s75); }
.imgpick button { padding: 0; border: 2px solid transparent; border-radius: var(--r-xl); overflow: hidden; cursor: pointer; aspect-ratio: 1; background: var(--well); transition: border-color 300ms var(--ease), transform 300ms var(--ease); }
.imgpick button img { width: 100%; height: 100%; object-fit: cover; }
.imgpick button[aria-pressed="true"] { border-color: var(--lingon); transform: scale(0.96); }
.chipset { display: flex; flex-wrap: wrap; gap: var(--s50); }
.chipset button { border: 1px solid var(--edge); background: var(--well); border-radius: var(--r-full); padding: var(--s50) var(--s100); font-size: 14px; line-height: 20px; font-weight: 500; cursor: pointer; transition: background-color 300ms var(--ease), color 300ms var(--ease), border-color 300ms var(--ease); }
.chipset button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: var(--s200); padding: var(--s100); border-radius: var(--r-xl); border: 1px solid var(--edge); background: var(--well); cursor: pointer; text-align: start; width: 100%; }
.toggle .knob2 { position: relative; width: 44px; height: 26px; border-radius: var(--r-full); background: var(--edge-hi); flex: none; transition: background-color 300ms var(--ease); }
.toggle .knob2::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform 500ms var(--ease); }
.toggle[aria-checked="true"] .knob2 { background: var(--skog); }
.toggle[aria-checked="true"] .knob2::after { transform: translateX(18px); }
.form-err { color: var(--lingon); font-size: 14px; line-height: 20px; min-height: 20px; }
.order-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: var(--s100); align-items: center; padding: var(--s100); border-radius: var(--r-2xl); border: 1px solid var(--edge); }
.order-row img { width: 56px; height: 56px; border-radius: var(--r-lg); object-fit: cover; }
.order-row .code { font-size: 14px; line-height: 20px; padding: var(--s50) var(--s100); border-radius: var(--r-lg); letter-spacing: .06em; }
.danger { color: var(--lingon); border-color: color-mix(in srgb, var(--lingon) 40%, transparent) !important; }

/* v3 background: the map is only the hero's, the rest of the page gets sparse kitchen doodles */
.bg-streets { -webkit-mask-image: linear-gradient(#000 55%, transparent 92%); mask-image: linear-gradient(#000 55%, transparent 92%); }
.bg-doodles { position: fixed; left: 0; right: 0; top: -10vh; height: 130vh; z-index: 0; pointer-events: none; color: color-mix(in srgb, var(--ink) 15%, transparent); opacity: 0; }
.bg-doodles svg { width: 100%; height: 100%; display: block; }
:root[data-mode="dark"] .bg-doodles { color: rgba(255, 255, 255, .12); }
@media (max-width: 760px) { .bg-doodles .dd:nth-child(3n) { display: none; } }

/* v4 phone layout: two dishes per row, swipeable rows instead of long stacks */
@media (max-width: 760px) {
  main { gap: var(--s700); }
  .section-head { margin-bottom: var(--s300); }
  .section-head p { font-size: 16px; line-height: 24px; }
  .rail { display: grid !important; grid-auto-flow: column; grid-template-columns: none !important; grid-auto-columns: 82%; gap: var(--s100) !important;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
    margin-inline: -16px; padding: var(--s50) 16px var(--s200); scroll-padding-inline: 16px; }
  .rail::-webkit-scrollbar { display: none; }
  .rail > * { scroll-snap-align: start; }
  .rada-row.rail { grid-auto-columns: 86%; }
  .steps.rail { grid-auto-columns: 74%; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s75); }
  .stat { padding: var(--s200); }
  .stat .big { font-size: 36px; }
  .stat p { display: none; }
  .tagline { padding-block: var(--s300); }
  .sell .bun { width: 150px; height: 150px; }
  .hero-art { max-width: 440px; }
  .final { padding-block: var(--s400); }
  .rail-dots { display: flex; justify-content: center; gap: var(--s50); margin-top: calc(var(--s100) * -1); }
  .rail-dots i { width: 6px; height: 6px; border-radius: var(--r-full); background: var(--edge-hi); transition: width 500ms var(--ease), background-color 300ms var(--ease); }
  .rail-dots i.on { width: 18px; background: var(--ink); }
}
@media (min-width: 761px) { .rail-dots { display: none; } }
@media (max-width: 620px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s75); }
  .card { padding: var(--s50); border-radius: var(--r-2xl); gap: var(--s75); }
  .card .pic { aspect-ratio: 1; border-radius: var(--r-xl); }
  .card .body { padding: 0 var(--s50) var(--s50); gap: var(--s25); }
  .card .row { flex-direction: column; align-items: start; gap: 0; }
  .card .title-3 { font-size: 14px; line-height: 20px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .card .price { font-size: 14px; line-height: 20px; }
  .card .meta { font-size: 12px; line-height: 16px; gap: var(--s50); }
  .card .meta > span:first-child { display: none; }
  .badge { top: var(--s50); left: var(--s50); padding: var(--s25) var(--s75); }
  .explore-bar { margin-bottom: var(--s200); }
}
