/* Comandly marketing site, built on the Comandly design system (docs/design).
   Load order: tokens.css (generated, do not edit) then this file. Every colour, spacing, radius,
   shadow and motion value below is a token from tokens.css. No build step, mobile first. */

/* ------------------------------------------------------------------------------------------
   Type scale. The --fs-*, --lh-* and --ls-* names are short aliases of the generated
   --type-<style>-{size,line,tracking} variables in tokens.css, so no token value is copied
   here. The display sizes are marketing-only (Fraunces) and have no token yet; they are the
   only literal type values in this file.
   ------------------------------------------------------------------------------------------ */
:root {
  --fs-caption: var(--type-caption-size);       --lh-caption: var(--type-caption-line);
  --fs-label: var(--type-label-size);           --lh-label: var(--type-label-line);   --ls-label: var(--type-label-tracking);
  --fs-body-sm: var(--type-body-sm-size);       --lh-body-sm: var(--type-body-sm-line);
  --fs-body: var(--type-body-size);             --lh-body: var(--type-body-line);
  --fs-body-lg: var(--type-body-lg-size);       --lh-body-lg: var(--type-body-lg-line);
  --fs-title-sm: var(--type-title-sm-size);     --lh-title-sm: var(--type-title-sm-line);
  --fs-title: var(--type-title-size);           --lh-title: var(--type-title-line);
  --fs-headline: var(--type-headline-size);     --lh-headline: var(--type-headline-line);
  --fs-money: var(--type-money-size);           --lh-money: var(--type-money-line);
  --fs-money-lg: var(--type-money-lg-size);     --lh-money-lg: var(--type-money-lg-line);
  --fs-display: clamp(40px, 3.6vw + 26px, 72px);
  --fs-display-md: clamp(32px, 2vw + 24px, 48px);
  --fs-display-sm: clamp(26px, 1vw + 22px, 34px);
  --ls-display: -0.022em;
  --ls-title: var(--type-title-tracking);
  --ls-money-lg: var(--type-money-lg-tracking);
  --ls-paper-bar: 0.08em;
  --lh-display: 1.04;
  --lh-display-md: 1.08;
  --lh-display-sm: 1.15;
  --lh-lead: 1.6;
  --lh-tight: 1;

  /* Site layout, expressed in tokens. */
  --gutter: var(--space-4);
  --section-y: var(--space-16);
  --header-h: var(--space-16);
}
@media (min-width: 600px) { :root { --gutter: var(--space-6); --section-y: calc(var(--space-12) * 2); } }
@media (min-width: 1024px) { :root { --gutter: var(--space-8); --section-y: calc(var(--space-16) + var(--space-12)); } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + var(--space-4)); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--surface-page);
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11", "ss01";
}
img, svg { display: block; max-width: 100%; }
a { color: var(--text-link); text-decoration-thickness: var(--stroke-hairline); text-underline-offset: var(--space-1); }
a:hover { color: var(--brand-hover); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
b, strong { font-weight: var(--weight-semibold); }
:focus-visible { outline: var(--stroke-focus) solid var(--border-focus); outline-offset: var(--space-1); border-radius: var(--radius-xs); }
::selection { background: var(--brand-soft); color: var(--brand-on-soft); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ico { width: var(--size-icon-sm); height: var(--size-icon-sm); flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico.sm { width: var(--space-4); height: var(--space-4); }
.ico.lg { width: var(--size-icon); height: var(--size-icon); }
.money { font-variant-numeric: tabular-nums; }

.container { width: 100%; max-width: calc(var(--size-content-max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; }

.skip { position: absolute; left: var(--space-4); top: calc(var(--space-16) * -1); z-index: var(--zindex-toast); display: inline-flex; align-items: center; min-height: var(--size-touch-min); padding: 0 var(--space-4); background: var(--surface-inverse); color: var(--text-inverse); border-radius: var(--radius-md); }
.skip:focus { top: var(--space-2); }

/* ---------- Typography helpers ---------- */
.display { font-family: var(--font-display); font-weight: var(--weight-semibold); font-optical-sizing: auto; letter-spacing: var(--ls-display); }
h1.display { font-size: var(--fs-display); line-height: var(--lh-display); }
h2.display { font-size: var(--fs-display-md); line-height: var(--lh-display-md); }
h3.display { font-size: var(--fs-display-sm); line-height: var(--lh-display-sm); }
.display em { font-style: normal; color: var(--brand-default); }
.kicker { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--fs-label); line-height: var(--lh-label); font-weight: var(--weight-semibold); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--brand-default); }
.lead { font-size: var(--fs-body-lg); line-height: var(--lh-lead); color: var(--text-secondary); max-width: 62ch; }
.muted { color: var(--text-secondary); }

.section-head { display: grid; gap: var(--space-4); max-width: 760px; margin-bottom: var(--space-12); }
.section-head.flush { margin-bottom: 0; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; justify-items: center; }

/* ---------- Brand mark (single artwork, both themes: never recoloured) ---------- */
.mark-bg { fill: var(--green-600); }
.mark-line { stroke: var(--sand-0); }
.mark-dot { fill: var(--orange-400); }
.brand { display: inline-flex; align-items: center; gap: var(--space-2); min-height: var(--size-touch-min); color: var(--text-primary); text-decoration: none; }
.brand:hover { color: var(--text-primary); }
.brand svg { width: var(--space-8); height: var(--space-8); }
.brand span { font-family: var(--font-display); font-weight: var(--weight-semibold); font-size: var(--fs-title); line-height: var(--lh-title); letter-spacing: var(--ls-title); }

/* ---------- Button (component 1) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: var(--size-touch-min); padding: 0 var(--space-5);
  border-radius: var(--radius-md); border: var(--stroke-input) solid transparent;
  font-family: var(--font-ui); font-size: var(--fs-body); line-height: var(--lh-body); font-weight: var(--weight-semibold);
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color var(--motion-duration-fast) var(--motion-easing-standard), border-color var(--motion-duration-fast) var(--motion-easing-standard), transform var(--motion-duration-fast) var(--motion-easing-standard);
}
.btn:active { transform: scale(0.98); }
.btn:focus-visible { outline: var(--stroke-focus) solid var(--border-focus); outline-offset: var(--stroke-focus); border-radius: var(--radius-md); }
.btn.lg { min-height: var(--size-touch-comfortable); padding: 0 var(--space-6); font-size: var(--fs-body-lg); line-height: var(--lh-body-lg); font-weight: var(--weight-medium); }
.btn.primary { background: var(--brand-default); color: var(--brand-on-brand); }
.btn.primary:hover { background: var(--brand-hover); color: var(--brand-on-brand); }
.btn.secondary { background: var(--surface-default); color: var(--text-primary); border-color: var(--border-strong); }
.btn.secondary:hover { background: var(--surface-sunken); color: var(--text-primary); }
.btn.tertiary { background: transparent; color: var(--brand-default); padding: 0 var(--space-3); }
.btn.block { width: 100%; }
.btn .count { font-weight: var(--weight-medium); opacity: var(--opacity-pressed); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: var(--zindex-sticky); border-bottom: var(--stroke-hairline) solid transparent; transition: border-color var(--motion-duration-base) var(--motion-easing-standard), background-color var(--motion-duration-base) var(--motion-easing-standard); }
.site-header.scrolled, .site-header:has(.nav-links.open) { background: color-mix(in srgb, var(--surface-page) 86%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(var(--space-3)); backdrop-filter: saturate(1.4) blur(var(--space-3)); border-bottom-color: var(--border-default); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); height: var(--header-h); }
.nav-links { display: none; }
.nav-links a:not(.btn) { color: var(--text-secondary); text-decoration: none; font-size: var(--fs-body-sm); line-height: var(--lh-body-sm); font-weight: var(--weight-medium); padding: var(--space-3) var(--space-2); border-radius: var(--radius-sm); }
.nav-links a:not(.btn):hover { color: var(--text-primary); }
.nav-toggle { display: inline-grid; place-items: center; width: var(--size-touch-min); height: var(--size-touch-min); border: 0; border-radius: var(--radius-md); background: transparent; color: var(--text-primary); cursor: pointer; }
.nav-toggle:hover { background: var(--surface-sunken); }
.nav-toggle .ico { width: var(--size-icon); height: var(--size-icon); }
.nav-toggle .i-close { display: none; }
.nav-toggle[aria-expanded="true"] .i-open { display: none; }
.nav-toggle[aria-expanded="true"] .i-close { display: block; }
@media (max-width: 899px) {
  .nav-links.open { display: grid; position: absolute; left: 0; right: 0; top: var(--header-h); padding: var(--space-2) var(--gutter) var(--space-6); gap: var(--space-1); background: var(--surface-page); border-bottom: var(--stroke-hairline) solid var(--border-default); box-shadow: var(--shadow-2); }
  .nav-links.open a:not(.btn) { font-size: var(--fs-body); line-height: var(--lh-body); color: var(--text-primary); padding: var(--space-3) 0; border-bottom: var(--stroke-hairline) solid var(--border-default); border-radius: 0; }
  .nav-links.open .btn { margin-top: var(--space-4); min-height: var(--size-touch-comfortable); }
}
@media (min-width: 900px) {
  .nav-links { display: flex; align-items: center; gap: var(--space-2); }
  .nav-links .btn { margin-left: var(--space-3); }
  .nav-toggle { display: none; }
}

/* ---------- Hero ---------- */
/* The hero slides under the translucent sticky header so its wash has no seam. */
.hero { position: relative; margin-top: calc(var(--header-h) * -1); padding: calc(var(--header-h) + var(--space-12)) 0 var(--space-8); background:
  radial-gradient(70% 55% at 50% 0%, var(--brand-soft), transparent 75%); }
.hero-head { display: grid; justify-items: center; text-align: center; gap: var(--space-5); }
.hero-head h1 { max-width: 15ch; }
.hero-head .lead { max-width: 60ch; }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: center; }
.ticks { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2) var(--space-5); color: var(--text-secondary); font-size: var(--fs-body-sm); line-height: var(--lh-body-sm); }
.ticks li { display: inline-flex; align-items: center; gap: var(--space-2); }
.ticks .ico { color: var(--status-success); width: var(--space-4); height: var(--space-4); }
@media (max-width: 479px) {
  .hero .actions { width: 100%; }
  .hero .actions .btn { width: 100%; }
}
@media (min-width: 600px) { .hero { padding-top: calc(var(--header-h) + var(--space-16)); } }

/* The product shot: a fixed-size stage scaled to the column. site.js sets --k from the
   measured width (the CSS-only tan(atan2()) ratio evaluates wrongly on iOS Safari and
   produced a negative scale, flipping the mockup). --k here is the no-JS fallback. */
.hero-visual { container-type: inline-size; margin-top: var(--space-10); }
.stage-box { --w: 1040; --h: 790; --k: 0.33; position: relative; height: calc(var(--h) * 1px * var(--k)); overflow: hidden; }
@container (max-width: 639px) { .stage-box { --w: 540; --h: 516; } }
.stage { position: absolute; top: 0; left: 50%; width: calc(var(--w) * 1px); height: calc(var(--h) * 1px); transform: translateX(-50%) scale(var(--k)); transform-origin: top center; }

.dev { position: absolute; background: var(--sand-900); box-shadow: var(--shadow-3), inset 0 0 0 var(--stroke-hairline) var(--sand-700); }
.dev::before { content: ""; position: absolute; width: var(--space-2); height: var(--space-2); border-radius: var(--radius-full); background: var(--sand-700); }
.screen { position: absolute; overflow: hidden; background: var(--surface-page); color: var(--text-primary); }
.dev-tablet { left: 100px; top: 0; width: 840px; height: 624px; border-radius: calc(var(--radius-xl) + var(--space-3)); }
.dev-tablet::before { left: 50%; top: calc(var(--space-2) - var(--stroke-hairline)); transform: translateX(-50%); }
.dev-tablet .screen { inset: var(--space-5); border-radius: var(--radius-md); }
.dev-phone { left: 0; top: 330px; width: 236px; height: 450px; border-radius: calc(var(--radius-xl) + var(--space-4)); z-index: 2; }
.dev-phone::before { left: 50%; top: var(--space-3); transform: translateX(-50%); z-index: 1; }
.dev-phone .screen { inset: var(--space-2); border-radius: calc(var(--radius-xl) + var(--space-2)); padding-top: var(--space-6); }
.stage .paper { left: 372px; top: 512px; z-index: 3; transform: rotate(-1.5deg); }
.tag { position: absolute; z-index: 4; display: inline-flex; align-items: center; gap: var(--space-2); height: var(--space-8); padding: 0 var(--space-3); border-radius: var(--radius-full); background: var(--surface-default); color: var(--text-primary); border: var(--stroke-hairline) solid var(--border-default); box-shadow: var(--shadow-2); font-size: var(--fs-label); line-height: var(--lh-label); font-weight: var(--weight-semibold); white-space: nowrap; }
.tag .ico { color: var(--brand-default); width: var(--space-4); height: var(--space-4); }
.tag-tablet { left: 770px; top: 640px; }
.tag-phone { left: 250px; top: 744px; }
.tag-paper { left: 666px; top: 700px; }
@container (max-width: 639px) {
  .dev-tablet, .tag-tablet { display: none; }
  .dev-phone { left: 6px; top: 0; }
  .stage .paper { left: 276px; top: 64px; transform: rotate(1.5deg); }
  .tag-phone { left: 34px; top: 474px; }
  .tag-paper { left: 300px; top: 404px; }
}

/* ---------- POS screen (tablet) ---------- */
.pos { display: grid; grid-template-rows: auto 1fr; }
.pos-top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); height: var(--size-touch-comfortable); padding: 0 var(--space-4); background: var(--surface-default); border-bottom: var(--stroke-hairline) solid var(--border-default); }
.pos-where { display: flex; align-items: baseline; gap: var(--space-2); font-size: var(--fs-body); line-height: var(--lh-body); }
.pos-where b { font-weight: var(--weight-semibold); }
.pos-where span { color: var(--text-secondary); font-size: var(--fs-body-sm); }
.pos-status { display: flex; align-items: center; gap: var(--space-2); }
.avatar { display: inline-grid; place-items: center; width: var(--size-avatar); height: var(--size-avatar); border-radius: var(--radius-full); background: var(--table-paid-fill); color: var(--table-paid-ink); font-size: var(--fs-caption); line-height: var(--lh-caption); font-weight: var(--weight-semibold); }
.pos-body { display: grid; grid-template-columns: 1fr 320px; min-height: 0; }
.pos-floor { display: grid; grid-template-rows: auto 1fr; gap: var(--space-3); padding: var(--space-4); min-height: 0; }
.pos-floor .c-floor { align-content: start; display: grid; grid-template-columns: repeat(4, 96px); justify-content: space-between; gap: var(--space-4) var(--space-3); }
.pos-rail { border-radius: 0; border-width: 0 0 0 var(--stroke-hairline); max-width: none; display: flex; flex-direction: column; }
.rail-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-2); padding: var(--space-3) var(--space-4); }
.rail-head b { display: block; font-size: var(--fs-title-sm); line-height: var(--lh-title-sm); font-weight: var(--weight-semibold); }
.rail-head span { font-size: var(--fs-body-sm); line-height: var(--lh-body-sm); color: var(--text-secondary); }
.pos-rail > * { flex-shrink: 0; }
.pos-rail .c-summary { margin-top: auto; }

/* ---------- Waiter screen (phone) ---------- */
.waiter { display: flex; flex-direction: column; }
.waiter > * { flex-shrink: 0; }
.w-top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); padding: var(--space-2) var(--space-3); }
.w-top b { display: block; font-size: var(--fs-title-sm); line-height: var(--lh-title-sm); font-weight: var(--weight-bold); }
.w-top span.sub { font-size: var(--fs-caption); line-height: var(--lh-caption); color: var(--text-secondary); }
.w-chips { display: flex; gap: var(--space-2); padding: var(--space-1) var(--space-3) var(--space-2); overflow: hidden; }
.w-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); padding: 0 var(--space-3); }
.w-grid .c-product { min-height: 76px; padding: var(--space-2) var(--space-3); }
.w-sheet { margin-top: auto; background: var(--surface-default); border-top: var(--stroke-hairline) solid var(--border-default); border-radius: var(--radius-lg) var(--radius-lg) 0 0; box-shadow: var(--shadow-2); padding: var(--space-2) var(--space-3) var(--space-4); display: grid; gap: var(--space-2); }
.w-sheet .grab { width: var(--space-8); height: var(--space-1); border-radius: var(--radius-full); background: var(--border-strong); margin: 0 auto; }
.w-sheet .row { display: flex; justify-content: space-between; align-items: center; font-size: var(--fs-body-sm); line-height: var(--lh-body-sm); color: var(--text-secondary); }
.w-sheet .row .money { font-size: var(--fs-money); line-height: var(--lh-money); font-weight: var(--weight-semibold); color: var(--text-primary); }
.w-sheet .btn { min-height: var(--size-touch-min); font-size: var(--fs-body-sm); padding: 0 var(--space-3); }

/* ---------- Design system components (look of 03-components.md) ---------- */

/* Badge (16) and chip */
.c-badge { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-1); height: var(--space-5); min-width: var(--space-5); padding: 0 calc(var(--space-1) * 1.5); border-radius: var(--radius-full); background: var(--surface-sunken); color: var(--text-secondary); font-size: var(--fs-caption); line-height: var(--lh-caption); font-weight: var(--weight-medium); font-variant-numeric: tabular-nums; white-space: nowrap; }
.c-badge.count { background: var(--accent-default); color: var(--accent-on-accent); font-weight: var(--weight-semibold); }
.c-badge.brand { background: var(--brand-default); color: var(--brand-on-brand); font-weight: var(--weight-semibold); }
.c-badge.success { background: var(--status-success-soft); color: var(--status-success-text); }
.c-badge.lg { height: var(--space-6); padding: 0 var(--space-3); font-size: var(--fs-label); line-height: var(--lh-label); font-weight: var(--weight-semibold); }
.chip { display: inline-flex; align-items: center; height: var(--space-8); padding: 0 var(--space-3); border-radius: var(--radius-full); background: var(--surface-sunken); color: var(--text-secondary); font-size: var(--fs-body-sm); line-height: var(--lh-body-sm); font-weight: var(--weight-medium); white-space: nowrap; }
.chip.on { background: var(--brand-default); color: var(--brand-on-brand); }
.chip.outline { background: var(--surface-default); border: var(--stroke-hairline) solid var(--border-default); color: var(--text-primary); }

/* SegmentedControl (2) */
.c-seg { display: inline-flex; padding: calc(var(--space-1) * 0.75); gap: var(--space-1); background: var(--surface-sunken); border-radius: var(--radius-md); height: var(--size-touch-min); justify-self: start; }
.c-seg span { display: inline-flex; align-items: center; padding: 0 var(--space-4); border-radius: var(--radius-sm); color: var(--text-secondary); font-size: var(--fs-body-sm); font-weight: var(--weight-medium); }
.c-seg span.on { background: var(--surface-default); color: var(--text-primary); font-weight: var(--weight-semibold); box-shadow: var(--shadow-1); }

/* StatusPill (27) */
.c-pill { display: inline-flex; align-items: center; gap: calc(var(--space-1) * 1.5); height: var(--space-8); padding: 0 var(--space-3) 0 var(--space-3); border-radius: var(--radius-full); background: var(--surface-sunken); color: var(--text-secondary); font-size: var(--fs-caption); line-height: var(--lh-caption); font-weight: var(--weight-semibold); white-space: nowrap; }
.c-pill .ico { width: var(--space-4); height: var(--space-4); }
.c-pill.synced .ico { color: var(--status-success); }
.c-pill.offline { background: var(--status-warning-soft); color: var(--status-warning-text); }
.c-pill .dot { width: var(--space-2); height: var(--space-2); border-radius: var(--radius-full); background: var(--accent-default); flex: none; }
.c-pill .pdot { width: var(--space-2); height: var(--space-2); border-radius: var(--radius-full); background: var(--status-success); flex: none; }
.c-pill.sm { height: var(--space-6); padding: 0 var(--space-2); }
@media (prefers-reduced-motion: no-preference) {
  .c-pill.offline .dot { animation: pulse calc(var(--motion-duration-slow) * 6) var(--motion-easing-standard) infinite; }
}
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent-default) 60%, transparent); } 70%, 100% { box-shadow: 0 0 0 var(--space-2) transparent; } }

/* TableTile (20) */
.c-floor { background: var(--surface-sunken); border-radius: var(--radius-xl); padding: var(--space-4); }
.c-tile { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(var(--space-1) / 2); width: 96px; height: var(--size-table-tile-min); border-radius: var(--radius-lg); font-size: var(--fs-body-lg); line-height: var(--lh-body-lg); font-weight: var(--weight-medium); font-variant-numeric: tabular-nums; }
.c-tile small { display: flex; align-items: center; gap: var(--space-1); font-size: var(--fs-caption); line-height: var(--lh-caption); font-weight: var(--weight-medium); }
.c-tile .ico { width: var(--space-4); height: var(--space-4); }
.c-tile .meta { position: absolute; top: calc(var(--space-1) * 1.5); right: var(--space-2); display: flex; align-items: center; gap: calc(var(--space-1) / 2); font-size: var(--fs-caption); line-height: var(--lh-caption); }
.c-tile .meta .ico { width: var(--space-3); height: var(--space-3); }
.c-tile.round { border-radius: var(--radius-full); width: var(--size-table-tile-min); }
.c-tile.round .meta { top: var(--space-2); right: 50%; transform: translateX(50%); }
.c-tile.round small { margin-bottom: calc(var(--space-1) * -1); }
.c-tile.wide { grid-column: span 2; width: auto; }
.c-tile.selected { outline: var(--stroke-selected) solid var(--brand-default); outline-offset: var(--stroke-selected); }
.c-tile.free { background: var(--table-free-fill); color: var(--table-free-ink); }
.c-tile.occupied { background: var(--table-occupied-fill); color: var(--table-occupied-ink); }
.c-tile.bill { background: var(--table-bill-fill); color: var(--table-bill-ink); }
.c-tile.paid { background: var(--table-paid-fill); color: var(--table-paid-ink); }
.c-tile.reserved { background: var(--table-reserved-fill); color: var(--table-reserved-ink); }
.c-tile.attention { background: var(--table-attention-fill); color: var(--table-attention-ink); }

/* ProductTile (21) */
.c-product { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: calc(var(--space-1) / 2); min-height: var(--size-product-tile-height); padding: var(--space-3); overflow: hidden; background: var(--surface-default); border: var(--stroke-hairline) solid var(--border-default); border-radius: var(--radius-md); }
.c-product::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: var(--space-1); background: var(--brand-default); }
.c-product .name { font-size: var(--fs-body-sm); line-height: var(--lh-body-sm); font-weight: var(--weight-semibold); }
.c-product .price { font-size: var(--fs-body-sm); line-height: var(--lh-body-sm); font-weight: var(--weight-semibold); color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.c-product .c-badge { position: absolute; top: var(--space-2); right: var(--space-2); }

/* OrderLine (22), CourseDivider (24), OrderSummary (23) */
.c-rail { background: var(--surface-default); border: var(--stroke-hairline) solid var(--border-default); border-radius: var(--radius-lg); overflow: hidden; width: 100%; max-width: var(--size-order-rail); }
.c-line { display: flex; align-items: flex-start; gap: var(--space-2); min-height: var(--size-touch-comfortable); padding: var(--space-2) var(--space-4); font-size: var(--fs-body); line-height: var(--lh-body); }
.c-line + .c-line { border-top: var(--stroke-hairline) solid var(--border-default); }
.c-line .glyph { width: var(--size-icon-sm); display: grid; place-items: center; padding-top: var(--space-1); color: var(--status-success); flex: none; }
.c-line .glyph .ico { width: var(--space-4); height: var(--space-4); }
.c-line .qty { width: var(--space-6); font-weight: var(--weight-semibold); font-variant-numeric: tabular-nums; flex: none; }
.c-line .txt { flex: 1; min-width: 0; }
.c-line .txt small { display: block; font-size: var(--fs-body-sm); line-height: var(--lh-body-sm); color: var(--text-secondary); }
.c-line .price { font-size: var(--fs-body); font-weight: var(--weight-semibold); font-variant-numeric: tabular-nums; }
.c-course { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-2) var(--space-4); background: var(--surface-sunken); color: var(--text-secondary); font-size: var(--fs-caption); line-height: var(--lh-caption); font-weight: var(--weight-semibold); letter-spacing: var(--ls-label); text-transform: uppercase; }
.c-course::before, .c-course::after { content: ""; flex: 1; height: var(--stroke-hairline); background: var(--border-default); }
.c-summary { display: grid; gap: var(--space-2); padding: var(--space-4); border-top: var(--stroke-hairline) solid var(--border-default); }
.c-summary .r { display: flex; justify-content: space-between; align-items: baseline; font-size: var(--fs-body-sm); line-height: var(--lh-body-sm); color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.c-summary .r.total { color: var(--text-primary); font-size: var(--fs-money-lg); line-height: var(--lh-money-lg); font-weight: var(--weight-bold); letter-spacing: var(--ls-money-lg); }
.c-summary .r.total span:first-child { font-size: var(--fs-money); line-height: var(--lh-money); font-weight: var(--weight-semibold); letter-spacing: normal; }
.c-summary .acts { display: grid; gap: var(--space-2); margin-top: var(--space-1); }

/* PaymentRow (26) */
.c-methods { display: flex; flex-wrap: wrap; gap: var(--space-2); padding: var(--space-4) var(--space-4) var(--space-2); }
.c-method { display: inline-flex; align-items: center; gap: var(--space-2); height: var(--size-touch-min); padding: 0 var(--space-3); border-radius: var(--radius-md); border: var(--stroke-input) solid var(--border-strong); background: var(--surface-default); color: var(--text-primary); font-size: var(--fs-body-sm); font-weight: var(--weight-medium); }
.c-method.on { border-color: var(--brand-default); background: var(--brand-soft); color: var(--brand-on-soft); }
.c-pay { display: flex; align-items: center; gap: var(--space-3); min-height: var(--size-touch-comfortable); padding: 0 var(--space-4); }
.c-pay + .c-pay { border-top: var(--stroke-hairline) solid var(--border-default); }
.c-pay .ico { color: var(--text-secondary); }
.c-pay .txt { flex: 1; }
.c-pay .txt small { display: block; font-size: var(--fs-body-sm); line-height: var(--lh-body-sm); color: var(--text-secondary); }
.c-pay .amt { font-size: var(--fs-money); line-height: var(--lh-money); font-weight: var(--weight-semibold); font-variant-numeric: tabular-nums; }
.c-due { display: flex; justify-content: space-between; align-items: baseline; padding: var(--space-3) var(--space-4); background: var(--surface-sunken); font-size: var(--fs-money); line-height: var(--lh-money); font-weight: var(--weight-semibold); }
.c-due b { font-size: var(--fs-money-lg); line-height: var(--lh-money-lg); font-weight: var(--weight-bold); font-variant-numeric: tabular-nums; }

/* StatTile (19) */
.c-stat { display: grid; gap: var(--space-1); align-content: start; padding: var(--space-5); background: var(--surface-default); border: var(--stroke-hairline) solid var(--border-default); border-radius: var(--radius-lg); }
.c-stat .lbl { font-size: var(--fs-label); line-height: var(--lh-label); font-weight: var(--weight-semibold); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--text-secondary); }
.c-stat .val { font-size: var(--fs-money-lg); line-height: var(--lh-money-lg); font-weight: var(--weight-bold); letter-spacing: var(--ls-money-lg); font-variant-numeric: tabular-nums; }
.c-stat .cmp { font-size: var(--fs-body-sm); line-height: var(--lh-body-sm); color: var(--text-secondary); }
.c-stat .cmp.good { color: var(--status-success-text); }

/* Toast (8) */
.c-toast { display: flex; align-items: center; gap: var(--space-3); min-height: var(--size-touch-comfortable); padding: var(--space-3) var(--space-4); background: var(--surface-inverse); color: var(--text-inverse); border-radius: var(--radius-lg); box-shadow: var(--shadow-2); font-size: var(--fs-body-sm); line-height: var(--lh-body-sm); }
/* Icon tints on the inverse card follow the showcase: light tint on dark card, dark tint on light card. */
.c-toast .ico { color: var(--green-300); }
[data-theme="dark"] .c-toast .ico { color: var(--green-600); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .c-toast .ico { color: var(--green-600); } }

/* TicketPreview (28): thermal paper, always light like the real thing */
.paper { position: absolute; width: 220px; padding: var(--space-4) var(--space-3) var(--space-6); background: var(--sand-0); color: var(--sand-900); font-family: var(--font-mono); font-size: var(--fs-caption); line-height: var(--lh-caption); box-shadow: var(--shadow-2);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--space-1) * 1.5), 95% 100%, 90% calc(100% - var(--space-1) * 1.5), 85% 100%, 80% calc(100% - var(--space-1) * 1.5), 75% 100%, 70% calc(100% - var(--space-1) * 1.5), 65% 100%, 60% calc(100% - var(--space-1) * 1.5), 55% 100%, 50% calc(100% - var(--space-1) * 1.5), 45% 100%, 40% calc(100% - var(--space-1) * 1.5), 35% 100%, 30% calc(100% - var(--space-1) * 1.5), 25% 100%, 20% calc(100% - var(--space-1) * 1.5), 15% 100%, 10% calc(100% - var(--space-1) * 1.5), 5% 100%, 0 calc(100% - var(--space-1) * 1.5)); }
.paper.static { position: relative; }
.paper .c { text-align: center; }
.paper .b { font-weight: var(--weight-bold); }
.paper .big { font-size: var(--fs-body-sm); line-height: var(--lh-body-sm); }
.paper .r { display: flex; justify-content: space-between; gap: var(--space-2); }
.paper .r span:last-child { font-variant-numeric: tabular-nums; text-align: right; }
.paper hr { border: 0; border-top: var(--stroke-hairline) dashed var(--sand-400); margin: calc(var(--space-1) * 1.5) 0; }
.paper .qr { width: 72px; height: 72px; margin: var(--space-2) auto; background: repeating-conic-gradient(var(--sand-900) 0 25%, var(--sand-0) 0 50%) 0 0 / var(--space-3) var(--space-3); }
.paper .bar { margin: var(--space-2) calc(var(--space-1) * -1); padding: calc(var(--space-1) / 2) var(--space-2); background: var(--sand-900); color: var(--sand-0); font-weight: var(--weight-bold); text-align: center; letter-spacing: var(--ls-paper-bar); }
/* Kitchen comanda: KitchenTicket anatomy (29) printed: big quantities, modifiers, notes. */
.paper.comanda { width: 236px; font-size: var(--fs-body-sm); line-height: var(--lh-body-sm); }
.paper.comanda .head { display: flex; justify-content: space-between; align-items: baseline; font-size: var(--fs-body-lg); line-height: var(--lh-body-lg); font-weight: var(--weight-bold); }
.paper.comanda .it { display: flex; gap: var(--space-3); padding: var(--space-1) 0; }
.paper.comanda .it b { font-size: var(--fs-title-sm); line-height: var(--lh-body); min-width: var(--space-5); }
.paper.comanda .it div { font-size: var(--fs-body); line-height: var(--lh-body); font-weight: var(--weight-bold); }
.paper.comanda .it small { display: block; font-size: var(--fs-body-sm); line-height: var(--lh-body-sm); font-weight: var(--weight-regular); }
.paper.comanda .it small.note { font-weight: var(--weight-bold); }

/* ---------- Proof strip ---------- */
.proof { padding: var(--space-8) 0 0; }
.proof-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
.proof .c-stat .val { font-family: var(--font-ui); }
@media (min-width: 900px) { .proof-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); } }
@media (max-width: 420px) {
  .proof .c-stat { padding: var(--space-4); }
  .proof .c-stat .val { font-size: var(--fs-headline); line-height: var(--lh-headline); }
}

/* ---------- Pains vs answers ---------- */
.pain-grid { display: grid; gap: var(--space-4); }
@media (min-width: 800px) { .pain-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); } }
.pain { display: grid; background: var(--surface-default); border: var(--stroke-hairline) solid var(--border-default); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-1); }
.pain > div { display: grid; grid-template-columns: auto 1fr; gap: var(--space-3); padding: var(--space-5); }
.pain .was { background: var(--surface-sunken); color: var(--text-secondary); }
.pain .was p { font-size: var(--fs-body); line-height: var(--lh-body); }
.pain .was .ico { color: var(--status-danger); }
.pain .now .ico { color: var(--status-success); }
.pain .tag-l { display: block; margin-bottom: var(--space-1); font-size: var(--fs-caption); line-height: var(--lh-caption); font-weight: var(--weight-semibold); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--text-secondary); }
.pain .now .tag-l { color: var(--status-success-text); }
.pain .now p { color: var(--text-secondary); }
.pain .now p b { display: block; margin-top: var(--space-2); color: var(--text-primary); }

/* ---------- Spotlights ---------- */
.spots { display: grid; gap: var(--space-16); }
.spot { display: grid; gap: var(--space-8); align-items: center; }
.spot-copy { display: grid; gap: var(--space-4); align-content: start; }
.spot-copy .lead { font-size: var(--fs-body); }
.list { display: grid; gap: var(--space-3); margin-top: var(--space-2); }
.list li { display: grid; grid-template-columns: auto 1fr; gap: var(--space-3); color: var(--text-secondary); }
.list li .ico { color: var(--status-success); margin-top: calc(var(--space-1) / 2); }
.list li b { color: var(--text-primary); }
.art { position: relative; display: grid; place-items: center; gap: var(--space-4); padding: var(--space-5) var(--space-3); background: var(--surface-sunken); border-radius: var(--radius-xl); border: var(--stroke-hairline) solid var(--border-default); overflow: hidden; min-width: 0; }
@media (min-width: 600px) { .art { padding: var(--space-10) var(--space-8); } }
@media (min-width: 960px) {
  .spot { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-16); }
  .spot.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .spot.flip .spot-copy { order: 2; }
  .spots { gap: calc(var(--space-16) + var(--space-8)); }
}
/* Floor art */
.art-floor { display: grid; gap: var(--space-4); width: 100%; max-width: 520px; }
.art-floor .c-floor { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--size-table-tile-min), 1fr)); grid-auto-flow: dense; gap: var(--space-3); background: var(--surface-default); border: var(--stroke-hairline) solid var(--border-default); }
.art-floor .c-tile { width: auto; }
.art-floor .c-tile.round { width: var(--size-table-tile-min); justify-self: center; }
.art-floor .c-tile.wide { grid-column: span 2; }
.art-floor .top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-2); }
@media (max-width: 420px) { .art-floor .c-floor { padding: var(--space-3); gap: var(--space-2); } }
/* Kitchen art */
.art-kitchen { display: flex; flex-wrap: wrap; gap: var(--space-6); justify-content: center; align-items: flex-start; width: 100%; }
.art-kitchen .side { display: grid; gap: var(--space-3); align-content: start; max-width: 280px; }
.art-kitchen .pills { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.art-kitchen .c-pill { background: var(--surface-default); border: var(--stroke-hairline) solid var(--border-default); }
.art-kitchen .paper { transform: rotate(-1deg); }
/* Payment art */
.art-pay { display: grid; gap: var(--space-4); width: 100%; max-width: 440px; }
.art-pay .c-rail { max-width: none; box-shadow: var(--shadow-2); }
/* Invoice art */
.art-invoice { display: flex; flex-wrap: wrap; gap: var(--space-6); justify-content: center; align-items: center; width: 100%; }
.art-invoice .notes { display: grid; gap: var(--space-3); max-width: 260px; }
.art-invoice .c-stat { box-shadow: var(--shadow-1); }

/* ---------- More features ---------- */
.more { margin-top: var(--space-16); }
.more h3 { font-size: var(--fs-title-sm); line-height: var(--lh-title-sm); font-weight: var(--weight-semibold); margin-bottom: var(--space-6); }
.feature-grid { display: grid; gap: var(--space-3); }
@media (min-width: 600px) { .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .feature-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); } }
.feature { display: grid; gap: var(--space-2); align-content: start; padding: var(--space-5); background: var(--surface-default); border: var(--stroke-hairline) solid var(--border-default); border-radius: var(--radius-lg); }
.feature .icon { display: grid; place-items: center; width: var(--size-touch-min); height: var(--size-touch-min); margin-bottom: var(--space-2); border-radius: var(--radius-md); background: var(--brand-soft); color: var(--brand-on-soft); }
.feature .icon .ico { width: var(--size-icon-sm); height: var(--size-icon-sm); }
.feature h4 { font-size: var(--fs-body); line-height: var(--lh-body); font-weight: var(--weight-semibold); }
.feature p { font-size: var(--fs-body-sm); line-height: var(--lh-body-sm); color: var(--text-secondary); }
@media (max-width: 599px) {
  .feature { grid-template-columns: auto 1fr; column-gap: var(--space-4); padding: var(--space-4); }
  .feature .icon { grid-row: span 2; margin-bottom: 0; }
}

/* ---------- Offline (dark band, uses the dark theme tokens on this subtree) ---------- */
.offline { background: var(--surface-sunken); color: var(--text-primary); border-block: var(--stroke-hairline) solid var(--border-default); }
.offline-grid { display: grid; gap: var(--space-12); align-items: center; }
@media (min-width: 960px) { .offline-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-16); } }
.offline .lead { color: var(--text-secondary); }
.steps { display: grid; gap: var(--space-5); margin-top: var(--space-8); counter-reset: s; }
.steps li { display: grid; grid-template-columns: auto 1fr; gap: var(--space-4); color: var(--text-secondary); counter-increment: s; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: var(--space-8); height: var(--space-8); border-radius: var(--radius-full); background: var(--brand-soft); color: var(--brand-on-soft); font-size: var(--fs-body-sm); font-weight: var(--weight-semibold); }
.steps b { display: block; color: var(--text-primary); }
.net { position: relative; display: grid; gap: var(--space-2); padding: var(--space-6) var(--space-4); background: var(--surface-default); border: var(--stroke-hairline) solid var(--border-default); border-radius: var(--radius-xl); box-shadow: var(--shadow-3); }
@media (min-width: 600px) { .net { padding: var(--space-8); } }
.net-top { display: flex; justify-content: center; }
.node { display: grid; justify-items: center; gap: var(--space-2); text-align: center; font-size: var(--fs-body-sm); line-height: var(--lh-body-sm); font-weight: var(--weight-semibold); }
.node .box { display: grid; place-items: center; width: var(--size-touch-comfortable); height: var(--size-touch-comfortable); border-radius: var(--radius-lg); background: var(--surface-raised); border: var(--stroke-hairline) solid var(--border-strong); color: var(--text-primary); }
.node .box .ico { width: var(--size-icon-lg); height: var(--size-icon-lg); }
.node small { display: block; font-weight: var(--weight-regular); color: var(--text-secondary); font-size: var(--fs-caption); line-height: var(--lh-caption); }
.node.cloud .box { border-style: dashed; color: var(--text-subtle); }
.node.hub .box { background: var(--brand-soft); color: var(--brand-on-soft); border-color: var(--brand-default); }
.wire { justify-self: center; width: var(--stroke-focus); height: var(--space-10); background: var(--brand-default); }
.wire.cut { background: repeating-linear-gradient(to bottom, var(--text-subtle) 0 var(--space-1), transparent var(--space-1) var(--space-2)); position: relative; height: var(--space-12); }
.wire.cut .c-pill { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.wire.short { height: var(--space-4); }
.fan { position: relative; height: var(--space-6); margin: calc(var(--space-2) * -1) 16.66% 0; border: var(--stroke-focus) solid var(--brand-default); border-bottom: 0; border-radius: var(--radius-md) var(--radius-md) 0 0; }
.fan::before { content: ""; position: absolute; left: 50%; top: 0; width: var(--stroke-focus); height: 100%; background: var(--brand-default); transform: translateX(-50%); }
.devices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2); }
.net .c-toast { margin-top: var(--space-4); }
.net .c-toast b { font-weight: var(--weight-semibold); }

/* ---------- Platforms / hardware ---------- */
.platform-grid { display: grid; gap: var(--space-4); }
@media (min-width: 700px) { .platform-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .platform-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.platform { display: grid; grid-template-rows: auto auto 1fr auto; gap: var(--space-3); padding: var(--space-6); background: var(--surface-default); border: var(--stroke-hairline) solid var(--border-default); border-radius: var(--radius-lg); }
.platform .icon { display: grid; place-items: center; width: var(--size-touch-comfortable); height: var(--size-touch-comfortable); border-radius: var(--radius-lg); background: var(--surface-sunken); color: var(--text-primary); }
.platform .icon .ico { width: var(--size-icon-lg); height: var(--size-icon-lg); }
.platform h3 { font-size: var(--fs-title-sm); line-height: var(--lh-title-sm); font-weight: var(--weight-semibold); }
.platform p { color: var(--text-secondary); font-size: var(--fs-body-sm); line-height: var(--lh-body-sm); }
.platform .chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.platform.help { background: var(--brand-soft); border-color: transparent; }
.platform.help .icon { background: var(--surface-default); color: var(--brand-default); }
.platform.help p { color: var(--brand-on-soft); }

/* ---------- Pricing ---------- */
.plans { display: grid; gap: var(--space-4); align-items: stretch; }
.plan { position: relative; display: grid; grid-template-rows: auto auto auto 1fr auto; gap: var(--space-4); padding: var(--space-8) var(--space-6) var(--space-6); background: var(--surface-default); border: var(--stroke-hairline) solid var(--border-default); border-radius: var(--radius-xl); }
.plan.featured { border: var(--stroke-selected) solid var(--brand-default); box-shadow: var(--shadow-3); }
.plan .c-badge { position: absolute; top: calc(var(--space-3) * -1); left: var(--space-6); }
.plan h3 { font-size: var(--fs-title); line-height: var(--lh-title); font-weight: var(--weight-bold); }
.plan .for { color: var(--text-secondary); font-size: var(--fs-body-sm); line-height: var(--lh-body-sm); margin-top: calc(var(--space-2) * -1); }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--space-1) var(--space-2); }
.price b { font-size: calc(var(--fs-money-lg) * 1.4); line-height: var(--lh-tight); font-weight: var(--weight-bold); letter-spacing: var(--ls-display); font-variant-numeric: tabular-nums; }
.price span { color: var(--text-secondary); font-size: var(--fs-body-sm); line-height: var(--lh-body-sm); }
.plan ul { display: grid; align-content: start; gap: var(--space-3); padding-top: var(--space-4); border-top: var(--stroke-hairline) solid var(--border-default); font-size: var(--fs-body-sm); line-height: var(--lh-body-sm); }
.plan li { display: grid; grid-template-columns: auto 1fr; gap: var(--space-2); }
.plan li .ico { color: var(--status-success); width: var(--space-4); height: var(--space-4); margin-top: calc(var(--space-1) / 2); }
.plan .btn { margin-top: var(--space-2); }
/* Align titles, prices and lists across the three plans. */
@media (min-width: 960px) {
  .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); }
  @supports (grid-template-rows: subgrid) { .plan { grid-row: span 5; grid-template-rows: subgrid; } }
}
.fine { margin-top: var(--space-6); color: var(--text-secondary); font-size: var(--fs-body-sm); line-height: var(--lh-body-sm); text-align: center; max-width: 72ch; margin-left: auto; margin-right: auto; }
.launch { display: inline-flex; align-items: center; gap: var(--space-2); }

/* ---------- Comparison (DataTable look) ---------- */
.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface-default); border: var(--stroke-hairline) solid var(--border-default); border-radius: var(--radius-lg); overflow: hidden; font-size: var(--fs-body-sm); line-height: var(--lh-body-sm); }
.compare th, .compare td { text-align: left; vertical-align: top; padding: var(--space-4); border-bottom: var(--stroke-hairline) solid var(--border-default); }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare thead th { background: var(--surface-sunken); color: var(--text-secondary); font-size: var(--fs-label); line-height: var(--lh-label); font-weight: var(--weight-semibold); letter-spacing: var(--ls-label); text-transform: uppercase; padding-top: var(--space-3); padding-bottom: var(--space-3); }
.compare tbody th { font-weight: var(--weight-semibold); color: var(--text-primary); width: 26%; }
.compare td { color: var(--text-secondary); }
.compare .us { background: var(--brand-soft); color: var(--brand-on-soft); }
.compare thead .us { color: var(--brand-on-soft); }
.compare td.us { font-weight: var(--weight-medium); }
.compare td.us span { display: inline-flex; gap: var(--space-2); align-items: flex-start; }
.compare td.us .ico { width: var(--space-4); height: var(--space-4); margin-top: calc(var(--space-1) / 2); color: var(--brand-default); }
@media (max-width: 699px) {
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100%; }
  .compare { background: transparent; border: 0; border-radius: 0; overflow: visible; }
  .compare thead { display: none; }
  .compare tbody { display: grid; gap: var(--space-3); }
  .compare tr { background: var(--surface-default); border: var(--stroke-hairline) solid var(--border-default); border-radius: var(--radius-lg); overflow: hidden; }
  .compare tbody th { width: 100%; padding-bottom: var(--space-2); border: 0; }
  .compare td { padding-top: var(--space-2); padding-bottom: var(--space-2); border: 0; }
  .compare td::before { content: attr(data-l); display: block; font-size: var(--fs-caption); line-height: var(--lh-caption); font-weight: var(--weight-semibold); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--text-subtle); margin-bottom: calc(var(--space-1) / 2); }
  .compare td.us { padding-bottom: var(--space-4); }
  .compare td.us::before { color: var(--brand-on-soft); }
}

/* ---------- FAQ (ListRow look) ---------- */
.faq-grid { display: grid; gap: var(--space-8); }
@media (min-width: 960px) { .faq-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--space-16); align-items: start; } .faq-grid .section-head { position: sticky; top: calc(var(--header-h) + var(--space-8)); margin-bottom: 0; } }
.faq-list { background: var(--surface-default); border: var(--stroke-hairline) solid var(--border-default); border-radius: var(--radius-lg); overflow: hidden; }
.faq-list details + details { border-top: var(--stroke-hairline) solid var(--border-default); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: var(--size-touch-comfortable); padding: var(--space-4) var(--space-5); cursor: pointer; list-style: none; font-weight: var(--weight-semibold); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { background: var(--surface-sunken); }
.faq-list summary:focus-visible { outline-offset: calc(var(--stroke-focus) * -1); border-radius: 0; }
.faq-list summary .ico { color: var(--text-secondary); transition: transform var(--motion-duration-base) var(--motion-easing-standard); }
.faq-list details[open] summary .ico { transform: rotate(180deg); }
.faq-list details p { padding: 0 var(--space-5) var(--space-5); color: var(--text-secondary); max-width: 68ch; }

/* ---------- CTA ---------- */
.cta-box { display: grid; gap: var(--space-8); padding: var(--space-8) var(--space-5); background: var(--surface-default); border: var(--stroke-hairline) solid var(--border-default); border-radius: var(--radius-xl); box-shadow: var(--shadow-3); position: relative; overflow: hidden; }
.cta-box::before { content: ""; position: absolute; inset: 0 0 auto 0; height: var(--space-1); background: var(--brand-default); }
@media (min-width: 600px) { .cta-box { padding: var(--space-12); } }
@media (min-width: 960px) { .cta-box { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--space-12); align-items: center; padding: var(--space-16); } }
.cta-copy { display: grid; gap: var(--space-4); }
.next { display: grid; gap: var(--space-3); margin-top: var(--space-2); }
.next li { display: grid; grid-template-columns: auto 1fr; gap: var(--space-3); align-items: center; color: var(--text-secondary); font-size: var(--fs-body-sm); line-height: var(--lh-body-sm); }
.next li span { display: grid; place-items: center; width: var(--space-6); height: var(--space-6); border-radius: var(--radius-full); background: var(--brand-soft); color: var(--brand-on-soft); font-size: var(--fs-caption); font-weight: var(--weight-semibold); }
.cta-actions { display: grid; gap: var(--space-4); justify-items: stretch; text-align: center; padding: var(--space-6); background: var(--surface-sunken); border-radius: var(--radius-lg); }
.perks { display: grid; gap: var(--space-2); text-align: left; padding-top: var(--space-4); border-top: var(--stroke-hairline) solid var(--border-default); font-size: var(--fs-body-sm); line-height: var(--lh-body-sm); color: var(--text-secondary); }
.perks li { display: grid; grid-template-columns: auto 1fr; gap: var(--space-2); }
.perks .ico { width: var(--space-4); height: var(--space-4); color: var(--status-success); margin-top: calc(var(--space-1) / 2); }
.cta-actions .btn { white-space: normal; text-align: center; }
.cta-alt { color: var(--text-secondary); font-size: var(--fs-body-sm); line-height: var(--lh-body-sm); }

/* ---------- Footer ---------- */
.site-footer { border-top: var(--stroke-hairline) solid var(--border-default); padding: var(--space-12) 0 var(--space-8); color: var(--text-secondary); font-size: var(--fs-body-sm); line-height: var(--lh-body-sm); }
.footer-grid { display: grid; gap: var(--space-8); }
@media (min-width: 800px) { .footer-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); } }
.footer-brand { display: grid; gap: var(--space-3); align-content: start; max-width: 36ch; }
.footer-col { display: grid; gap: 0; align-content: start; justify-items: start; }
.footer-col h4 { font-size: var(--fs-label); line-height: var(--lh-label); font-weight: var(--weight-semibold); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--text-subtle); margin-bottom: var(--space-2); }
.footer-col a { display: inline-flex; align-items: center; min-height: var(--size-touch-min); color: var(--text-secondary); text-decoration: none; }
.footer-col a:hover { color: var(--text-primary); text-decoration: underline; }
.copy { grid-column: 1 / -1; padding-top: var(--space-6); border-top: var(--stroke-hairline) solid var(--border-default); color: var(--text-subtle); }

/* ---------- Legal page ---------- */
.legal { padding: var(--space-12) 0 var(--section-y); }
.legal-wrap { display: grid; gap: var(--space-10); }
@media (min-width: 960px) { .legal-wrap { grid-template-columns: 240px minmax(0, 1fr); gap: var(--space-16); align-items: start; } }
.legal-head { display: grid; gap: var(--space-4); margin-bottom: var(--space-10); max-width: 70ch; }
.legal-toc { display: none; }
@media (min-width: 960px) {
  .legal-toc { display: grid; gap: var(--space-1); position: sticky; top: calc(var(--header-h) + var(--space-8)); font-size: var(--fs-body-sm); line-height: var(--lh-body-sm); }
  .legal-toc a { color: var(--text-secondary); text-decoration: none; padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); border-left: var(--stroke-focus) solid var(--border-default); }
  .legal-toc a:hover { color: var(--text-primary); background: var(--surface-sunken); }
}
.legal-body { max-width: 70ch; }
.legal-body section { padding: var(--space-8) 0; border-top: var(--stroke-hairline) solid var(--border-default); }
.legal-body section:first-child { border-top: 0; padding-top: 0; }
.legal-body h2 { font-size: var(--fs-title); line-height: var(--lh-title); font-weight: var(--weight-bold); margin-bottom: var(--space-4); letter-spacing: var(--ls-title); }
.legal-body h3 { font-size: var(--fs-body); line-height: var(--lh-body); font-weight: var(--weight-semibold); margin: var(--space-5) 0 var(--space-2); }
.legal-body p, .legal-body li { color: var(--text-secondary); }
.legal-body p + p, .legal-body ul + p { margin-top: var(--space-3); }
.legal-card p + p { margin-top: 0; }
.legal-body ul { display: grid; gap: var(--space-2); margin-top: var(--space-3); }
.legal-body ul li { position: relative; padding-left: var(--space-5); }
.legal-body ul li::before { content: ""; position: absolute; left: var(--space-1); top: calc(var(--lh-body) / 2 - var(--space-1) / 2); width: var(--space-1); height: var(--space-1); border-radius: var(--radius-full); background: var(--brand-default); }
.legal-body b { color: var(--text-primary); }
.legal-card { display: grid; gap: var(--space-1); margin-top: var(--space-4); padding: var(--space-5); background: var(--surface-default); border: var(--stroke-hairline) solid var(--border-default); border-radius: var(--radius-lg); }
.legal-card p { color: var(--text-primary); }
.updated { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--text-secondary); font-size: var(--fs-body-sm); line-height: var(--lh-body-sm); }

/* ---------- Reveal on scroll (only when motion is allowed; see site.js) ---------- */
.reveal { opacity: 0; transform: translateY(var(--space-3)); transition: opacity var(--motion-duration-slow) var(--motion-easing-standard), transform var(--motion-duration-slow) var(--motion-easing-standard); }
.reveal.in { opacity: 1; transform: none; }
