/* Mashd theme — the platform's own marketing site (mashd.uk), built from the
   "Mashd.uk five design directions" handoff.

   The look: a warm bone paper ground, near-black ink, and ONE amber accent used
   only for click targets and the Premium tier. Layout is hairlines and white
   space rather than boxes — only browser/demo frames, the Premium tier, the
   contact panel and the footer bar carry a border or fill. No shadows anywhere,
   no motion beyond hover colour changes.

   Type: condensed display caps (Bebas Neue) over a plain body face (Sora), with
   mono for meta. All three are self-hosted from static/fonts/ (docs/05: no
   Google Fonts requests) and declared below.

   Brand values come from the design tokens (a re-tint is a token change, docs/05);
   literals appear only for the structural neutrals the token set has no slot for
   (elevated/subtle/interactive grounds, the strong hairline, tertiary ink).

   Loaded after static/css/site.css, so it overrides the shared component styles. */

/* --- Self-hosted faces (OFL; see static/fonts/README.md) ------------------- */

@font-face {
  font-family: "Bebas Neue";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../../fonts/bebas-neue-latin-400.1a662f8f0b09.woff2") format("woff2");
}
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../../fonts/sora-latin-var.f544d77b0e9b.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../../fonts/jetbrains-mono-latin-var.570751c5f8b4.woff2") format("woff2");
}

/* --- Token layer ---------------------------------------------------------- */

.theme-mashd {
  /* The token values (--font-heading / --font-body) come from base.html; these
     add the fallback stacks. Named --font-sans rather than reusing --font-body,
     which would be a circular custom-property reference. */
  --font-display: var(--font-heading), "Bebas Neue", "Haettenschweiler", "Arial Narrow", Impact, sans-serif;
  --font-sans: var(--font-body), system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Grounds. The token set covers app/surface/text/border; the three extra
     paper values below are structural neutrals of the same bone family. */
  --bg-app: var(--color-bg);
  --bg-surface: var(--color-surface);
  --bg-surface-elevated: #f9f5ec;  /* cards, browser frames, form panel */
  --bg-subtle: #ece7db;            /* footer bar, stripe placeholder light band */
  --bg-interactive: #eae4d6;       /* stripe placeholder dark band */

  --border-default: var(--color-border);
  --border-strong: #c9c0ad;        /* browser-chrome dots */

  --text-primary: var(--color-text);
  --text-secondary: var(--color-muted);
  /* Handoff value was #8d8577. Even darkened, a tertiary grey cannot clear
     4.5:1 on the darker grounds at the 11px this design sets meta in — it is
     3.80:1 on --bg-subtle. So it is reserved for placeholder text inside
     inputs (always on --bg-surface, 4.62:1) and nothing else; meta, footer nav
     and news dates use --text-secondary, which clears AA on every ground.
     docs/mashd-site-spec.md makes WCAG AA a hard constraint. */
  --text-tertiary: #7a7367;

  --amber: var(--color-accent);
  /* Two ambers, split by WCAG's text-size rule rather than by taste:
     --amber-ink (token, #8a5c12) is the safe default — it clears 4.5:1 on
     every ground, so kickers, small labels, link hover and focus rings use it.
     --amber-display is the handoff's original #a5701a, kept for the emphasised
     words in a masthead only, where the type is large enough to need just
     3:1 (it is 3.71:1 on --bg-app, 4.19:1 on --bg-surface). */
  --amber-ink: var(--color-primary);
  --amber-display: #a5701a;
  --amber-hover: color-mix(in srgb, var(--amber) 88%, var(--text-primary));
  --amber-tint: color-mix(in srgb, var(--amber) 14%, transparent);
  --amber-rule: color-mix(in srgb, var(--text-primary) 14%, transparent);

  /* Type scale. Display sizes fluid so the design holds down to a phone; the
     upper bound of each clamp is the handoff's desktop value. */
  --type-display-hero: clamp(2.375rem, 7.4vw, 3.75rem);   /* 38 → 60px */
  --type-display-page: clamp(2.25rem, 6.6vw, 3.25rem);    /* 36 → 52px */
  --type-display-l: clamp(1.875rem, 4.6vw, 2.375rem);     /* 30 → 38px */
  --type-display-demo: clamp(1.75rem, 4vw, 2.125rem);     /* 28 → 34px */
  --type-display-m: 1.625rem;                             /* 26px card headline */
  --type-display-s: 1.375rem;                             /* 22px stat value */
  --type-body-l: 1.125rem;                                /* 18px hero sub */
  --type-body-m: 1rem;                                    /* 16px body — the floor */
  --type-unit: 0.875rem;                                  /* 14px price unit */
  --type-title: 0.8125rem;                                /* 13px section title / nav */
  --type-kicker: 0.75rem;                                 /* 12px kicker */
  --type-label: 0.6875rem;                                /* 11px card label, meta */

  --track-display: 0.01em;
  --track-title: 0.14em;
  --track-kicker: 0.16em;
  --track-mono: 0.06em;

  --content-max: var(--max-width);
  --content-pad: 56px;
  --frame-radius: var(--radius);       /* 14px browser frames + demo cards */
  --panel-radius: 1rem;                /* 16px Premium tier + contact panel */
  --field-radius: 0.5625rem;           /* 9px inputs */

  background: var(--bg-app);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: var(--type-body-m);
  line-height: 1.55;
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

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

/* Amber on hover is the only link affordance — no underlines anywhere. */
.theme-mashd a { color: inherit; text-decoration: none; }
.theme-mashd a:hover { color: var(--amber-ink); }

/* Focus states were not in the handoff; a visible amber-ink ring is a launch
   requirement (and site.css's :focus-visible already uses --color-primary). */
.theme-mashd :focus-visible { outline: 3px solid var(--amber-ink); outline-offset: 3px; border-radius: 2px; }

.theme-mashd main { flex: 1; }

/* --- Bands + content column ----------------------------------------------- */

.band { padding: 80px var(--content-pad); background: var(--bg-app); }
.band--surface { background: var(--bg-surface); }
.band--hero { padding-top: 76px; padding-bottom: 66px; }
.band--head { padding-top: 66px; padding-bottom: 56px; }
.band--strip { padding-top: 26px; padding-bottom: 26px; }
.band--demos { padding-top: 64px; padding-bottom: 80px; }
.band--tiers { padding-top: 64px; padding-bottom: 76px; }
.band--faq { padding-top: 72px; padding-bottom: 80px; }
.band--close { padding-bottom: 88px; }
.band--posts { padding-top: 56px; padding-bottom: 80px; }
.band--contact { padding-top: 66px; padding-bottom: 76px; }

.band__inner { max-width: var(--content-max); margin: 0 auto; }
.band__stack { display: flex; flex-direction: column; gap: 30px; }

/* --- Type primitives ------------------------------------------------------ */

.masthead-kicker {
  font-size: var(--type-kicker); font-weight: 700; line-height: 1.1;
  letter-spacing: var(--track-kicker); text-transform: uppercase;
  color: var(--amber-ink); margin: 0;
}
.masthead-display {
  font-family: var(--font-display); font-weight: 400;
  letter-spacing: var(--track-display); line-height: 0.98;
  color: var(--text-primary); margin: 0;
  font-size: var(--type-display-l);
}
.masthead-display em { font-style: normal; color: var(--amber-display); }
.masthead-display--hero { font-size: var(--type-display-hero); line-height: 0.96; }
.masthead-display--page { font-size: var(--type-display-page); }
.masthead-display--demo { font-size: var(--type-display-demo); line-height: 1; }
/* Measure per headline, in the handoff's ch values (chosen so each headline
   breaks where the design breaks it). Released below the two-column breakpoint,
   where a narrow measure would strand single words on a phone. */
.masthead-display--w12 { max-width: 12ch; }
.masthead-display--w13 { max-width: 13ch; }
.masthead-display--w15 { max-width: 15ch; }
.masthead-display--w16 { max-width: 16ch; }
.masthead-display--w18 { max-width: 18ch; }
.masthead-sub {
  font-size: var(--type-body-l); line-height: 1.45;
  color: var(--text-secondary); margin: 0; max-width: 52ch;
}
.card-headline {
  font-family: var(--font-display); font-weight: 400; font-size: var(--type-display-l);
  letter-spacing: var(--track-display); line-height: 1; color: var(--text-primary); margin: 0;
}
.card-headline--m { font-size: var(--type-display-m); }
.card-body { font-size: var(--type-body-m); line-height: 1.55; color: var(--text-secondary); margin: 0; }
.card-body--ink { color: var(--text-primary); font-weight: 600; }
.card-label {
  font-size: var(--type-label); font-weight: 700; line-height: 1;
  letter-spacing: var(--track-title); text-transform: uppercase;
  color: var(--text-secondary); margin: 0;
}
.section-title {
  font-size: var(--type-title); font-weight: 700; line-height: 1;
  letter-spacing: var(--track-title); text-transform: uppercase;
  color: var(--text-secondary); margin: 0;
}
.section-meta {
  font-family: var(--font-mono); font-size: var(--type-label); line-height: 1.3;
  letter-spacing: var(--track-mono); text-transform: uppercase;
  color: var(--text-secondary); margin: 0;
}
.measure { max-width: 42ch; }
.measure-wide { max-width: 76ch; }

/* --- Call-to-action ------------------------------------------------------- */

.pill-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 22px; border: 0; border-radius: 999px; box-shadow: none;
  font-family: var(--font-sans); font-size: var(--type-kicker); font-weight: 700;
  letter-spacing: var(--track-title); text-transform: uppercase; line-height: 1;
  background: var(--amber); color: #1c1a17; cursor: pointer; white-space: nowrap;
  -webkit-appearance: none; appearance: none;
  transition: background-color .15s ease, color .15s ease;
}
.pill-cta:hover { background: var(--amber-hover); color: #1c1a17; }
.pill-cta--sm { padding: 9px 15px; font-size: var(--type-label); gap: 8px; }
.pill-cta__arrow { line-height: 1; margin-right: -2px; }

/* The plain uppercase text CTA that sits beside a pill. */
.text-cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-sans); font-size: var(--type-title); font-weight: 600;
  letter-spacing: var(--track-title); text-transform: uppercase; line-height: 1;
  color: var(--text-secondary); background: none; border: 0; padding: 0; cursor: pointer;
  text-align: left;
}
.text-cta:hover { color: var(--amber-ink); }

.cta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; }

/* --- Header --------------------------------------------------------------- */

.mh-header {
  position: sticky; top: 0; z-index: 5;
  background: var(--bg-app); padding: 22px var(--content-pad);
}
.mh-header__inner {
  max-width: var(--content-max); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.side-brand-mark {
  font-family: var(--font-display); font-size: 1.625rem; line-height: 1;
  letter-spacing: var(--track-display); color: var(--text-primary);
}
.side-brand-mark:hover { color: var(--text-primary); }
.side-brand-mark em { font-style: normal; color: var(--amber); }
.mh-header__right { display: flex; align-items: center; gap: 30px; }
.mh-nav ul { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.mh-nav a {
  font-size: var(--type-title); font-weight: 500; line-height: 1;
  letter-spacing: var(--track-title); text-transform: uppercase;
  color: var(--text-secondary);
}
.mh-nav a[aria-current="page"] { color: var(--text-primary); font-weight: 700; }
.mh-nav a:hover { color: var(--amber-ink); }

/* --- Footer --------------------------------------------------------------- */

.mh-footer { background: var(--bg-subtle); padding: 28px var(--content-pad); }
.mh-footer__inner {
  max-width: var(--content-max); margin: 0 auto;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 24px;
}
.mh-footer .side-brand-mark { font-size: 1.25rem; }
.mh-footer__nav { display: flex; flex-wrap: wrap; gap: 18px; list-style: none; margin: 0; padding: 0; }
.mh-footer__nav a {
  font-family: var(--font-mono); font-size: var(--type-label);
  letter-spacing: var(--track-mono); color: var(--text-secondary);
}
.mh-footer__nav a:hover { color: var(--amber-ink); }
.mh-footer__legal { display: flex; flex-direction: column; gap: 4px; text-align: right; }

/* --- Hero ----------------------------------------------------------------- */

.hero { display: grid; grid-template-columns: 1fr 340px; gap: 60px; align-items: start; }
.hero--plain { display: block; }
.hero__copy > * + * { margin-top: 0; }
.hero__copy .masthead-display { margin-top: 16px; }
.hero__copy .masthead-sub { margin-top: 22px; max-width: 40ch; }
.hero__copy .cta-row { margin-top: 30px; }
.hero--plain .masthead-display { margin-top: 14px; }
.hero--plain .masthead-sub { margin-top: 20px; }

/* The pain list — the key element of the home hero. Hairlines, no boxes. */
.pain { padding-top: 6px; }
.pain__list { list-style: none; margin: 16px 0 0; padding: 0; }
.pain__item {
  display: flex; flex-direction: column; gap: 5px;
  padding: 15px 0; border-top: 1px solid var(--border-default);
}

/* --- Stats strip ---------------------------------------------------------- */

.stats { display: flex; width: 100%; list-style: none; margin: 0; padding: 0; }
.stat { flex: 1; min-width: 0; padding: 0 12px; }
.stat:first-child { padding-left: 0; }
.stat:last-child { padding-right: 0; }
.stat + .stat { border-left: 1px solid var(--border-default); padding-left: 16px; }
.stat__value {
  display: block; font-family: var(--font-display); font-size: var(--type-display-s);
  letter-spacing: 0.02em; line-height: 1; color: var(--text-primary); margin-bottom: 6px;
}
.stat__label { display: block; font-size: var(--type-body-m); color: var(--text-secondary); line-height: 1.35; }

/* --- Claims (three columns + a footnote paragraph) ------------------------ */

.claims { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; list-style: none; margin: 0; padding: 0; }
.claim { display: flex; flex-direction: column; gap: 10px; }

/* --- Demo cards (home strip) ---------------------------------------------- */

.demo-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; list-style: none; margin: 0; padding: 0; }
.demo-card {
  display: flex; flex-direction: column; height: 100%; overflow: hidden;
  border: 1px solid var(--border-default); border-radius: var(--frame-radius);
  background: var(--bg-surface-elevated);
}
.demo-card:hover { color: inherit; border-color: var(--border-strong); }
.demo-card:hover .card-headline { color: var(--amber-ink); }
.demo-card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; }

/* Browser chrome + the diagonal-stripe screenshot placeholder. Both are
   decorative stand-ins: real screenshots of the demo sites replace .shot. */
.chrome {
  display: flex; align-items: center; gap: 7px; width: 100%;
  padding: 10px 13px; border-bottom: 1px solid var(--border-default);
}
.status-dot { display: block; width: 6px; height: 6px; border-radius: 999px; background: var(--border-strong); flex: 0 0 auto; }
.chrome .section-meta { margin-left: 4px; }
.shot {
  display: grid; place-items: center; width: 100%; height: 150px;
  background: repeating-linear-gradient(135deg, var(--bg-subtle) 0 9px, var(--bg-interactive) 9px 18px);
}
/* A real screenshot, once one exists, fills the same slot as the placeholder. */
.shot--real { height: 150px; object-fit: cover; object-position: top center; }
.frame--real { display: block; width: 100%; height: auto; }

/* --- Demo blocks (the /demos/ page) --------------------------------------- */

.demo-blocks { display: flex; flex-direction: column; gap: 64px; list-style: none; margin: 0; padding: 0; }
.demo-block { display: grid; grid-template-columns: 420px 1fr; gap: 52px; align-items: center; }
.demo-block:nth-child(even) { grid-template-columns: 1fr 420px; }
.demo-block:nth-child(even) .demo-block__frame { order: 2; }
.demo-block__copy { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }

.frame {
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--border-default); border-radius: var(--frame-radius);
  background: var(--bg-surface-elevated);
}
.frame__brand {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; border-bottom: 1px solid var(--border-default);
}
.frame__brand-name { font-family: var(--font-display); font-size: 1.125rem; letter-spacing: 0.02em; }
.frame__hero {
  display: flex; align-items: flex-end; height: 112px; padding: 12px 16px;
  background: repeating-linear-gradient(135deg, var(--bg-subtle) 0 9px, var(--bg-interactive) 9px 18px);
}
.frame__rows { padding: 14px 16px; display: flex; flex-direction: column; gap: 9px; margin: 0; list-style: none; }
.frame__row { display: flex; justify-content: space-between; gap: 12px; }
.frame__row:not(:last-child) { border-bottom: 1px solid var(--border-default); padding-bottom: 8px; }
.frame__row-name { color: var(--text-primary); }
.frame__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; border-top: 1px solid var(--border-default);
}
.frame__button {
  padding: 9px 14px; border-radius: 8px; background: var(--amber); color: #1c1a17;
  font-size: var(--type-title); font-weight: 700; line-height: 1;
}

/* --- Pricing tiers -------------------------------------------------------- */

.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; align-items: start; list-style: none; margin: 0; padding: 0; }
.tier { display: flex; flex-direction: column; gap: 12px; padding-top: 24px; }
.tier--highlight {
  gap: 12px; padding: 22px; border-radius: var(--panel-radius);
  background: var(--amber-tint);
}
.tier--highlight .card-label { color: var(--amber-ink); }
.tier__blurb { min-height: 3.1em; }   /* keeps the lines aligned across columns */
.tier__rule { height: 1px; width: 100%; border: 0; background: var(--border-default); margin: 6px 0; }
.tier--highlight .tier__rule { background: var(--amber-rule); }
.tier__features { display: flex; flex-direction: column; gap: 9px; list-style: none; margin: 0; padding: 0; }
.tier__unit { font-family: var(--font-sans); font-size: var(--type-unit); font-weight: 500; color: var(--text-secondary); }
.tier__cta { margin-top: auto; padding-top: 8px; }

/* --- FAQ ------------------------------------------------------------------ */

.faq { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px 56px; list-style: none; margin: 0; padding: 0; }
.faq__item { display: flex; flex-direction: column; gap: 7px; padding-top: 16px; border-top: 1px solid var(--border-default); }
.faq__q { font-size: var(--type-body-m); font-weight: 600; line-height: 1.55; color: var(--text-primary); margin: 0; }

/* --- Closing CTA ---------------------------------------------------------- */

.closing .masthead-display { max-width: 16ch; }
.closing .masthead-sub { margin-top: 18px; }
.closing .cta-row { margin-top: 30px; gap: 22px; }

/* --- News ----------------------------------------------------------------- */

.posts { list-style: none; margin: 0; padding: 0; }
.post-row {
  display: grid; grid-template-columns: 120px 1fr 150px; gap: 32px; align-items: baseline;
  padding: 22px 0; border-top: 1px solid var(--border-default);
}
.post-row:hover .card-headline { color: var(--amber-ink); }
.post-row__text { display: flex; flex-direction: column; gap: 6px; }
.post-row__tag { text-align: right; }
.post-empty { padding-top: 22px; border-top: 1px solid var(--border-default); }

.post { max-width: 66ch; }
.post__meta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.post__body { font-size: var(--type-body-m); line-height: 1.7; color: var(--text-secondary); }
.post__body > * { margin: 0 0 1.1em; }
.post__body h2, .post__body h3 {
  font-family: var(--font-display); font-weight: 400; letter-spacing: var(--track-display);
  line-height: 1.05; color: var(--text-primary); margin: 1.6em 0 0.5em;
}
.post__body h2 { font-size: var(--type-display-m); }
.post__body h3 { font-size: 1.375rem; }
.post__body strong { color: var(--text-primary); font-weight: 600; }
.post__body a { color: var(--amber-ink); }
.post__body ul, .post__body ol { padding-left: 1.2em; }
.post__body li { margin-bottom: 0.4em; }
.post__body hr { border: 0; height: 1px; background: var(--border-default); margin: 2em 0; }
.post__cover { width: 100%; height: auto; border-radius: var(--frame-radius); margin-bottom: 28px; }
.post__back { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--border-default); }

/* --- Prose (privacy, terms) ----------------------------------------------- */

.prose { max-width: 72ch; font-size: var(--type-body-m); line-height: 1.7; color: var(--text-secondary); }
.prose > * { margin: 0 0 1.1em; }
.prose > *:last-child { margin-bottom: 0; }
.prose strong { color: var(--text-primary); font-weight: 600; }
.prose a { color: var(--amber-ink); }

/* --- Contact -------------------------------------------------------------- */

.contact { display: grid; grid-template-columns: 1fr 400px; gap: 64px; align-items: start; }
.contact__copy .masthead-display { margin-top: 14px; }
.contact__copy .masthead-sub { margin-top: 20px; max-width: 42ch; }
.contact__points { list-style: none; display: flex; flex-direction: column; gap: 16px; margin: 36px 0 0; padding: 0; }
.contact__point { display: flex; flex-direction: column; gap: 5px; padding-top: 15px; border-top: 1px solid var(--border-default); }

.contact-panel {
  padding: 22px;
  border: 1px solid var(--border-default); border-radius: var(--panel-radius);
  background: var(--bg-surface-elevated);
}
.contact-panel .contact-form { display: flex; flex-direction: column; gap: 16px; max-width: none; }
.contact-panel .form-field { display: flex; flex-direction: column; gap: 7px; margin: 0; }
.contact-panel label { font-size: var(--type-label); font-weight: 700; line-height: 1; letter-spacing: var(--track-title); text-transform: uppercase; color: var(--text-secondary); }
.contact-panel input,
.contact-panel textarea {
  width: 100%; padding: 11px 13px; font-family: var(--font-sans); font-size: 0.9375rem;
  color: var(--text-primary); background: var(--bg-surface);
  border: 1px solid var(--border-default); border-radius: var(--field-radius);
  -webkit-appearance: none; appearance: none;
}
.contact-panel textarea { resize: vertical; line-height: 1.5; }
.contact-panel input::placeholder,
.contact-panel textarea::placeholder { color: var(--text-tertiary); }
.contact-panel input:focus-visible,
.contact-panel textarea:focus-visible { outline-offset: 1px; border-color: var(--amber-ink); }
.contact-panel .form-hint { font-size: var(--type-label); color: var(--text-secondary); margin: 0; }
.contact-panel .field-error,
.contact-panel .form-error { font-size: 0.875rem; color: #a3241f; margin: 0; font-weight: 600; }
.contact-panel__actions { padding-top: 2px; }

/* Renders *inside* the panel, in place of the form — so no second border. */
.contact-success { display: flex; flex-direction: column; gap: 10px; background: none; color: var(--text-primary); padding: 0; }
.contact-success .card-headline { margin: 0; }

/* --- Responsive ----------------------------------------------------------- */

/* Two columns become one, and the alternating demo blocks stop alternating.
   Mobile was not in the handoff — this is its stated intended behaviour. */
@media (max-width: 62rem) {
  .theme-mashd { --content-pad: 32px; }
  .hero { grid-template-columns: 1fr; gap: 42px; }
  .contact { grid-template-columns: 1fr; gap: 44px; }
  .claims { grid-template-columns: 1fr; gap: 30px; }
  .demo-cards { grid-template-columns: 1fr; }
  .demo-block,
  .demo-block:nth-child(even) { grid-template-columns: 1fr; gap: 28px; }
  .demo-block:nth-child(even) .demo-block__frame { order: 0; }
  .demo-blocks { gap: 52px; }
  /* Premium first, so the tier most shops want leads on a phone. */
  .tiers { grid-template-columns: 1fr; gap: 28px; }
  .tier--highlight { order: -1; }
  .tier { border-top: 1px solid var(--border-default); padding-top: 22px; }
  .tier--highlight { border-top: 0; }
  .faq { grid-template-columns: 1fr; gap: 26px; }
  /* Headline measures are set in ch for the desktop composition; on one column
     they would strand words, so the column width takes over. */
  .masthead-display--w12,
  .masthead-display--w13,
  .masthead-display--w15,
  .masthead-display--w16,
  .masthead-display--w18 { max-width: 20ch; }
}

@media (max-width: 45rem) {
  .theme-mashd { --content-pad: 22px; }
  .band { padding-top: 56px; padding-bottom: 56px; }
  .band--hero { padding-top: 48px; padding-bottom: 48px; }
  .band--head { padding-top: 44px; padding-bottom: 40px; }
  .band--strip { padding-top: 22px; padding-bottom: 22px; }
  .band--close { padding-bottom: 64px; }

  /* Header stacks: wordmark + quote CTA on the first row, nav on its own.
     `display: contents` lifts the nav and the CTA out of their wrapper so the
     three can be ordered against each other without moving them in the markup. */
  .mh-header { padding: 14px var(--content-pad); }
  .mh-header__inner { flex-wrap: wrap; row-gap: 12px; gap: 12px; }
  .mh-header__right { display: contents; }
  .mh-header__inner > .side-brand-mark { order: 1; }
  .mh-header__right > .pill-cta { order: 2; }
  .mh-nav { order: 3; width: 100%; }
  .mh-nav ul { gap: 20px; flex-wrap: wrap; }

  /* The stats strip is unreadable as four slivers — two rows of two. */
  .stats { flex-wrap: wrap; row-gap: 22px; }
  .stat { flex: 0 0 50%; }
  .stat:nth-child(odd) { padding-left: 0; border-left: 0; }

  .post-row { grid-template-columns: 1fr; gap: 8px; }
  .post-row__tag { text-align: left; order: -1; }

  .mh-footer__inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .mh-footer__legal { text-align: left; }

  /* Tap targets: 44px minimum. */
  .pill-cta, .pill-cta--sm { min-height: 44px; padding: 13px 20px; }
  .mh-nav a, .mh-footer__nav a, .text-cta,
  .side-brand-mark, .contact__point a, .closing .card-body a {
    min-height: 44px; display: inline-flex; align-items: center;
  }
}

/* The design has no motion; respect the preference anyway for the hover fades. */
@media (prefers-reduced-motion: reduce) {
  .theme-mashd * { transition: none !important; }
}
