/* Hallmark · shape: kept · genre: modern-minimal · theme: brand · redesign: full
 * paper: #f7f9fc · accent: #ffe480 · display: Barlow Condensed · body: DM Sans · hero: kept · nav: a paper pill on the blue bar · footer: kept · signature: products as paper stickers on a cut-paper collage in a navy outline, and the RM20 promo price as a yellow price tag
 * axes: light/grotesk-condensed/warm · posture: brand-led · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R3 V3 · weakest: R, the page keeps every section it had, so the restraint is in using one outline, one radius family and one accent throughout */
/* Hallmark · waive 38iii · one boxed phrase on the whole page, the RM20 in the promo heading · the RM20 promo price is the offer on this page, so it is boxed like a price tag */
/* Hallmark · waive 39b · the only taller controls are the matchmaker choices, each with a second line under it · the choice "3-5 people" needs its "Family" line to be understood, so those buttons stay two lines tall */
/* Hallmark · waive 44c · the first screen holds the header, the hero with its product and RM20 price, and the seven category chips · the chips sit under the hero so a visitor can pick air purifier, water purifier or mattress without scrolling */
/* Hallmark · waive 79 · the space the tool measures is filled by the category chips, which are a separate bar under the hero · Coway shoppers choose a category first, so the chips are kept in the first screen */
/* Hallmark · dismissed F20 · the three product cards sit in one row; the first and third are tilted 1.4 degrees, which shifts the tops the tool measures */
/* Hallmark · dismissed F19 · the fourth weight (500) comes from a few labels in the shared experience.css, which this home page restyle leaves alone */

/* ============================================================================
   HOME PAGE REVAMP (look only)
   ----------------------------------------------------------------------------
   This file changes how the home page LOOKS. It does not change the order of
   the sections, the links, the forms or any script.

   How it works: it loads after experience.css and home.css, and every rule
   starts with [data-page="home"], so it only applies to the home page (in
   English and BM) and always wins over the older rules.

   The idea, borrowed from hermesacademy.my as a UI reference only:
     1. one navy outline around every card, panel and button
     2. rounder corners, soft drop shadows, cards with a slight tilt
     3. scalloped (cloud) edges between bands
     4. products shown on a cut-paper collage
   Colours are Coways' own: blue, navy, white and the yellow accent.
   To switch the revamp off, remove the home-revamp.css <link> in tools/render.cjs.

   Order of this file: tokens, buttons, header, hero, dock, then each section
   in page order, then tablet and phone rules.
   ========================================================================== */

/* ---------- hero geometry (the shared colours and sizes are in site-revamp.css) ---------- */
:root {
  /* One height and one disc size for every slide, so nothing moves when the slide changes.
     The height leaves room for the header (124px) and the category chips (104px) on the first screen. */
  --hv-hero-h: clamp(600px, calc(100svh - 228px), 760px);
  --hv-disc: min(40vw, 560px, calc(var(--hv-hero-h) - 150px));
  --hv-hero-edge: max(42px, calc((100vw - 1480px) / 2));
}

/* Keyboard focus ring: the site's yellow ring works on blue and navy; pale areas get a blue or navy ring instead */
[data-page="home"] .lineup :focus-visible,
[data-page="home"] .hm-gallery :focus-visible,
[data-page="home"] .hm-trade :focus-visible,
[data-page="home"] .hm-order :focus-visible,
[data-page="home"] .hm-faq :focus-visible,
[data-page="home"] .hm-match-result :focus-visible { outline-color: var(--blue); outline-offset: 3px; }
[data-page="home"] .hm-why :focus-visible { outline-color: var(--accent); outline-offset: 3px; }
[data-page="home"] .lineup .finder-banner :focus-visible { outline-color: var(--ink); }

/* ---------- hero ----------
   The hero used to change height and move its pieces when the slide changed (each slide has a different
   headline length and product shape). Now: one fixed hero height, one text column with reserved line
   heights, and one square stage on the right that every product is fitted into. */
[data-page="home"] .motion-hero { background: var(--blue); transition: none; }
[data-page="home"] .hero-rings,
[data-page="home"] .hero-ground { display: none; }
/* the round collage the product stands on: it fills the stage, so it is the same size on every slide */
[data-page="home"] .product-halo { inset: 0; width: auto; height: 100%; margin-inline: auto; border: var(--hv-edge); background: var(--blue) url("/assets/art/hero.webp") center / cover no-repeat; box-shadow: var(--hv-shadow); filter: none; transform: none; }
/* every product, tall or wide, is fitted inside the same square */
[data-page="home"] .hero-product-scene[data-shape] .hero-product,
[data-page="home"] .hero-product-scene .hero-product { filter: none;scale: 0.84; translate: 0 0; }
/* the clickable product area is the same square as the disc, so its tilt never pokes past the screen edge */
[data-page="home"] .hero-product-link { width: auto; height: 100%; aspect-ratio: 1; margin-inline: auto; }
[data-page="home"] .round-button { border: var(--hv-edge); background: var(--hv-white); color: var(--ink); box-shadow: var(--hv-shadow-btn); transition: transform 0.22s var(--hv-ease), background-color 0.22s var(--hv-ease); }
[data-page="home"] .round-button:hover { background: var(--accent); transform: translateY(-2px); }

@media (min-width: 761px) {
  [data-page="home"] .motion-hero { height: var(--hv-hero-h); min-height: var(--hv-hero-h); }
  /* text column: everything left of the disc */
  [data-page="home"] .motion-hero .hero-editorial { width: calc(100% - var(--hv-disc) - var(--hv-hero-edge) - 32px); padding: clamp(28px, 6svh, 64px) 0 0 var(--hv-hero-edge); }
  /* the headline is always two lines; its size follows the column so the longest line still fits */
  [data-page="home"] .motion-hero .hero-editorial h1 { max-width: none; min-height: 1.76em; font-size: min(clamp(52px, 9vw, 150px), 15svh); line-height: 0.88; white-space: nowrap; }
  [data-page="home"] .motion-hero .hero-editorial p { max-width: 36em; min-height: 3.3em; margin: 20px 0; }
  /* the stage: a square on the right, centred in the space above the arrows (the bottom 100px is theirs) */
  [data-page="home"] .hero-product-scene[data-shape],
  [data-page="home"] .hero-product-scene { top: calc((var(--hv-hero-h) - 100px - var(--hv-disc)) / 2); right: var(--hv-hero-edge); width: var(--hv-disc); height: var(--hv-disc); }
  /* price on the left, arrows on the right, both pinned to the bottom of the hero */
  [data-page="home"] .motion-hero .hero-bottom { margin: auto var(--hv-hero-edge) 28px; padding-top: 16px; }
  [data-page="home"] .motion-hero .hero-pagination { left: auto; right: 0; bottom: 8px; transform: none; }
  [data-page="home"] .motion-hero .hero-price strong { font-size: min(clamp(64px, 6.4vw, 104px), 9svh); font-variant-numeric: tabular-nums; }
}
@media (min-width: 761px) and (max-width: 1100px) {
  :root { --hv-hero-edge: 28px; }
  /* narrower column: let the two sentences flow as one paragraph, with room kept for three lines */
  [data-page="home"] .motion-hero #hero-description br { display: none; }
  [data-page="home"] .motion-hero .hero-editorial p { min-height: 4.95em; }
}

/* ---------- category dock: seven outlined chips, then a cloud edge into the page ---------- */
[data-page="home"] .category-dock { position: relative; gap: 12px; padding: 16px var(--hv-hero-edge) 32px; border-top: 0; background: var(--blue); }
[data-page="home"] .category-dock button { justify-content: center; min-height: 56px; padding: 8px 12px; border: var(--hv-edge); border-radius: var(--hv-r-ctl); background: var(--hv-white); color: var(--ink); font-weight: 600; box-shadow: var(--hv-shadow-btn); transition: transform 0.22s var(--hv-ease), background-color 0.22s var(--hv-ease); }
[data-page="home"] .category-dock button > span { letter-spacing: 0; text-transform: none; white-space: nowrap; }
/* small laptops: seven chips only fit on one line each without their icons */
@media (min-width: 1001px) and (max-width: 1240px) {
  [data-page="home"] .category-dock { gap: 8px; }
  [data-page="home"] .category-dock button { padding: 8px; font-size: 14px; }
  [data-page="home"] .category-dock button svg { display: none; }
}
[data-page="home"] .category-dock button:hover { background: var(--hv-sky); transform: translateY(-2px); }
[data-page="home"] .category-dock button[aria-pressed="true"],
[data-page="home"] .category-dock button[aria-pressed="true"]:hover { background: var(--accent); color: var(--ink); }
/* the scalloped edge: a row of paper-coloured half circles along the bottom of the blue band */
[data-page="home"] .category-dock::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 14px; background: radial-gradient(circle at 50% 100%, var(--paper) 13px, transparent 13.5px) 0 0 / 28px 14px repeat-x; pointer-events: none; }

/* ---------- "What to upgrade?": collage cards with a slight tilt ---------- */
[data-page="home"] .lineup .home-grid { gap: 28px; padding-block: 12px 20px; }
[data-page="home"] .lineup .home-grid .product-card { border: var(--hv-edge); border-radius: var(--hv-r-card); background: var(--hv-white); box-shadow: var(--hv-shadow); transition: transform 0.45s var(--hv-ease), box-shadow 0.45s var(--hv-ease); }
[data-page="home"] .lineup .home-grid .product-card:nth-child(1) { transform: rotate(-1.4deg); }
[data-page="home"] .lineup .home-grid .product-card:nth-child(3) { transform: rotate(1.4deg); }
[data-page="home"] .lineup .home-grid .product-card:hover,
[data-page="home"] .lineup .home-grid .product-card:focus-within { transform: rotate(0deg) translateY(-8px); }
/* the picture area: a collage backdrop for each category, with the real product photo on top.
   This one section keeps its collage (Abu, 2026-11-19: "aku still nak ada gambar yang macam dulu,
   bukan clean... section dekat mainpage ni je"); every other product picture on the site is plain. */
[data-page="home"] .lineup .home-grid .product-card .product-art { background: var(--hv-sky) center / cover no-repeat; }
[data-page="home"] .lineup .home-grid .product-card[data-category="water"] .product-art { background-image: url("/assets/art/water.webp"); }
[data-page="home"] .lineup .home-grid .product-card[data-category="washer"] .product-art { background-image: url("/assets/art/washer.webp"); }
[data-page="home"] .lineup .home-grid .product-card[data-category="massage"] .product-art { background-image: url("/assets/art/massage.webp"); }
/* a thin white rim makes the product read as a paper sticker glued onto the collage
   (an outline only, no drop shadow: Abu does not want shadows on product photos) */
[data-page="home"] .lineup .home-grid .product-art img { filter: drop-shadow(2px 0 0 var(--hv-white)) drop-shadow(-2px 0 0 var(--hv-white)) drop-shadow(0 2px 0 var(--hv-white)) drop-shadow(0 -2px 0 var(--hv-white)); }
[data-page="home"] .lineup .home-grid .art-floor { display: none; }
[data-page="home"] .lineup .home-grid .card-category { padding: 4px 12px; border: var(--hv-edge); border-radius: 999px; background: var(--hv-white); font-weight: 700; letter-spacing: 0; text-transform: none; }
/* scalloped edge between the picture and the text */
[data-page="home"] .lineup .home-grid .card-body { position: relative; background: var(--hv-white); }
[data-page="home"] .lineup .home-grid .card-body::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 9px; background: radial-gradient(circle at 50% 100%, var(--hv-white) 8px, transparent 8.5px) 0 0 / 18px 9px repeat-x; }
[data-page="home"] .lineup .home-grid .card-body h3 { line-height: 1; }
[data-page="home"] .lineup .home-grid .card-body .card-cta { height: 52px; min-height: 0; padding-top: 0; }

/* ---------- "Shop by budget": a yellow band with a navy outline ---------- */
[data-page="home"] .lineup .finder-banner { margin-top: 44px; border: var(--hv-edge); border-radius: var(--hv-r-panel); background: var(--accent); color: var(--ink); box-shadow: var(--hv-shadow); }
[data-page="home"] .lineup .finder-banner-copy h3 { color: var(--ink); }
[data-page="home"] .lineup .finder-banner-copy p { color: var(--hv-ink-2); }
[data-page="home"] .lineup .finder-banner-copy .button { background: var(--ink); color: var(--hv-white); }

/* ---------- matchmaker: navy panel, the answer on a tilted paper card ---------- */
[data-page="home"] .hm-match-card { border: var(--hv-edge); border-radius: var(--hv-r-panel); box-shadow: var(--hv-shadow); }
[data-page="home"] .hm-choice { border-width: 2px; border-radius: var(--hv-r-ctl); }
[data-page="home"] .hm-match-result { border: var(--hv-edge); border-radius: var(--hv-r-card); background: var(--hv-white); color: var(--ink); box-shadow: var(--hv-shadow); transform: rotate(1.2deg); }
[data-page="home"] .hm-match-model img { border-radius: var(--hv-r-ctl); background: var(--hv-sky); }
[data-page="home"] .hm-match-price strong { color: var(--blue); }
[data-page="home"] .hm-match-price span { color: var(--muted); }
[data-page="home"] .hm-match-promo { color: var(--ink); }
[data-page="home"] .hm-match-facts svg { color: var(--blue); }
[data-page="home"] .hm-match-link { color: var(--ink); }
[data-page="home"] .hm-match-link:hover { color: var(--blue); }
[data-page="home"] .hm-match-tag { border: var(--hv-edge); }

/* ---------- real installations: photos pinned up like prints ---------- */
/* a touch more air above the gallery and the trade-in card, so no two sections sit closer than 120px */
@media (min-width: 761px) {
  [data-page="home"] .hm-gallery.section-space { padding-top: 76px; }
  [data-page="home"] .hm-trade.section-space { padding-top: 56px; }
}
[data-page="home"] .hm-gallery-strip { gap: 24px; padding: 16px 8px 28px; }
[data-page="home"] .hm-gallery-strip figure { border: var(--hv-edge); border-radius: 18px; box-shadow: var(--hv-shadow); }
[data-page="home"] .hm-gallery-strip li:nth-child(odd) figure { transform: rotate(-1.5deg); }
[data-page="home"] .hm-gallery-strip li:nth-child(even) figure { transform: rotate(1.5deg) translateY(6px); }
/* the caption gets its own solid navy strip, so the words never sit on a bright part of the photo */
[data-page="home"] .hm-gallery-strip figcaption { padding: 12px 16px; background: var(--ink); }

/* ---------- promo: a price ticket ----------
   Left: the heading with RM20 as a yellow price tag, and the two promo lengths as outlined stubs.
   Right: one straight white card. Pick a model, see it on the collage, then read the two prices
   side by side: yellow for the promo months, navy for after. */
[data-page="home"] .promo-preview { background: var(--blue); }
[data-page="home"] .promo-preview h2 { text-wrap: balance; }
[data-page="home"] .promo-preview h2 > span { display: inline-block; margin-top: 0.1em; padding: 0.08em 0.4em 0.12em; border: var(--hv-edge); border-radius: 0.14em; background: var(--accent); color: var(--ink); box-shadow: var(--hv-shadow); transform: rotate(-3deg); }
[data-page="home"] .promo-duration-key { gap: 16px; }
[data-page="home"] .promo-duration-key > div { padding: 16px 20px; border: 2px solid var(--hv-white); border-radius: 18px; }
[data-page="home"] .promo-duration-key strong { color: var(--accent); font-size: 56px; }
[data-page="home"] .promo-duration-key small { color: var(--hv-white); font-size: 16px; font-weight: 600; }

/* ---------- trade-in: outlined panel, the video tilted like a print ---------- */
[data-page="home"] .hm-trade-card { border: var(--hv-edge); border-radius: var(--hv-r-panel); background: var(--hv-sky); }
[data-page="home"] .hm-trade-media { border: var(--hv-edge); border-radius: var(--hv-r-card); box-shadow: var(--hv-shadow); transform: rotate(2deg); }
[data-page="home"] .hm-trade-tag { border: var(--hv-edge); background: var(--accent); color: var(--ink); }

/* ---------- order form: same outline family as the rest of the page ---------- */
[data-page="home"] .hm-order-card { border-radius: var(--hv-r-panel); background: var(--hv-white); box-shadow: var(--hv-shadow); }
[data-page="home"] .hm-field input,
[data-page="home"] .hm-field select { border-radius: var(--hv-r-ctl); border-color: var(--ink); background-color: var(--hv-white); }
[data-page="home"] .hm-field input:focus-visible,
[data-page="home"] .hm-field select:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
[data-page="home"] .hm-submit { min-height: 52px; border-radius: var(--hv-r-ctl); }

/* ---------- questions: the plus sign sits in an outlined circle, yellow when open ---------- */
[data-page="home"] .hm-faq-list details { border-bottom: 1.5px solid var(--ink); }
[data-page="home"] .hm-faq-list summary span { display: grid; place-items: center; width: 36px; height: 36px; border: var(--hv-edge); border-radius: 50%; font-size: 24px; line-height: 1; transition: transform 0.22s var(--hv-ease), background-color 0.22s var(--hv-ease); }
[data-page="home"] .hm-faq-list details[open] summary span { background: var(--accent); }

/* On wide screens the order form and the questions each have an empty area under their heading.
   A small collage fills it, framed and tilted like a print pinned to the page. */
@media (min-width: 1001px) {
  [data-page="home"] .hm-order-card .hm-head::after,
  [data-page="home"] .hm-faq .hm-head::after { content: ""; display: block; width: min(100%, 280px); aspect-ratio: 1; margin-top: 28px; border: var(--hv-edge); border-radius: var(--hv-r-card); background: var(--hv-white) center / 92% no-repeat; box-shadow: var(--hv-shadow); transform: rotate(-2deg); }
  [data-page="home"] .hm-order-card .hm-head::after { background-image: url("/assets/art/order.webp"); }
  [data-page="home"] .hm-faq .hm-head::after { background-image: url("/assets/art/faq.webp"); }
}

/* ---------- tablet (1000px and under): the links move into the menu, the dock scrolls sideways ---------- */
@media (max-width: 1000px) {
  [data-page="home"] .category-dock { gap: 8px; padding: 12px var(--hv-hero-edge) 20px; scrollbar-width: none; }
  [data-page="home"] .category-dock button { min-width: 0; min-height: 52px; padding: 8px 16px; white-space: nowrap; }
  [data-page="home"] .category-dock::after { display: none; }
}

/* ---------- Why Coway, and who we are (render-home.cjs whyCoway) ----------
   A navy panel between the trade-in and the order form. Top: the heading and intro on the left, the
   cut-paper picture on a tilted white card on the right (same card as the order form and FAQ art).
   Middle: the four facts in two columns of open rows with yellow ticks. Foot: who we are, one line. */
[data-page="home"] .hm-why-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); grid-template-areas: "copy art" "list list" "us us"; align-items: center; column-gap: clamp(28px, 5vw, 72px); padding: clamp(28px, 5vw, 64px); border: var(--hv-edge); border-radius: var(--hv-r-panel); background: var(--ink); color: var(--hv-white); box-shadow: var(--hv-shadow); }
[data-page="home"] .hm-why-copy { grid-area: copy; max-width: 620px; margin-bottom: 0; }
[data-page="home"] .hm-why-copy h2 { color: var(--hv-white); }
[data-page="home"] .hm-why-copy h2 span { color: var(--accent); }
[data-page="home"] .hm-why-copy p { color: var(--hv-on-dark); }
[data-page="home"] .hm-why-art { grid-area: art; justify-self: end; width: min(100%, 280px); aspect-ratio: 1; padding: 4%; border: var(--hv-edge); border-radius: var(--hv-r-card); background: var(--hv-white); box-shadow: var(--hv-shadow); transform: rotate(2deg); }
[data-page="home"] .hm-why-art img { display: block; width: 100%; height: 100%; object-fit: contain; }
[data-page="home"] .hm-why-list { grid-area: list; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(28px, 4vw, 56px); margin: clamp(32px, 4vw, 48px) 0 0; border-top: 1px solid var(--hv-line-dark); }
[data-page="home"] .hm-why-list > div { padding: 22px 0; border-bottom: 1px solid var(--hv-line-dark); }
[data-page="home"] .hm-why-list > div:nth-last-child(-n+2) { border-bottom: 0; }
[data-page="home"] .hm-why-us { grid-area: us; margin-top: 8px; padding-top: 20px; border-top: 1px solid var(--hv-line-dark); color: var(--hv-on-dark); font-size: 15px; }
/* keep the who-we-are line a readable width (the hairline above still runs the full panel) */
[data-page="home"] .hm-why-us { padding-right: max(0px, calc(100% - 75ch)); }
[data-page="home"] .hm-why-us a { color: var(--hv-white); font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
[data-page="home"] .hm-why-list dt { display: flex; align-items: center; gap: 10px; color: var(--hv-white); font-size: 19px; font-weight: 700; }
[data-page="home"] .hm-why-list dt svg { flex: none; width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--accent); color: var(--ink); }
[data-page="home"] .hm-why-list dd { margin: 6px 0 0 32px; color: var(--hv-on-dark); font-size: 16px; line-height: 1.55; }

/* ---------- phone (760px and under) ---------- */
@media (max-width: 760px) {
  :root { --hv-hero-edge: 20px; }
  /* Why Coway on a phone: heading, the picture (smaller, centred), the facts in one column, who we are */
  [data-page="home"] .hm-why-card { grid-template-columns: 1fr; grid-template-areas: "copy" "art" "list" "us"; border-radius: var(--hv-r-card); }
  [data-page="home"] .hm-why-art { justify-self: center; width: min(70%, 220px); margin-top: 24px; transform: rotate(-2deg); }
  [data-page="home"] .hm-why-list { grid-template-columns: 1fr; margin-top: 28px; }
  [data-page="home"] .hm-why-list > div:nth-last-child(-n+2) { border-bottom: 1px solid var(--hv-line-dark); }
  [data-page="home"] .hm-why-list > div:last-child { border-bottom: 0; }
  /* the round hero picture is about 340px wide on a phone: the 640px copy is sharp and a third of the
     bytes, so the first screen paints sooner on mobile data (render.cjs preloads this same file) */
  [data-page="home"] .product-halo { background-image: url("/assets/art/hero-640.webp"); }
  /* The hero becomes one tidy column: label, headline, text, button, then the product on its
     collage, then the price with the arrows beside it. Heights are reserved so slides do not jump. */
  [data-page="home"] .motion-hero { height: auto; min-height: 0; max-height: none; }
  [data-page="home"] .motion-hero .hero-editorial { width: 100%; padding: 20px var(--hv-hero-edge) 0; }
  [data-page="home"] .motion-hero .hero-editorial .eyebrow { margin-bottom: 8px; }
  [data-page="home"] .motion-hero .hero-editorial h1 { max-width: none; min-height: 1.8em; font-size: clamp(40px, 12vw, 72px); line-height: 0.9; white-space: nowrap; }
  [data-page="home"] .motion-hero #hero-description br { display: none; }
  [data-page="home"] .motion-hero .hero-editorial p { max-width: none; min-height: 4.95em; margin: 8px 0 12px; }
  [data-page="home"] .hero-product-scene[data-shape],
  [data-page="home"] .hero-product-scene { position: relative; top: auto; right: auto; width: 100%; height: min(62vw, 280px); margin-top: 16px; }
  /* price block on the left, the two arrows pinned to its top right corner */
  [data-page="home"] .motion-hero .hero-bottom { display: block; min-height: 0; margin: 8px var(--hv-hero-edge) 20px; padding-top: 0; }
  [data-page="home"] .motion-hero .hero-pagination { position: absolute; top: 4px; right: 0; }
  /* cards sit straight in the sideways rows: a tilt would be cut off by the row's edge */
  [data-page="home"] .lineup .home-grid { gap: 16px; padding-block: 8px 16px; }
  [data-page="home"] .lineup .home-grid .product-card:nth-child(n) { transform: none; }
  [data-page="home"] .hm-match-result,
  [data-page="home"] .hm-trade-media { transform: none; }
  [data-page="home"] .hm-gallery-strip { gap: 16px; }
  [data-page="home"] .hm-match-card,
  [data-page="home"] .hm-trade-card,
  [data-page="home"] .hm-order-card { border-radius: var(--hv-r-card); }
  /* the form's single column may shrink to the screen (it used to push 29px past the edge) */
  [data-page="home"] .hm-form { grid-template-columns: minmax(0, 1fr); }
  [data-page="home"] .hm-field { min-width: 0; }
  /* the long WhatsApp button fits its card */
  [data-page="home"] .hm-submit { gap: 8px; padding-inline: 12px; font-size: 15px; }
}

/* Narrow phones: the two prices stack, with the arrow pointing down between them */
@media (max-width: 480px) {
  [data-page="home"] .promo-duration-key > div { padding: 12px 16px; }
}

/* Very narrow phones: the two long WhatsApp buttons stay on one line */
@media (max-width: 380px) {
  /* slightly smaller hero text, so the longest description still fits the three reserved lines */
  [data-page="home"] .motion-hero .hero-editorial p { font-size: 15px; }
  /* the promo line under RM20 may need two lines here; the room is kept so slides stay level */
  [data-page="home"] .motion-hero .hero-price > small { min-height: 3.2em; }
  [data-page="home"] .hm-match-actions .button,
  [data-page="home"] .hm-trade-copy .button { gap: 8px; padding-inline: 12px; font-size: 14px; white-space: nowrap; }
  [data-page="home"] .lineup .home-grid .card-body h3 { font-size: 26px; }
}

/* People who ask their device for less motion get no lift or tilt animation */
@media (prefers-reduced-motion: reduce) {
  [data-page="home"] .button,
  [data-page="home"] .header-whatsapp,
  [data-page="home"] .round-button,
  [data-page="home"] .category-dock button,
  [data-page="home"] .lineup .home-grid .product-card,
  [data-page="home"] .offer-model-info > a,
  [data-page="home"] .hm-faq-list summary span { transition: none; }
}
