/* Easy Shop portfolio. The page chrome stays ink-on-concrete; every colour on
   it comes from the stores themselves (--brand / --on-brand, set per store
   from its own API). The roller shutter is the one loading + motion motif. */

:root {
  --ground: #eceeec;
  --ground-2: #e1e5e2;
  --surface: #ffffff;
  --ink: #121615;
  --ink-2: #3c4441;
  --muted: #59625e;
  --line: #d2d8d4;
  --steel-1: #cdd3cf;
  --steel-2: #b4bcb7;
  --wa: #25d366;
  --wa-ink: #052e1b;

  --brand: var(--ink);
  --on-brand: #ffffff;

  --display: "Alexandria", "Readex Pro", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --body: "Readex Pro", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;

  --r-lg: 26px;
  --r-md: 16px;
  --r-sm: 11px;
  --gutter: 20px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --shadow: 0 1px 0 rgba(18, 22, 21, .05), 0 22px 44px -28px rgba(18, 22, 21, .38);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  scrollbar-color: var(--steel-2) var(--ground);
}
html:has(dialog[open]) { overflow: hidden; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink);
  background: var(--ground);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--ink); color: #fff; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: .08em; }
h1, h2, h3, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1240px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.sprite { position: absolute; }
.sr {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.ico { width: 1.15em; height: 1.15em; flex: none; }

.skip {
  position: absolute; inset-inline-start: 12px; top: -80px; z-index: 50;
  padding: 10px 16px; border-radius: 12px;
  background: var(--ink); color: #fff; font-weight: 500; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 10px 22px;
  border: 1.5px solid transparent; border-radius: 999px;
  font-family: var(--body); font-weight: 600; font-size: 1rem; line-height: 1.3;
  text-decoration: none; text-align: center; white-space: nowrap; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn-sm { min-height: 42px; padding: 8px 18px; font-size: .94rem; }
.btn-lg { min-height: 56px; padding: 12px 30px; font-size: 1.06rem; }

.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #2a3230; }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-wa { background: var(--wa); color: var(--wa-ink); }
.btn-wa:hover { background: #1fbd5a; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--ground); }
.btn-onbrand { background: var(--on-brand); color: var(--brand); }
.btn-onbrand:hover { background: color-mix(in srgb, var(--on-brand) 86%, var(--brand)); }
.btn-ghost-onbrand { background: transparent; color: var(--on-brand); border-color: currentColor; }
.btn-ghost-onbrand:hover { background: color-mix(in srgb, var(--on-brand) 14%, transparent); }

/* ---------- Header ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: var(--ground);
  border-bottom: 1px solid var(--line);
}
.top-in { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-inline-end: auto; }
.brand-mark { width: 34px; height: 34px; color: var(--ink); }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 1.2rem; line-height: 1; }
.top-nav { display: none; gap: 28px; }
.top-nav a { font-weight: 500; text-decoration: none; padding: 8px 2px; }
.top-nav a:hover { text-decoration: underline; }

/* ---------- Hero ---------- */
.hero { padding: 36px 0 64px; }
.hero-in { display: grid; gap: 36px; }
.hero h1 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(2.5rem, 1.1rem + 6.2vw, 5.1rem);
  line-height: 1.22;
  text-wrap: balance;
}
.lead {
  margin-top: 18px; max-width: 34em;
  font-size: clamp(1.04rem, .98rem + .35vw, 1.22rem);
  color: var(--ink-2);
  text-wrap: pretty;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.tally {
  display: flex; align-items: center; gap: 10px;
  margin-top: 22px; min-height: 1.75em;
  font-weight: 500; color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.tally b { font-weight: 600; color: var(--ink); }
.pulse {
  position: relative; flex: none; width: 10px; height: 10px; border-radius: 50%;
  background: #12a150;
}
.pulse::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: inherit; animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse { from { transform: scale(1); opacity: .55; } to { transform: scale(3.2); opacity: 0; } }

/* ---------- Shop sign (shared by hero stage, cards, dialog) ---------- */
.sign {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 20px;
  background: var(--brand); color: var(--on-brand);
  transition: background-color .35s ease, color .35s ease;
}
.sign :focus-visible, .front :focus-visible { outline-color: var(--on-brand); }
.plaque {
  flex: none; display: grid; place-items: center;
  width: 58px; height: 58px; overflow: hidden;
  border-radius: 15px; background: #fff; color: var(--ink);
  font-family: var(--display); font-weight: 800; font-size: 1.5rem; line-height: 1;
  box-shadow: 0 0 0 1px rgba(18, 22, 21, .08);
}
.plaque img { width: 100%; height: 100%; object-fit: contain; padding: 5px; }
.sign-id { min-width: 0; flex: 1; }
@media (max-width: 479px) {
  .shop .sign, .inside-sign { gap: 11px; padding: 16px; }
  .shop .plaque, .inside .plaque { width: 52px; height: 52px; border-radius: 14px; }
  .sign-domain { font-size: .8rem; }
  .live { padding: 3px 9px; font-size: .72rem; gap: 6px; }
  .front .sign { padding: 18px 16px 14px; gap: 11px; }
  .front .plaque { width: 56px; height: 56px; border-radius: 15px; }
  .front-shelf { padding: 0 16px; gap: 8px; }
  .front-shelf .tile { padding: 6px 6px 8px; }
  .front-shelf .tile-name { font-size: .8rem; }
  .front-shelf .tile-price { font-size: .8rem; }
  .front-foot { padding: 16px; }
}
.sign-name {
  font-family: var(--display); font-weight: 800; font-size: 1.32rem; line-height: 1.45;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sign-domain {
  display: inline-block; max-width: 100%;
  font-size: .86rem; line-height: 1.5; text-decoration: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: top;
}
a.sign-domain:hover { text-decoration: underline; }
.live {
  flex: none; display: inline-flex; align-items: center; gap: 7px;
  padding: 4px 11px; border: 1.5px solid currentColor; border-radius: 999px;
  font-size: .78rem; font-weight: 500; line-height: 1.5; white-space: nowrap;
}
.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* ---------- Roller shutter: the loading state and the one motion motif ---------- */
.shutter {
  position: absolute; inset: 0; z-index: 3;
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, .35), rgba(255, 255, 255, 0) 30%),
    repeating-linear-gradient(to bottom, var(--steel-1) 0 13px, var(--steel-2) 13px 15px);
  border-bottom: 9px solid #9aa39e;
  transform: translateY(0);
  transition: transform .8s var(--ease);
  pointer-events: none;
}
.is-open > .shutter { transform: translateY(-103%); }
.is-switching > .shutter { transition: transform .28s cubic-bezier(.5, 0, .9, .4); }

/* ---------- Hero stage: one live shopfront, drenched in its own colour ---------- */
.stage { min-width: 0; }
.front {
  position: relative; overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--brand); color: var(--on-brand);
  box-shadow: var(--shadow);
  transition: background-color .35s ease, color .35s ease;
}
.front .sign { padding: 22px 22px 16px; background: transparent; }
.front .plaque { width: 68px; height: 68px; border-radius: 18px; }
.front .sign-name { font-size: clamp(1.5rem, 1.1rem + 1.9vw, 2.3rem); line-height: 1.4; }
.front-shelf {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px;
  padding: 0 22px;
}
.front-shelf .tile { padding: 8px 8px 10px; border-radius: var(--r-md); background: #fff; color: var(--ink); }
.front-foot { display: flex; flex-wrap: wrap; gap: 10px; padding: 18px 22px 22px; }
.front-foot .btn { flex: 1 1 auto; }

.shutter-note {
  position: absolute; z-index: 4; inset-inline: 0; top: 50%;
  width: fit-content; max-width: calc(100% - 40px); margin: 0 auto; padding: 8px 18px;
  transform: translateY(-50%);
  border-radius: 999px; background: var(--ink); color: #fff;
  font-weight: 500; font-size: .95rem; text-align: center;
  transition: opacity .25s ease;
}
.front.is-open .shutter-note, .front.is-switching .shutter-note { opacity: 0; visibility: hidden; }

.street { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.street-list {
  display: flex; gap: 8px; min-width: 0; padding: 5px;
  overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity;
}
.street-list::-webkit-scrollbar { display: none; }
.street-btn, .street-toggle {
  flex: none; display: grid; place-items: center;
  width: 50px; height: 50px; padding: 0; overflow: hidden;
  border: 1.5px solid var(--line); border-radius: 14px;
  background: #fff; cursor: pointer; scroll-snap-align: center;
  font-family: var(--display); font-weight: 800; font-size: 1.1rem;
  transition: border-color .2s ease, transform .25s var(--ease), box-shadow .2s ease;
}
.street-btn img { width: 100%; height: 100%; object-fit: contain; padding: 5px; }
.street-btn:hover:not(:disabled) { border-color: var(--ink); }
.street-btn:disabled { cursor: progress; background: var(--ground-2); }
.street-btn[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 2.5px var(--ink); }
.street-toggle { background: transparent; border-color: var(--steel-2); border-radius: 50%; width: 44px; height: 44px; }
.street-toggle:hover { border-color: var(--ink); }

/* ---------- Product tile ---------- */
.tile { position: relative; min-width: 0; }
.tile-link { display: block; text-decoration: none; border-radius: var(--r-sm); }
.tile-pic {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 1; border-radius: var(--r-sm);
  background: #f0f2f1;
}
.tile-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.tile-link:hover .tile-pic img { transform: scale(1.05); }
.tile-pic.is-broken::after {
  content: ""; position: absolute; inset: 30%;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa39e' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8h14l-1 12H6z'/%3E%3Cpath d='M9 8V6.500a3 3 0 0 1 6 0V8'/%3E%3C/svg%3E");
}
.tile-off {
  position: absolute; top: 7px; inset-inline-start: 7px; z-index: 1;
  padding: 1px 8px; border-radius: 999px;
  background: var(--ink); color: #fff;
  font-size: .74rem; font-weight: 600; line-height: 1.6;
}
.tile-name {
  display: block; margin-top: 8px;
  font-size: .86rem; font-weight: 500; line-height: 1.55;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tile-price {
  display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 7px;
  height: 1.6em; overflow: hidden;
  font-size: .9rem; font-weight: 600; line-height: 1.6;
  font-variant-numeric: tabular-nums;
}
.tile-price > span { white-space: nowrap; }
.tile-old { color: var(--muted); font-weight: 400; font-size: .8rem; text-decoration: line-through; }

.bone { display: block; border-radius: 6px; background: var(--ground-2); }
.bone-name { width: 7em; height: .9em; margin: .5em 0; background: color-mix(in srgb, var(--on-brand) 30%, transparent); }
.tile.is-bone .tile-name, .tile.is-bone .tile-price { color: transparent; }
.tile.is-bone .tile-name::before { content: "\00a0"; }
.tile.is-bone .tile-price::before { content: "\00a0"; }

/* ---------- Stores grid ---------- */
.stores { padding: 56px 0 72px; }
.sec-head { max-width: 46rem; margin-bottom: 32px; }
.sec-head h2, .features-head h2, .order h2 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(1.9rem, 1.2rem + 3vw, 3.3rem);
  line-height: 1.3; text-wrap: balance;
}
.sec-head p, .features-head p { margin-top: 12px; color: var(--ink-2); font-size: 1.05rem; text-wrap: pretty; }

.grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.status { grid-column: 1 / -1; padding: 18px 0; color: var(--ink-2); font-weight: 500; }
.status .btn { margin-inline-start: 12px; }

.shop {
  display: flex; flex-direction: column; min-width: 0; overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.window { position: relative; overflow: hidden; }
.shelf {
  display: grid; grid-auto-flow: column; grid-auto-columns: 41%; gap: 12px;
  padding: 18px 20px 14px;
  overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: 20px;
  scrollbar-width: none;
}
.shelf::-webkit-scrollbar { display: none; }
.shelf .tile { scroll-snap-align: start; }
.shelf-empty {
  grid-column: 1 / -1; display: grid; place-items: center;
  min-height: 150px; padding: 12px; text-align: center;
  color: var(--muted); font-size: .95rem;
}

.shop-info { flex: 1; display: flex; flex-direction: column; padding: 4px 20px 0; }
.shop-about {
  color: var(--ink-2); font-size: .95rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.shop[aria-busy] .shop-about { min-height: 3.5em; }
.shop:not([aria-busy]) .shop-about:empty { display: none; }
.shop-meta { display: flex; align-items: center; gap: 12px; min-height: 34px; margin-top: auto; padding-top: 12px; }
.chips {
  display: flex; flex-wrap: wrap; align-content: flex-start; gap: 6px; flex: 1; min-width: 0;
  height: calc(1.36rem + 6px); overflow: hidden;
}
.chip {
  flex: 0 1 auto; min-width: 0; max-width: 11em;
  padding: 3px 12px; border-radius: 999px;
  background: var(--ground); color: var(--ink-2);
  font-size: .8rem; font-weight: 500; line-height: 1.7;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.chip-more { flex: none; }
.shop-total { flex: none; margin-inline-start: auto; font-size: .86rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.shop-foot { display: flex; gap: 10px; padding: 16px 20px 20px; margin-top: auto; }
.shop-foot .btn { flex: 1 1 0; padding-inline: 12px; }

/* The vacant shop: where the visitor's own store goes. */
.shop-yours { background: transparent; box-shadow: none; border: 2px dashed var(--steel-2); }
.shop-yours .sign { background: transparent; color: var(--ink); border-bottom: 2px dashed var(--steel-2); }
.shop-yours .sign-domain { color: var(--muted); }
.plaque-empty { background: var(--ground-2); color: var(--muted); box-shadow: none; }
.yours-body {
  flex: 1; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 10px;
  padding: 32px 22px 34px;
}
.yours-title { font-family: var(--display); font-weight: 800; font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem); line-height: 1.35; }
.yours-text { max-width: 30em; color: var(--ink-2); }
.yours-body .btn { margin-top: 8px; }

/* ---------- Features ledger ---------- */
.features { padding: 72px 0 88px; background: var(--surface); }
.features-in { display: grid; gap: 28px; }
.ledger { border-top: 2px solid var(--ink); }
.row { display: grid; gap: 4px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.row dt { font-family: var(--display); font-weight: 600; font-size: 1.18rem; line-height: 1.5; }
.row dd { color: var(--ink-2); max-width: 38em; }
.pay { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pay li {
  padding: 4px 14px; border: 1.5px solid var(--ink); border-radius: 999px;
  color: var(--ink); font-size: .88rem; font-weight: 500; line-height: 1.7;
}
.example {
  display: block; width: fit-content; margin-top: 12px; padding: 8px 14px;
  border-radius: var(--r-sm); background: var(--ground);
  color: var(--ink); font-size: .92rem; font-variant-numeric: tabular-nums;
}

/* ---------- Closing call: the next shutter is theirs ---------- */
.order {
  padding: 88px 0 96px;
  background-color: #0d100f;
  background-image:
    linear-gradient(to bottom, rgba(18, 22, 21, 0), rgba(18, 22, 21, .55)),
    repeating-linear-gradient(to bottom, #1b211f 0 26px, #0d100f 26px 29px);
  color: #fff;
}
.order-in { display: grid; gap: 16px; justify-items: start; }
.order h2 { max-width: 14em; font-size: clamp(2.1rem, 1.2rem + 4.4vw, 4.4rem); line-height: 1.28; }
.order p { max-width: 34em; color: #d5dbd7; font-size: 1.1rem; }
.order-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.order :focus-visible { outline-color: #fff; }

.foot { padding: 26px 0; background: #0d100f; color: #b9c1bc; font-size: .9rem; }
.foot-in { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; }
.foot-brand { font-family: var(--display); font-weight: 800; color: #fff; font-size: 1rem; }

.noscript { padding: 16px var(--gutter); background: var(--ink); color: #fff; text-align: center; }

/* ---------- Inside a shop (dialog) ---------- */
.inside {
  width: 100%; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0;
  border: 0; border-radius: 0; overflow: hidden;
  background: var(--surface); color: var(--ink);
}
.inside[open] { display: flex; flex-direction: column; }
.inside::backdrop { background: rgba(13, 16, 15, .62); }
.inside-sign { flex: none; padding-inline-end: 14px; }
.inside-close {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 1.5px solid currentColor; border-radius: 50%;
  background: transparent; color: inherit; cursor: pointer;
  transition: background-color .2s ease;
}
.inside-close:hover { background: color-mix(in srgb, var(--on-brand) 16%, transparent); }
.inside-body {
  flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  padding: 20px; scrollbar-color: var(--steel-2) transparent; scrollbar-width: thin;
}
.inside-body:focus { outline: 0; }
.inside-top { display: grid; gap: 16px; }
.inside-banner {
  aspect-ratio: 21 / 9; overflow: hidden;
  border-radius: var(--r-md); background: var(--ground-2);
}
.inside-banner img { width: 100%; height: 100%; object-fit: cover; }
.inside-about {
  max-width: 46em; color: var(--ink-2);
  display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden;
}
.inside-about:empty { display: none; }
.inside-cats {
  display: flex; gap: 8px; margin: 18px -20px 0; padding: 4px 20px;
  overflow-x: auto; scrollbar-width: none;
}
.inside-cats::-webkit-scrollbar { display: none; }
.cat {
  flex: none; min-height: 40px; padding: 5px 16px;
  border: 1.5px solid var(--line); border-radius: 999px;
  background: #fff; font-size: .9rem; font-weight: 500; white-space: nowrap; cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.cat:hover { border-color: var(--ink); }
.cat[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.inside-count { margin-top: 16px; min-height: 1.75em; font-weight: 600; font-size: .95rem; font-variant-numeric: tabular-nums; }
.inside-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; margin-top: 10px; }
.inside-grid .shelf-empty { min-height: 120px; }
.inside-grid.is-loading { opacity: .45; transition: opacity .2s ease; }
.inside-foot {
  flex: none; display: flex; gap: 10px;
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); background: var(--surface);
}
.inside-foot .btn { flex: 1 1 0; padding-inline: 12px; }

/* ---------- Wider screens ---------- */
@media (min-width: 560px) {
  :root { --gutter: 28px; }
  .inside-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .front-foot .btn { flex: 0 1 auto; }
}

@media (min-width: 760px) {
  .top-nav { display: flex; }
  .brand { margin-inline-end: 12px; }
  .top-nav { margin-inline-end: auto; }
  .shelf { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; }
  .shelf .tile:nth-child(n + 5) { display: none; }
  .shop-foot .btn { flex: 0 1 auto; padding-inline: 22px; }
  .shop-foot .shop-visit { margin-inline-end: auto; }

  .inside {
    width: min(980px, 100% - 48px); height: auto; max-height: min(860px, 100dvh - 48px);
    margin: auto; border-radius: var(--r-lg);
    box-shadow: 0 40px 80px -30px rgba(13, 16, 15, .6);
  }
  .inside-sign { padding: 20px 20px 20px 26px; padding-inline: 26px 20px; }
  .inside-body { padding: 24px 26px; }
  .inside-top:has(.inside-banner:not([hidden])) { grid-template-columns: minmax(0, 13fr) minmax(0, 10fr); gap: 26px; align-items: center; }
  .inside-about { -webkit-line-clamp: 7; }
  .inside-cats { margin-inline: -26px; padding-inline: 26px; flex-wrap: wrap; overflow: visible; }
  .inside-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 16px; }
  .inside-foot { padding: 14px 26px; justify-content: flex-start; }
  .inside-foot .btn { flex: 0 1 auto; padding-inline: 24px; }
}

@media (min-width: 980px) {
  :root { --gutter: 40px; }
  .top-in { min-height: 72px; }
  .hero { padding: 56px 0 96px; }
  .hero-in { grid-template-columns: minmax(0, 11fr) minmax(0, 12fr); gap: 56px; align-items: center; }
  .front-shelf { gap: 12px; padding: 0 26px; }
  .front .sign { padding: 26px 26px 20px; }
  .front-foot { padding: 22px 26px 26px; }
  .stores { padding: 72px 0 104px; }
  .sec-head { margin-bottom: 44px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  /* A vacant shop left alone on the last row takes the whole row. */
  .shop-yours:nth-child(odd) { grid-column: 1 / -1; }
  .features { padding: 104px 0 120px; }
  .features-in { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: start; }
  .features-head { position: sticky; top: 112px; }
  .row { grid-template-columns: 11.5rem minmax(0, 1fr); gap: 24px; padding: 24px 0; align-items: baseline; }
  .order { padding: 128px 0 136px; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: no-preference) {
  .inside[open] { animation: rise .45s var(--ease); }
  .inside[open]::backdrop { animation: fade .3s ease; }
  @keyframes rise { from { opacity: 0; transform: translateY(24px); } }
  @keyframes fade { from { opacity: 0; } }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .tile-link:hover .tile-pic img { transform: none; }
}

@media (forced-colors: active) {
  .shutter { display: none; }
  .btn, .plaque, .street-btn { border: 1px solid CanvasText; }
}
