/* ==========================================================================
   asas — QR digital menu page (menu.html)
   Uses site.css for tokens, type, header and buttons, legal.css for the footer.
   ========================================================================== */

/* Same header as the home page: brand, middle nav pill, language. */
@media (min-width: 901px) { .mn-page .hdr-in { display: grid; } }
.hdr-cta-m { display: none; }
@media (max-width: 900px) {
  .hdr-cta-m { display: inline-flex; min-height: 38px; padding-inline: 14px; font-size: 14px; }
  .mn-page .hdr .pill-m { padding-inline: 6px; }
}

/* section rhythm: plain and band backgrounds alternate */
.mn-sec { padding-block: clamp(64px, 8vw, 112px); }
.mn-band { background: #0F2138; }
html:not([data-theme="dark"]) .mn-band { background: var(--paper); }
.mn-head { display: grid; gap: 14px; margin-bottom: clamp(28px, 3.6vw, 48px); }
.mn-head h2 { font-size: clamp(32px, 4vw, 56px); max-width: 18ch; }
html[lang="ar"] .mn-head h2 { line-height: 1.3; }

/* hero */
.mn-hero { background: var(--ground); color: var(--ink); padding-block: clamp(120px, 13vw, 168px) clamp(64px, 8vw, 112px); }
.mn-hero-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.mn-kicker { font-size: 14px; font-weight: 600; color: var(--accent-text); margin-bottom: 16px; }
.mn-hero h1 { font-size: clamp(40px, 5.6vw, 78px); max-width: 13ch; }
html[lang="ar"] .mn-hero h1 { line-height: 1.25; }
.mn-hero .lede { margin-top: 22px; }
.mn-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.mn-facts { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.mn-facts li { font-size: 14.5px; padding: 7px 14px; border-radius: var(--pill); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.mn-facts b { font-family: var(--display); font-weight: 700; font-size: 16px; }

.mn-phones { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 2vw, 24px); align-items: start; max-width: 520px; justify-self: center; width: 100%; }
.mn-phones figure { margin: 0; }
.mn-phones figure:nth-child(2) { margin-top: clamp(32px, 4vw, 56px); }
.mn-phones .phone { padding: 8px; border-radius: 36px; }
.mn-phones .phone-screen { border-radius: 28px; }
.mn-phones img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.mn-phones figcaption { margin-top: 12px; font-size: 13.5px; color: var(--ink-faint); text-align: center; }

/* cards */
.mn-grid { display: grid; gap: clamp(12px, 1.6vw, 20px); list-style: none; padding: 0; margin: 0; }
.mn-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mn-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mn-card, .mn-feat { display: flex; flex-direction: column; gap: 10px; padding: clamp(22px, 2.4vw, 30px); border-radius: var(--r-md); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.mn-band .mn-card { background: var(--ink-deep); }
html:not([data-theme="dark"]) .mn-band .mn-card { background: var(--card); }
.mn-num { font-size: 13px; font-weight: 600; color: var(--accent-text); }
.mn-card h3 { font-family: var(--display); font-weight: 700; font-size: clamp(20px, 1.8vw, 24px); line-height: 1.35; }
.mn-feat h3 { font-size: 17px; font-weight: 600; }
.mn-card p, .mn-feat p { font-size: 15.5px; line-height: 1.75; color: var(--ink-soft); }
.mn-card code { font-family: var(--sans); background: var(--accent-soft); padding: 2px 8px; border-radius: 6px; }
.mn-card .btn { align-self: start; margin-top: auto; }
.mn-grid-2 .mn-card p { flex: 1; }

/* price */
.mn-price { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 64px); align-items: center;
  padding: clamp(26px, 4vw, 52px); border-radius: var(--r-lg); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.mn-price-kind { font-size: 15px; font-weight: 600; letter-spacing: .02em; color: var(--ink-soft); margin-bottom: 10px; }
.mn-price-self { margin-top: clamp(40px, 6vw, 72px); padding-top: clamp(32px, 5vw, 56px); border-top: 1px solid var(--line); }
.mn-price-num { font-family: var(--display); font-weight: 700; line-height: 1; }
.mn-price-num b { font-size: clamp(60px, 7vw, 96px); font-weight: 700; }
.mn-price-num span { font-size: clamp(20px, 2vw, 26px); color: var(--ink-soft); margin-inline-start: 6px; }
.mn-price-once { margin-top: 12px; font-size: 16.5px; color: var(--ink-soft); }
.mn-price-main .btn { margin-top: 26px; }
.mn-incl { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.mn-incl li { position: relative; padding-inline-start: 30px; font-size: 16.5px; line-height: 1.6; }
.mn-incl li::before { content: ""; position: absolute; inset-inline-start: 4px; top: .45em; width: 12px; height: 7px; border-left: 2px solid var(--accent-text); border-bottom: 2px solid var(--accent-text); transform: rotate(-45deg); }
.mn-note { margin-top: 18px; font-size: 14.5px; line-height: 1.8; color: var(--ink-faint); max-width: 70ch; }

/* contact */
.mn-contact { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: center;
  padding: clamp(26px, 4vw, 52px); border-radius: var(--r-lg); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.mn-contact h2 { font-size: clamp(28px, 3vw, 42px); }
html[lang="ar"] .mn-contact h2 { line-height: 1.3; }
.mn-contact p { margin-top: 10px; color: var(--ink-soft); line-height: 1.8; max-width: 52ch; }
.mn-contact-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.mn-contact .btn-outline, .mn-card .btn-outline, .mn-actions .btn-outline { box-shadow: inset 0 0 0 1px var(--line-strong); }

@media (max-width: 900px) {
  .mn-hero-in { grid-template-columns: 1fr; }
  .mn-phones { max-width: 440px; }
  .mn-grid-3 { grid-template-columns: 1fr 1fr; }
  .mn-price, .mn-contact { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .mn-grid-3, .mn-grid-2 { grid-template-columns: 1fr; }
  .mn-actions .btn, .mn-contact-actions .btn { flex: 1 1 100%; }
  .mn-head h2 { font-size: clamp(28px, 8.4vw, 34px); }
}

/* features: compact list, icon beside the text, no boxes */
.mn-feats { gap: 0 clamp(24px, 3.5vw, 56px); }
.mn-feats .mn-feat { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; row-gap: 4px; align-content: start;
  padding: 20px 0; border-radius: 0; background: none; box-shadow: none; border-top: 1px solid var(--line); }
.mn-ico { grid-row: span 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--accent-soft); color: var(--accent-text); }
html[data-theme="dark"] .mn-ico { background: rgba(191, 219, 254, .1); }
.mn-ico svg { width: 20px; height: 20px; }
.mn-feat h3 { font-family: var(--display); font-weight: 700; font-size: 18px; line-height: 1.4; }
.mn-feat p { font-size: 14.5px; line-height: 1.7; }

/* scroll reveal (class added by legal.js) */
/* the homepage's reveal: 20px up, 700ms, the same easing and a 60ms stagger */
.mn-rv { opacity: 0; transform: translateY(20px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); transition-delay: var(--rv-delay, 0ms); }
.mn-rv.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .mn-rv { opacity: 1; transform: none; transition: none; } }

/* screenshots on the "what you get" cards: the top of a phone screen */
.mn-shot { margin: -6px -6px 8px; height: 220px; overflow: hidden; border-radius: 14px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.mn-shot img { width: 100%; height: auto; display: block; }

/* admin spotlight: list on one side, phone on the other */
.mn-spot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.mn-spot-copy h2 { font-size: clamp(32px, 4vw, 56px); max-width: 14ch; }
html[lang="ar"] .mn-spot-copy h2 { line-height: 1.3; }
.mn-spot-copy .lede { margin-top: 16px; }
.mn-spot-list { display: grid; margin-top: 30px; border-inline-start: 2px solid var(--line); }
.mn-spot-item { display: grid; gap: 4px; padding: 16px 20px; margin-inline-start: -2px; border: 0; border-inline-start: 2px solid transparent; background: none; color: inherit; font: inherit; text-align: start; cursor: pointer; transition: border-color .25s, background .25s; }
.mn-spot-item b { font-family: var(--display); font-weight: 700; font-size: 19px; color: var(--ink-faint); transition: color .25s; }
.mn-spot-item span { font-size: 15px; line-height: 1.7; color: var(--ink-faint); }
.mn-spot-item[aria-selected="true"] { border-inline-start-color: var(--accent-text); }
.mn-spot-item[aria-selected="true"] b { color: var(--ink); }
.mn-spot-item[aria-selected="true"] span { color: var(--ink-soft); }
@media (hover: hover) { .mn-spot-item:hover b { color: var(--ink); } }
.mn-spot-phone { margin: 0; justify-self: center; width: min(100%, 300px); }
.mn-spot-phone .phone-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transition: opacity .35s ease; }
.mn-spot-phone .phone-screen img.is-on { opacity: 1; }

/* request form */
.mn-contact { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); align-items: start; }
.mn-form { display: grid; gap: 14px; margin-top: 24px; max-width: 460px; }
.mn-field { display: grid; gap: 6px; font-size: 14.5px; color: var(--ink-soft); }
.mn-field input { min-height: 52px; padding: 0 18px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--ground); color: var(--ink); font: inherit; font-size: 16px; }
.mn-field input:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 1px; }
.mn-field input[aria-invalid="true"] { border-color: #E5484D; }
.mn-form .btn { justify-self: start; margin-top: 4px; }
.mn-trap { position: absolute; inset-inline-start: 0; top: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; } /* hidden in place: an off-screen offset becomes sideways scroll in RTL */
.mn-form { position: relative; }
.mn-form-status { min-height: 1.5em; font-size: 15px; color: var(--ink-soft); }
.mn-form-status.is-ok { color: #3FB27F; }
.mn-form-status.is-err { color: #E5484D; }
.mn-form-status a { color: inherit; text-decoration: underline; }
.mn-direct { display: grid; gap: 4px; padding-top: 6px; }
.mn-direct-k { font-size: 14px; font-weight: 600; color: var(--accent-text); margin-bottom: 6px; }
.mn-direct-row { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.mn-direct-row bdi { color: var(--ink-soft); }
@media (hover: hover) { .mn-direct-row:hover bdi { color: var(--ink); } }

@media (max-width: 900px) {
  .mn-spot { grid-template-columns: 1fr; }
  .mn-spot-phone { width: min(70%, 260px); }
  .mn-contact { grid-template-columns: 1fr; }
}
.mn-shot img { transform: translateY(var(--shot-y, 0)); }
@media (max-width: 900px) { .mn-form { max-width: none; } .mn-form .btn { justify-self: stretch; } }

/* phone mockups fade out at the bottom */
.mn-spot-phone, .mn-phones .phone { -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent 96%); mask-image: linear-gradient(to bottom, #000 60%, transparent 96%); }

/* phones: shorter admin list and features */
@media (max-width: 600px) {
  .mn-spot-list { margin-top: 20px; }
  .mn-spot-item { padding: 12px 16px; }
  .mn-spot-item[aria-selected="false"] span { display: none; }
  .mn-spot-phone { width: min(64%, 230px); }
  .mn-feats { grid-template-columns: 1fr 1fr; gap: 0 14px; }
  .mn-feats .mn-feat { grid-template-columns: 1fr; padding: 14px 0; row-gap: 8px; }
  .mn-feats .mn-feat p { display: none; }
  .mn-ico { grid-row: auto; width: 36px; height: 36px; }
  .mn-feat h3 { font-size: 16px; }
}

/* phones: a compact hero — the phones show only their top and fade out */
@media (max-width: 600px) {
  .mn-hero { padding-block: 96px 40px; }
  .mn-hero-in { gap: 28px; }
  .mn-kicker { margin-bottom: 10px; font-size: 13px; }
  .mn-hero h1 { font-size: 34px; }
  .mn-hero .lede { margin-top: 14px; font-size: 15.5px; }
  .mn-actions { flex-wrap: nowrap; gap: 8px; margin-top: 22px; }
  .mn-actions .btn { flex: 1 1 0; min-height: 46px; padding-inline: 10px; font-size: 14.5px; }
  .mn-facts { margin-top: 18px; gap: 6px; }
  .mn-facts li { font-size: 13px; padding: 5px 11px; }
  .mn-phones { max-width: 320px; height: 300px; overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent); mask-image: linear-gradient(to bottom, #000 55%, transparent); }
  .mn-phones figure:nth-child(2) { margin-top: 28px; }
  .mn-phones figcaption { display: none; }
}

/* features: the main one (editing your own items) sits centred at the end */
.mn-feats .mn-feat-main { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px;
  margin-top: 18px; padding: clamp(24px, 3vw, 36px); border-top: 0; border-radius: var(--r-md); background: var(--accent-soft); }
html[data-theme="dark"] .mn-feats .mn-feat-main { background: rgba(191, 219, 254, .07); box-shadow: inset 0 0 0 1px var(--line); }
.mn-feat-main .mn-ico { width: 48px; height: 48px; }
.mn-feat-main h3 { font-size: clamp(19px, 2vw, 22px); }
.mn-feat-main p { max-width: 46ch; font-size: 15.5px; }
@media (max-width: 600px) { .mn-feats .mn-feat-main p { display: block; } }

/* how we start: numbered badges pop and a line draws through each step as it scrolls in */
.mn-steps .mn-card { --pad: clamp(22px, 2.4vw, 30px); position: relative; overflow: hidden; }
.mn-steps .mn-num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent-soft); font-size: 14px; }
html[data-theme="dark"] .mn-steps .mn-num { background: rgba(191, 219, 254, .1); }
.mn-steps .mn-card::before { content: ""; position: absolute; top: calc(var(--pad) + 19px); inset-inline: calc(var(--pad) + 52px) 0; height: 2px;
  background: linear-gradient(to left, var(--accent-text), transparent); transform-origin: right; }
html[dir="ltr"] .mn-steps .mn-card::before { background: linear-gradient(to right, var(--accent-text), transparent); transform-origin: left; }
.mn-steps .mn-card.mn-rv .mn-num { transform: scale(.4); opacity: 0; transition: transform .5s cubic-bezier(.34, 1.56, .64, 1), opacity .3s; transition-delay: calc(var(--rv-delay, 0ms) + 200ms); }
.mn-steps .mn-card.mn-rv::before { transform: scaleX(0); transition: transform .9s var(--ease); transition-delay: calc(var(--rv-delay, 0ms) + 350ms); }
.mn-steps .mn-card.mn-rv.is-in .mn-num { transform: none; opacity: 1; }
.mn-steps .mn-card.mn-rv.is-in::before { transform: none; }

/* phones: the admin phone sits beside the list instead of under it */
@media (max-width: 600px) {
  .mn-spot { grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); column-gap: 12px; row-gap: 0; align-items: start; }
  .mn-spot-copy { display: contents; }
  .mn-spot-copy > :not(.mn-spot-list) { grid-column: 1 / -1; }
  .mn-spot-list { grid-column: 1; grid-row: 4; margin-top: 22px; }
  .mn-spot-item { padding: 10px 12px; }
  .mn-spot-item b { font-size: 16px; }
  .mn-spot-item span { font-size: 13px; line-height: 1.6; }
  .mn-spot-phone { grid-column: 2; grid-row: 4; width: 100%; margin-top: 22px; }
}

/* ---------- menu mini-site (v18): inner pages and new homepage blocks ---------- */
/* image per language: the page flips html[lang] */
html[lang="ar"] img.lang-en, html[lang="en"] img.lang-ar { display: none; }

/* shorter hero for inner pages */
.mn-hero-sub { padding-block: clamp(112px, 12vw, 152px) clamp(40px, 5vw, 64px); }
.mn-hero-sub .mn-hero-in { grid-template-columns: minmax(0, 1fr); }
.mn-hero-sub h1 { max-width: 18ch; }

/* one big figure */
.mn-stat-in { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.mn-stat-num { font-family: var(--display); font-weight: 700; font-size: clamp(80px, 12vw, 168px); line-height: .9; color: var(--accent-text); }
.mn-stat h2 { font-size: clamp(24px, 2.8vw, 38px); max-width: 26ch; }
html[lang="ar"] .mn-stat h2 { line-height: 1.45; }
.mn-stat .lede { margin-top: 16px; }

/* comparison table: scrolls sideways on its own on phones */
.mn-compare-wrap { overflow-x: auto; border-radius: var(--r-md); box-shadow: inset 0 0 0 1px var(--line); }
.mn-compare { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; line-height: 1.55; }
.mn-compare th, .mn-compare td { padding: 14px 16px; text-align: start; vertical-align: top; border-bottom: 1px solid var(--line); }
.mn-compare tr:last-child > * { border-bottom: 0; }
.mn-compare thead th { font-weight: 700; font-size: 14px; color: var(--ink-soft); }
.mn-compare tbody th { font-weight: 600; }
.mn-compare td { color: var(--ink-soft); }
.mn-compare .is-us { background: var(--accent-soft); color: var(--ink); font-weight: 600; }

/* design gallery: phone frames */
.mn-designs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: clamp(16px, 2.4vw, 32px); }
.mn-designs-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mn-design { margin: 0; }
.mn-design .phone { padding: 7px; border-radius: 32px; }
.mn-design .phone-screen { border-radius: 25px; aspect-ratio: 390 / 844; }
.mn-design img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.mn-design h3, .mn-design p { margin-top: 12px; font-size: 15px; font-weight: 600; text-align: center; }
.mn-design p { margin-top: 4px; font-weight: 400; font-size: 13.5px; color: var(--ink-faint); }

/* coming soon */
.mn-soon-title { margin: clamp(32px, 4vw, 48px) 0 14px; font-size: 14px; font-weight: 600; color: var(--ink-faint); }
.mn-soon { background: transparent !important; box-shadow: inset 0 0 0 1px var(--line); border-style: dashed; }
.mn-soon h3 { color: var(--ink-soft); }

/* plans */
.mn-plans { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); align-items: stretch; }
.mn-plan { position: relative; display: flex; flex-direction: column; gap: 18px; padding: clamp(24px, 2.6vw, 34px); border-radius: var(--r-md); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.mn-plan h3 { font-family: var(--display); font-weight: 700; font-size: 24px; }
.mn-plan .mn-price-num b { font-size: clamp(48px, 5vw, 64px); }
.mn-plan .mn-incl li { font-size: 15.5px; }
.mn-plan .btn { margin-top: auto; justify-content: center; }
.mn-plan.is-hot { box-shadow: inset 0 0 0 2px var(--accent-text); }
.mn-plan-badge { position: absolute; top: -12px; inset-inline-start: 24px; padding: 3px 12px; border-radius: 99px; font-size: 13px; font-weight: 600; background: var(--accent-text); color: var(--ground); }

/* FAQ groups, guides, page end */
.mn-faq-group { margin: clamp(36px, 4vw, 52px) 0 10px; font-family: var(--display); font-weight: 700; font-size: clamp(20px, 2vw, 26px); }
.mn-faq-group:first-child { margin-top: 0; }
.mn-guides { display: grid; gap: clamp(14px, 2vw, 24px); }
.mn-guide { padding: clamp(22px, 2.6vw, 34px); border-radius: var(--r-md); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); scroll-margin-top: 100px; }
.mn-guide h3 { font-family: var(--display); font-weight: 700; font-size: clamp(20px, 2vw, 26px); margin-bottom: 14px; }
.mn-guide ol { margin: 0; padding-inline-start: 1.4em; display: grid; gap: 8px; font-size: 16px; line-height: 1.75; color: var(--ink-soft); }
.mn-end { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; gap: 14px; }
.mn-end .lede { max-width: 52ch; }
.mn-end .mn-actions { justify-content: center; margin-top: 12px; width: 100%; }

@media (max-width: 900px) {
  .mn-plans { grid-template-columns: 1fr; max-width: 520px; }
  .mn-designs-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mn-stat-in { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 600px) {
  .mn-designs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .mn-design .phone { padding: 5px; border-radius: 24px; }
  .mn-design .phone-screen { border-radius: 19px; }
}

/* main headline: words rise behind a mask, as on the homepage hero (.hw in site.css) */
.mn-hero h1.is-in .hw > i { transform: none; opacity: 1; }
/* hero phones rise in once the page opens, then drift gently */
@media (prefers-reduced-motion: no-preference) {
  .mn-hero .mn-phones figure { animation: mn-phone-in 1s var(--ease-out) both; }
  .mn-hero .mn-phones figure:nth-child(2) { animation-delay: .15s; }
  @keyframes mn-phone-in { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
}
/* cards answer the pointer, like the homepage plans */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .mn-card, .mn-plan, .mn-guide, .mn-design .phone { transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out); }
  .mn-card:hover, .mn-plan:hover, .mn-guide:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--line-strong), 0 18px 40px -24px rgba(10, 26, 47, .35); }
  .mn-plan.is-hot:hover { box-shadow: inset 0 0 0 2px var(--accent-text), 0 18px 40px -24px rgba(10, 26, 47, .35); }
  .mn-design:hover .phone { transform: translateY(-6px); }
}

/* ---------- phone previews: whole phones, bigger, a soft shadow, no half-way fade ---------- */
.mn-spot-phone, .mn-phones .phone, .mn-phones { -webkit-mask-image: none; mask-image: none; }
.mn-phones { max-width: 600px; height: auto; overflow: visible; }
.mn-phones .phone, .mn-spot-phone .phone, .mn-design .phone { box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 30px 60px -28px rgba(10, 26, 47, .45), 0 12px 24px -16px rgba(10, 26, 47, .25); }
.mn-spot-phone { width: min(100%, 340px); }
@media (prefers-reduced-motion: no-preference) {
  /* after rising in, the two hero phones drift slowly, out of step */
  .mn-hero .mn-phones .phone { animation: mn-float 7s ease-in-out 1.2s infinite alternate; }
  .mn-hero .mn-phones figure:nth-child(2) .phone { animation-delay: 2.4s; }
  @keyframes mn-float { from { transform: translateY(0); } to { transform: translateY(-10px); } }
}
@media (max-width: 900px) {
  .mn-phones { max-width: 480px; }
  .mn-spot-phone { width: min(78%, 300px); }
}
@media (max-width: 600px) {
  .mn-phones { max-width: 400px; gap: 14px; }
  .mn-phones .phone { padding: 6px; border-radius: 28px; }
  .mn-phones .phone-screen { border-radius: 22px; }
  .mn-phones figure:nth-child(2) { margin-top: 36px; }
  .mn-spot-phone { width: min(80%, 290px); }
}

/* ---------- comparison: the highlighted column is one raised card, blue header, outlined down to the last row ---------- */
.mn-compare-wrap { padding: 14px 4px 6px; box-shadow: none; }
.mn-compare { border-collapse: separate; border-spacing: 0; }
.mn-compare th, .mn-compare td { border-bottom: 1px solid var(--line); }
.mn-compare .is-us {
  background: color-mix(in srgb, var(--accent) 7%, var(--card));
  color: var(--ink); font-weight: 600;
  border-bottom-color: color-mix(in srgb, var(--accent) 18%, transparent);
  box-shadow: inset 2px 0 0 var(--accent), inset -2px 0 0 var(--accent);
}
.mn-compare thead .is-us { background: var(--accent); color: #fff; font-size: 15px; border-radius: 14px 14px 0 0; border-bottom-color: var(--accent); }
.mn-compare tbody tr:last-child .is-us { border-radius: 0 0 14px 14px; box-shadow: inset 2px 0 0 var(--accent), inset -2px 0 0 var(--accent), inset 0 -2px 0 var(--accent); border-bottom: 0; }

/* ---------- live design studio: the real demo menu in a phone, designs on one side, colours on the other ---------- */
.mn-studio { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 340px) minmax(0, 1fr); gap: clamp(20px, 3.5vw, 56px); align-items: center;
  padding: clamp(18px, 3vw, 40px); border-radius: 32px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.mn-studio-k { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; font-size: 13px; font-weight: 600; color: var(--ink-faint); }
.mn-studio-count { font-variant-numeric: tabular-nums; }
.mn-studio-designs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mn-studio-d { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border: 0; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: 14.5px; text-align: start; color: var(--ink); background: var(--ground);
  box-shadow: inset 0 0 0 1px var(--line); transition: background .25s ease, color .25s ease, box-shadow .25s ease, transform .2s var(--ease-out); }
.mn-studio-n { font-size: 11px; font-variant-numeric: tabular-nums; color: var(--ink-faint); }
.mn-studio-d:hover { box-shadow: inset 0 0 0 1px var(--line-strong); }
.mn-studio-d:active { transform: scale(.97); }
.mn-studio-d[aria-pressed="true"] { background: var(--accent); color: #fff; box-shadow: none; }
.mn-studio-d[aria-pressed="true"] .mn-studio-n { color: rgba(255, 255, 255, .7); }
.mn-studio-phone { margin: 0; text-align: center; }
.mn-studio-phone .phone { padding: 9px; border-radius: 42px; box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 40px 80px -36px rgba(10, 26, 47, .55), 0 14px 30px -18px rgba(10, 26, 47, .3); }
.mn-studio-phone .phone-screen { position: relative; border-radius: 33px; aspect-ratio: 390 / 820; background: #FAF7F2; overflow: hidden; }
.mn-studio-phone iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 1; transform: none; transition: opacity .3s ease; }
.mn-studio-phone iframe.is-loading { opacity: .25; }
.mn-studio-phone figcaption { margin-top: 12px; font-size: 13px; color: var(--ink-faint); }
.mn-studio-swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.mn-studio-s { aspect-ratio: 1.25; border: 0; padding: 0; border-radius: 14px; cursor: pointer; overflow: hidden;
  background: linear-gradient(to bottom, var(--sw-bg) 58%, var(--sw-ac) 58%); box-shadow: inset 0 0 0 1px rgba(10, 26, 47, .14);
  transition: transform .2s var(--ease-out), box-shadow .2s ease; }
.mn-studio-s:hover { transform: translateY(-2px); }
.mn-studio-s[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ground), 0 0 0 4px var(--accent); }
.mn-studio-about { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.mn-studio-about h3 { font-size: clamp(24px, 2.4vw, 32px); }
.mn-studio-about p { margin-top: 6px; color: var(--ink-soft); line-height: 1.7; }
.mn-studio-fine { margin-top: 16px; font-size: 13.5px; color: var(--ink-faint); line-height: 1.7; }
.mn-studio-side .mn-actions { margin-top: 18px; }
.mn-studio-d:focus-visible, .mn-studio-s:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 1000px) {
  .mn-studio { grid-template-columns: minmax(0, 1fr) minmax(260px, 320px); }
  .mn-studio-list { grid-column: 1 / -1; order: 3; }
  .mn-studio-designs { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}
@media (max-width: 700px) {
  .mn-studio { grid-template-columns: minmax(0, 1fr); padding: 16px; border-radius: 24px; }
  .mn-studio-phone { order: 1; width: min(100%, 320px); justify-self: center; }
  .mn-studio-list { order: 2; }
  .mn-studio-side { order: 3; }
  /* designs scroll sideways under the phone, like a tab bar */
  .mn-studio-designs { display: flex; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; scroll-snap-type: x proximity; }
  .mn-studio-designs::-webkit-scrollbar { display: none; }
  .mn-studio-d { flex: none; scroll-snap-align: start; }
  .mn-studio-swatches { grid-template-columns: repeat(6, 1fr); gap: 8px; }
}

/* studio: "best for", fine-tuning segments */
.mn-studio-best { margin-top: 10px; font-size: 14px; color: var(--ink-faint); }
.mn-studio-best b { color: var(--ink); font-weight: 600; }
.mn-tunes { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; padding-top: clamp(16px, 2vw, 24px); border-top: 1px solid var(--line); }
@media (max-width: 1000px) { .mn-tunes { grid-template-columns: repeat(2, minmax(0, 1fr)); order: 4; } }
@media (max-width: 700px) { .mn-tunes { grid-template-columns: minmax(0, 1fr); } }
.mn-tune .mn-studio-k { margin-bottom: 6px; }
.mn-seg { display: flex; flex-wrap: nowrap; gap: 4px; padding: 4px; border-radius: 14px; background: var(--ground); box-shadow: inset 0 0 0 1px var(--line); }
.mn-seg button { flex: 1 1 0; white-space: nowrap; min-height: 36px; padding: 6px 6px; border: 0; border-radius: 10px; background: transparent; font: inherit; font-size: 13.5px; color: var(--ink-soft); cursor: pointer; transition: background .2s ease, color .2s ease; }
.mn-seg button:hover { color: var(--ink); }
.mn-seg button[aria-pressed="true"] { background: var(--card); color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(10, 26, 47, .12), inset 0 0 0 1px var(--line); }
.mn-seg button:focus-visible, .mn-filter:focus-visible, .mn-lib-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* library: filters and design cards */
.mn-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(20px, 3vw, 32px); }
.mn-filter { min-height: 40px; padding: 8px 16px; border: 0; border-radius: 999px; font: inherit; font-size: 14px; cursor: pointer; color: var(--ink); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); transition: background .2s ease, color .2s ease; }
.mn-filter[aria-pressed="true"] { background: var(--ink-deep); color: #fff; box-shadow: none; }
html[data-theme="dark"] .mn-filter[aria-pressed="true"] { background: #F2F6FB; color: var(--ink-deep); }
.mn-lib { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: clamp(14px, 2vw, 24px); }
.mn-lib-item[hidden] { display: none; }
.mn-lib-btn { display: grid; width: 100%; padding: 10px; border: 0; border-radius: 24px; text-align: start; font: inherit; color: inherit; cursor: pointer; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out); }
.mn-lib-shot { display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 16px; background: var(--ground); }
.mn-lib-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; transition: transform .6s var(--ease-out); }
.mn-lib-meta { display: grid; gap: 4px; padding: 14px 6px 6px; }
.mn-lib-num { font-size: 12px; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.mn-lib-name { font-family: var(--display); font-weight: 700; font-size: 20px; }
.mn-lib-best { font-size: 14px; line-height: 1.6; color: var(--ink-soft); }
.mn-lib-go { margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--accent-text); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .mn-lib-btn:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--line-strong), 0 18px 40px -24px rgba(10, 26, 47, .35); }
  .mn-lib-btn:hover .mn-lib-shot img { transform: scale(1.04); }
}
@media (max-width: 600px) { .mn-lib { grid-template-columns: 1fr 1fr; gap: 12px; } .mn-lib-name { font-size: 17px; } .mn-lib-best { font-size: 13px; } }
.mn-studio { scroll-margin-top: 90px; }
.mn-actions { max-width: 100%; } .mn-actions .btn { max-width: 100%; white-space: normal; text-align: center; }
/* the menu inside the studio phone stays inside the rounded screen (iframes ignore overflow clipping when composited) */
.mn-studio-phone .phone-screen { clip-path: inset(0 round 33px); isolation: isolate; }
.mn-studio-phone iframe { border-radius: 33px; }
/* the studio phone: the screen width sets its height, so it sits exactly inside the bezel */
.mn-studio-phone .phone { aspect-ratio: auto; }
.mn-studio-phone .phone-screen { width: 100%; height: auto; aspect-ratio: 390 / 820; }
/* the menu inside the studio phone is laid out at a real phone's width (390px) and scaled to fit the frame,
   so it shows as much as a real phone does instead of everything looking oversized */
.mn-studio-phone iframe { inset: auto; top: 0; left: 0; width: 390px; height: 820px; transform-origin: 0 0; transform: scale(var(--fit, 1)); border-radius: calc(33px / var(--fit, 1)); }

/* hero: bigger phones, the customer phone cycles through real menu screens (legal.js) */
.mn-phones { max-width: 600px; }
.mn-phones figure:first-child .phone-screen img { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; }
.mn-phones figure:first-child .phone-screen img.is-on { opacity: 1; }
.mn-facts a { color: inherit; text-decoration: none; }
@media (max-width: 900px) { .mn-phones { max-width: 480px; } }
@media (max-width: 600px) { .mn-phones { max-width: 320px; } }
@media (prefers-reduced-motion: reduce) { .mn-phones figure:first-child .phone-screen img { transition: none; } }
@media (min-width: 901px) { .mn-hero-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .mn-phones { max-width: 640px; } }

/* ---------- folded extras on /menu (all questions, plan comparison, ordering details): the old sub-pages live here now ---------- */
.mn-more { margin-top: 28px; }
.mn-more > summary { list-style: none; display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: 999px; cursor: pointer;
  font-weight: 600; background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--line-strong); transition: background .2s, color .2s; }
.mn-more > summary::-webkit-details-marker { display: none; }
.mn-more > summary::after { content: ""; width: 9px; height: 9px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); transition: transform .3s var(--ease, ease); }
.mn-more[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
.mn-more > summary:hover { background: var(--ink); color: #fff; }
.mn-more > summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.mn-more-body { margin-top: clamp(24px, 3vw, 36px); }
.mn-more[open] .mn-more-body { animation: mn-more-in .45s var(--ease, ease) both; }
@keyframes mn-more-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .mn-more[open] .mn-more-body { animation: none; } }
@media (min-width: 900px) { #faq > .wrap > .mn-more { grid-column: 2; grid-row: 4; } }
