/*
 * App cards (owner 2026-11-19: "The tile grid is the main pattern and every tile opens its own screen"; plan in
 * docs/handover-app-card.md). For designs with layout 'app' (body.layout-app), in three families:
 *   fam-a: full-width cover fading into the page, logo centred over the photo, round filled quick buttons, soft tiles;
 *   fam-b: taller cover, logo beside the name, the name in capitals, square outlined buttons, big-icon tiles in capitals;
 *   fam-c: the cover in a rounded frame on a colour wash, glass logo plate, glass buttons and tiles, round icons.
 * app-rows: the tiles as full-width rows. desk-full / desk-panels: the view on computers (1024px and up).
 * Without JavaScript (and for Google) every section shows in the page; public/cards/app.js adds .app-on and the screens.
 * --app-bg: the design's own page colour (template css), behind the screen bars.
 * Also here: the Special offer banner (every design) and the Areas we service section.
 */
body.layout-app { --app-bg: #ffffff; --app-w: 480px; }

/* ---------- The header: cover photo, logo, names, town, Open now, QR button ---------- */
.hdr-app .header { padding: 0 0 4px; text-align: center; position: relative; }
.hdr-app .views { right: auto; left: 10px; top: calc(10px + env(safe-area-inset-top)); }
.hdr-app .app-cover {
    position: relative; height: 240px; background-color: color-mix(in srgb, var(--accent) 40%, transparent);
    background-size: cover; background-position: center 40%;
    -webkit-mask-image: linear-gradient(#000 50%, transparent 100%); mask-image: linear-gradient(#000 50%, transparent 100%);
}
.hdr-app .app-id { position: relative; z-index: 1; margin-top: -78px; padding: 0 20px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.hdr-app .app-names { min-width: 0; max-width: 100%; }
.hdr-app .app-logo { width: auto; min-width: 92px; max-width: min(240px, 72%); height: 92px; margin: 0; padding: 10px; position: relative; border-radius: var(--logo-radius, 24px); box-shadow: var(--photo-frame, 0 0 0 3px rgb(255 255 255 / .9)), 0 12px 30px rgb(0 0 0 / .22); }
.hdr-app .app-logo.fill { width: 92px; min-width: 0; }
/* A see-through logo shown bare elsewhere (agency designs) still sits on a plate here, over the photo */
html body.hdr-app .header .app-logo.bare { background: var(--plate, #ffffff) !important; padding: 10px !important; border-radius: var(--logo-radius, 24px) !important; box-shadow: var(--photo-frame, 0 0 0 3px rgb(255 255 255 / .9)), 0 12px 30px rgb(0 0 0 / .22) !important; filter: none !important; }
.hdr-app .app-photo { width: 112px; height: 112px; object-fit: cover; margin: 0; border-radius: var(--photo-radius, var(--logo-radius, 26px)); box-shadow: var(--photo-frame, 0 0 0 3px rgb(255 255 255 / .9)), 0 12px 30px rgb(0 0 0 / .25); }
.hdr-app .app-photo.shape-circle { border-radius: 50%; }
.hdr-app .app-photo.shape-square { border-radius: 8px; }
.hdr-app .app-chip { width: 46px; height: 46px; border-radius: 12px; padding: 3px; margin: -44px 0 0; transform: translateX(48px); position: relative; }
.hdr-app .company { font-size: 25px; }
.hdr-app .app-meta { margin: 8px 0 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 12px; font-size: 13px; }
.hdr-app .app-town { opacity: .82; }
.hdr-app .app-town .fa { margin-right: 3px; }
.app-open-now {
    position: relative; display: inline-flex; align-items: center; min-height: 30px; padding: 4px 12px 4px 26px; border-radius: 999px;
    font-size: 12.5px; font-weight: 600; line-height: 1.2; text-decoration: none; color: inherit;
    background: color-mix(in srgb, #16a34a 14%, transparent) radial-gradient(circle at 13px 50%, #16a34a 4px, transparent 4.5px) no-repeat;
}
.app-open-now.is-closed { background: color-mix(in srgb, #dc2626 12%, transparent) radial-gradient(circle at 13px 50%, #dc2626 4px, transparent 4.5px) no-repeat; }
/* A bigger tap area than the label itself */
.app-open-now::after { content: ""; position: absolute; inset: -7px -4px; }
.hdr-app .app-qr-btn {
    position: absolute; top: calc(12px + env(safe-area-inset-top)); right: 12px; z-index: 3; width: 44px; height: 44px; border-radius: 14px;
    display: grid; place-items: center; background: rgb(255 255 255 / .9); color: #111; font-size: 21px; text-decoration: none;
    box-shadow: 0 4px 14px rgb(0 0 0 / .2); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: transform .12s;
}
.hdr-app .app-qr-btn:active { transform: scale(.92); }
.hdr-app .app-qr-box { display: none; }

/* Family B: a taller cover, the logo beside the name, the name in capitals (not for Open House) */
.fam-b.hdr-app .app-cover { height: 300px; -webkit-mask-image: linear-gradient(#000 40%, transparent 96%); mask-image: linear-gradient(#000 40%, transparent 96%); }
.fam-b.hdr-app .app-id { flex-direction: row; align-items: center; justify-content: flex-start; text-align: left; margin-top: -96px; gap: 14px; }
.fam-b.hdr-app .app-id .hdr-names, .fam-b.hdr-app .app-names { text-align: left; }
.fam-b.hdr-app .app-meta { justify-content: flex-start; }
.fam-b.hdr-app .app-logo { min-width: 76px; height: 76px; padding: 8px; flex: none; }
.fam-b.hdr-app .app-logo.fill { width: 76px; }
.fam-b.hdr-app .app-photo { width: 88px; height: 88px; flex: none; }
.fam-b.hdr-app .app-chip { position: absolute; left: 76px; top: 52px; margin: 0; transform: none; width: 40px; height: 40px; }
.fam-b.hdr-app .company { text-transform: uppercase; letter-spacing: .03em; font-size: 23px; }
.fam-b.tpl-app-openhouse.hdr-app .company { text-transform: none; letter-spacing: 0; font-size: 25px; }

/* Family C: the cover inside a rounded frame on the colour wash, a glass logo plate */
.fam-c.hdr-app .app-cover { margin: calc(14px + env(safe-area-inset-top)) 14px 0; height: 220px; border-radius: 28px; -webkit-mask-image: none; mask-image: none; box-shadow: 0 16px 34px rgb(0 0 0 / .2); }
.fam-c.hdr-app .app-id { margin-top: -52px; }
.fam-c.hdr-app .app-logo:not(.bare) { background: rgb(255 255 255 / .7); border: 1px solid rgb(255 255 255 / .8); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.fam-c.hdr-app .app-qr-btn { top: calc(26px + env(safe-area-inset-top)); right: 26px; }
.fam-c.hdr-app .views { left: 24px; top: calc(24px + env(safe-area-inset-top)); }

/* ---------- Quick buttons (the owner's button style still applies) ---------- */
.layout-app .actions { gap: 12px; padding: 18px 16px 2px; }
/* The round and square icon styles: all the quick buttons in one row on the home screen (up to 6) */
/* Room on the right for the SHARE tab on the edge (it stays as it is: owner 2026-11-19) */
.layout-app.btn-icons .actions { flex-wrap: nowrap; justify-content: center; gap: 4px; padding-right: 34px; padding-left: 14px; }
.layout-app.btn-icons .action { flex: 1 1 0; min-width: 0; max-width: 78px; width: auto; font-size: 12px; }
.layout-app.btn-icons .action .ic { width: 52px; height: 52px; }
.layout-app.btn-icons .action .lbl { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Tile buttons: exactly four sit in one row, never three and one alone (owner 2026-11-30) */
.layout-app.btn-tiles .actions:has(> .action:nth-child(4):last-child) { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding-right: 34px; }
.layout-app.btn-tiles .actions:has(> .action:nth-child(4):last-child) .action { padding: 12px 2px; font-size: 12px; }
.layout-app.btn-tiles .actions:has(> .action:nth-child(4):last-child) .lbl { max-width: 100%; white-space: normal; line-height: 1.15; overflow-wrap: anywhere; font-size: 11.5px; }
.layout-app.btn-tiles .actions:has(> .action:nth-child(4):last-child) .ic { width: 40px; height: 40px; font-size: 17px; }
.fam-b.layout-app .action .lbl { text-transform: uppercase; letter-spacing: .02em; font-size: 9.5px; font-weight: 700; }
@media (min-width: 420px) { .fam-b.layout-app .action .lbl { letter-spacing: .05em; font-size: 10.5px; } }
.fam-c.layout-app .action .ic { background: rgb(255 255 255 / .45); color: var(--accent); border: 1px solid rgb(255 255 255 / .7); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.fam-c.layout-app.on-dark .action .ic { background: rgb(255 255 255 / .1); border-color: rgb(255 255 255 / .22); }

/* ---------- The tiles (and Rows) ---------- */
.app-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 18px 16px 6px; }
.app-tile {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; min-height: 108px; padding: 14px 6px 12px;
    border-radius: var(--radius); background: var(--surface); color: var(--surface-text); text-decoration: none; text-align: center;
    box-shadow: 0 1px 2px rgb(0 0 0 / .05), 0 8px 22px rgb(0 0 0 / .07); -webkit-tap-highlight-color: transparent; transition: transform .12s ease, box-shadow .12s ease; cursor: pointer;
}
.app-tile:active { transform: scale(.95); }
.app-tile:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.app-tile-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); font-size: 21px; flex: none; }
.app-tile-txt { display: block; min-width: 0; }
.app-tile-lbl { display: block; font-size: 13px; font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; }
.app-tile-sub { display: none; }
.app-tile[hidden] { display: none; }
.on-dark .app-tile { box-shadow: 0 1px 0 rgb(255 255 255 / .04) inset, 0 8px 22px rgb(0 0 0 / .3); }
.fam-b .app-tile { box-shadow: none; border: 1px solid color-mix(in srgb, var(--surface-text) 14%, transparent); border-radius: min(var(--radius), 10px); }
.fam-b .app-tile-ic { background: none; width: auto; height: 36px; font-size: 30px; }
.fam-b .app-tile-lbl { text-transform: uppercase; letter-spacing: .06em; font-size: 11.5px; font-weight: 700; }
.fam-c .app-tile { border: 1px solid color-mix(in srgb, #ffffff 55%, transparent); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); }
.fam-c.on-dark .app-tile { border-color: rgb(255 255 255 / .14); }
.fam-c .app-tile-ic { border-radius: 50%; }
/* Rows: full-width bars with a short line under the title */
.app-rows .app-tiles { grid-template-columns: minmax(0, 1fr); gap: 10px; }
.app-rows .app-tile { flex-direction: row; justify-content: flex-start; min-height: 66px; padding: 10px 14px; text-align: left; gap: 14px; }
.app-rows .app-tile::after { content: "\f105"; font-family: FontAwesome; margin-left: auto; padding-left: 8px; opacity: .45; font-size: 20px; }
.app-rows .app-tile-txt { display: flex; flex-direction: column; gap: 1px; }
.app-rows .app-tile-lbl { font-size: 14.5px; }
.app-rows .app-tile-sub { display: block; font-size: 12.5px; font-weight: 400; opacity: .7; }
.fam-b.app-rows .app-tile-ic { width: 36px; font-size: 24px; }

/* ---------- Screens on phones and tablets (app.js adds .app-on) ---------- */
.layout-app.app-on .dock { display: none; }
.layout-app.app-on .page > [data-section-id]:not([data-type="header"]):not([data-type="actions"]):not([data-type="offer"]):not(.app-open) { display: none; }
/* The six tiles of the mockup: each screen is a box holding all the parts of its tile (cards.v2.page) */
.layout-app.app-on .page > .app-group:not(.app-open) { display: none; }
.layout-app.app-on .page { padding-bottom: 40px; }
.layout-app.app-on .page > .app-open {
    position: fixed; inset: 0; z-index: 40; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
    background: var(--app-bg); background: var(--bg); background-attachment: fixed;
    padding: calc(66px + env(safe-area-inset-top)) max(0px, calc((100% - var(--app-w)) / 2)) calc(96px + env(safe-area-inset-bottom));
    animation: app-in .22s cubic-bezier(.2, .8, .2, 1);
}
.layout-app.app-on .page > .app-open > .section:first-child,
.layout-app.app-on .page > .app-open > [data-section-id]:first-child > .section { margin-top: 6px; }
/* The screen's title is in its top bar */
.layout-app.app-screen-on .page > .app-open > .section > h2[data-live-title]:first-child,
.layout-app.app-screen-on .page > .app-group-one.app-open > [data-section-id] > .section > h2[data-live-title]:first-child { display: none; }
/* Find us (Location): the address and a Directions button */
.app-findus-addr { margin: 4px 0 12px; }
.app-findus-btn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 16px; border-radius: var(--radius); background: var(--accent); color: var(--accent-text, #fff); font-weight: 600; text-decoration: none; }
.app-findus-btn:active { transform: scale(.97); }
.app-findus-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
@keyframes app-in { from { transform: translateX(16%); opacity: .3; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .layout-app.app-on .page > .app-open { animation: none; } }
.app-bar, .app-foot { display: none; }
.app-screen-on .app-bar {
    display: flex; align-items: center; gap: 4px; position: fixed; top: 0; left: 0; right: 0; z-index: 41;
    padding: env(safe-area-inset-top) 14px 0 4px; height: calc(58px + env(safe-area-inset-top));
    background: color-mix(in srgb, var(--app-bg) 90%, transparent); color: var(--text); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-bottom: 1px solid color-mix(in srgb, var(--text) 10%, transparent);
}
.app-back { flex: none; width: 48px; height: 48px; border: 0; border-radius: 50%; background: none; color: inherit; font-size: 20px; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform .12s, background .12s; }
.app-back:active { transform: scale(.9); background: color-mix(in srgb, var(--text) 10%, transparent); }
.app-bar-title { margin: 0; min-width: 0; font-family: var(--font-head); font-weight: 700; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-screen-on .app-foot {
    display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 41;
    padding: 10px max(14px, calc((100% - var(--app-w)) / 2 + 14px)) calc(10px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--app-bg) 92%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-top: 1px solid color-mix(in srgb, var(--text) 10%, transparent);
}
.app-foot-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: var(--radius-btn); background: var(--accent); color: var(--accent-text); text-decoration: none; font-weight: 600; font-size: 15px; -webkit-tap-highlight-color: transparent; transition: transform .12s; }
.app-foot-btn:active { transform: scale(.96); }
.app-foot-btn.is-chat { background: #1fa855; color: #fff; }
/* The SHARE tab stays on the right edge on screens too, above the bars */
.layout-app.app-screen-on .rail { z-index: 42; }
.layout-app.app-screen-on .scroll-hint { display: none; }

/* Tablets: a wider column, 4 tiles across */
@media (min-width: 640px) and (max-width: 1023.98px) {
    body.layout-app { --app-w: 640px; }
    .layout-app .page { max-width: var(--app-w); }
    .layout-app:not(.app-rows) .app-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .app-rows .app-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hdr-app .app-cover { height: 300px; }
    .fam-b.hdr-app .app-cover { height: 340px; }
}

/* ---------- Computers (1024px and up) ---------- */
@media (min-width: 1024px) {
    .layout-app .page { max-width: none; padding: 0 0 72px; }
    .layout-app .dock { display: none; }
    /* The open part sits in the page (same weight as the phone rule above, so this one wins) */
    .layout-app.app-on .page > .app-open { position: static; inset: auto; z-index: auto; padding: 0; animation: none; background: none; overflow: visible; }
    .app-screen-on .app-bar, .app-screen-on .app-foot { display: none; }
    .hdr-app .app-qr-btn { display: none; }
    .app-tile.is-active { box-shadow: 0 0 0 2px var(--accent), 0 8px 22px rgb(0 0 0 / .1); }
    .app-tile:hover { transform: translateY(-2px); }

    /* Full width (the default): an edge-to-edge photo band; the buttons and the offer in one row; a menu row; the open part */
    .desk-full .page { display: grid; grid-template-columns: [full-start] minmax(32px, 1fr) [content-start] minmax(0, 590px) [half] minmax(0, 590px) [content-end] minmax(32px, 1fr) [full-end]; align-content: start; }
    .desk-full .page > * { grid-column: content; }
    .desk-full .page > :is([data-type="header"], .site-foot, .bg-video, .bg-video-dim, .bg-mov, .card-top) { grid-column: full; }
    .desk-full .page > .c123cta { justify-self: center; margin-top: 40px; }
    .desk-full .page > [data-type="actions"] { grid-column: content-start / half; align-self: center; }
    .desk-full .page > [data-type="offer"] { grid-column: half / content-end; align-self: center; }
    .desk-full .page:not(:has(> [data-type="offer"]:not(:empty))) > [data-type="actions"] { grid-column: content; }
    .desk-full .page:not(:has(> [data-type="actions"])) > [data-type="offer"] { grid-column: content; }
    .desk-full.hdr-app .header { color: #fff; padding: 0; }
    .desk-full.hdr-app .app-cover, .desk-full.fam-c.hdr-app .app-cover { height: clamp(340px, 30vw, 520px); margin: 0; border-radius: 0; box-shadow: none; -webkit-mask-image: none; mask-image: none; background-position: center 45%; }
    .desk-full.hdr-app .app-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(0 0 0 / .66) 0%, rgb(0 0 0 / .34) 48%, rgb(0 0 0 / .06) 100%), linear-gradient(0deg, rgb(0 0 0 / .25), transparent 40%); }
    .desk-full.hdr-app .app-id {
        position: absolute; inset: 0; margin: 0 auto; max-width: 1244px; padding: 0 32px; z-index: 2;
        flex-direction: row; align-items: center; justify-content: flex-start; gap: 26px; text-align: left;
    }
    .desk-full.hdr-app .app-names { text-align: left; max-width: min(62ch, 56%); }
    .desk-full.hdr-app .app-id .hdr-names { text-align: left; }
    .desk-full.hdr-app :is(.company, .person, .position) { color: #fff; text-shadow: 0 1px 3px rgb(0 0 0 / .35); }
    .desk-full.hdr-app .company { font-size: clamp(30px, 2.6vw, 46px); }
    .desk-full.hdr-app .position { font-size: 17px; }
    .desk-full.hdr-app .app-meta { justify-content: flex-start; font-size: 14.5px; color: rgb(255 255 255 / .9); }
    .desk-full .app-open-now { color: #fff; background-color: rgb(255 255 255 / .16); }
    .desk-full.hdr-app .app-logo { min-width: 120px; height: 120px; padding: 12px; }
    .desk-full.hdr-app .app-logo.fill { width: 120px; }
    .desk-full.hdr-app .app-photo { width: 140px; height: 140px; }
    .desk-full.fam-b.hdr-app .app-chip { left: 108px; top: auto; bottom: -6px; }
    .desk-full.hdr-app .app-chip { transform: none; margin: 0; position: absolute; left: 140px; bottom: calc(50% - 76px); }
    .desk-full .app-qr-box {
        display: flex; position: absolute; z-index: 2; right: max(32px, calc((100% - 1180px) / 2)); top: 50%; transform: translateY(-50%);
        flex-direction: column; align-items: center; gap: 8px; padding: 14px 14px 10px; border-radius: 18px; background: #fff; color: #111;
        font-size: 12.5px; font-weight: 600; box-shadow: 0 10px 30px rgb(0 0 0 / .28);
    }
    .desk-full .app-qr-box img { width: 132px; height: 132px; }
    .desk-full .page > [data-type="actions"] .actions { justify-content: flex-start; padding: 22px 0 6px; gap: 18px; }
    .desk-full .page > [data-type="offer"] .section { margin: 18px 0 0; }
    .desk-full .app-tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; padding: 22px 0 8px; }
    .desk-full .app-tile { min-height: 62px; flex-direction: row; justify-content: flex-start; gap: 10px; padding: 10px 12px; text-align: left; }
    .desk-full .app-tile-ic { width: 38px; height: 38px; font-size: 17px; border-radius: 11px; }
    .desk-full.fam-b .app-tile-ic { width: 30px; height: auto; font-size: 22px; }
    .desk-full.app-rows .app-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .desk-full.app-rows .app-tile { min-height: 70px; }
    .desk-full.app-rows .app-tile::after { display: none; }
    .desk-full .page > .app-open { margin-top: 10px; }
    .desk-full .page > .app-open > .section, .desk-full .page > .app-open > [data-section-id] > .section { margin: 0; padding: 32px 36px; }
    .desk-full .page > .app-open :is(.rich, .section > p, .about) { max-width: 75ch; }
    .desk-full .page > .app-open .gallery:not(.full) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .desk-full .page > .app-open .shop-grid, .desk-full .page > .app-open .items.cols-2 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

    /* Centred (the default, owner 2026-11-30 "Option B, smaller"): the phone layout made wider (760) in the middle of the
       screen, the header picture as a rounded band (a small picture stays sharp), the logo on the photo's corner as on
       phones, the contact buttons in one row, the tiles across the full row, a soft blurred copy of the cover at the sides. */
    body.desk-centre { --app-w: 760px; }
    .layout-app.desk-centre .page { max-width: 760px; margin: 0 auto; padding: 28px 0 72px; }
    .desk-centre .page::before { content: ""; position: fixed; inset: -60px; z-index: -1; background: var(--app-cover-img, none) center / cover; filter: blur(44px) saturate(115%); opacity: .3; pointer-events: none; }
    .desk-centre .header > .cover, .desk-centre.hdr-app .app-cover, .desk-centre.fam-c.hdr-app .app-cover {
        height: 260px; margin: 0; border-radius: 22px; overflow: hidden; -webkit-mask-image: none; mask-image: none;
        box-shadow: 0 18px 40px rgb(0 0 0 / .16); background-position: center 45%;
    }
    .desk-centre.fam-b.hdr-app .app-cover { height: 300px; }
    html body.desk-centre .page > [data-type="actions"] .actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; padding: 20px 0 4px; }
    html body.desk-centre .page > [data-type="actions"] .action { margin: 0; width: auto; padding: 14px 6px; font-size: inherit; }
    .desk-centre .app-tiles { grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 12px; padding: 14px 0 6px; }
    .desk-centre.app-rows .app-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .desk-centre .page > .app-open { margin-top: 12px; }
    .desk-centre .page > .app-open > .section, .desk-centre .page > .app-open > [data-section-id] > .section { margin: 0 0 12px; }
    .desk-centre .page > .app-open .gallery:not(.full) { grid-template-columns: repeat(3, minmax(0, 1fr)); }

    /* Two panels: the home on the left, the open part on the right, over a soft blurred copy of the cover */
    .desk-panels .page { display: grid; grid-template-columns: 392px minmax(0, 1fr); grid-auto-rows: min-content; column-gap: 32px; max-width: 1320px; margin: 0 auto; padding: 28px 28px 72px; }
    .desk-panels .page > * { grid-column: 1; }
    .desk-panels .page > :is(.c123cta, .bg-video, .bg-video-dim, .bg-mov) { grid-column: 1 / -1; }
    .desk-panels .page > .app-open { grid-column: 2; grid-row: 1 / span 30; align-self: start; position: sticky; top: 28px; max-height: calc(100vh - 56px); overflow-y: auto; border-radius: calc(var(--radius) + 6px); padding: 6px 0 24px; background: color-mix(in srgb, var(--app-bg) 72%, transparent); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: 0 20px 50px rgb(0 0 0 / .12); }
    .desk-panels .page > .app-open > .section, .desk-panels .page > .app-open > [data-section-id] > .section { margin: 18px 22px 0; }
    .desk-panels .page > .app-open :is(.rich, .section > p) { max-width: 75ch; }
    .desk-panels.hdr-app .header { border-radius: calc(var(--radius) + 6px); overflow: hidden; background: color-mix(in srgb, var(--surface) 70%, transparent); padding-bottom: 18px; }
    .desk-panels.hdr-app .app-cover, .desk-panels.fam-c.hdr-app .app-cover { height: 220px; margin: 0; border-radius: 0; box-shadow: none; }
    .desk-panels .app-qr-box { display: none; }
    .desk-panels .app-tiles { padding: 16px 0 6px; }
    .desk-panels .page > [data-type="offer"] .section { margin: 14px 0 0; }
    /* The blurred cover behind everything */
    .desk-panels .page::before { content: ""; position: fixed; inset: -60px; z-index: -1; background: var(--app-cover-img, none) center / cover; filter: blur(40px) saturate(120%); opacity: .35; pointer-events: none; }
}
@media (min-width: 1920px) {
    .desk-full .page { grid-template-columns: [full-start] minmax(48px, 1fr) [content-start] minmax(0, 720px) [half] minmax(0, 720px) [content-end] minmax(48px, 1fr) [full-end]; }
    .desk-full.hdr-app .app-id { max-width: 1536px; padding: 0 48px; }
    .desk-full .app-qr-box { right: max(48px, calc((100% - 1440px) / 2)); }
    .desk-full .app-tiles { grid-template-columns: repeat(8, minmax(0, 1fr)); }
    .desk-panels .page { max-width: 1600px; grid-template-columns: 440px minmax(0, 1fr); }
}
@media (min-width: 2560px) {
    .layout-app { zoom: 1.25; }
}
@media (min-width: 3400px) {
    .layout-app { zoom: 1.6; }
}

/* ---------- Special offer (every design) ---------- */
.section.offer { position: relative; overflow: hidden; padding: 16px; }
.offer-note { margin: 0 0 10px; padding: 8px 10px; border-radius: 10px; font-size: 12.5px; background: #fef3c7; color: #78350f; }
.offer-in { display: flex; gap: 14px; align-items: flex-start; text-align: left; }
.offer-pic { flex: none; width: 92px; height: 92px; border-radius: calc(var(--radius) * .7); overflow: hidden; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); font-size: 34px; }
.offer-pic img { width: 100%; height: 100%; object-fit: cover; }
.offer-body { min-width: 0; flex: 1; }
.offer-tag { margin: 0 0 3px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.on-dark .sec-glass .offer-tag, .sec-flat.on-dark .offer-tag { color: inherit; opacity: .85; }
.offer-demo { display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 6px; background: #fde68a; color: #78350f; letter-spacing: 0; }
.offer-title { margin: 0; font-family: var(--font-head); font-size: 18px; line-height: 1.25; }
.offer-text { margin: 4px 0 0; font-size: 13.5px; opacity: .85; }
.offer-price { margin: 6px 0 0; font-size: 15px; }
.offer-price s { opacity: .6; margin-right: 4px; font-size: 13px; }
.offer-ends { margin: 6px 0 0; font-size: 12.5px; font-weight: 600; }
.offer-ends strong { font-variant-numeric: tabular-nums; }
.offer-code { margin: 6px 0 0; font-size: 12.5px; }
.offer-code strong { padding: 2px 8px; border: 1px dashed currentColor; border-radius: 6px; letter-spacing: .05em; }
.offer-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 46px; margin-top: 14px; border: 0; border-radius: var(--radius-btn); background: var(--accent); color: var(--accent-text); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform .12s; }
.offer-btn:active { transform: scale(.97); }
/* Music: the old price crossed out on the buy buttons */
.tr-was { opacity: .65; font-weight: 400; margin-right: 2px; }

/* ---------- Areas we service ---------- */
.areas-intro { margin: 0 0 10px; }
.areas-big { margin: 0 0 10px; font-weight: 700; font-size: 16px; }
.areas-label { margin: 12px 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; opacity: .7; }
.areas-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.align-center .areas-chips { justify-content: center; }
.align-right .areas-chips { justify-content: flex-end; }
.areas-chips li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 13.5px; background: color-mix(in srgb, var(--accent) 12%, transparent); }
.areas-chips .fa { color: var(--accent); }

/* ---------- The QR screen on App cards ---------- */
.qr-hint { margin: 12px 0 0; font-weight: 600; }
.qr-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; }
.qr-act { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 18px; border: 0; border-radius: var(--radius-btn); background: var(--accent); color: var(--accent-text); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; transition: transform .12s; }
.qr-act + .qr-act { background: color-mix(in srgb, var(--accent) 14%, transparent); color: inherit; }
.qr-act:active { transform: scale(.96); }
