/**
 * website.css — the public website's shell (DR-243; SCREEN-TEMPLATES.md Template 9).
 *
 * Loaded after rw-design-system.css by the two website layouts, Pages/Shared/_MarketingLayout
 * and _PublicLayout, and by nothing else. The shared parts (buttons, fields, cards, badges,
 * banners, icons, the page header) are rw-design-system.css's; this file holds only what the
 * website alone draws: its header and navigation, its footer, the public page frame and the
 * long-text style of the legal and help pages, and the marketing pages' own layout.
 *
 * TOKENS ONLY: no hex colour, colour function, named colour, font name or radius number
 * (UI definition of done check 1). BREAKPOINTS: the three of Template 0 only, as max-width
 * (600, 768, 900). MOTION: every keyframe and animation plays only under
 * prefers-reduced-motion: no-preference. WebsiteAlignmentTests enforces all three.
 */

/* ── 1. The page ─────────────────────────────────────────────────────────── */
html { scroll-padding-top: var(--nav-height); }
body.rw-site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--rw-body);
  background: var(--rw-page-bg);
}
.rw-site main { flex: 1 0 auto; }
:where(.rw-site) img { max-width: 100%; }

/* ── 2. The header: lock-up left, links, sign-in and the call to action right (Template 9;
   v1.1 §9.3: sticky cardBg, 64 tall). The public pages' header is the lock-up alone, which
   links home. ─────────────────────────────────────────────────────────────── */
.rw-site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--rw-card-bg);
  border-bottom: 1px solid var(--rw-border);
}
.rw-site-header-inner {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  max-width: var(--page-width-marketing);
  height: var(--nav-height);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}
.rw-site-header--public .rw-site-header-inner,
.rw-site--public .rw-site-footer-inner { max-width: var(--page-width-public); }
.rw-site-brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 44px;
}
.rw-site-brand img { display: block; width: auto; height: 28px; }

.rw-site-nav {
  display: flex;
  flex: 1 1 auto;
  justify-content: center;
  min-width: 0;
}
.rw-site-nav-links,
.rw-site-nav-signin {
  margin: 0;
  padding: 0;
  list-style: none;
}
.rw-site-nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}
.rw-site-nav-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  min-height: 44px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--rw-navy);
  text-decoration: none;
  white-space: nowrap;
}
.rw-site-nav-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.rw-site-nav-link[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--rw-teal);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.rw-site-nav-link--emphasis { font-weight: 600; }
.rw-site-nav-signin { display: none; }

.rw-site-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: var(--space-sm);
}
.rw-site-dropdown { position: relative; }
.rw-site-dropdown-toggle .rw-icon { width: 16px; height: 16px; }
.rw-site-dropdown-toggle[aria-expanded="true"] .rw-icon { transform: rotate(180deg); }
.rw-site-dropdown-menu {
  position: absolute;
  top: calc(100% + var(--space-sm));
  right: 0;
  z-index: 110;
  min-width: 220px;
  margin: 0;
  padding: var(--space-sm);
  list-style: none;
  background: var(--rw-card-bg);
  border: 1px solid var(--rw-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
}
.rw-site-dropdown-menu[hidden] { display: none; }
.rw-site-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 var(--space-md);
  font-size: 14px;
  font-weight: 500;
  color: var(--rw-navy);
  text-decoration: none;
  border-radius: var(--radius-button);
}
.rw-site-dropdown-item:hover { background: var(--rw-border-light); }
.rw-site-dropdown-item .rw-icon { width: 20px; height: 20px; }

.rw-site-menu-toggle { display: none; margin-left: auto; }

/* ── 3. The footer (Template 9; Appendix B): brand column, Product, Company, Legal, then the
   copyright and ABN line. Navy, with the white lock-up (LOGO-USAGE.md). ───────────────── */
.rw-site-footer {
  padding: var(--space-2xl) 0 var(--space-xl);
  font-family: var(--font-body);
  color: var(--rw-slate);
  background: var(--rw-navy);
}
.rw-site-footer-inner {
  max-width: var(--page-width-marketing);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}
.rw-site-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-xl);
}
.rw-site-footer-brand img { display: block; width: auto; height: 28px; }
.rw-site-footer-tagline {
  max-width: 260px;
  margin: var(--space-md) 0 0;
  font-size: 13px;
  line-height: 1.6;
}
.rw-site-footer-origin { margin: 12px 0 0; font-size: 12px; line-height: 1.5; }
.rw-site-footer-heading {
  margin: 0 0 var(--space-sm);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--rw-slate);
}
.rw-site-footer-links { margin: 0; padding: 0; list-style: none; }
.rw-site-footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  line-height: 1.3;
  color: var(--rw-white);
  text-decoration: none;
}
.rw-site-footer-links a:hover { color: var(--rw-teal); text-decoration: underline; text-underline-offset: 3px; }
.rw-site-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  font-size: 12px;
  line-height: 1.5;
  border-top: 1px solid var(--rw-navy-hover);
}

/* ── 4. Public pages: the long text of the legal documents and help articles ─────────── */
.rw-prose {
  font-size: 16px;
  line-height: 1.7;
  color: var(--rw-body);
  overflow-wrap: break-word;
}
.rw-prose h1 { margin: var(--space-xl) 0 var(--space-md); font: var(--text-h2); color: var(--rw-navy); }
.rw-prose h2 { margin: var(--space-xl) 0 12px; font: var(--text-h3); color: var(--rw-navy); }
.rw-prose h3 { margin: var(--space-lg) 0 var(--space-sm); font: var(--text-h4); color: var(--rw-navy); }
/* A document whose sections are level-one headings (the consumer and website terms). */
.rw-prose--sections h1 { font: var(--text-h3); }
.rw-prose--sections h2 { font: var(--text-h4); }
.rw-prose h4 { margin: var(--space-lg) 0 var(--space-sm); font-family: var(--font-body); font-size: 16px; font-weight: 600; color: var(--rw-navy); }
.rw-prose p,
.rw-prose ul,
.rw-prose ol { margin: 0 0 var(--space-md); }
.rw-prose ul,
.rw-prose ol { padding-left: var(--space-lg); }
.rw-prose li { margin-bottom: var(--space-sm); }
.rw-prose strong { font-weight: 600; color: var(--rw-navy); }
.rw-prose a {
  font-weight: 500;
  color: var(--rw-navy);
  text-decoration: underline;
  text-underline-offset: 2px;
  overflow-wrap: anywhere;
}
.rw-prose a:hover { text-decoration-thickness: 2px; }
.rw-prose code {
  padding: 1px 5px;
  font-size: 14px;
  background: var(--rw-border-light);
  border-radius: var(--radius-sm);
  overflow-wrap: anywhere;
}
.rw-prose hr { margin: var(--space-xl) 0; border: none; border-top: 1px solid var(--rw-border); }
.rw-prose table {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0 0 var(--space-md);
  overflow-x: auto;
  border-collapse: collapse;
}
.rw-prose th,
.rw-prose td {
  padding: var(--space-sm) 10px;
  text-align: left;
  vertical-align: top;
  border: 1px solid var(--rw-border);
}
.rw-prose > :first-child { margin-top: 0; }

/* A document's header on a public page: the title, then one line of detail. */
.rw-doc-header { margin: 0 0 var(--space-xl); text-align: center; }
.rw-doc-header h1 { margin: 0 0 var(--space-sm); font: var(--text-h1); color: var(--rw-navy); }
.rw-doc-header p { margin: 0; font-size: 14px; color: var(--rw-text-secondary); }
.rw-doc-meta { margin: 0 0 var(--space-lg); font-size: 13px; color: var(--rw-text-secondary); }

/* A legal document in a card (the merchant terms and their versions), and its notices. */
.rw-legal-doc { padding: var(--space-xl); }
.rw-legal-doc--empty { padding: var(--space-2xl) var(--space-xl); text-align: center; }
.rw-legal-doc--empty h1 { margin: 0 0 12px; font: var(--text-h2); color: var(--rw-navy); }
.rw-legal-doc--empty p { margin: 0; color: var(--rw-text-secondary); }
.rw-legal-banner { margin: 0 0 var(--space-md); }

/* Contact: the three mailboxes and the identity block, in the lawyer's words. */
.rw-contact-email { font-size: 17px; font-weight: 600; }
.rw-contact-identity {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  font-size: 14px;
  line-height: 1.7;
  color: var(--rw-text-secondary);
  border-top: 1px solid var(--rw-border);
}

/* A short page that is one card: About, and the general error page (Template 7). */
.rw-site-narrow {
  max-width: 480px;
  margin: var(--space-xl) auto;
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
}
.rw-site-narrow-title { margin: 0 0 12px; font: var(--text-h2); color: var(--rw-navy); }
.rw-site-narrow p { margin: 0 0 var(--space-md); color: var(--rw-text-secondary); }
.rw-site-narrow-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}
.rw-error-card-icon { width: 24px; height: 24px; margin-bottom: var(--space-md); color: var(--rw-error-text); }
.rw-site-narrow .rw-error-card-ref { margin: var(--space-lg) 0 0; font-size: 12px; }

/* Help centre: the filter, the grouped questions, and the line under an article. */
.rw-help-search { margin: 0 0 var(--space-xl); }
.rw-help-search .rw-input { font-size: 16px; }
.rw-help-group { margin: 0 0 var(--space-xl); }
.rw-help-group[hidden],
.rw-help-group li[hidden] { display: none; }
.rw-help-group .rw-settings-group { margin: 0; }
.rw-help-empty { margin: 0 0 var(--space-xl); font-size: 15px; color: var(--rw-text-secondary); }
.rw-help-empty[hidden] { display: none; }
.rw-help-foot {
  margin: var(--space-xl) 0 0;
  padding-top: var(--space-lg);
  font-size: 15px;
  line-height: 1.6;
  color: var(--rw-text-secondary);
  border-top: 1px solid var(--rw-border);
}
.rw-help-foot strong { display: block; margin-bottom: var(--space-xs); font-weight: 600; color: var(--rw-navy); }
.rw-help-tips { margin: var(--space-lg) 0 0; }
.rw-help-tips .rw-section-label { margin-bottom: var(--space-sm); }
.rw-help-tips .rw-prose { font-size: 15px; }

/* Form pages on the public layout: the shared sign-in card (COMPONENTS.md, DR-241), centred. */
.rw-site-auth {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-md) 0;
}
.rw-site-form-card {
  max-width: 640px;
  margin: 0 auto;
  padding: var(--space-lg);
}
.rw-site-form-foot { margin-right: auto; margin-left: auto; }
.rw-site-form-card .rw-auth-title { margin: 0 0 var(--space-xs); font: var(--text-h2); color: var(--rw-navy); }
.rw-site-form-card .rw-banner { margin-bottom: var(--space-md); }
.rw-site-auth-done { text-align: center; }
.rw-site-auth-done .rw-auth-actions { justify-content: center; }
.rw-site-auth-done-icon { width: 24px; height: 24px; margin-bottom: var(--space-md); color: var(--rw-success-text); }
.rw-site-optional { font-weight: 400; color: var(--rw-text-secondary); }
.rw-site-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rw-site-consent { align-items: flex-start; margin: var(--space-xs) 0 var(--space-md); }
.rw-site-consent .rw-checkbox-box { margin-top: 2px; }
.rw-site-consent .rw-checkbox-label { font-size: 13px; line-height: 1.5; color: var(--rw-text-secondary); }

/* The waitlist's point-of-sale tiles: native radios, one tab stop, the tile is the label
   (DR-181). The library terminal on every tile; the tick belongs to the selected one. */
.rw-site-waitlist .tiles { min-width: 0; margin: 0 0 var(--space-md); padding: 0; border: 0; }
.rw-site-waitlist .tiles legend {
  margin: 0 0 var(--space-sm);
  padding: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--rw-body);
}
.rw-site-waitlist .tilerow { position: relative; display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.rw-site-waitlist .tilein {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}
.rw-site-waitlist .tile {
  position: relative;
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 72px;
  min-height: 44px;
  margin: 0;
  padding: 12px var(--space-sm);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  color: var(--rw-slate-dark);
  cursor: pointer;
  background: var(--rw-card-bg);
  border: 1px solid var(--rw-border);
  border-radius: var(--radius-card);
}
.rw-site-waitlist .tile:hover { background: var(--rw-page-bg); border-color: var(--rw-slate); }
.rw-site-waitlist .tileicon { width: 20px; height: 20px; color: var(--rw-slate); }
.rw-site-waitlist .tick {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 14px;
  height: 14px;
  color: var(--rw-navy);
  visibility: hidden;
}
.rw-site-waitlist .tilein:checked + .tile {
  color: var(--rw-navy);
  border-color: var(--rw-teal);
  box-shadow: inset 0 0 0 1px var(--rw-teal);
}
.rw-site-waitlist .tilein:checked + .tile .tileicon { color: var(--rw-navy); }
.rw-site-waitlist .tilein:checked + .tile .tick { visibility: visible; }
.rw-site-waitlist .tilein:focus-visible + .tile { outline: 2px solid var(--rw-navy); outline-offset: 2px; }
.rw-site-tiles-error { margin-top: var(--space-xs); }
/* DR-418 — the kind tiles at the top of Register are links (one per kind); the chosen one is
   marked like a ticked tile. No script: choosing reloads the page with ?kind=. */
.rw-site-waitlist a.tile { text-decoration: none; }
.rw-site-waitlist a.tile[aria-current="true"] { color: var(--rw-navy); border-color: var(--rw-teal); box-shadow: inset 0 0 0 1px var(--rw-teal); }
.rw-site-waitlist a.tile[aria-current="true"] .tileicon { color: var(--rw-navy); }
.rw-site-waitlist a.tile[aria-current="true"] .tick { visibility: visible; }
.rw-site-waitlist a.tile:focus-visible { outline: 2px solid var(--rw-navy); outline-offset: 2px; }
.rw-site-waitlist .kindhint { display: block; font-weight: 400; color: var(--rw-slate-dark); }

/* The waitlist's layered privacy notice (DR-181): the lead always visible, the rest in <details>. */
.rw-site-waitlist .notice {
  margin: var(--space-lg) 0 0;
  padding: 14px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--rw-text-secondary);
  background: var(--rw-page-bg);
  border: 1px solid var(--rw-border);
  border-radius: var(--radius-button);
}
.rw-site-waitlist .notice strong { display: block; margin: 0 0 6px; color: var(--rw-navy); }
.rw-site-waitlist .notice p { margin: 0; }
.rw-site-waitlist .notice-more { margin: var(--space-sm) 0 0; }
.rw-site-waitlist .notice-more summary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  min-height: 32px;
  font-weight: 600;
  color: var(--rw-navy);
  list-style: none;
  cursor: pointer;
}
.rw-site-waitlist .notice-more summary::-webkit-details-marker { display: none; }
.rw-site-waitlist .notice-more summary .rw-icon { width: 16px; height: 16px; }
.rw-site-waitlist .notice-more[open] summary .rw-icon { transform: rotate(180deg); }
.rw-site-waitlist .notice-more[open] summary { margin: 0 0 6px; }
.rw-site-waitlist .notice-more p + p { margin-top: var(--space-sm); }

/* ── 5. Marketing pages: sections, their headings, hero, cards and grids (v1.1 §28). Sections
   alternate cardBg and pageBg; navy sections carry rw-on-navy. Eyebrows are the label token:
   teal text on white is 2.3:1, so it is teal only on navy (6.2:1). ────────────────────── */
.rw-site-container {
  width: 100%;
  max-width: var(--page-width-marketing);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}
.rw-mkt-section { padding: 96px 0; background: var(--rw-card-bg); }
.rw-mkt-section--alt { background: var(--rw-page-bg); }
.rw-mkt-section--navy { color: var(--rw-white); background: var(--rw-navy); }
.rw-mkt-head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.rw-mkt-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 12px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--rw-text-secondary);
}
.rw-mkt-eyebrow .rw-icon { width: 16px; height: 16px; }
.rw-mkt-section--navy .rw-mkt-eyebrow,
.rw-mkt-hero .rw-mkt-eyebrow { color: var(--rw-teal); }
.rw-mkt-title {
  margin: 0 0 12px;
  font-family: var(--font-heading);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  color: var(--rw-navy);
  text-wrap: balance;
}
.rw-mkt-section--navy .rw-mkt-title { color: var(--rw-white); }
.rw-mkt-lead {
  max-width: 600px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.7;
  color: var(--rw-text-secondary);
}
.rw-mkt-section--navy .rw-mkt-lead { color: var(--rw-slate); }

.rw-mkt-hero {
  padding: 96px 0 72px;
  color: var(--rw-white);
  background: var(--rw-navy);
}
.rw-mkt-hero h1 {
  margin: 0 0 24px;
  font-family: var(--font-heading);
  font-size: 56px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -1.5px;
  color: var(--rw-white);
  text-wrap: balance;
}
.rw-mkt-hero-sub {
  max-width: 560px;
  margin: 0 0 32px;
  font-size: 19px;
  line-height: 1.6;
  color: var(--rw-border);
}
.rw-mkt-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-md); }
.rw-mkt-note { margin: var(--space-md) 0 0; font-size: 13px; line-height: 1.5; color: var(--rw-slate); }

.rw-mkt-grid { display: grid; gap: var(--space-lg); }
.rw-mkt-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rw-mkt-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rw-mkt-card {
  display: flex;
  flex-direction: column;
  padding: 28px var(--space-lg);
}
.rw-mkt-card h3 {
  margin: 0 0 var(--space-sm);
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--rw-navy);
}
.rw-mkt-card p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--rw-text-secondary); }
.rw-mkt-icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0 0 var(--space-md);
  color: var(--rw-navy);
  background: var(--rw-page-bg);
  border: 1px solid var(--rw-border);
  border-radius: var(--radius-card);
}
.rw-mkt-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0 0 var(--space-md);
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: var(--rw-navy);
  background: var(--rw-teal);
  border-radius: var(--radius-pill);
}
.rw-mkt-checks { margin: 0; padding: 0; list-style: none; }
.rw-mkt-checks li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: 6px 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--rw-body);
}
.rw-mkt-checks .rw-icon { width: 16px; height: 16px; margin-top: 2px; color: var(--rw-success-text); }

/* Reveal on scroll (v1.1 §28.4: marketing may reveal on scroll, honouring reduced motion). Only
   with the script running and only for people who have not asked for less motion; everyone else,
   and every page without the script, sees the content at once. */
@media (prefers-reduced-motion: no-preference) {
  .rw-js [data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 600ms var(--easing-standard), transform 600ms var(--easing-standard);
  }
  .rw-js [data-reveal].is-revealed { opacity: 1; transform: none; }
}

/* ── 6. The home pages (both: Pages/Index.cshtml and Pages/Shared/_NewHomePage.cshtml) ───── */
.hm-hero-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 60px;
  align-items: center;
}
.hm-hero-offer {
  margin: 0 0 var(--space-md);
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--rw-teal);
}
.hm-hero-offer span { color: var(--rw-white); }
.hm-hero .hero-trust { margin: var(--space-md) 0 0; font-size: 13px; line-height: 1.5; color: var(--rw-slate); }

/* The new page's sample receipt: the paper palette (v1.1 §2.6), a torn edge top and bottom. */
.hm-receipt { max-width: 272px; margin: 0 auto; }
.hm-receipt-paper {
  --hm-tear: 8px;
  padding: calc(20px + var(--hm-tear)) 20px calc(20px + var(--hm-tear));
  font-family: var(--font-body);
  color: var(--rw-body);
  background: var(--rw-receipt-paper);
  clip-path: polygon(0 var(--hm-tear), 5% 0, 10% var(--hm-tear), 15% 0, 20% var(--hm-tear), 25% 0, 30% var(--hm-tear), 35% 0, 40% var(--hm-tear), 45% 0, 50% var(--hm-tear), 55% 0, 60% var(--hm-tear), 65% 0, 70% var(--hm-tear), 75% 0, 80% var(--hm-tear), 85% 0, 90% var(--hm-tear), 95% 0, 100% var(--hm-tear),
    100% calc(100% - var(--hm-tear)), 95% 100%, 90% calc(100% - var(--hm-tear)), 85% 100%, 80% calc(100% - var(--hm-tear)), 75% 100%, 70% calc(100% - var(--hm-tear)), 65% 100%, 60% calc(100% - var(--hm-tear)), 55% 100%, 50% calc(100% - var(--hm-tear)), 45% 100%, 40% calc(100% - var(--hm-tear)), 35% 100%, 30% calc(100% - var(--hm-tear)), 25% 100%, 20% calc(100% - var(--hm-tear)), 15% 100%, 10% calc(100% - var(--hm-tear)), 5% 100%, 0 calc(100% - var(--hm-tear)));
}
.hm-receipt-paper p { margin: 0; }
.hm-receipt-label {
  margin: 0 0 var(--space-sm);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-align: center;
  text-transform: uppercase;
  color: var(--rw-text-secondary);
}
.hm-receipt-merchant { font-size: 14px; font-weight: 600; text-align: center; color: var(--rw-navy); }
.hm-receipt-address { margin: 2px 0 var(--space-md) !important; font-size: 12px; text-align: center; color: var(--rw-text-secondary); }
.hm-receipt-meta { margin: 0; }
.hm-receipt-meta div,
.hm-receipt-items div,
.hm-receipt-total {
  display: flex;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: 3px 0;
  font-size: 12px;
}
.hm-receipt-meta dt { color: var(--rw-text-secondary); }
.hm-receipt-meta dd { margin: 0; font-weight: 500; white-space: nowrap; }
.hm-receipt-items span:first-child { flex: 1; }
.hm-receipt-qty { margin: 0 12px; color: var(--rw-text-secondary); }
.hm-receipt-rule { margin: 10px 0; border: none; border-top: 1px dashed var(--rw-border); }
.hm-receipt-total {
  margin: var(--space-sm) 0 6px;
  padding: var(--space-sm) 0 0;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 800;
  color: var(--rw-navy);
  border-top: 2px solid var(--rw-navy);
}
.hm-receipt-loyalty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: var(--space-md) 0 0;
  padding: var(--space-sm) 12px;
  font-size: 12px;
  background: var(--rw-border-light);
  border-radius: var(--radius-button);
}
.hm-receipt-loyalty-name { font-weight: 600; color: var(--rw-navy); white-space: nowrap; }
.hm-receipt-loyalty-left { font-weight: 700; color: var(--rw-navy); white-space: nowrap; }
.hm-receipt-stamps { display: inline-flex; gap: 5px; }
.hm-receipt-stamps span {
  width: 10px;
  height: 10px;
  border: 1.5px solid var(--rw-slate);
  border-radius: var(--radius-pill);
}
.hm-receipt-stamps .is-stamped { background: var(--rw-teal); border-color: var(--rw-teal); }
.hm-receipt-powered {
  margin: var(--space-md) 0 0 !important;
  font-size: 12px;
  text-align: center;
  color: var(--rw-text-secondary);
}
.hm-receipt-powered span { display: block; }

/* The old page's receipt card: navy on the navy hero, held apart by its border. */
.hm-live-receipt {
  max-width: 320px;
  margin: 0 auto;
  padding: var(--space-lg);
  background: var(--rw-navy);
  border: 1px solid var(--rw-navy-hover);
  border-radius: var(--radius-sheet);
  box-shadow: var(--shadow-lg);
}
.hm-live-receipt-store {
  margin: 0 0 var(--space-md);
  padding-bottom: var(--space-md);
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  color: var(--rw-white);
  border-bottom: 1px solid var(--rw-navy-hover);
}
.hm-live-receipt-items div,
.hm-live-receipt-total { display: flex; justify-content: space-between; padding: 4px 0; font-size: 13px; color: var(--rw-border); }
.hm-live-receipt-items hr { margin: var(--space-sm) 0; border: none; border-top: 1px dashed var(--rw-navy-hover); }
.hm-live-receipt-muted { color: var(--rw-slate) !important; }
.hm-live-receipt-total {
  margin-top: 12px;
  padding-top: var(--space-sm);
  font-size: 16px;
  font-weight: 700;
  color: var(--rw-white);
  border-top: 2px solid var(--rw-teal);
}
.hm-live-receipt-saved {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin: var(--space-md) 0 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--rw-teal);
}
.hm-pos-pills { display: flex; flex-wrap: wrap; gap: var(--space-md); margin: 0 0 40px; padding: 0; list-style: none; }
.hm-pos-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 10px var(--space-md);
  font-size: 14px;
  font-weight: 500;
  color: var(--rw-border);
  border: 1px solid var(--rw-navy-hover);
  border-radius: var(--radius-button);
}
.hm-pos-pill--live { color: var(--rw-white); border-color: var(--rw-teal); }
.hm-pos-pill--live .rw-icon { color: var(--rw-teal); }

.hm-stats { padding: 28px 0; color: var(--rw-white); background: var(--rw-navy); border-top: 1px solid var(--rw-navy-hover); }
.hm-stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-lg); text-align: center; }
.hm-stat-value { font-size: 24px; font-weight: 700; line-height: 1.3; color: var(--rw-teal); }
.hm-stat-value--words { display: flex; align-items: center; justify-content: center; gap: var(--space-sm); font-size: 20px; }
.hm-stat-label { margin-top: var(--space-xs); font-size: 13px; color: var(--rw-slate); }

/* The industry picker (DR-177): a search, a strip of chips, the panel for the chosen one. */
.hm-picker { margin: 0 0 36px; }
.hm-picker-search { max-width: 340px; margin: 0 auto var(--space-lg); }
.hm-picker-row { display: flex; align-items: center; gap: 10px; }
.hm-picker-scroll { flex: 0 0 auto; }
.hm-chips {
  display: flex;
  flex: 1 1 auto;
  gap: 12px;
  min-width: 0;
  padding: 6px 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
.hm-chips::-webkit-scrollbar { display: none; }
.hm-chip {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  width: 116px;
  padding: 14px 10px 12px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--rw-navy);
  cursor: pointer;
  background: var(--rw-card-bg);
  border: 2px solid var(--rw-border);
  border-radius: var(--radius-card);
}
.hm-chip[hidden] { display: none; }
.hm-chip:hover { border-color: var(--rw-slate); }
.hm-chip .rw-icon { width: 28px; height: 28px; }
.hm-chip.is-selected { color: var(--rw-teal); background: var(--rw-navy); border-color: var(--rw-navy); }
.hm-industry { max-width: 880px; margin: 0 auto; padding: 36px 32px; }
.hm-industry-photo {
  display: block;
  width: 100%;
  max-width: 420px;
  margin: 0 auto var(--space-lg);
  aspect-ratio: 3 / 2;
  object-fit: contain;
  background: var(--rw-page-bg);
  border-radius: var(--radius-card);
}
.hm-industry-head { margin: 0 0 28px; text-align: center; }
.hm-industry-head h3 { margin: 0 0 var(--space-sm); font-family: var(--font-heading); font-size: 22px; font-weight: 800; color: var(--rw-navy); }
.hm-industry-head p { max-width: 560px; margin: 0 auto; font-size: 15px; line-height: 1.6; color: var(--rw-text-secondary); }
.hm-industry-features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md); }
.hm-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  background: var(--rw-page-bg);
  border-radius: var(--radius-card);
}
.hm-feature .rw-mkt-icon { margin: 0; background: var(--rw-card-bg); }
.hm-feature-title { margin-bottom: var(--space-xs); font-family: var(--font-heading); font-size: 14px; font-weight: 700; color: var(--rw-navy); }
.hm-feature-text { font-size: 13px; line-height: 1.6; color: var(--rw-text-secondary); }
.hm-industry-playbook { margin-top: 28px; padding-top: 22px; text-align: center; border-top: 1px solid var(--rw-border); }
.hm-industry-playbook p { margin: 0 0 14px; font-size: 14px; line-height: 1.6; color: var(--rw-text-secondary); }

/* How it works: two numbered steps, each with its flat scene (v1.1 §5A: at most 380 wide). */
.hm-steps { gap: 56px; }
.hm-step { display: flex; flex-direction: column; max-width: 460px; margin-inline: auto; }
.hm-step-head { display: flex; align-items: center; gap: 12px; margin-bottom: var(--space-sm); }
.hm-step-head .rw-mkt-num { margin: 0; }
.hm-step-head h3 { margin: 0; font-family: var(--font-heading); font-size: 22px; font-weight: 700; color: var(--rw-navy); }
.hm-step p { margin: 0 0 var(--space-sm); font-size: 15px; line-height: 1.6; color: var(--rw-text-secondary); }
.hm-step-scene { display: block; width: 100%; max-width: 380px; height: auto; margin: auto auto 0; }

/* The honest comparison. */
.hm-compare-inner { max-width: 1100px; }
.hm-compare-lede { max-width: 620px; margin: 0 auto 10px; font-family: var(--font-heading); font-size: 19px; font-weight: 600; line-height: 1.45; color: var(--rw-navy); }
.hm-moment {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 0 28px;
  padding: 22px 0;
  border-top: 1px solid var(--rw-border);
}
.hm-moment-icon { display: flex; align-items: center; justify-content: center; align-self: center; width: 56px; height: 56px; color: var(--rw-navy); }
.hm-moment-icon .rw-icon { width: 40px; height: 40px; }
.hm-moment p { margin: 0; }
.hm-moment-label { margin: 0 0 6px !important; font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--rw-text-secondary); }
.hm-moment-claim { max-width: 860px; font-family: var(--font-heading); font-size: clamp(20px, 2.2vw, 27px); font-weight: 700; line-height: 1.25; letter-spacing: -0.5px; color: var(--rw-navy); text-wrap: balance; }
.hm-moment-claim em { font-style: normal; text-decoration: underline; text-decoration-color: var(--rw-teal); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.hm-moment-vs { margin-top: var(--space-sm) !important; font-size: 14px; line-height: 1.5; color: var(--rw-text-secondary); }
.hm-moment-vs span { margin-right: 10px; font-size: 11px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase; }
.hm-moment-figure { display: flex; flex-wrap: wrap; align-items: baseline; gap: 22px; }
.hm-moment-big { font-family: var(--font-heading); font-size: clamp(56px, 8vw, 96px); font-weight: 800; line-height: 0.95; letter-spacing: -3.5px; color: var(--rw-navy); }
.hm-moment-big span { margin-left: 10px; font-size: 0.34em; letter-spacing: -1px; }
.hm-moment-was { padding-bottom: var(--space-sm); font-family: var(--font-heading); font-size: 16px; font-weight: 600; line-height: 1.45; color: var(--rw-text-secondary); }
.hm-moment-was s { text-decoration-thickness: 2px; }
.hm-moment-was span { font-family: var(--font-body); font-size: 14px; font-weight: 400; }
.hm-compare-close { padding: 56px 0 var(--space-sm); text-align: center; }
.hm-compare-close p { max-width: 900px; margin: 0 auto; padding-top: 26px; font-family: var(--font-heading); font-size: clamp(26px, 3.4vw, 42px); font-weight: 800; line-height: 1.15; letter-spacing: -1.2px; color: var(--rw-navy); text-wrap: balance; border-top: 3px solid var(--rw-teal); display: inline-block; }
.hm-compare-close span { color: var(--rw-slate-dark); }

/* Revenue, consumer and sustainability cards. */
.hm-revenue { padding: 26px var(--space-lg); }
.hm-revenue-head { display: flex; align-items: center; gap: var(--space-md); margin-bottom: 14px; }
.hm-revenue-head .rw-mkt-icon { margin: 0; }
.hm-revenue h3 { margin: 0; font-family: var(--font-heading); font-size: 17px; font-weight: 700; line-height: 1.3; color: var(--rw-navy); }
.hm-revenue > p { margin: 0 0 var(--space-md); font-size: 14px; line-height: 1.6; color: var(--rw-text-secondary); }
.hm-revenue > p:last-child { margin-bottom: 0; }
.hm-consumers { max-width: 880px; margin: 0 auto; }
.hm-consumers .rw-mkt-card p { margin-bottom: var(--space-md); }
.hm-sust { align-items: center; padding: 28px var(--space-lg); text-align: center; }
.hm-sust .rw-mkt-icon { margin: 0 auto var(--space-md); }
.hm-sust h3 { margin: 0 0 6px; font-family: var(--font-heading); font-size: 15px; font-weight: 700; color: var(--rw-navy); }
.hm-sust p { margin: 0; font-size: 13px; line-height: 1.6; color: var(--rw-text-secondary); }

/* Pricing: two tabs (website.js), one card each. */
.hm-tabs {
  display: flex;
  justify-content: center;
  gap: var(--space-xs);
  width: fit-content;
  margin: 0 auto 48px;
  padding: var(--space-xs);
  background: var(--rw-card-bg);
  border: 1px solid var(--rw-border);
  border-radius: var(--radius-card);
}
.hm-tab {
  min-height: 44px;
  padding: 0 32px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--rw-text-secondary);
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: var(--radius-button);
}
.hm-tab:hover { color: var(--rw-navy); }
.hm-tab[aria-selected="true"] { color: var(--rw-white); background: var(--rw-navy); }
.hm-price {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 392px;
  margin: 0 auto;
  padding: 32px var(--space-lg);
  text-align: center;
}
.hm-price--featured { box-shadow: inset 0 0 0 2px var(--rw-teal), var(--shadow-sm); }
.hm-price .rw-badge { margin: 0 0 12px; }
.hm-price-name { margin: 0 0 var(--space-sm); font-family: var(--font-heading); font-size: 16px; font-weight: 700; color: var(--rw-navy); }
.hm-price-amount { margin: 0 0 var(--space-xs); font-family: var(--font-heading); font-size: 36px; font-weight: 800; letter-spacing: -1px; color: var(--rw-navy); }
.hm-price-cur { font-size: 16px; font-weight: 600; vertical-align: super; }
.hm-price-per { font-size: 14px; font-weight: 600; letter-spacing: 0; color: var(--rw-text-secondary); }
.hm-price-desc { margin: 0 0 var(--space-sm); font-size: 13px; color: var(--rw-text-secondary); }
.hm-price-note { margin: var(--space-sm) 0 0; font-size: 12px; line-height: 1.6; color: var(--rw-text-secondary); }
.hm-price .rw-mkt-checks { align-self: stretch; margin: var(--space-md) 0 var(--space-lg); text-align: left; }
.hm-price-callout {
  align-self: stretch;
  margin: 0;
  padding: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--rw-navy);
  background: var(--rw-page-bg);
  border: 1px solid var(--rw-border);
  border-radius: var(--radius-button);
}

/* The questions: one open at a time (website.js). */
.hm-faq { max-width: 800px; margin: 0 auto; }
.hm-faq-item {
  margin-bottom: 12px;
  background: var(--rw-card-bg);
  border: 1px solid var(--rw-border);
  border-radius: var(--radius-card);
}
.hm-faq-q { margin: 0; }
.hm-faq-q button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  width: 100%;
  min-height: 44px;
  padding: 20px var(--space-lg);
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
  color: var(--rw-navy);
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: var(--radius-card);
}
.hm-faq-q .rw-icon { width: 20px; height: 20px; flex: 0 0 auto; }
.hm-faq-q button[aria-expanded="true"] .rw-icon { transform: rotate(180deg); }
.hm-faq-a { padding: 0 var(--space-lg) 20px; font-size: 14px; line-height: 1.7; color: var(--rw-body); }
.hm-faq-a[hidden] { display: none; }
.hm-faq-a p { margin: 0; }

/* The closing call to action. */
.hm-cta { text-align: center; }
.hm-cta .rw-mkt-lead { margin-bottom: 32px; font-size: 18px; }
.hm-cta-actions { justify-content: center; }
.hm-cta-trust { margin: 32px 0 0; font-size: 13px; color: var(--rw-slate); }

/* The old page's point-of-sale row, feature grid and trial button. */
.hm-live-pos { margin-bottom: 48px; }
.hm-live-pos-card { align-items: center; text-align: center; }
.hm-live-pos-card .rw-mkt-icon { margin-bottom: 12px; }
.hm-live-pos-card p { margin-bottom: 10px; }
.hm-live-features { margin-bottom: 48px; }
.hm-live-features h3 { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm); }
.hm-live-bizcta { text-align: center; }
.hm-live-bizcta p { margin: 12px 0 0; font-size: 13px; color: var(--rw-text-secondary); }

/* ── 6a. Breakpoints: the three of Template 0, max-width only ──────────────────────────── */
@media (max-width: 900px) {
  /* Five links, the sign-in menu and the call to action need about 860 pixels; below the
     narrow-desktop breakpoint they sit behind the menu button (the new home page folded at
     1080 before DR-243: #867 moves that to the nearest of the three). */
  .rw-site-menu-toggle { display: inline-flex; }
  .rw-site-actions { display: none; }
  .rw-site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    max-height: calc(100vh - var(--nav-height));
    padding: var(--space-sm) var(--space-lg) var(--space-md);
    overflow-y: auto;
    background: var(--rw-card-bg);
    border-bottom: 1px solid var(--rw-border);
    box-shadow: var(--shadow-md);
  }
  .rw-site-header.is-menu-open .rw-site-nav { display: flex; }
  /* The page under the open phone menu is dimmed (the overlay token, as a modal's), and a tap on
     it closes the menu (website.js). */
  .rw-site-header.is-menu-open::after {
    content: "";
    position: fixed;
    top: var(--nav-height);
    right: 0;
    bottom: 0;
    left: 0;
    z-index: -1;
    background: var(--rw-overlay);
  }
  .rw-site-nav-links { flex-direction: column; align-items: stretch; gap: 0; }
  .rw-site-nav-link { font-size: 15px; }
  .rw-site-nav-signin {
    display: flex;
    flex-direction: column;
    margin-top: var(--space-sm);
    padding-top: var(--space-sm);
    border-top: 1px solid var(--rw-border-light);
  }
  .rw-site-footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rw-site-footer-brand { grid-column: 1 / -1; }
  .rw-mkt-grid--2 { grid-template-columns: minmax(0, 1fr); }
  .hm-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; text-align: center; }
  .hm-hero-visual { display: none; }
  .hm-hero .rw-mkt-hero-sub { margin-right: auto; margin-left: auto; }
  .hm-hero .rw-mkt-actions,
  .hm-pos-pills { justify-content: center; }
  .hm-industry-features { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 768px) {
  .rw-mkt-section { padding: 64px 0; }
  .rw-mkt-hero { padding: 64px 0 56px; }
  .rw-mkt-hero h1 { font-size: 36px; }
  .rw-mkt-hero-sub { font-size: 17px; }
  .rw-mkt-grid--3 { grid-template-columns: minmax(0, 1fr); }
  .rw-mkt-head { margin-bottom: var(--space-xl); }
  .hm-moment { grid-template-columns: minmax(0, 1fr); gap: 14px 0; }
  .hm-moment-icon { justify-content: flex-start; }
}
@media (max-width: 600px) {
  .rw-site-header-inner { padding: 0 var(--space-md); }
  .rw-site-nav { padding: var(--space-sm) var(--space-md) var(--space-md); }
  .rw-site-footer-inner { padding: 0 var(--space-md); }
  .rw-site-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-lg); }
  .rw-doc-header { margin-bottom: var(--space-lg); }
  .rw-doc-header h1 { font: var(--text-h2); }
  .rw-legal-doc { padding: var(--space-md); }
  .rw-legal-doc--empty { padding: var(--space-xl) var(--space-md); }
  .rw-site-narrow { margin: var(--space-md) auto; padding: var(--space-lg) var(--space-md); }
  .rw-site-container { padding: 0 var(--space-md); }
  .rw-site-form-card { padding: var(--space-md); }
  .rw-site-auth { padding: 0; }
  .rw-mkt-actions .rw-btn { flex: 1 1 100%; white-space: normal; }
  .hm-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-industry { padding: var(--space-lg) var(--space-md); }
  .hm-tab { padding: 0 var(--space-md); }
  .hm-faq-q button { padding: var(--space-md); }
  .hm-faq-a { padding: 0 var(--space-md) var(--space-md); }
}

/* ── 7. Print: the page, not the site's chrome ────────────────────────────────────────── */
@media print {
  .rw-site-header,
  .rw-site-footer,
  .rw-skip-link { display: none; }
  body.rw-site { background: var(--rw-white); }
  .rw-legal-doc { padding: 0; border: 0; box-shadow: none; }
}
