/* CoffeeGX public website: landing and legal pages, "Ink & Jade" (docs/product/PRD.md §7, §8.1).
 * Loads after /app/css/tokens.css. Colours, type, space and motion come only from tokens; logical properties
 * only (Arabic mirrors for free); weights 400/500/600; money and quantities in Inter tabular (.num), never mono.
 * Ink & Jade: monochrome chrome on white / graphite, ink primary buttons (white in dark mode), mono eyebrows over
 * Inter Display figures; jade only for money (the Charge button, positive deltas, savings), links, ✓ marks and
 * the brand cut. The hero's silk sheen is the page's one decorative effect.
 * Two apps (docs/ARCHITECTURE.md §10): the hero offers Café and Roastery side by side; each app then has its own
 * section, with a frame of its real screens, and nothing in one links into the other. */
/* ------------------------------------------------------------------ reset */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; scroll-padding-block-start: 80px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body.site { font-size: var(--fs-body-md); line-height: var(--lh-body-md); letter-spacing: var(--tr-body-md); overflow-x: clip; }
/* The landing's one silk sheen (§7.3), centred at the top of the page so it also glows through the glass nav. */
body.site[data-page="landing"] { background-image: radial-gradient(60% 50% at 50% 0%, color-mix(in oklab, var(--accent) 10%, transparent), transparent 70%);
  background-repeat: no-repeat; background-size: 100% 1200px; }
img, svg { display: block; max-inline-size: 100%; }
button { font: inherit; color: inherit; letter-spacing: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
h1, h2, h3 { font-weight: 600; text-wrap: balance; }
p { text-wrap: pretty; }
table { border-collapse: collapse; border-spacing: 0; }
th { font-weight: 500; text-align: start; }
summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
[hidden] { display: none !important; }

.sprite { position: absolute; inline-size: 0; block-size: 0; overflow: hidden; }
.ic { inline-size: 18px; block-size: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .flip { transform: scaleX(-1); }
.sr { position: absolute; inline-size: 1px; block-size: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.code { font: 400 12px/16px var(--font-mono); color: var(--text-subtle); }
.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; }

.wrap { inline-size: 100%; max-inline-size: 1264px; margin-inline: auto; padding-inline: max(32px, var(--safe-start)) max(32px, var(--safe-end)); }
@media (max-width: 1023px) { .wrap { padding-inline: max(24px, var(--safe-start)) max(24px, var(--safe-end)); } }
@media (max-width: 599px) { .wrap { padding-inline: max(16px, var(--safe-start)) max(16px, var(--safe-end)); } }

.skip { position: absolute; inset-inline-start: 16px; inset-block-start: -64px; z-index: 100; padding: 10px 14px; border-radius: var(--r-md);
  background: var(--ink); color: var(--bg); font-weight: 500; text-decoration: none; }
.skip:focus { inset-block-start: 12px; }

/* ------------------------------------------------------------------ buttons */

.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); block-size: var(--control-md);
  padding-inline: 14px; border-radius: var(--r-md); font: 500 var(--fs-body)/1 var(--font-sans); letter-spacing: var(--tr-body);
  white-space: nowrap; text-decoration: none; transition: background-color var(--dur-1) var(--ease-standard), box-shadow var(--dur-1) var(--ease-standard); }
.btn-sm { block-size: var(--control-md); padding-inline: 12px; font-size: var(--fs-body-sm); }
.btn-lg { block-size: 44px; padding-inline: 20px; font-size: var(--fs-heading-sm); border-radius: 10px; }
.btn .ic { inline-size: 18px; block-size: 18px; }
/* primary = ink (white in dark mode): the page's one action */
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-primary:active { background: var(--primary-active); }
.btn-secondary { background: var(--bg-raised); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn-secondary:hover { background: var(--bg-hover); }
.btn-secondary:active { background: var(--bg-active); }
.btn-ghost { color: var(--text-muted); }
.btn-ghost:hover { background: var(--bg-hover); color: var(--text); }
.btn-arrow { inline-size: 16px; block-size: 16px; transition: translate var(--dur-1) var(--ease-standard); }
.btn:hover .btn-arrow { translate: 2px 0; }
[dir="rtl"] .btn-arrow { transform: scaleX(-1); }
[dir="rtl"] .btn:hover .btn-arrow { translate: -2px 0; }
.icon-btn { display: inline-grid; place-items: center; inline-size: 40px; block-size: 40px; border-radius: var(--r-md); color: var(--text); }
.icon-btn:hover { background: var(--bg-hover); }
.text-link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-text); font-weight: 500; text-decoration: none; }
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.text-link .ic { inline-size: 16px; block-size: 16px; }
@media (pointer: coarse) {
  .btn, .btn-sm { min-block-size: 44px; }
  .icon-btn { inline-size: 44px; block-size: 44px; }
  .brand, .text-link { min-block-size: 44px; }
}

/* ------------------------------------------------------------------ brand: the cut + the outlined wordmark (§7.8) */

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; border-radius: var(--r-md); direction: ltr; }
/* (the lockup never mirrors: mark, then wordmark, in every language) */
/* An ink squircle cut by one jade S-curve. The tile inherits the fill and the 1px ring (dark mode only); the cut
   strokes in currentColor. Fixed brand colours from tokens, never the theme's accent. */
.mark { inline-size: 28px; block-size: 28px; flex: none; overflow: visible; fill: var(--brand-ink); color: var(--brand-jade);
  stroke: var(--brand-ring); stroke-width: 1px; }
/* "coffeegx", Inter Display SemiBold outlined to SVG: ink on light, #ededef (--text) on dark; ≥ 72px wide. */
.wordmark { inline-size: 80px; block-size: auto; aspect-ratio: 7420.9 / 1922; flex: none; fill: currentColor; }

/* ------------------------------------------------------------------ navigation (64px, sticky glass) */

/* At the top of the page the nav is clear, so the sheen flows under it without a seam; once the page scrolls (or
   the phone menu opens) it turns to glass with a hairline, with a solid --bg where glass is unsupported or unwanted. */
.nav { position: sticky; inset-block-start: 0; z-index: var(--z-nav); border-block-end: 1px solid transparent;
  transition: border-color var(--dur-2) var(--ease-standard), background-color var(--dur-2) var(--ease-standard); }
.nav.is-scrolled, .is-menu-open .nav { border-block-end-color: var(--line); background: var(--glass);
  -webkit-backdrop-filter: var(--glass-filter); backdrop-filter: var(--glass-filter); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { :is(.nav.is-scrolled, .is-menu-open .nav) { background: var(--bg); } }
@media (prefers-reduced-transparency: reduce) { :is(.nav.is-scrolled, .is-menu-open .nav) { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; } }
body:not([data-page="landing"]) .nav { background: var(--glass); -webkit-backdrop-filter: var(--glass-filter); backdrop-filter: var(--glass-filter); }
.nav-inner { display: flex; align-items: center; gap: var(--s-6); block-size: 64px; }
.nav-links { display: flex; gap: var(--s-1); }
.nav-links a { display: inline-flex; align-items: center; block-size: 32px; padding-inline: 10px; border-radius: var(--r-md); color: var(--text-muted);
  font-size: var(--fs-body); font-weight: 500; text-decoration: none; }
.nav-links a:hover { color: var(--text); background: var(--bg-hover); }
.nav-actions { display: flex; align-items: center; gap: var(--s-2); margin-inline-start: auto; }

/* Dropdowns (language, Sign in): a button that discloses a short list of links */
.lang, .signin { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 6px; block-size: 32px; padding-inline: 8px; border-radius: var(--r-md); color: var(--text-muted);
  font: 500 var(--fs-body-sm)/1 var(--font-sans); }
.lang-btn:hover, .lang-btn[aria-expanded="true"] { background: var(--bg-hover); color: var(--text); }
.lang-btn .ic { inline-size: 16px; block-size: 16px; }
.lang-code { font: 500 var(--fs-eyebrow)/1 var(--font-mono); letter-spacing: var(--tr-eyebrow); }
.signin-btn { gap: 6px; padding-inline: 12px 8px; }
.signin-btn .signin-chevron { inline-size: 16px; block-size: 16px; color: var(--text-subtle); transition: transform var(--dur-2) var(--ease-standard); }
.signin-btn[aria-expanded="true"] { background: var(--bg-hover); }
.signin-btn[aria-expanded="true"] .signin-chevron { transform: rotate(180deg); }
.pop { position: absolute; inset-block-start: calc(100% + 6px); inset-inline-end: 0; z-index: var(--z-dropdown); min-inline-size: 168px; padding: 4px;
  background: var(--bg-raised); border-radius: var(--r-lg); box-shadow: var(--shadow-pop); animation: pop var(--dur-2) var(--ease-silk); }
.pop a { display: flex; align-items: center; gap: 10px; block-size: 36px; padding-inline: 10px; border-radius: var(--r-sm);
  color: var(--text-muted); font-size: var(--fs-body); text-decoration: none; white-space: nowrap; }
.pop a:hover, .pop a:focus-visible { background: var(--bg-hover); color: var(--text); }
.lang-menu a { justify-content: space-between; }
.lang-menu a[aria-current="true"] { color: var(--text); font-weight: 500; }
.lang-menu a[aria-current="true"]::after { content: ""; inline-size: 6px; block-size: 6px; border-radius: 50%; background: currentColor; }
.signin-menu { min-inline-size: 184px; }
.signin-menu a { color: var(--text); font-weight: 500; }
.signin-menu .ic { inline-size: 16px; block-size: 16px; color: var(--text-subtle); }
@media (pointer: coarse) { .pop a { min-block-size: 44px; } }
@keyframes pop { from { opacity: 0; transform: scale(0.98); } }

.menu-btn { display: none; }
.menu-btn .ic-close, .menu-btn[aria-expanded="true"] .ic-open { display: none; }
.menu-btn[aria-expanded="true"] .ic-close { display: block; }
.mnav { border-block-start: 1px solid var(--line); background: var(--bg); }
.mnav-inner { display: flex; flex-direction: column; padding-block: var(--s-2) var(--s-6); }
.mnav-inner > a { display: flex; align-items: center; min-block-size: 48px; border-block-end: 1px solid var(--line); color: var(--text);
  font-weight: 500; text-decoration: none; }
.mnav-langs { display: flex; flex-wrap: wrap; gap: var(--s-2); padding-block-start: var(--s-4); }
.mnav-langs a { display: inline-flex; align-items: center; min-block-size: 44px; padding-inline: 14px; border-radius: var(--r-full); background: var(--bg-hover);
  color: var(--text-muted); font-size: var(--fs-body); text-decoration: none; }
/* the selected chip is an inverted (ink) surface */
.mnav-langs a[aria-current="true"] { background: var(--primary); color: var(--on-primary); font-weight: 500; }

@media (max-width: 899px) {
  .nav-links, .nav .lang { display: none; }
  .menu-btn { display: inline-grid; }
  .nav-inner { gap: var(--s-3); }
  .nav-actions { gap: var(--s-1); }
}
@media (min-width: 900px) { .mnav { display: none !important; } }

/* ------------------------------------------------------------------ legacy QR notice (information, not money: the info tone) */

.legacy { background: var(--info-bg); color: var(--text); border-block-end: 1px solid var(--info-line); }
.legacy-inner { display: flex; align-items: flex-start; gap: var(--s-3); padding-block: var(--s-4); }
.legacy-icon { inline-size: 24px; block-size: 24px; color: var(--info-text); margin-block-start: 2px; }
.legacy-text { flex: 1; min-inline-size: 0; }
.legacy-title { font-weight: 600; }
.legacy-body { color: var(--text-muted); font-size: var(--fs-body); line-height: var(--lh-body); }
.legacy-close { margin-block: -6px; margin-inline-end: -8px; color: var(--text-muted); }
.legacy-close:hover { background: color-mix(in oklab, var(--info) 12%, transparent); }

/* ------------------------------------------------------------------ hero: the brand line, then the two apps */

.hero { padding-block: 96px 0; overflow: clip; }
.hero-copy { max-inline-size: 1264px; }
.hero-eyebrow { margin-block-end: var(--s-5); }
.hero-title { max-inline-size: 15em; font: 600 var(--fs-display-2xl)/var(--lh-display-2xl) var(--font-display); letter-spacing: var(--tr-display-2xl); }
.hero-sub { max-inline-size: 34em; margin-block-start: var(--s-6); color: var(--text-muted);
  font-size: var(--fs-body-lg); line-height: var(--lh-body-lg); letter-spacing: var(--tr-body-lg); }
.hero-micro { margin-block-start: var(--s-5); color: var(--text-subtle); font-size: var(--fs-body-sm); line-height: var(--lh-body-sm); text-align: center; }

/* The choice: one panel, two equal halves on a hairline (stacked on phones). Each half is an app: its tile and
   name, a one-line promise, its tools, and Start + Try the demo. */
.choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin-block-start: var(--s-12); overflow: hidden;
  border-radius: var(--r-2xl); background: var(--line); box-shadow: 0 0 0 1px var(--line), var(--shadow-pop); scroll-margin-block-start: 96px; }
.choice-app { display: flex; flex-direction: column; gap: var(--s-6); min-inline-size: 0; padding: var(--s-10); background: var(--bg-raised); }
.choice-head { display: flex; align-items: center; gap: var(--s-4); }
.app-tile { display: inline-grid; place-items: center; flex: none; inline-size: 48px; block-size: 48px; border-radius: 14px;
  background: var(--primary); color: var(--on-primary); }
.app-tile .ic { inline-size: 24px; block-size: 24px; stroke-width: 1.6; }
.choice-name { font: 600 var(--fs-display-md)/var(--lh-display-md) var(--font-display); letter-spacing: var(--tr-display-md); }
.choice-promise { max-inline-size: 30em; color: var(--text-muted); font-size: var(--fs-body-lg); line-height: var(--lh-body-lg); letter-spacing: var(--tr-body-lg); }
ul.choice-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3) var(--s-6); padding-block: var(--s-5); border-block: 1px solid var(--line); }
.choice-tools li { display: flex; align-items: flex-start; gap: 10px; min-inline-size: 0; font-size: var(--fs-body); line-height: var(--lh-body); }
.choice-tools .ic { inline-size: 16px; block-size: 16px; margin-block-start: 2px; color: var(--text-subtle); }
.choice-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); margin-block-start: auto; }
.choice-demo { padding-inline: 14px; }
@supports (grid-template-rows: subgrid) {
  @media (min-width: 900px) {
    .choice { grid-template-rows: repeat(4, auto); row-gap: 0; }
    .choice-app { display: grid; grid-row: span 4; grid-template-rows: subgrid; align-items: start; row-gap: var(--s-6); }
    .choice-ctas { align-self: end; }
  }
}

@media (max-width: 1199px) {
  .hero { padding-block: 72px 0; }
  .hero-title { font-size: var(--fs-display-xl); line-height: var(--lh-display-xl); letter-spacing: var(--tr-display-xl); }
  .choice-app { padding: var(--s-8); }
}
@media (max-width: 899px) {
  .choice { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
  .hero { padding-block: 40px 0; }
  .hero-title { font-size: var(--fs-display-lg); line-height: var(--lh-display-lg); letter-spacing: var(--tr-display-lg); }
  .hero-sub { font-size: var(--fs-body-md); line-height: var(--lh-body-md); margin-block-start: var(--s-5); }
  .choice { margin-block-start: var(--s-8); border-radius: var(--r-xl); }
  .choice-app { gap: var(--s-5); padding: var(--s-6) var(--s-5); }
  .choice-name { font-size: var(--fs-heading-lg); line-height: var(--lh-heading-lg); font-family: var(--font-display); }
  .app-tile { inline-size: 40px; block-size: 40px; border-radius: 12px; }
  .app-tile .ic { inline-size: 20px; block-size: 20px; }
  .choice-promise { font-size: var(--fs-body-md); line-height: var(--lh-body-md); }
  ul.choice-tools { display: block; padding-block: var(--s-3); color: var(--text-muted); font-size: var(--fs-body-sm); line-height: var(--lh-body); }
  .choice-tools li { display: inline; white-space: nowrap; font-size: inherit; line-height: inherit; }
  .choice-tools .ic { display: none; }
  .choice-tools li:not(:last-child)::after { content: "·"; margin-inline: 6px 2px; color: var(--text-subtle); }
  .choice-ctas .btn { flex: 1 1 auto; }
}
@media (max-width: 380px) {
  .hero-title { font-size: 36px; line-height: 42px; }
}

/* ------------------------------------------------------------------ sections */

/* Sections on the same surface share their spacing; the app sections are bands (the Roastery's is sunken), so
   they and the section after them keep their own top padding. */
.section { padding-block: 120px; }
.section + .section { padding-block-start: 0; }
.section.app-section, .app-section + .section { padding-block-start: 112px; }
.section-head { max-inline-size: 760px; margin-block-end: var(--s-12); }
.section-head.is-center { margin-inline: auto; text-align: center; }
.section-head .eyebrow, .faq > .eyebrow, .founder > .eyebrow { margin-block-end: var(--s-3); }
.section-title { font: 600 var(--fs-display-lg)/var(--lh-display-lg) var(--font-display); letter-spacing: var(--tr-display-lg); }
.section-sub { margin-block-start: var(--s-4); color: var(--text-muted); font-size: var(--fs-body-lg); line-height: var(--lh-body-lg); letter-spacing: var(--tr-body-lg); }
@media (max-width: 1023px) {
  .section { padding-block: 80px; }
  .section + .section { padding-block-start: 0; }
  .section.app-section, .app-section + .section { padding-block-start: 80px; }
}
@media (max-width: 767px) {
  .section { padding-block: 64px; }
  .section + .section { padding-block-start: 0; }
  .section.app-section, .app-section + .section { padding-block-start: 64px; }
  .section-head { margin-block-end: var(--s-8); }
  .section-title { font-size: var(--fs-display-md); line-height: var(--lh-display-md); letter-spacing: var(--tr-display-md); }
  .section-sub { font-size: var(--fs-body-md); line-height: var(--lh-body-md); }
}

/* ------------------------------------------------------------------ an app's section: head, frame, capabilities */

.app-section { --surface: var(--bg); background: var(--surface); overflow-x: clip; }
.app-roastery { --surface: var(--bg-sunken); border-block: 1px solid var(--line); }
.app-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-8); }
.app-copy { max-inline-size: 720px; }
.app-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-block-end: var(--s-3); }
.app-eyebrow .ic { inline-size: 16px; block-size: 16px; }
.app-ctas { display: flex; flex-wrap: wrap; gap: var(--s-3); flex: none; }
@media (max-width: 1023px) {
  .app-head { flex-direction: column; align-items: flex-start; gap: var(--s-6); }
}
@media (max-width: 767px) {
  .app-ctas { inline-size: 100%; }
  .app-ctas .btn { flex: 1 1 auto; }
}

/* ------------------------------------------------------------------ product frames: the real app's screens
   (hand-authored markup with sample numbers, styled like app/css/shell.css + components.css at reading size).
   A --r-2xl frame with a hairline and --shadow-sheet, cropped with a fade to the section's surface (§8.1); a card
   (the Café's order, the Roastery's bag cost) overlaps its inline end. */

.stage { --card-w: 336px; --card-overlap: 40px; position: relative; margin-block-start: 56px; padding-block-end: 48px; isolation: isolate; }
.stage::after { content: ""; position: absolute; z-index: 4; inset-inline: -80px; inset-block-end: -48px; block-size: 268px; pointer-events: none;
  background: linear-gradient(to bottom, color-mix(in oklab, var(--surface) 0%, transparent), var(--surface) 64%); }
.frame { position: relative; block-size: 640px; overflow: hidden; border-radius: var(--r-2xl); background: var(--bg);
  box-shadow: 0 0 0 1px var(--line), var(--shadow-sheet); }
.stage .frame { margin-inline-end: calc(var(--card-w) - var(--card-overlap)); }

.m-app { display: grid; grid-template-columns: 200px minmax(0, 1fr); block-size: 100%; font-size: 13px; line-height: 18px; letter-spacing: 0; color: var(--text); }
.m-app .ic { inline-size: 16px; block-size: 16px; }
.m-side { display: flex; flex-direction: column; padding: 10px 8px 14px; background: var(--bg-sunken); }
.m-ws { display: flex; align-items: center; gap: 9px; block-size: 36px; margin-block-end: 6px; padding-inline: 8px; font-weight: 600; white-space: nowrap; }
.m-ws-mark { display: inline-grid; place-items: center; flex: none; inline-size: 20px; block-size: 20px; border-radius: var(--r-sm);
  background: var(--primary); color: var(--on-primary); font-size: 11px; line-height: 1; }
.m-ws-name { min-inline-size: 0; overflow: hidden; text-overflow: ellipsis; }
/* one sidebar row per tool, a hairline between groups (core/hubs.js NAV) */
ul.m-nav { display: grid; gap: 2px; padding-block: 6px; }
.m-nav + .m-nav { border-block-start: 1px solid var(--line); }
.m-item { position: relative; display: flex; align-items: center; gap: 9px; block-size: 30px; padding-inline: 8px; border-radius: var(--r-md);
  color: var(--text-muted); font-weight: 500; }
.m-item .ic { color: var(--text-subtle); }
.m-item span { min-inline-size: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-item.is-active { background: var(--bg-active); color: var(--text); }
.m-item.is-active .ic { color: var(--text); }
/* the cut: a 1px jade line under the active row, as in the app's sidebar */
.m-item.is-active::after { content: ""; position: absolute; inset-inline: 8px; inset-block-end: 0; block-size: 1px; background: var(--accent-line); }
.m-settings { margin-block-start: auto; }
.m-main { display: flex; flex-direction: column; min-inline-size: 0; }
.m-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); block-size: 48px; padding-inline: 16px 18px;
  border-block-end: 1px solid var(--line); }
.m-search { display: flex; align-items: center; gap: 8px; flex: 0 1 300px; min-inline-size: 0; block-size: 30px; padding-inline: 10px; border-radius: var(--r-md);
  background: var(--bg-hover); color: var(--text-subtle); white-space: nowrap; overflow: hidden; }
.m-search span { overflow: hidden; text-overflow: ellipsis; }
.m-kbd { margin-inline-start: auto; padding: 0 5px; border-radius: var(--r-xs); box-shadow: inset 0 0 0 1px var(--line-strong);
  font: 500 11px/16px var(--font-sans); color: var(--text-subtle); direction: ltr; }
.m-top-end { display: flex; align-items: center; gap: 14px; flex: none; }
.m-theme { flex: none; color: var(--text-muted); }
.m-page { padding: 18px 28px 0; overflow: hidden; }
.stage .m-page { padding-inline-end: calc(var(--card-overlap) + 24px); }
.m-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-block-end: 18px; }
.m-titles { min-inline-size: 0; }
.m-eyebrow { margin-block-end: 4px; color: var(--text-subtle); font: 500 10px/14px var(--font-mono); letter-spacing: var(--tr-eyebrow); text-transform: uppercase; }
.m-title { font: 600 var(--fs-heading-lg)/var(--lh-heading-lg) var(--font-display); letter-spacing: var(--tr-heading-lg); }
.m-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-block-start: 2px; color: var(--text-muted); }
.m-seg { display: flex; flex: none; padding: 2px; border-radius: var(--r-md); background: var(--bg-hover); font-size: 12px; font-weight: 500; color: var(--text-muted); }
.m-seg span { padding: 4px 10px; border-radius: var(--r-sm); white-space: nowrap; }
.m-seg .is-on { background: var(--primary); color: var(--on-primary); }
/* KPIs: an instrument row, mono eyebrows over Inter Display figures, 1px vertical hairlines (§7.6 rule 3) */
.m-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.m-kpi { min-inline-size: 0; padding: 14px 12px 16px; }
.m-kpi:first-child { padding-inline-start: 0; }
.m-kpi + .m-kpi { border-inline-start: 1px solid var(--line); }
.m-label { overflow: hidden; color: var(--text-subtle); font: 500 10px/14px var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase;
  text-overflow: ellipsis; white-space: nowrap; }
.m-value { margin-block: 6px 3px; font: 600 26px/32px var(--font-display); letter-spacing: var(--tr-figure); white-space: nowrap; }
.m-value.num { font-family: var(--font-display); font-variant-numeric: proportional-nums; }
.m-delta { display: flex; align-items: flex-start; gap: 5px; color: var(--success-text); font-size: 12px; line-height: 16px; font-weight: 500; }
.tri { inline-size: 8px; block-size: 8px; margin-block-start: 4px; fill: currentColor; flex: none; }
.m-hint { color: var(--text-subtle); font-size: 12px; line-height: 16px; }
.m-chart { margin-block-start: 22px; }
.m-chart-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.m-section { font-weight: 600; font-size: 14px; }
.m-ghost { display: inline-flex; align-items: center; gap: 6px; color: var(--text); font-weight: 500; }
.m-ghost .ic { inline-size: 15px; block-size: 15px; color: var(--text-muted); }
.m-plot { inline-size: 100%; block-size: 168px; margin-block-start: 10px; overflow: visible; }
.m-plot path { fill: none; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.m-plot .g { stroke: var(--chart-grid); stroke-width: 1; }
.m-plot .axis { stroke: var(--chart-axis); stroke-width: 1; }
.m-plot .area { fill: var(--series-1); stroke: none; opacity: var(--chart-area-opacity); }
.m-plot .last { stroke: var(--chart-muted-series); stroke-width: 2; }
.m-plot .today { stroke: var(--series-1); stroke-width: 2; }
.m-chart { direction: ltr; }
.m-chart .m-chart-head, .m-chart .m-legend { direction: inherit; }
[dir="rtl"] .m-chart .m-chart-head, [dir="rtl"] .m-chart .m-legend { direction: rtl; }
.m-xaxis { display: flex; justify-content: space-between; margin-block-start: 6px; color: var(--chart-label); font-size: 11px; }
.m-legend { display: flex; gap: 16px; margin-block-start: 10px; color: var(--text-muted); font-size: 12px; }
.lg { display: inline-flex; align-items: center; gap: 6px; }
.lg::before { content: ""; inline-size: 14px; block-size: 2px; border-radius: 1px; background: var(--chart-muted-series); }
.lg-today::before { background: var(--series-1); }
/* the roast log: a full-bleed table on hairlines, batch codes in the mono column */
.m-table { inline-size: 100%; margin-block-start: 18px; }
.m-table th { padding-block: 8px; border-block-end: 1px solid var(--line); color: var(--text-subtle); font-size: 12px; font-weight: 500; white-space: nowrap; }
.m-table td { padding-block: 10px; border-block-end: 1px solid var(--line); white-space: nowrap; }
.m-table th + th, .m-table td + td { padding-inline-start: 14px; }
.m-table .end { text-align: end; }
.m-table td:nth-child(3) { font-weight: 500; }
.m-btn { display: inline-flex; align-items: center; gap: 6px; block-size: 30px; padding-inline: 10px; border-radius: var(--r-md); font-weight: 500; white-space: nowrap; }
.m-btn .ic { inline-size: 15px; block-size: 15px; }
.m-btn-secondary { background: var(--bg-raised); box-shadow: inset 0 0 0 1px var(--line-strong); }
.m-btn-primary { background: var(--primary); color: var(--on-primary); }
.m-pill { display: inline-flex; align-items: center; gap: 4px; block-size: 20px; padding-inline: 8px; border-radius: var(--r-full); font-size: 12px; font-weight: 500;
  line-height: 1; white-space: nowrap; }
.m-pill .ic { inline-size: 12px; block-size: 12px; }
.m-pill-ok { background: var(--success-bg); color: var(--success-text); }
.m-pill-warn { background: var(--warning-bg); color: var(--warning-text); }
.m-pill-info { background: var(--info-bg); color: var(--info-text); }

/* The card beside the frame, overlapping it slightly (the frame keeps its content clear of it). The Café's is the
   Sell cart: order + eyebrow, hairline lines, tax incl., TOTAL figure, Customer · Discount · Split, Cash · Meal card
   and the jade Charge (the only jade fill on screen, §7.6 rule 9). The Roastery's is the cost of a bag, as on
   Products & pricing: green → roasted per kg, the bag's parts as a bar (data marks) and the margin at its price. */
.card { position: absolute; z-index: 5; inset-block-start: 72px; inset-inline-end: 0; inline-size: var(--card-w); padding: 18px;
  border-radius: var(--r-2xl); background: var(--bg-raised); box-shadow: 0 0 0 1px var(--line), var(--shadow-sheet); font-size: 14px; line-height: 20px; }
.p-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.p-title { font: 600 var(--fs-heading-md)/var(--lh-heading-md) var(--font-sans); letter-spacing: var(--tr-heading-md); white-space: nowrap; }
.p-where { margin-block-start: 2px; white-space: nowrap; }
.p-tools { display: flex; gap: 12px; padding-block-start: 4px; color: var(--text-muted); }
.p-tools .ic { inline-size: 17px; block-size: 17px; }
.p-lines { margin-block-start: 12px; border-block-start: 1px solid var(--line); }
.p-line { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 8px; padding-block: 10px; border-block-end: 1px solid var(--line); }
.p-qty { display: flex; color: var(--text-muted); }
.p-name { display: flex; flex-direction: column; min-inline-size: 0; }
.p-mods { color: var(--text-subtle); font-size: 12px; line-height: 16px; }
.p-amt { font-weight: 500; white-space: nowrap; }
.p-sum { margin-block-start: 12px; }
.p-row { display: flex; justify-content: space-between; gap: 12px; color: var(--text-muted); font-size: 13px; }
.p-total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-block-start: 4px; }
.p-total .num { font: 600 var(--fs-display-md)/var(--lh-display-md) var(--font-display); letter-spacing: var(--tr-display-md); font-variant-numeric: tabular-nums; }
.p-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-block-start: 14px; }
.p-pay { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-block-start: 8px; }
.p-btn { display: flex; align-items: center; justify-content: center; gap: 6px; min-inline-size: 0; block-size: 40px; padding-inline: 6px; border-radius: var(--r-md);
  background: var(--bg-raised); box-shadow: inset 0 0 0 1px var(--line-strong); font-size: 13px; font-weight: 500; white-space: nowrap; }
.p-btn > span { overflow: hidden; text-overflow: ellipsis; }
.p-btn .ic { inline-size: 15px; block-size: 15px; color: var(--text-muted); }
.p-tender { block-size: 48px; border-radius: var(--r-lg); font-size: 14px; }
.p-charge { display: flex; align-items: center; justify-content: space-between; gap: 12px; block-size: 60px; margin-block-start: 8px; padding-inline: 18px;
  border-radius: var(--r-xl); background: var(--accent); color: var(--on-accent); }
.p-charge-label { display: flex; flex-direction: column; min-inline-size: 0; font-size: 17px; line-height: 20px; font-weight: 600; }
.p-charge-sub { font-size: 12px; line-height: 16px; font-weight: 500; }
.p-charge > .num { font-size: 19px; font-weight: 600; white-space: nowrap; }

.bag .m-pill { margin-block-start: 3px; }
.bag-chain { display: flex; align-items: center; gap: 10px; margin-block-start: 14px; padding-block: 12px; border-block: 1px solid var(--line); }
.bag-step { display: flex; flex-direction: column; min-inline-size: 0; }
.bag-k { color: var(--text-subtle); font-size: 12px; line-height: 16px; }
.bag-v { font-weight: 600; white-space: nowrap; }
.bag-s { color: var(--text-subtle); font-size: 12px; line-height: 16px; }
.bag-arrow { inline-size: 14px; block-size: 14px; color: var(--text-subtle); }
.bag-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-block-start: 14px; font-weight: 600; }
.bag-total { white-space: nowrap; }
.bag-bar { display: flex; gap: 2px; block-size: 8px; margin-block-start: 10px; overflow: hidden; border-radius: var(--r-full); }
.bag-seg { block-size: 100%; }
.bag-seg.s1 { flex: 71.2; }
.bag-seg.s2 { flex: 12.8; }
.bag-seg.s3 { flex: 10.2; }
.bag-seg.s4 { flex: 5.8; }
.s1 { background: var(--series-1); }
.s2 { background: var(--series-2); }
.s3 { background: var(--series-4); }
.s4 { background: var(--series-5); }
.bag-parts { margin-block-start: 10px; }
.bag-parts li { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding-block: 3px; font-size: 13px; }
.bag-parts .dot { inline-size: 8px; block-size: 8px; border-radius: 2px; }
.bag-part { color: var(--text-muted); }
.bag .p-sum { margin-block-start: 12px; padding-block-start: 12px; border-block-start: 1px solid var(--line); }
.bag-margin { color: var(--success-text); }

@media (max-width: 1279px) {
  .m-app { grid-template-columns: 56px minmax(0, 1fr); }
  .m-side { align-items: center; padding-inline: 0; }
  .m-ws { justify-content: center; inline-size: 40px; padding-inline: 0; }
  .m-ws-name, .m-item span { display: none; }
  .m-item { justify-content: center; inline-size: 40px; padding-inline: 0; }
  .m-item.is-active::after { inset-inline: 6px; }
  ul.m-nav { justify-items: center; }
  .m-table .c-dtr { display: none; }
}
/* Tablets and phones: the frame is as tall as what it shows and the card sits under it, overlapping only the
   frame's bottom padding (nothing on screen is cut). */
@media (max-width: 1099px) {
  .stage .frame { margin-inline-end: 0; block-size: auto; }
  .m-app { block-size: auto; }
  .m-page, .stage .m-page { padding: 18px 28px 64px; }
  .card { position: relative; inset: auto; inline-size: min(340px, 92%); margin-block-start: -40px; margin-inline: auto 24px; }
}
@media (max-width: 767px) {
  .stage { margin-block-start: 40px; padding-block-end: 32px; }
  .stage::after { block-size: 208px; }
  .frame, .stage .frame { border-radius: var(--r-xl); }
  .m-app { grid-template-columns: minmax(0, 1fr); }
  .m-side { display: none; }
  .m-top { padding-inline: 14px; block-size: 46px; }
  .m-search { flex: 1 1 auto; }
  .m-kbd, .m-top-end .m-btn { display: none; }
  .m-page, .stage .m-page { padding: 14px 16px 56px; }
  .m-head { margin-block-end: 14px; }
  .m-seg, .m-head > .m-btn { display: none; }
  .m-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .m-kpi:nth-child(3) { padding-inline-start: 0; border-inline-start: 0; }
  .m-kpi:nth-child(-n+2) { border-block-end: 1px solid var(--line); }
  .m-kpi { padding-block: 12px; }
  .m-value { font-size: 24px; line-height: 30px; }
  .m-plot { block-size: 130px; }
  .m-table .c-date, .m-table .c-cost { display: none; }
  .m-table th + th, .m-table td + td { padding-inline-start: 10px; }
  .card { inline-size: min(340px, 94%); margin-block-start: -40px; margin-inline: auto; padding: 16px; }
  .p-charge { block-size: 56px; }
}

/* the capabilities: one row on hairlines under the frame (a list on phones) */
.caps { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-block-start: var(--s-6); }
.cap { display: flex; flex-direction: column; min-inline-size: 0; padding-inline: var(--s-6); }
.cap:first-child { padding-inline-start: 0; }
.cap:last-child { padding-inline-end: 0; }
.cap + .cap { border-inline-start: 1px solid var(--line); }
.cap-ic { inline-size: 20px; block-size: 20px; margin-block-end: var(--s-4); color: var(--text); }
.cap-title { font-size: var(--fs-heading-sm); line-height: var(--lh-heading-sm); letter-spacing: var(--tr-heading-sm); }
.cap-body { margin-block-start: 6px; color: var(--text-muted); font-size: var(--fs-body); line-height: var(--lh-body); }
.cap-link { margin-block-start: var(--s-3); font-size: var(--fs-body); }
@media (max-width: 1199px) {
  .caps { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-10); }
  .cap, .cap:first-child, .cap:last-child { display: grid; grid-template-columns: 20px minmax(0, 1fr); column-gap: var(--s-4); align-content: start;
    padding: var(--s-5) 0; border-block-start: 1px solid var(--line); }
  .cap + .cap { border-inline-start: 0; }
  .cap-ic { grid-row: 1 / span 3; margin: 2px 0 0; }
  .cap-link { justify-self: start; }
}
@media (max-width: 767px) {
  .caps { grid-template-columns: minmax(0, 1fr); }
}

/* ------------------------------------------------------------------ segmented controls (pricing toggles) */

.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--bg-hover); max-inline-size: 100%; }
.seg-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); min-block-size: 34px; padding-inline: 14px; border-radius: var(--r-md);
  color: var(--text-muted); font-size: var(--fs-body); font-weight: 500; white-space: nowrap; transition: background-color var(--dur-1) var(--ease-standard), color var(--dur-1) var(--ease-standard); }
.seg-btn:hover { color: var(--text); }
.seg-btn[aria-selected="true"], .seg-btn[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); }
/* A saving is money: jade text, on a jade wash (or, on the ink thumb, the ink surface's jade). */
.seg-badge { padding: 2px 7px; border-radius: var(--r-full); background: var(--accent-bg); color: var(--accent-text); font-size: 11px; line-height: 16px; font-weight: 500; }
.seg-btn[aria-pressed="true"] .seg-badge { background: transparent; color: var(--on-ink-accent); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--on-ink-accent) 45%, transparent); }
@media (pointer: coarse) { .seg-btn { min-block-size: 44px; } }

/* ------------------------------------------------------------------ in both apps: the honest claims (one bento) */

.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; overflow: hidden; border-radius: var(--r-xl); background: var(--line);
  box-shadow: 0 0 0 1px var(--line); }
.cell { display: flex; flex-direction: column; min-inline-size: 0; padding: var(--s-8); background: var(--bg); }
.cell-title { font-size: var(--fs-heading-md); line-height: var(--lh-heading-md); letter-spacing: var(--tr-heading-md); }
.cell-body { max-inline-size: 46ch; margin-block-start: 6px; color: var(--text-muted); font-size: var(--fs-body); line-height: var(--lh-body); }
.cell-ui { margin-block-start: auto; padding-block-start: var(--s-8); }
.sync { display: flex; flex-direction: column; }
.sync-row { display: flex; align-items: center; gap: 10px; padding-block: 11px; border-block-end: 1px solid var(--line); font-size: 13px; font-weight: 500; }
.sync-row:first-child { border-block-start: 1px solid var(--line); }
.sync-row .ic { inline-size: 16px; block-size: 16px; }
.sync-row.is-off { color: var(--text-muted); }
.sync-row.is-on { color: var(--text); }
.sync-row.is-on .ic { color: var(--success-text); }
.doc { font-size: 13px; }
.doc-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-block-end: 10px; border-block-end: 1px solid var(--line); }
.doc-top .eyebrow { color: var(--text); }
.doc-client { margin-block-start: 12px; font-size: 15px; font-weight: 600; }
.doc-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-block-start: 6px; }
.doc-amt { font-size: 22px; line-height: 28px; font-weight: 600; }
.doc-due { margin-block-start: 4px; color: var(--text-subtle); font-size: 12px; }
.rtl-demo { font-family: var(--font-arabic); font-size: 15px; line-height: 24px; letter-spacing: 0; }
.rtl-head { display: flex; align-items: center; justify-content: space-between; margin-block-end: 6px; }
.rtl-title { font-size: 17px; font-weight: 600; }
.rtl-line, .rtl-total { display: flex; justify-content: space-between; gap: 12px; padding-block: 7px; border-block-end: 1px solid var(--line); }
.rtl-sub { color: var(--text-subtle); font-size: 13px; }
.rtl-total { border: 0; font-size: 18px; font-weight: 600; }
.both-founder { margin-block-start: var(--s-8); color: var(--text-muted); font-size: var(--fs-body); line-height: var(--lh-body); text-align: center; }
.both-founder a { display: inline-flex; align-items: center; gap: 4px; color: var(--accent-text); font-weight: 500; text-decoration: none; }
.both-founder a:hover { text-decoration: underline; text-underline-offset: 3px; }
.both-founder .ic { inline-size: 14px; block-size: 14px; }
@media (pointer: coarse) { .both-founder a { min-block-size: 44px; } }
@media (max-width: 1023px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cell-rtl { grid-column: 1 / -1; }
  .cell-rtl .rtl-demo { max-inline-size: 420px; }
}
@media (max-width: 767px) {
  .bento { grid-template-columns: minmax(0, 1fr); }
  .cell { padding: var(--s-6) var(--s-5); }
  .cell-ui { padding-block-start: var(--s-6); }
}

/* ------------------------------------------------------------------ pricing */

.pricing-controls { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3); margin-block-end: var(--s-10); }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.plan { display: flex; flex-direction: column; min-inline-size: 0; padding: var(--s-8); }
.plan + .plan { border-inline-start: 1px solid var(--line); }
.plan-rec { position: relative; z-index: 1; border-radius: var(--r-xl); background: var(--bg-raised); box-shadow: 0 0 0 1px var(--accent-line), var(--shadow-pop); }
.plan.plan-rec, .plan-rec + .plan { border-inline-start-color: transparent; }
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.plan-name { font-size: var(--fs-heading-md); line-height: var(--lh-heading-md); letter-spacing: var(--tr-heading-md); }
.plan-badge { display: inline-flex; align-items: center; block-size: 22px; padding-inline: 9px; border-radius: var(--r-full); background: var(--accent-bg); color: var(--accent-text);
  font-size: 12px; font-weight: 500; white-space: nowrap; }
.plan-desc { min-block-size: 40px; margin-block-start: 6px; color: var(--text-muted); font-size: var(--fs-body); line-height: var(--lh-body); }
.price { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; margin-block-start: var(--s-6); }
.price-figure { font: 600 var(--fs-display-lg)/var(--lh-display-lg) var(--font-display); letter-spacing: var(--tr-display-lg); font-variant-numeric: proportional-nums; white-space: nowrap; }
.price-unit { color: var(--text-muted); font-size: var(--fs-body); white-space: nowrap; }
.price-note { min-block-size: 40px; margin-block-start: 6px; color: var(--text-subtle); font-size: var(--fs-body-sm); line-height: 20px; }
.price-approx { color: var(--text-subtle); font-size: var(--fs-caption); line-height: var(--lh-caption); }
.plan-cta { inline-size: 100%; margin-block-start: var(--s-5); }
.plan-features { margin-block-start: var(--s-6); }
.plan-features li { display: flex; gap: 10px; padding-block: 6px; font-size: var(--fs-body); line-height: var(--lh-body); }
.plan-features .ic { inline-size: 16px; block-size: 16px; margin-block-start: 2px; color: var(--accent-text); }
.pricing-notes { max-inline-size: 720px; margin: var(--s-10) auto 0; color: var(--text-muted); font-size: var(--fs-body); line-height: var(--lh-body); text-align: center; }
.pricing-notes p + p { margin-block-start: var(--s-2); }
.pricing-notes .early { display: inline-flex; align-items: flex-start; gap: 8px; margin-block-start: var(--s-4); padding: 10px 14px; border-radius: var(--r-md);
  background: var(--bg-hover); color: var(--text-muted); text-align: start; }
.pricing-notes .early .ic { inline-size: 16px; block-size: 16px; margin-block-start: 2px; }
.compare { max-inline-size: 960px; margin: var(--s-10) auto 0; border-block-start: 1px solid var(--line); }
.compare > summary { display: flex; align-items: center; justify-content: center; gap: var(--s-2); min-block-size: 56px; color: var(--text); font-weight: 500; }
.compare > summary .ic { inline-size: 16px; block-size: 16px; transition: transform var(--dur-2) var(--ease-standard); }
.compare[open] > summary .ic { transform: rotate(180deg); }
.cmp { inline-size: 100%; font-size: var(--fs-body); line-height: var(--lh-body); }
.cmp th[scope="col"] { padding: 12px 8px; text-align: center; font-weight: 600; }
.cmp th[scope="row"] { padding-block: 12px; padding-inline: 0 8px; color: var(--text-muted); font-weight: 400; }
.cmp td { padding: 12px 8px; text-align: center; }
.cmp tbody th, .cmp td { border-block-start: 1px solid var(--line); }
/* a group (both apps, the Café, the Roastery): a mono eyebrow on its own row */
.cmp .cmp-group th { padding-block: 28px 8px; padding-inline: 0; border-block-start: 0; color: var(--text-subtle); font: 500 var(--fs-eyebrow)/var(--lh-eyebrow) var(--font-mono);
  letter-spacing: var(--tr-eyebrow); text-transform: uppercase; text-align: start; }
:lang(ar) .cmp .cmp-group th { text-transform: none; font-weight: 600; }
.cmp td .ic { margin-inline: auto; inline-size: 16px; block-size: 16px; }
.cmp .yes { color: var(--accent-text); }
.cmp .no { color: var(--text-disabled); }
@media (max-width: 1023px) {
  .plans { grid-template-columns: minmax(0, 1fr); max-inline-size: 560px; margin-inline: auto; gap: var(--s-4); }
  .plan + .plan { border-inline-start: 0; }
  .plan { border-radius: var(--r-xl); box-shadow: 0 0 0 1px var(--line); }
  .plan-rec { order: -1; box-shadow: 0 0 0 1px var(--accent-line), var(--shadow-pop); }
  .plan-desc, .price-note { min-block-size: 0; }
}
@media (max-width: 599px) {
  .plan { padding: var(--s-6) var(--s-5); }
  .pricing-controls { flex-direction: column; align-items: stretch; }
  .pricing-controls .seg { display: flex; }
  .pricing-controls .seg-btn { flex: 1 1 0; }
  .cmp { font-size: 13px; line-height: 18px; table-layout: fixed; }
  .cmp th[scope="col"] { padding-inline: 4px; font-size: 13px; }
  .cmp th[scope="row"] { inline-size: 38%; padding-inline-end: 4px; overflow-wrap: break-word; hyphens: auto; }
  .cmp td { padding-inline: 4px; overflow-wrap: break-word; hyphens: auto; }
}

/* ------------------------------------------------------------------ founder + FAQ */

.ff-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); align-items: start; gap: var(--s-20); }
.founder { position: sticky; inset-block-start: 96px; padding: var(--s-8); border-radius: var(--r-xl); background: var(--bg-sunken); scroll-margin-block-start: 96px; }
.founder-title { margin-block-end: var(--s-4); font: 600 var(--fs-heading-lg)/var(--lh-heading-lg) var(--font-display); letter-spacing: var(--tr-heading-lg); }
.founder > p:not(.eyebrow) { color: var(--text-muted); font-size: 15px; line-height: 24px; }
.founder > p + p { margin-block-start: var(--s-3); }
.founder-sign { display: flex; align-items: center; gap: var(--s-3); margin-block-start: var(--s-6); }
.avatar { display: inline-grid; place-items: center; inline-size: 40px; block-size: 40px; border-radius: 50%; background: var(--bg-active); color: var(--text-muted); font-weight: 600; flex: none; }
.founder-who { display: flex; flex-direction: column; }
.founder-name { font-weight: 600; font-size: var(--fs-body); }
.founder-role { color: var(--text-subtle); font-size: var(--fs-body-sm); line-height: var(--lh-body-sm); }
.founder .text-link { margin-block-start: var(--s-4); font-size: var(--fs-body); }
.faq .section-title { margin-block-end: var(--s-6); }
.faq-item { border-block-end: 1px solid var(--line); }
.faq-item:first-child { border-block-start: 1px solid var(--line); }
.faq-item > summary { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-block-size: 64px; padding-block: var(--s-4);
  font-size: 17px; line-height: 24px; font-weight: 500; }
.faq-item > summary .ic { color: var(--text-subtle); transition: transform var(--dur-2) var(--ease-standard); }
.faq-item[open] > summary .ic { transform: rotate(45deg); }
.faq-item > p { max-inline-size: 64ch; padding-block-end: var(--s-5); color: var(--text-muted); }
.faq-item a { color: var(--accent-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
@media (max-width: 1023px) {
  .ff-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s-12); }
  .founder { position: static; order: 2; }
}
@media (max-width: 599px) { .founder { padding: var(--s-6) var(--s-5); } .faq-item > summary { font-size: 16px; } }

/* ------------------------------------------------------------------ final call to action: the two apps again */

.final { padding-block: 112px; border-block-start: 1px solid var(--line); background: var(--bg-sunken); text-align: center; }
.final-title { font: 600 var(--fs-display-lg)/var(--lh-display-lg) var(--font-display); letter-spacing: var(--tr-display-lg); }
.final-sub { max-inline-size: 36em; margin: var(--s-4) auto 0; color: var(--text-muted); font-size: var(--fs-body-lg); line-height: var(--lh-body-lg); }
.final-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3); margin-block-start: var(--s-8); }
.final-demos { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-1) var(--s-8); margin-block-start: var(--s-5); font-size: var(--fs-body); }
@media (max-width: 767px) {
  .final { padding-block: 72px; }
  .final-title { font-size: var(--fs-display-md); line-height: var(--lh-display-md); letter-spacing: var(--tr-display-md); }
  .final-sub { font-size: var(--fs-body-md); line-height: var(--lh-body-md); }
  .final-ctas { flex-direction: column; }
  .final-ctas .btn { inline-size: 100%; }
}

/* ------------------------------------------------------------------ footer */

.foot { padding-block: 56px 32px; border-block-start: 1px solid var(--line); font-size: var(--fs-body); line-height: var(--lh-body); }
.final + .foot, main + .foot { border-block-start-color: var(--line); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr)); gap: var(--s-8); }
.foot-tag { max-inline-size: 30ch; margin-block-start: var(--s-4); color: var(--text-muted); }
.foot-made { margin-block-start: var(--s-2); color: var(--text-subtle); font-size: var(--fs-body-sm); }
.foot-col { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.foot-col .eyebrow { margin-block-end: 4px; }
.foot-col a, .foot-langs a { color: var(--text-muted); text-decoration: none; overflow-wrap: anywhere; }
.foot-col a:hover, .foot-langs a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.foot-langs a[aria-current="true"] { color: var(--text); font-weight: 500; }
.foot-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-2) var(--s-6); margin-block-start: var(--s-10);
  padding-block-start: var(--s-5); border-block-start: 1px solid var(--line); color: var(--text-subtle); font-size: var(--fs-body-sm); }
.foot-langs { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-5); }
@media (max-width: 1023px) {
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 419px) { .foot-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); } }
@media (pointer: coarse) {
  .foot-col { gap: 0; }
  .foot-col a, .foot-langs a { display: flex; align-items: center; min-block-size: 44px; min-inline-size: 44px; }
}
@media (max-width: 767px) { .foot { padding-block-end: calc(96px + var(--safe-bottom)); } }

/* ------------------------------------------------------------------ phone sticky CTA: the two apps, one tap each */

.sticky-cta { display: none; }
@media (max-width: 767px) {
  .sticky-cta { position: fixed; inset-inline: 0; inset-block-end: 0; z-index: var(--z-sticky); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-2);
    padding: 10px max(16px, var(--safe-start)) calc(10px + var(--safe-bottom)) max(16px, var(--safe-end)); border-block-start: 1px solid var(--line);
    background: var(--glass); -webkit-backdrop-filter: var(--glass-filter); backdrop-filter: var(--glass-filter);
    transform: translateY(110%); visibility: hidden;
    transition: transform var(--dur-3) var(--ease-standard), visibility 0s linear var(--dur-3); }
  .sticky-cta.is-shown { transform: none; visibility: visible; transition: transform var(--dur-3) var(--ease-standard), visibility 0s; }
  .sticky-cta .btn { min-inline-size: 0; padding-inline: 12px; }
  .sticky-cta .btn span { overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 767px) and (prefers-reduced-transparency: reduce) { .sticky-cta { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; } }

/* ------------------------------------------------------------------ legal pages */

.legal-page { padding-block: 72px 96px; }
.legal-layout { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: var(--s-16); align-items: start; }
.legal-side { position: sticky; inset-block-start: 96px; display: flex; flex-direction: column; gap: 2px; }
.legal-side .eyebrow { margin-block-end: var(--s-3); }
.legal-side a { display: flex; align-items: center; min-block-size: 32px; padding-inline: 10px; border-radius: var(--r-md); color: var(--text-muted); font-size: var(--fs-body);
  font-weight: 500; text-decoration: none; }
.legal-side a:hover { background: var(--bg-hover); color: var(--text); }
.legal-side a[aria-current="page"] { background: var(--bg-active); color: var(--text); }
.legal-main { min-inline-size: 0; }
.legal-head { max-inline-size: 72ch; padding-block-end: var(--s-6); border-block-end: 1px solid var(--line); }
.legal-head h1 { font: 600 var(--fs-display-md)/var(--lh-display-md) var(--font-display); letter-spacing: var(--tr-display-md); }
.legal-sub { margin-block-start: var(--s-3); color: var(--text-muted); font-size: var(--fs-body-lg); line-height: var(--lh-body-lg); }
.legal-side .eyebrow-link { display: inline; min-block-size: 0; padding: 0; background: none; color: inherit; font: inherit; text-decoration: none; }
.legal-side .eyebrow-link:hover { background: none; color: var(--text); }
@media (pointer: coarse) { .legal-side .eyebrow-link { display: inline-flex; align-items: center; min-block-size: 44px; min-inline-size: 44px; } }
.legal-doc { max-inline-size: 72ch; padding-block-start: var(--s-2); }
.legal-index { max-inline-size: 880px; }
.legal-company th { inline-size: 40%; color: var(--text-muted); font-size: var(--fs-body); font-weight: 400; }
.legal-meta { margin-block-start: var(--s-3); color: var(--text-subtle); font-size: var(--fs-body); }
.legal-langs { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-block-start: var(--s-4); }
.legal-langs a { display: inline-flex; align-items: center; min-block-size: 32px; padding-inline: 12px; border-radius: var(--r-full); background: var(--bg-hover);
  color: var(--text-muted); font-size: var(--fs-body-sm); text-decoration: none; }
.legal-langs a[aria-current="true"] { background: var(--primary); color: var(--on-primary); font-weight: 500; }
.legal-doc h2 { margin-block: var(--s-10) var(--s-3); font-size: var(--fs-heading-md); line-height: var(--lh-heading-md); letter-spacing: var(--tr-heading-md); }
.legal-doc h3 { margin-block: var(--s-6) var(--s-2); font-size: var(--fs-heading-sm); line-height: var(--lh-heading-sm); }
.legal-doc p, .legal-doc li { color: var(--text-muted); }
.legal-doc p + p { margin-block-start: var(--s-3); }
.legal-doc ul, .legal-doc ol { margin-block: var(--s-3); padding-inline-start: 1.25em; }
.legal-doc li + li { margin-block-start: var(--s-1-5); }
.legal-doc strong { color: var(--text); font-weight: 600; }
.legal-doc a { color: var(--accent-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.legal-doc .lead { margin-block-start: var(--s-6); color: var(--text); font-size: var(--fs-body-lg); line-height: var(--lh-body-lg); }
.legal-doc .note { margin-block-start: var(--s-6); padding: var(--s-4); border-radius: var(--r-md); background: var(--bg-sunken); font-size: var(--fs-body); line-height: var(--lh-body); }
.legal-doc .ph { padding: 0 4px; border-radius: var(--r-xs); background: var(--warning-bg); color: var(--warning-text); font-weight: 500; white-space: nowrap; }
.legal-table { inline-size: 100%; margin-block: var(--s-4); font-size: var(--fs-body); line-height: var(--lh-body); }
.legal-table th, .legal-table td { padding-block: 10px; padding-inline: 0 12px; border-block-end: 1px solid var(--line); text-align: start; vertical-align: top; }
.legal-table th { color: var(--text-subtle); font-size: var(--fs-caption); font-weight: 500; }
.legal-table td { color: var(--text-muted); }
.legal-table .num { color: var(--text); white-space: nowrap; }
.legal-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin-block-start: var(--s-8); overflow: hidden; border-radius: var(--r-xl);
  background: var(--line); box-shadow: 0 0 0 1px var(--line); }
.legal-cards a { display: flex; flex-direction: column; gap: 4px; padding: var(--s-6); background: var(--bg); color: var(--text); text-decoration: none; }
.legal-cards a:hover { background: var(--bg-hover); }
.legal-cards span { color: var(--text-muted); font-size: var(--fs-body); line-height: var(--lh-body); }
.legal-cards strong { font-weight: 600; }
@media (max-width: 899px) {
  .legal-layout { grid-template-columns: minmax(0, 1fr); gap: var(--s-8); }
  .legal-side { position: static; flex-direction: row; flex-wrap: wrap; gap: var(--s-2); }
  .legal-side .eyebrow { inline-size: 100%; margin-block-end: 0; }
  .legal-side a { background: var(--bg-hover); border-radius: var(--r-full); }
}
@media (max-width: 599px) {
  .legal-page { padding-block: 40px 72px; }
  .legal-cards { grid-template-columns: minmax(0, 1fr); }
  /* Phones: tables become stacked rows, each cell labelled with its column header (data-label). */
  .legal-table:not(.legal-company) thead { display: none; }
  .legal-table:not(.legal-company), .legal-table:not(.legal-company) tbody, .legal-table:not(.legal-company) tr,
  .legal-table:not(.legal-company) td { display: block; }
  .legal-table:not(.legal-company) tr { padding-block: var(--s-3); border-block-end: 1px solid var(--line); }
  .legal-table:not(.legal-company) tr:first-child { border-block-start: 1px solid var(--line); }
  .legal-table:not(.legal-company) td { padding: 2px 0; border: 0; white-space: normal; }
  .legal-table:not(.legal-company) td[data-label]::before { content: attr(data-label); display: block; color: var(--text-subtle); font-size: var(--fs-caption);
    line-height: var(--lh-caption); }
  .legal-table:not(.legal-company) td:first-child { color: var(--text); font-weight: 500; }
  .legal-table:not(.legal-company) td:first-child::before { display: none; }
  .legal-company th { inline-size: 45%; }
}
@media (pointer: coarse) { .legal-side a, .legal-langs a { min-block-size: 44px; } }

@media print {
  .nav, .foot, .sticky-cta, .legal-side, .legal-langs, .skip { display: none !important; }
  .legal-layout { display: block; }
  .legal-doc { max-inline-size: none; }
}
