/* seyaqi.com styles. Copied to dist/site.css by site/build.ts (ADR 0444). */
:root {
  color-scheme: light;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
html {
  scroll-padding-top: env(safe-area-inset-top, 0px);
}
body {
  margin: 0;
  padding: 0;
}
img {
  max-width: 100%;
}
[hidden]:not([hidden='until-found' i]) {
  display: none !important;
}
/* The brand's colours and type. Light is green coffee, dark is roasted; each
   industry edition adds its own colour family further down (edition accents). */
:root {
  --paper: #f4f6f1;
  --surface: #ffffff;
  --sunken: #e9eee6;
  --line: #d6ddd3;
  --line-strong: #717c74;
  --ink: #15201a;
  --muted: #59665e;
  --primary: #1c5a42;
  --primary-ink: #ffffff;
  --primary-soft: #daf2e6;
  --saffron: #e8a922;
  --saffron-ink: #8a5b00;
  --saffron-soft: #feedd7;
  --danger: #b0352a;
  --danger-soft: #feebe8;
  --band: #123d2d;
  --band-ink: #efe9e1;
  --band-muted: #a3c8b6;
  --band-line: rgba(239, 233, 225, 0.16);
  --band-card: rgba(239, 233, 225, 0.07);
  --logo-ink: #15201a;
  --logo-mark: #1c5a42;
  --tile: #1c5a42;
  --tile-line: #efe9e1;
  --cta-bg: #e8a922;
  --cta-ink: #14110e;
  --cta-muted: #4b3301;
  --cta-card: #fff6e6;
  --r0: #c5d5ab;
  --r1: #ccb262;
  --r2: #ba8144;
  --r3: #8f5a39;
  --r4: #66402e;
  --shadow: rgba(21, 32, 26, 0.28);
  --sun: none;
  --moon: block;
  --font-display: 'Alexandria', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --font-text:
    'IBM Plex Sans',
    'IBM Plex Sans Arabic',
    system-ui,
    -apple-system,
    'Segoe UI',
    sans-serif;
  --font-ar: 'IBM Plex Sans Arabic', 'IBM Plex Sans', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --paper: #14110e;
    --surface: #241f1a;
    --sunken: #1c1814;
    --line: #3a3229;
    --line-strong: #877c6f;
    --ink: #efe9e1;
    --muted: #a79b8c;
    --primary: #73c79e;
    --primary-ink: #0f1a14;
    --primary-soft: #112d21;
    --saffron-ink: #f2b946;
    --saffron-soft: #32230f;
    --danger: #e77262;
    --danger-soft: #381f1b;
    --band: #0e2a1f;
    --logo-ink: #efe9e1;
    --logo-mark: #efe9e1;
    --r0: #697851;
    --r1: #a08735;
    --r2: #ce9457;
    --r3: #e7ac88;
    --r4: #f7c9b4;
    --shadow: rgba(0, 0, 0, 0.6);
    --sun: block;
    --moon: none;
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --paper: #14110e;
  --surface: #241f1a;
  --sunken: #1c1814;
  --line: #3a3229;
  --line-strong: #877c6f;
  --ink: #efe9e1;
  --muted: #a79b8c;
  --primary: #73c79e;
  --primary-ink: #0f1a14;
  --primary-soft: #112d21;
  --saffron-ink: #f2b946;
  --saffron-soft: #32230f;
  --danger: #e77262;
  --danger-soft: #381f1b;
  --band: #0e2a1f;
  --logo-ink: #efe9e1;
  --logo-mark: #efe9e1;
  --r0: #697851;
  --r1: #a08735;
  --r2: #ce9457;
  --r3: #e7ac88;
  --r4: #f7c9b4;
  --shadow: rgba(0, 0, 0, 0.6);
  --sun: block;
  --moon: none;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.6 var(--font-text);
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}
body::before {
  content: '';
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 40;
  background: var(--paper);
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  margin: 0;
  text-wrap: balance;
}
p {
  margin: 0;
}
a {
  color: inherit;
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 6px;
}
.in {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.num {
  font-variant-numeric: tabular-nums;
}
.eyebrow {
  font: 600 0.74rem/1.2 var(--font-text);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--saffron-ink);
}
.ex {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 600 0.66rem/1 var(--font-text);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px dashed var(--line-strong);
  border-radius: 999px;
  padding: 5px 9px;
}
body {
  --ctx-line: var(--primary);
  --ctx-dot: var(--saffron);
}
/* the brand's round point, used as the full stop of a headline */
.pt {
  display: inline-block;
  width: 0.19em;
  height: 0.19em;
  border-radius: 50%;
  background: var(--saffron);
  margin-inline-start: 0.07em;
  vertical-align: baseline;
}
/* Arabic: sans everywhere, a little larger, never letterspaced */
#site[lang='ar'] {
  font-family: var(--font-ar);
}
#site[lang='ar'] * {
  letter-spacing: 0 !important;
}
#site[lang='ar'] .sec-hd > p:not(.eyebrow) {
  font-size: 1.1em;
  line-height: 1.85;
}
#site[lang='ar'] h1 {
  line-height: 1.32;
}
#site[lang='ar'] h2 {
  line-height: 1.38;
}
#site[lang='ar'] .eyebrow {
  font-size: 0.84rem;
}
/* logo */
.logo svg {
  display: block;
  width: 100%;
  height: auto;
}
.wm-i {
  fill: var(--logo-ink);
}
.wm-a,
.wm-md {
  fill: var(--saffron);
}
.wm-m {
  stroke: var(--logo-mark);
}
.wm-v {
  stroke: var(--line);
}
.only-ar {
  display: none;
}
#site[lang='ar'] .only-en {
  display: none;
}
#site[lang='ar'] .only-ar {
  display: block;
}
/* header */
.top {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 30;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.top .in {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 68px;
}
.top .logo {
  width: 152px;
  flex: none;
  text-decoration: none;
}
.top nav {
  display: flex;
  gap: 22px;
  margin-inline-start: 12px;
  font-size: 0.9rem;
}
.top nav a {
  text-decoration: none;
  color: var(--muted);
}
.top nav a:hover {
  color: var(--ink);
}
.tools {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-inline-start: auto;
}
.icon-btn {
  display: grid;
  place-items: center;
  height: 40px;
  min-width: 40px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font: 500 0.86rem/1 var(--font-text);
}
.icon-btn .sun {
  display: var(--sun);
}
.icon-btn .moon {
  display: var(--moon);
}
.lang-btn {
  font-family: 'Geeza Pro', 'Segoe UI', 'Noto Sans Arabic', Tahoma, sans-serif;
  font-size: 0.92rem;
}
#site[lang='ar'] .lang-btn {
  font-family: var(--font-text);
  font-size: 0.86rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 12px;
  font: 600 0.95rem/1 var(--font-text);
  text-decoration: none;
  cursor: pointer;
  border: 0;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-cta {
  background: var(--cta-bg);
  color: var(--cta-ink);
  box-shadow: 0 10px 24px -14px #8a5b00;
}
.btn-ink {
  background: var(--cta-ink);
  color: var(--cta-bg);
}
.top .btn {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.88rem;
  border-radius: 10px;
}
.ctx-svg path {
  fill: none;
  stroke: var(--primary);
  stroke-width: 6;
  stroke-linecap: round;
}
.ctx-svg circle {
  fill: var(--saffron);
}
/* sections */
.sec {
  padding-block: 88px;
  scroll-margin-top: 72px;
}
.sec-hd {
  display: grid;
  gap: 14px;
  max-width: 800px;
  margin-bottom: 36px;
}
.sec-hd h2 {
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.035em;
}
.sec-hd > p:not(.eyebrow) {
  font-size: 1.06rem;
  color: var(--muted);
  max-width: 62ch;
}
.tag {
  display: inline-flex;
  align-items: center;
  font: 600 0.72rem/1 var(--font-text);
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  white-space: nowrap;
}
.tag.ok {
  background: var(--primary-soft);
  border-color: transparent;
  color: var(--primary);
}
/* why: a ruled table on the page's paper, a heavy ink rule on top and
   hairlines between the rows; the bracket mark marks Seyaqi's side, no tint */
.cmp {
  border-top: 3px solid var(--ink);
  border-bottom: 1px solid var(--line);
}
.cmp-hd,
.cmp-row {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr) minmax(0, 1fr);
  column-gap: clamp(18px, 2.4vw, 32px);
}
.cmp-hd div {
  padding: 14px 0 12px;
  font: 600 0.82rem/1.3 var(--font-text);
  color: var(--muted);
}
.cmp-hd .us {
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.cmp-row > div {
  padding: 18px 0;
  border-top: 1px solid var(--line);
  font-size: 0.93rem;
  min-width: 0;
}
.cmp-row .topic {
  font: 600 1rem/1.35 var(--font-display);
}
.cmp-row .them {
  color: var(--muted);
  display: flex;
  gap: 10px;
}
.cmp-row .us {
  display: flex;
  gap: 10px;
  font-weight: 500;
}
.cmp svg {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 3px;
}
.cmp .x path {
  stroke: var(--line-strong);
  stroke-width: 2.2;
  stroke-linecap: round;
  fill: none;
}
.lbl-m {
  display: none;
  font: 600 0.68rem/1 var(--font-text);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
/* editions */
/* each edition is a column under a hairline, on the page's paper: no card */
.eds {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 28px 24px;
}
.ed {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  display: grid;
  gap: 10px;
  align-content: start;
  min-width: 0;
}
.ed .ic {
  width: 40px;
  height: 40px;
}
.ed .ic path,
.ed .ic rect {
  fill: none;
  stroke: var(--primary);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ed h3 {
  font-size: 1.08rem;
  font-weight: 700;
}
.ed p {
  font-size: 0.86rem;
  color: var(--muted);
}
.ed .tag {
  justify-self: start;
}
/* the editions not built yet: one quiet line of type under the grid, each name
   led by the brand's saffron point, no card */
.eds-next {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 22px;
  margin-top: 22px;
  font-size: 0.95rem;
  font-weight: 600;
}
.eds-next b {
  font: 700 0.72rem/1 var(--font-text);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
#site[lang='ar'] .eds-next b {
  font-size: 0.86rem;
  letter-spacing: 0;
}
.eds-next span::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--saffron);
  margin-inline-end: 8px;
  vertical-align: 0.1em;
}
/* call to action */
.cta {
  background: var(--cta-bg);
  color: var(--cta-ink);
  border-radius: 28px;
  padding: clamp(28px, 5vw, 56px);
  display: grid;
  grid-template-columns: auto minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 44px);
  align-items: center;
}
.cta .mk {
  width: clamp(72px, 9vw, 110px);
  height: auto;
}
.cta .mk path {
  fill: none;
  stroke: var(--cta-ink);
  stroke-width: 5.5;
  stroke-linecap: round;
}
.cta .mk circle {
  fill: var(--cta-card);
}
.cta h2 {
  font-size: clamp(1.8rem, 3.8vw, 2.7rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.cta p {
  margin-top: 12px;
  color: var(--cta-muted);
  font-size: 1.02rem;
}
footer {
  border-top: 1px solid var(--line);
  padding-block: 44px 64px;
  margin-top: 88px;
}
footer .in {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 32px;
  align-items: end;
}
footer .logo {
  width: 190px;
}
@media (max-width: 1060px) {
  .top nav {
    display: none;
  }
  .eds {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .cta .mk {
    display: none;
  }
}
@media (max-width: 860px) {
  .cmp-hd {
    display: none;
  }
  .cmp-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .cmp-row > div {
    border-top: 0;
  }
  .cmp-row .topic {
    border-top: 1px solid var(--line);
    padding-bottom: 4px;
  }
  .cmp-hd + .cmp-row .topic {
    border-top: 0;
  }
  .cmp-row .them,
  .cmp-row .us {
    padding-top: 10px;
  }
  .lbl-m {
    display: block;
  }
  .cmp-row .them > div,
  .cmp-row .us > div {
    display: grid;
  }
  footer .in {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 620px) {
  .top .btn {
    display: none;
  }
  .top .logo {
    width: 128px;
  }
  .eds {
    grid-template-columns: minmax(0, 1fr);
  }
  .sec {
    padding-block: 64px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
/* edition accents (light, then both dark blocks) */
[data-ed='cafes'] {
  --ed-ink: #923144;
  --ed-fill: #c05b6b;
  --ed-soft: #ffe8ea;
  --r0: #ffdfe1;
  --r1: #f9acb4;
  --r2: #dc7483;
  --r3: #ac495a;
  --r4: #85253a;
}
[data-ed='wholesale'] {
  --ed-ink: #41519a;
  --ed-fill: #677ac8;
  --ed-soft: #e9eefe;
  --r0: #e0e7fe;
  --r1: #b1c1fb;
  --r2: #7e93e2;
  --r3: #5768b4;
  --r4: #37458e;
}
[data-ed='equipment'] {
  --ed-ink: #405c6e;
  --ed-fill: #678598;
  --ed-soft: #e7f0f7;
  --r0: #dfeaf1;
  --r1: #b2c8d7;
  --r2: #7f9db1;
  --r3: #567386;
  --r4: #355163;
}
[data-ed='services'] {
  --ed-ink: #016566;
  --ed-fill: #2b9192;
  --ed-soft: #dbf5f4;
  --r0: #d1efef;
  --r1: #93d1d1;
  --r2: #49aaaa;
  --r3: #0b7f80;
  --r4: #055959;
}
[data-ed='roasteries'] {
  --ed-ink: #8f5a39;
  --ed-fill: #ba8144;
  --ed-soft: #f6ebe1;
  --r0: #c5d5ab;
  --r1: #ccb262;
  --r2: #ba8144;
  --r3: #8f5a39;
  --r4: #66402e;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) [data-ed='cafes'] {
    --ed-ink: #f9a2ac;
    --ed-fill: #dc7483;
    --ed-soft: #3e191f;
    --r0: #71102a;
    --r1: #98374a;
    --r2: #c76171;
    --r3: #e897a1;
    --r4: #fcc8cd;
  }
  :root:not([data-theme='light']) [data-ed='wholesale'] {
    --ed-ink: #a8bafc;
    --ed-fill: #7e93e2;
    --ed-soft: #1d2441;
    --r0: #29347b;
    --r1: #4757a1;
    --r2: #6d80ce;
    --r3: #9daeeb;
    --r4: #cbd6fc;
  }
  :root:not([data-theme='light']) [data-ed='equipment'] {
    --ed-ink: #a9c2d3;
    --ed-fill: #7f9db1;
    --ed-soft: #1d282f;
    --r0: #254152;
    --r1: #456274;
    --r2: #6d8b9e;
    --r3: #9eb5c4;
    --r4: #ccdae4;
  }
  :root:not([data-theme='light']) [data-ed='services'] {
    --ed-ink: #85cdcd;
    --ed-fill: #49aaaa;
    --ed-soft: #072c2d;
    --r0: #034747;
    --r1: #076b6c;
    --r2: #339798;
    --r3: #7cbfbf;
    --r4: #bae0e0;
  }
  :root:not([data-theme='light']) [data-ed='roasteries'] {
    --ed-ink: #e7ac88;
    --ed-fill: #ce9457;
    --ed-soft: #33241a;
    --r0: #697851;
    --r1: #a08735;
    --r2: #ce9457;
    --r3: #e7ac88;
    --r4: #f7c9b4;
  }
}
:root[data-theme='dark'] [data-ed='cafes'] {
  --ed-ink: #f9a2ac;
  --ed-fill: #dc7483;
  --ed-soft: #3e191f;
  --r0: #71102a;
  --r1: #98374a;
  --r2: #c76171;
  --r3: #e897a1;
  --r4: #fcc8cd;
}
:root[data-theme='dark'] [data-ed='wholesale'] {
  --ed-ink: #a8bafc;
  --ed-fill: #7e93e2;
  --ed-soft: #1d2441;
  --r0: #29347b;
  --r1: #4757a1;
  --r2: #6d80ce;
  --r3: #9daeeb;
  --r4: #cbd6fc;
}
:root[data-theme='dark'] [data-ed='equipment'] {
  --ed-ink: #a9c2d3;
  --ed-fill: #7f9db1;
  --ed-soft: #1d282f;
  --r0: #254152;
  --r1: #456274;
  --r2: #6d8b9e;
  --r3: #9eb5c4;
  --r4: #ccdae4;
}
:root[data-theme='dark'] [data-ed='services'] {
  --ed-ink: #85cdcd;
  --ed-fill: #49aaaa;
  --ed-soft: #072c2d;
  --r0: #034747;
  --r1: #076b6c;
  --r2: #339798;
  --r3: #7cbfbf;
  --r4: #bae0e0;
}
:root[data-theme='dark'] [data-ed='roasteries'] {
  --ed-ink: #e7ac88;
  --ed-fill: #ce9457;
  --ed-soft: #33241a;
  --r0: #697851;
  --r1: #a08735;
  --r2: #ce9457;
  --r3: #e7ac88;
  --r4: #f7c9b4;
}
.origin {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(18px, 4vw, 40px);
  align-items: center;
  border-top: 3px solid var(--ink);
  padding: clamp(22px, 4vw, 36px) 0;
  margin-bottom: 8px;
}
.origin svg {
  width: clamp(56px, 8vw, 88px);
  height: auto;
}
.origin .q {
  font: 700 clamp(1.3rem, 2.6vw, 1.9rem)/1.3 var(--font-display);
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.origin .q span {
  color: var(--muted);
  font-weight: 500;
}
#site[lang='ar'] .origin .q {
  line-height: 1.6;
}
.ed .ic path,
.ed .ic rect {
  stroke: var(--ed-ink);
}
.ramp {
  display: flex;
  gap: 3px;
  margin-top: 2px;
}
.ramp i {
  flex: 1;
  height: 8px;
  border-radius: 3px;
}
.pt {
  fill: var(--sq-point, currentColor);
  stroke: none;
}
.ed .ic {
  color: var(--ed-ink, var(--primary));
}
.ed .ic .pt {
  fill: var(--saffron);
}
/* ===== audit fixes ===== */
:root {
  --arrow: #e8a922;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --arrow: #0f1a14;
  }
}
:root[data-theme='dark'] {
  --arrow: #0f1a14;
}
/* nothing readable below 12 px */
.eyebrow {
  font-size: 0.78rem;
}
.ex,
.tag,
.lbl-m {
  font-size: 0.75rem;
}
.top .logo {
  padding-block: 10px;
}
footer .f-logo {
  padding-block: 8px;
  box-sizing: content-box;
}
/* 44 px targets */
.icon-btn {
  height: 44px;
  min-width: 44px;
}
.top .btn {
  min-height: 44px;
}
/* menu below 1060 px */
.mnav {
  display: none;
  position: relative;
}
.mnav > summary {
  list-style: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
.mnav > summary::-webkit-details-marker {
  display: none;
}
.mnav > summary:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}
.mnav .panel {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 10px);
  width: min(320px, calc(100vw - 32px));
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 30px 60px -30px var(--shadow);
  padding: 8px;
  display: grid;
  gap: 2px;
  z-index: 40;
}
.mnav .panel a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 14px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
}
.mnav .panel a:hover {
  background: var(--sunken);
}
.mnav .panel .btn {
  margin-top: 6px;
  justify-content: center;
  color: var(--cta-ink);
}
.mnav .panel .btn:hover {
  background: var(--cta-bg);
}
@media (max-width: 1060px) {
  .mnav {
    display: block;
  }
}
.qa {
  padding-block: 22px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  align-content: start;
}
.qa h3 {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.35;
}
.qa p {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.65;
  max-width: 62ch;
}
#site[lang='ar'] .qa p {
  font-size: 1.04rem;
  line-height: 1.85;
}
/* footer */
footer.foot {
  border-top: 1px solid var(--line);
  padding-block: 56px 28px;
  margin-top: 88px;
}
footer.foot .in {
  display: block;
}
.f-top {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 2fr);
  gap: 48px;
}
.f-brand {
  display: grid;
  gap: 16px;
  align-content: start;
  max-width: 46ch;
}
footer .f-logo {
  display: block;
  width: 150px;
}
.f-brand p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.65;
}
#site[lang='ar'] .f-brand p {
  font-size: 1rem;
  line-height: 1.85;
}
.f-brand address {
  font-style: normal;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 0.92rem;
  color: var(--muted);
}
.f-brand .mail {
  color: var(--ink);
  font-weight: 600;
  user-select: all;
}
.f-cols {
  display: grid;
  grid-template-columns: 1.25fr 1.25fr 1fr 0.8fr;
  gap: 24px;
}
.f-h {
  font: 600 0.78rem/1.2 var(--font-text);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--saffron-ink);
  margin-bottom: 8px;
}
#site[lang='ar'] .f-h {
  font-size: 0.9rem;
}
.f-cols ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
}
.f-cols li {
  display: flex;
  /* a long name and its Live/Soon tag share a line while they fit and the tag
     drops under the name when they don't ("Equipment trading" at 320px) */
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  font-size: 0.92rem;
  color: var(--muted);
}
.f-cols a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: var(--muted);
  text-decoration: none;
}
.f-cols a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.f-cols .soon,
.f-cols .live {
  font: 600 0.75rem/1 var(--font-text);
  border-radius: 999px;
  padding: 4px 8px;
}
.f-cols .soon {
  background: var(--sunken);
  color: var(--muted);
}
.f-cols .live {
  background: var(--primary-soft);
  color: var(--primary);
}
.f-bot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
  color: var(--muted);
}
.f-legal {
  display: inline-flex;
  gap: 18px;
}
.f-legal a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
  text-underline-offset: 3px;
}
.f-legal a:hover {
  color: var(--ink);
}
@media (max-width: 860px) {
  .f-top {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .f-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .f-cols li,
  .f-cols a {
    min-height: 44px;
  }
  .f-cols a {
    min-width: 44px;
  }
  .f-bot {
    flex-direction: column;
  }
}
/* On a phone the small links and the form's consent box keep a finger-sized
   target: the links grow to 44px, and the consent's label (which ticks the box)
   is 44px tall at least, the box itself unchanged. */
@media (max-width: 860px), (pointer: coarse) {
  .f-legal a {
    display: inline-flex;
    align-items: center;
    min-width: 44px;
    min-height: 44px;
  }
  .check {
    min-height: 44px;
    padding-block: 4px;
    cursor: pointer;
  }
}
/* ===== demo-request form (ADR 0444) ===== */
.cta {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
}
.cta-copy {
  display: grid;
  gap: 14px;
  align-content: start;
}
.cta .cta-copy .mk {
  display: block;
  width: 64px;
}
.cta .eyebrow {
  color: var(--cta-muted);
}
.cta-points {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
  color: var(--cta-ink);
}
.cta-points li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 1rem;
}
.cta-points li::before {
  content: '';
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cta-ink);
  margin-top: 0.55em;
}
.mailline {
  color: var(--cta-muted);
  font-size: 0.95rem;
}
.mailline .mail {
  color: var(--cta-ink);
  font-weight: 600;
  user-select: all;
}
.dform {
  background: var(--surface);
  color: var(--ink);
  border-radius: 20px;
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
  box-shadow: 0 30px 60px -40px rgba(20, 17, 14, 0.6);
}
.field {
  display: grid;
  gap: 6px;
  align-content: start;
  min-width: 0;
}
.field.full {
  grid-column: 1/-1;
}
.field label {
  font: 600 0.88rem/1.3 var(--font-text);
  color: var(--ink);
}
.field .opt {
  font-weight: 400;
  color: var(--muted);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 10px 12px;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.4 var(--font-text);
}
.field select {
  -webkit-appearance: none;
  appearance: none;
  padding-inline-end: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23857c70' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 12px 8px;
  background-position: right 14px center;
  cursor: pointer;
}
#site[dir='rtl'] .field select {
  background-position: left 14px center;
}
/* A phone or email reads left to right, but in Arabic it sits on the field's right,
   in line with everything else on the form. */
#site[dir='rtl'] .field input[dir='ltr'] {
  text-align: right;
}
.field textarea {
  resize: vertical;
  min-height: 84px;
}
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
  border-color: var(--primary);
}
.field [aria-invalid='true'] {
  border-color: var(--danger);
}
.err {
  font-size: 0.82rem;
  color: var(--danger);
}
.err:empty {
  display: none;
}
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font: 400 0.92rem/1.5 var(--font-text) !important;
}
.check input {
  width: 20px;
  height: 20px;
  min-height: 0;
  margin: 2px 0 0;
  flex: none;
  accent-color: var(--primary);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}
.actions .btn {
  min-height: 48px;
}
.actions .btn[disabled] {
  opacity: 0.65;
  cursor: progress;
}
.status {
  font-size: 0.9rem;
  color: var(--muted);
}
.status.bad {
  color: var(--danger);
}
.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.done {
  background: var(--surface);
  color: var(--ink);
  border-radius: 20px;
  padding: 32px;
  display: grid;
  gap: 12px;
  align-content: start;
}
.done .mk {
  width: 56px;
}
.done .mk path {
  fill: none;
  stroke: var(--primary);
  stroke-width: 5.5;
  stroke-linecap: round;
}
.done .mk circle {
  fill: var(--saffron);
}
.done h3 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.done p {
  color: var(--muted);
}
#site[lang='ar'] .field label,
#site[lang='ar'] .check {
  font-size: 1rem !important;
}
@media (max-width: 1060px) {
  .cta {
    grid-template-columns: minmax(0, 1fr);
  }
  .cta .cta-copy .mk {
    display: none;
  }
}
@media (max-width: 620px) {
  .dform {
    grid-template-columns: minmax(0, 1fr);
    padding: 18px;
  }
}
/* the language control is a link between the two pages */
a.icon-btn {
  text-decoration: none;
}
/* the smallest phones: the header's controls stay on the screen */
@media (max-width: 340px) {
  .top .in {
    gap: 8px;
  }
  .top .logo {
    width: 104px;
  }
  .tools {
    gap: 4px;
  }
}
/* ─────────────────────────────────── shared ─────────────────────────────── */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1.5px solid var(--line-strong);
  padding-block: 4px;
  transition: gap 0.2s ease, border-color 0.2s ease;
}
.link-arrow::after {
  content: '→';
}
#site[dir='rtl'] .link-arrow::after {
  content: '←';
}
.link-arrow:hover {
  gap: 13px;
  border-color: var(--saffron);
}
.pg-hero {
  padding-block: clamp(36px, 6vw, 80px) clamp(24px, 3.5vw, 44px);
}
.pg-hero h1 {
  font: 800 clamp(2.6rem, 6.4vw, 5.2rem)/1.02 var(--font-display);
  letter-spacing: -0.035em;
  margin: 14px 0 18px;
  max-width: 18ch;
}
.pg-sub {
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  line-height: 1.65;
  color: var(--muted);
  max-width: 62ch;
  margin: 0;
}
.pg-hero .live {
  margin-inline-start: 8px;
}
/* ─────────────────────────────── questions ──────────────────────────────── */
.faq-sec {
  padding-block: clamp(48px, 6vw, 84px);
}
.faq2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(24px, 4vw, 56px);
  align-items: start;
}
.faq2 .qa {
  padding: 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: none;
}
.faq2 summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-block: 15px;
  list-style: none;
  cursor: pointer;
}
.faq2 summary::-webkit-details-marker {
  display: none;
}
.faq2 summary::after {
  content: '+';
  flex: none;
  font: 500 1.3rem/1 var(--font-mono);
  color: var(--primary);
  transition: transform 0.2s ease;
}
.faq2 details[open] summary::after {
  transform: rotate(45deg);
}
.faq2 h3 {
  margin: 0;
  font: 600 1.02rem/1.35 var(--font-text);
}
.faq2 p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 58ch;
}
@media (max-width: 760px) {
  .faq2 {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* ──────────────────────────────── pricing ───────────────────────────────── */
/* The plan as one panel: what you pay for (each rate once, its count beside
   it) and what is included at no charge, each line with its icon from the
   brand kit; the total in a dark summary beside it that stays in view. Then
   what every plan holds, what is quoted separately, the quote form and the
   questions. */
.pt-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.pt-defs .pt {
  fill: var(--saffron);
  stroke: none;
}
.pt-ic {
  flex: none;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--primary);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pt-top {
  padding-block: clamp(36px, 6vw, 72px) clamp(56px, 7vw, 96px);
}
.pt-head {
  max-width: 760px;
  margin-bottom: clamp(28px, 4vw, 44px);
}
.pt-head h1 {
  margin: 14px 0;
  font: 800 clamp(2.3rem, 4.8vw, 3.8rem)/1.03 var(--font-display);
  letter-spacing: -0.035em;
}
#site[lang='ar'] .pt-head h1 {
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  line-height: 1.3;
}
.pt-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
  font-weight: 600;
}
.pt-facts li::before {
  content: '✓';
  margin-inline-end: 8px;
  color: var(--primary);
  font-weight: 700;
}
.pt-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
}
.pt-card {
  padding: 4px 28px 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}
.pt-card-hd {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 0 16px;
  border-bottom: 1px solid var(--line);
}
.pt-card-hd h2 {
  font: 800 1.35rem/1.2 var(--font-display);
  letter-spacing: -0.02em;
}
.pt-card-hd .bill-toggle {
  margin: 0;
}
.pt-group {
  margin: 0;
  padding: 22px 0 2px;
  font: 600 0.74rem/1.3 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
#site[lang='ar'] .pt-group {
  font: 600 0.9rem/1.3 var(--font-text);
  letter-spacing: 0;
}
.pt-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto auto;
  gap: 6px 18px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.pt-row:last-child {
  border-bottom: 0;
}
.pt-row.pt-inc {
  grid-template-columns: 24px minmax(0, 1fr) auto;
}
.pt-row > .pt-ic {
  align-self: start;
  margin-top: 1px;
}
.pt-what b {
  display: block;
  font: 700 1.05rem/1.3 var(--font-display);
}
.pt-what span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.92rem;
}
.pt-price {
  min-width: 6.5em;
  margin: 0;
  text-align: end;
}
.pt-price b {
  font: 800 1.3rem/1.2 var(--font-display);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.pt-row > .stepper {
  justify-self: end;
}
.pt-free {
  margin: 0;
  text-align: end;
}
.pt-free b {
  color: var(--primary);
  font: 700 1rem/1.3 var(--font-display);
}
.pt-free small {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
}
.pt-quoted b {
  color: var(--muted);
}
.pt-total {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 10px;
  padding: 26px 26px 24px;
  border-radius: 18px;
  background: var(--band);
  color: var(--band-ink);
}
.pt-total p {
  margin: 0;
}
.pt-total-l {
  font: 600 0.74rem/1.3 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--saffron);
}
#site[lang='ar'] .pt-total-l {
  font: 600 0.9rem/1.3 var(--font-text);
  letter-spacing: 0;
}
.pt-total-v {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
}
.pt-total-v b {
  font: 800 clamp(2.4rem, 4vw, 3rem)/1 var(--font-display);
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}
.pt-total-v span {
  color: var(--band-muted);
}
.pt-total-y {
  display: grid;
  gap: 2px;
}
.pt-total-y b {
  font: 800 1.45rem/1.2 var(--font-display);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.pt-total-y span {
  color: var(--saffron);
  font-size: 0.9rem;
  font-weight: 600;
}
.pt-total .pt-total-plan {
  margin: 4px 0 8px;
  padding-top: 12px;
  border-top: 1px solid var(--band-line);
  font-weight: 600;
}
.pt-total .btn {
  justify-content: center;
}
.pt-demo {
  justify-self: center;
  color: var(--band-ink);
  font-size: 0.92rem;
  font-weight: 600;
  text-underline-offset: 4px;
}
.pt-nojs {
  margin: 12px 0 0;
  color: var(--muted);
}
.pt-bar {
  display: none;
}
@media (max-width: 960px) {
  .pt-bar {
    position: fixed;
    inset: auto 0 0;
    z-index: 25;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px max(16px, env(safe-area-inset-right, 0px))
      calc(10px + env(safe-area-inset-bottom, 0px))
      max(16px, env(safe-area-inset-left, 0px));
    background: var(--band);
    color: var(--band-ink);
    transform: translateY(110%);
    transition: transform 0.25s ease;
  }
  .pt-bar.is-on {
    transform: none;
  }
  .pt-bar p {
    margin: 0;
  }
  .pt-bar b {
    font: 800 1.35rem/1 var(--font-display);
    font-variant-numeric: tabular-nums;
  }
  .pt-bar span {
    color: var(--band-muted);
    font-size: 0.9rem;
  }
  .pt-bar .btn {
    min-height: 40px;
    padding: 0 16px;
    font-size: 0.9rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pt-bar {
    transition: none;
  }
}
@media (max-width: 960px) {
  .pt-body {
    grid-template-columns: minmax(0, 1fr);
  }
  .pt-total {
    position: static;
  }
}
@media (max-width: 620px) {
  .pt-card {
    padding: 2px 18px 6px;
  }
  .pt-row {
    grid-template-columns: 24px minmax(0, 1fr) auto;
  }
  .pt-row > .pt-what {
    grid-column: 2 / -1;
  }
  .pt-row > .pt-price,
  .pt-row > .pt-free {
    grid-column: 2;
    text-align: start;
  }
  .pt-row > .pt-free {
    grid-column: 2 / -1;
  }
}
.stepper button:disabled {
  opacity: 0.35;
  cursor: default;
}
.stepper button:disabled:hover {
  background: none;
}

/* The quote: a ruled section under the heavy ink rule, as the home page's sections */
.qcard {
  min-width: 0;
  padding-top: clamp(20px, 2.6vw, 30px);
  border-top: 3px solid var(--ink);
  scroll-margin-top: 86px;
}
.qc-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.qc-head h2 {
  margin: 0;
  font: 800 1.45rem/1.15 var(--font-display);
  letter-spacing: -0.02em;
}
.qc-field {
  min-width: 0;
  margin: 0 0 24px;
  padding: 0;
  border: 0;
}
.qc-field > legend {
  display: block;
  width: 100%;
  margin: 0 0 10px;
  padding: 0;
  font: 700 1.02rem/1.3 var(--font-display);
}
.qc-field > legend:focus {
  outline: none;
}
.qc-field > legend i {
  font: 400 0.88rem/1 var(--font-text);
  font-style: normal;
  color: var(--muted);
}
.q-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.q-chip {
  position: relative;
}
.q-chip input,
.q-seg input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.q-chip > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 15px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.q-chip b {
  font-weight: 500;
}
.q-chip > span:hover {
  border-color: var(--line-strong);
}
.q-chip input:checked + span {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary);
}
.q-chip input:focus-visible + span,
.q-seg input:focus-visible + span {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.stepper {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  overflow: hidden;
}
.stepper button {
  width: 42px;
  height: 42px;
  border: 0;
  background: none;
  color: var(--ink);
  font: 500 1.25rem/1 var(--font-mono);
  cursor: pointer;
}
.stepper button:hover {
  background: var(--sunken);
}
.stepper input {
  width: 54px;
  height: 42px;
  border: 0;
  background: none;
  color: var(--ink);
  text-align: center;
  font: 600 1.05rem/1 var(--font-mono);
  -moz-appearance: textfield;
  appearance: textfield;
}
.stepper input::-webkit-inner-spin-button,
.stepper input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.q-seg {
  display: inline-flex;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  overflow: hidden;
}
.q-seg label {
  position: relative;
  display: flex;
}
.q-seg span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 62px;
  height: 42px;
  padding: 0 10px;
  border-inline-start: 1px solid var(--line);
  font: 600 0.9rem/1 var(--font-mono);
  white-space: nowrap;
  cursor: pointer;
}
.q-seg label:first-child span {
  border-inline-start: 0;
}
.q-seg span:hover {
  background: var(--sunken);
}
.q-seg input:checked + span {
  background: var(--primary);
  color: var(--primary-ink);
}
.qc-field > .err {
  display: block;
  margin-top: 8px;
}
.qc-recap {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
  padding: 12px 0;
  border-block: 1px solid var(--line);
}
.qc-recap dl {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 0;
}
.qc-recap dl div {
  display: flex;
  gap: 6px;
  font-size: 0.88rem;
  line-height: 1.4;
}
.qc-recap dt {
  color: var(--muted);
}
.qc-recap dd {
  margin: 0;
  font-weight: 600;
}
.q-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
}
.q-note {
  grid-column: 1 / -1;
}
.q-note label i {
  font-style: normal;
  color: var(--muted);
  font-weight: 400;
}
.q-send {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 18px;
}
.q-send .status {
  margin: 0;
}
.q-done h2 {
  margin: 0 0 6px;
  font: 700 1.4rem/1.2 var(--font-display);
}
.q-done p {
  margin: 0 0 18px;
  color: var(--muted);
}
.q-done-mark {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  fill: none;
  stroke: var(--primary);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.q-done-mark circle {
  fill: var(--primary-soft);
  stroke: none;
}
.q-done .qc-recap {
  margin: 0;
}

/* Everything in every plan */
.incl {
  border-top: 1px solid var(--line);
}
.incl-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.incl-grid a {
  display: block;
  height: 100%;
  padding: 16px 0 18px;
  border-top: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease;
}
.incl-grid .pt-ic {
  display: block;
  margin-bottom: 10px;
}
.incl-grid a:hover {
  border-top-color: var(--primary);
}
.incl-grid b {
  display: block;
  margin-bottom: 4px;
  font: 700 1rem/1.25 var(--font-display);
}
.incl-grid span {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--muted);
}
.incl-also {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 14px 0 0;
  padding: 18px 0 0;
  list-style: none;
  border-top: 3px solid var(--ink);
}
.incl-also li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-weight: 600;
  font-size: 0.94rem;
}
.incl-also li::before {
  content: '✓';
  color: var(--primary);
  font-weight: 700;
}
@media (max-width: 1100px) {
  .incl-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .incl-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 620px) {
  .q-fields {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 480px) {
  .incl-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .incl-grid a {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 12px;
  }
  .incl-grid a > .pt-ic {
    grid-row: span 2;
    margin: 0;
  }
  .q-seg label {
    flex: 1;
  }
  .q-seg span {
    width: 100%;
    min-width: 0;
  }
}
/* ───────────────────────────── the features page ────────────────────────── */
.atlas-tools {
  margin-top: 24px;
}
.atlas-search {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 520px;
  padding-inline: 16px;
  border: 1.5px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface);
  color: var(--muted);
}
.atlas-search:focus-within {
  border-color: var(--primary);
}
.atlas-search input {
  flex: 1;
  min-width: 0;
  min-height: 52px;
  border: 0;
  outline: 0;
  background: none;
  color: var(--ink);
  font: 500 1.05rem/1 var(--font-text);
}
.atlas-jump {
  position: sticky;
  top: 68px;
  z-index: 5;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-block: 1px solid var(--line);
}
.atlas-jump-in {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  padding-block: 8px;
}
.atlas-jump-in::-webkit-scrollbar {
  display: none;
}
.atlas-jump a {
  flex: none;
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.atlas-jump a:hover,
.atlas-jump a.now {
  background: var(--primary-soft);
  color: var(--primary);
}
.at-group {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr);
  gap: 18px clamp(20px, 4vw, 64px);
  padding-block: clamp(32px, 4.5vw, 60px);
  border-top: 1px solid var(--line);
  scroll-margin-top: 124px;
}
.at-group:first-child {
  border-top: 0;
}
.at-hd {
  position: sticky;
  top: 136px;
  align-self: start;
}
.at-hd h2 {
  margin: 0;
  font: 700 clamp(1.5rem, 2.8vw, 2.3rem)/1.12 var(--font-display);
  letter-spacing: -0.02em;
}
.at-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px clamp(20px, 3vw, 36px);
}
.at-f b {
  display: block;
  margin-bottom: 3px;
  font-weight: 600;
  line-height: 1.3;
}
.at-f span {
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.95rem;
}
.atlas-none {
  margin: 20px 0 60px;
  color: var(--muted);
}
@media (max-width: 820px) {
  .at-group {
    grid-template-columns: minmax(0, 1fr);
  }
  .at-hd {
    position: static;
  }
}
@media (max-width: 560px) {
  .at-list {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* ───────────────────────────── roasteries ───────────────────────────────── */
/* The cup calculator: the sliders on the page's paper, the answer in a plain
   frame under the heavy ink rule, as the pricing page's calculator. */
.cup {
  padding-block: clamp(40px, 6vw, 80px);
}
.cup-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(26px, 5vw, 72px);
  align-items: center;
}
.cup h2 {
  margin: 0 0 8px;
  font: 700 clamp(1.8rem, 3.6vw, 2.8rem)/1.1 var(--font-display);
  letter-spacing: -0.025em;
}
.cup-note {
  margin: 0 0 18px;
  color: var(--muted);
}
.cup-form {
  display: grid;
  gap: 12px;
}
.cup-f {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 12px;
  align-items: baseline;
  font-weight: 500;
}
.cup-f output {
  font: 600 1rem/1 var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.cup-f input {
  grid-column: 1 / -1;
  width: 100%;
  height: 26px;
  margin: 0;
  accent-color: var(--primary);
  cursor: pointer;
}
.cup-out {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(18px, 3vw, 36px);
  align-items: center;
  padding: clamp(18px, 2.6vw, 30px);
  border: 1px solid var(--line);
  border-top: 3px solid var(--ink);
  background: var(--surface);
}
.cup-glass {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: clamp(104px, 13vw, 158px);
  height: clamp(150px, 19vw, 226px);
  background: var(--sunken);
  clip-path: polygon(0 0, 100% 0, 85% 100%, 15% 100%);
}
.cl {
  display: block;
  width: 100%;
  transition: height 0.2s ease;
}
.cl-left {
  height: var(--left);
  background: var(--primary);
}
.cl-vat {
  height: var(--vat);
  background: #8ba69a;
}
.cl-pack {
  height: var(--pack);
  background: #c5b89f;
}
.cl-milk {
  height: var(--milk);
  background: #e8a922;
}
.cl-coffee {
  height: var(--coffee);
  background: #6b4226;
}
.cup-big {
  margin: 0;
  font: 800 clamp(2.8rem, 6vw, 4.6rem)/1 var(--font-display);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--primary);
}
.cup.is-under .cup-big {
  color: var(--danger);
}
.cup-big-l {
  margin: 6px 0 14px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
}
.cup-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 16px;
  font-size: 0.92rem;
}
.cup-legend li {
  display: flex;
  align-items: center;
  gap: 7px;
}
.cup-legend i {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 3px;
}
.cup-legend b {
  margin-inline-start: auto;
  font: 500 0.92rem/1 var(--font-mono);
}
.cup-say {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  line-height: 1.5;
}
.cup-say b {
  font-family: var(--font-mono);
  font-weight: 600;
}
.cup-foot {
  margin: 8px 0 0;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.45;
}
.trail {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.trail li {
  position: relative;
  padding-block-start: 22px;
  padding-inline-end: 16px;
  border-top: 2px solid var(--primary);
}
.trail li::before {
  content: '';
  position: absolute;
  top: -7px;
  inset-inline-start: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--saffron);
}
.trail b {
  display: block;
  margin-bottom: 6px;
  font: 700 clamp(1.05rem, 1.6vw, 1.32rem)/1.15 var(--font-display);
  font-variant-numeric: tabular-nums;
}
.trail li > span:last-child {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}
@media (max-width: 1060px) {
  .cup-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .trail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 0;
  }
}
@media (max-width: 560px) {
  .cup-out {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
  }
  .cup-read {
    width: 100%;
  }
  .trail {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* ──────────────────────────────── the blog ──────────────────────────────── */
.blog-list {
  padding-block: 0 clamp(56px, 7vw, 100px);
}
.blog-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}
.blog-topics button {
  min-height: 44px;
  padding: 0 15px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: 500 0.9rem/1 var(--font-text);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.blog-topics button:hover {
  border-color: var(--line-strong);
}
.blog-topics button[aria-pressed='true'] {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--primary-ink);
}
/* A post in a list is a column of type under a hairline rule, not a boxed card.
   Pointing at it draws the rule in cardamom and colours the title; the topic is
   led by the brand's saffron point. */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 clamp(24px, 3.2vw, 48px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  padding: 20px 0 32px;
  border-top: 1px solid var(--line);
  color: var(--ink);
}
.post-card::before {
  content: '';
  position: absolute;
  inset: -1px 0 auto;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s ease;
}
#site[lang='ar'] .post-card::before {
  transform-origin: right center;
}
.post-card:hover::before,
.post-card:focus-within::before {
  transform: scaleX(1);
}
.post-card .post-title {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}
.post-card:hover .post-title {
  color: var(--primary);
}
.post-card .post-title::after {
  content: '';
  position: absolute;
  inset: 0;
}
.post-card .post-topic {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.post-card .post-topic::before {
  content: '';
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--saffron);
}
.post-card .post-title:focus-visible {
  outline: none;
}
.post-card:has(.post-title:focus-visible) {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}
.post-topic,
.post-kicker {
  color: var(--saffron-ink);
  font: 600 0.76rem/1.2 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
#site[lang='ar'] .post-topic,
#site[lang='ar'] .post-kicker {
  font: 600 0.88rem/1.3 var(--font-text);
  letter-spacing: 0;
}
.post-title {
  font: 700 1.2rem/1.28 var(--font-display);
  letter-spacing: -0.01em;
}
.post-lede {
  flex: 1;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}
.post-foot,
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  color: var(--muted);
  font: 500 0.8rem/1.3 var(--font-mono);
}
#site[lang='ar'] .post-foot,
#site[lang='ar'] .post-meta {
  font-family: var(--font-text);
}
.post-foot {
  padding-top: 4px;
}

/* One post */
.post-hd {
  padding-block: clamp(30px, 5vw, 64px) clamp(24px, 3vw, 40px);
}
.post-hd .in,
.post-body {
  max-width: 760px;
}
.post-back {
  display: inline-block;
  padding-block: 10px 2px;
  color: var(--muted);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
}
.post-hd .post-back {
  min-width: 44px;
  padding-block: 13px 5px;
}
.post-kicker {
  margin: 28px 0 12px;
}
.post-hd h1 {
  margin: 0 0 16px;
  font: 700 clamp(2rem, 4.4vw, 3.1rem)/1.1 var(--font-display);
  letter-spacing: -0.025em;
}
#site[lang='ar'] .post-hd h1 {
  line-height: 1.3;
}
.post-standfirst {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.6vw, 1.24rem);
  line-height: 1.6;
}
.post-meta {
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
}
.post-toc {
  max-width: 760px;
  margin: 0 auto 30px;
  padding: 16px max(20px, env(safe-area-inset-left, 0px));
}
.post-toc > p {
  margin: 0 0 8px;
  color: var(--muted);
  font: 600 0.76rem/1.2 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
#site[lang='ar'] .post-toc > p {
  font: 600 0.9rem/1.3 var(--font-text);
  letter-spacing: 0;
}
.post-toc ol {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.post-toc a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 0;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.4;
  text-decoration: none;
}
.post-toc a:hover {
  color: var(--ink);
}
@media (max-width: 1179px) {
  .post-toc {
    border-block: 1px solid var(--line);
  }
}
@media (min-width: 1180px) {
  .post-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 760px) minmax(0, 1fr);
    column-gap: 36px;
    align-items: start;
  }
  .post-toc {
    grid-column: 1;
    grid-row: 1;
    justify-self: end;
    position: sticky;
    top: 96px;
    width: 230px;
    margin: 0;
    padding: 0;
  }
  .post-toc ol {
    border-inline-start: 1px solid var(--line);
  }
  .post-toc a {
    padding-inline: 14px 0;
  }
  .post-body {
    grid-column: 2;
    grid-row: 1;
  }
}
.post-body {
  margin-inline: auto;
  padding-inline: max(20px, env(safe-area-inset-left, 0px));
  font-size: 1.1rem;
  line-height: 1.72;
}
.post-body p {
  margin: 0 0 1.05em;
}
.post-body h2 {
  margin: 1.8em 0 0.6em;
  font: 700 clamp(1.3rem, 2.4vw, 1.65rem)/1.25 var(--font-display);
  scroll-margin-top: 90px;
}
.post-body h3 {
  margin: 1.4em 0 0.4em;
  font: 700 1.12rem/1.3 var(--font-display);
}
.post-body ul,
.post-body ol {
  margin: 0 0 1.05em;
  padding-inline-start: 1.3em;
}
.post-body li {
  margin-bottom: 0.45em;
}
.post-body a {
  color: var(--primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.post-body a:hover {
  text-decoration-thickness: 2px;
}
.post-aside {
  margin-top: 1.8em !important;
  padding-top: 1em;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.96rem;
}
.post-cta {
  margin-top: clamp(36px, 5vw, 64px);
}
.post-cta .in {
  max-width: 760px;
}
/* The closing call to action: a ruled block under the heavy ink rule, on the
   page's paper. */
.post-cta-box {
  padding-top: clamp(20px, 3vw, 30px);
  border-top: 3px solid var(--ink);
}
.post-cta-box h2 {
  margin: 0 0 10px;
  font: 800 clamp(1.4rem, 2.8vw, 1.9rem)/1.2 var(--font-display);
  letter-spacing: -0.02em;
}
.post-cta-box p {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.6;
}
.post-cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
}
article.post .post-cta .link-arrow {
  min-height: 44px;
}
.post-end {
  margin-top: clamp(36px, 5vw, 64px);
  padding-block: clamp(30px, 5vw, 56px);
  border-top: 1px solid var(--line);
}
.post-end-hd {
  margin: 0 0 18px;
  font: 700 clamp(1.3rem, 2.4vw, 1.6rem)/1.2 var(--font-display);
}
@media (max-width: 960px) {
  .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 620px) {
  .post-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* ───────────────────────────── 404, the clock ───────────────────────────── */
.nf {
  padding-block: clamp(70px, 14vw, 170px);
  text-align: center;
}
.nf .pg-sub {
  margin: 0 auto 24px;
}
.nf-num {
  margin: 0;
  font: 800 clamp(5rem, 22vw, 13rem)/0.95 var(--font-display);
  letter-spacing: -0.05em;
  color: var(--primary);
}
.nf-ctx {
  margin: 8px 0 12px;
  font: 600 clamp(1.3rem, 3vw, 2rem)/1.2 var(--font-display);
  color: var(--saffron-ink);
}
.clock {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.clock b {
  font-variant-numeric: tabular-nums;
}
.clock-dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--saffron);
}
/* ───────────────────────────── Soon: a feature on its way ───────────────── */
.soon {
  display: inline-block;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--saffron-soft);
  color: var(--saffron-ink);
  font: 600 0.72rem/1 var(--font-text);
  font-style: normal;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  vertical-align: middle;
}
#site[dir='rtl'] .soon {
  letter-spacing: 0;
}
/* ─────────────────────── the features page: the filter ──────────────────── */
.atlas-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
}
.atlas-search {
  flex: 1 1 320px;
}
.atlas-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.atlas-filter button {
  padding: 9px 14px;
  background: none;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink);
  font: 500 0.9rem/1.2 var(--font-text);
  cursor: pointer;
}
.atlas-filter button[aria-pressed='true'] {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-ink);
}
.at-hd p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
}
.at-f b .soon {
  margin-inline-start: 6px;
}
.at-f b span {
  color: inherit;
  font-size: inherit;
}
.at-f.is-soon b span {
  color: var(--muted);
}
.at-f[hidden],
.at-group[hidden] {
  display: none;
}
/* ───────────────────────────── the blog, for guides ─────────────────────── */
/* build.ts sets each table in a frame that scrolls sideways when a phone is
   too narrow for it, so the page itself never does. */
.post-table {
  margin-block: 18px 24px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
}
.post-table:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}
.post-body table {
  width: 100%;
  margin-block: 18px 24px;
  border-collapse: collapse;
  font-size: 0.96rem;
}
.post-body .post-table table {
  margin: 0;
}
.post-body th,
.post-body td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  line-height: 1.45;
  text-align: start;
  vertical-align: top;
}
.post-body th {
  border-bottom: 2px solid var(--ink);
  font-weight: 600;
}
.post-body td.num {
  font-variant-numeric: tabular-nums;
  text-align: end;
  white-space: nowrap;
}
.post-body td:first-child {
  min-width: 5.5em;
}
.post-faq {
  margin-top: 12px;
}
/* In a post's narrow column the questions read one under another. */
.post-body .post-faq {
  grid-template-columns: minmax(0, 1fr);
}
.link-arrow,
.atlas-jump a,
.atlas-filter button {
  min-height: 40px;
}
.atlas-jump a {
  display: inline-flex;
  align-items: center;
}
@media (max-width: 420px) {
  .post-body th,
  .post-body td {
    padding: 8px 6px;
    font-size: 0.88rem;
  }
  /* a worked sum in a post's figures column may break at its spaces */
  .post-table td.num {
    white-space: normal;
  }
  .post-body td:first-child {
    min-width: 4.5em;
  }
}
@media (max-width: 340px) {
  body {
    overflow-x: clip;
  }
}

/* The quote form's consent line matches the demo form's. */
.f-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font: 400 0.92rem/1.5 var(--font-text);
  cursor: pointer;
}
#site[lang='ar'] .f-check {
  font-family: var(--font-ar);
}
.f-check input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  flex: none;
  accent-color: var(--primary);
}

/* A clock time in Arabic reads from the right: ص or م first, then the figure. */
#site[dir='rtl'] .tm {
  direction: rtl;
  unicode-bidi: isolate;
}

/* Integration partners, by their own logos: the wordmark follows the ink, a brand's
   coloured mark keeps its colours. Heights are set per logo so they read as one
   size, since each is drawn at its own proportions. */
.int-logo {
  display: block;
  width: auto;
  flex: none;
}
.q-chip-logo {
  display: flex;
  align-items: center;
}
.q-chip-logo .int-foodics {
  height: 12px;
  margin-block: 4px;
}
.q-chip-logo .int-sapaad {
  height: 20px;
}
.q-chip-logo .int-shopify {
  height: 19px;
}
/* ───────────────────────────── the free tools ───────────────────────────── */
/* A calculator beside its answer, then the method, the questions and more tools. */
.tool-hero {
  padding-bottom: clamp(20px, 3vw, 32px);
}
.tool-hero .post-back {
  margin-bottom: 18px;
}
.tool-hero h1 {
  max-width: 20ch;
}
.tool {
  padding-block: 0 clamp(40px, 5vw, 64px);
}
.tool-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(18px, 3vw, 32px);
  align-items: start;
}
.tool-grid-wide {
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.8fr);
}
.tool-form {
  display: grid;
  gap: 16px;
  min-width: 0;
  padding: clamp(18px, 2.6vw, 28px);
  border: 1px solid var(--line);
  border-top: 3px solid var(--ink);
  background: var(--surface);
}
.tool-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 14px;
}
.tool-hint {
  font-size: 0.84rem;
  color: var(--muted);
}
.tool-privacy {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 0.84rem;
  color: var(--muted);
}
.tool-privacy::before {
  content: '';
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}
.tool-legend {
  margin: 0;
  font: 700 1rem/1.3 var(--font-display);
}
.tool-seg-f {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.tool-seg-f legend {
  margin-bottom: 8px;
  padding: 0;
  font: 600 0.88rem/1.3 var(--font-text);
}
.tool-seg {
  display: flex;
  width: 100%;
}
.tool-seg label {
  flex: 1;
}
.tool-seg span {
  width: 100%;
  font-family: var(--font-text);
}
.tool-out {
  position: sticky;
  top: 90px;
  min-width: 0;
  padding: clamp(20px, 2.8vw, 30px);
  background: var(--band);
  color: var(--band-ink);
}
.tool-out-l {
  margin: 0;
  color: var(--band-muted);
  font: 600 0.78rem/1.2 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
#site[lang='ar'] .tool-out-l {
  font: 600 0.92rem/1.3 var(--font-text);
  letter-spacing: 0;
}
.tool-big {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 6px 0 14px;
}
.tool-big b {
  font: 800 clamp(2.4rem, 5vw, 3.4rem)/1 var(--font-display);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.tool-cur {
  color: var(--band-muted);
  font: 600 1rem/1 var(--font-text);
}
.tool-sub {
  margin: 14px 0 0;
  color: var(--band-muted);
  font-size: 0.86rem;
  font-weight: 600;
}
.tool-flag,
.tool-ok {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.92rem;
  line-height: 1.45;
}
.tool-flag {
  background: var(--cta-bg);
  color: var(--cta-ink);
}
.tool-ok {
  background: var(--band-card);
}
.tool-rows {
  display: grid;
  margin: 0;
}
.tool-rows div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  border-top: 1px solid var(--band-line);
  font-size: 0.94rem;
}
.tool-rows dt {
  color: var(--band-muted);
}
.tool-rows dd {
  margin: 0;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: end;
}
.tool-row-key dd {
  color: var(--cta-bg);
  font-size: 1.05rem;
}
.tool-note {
  margin: 14px 0 0;
  color: var(--band-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}
/* The recipe lines. */
.fc-head,
.fc-row {
  display: grid;
  grid-template-columns:
    minmax(0, 1.4fr) minmax(0, 0.7fr) minmax(0, 0.8fr) minmax(
      0,
      1.2fr
    ) 52px 32px;
  gap: 8px;
  align-items: center;
}
.fc-head {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}
.fc-rows {
  display: grid;
  gap: 8px;
}
.fc-row input,
.fc-row select {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  font: 400 0.95rem/1.3 var(--font-text);
}
.fc-row input:focus-visible,
.fc-row select:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}
.fc-price {
  display: grid;
  gap: 2px;
}
.fc-price small {
  color: var(--muted);
  font-size: 0.74rem;
}
.fc-row output {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: end;
}
.fc-del {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--muted);
  font-size: 1.2rem;
  cursor: pointer;
}
.fc-del:hover {
  background: var(--sunken);
  color: var(--ink);
}
.tool-add {
  justify-self: start;
  min-height: 40px;
  padding: 0 14px;
  border: 1.5px dashed var(--line-strong);
  border-radius: 10px;
  background: none;
  color: var(--ink);
  font: 600 0.9rem/1 var(--font-text);
  cursor: pointer;
}
.tool-add:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.tool-doc {
  padding-block: clamp(20px, 3vw, 36px) 0;
  border-top: 1px solid var(--line);
}
.tool-hub {
  padding-block: 0 clamp(48px, 6vw, 80px);
}
.tool-more {
  padding-block: clamp(36px, 5vw, 56px);
}
@media (max-width: 960px) {
  .tool-grid,
  .tool-grid-wide {
    grid-template-columns: minmax(0, 1fr);
  }
  .tool-out {
    position: static;
  }
}
@media (max-width: 420px) {
  .tool-two {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* The settlement and staff-cost tools: a form in numbered groups, and a bar that
   shows what the total is made of, its colours keyed to the rows below it. */
.tool-group {
  display: grid;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.tool-group:first-child {
  padding-top: 0;
  border-top: 0;
}
.tool-group > h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font: 700 1.02rem/1.3 var(--font-display);
}
.tool-group > h2 i {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-ink);
  font: 700 0.78rem/1 var(--font-mono);
  font-style: normal;
}
.tool-three {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 14px;
}
.st-bar {
  display: flex;
  gap: 2px;
  height: 14px;
  margin: 4px 0 12px;
  border-radius: 999px;
  background: var(--band-card);
  overflow: hidden;
}
.st-seg {
  min-width: 4px;
}
.st-g,
.sc-w {
  background: var(--saffron);
}
.st-l,
.sc-g {
  background: var(--band-ink);
}
.st-s,
.sc-y {
  background: var(--band-muted);
}
.st-n {
  background: color-mix(in srgb, var(--saffron) 50%, var(--band-ink));
}
.st-x {
  background: color-mix(in srgb, var(--band-muted) 45%, var(--band));
}
.st-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-inline-end: 7px;
  border-radius: 50%;
  vertical-align: 1px;
}
.tool-rows .st-total dt,
.tool-rows .st-total dd {
  color: var(--band-ink);
  font-weight: 700;
}
.tool-rows .st-minus dd {
  color: var(--band-muted);
}
.tool-due {
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid var(--band-line);
  font-size: 0.9rem;
}
.tool-due b {
  color: var(--cta-bg);
}
@media (max-width: 620px) {
  .tool-three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Café break-even (tool-breakeven.js): the fixed-cost lines, where one ticket
   goes, the profit chart and the levers. Colours come from the tokens only. */
.be-hint {
  margin-top: -8px;
}
.be-head,
.be-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 9.5rem) 44px;
  gap: 8px;
  align-items: center;
}
.be-head {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}
.be-rows {
  display: grid;
  gap: 8px;
}
.be-row input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  font: 400 0.95rem/1.3 var(--font-text);
}
.be-row input[dir='ltr'] {
  font-variant-numeric: tabular-nums;
}
#site[dir='rtl'] .be-row input[dir='ltr'] {
  text-align: right;
}
.be-row input:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
  border-color: var(--primary);
}
.be-del {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--muted);
  font-size: 1.25rem;
  cursor: pointer;
}
.be-del:hover {
  background: var(--sunken);
  color: var(--ink);
}
.be-del:focus-visible,
.be-add:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}
.be-add {
  min-height: 44px;
}
.be-total {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-weight: 600;
}
.be-total b {
  font-variant-numeric: tabular-nums;
}

/* Where one ticket goes: a bar, and a swatch on each row that explains it. */
.be-tbar {
  display: flex;
  height: 10px;
  margin: 10px 0 6px;
  overflow: hidden;
  border-radius: 5px;
  background: var(--band-card);
}
.be-tbar i {
  flex: none;
  inline-size: var(--w, 0%);
  background: var(--be-c);
}
.be-c-vat {
  --be-c: color-mix(in srgb, var(--band-muted) 40%, transparent);
}
.be-c-food {
  --be-c: var(--band-ink);
}
.be-c-card {
  --be-c: var(--r1);
}
.be-c-app {
  --be-c: var(--r2);
}
.be-c-left {
  --be-c: var(--cta-bg);
}
.be-ticket [class*='be-c-'] dt {
  display: flex;
  align-items: center;
  gap: 8px;
}
.be-ticket [class*='be-c-'] dt::before {
  content: '';
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--be-c);
}

/* The chart and the levers, under the calculator. */
.be-more {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 32px);
  align-items: start;
  margin-top: clamp(18px, 3vw, 32px);
}
.be-card {
  min-width: 0;
  margin: 0;
  padding: clamp(18px, 2.6vw, 28px);
  border: 1px solid var(--line);
  border-top: 3px solid var(--ink);
  background: var(--surface);
}
.be-h {
  margin: 0 0 6px;
  font: 700 1.08rem/1.3 var(--font-display);
  letter-spacing: -0.01em;
}
.be-axis {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}
.be-axis-x {
  text-align: center;
}
.be-plot {
  margin-top: 4px;
}
.be-plot svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  direction: ltr;
}
.be-grid {
  stroke: var(--line);
  stroke-width: 1;
}
.be-zero {
  stroke: var(--line-strong);
  stroke-width: 1.5;
}
.be-tick {
  fill: var(--muted);
  font: 500 12px/1 var(--font-text);
  font-variant-numeric: tabular-nums;
  text-anchor: end;
}
.be-xt {
  text-anchor: middle;
}
.be-area-loss {
  fill: var(--danger);
  opacity: 0.13;
}
.be-area-gain {
  fill: var(--primary);
  opacity: 0.15;
}
.be-ln-loss,
.be-ln-gain {
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
}
.be-ln-loss {
  stroke: var(--danger);
}
.be-ln-gain {
  stroke: var(--primary);
}
.be-e {
  stroke: var(--ink);
  stroke-width: 1;
  stroke-dasharray: 4 4;
  opacity: 0.5;
}
.be-dot {
  fill: var(--surface);
  stroke-width: 2.5;
}
.be-dot-gain {
  stroke: var(--primary);
}
.be-dot-loss {
  stroke: var(--danger);
}
.be-dot-be {
  fill: var(--ink);
  stroke: var(--surface);
}
.be-lab {
  fill: var(--ink);
  font: 600 12.5px/1 var(--font-text);
  paint-order: stroke;
  stroke: var(--surface);
  stroke-width: 4px;
  stroke-linejoin: round;
}
.be-lab.a-start {
  text-anchor: start;
}
.be-lab.a-mid {
  text-anchor: middle;
}
.be-lab.a-end {
  text-anchor: end;
}
/* The axes run left to right in both languages; an Arabic label reads right to
   left, so its anchor swaps to keep it on the same side of its point. */
#site[dir='rtl'] .be-lab {
  direction: rtl;
}
#site[dir='rtl'] .be-lab.a-start {
  text-anchor: end;
}
#site[dir='rtl'] .be-lab.a-end {
  text-anchor: start;
}
.be-cap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}
.be-key {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-weight: 600;
}
.be-sw {
  width: 14px;
  height: 4px;
  border-radius: 2px;
}
.be-sw-loss {
  background: var(--danger);
}
.be-sw-gain {
  background: var(--primary);
}
.be-lede,
.be-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}
.be-note {
  margin-top: 12px;
  font-size: 0.82rem;
}
.be-lv {
  width: 100%;
  margin-top: 12px;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.be-lv th,
.be-lv td {
  padding: 10px 6px;
  border-bottom: 1px solid var(--line);
  text-align: start;
  vertical-align: top;
}
.be-lv thead th {
  padding-top: 0;
  border-bottom: 2px solid var(--ink);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}
.be-lv tbody th {
  font-weight: 600;
}
.be-lv td {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.be-lv td:last-child,
.be-lv thead th:last-child {
  text-align: end;
}
.be-bar {
  display: block;
  height: 6px;
  margin-top: 6px;
  border-radius: 3px;
  background: var(--sunken);
}
.be-bar::before {
  content: '';
  display: block;
  inline-size: var(--w, 0%);
  height: 100%;
  border-radius: 3px;
  background: var(--primary);
}
.be-bar.is-down::before {
  background: var(--danger);
}
/* Thirteen rows: a little tighter than the other tools, so the panel fits beside
   the form on a laptop screen while it sticks. */
.be-out .tool-rows div {
  padding-block: 7px;
}
@media (max-width: 960px) {
  .be-more {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 420px) {
  .be-head,
  .be-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 6.5rem) 44px;
    gap: 6px;
  }
  .be-lv th,
  .be-lv td {
    padding-inline: 4px;
    font-size: 0.86rem;
  }
}

/* The coffee blend calculator: the origins table, the two bags, the per-bag
   table on the band and the stacked bar of a shelf price. Tokens only, so light
   and dark both follow the theme; the bars mirror in Arabic. */
.bl-head,
.bl-row {
  display: grid;
  grid-template-columns:
    minmax(0, 1.3fr) minmax(0, 0.7fr) minmax(0, 1fr) minmax(0, 0.8fr)
    minmax(0, 0.9fr) 36px;
  gap: 8px;
  align-items: center;
}
.bl-head {
  align-items: end;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.25;
}
.bl-head span:nth-child(5) {
  text-align: end;
}
.bl-rows {
  display: grid;
  gap: 8px;
}
.bl-c {
  position: relative;
  display: grid;
  gap: 4px;
  min-width: 0;
}
/* The column heads say what each box is; on a phone they go and each box
   carries its own caption instead. */
.bl-cap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.bl-row input {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  font: 400 0.95rem/1.3 var(--font-text);
}
#site[dir='rtl'] .bl-row input[dir='ltr'] {
  text-align: right;
}
.bl-row input:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}
.bl-c-out output {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: end;
}
.bl-del {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--muted);
  font-size: 1.2rem;
  cursor: pointer;
}
.bl-del:hover {
  background: var(--sunken);
  color: var(--ink);
}
.bl-del:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}
.bl-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
}
.bl-total {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.bl-total b {
  margin-inline-start: 4px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.bl-total.is-off b {
  color: var(--danger);
}
.bl-flag {
  margin: 0;
}
.bl-bag {
  display: grid;
  gap: 12px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.bl-bag legend {
  margin-bottom: 10px;
  padding: 0;
  font: 700 0.95rem/1.3 var(--font-display);
}

/* The per-bag table, on the band. */
.bl-table {
  width: 100%;
  margin: 2px 0 0;
  border-collapse: collapse;
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
}
.bl-table caption {
  padding-bottom: 6px;
  color: var(--band-muted);
  font-size: 0.82rem;
  text-align: start;
}
.bl-table th,
.bl-table td {
  padding: 7px 0;
  border-top: 1px solid var(--band-line);
  line-height: 1.35;
  vertical-align: baseline;
}
.bl-table thead th,
.bl-table thead td {
  padding-top: 0;
  border-top: 0;
}
.bl-table thead th {
  color: var(--band-ink);
  font-size: 0.86rem;
  font-weight: 700;
  text-align: end;
  white-space: nowrap;
}
.bl-table tbody th {
  padding-inline-end: 10px;
  color: var(--band-muted);
  font-weight: 400;
  text-align: start;
}
.bl-table td {
  padding-inline-start: 12px;
  font-weight: 600;
  text-align: end;
  white-space: nowrap;
}
.bl-table .bl-sum th,
.bl-table .bl-sum td {
  color: var(--band-ink);
  font-weight: 700;
}
.bl-table .bl-gap th,
.bl-table .bl-gap td {
  padding-top: 12px;
  border-top-color: var(--band-muted);
}
.bl-table .bl-key th {
  color: var(--band-ink);
  font-weight: 600;
}
.bl-table .bl-key td {
  color: var(--cta-bg);
  font-size: 1.04rem;
}

/* What a shelf price is made of. */
.bl-chart {
  margin-top: 6px;
}
.bl-bar-l {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 10px 0 5px;
  color: var(--band-muted);
  font-size: 0.86rem;
}
.bl-bar-l span:last-child {
  color: var(--band-ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.bl-track {
  height: 22px;
  overflow: hidden;
  border-radius: 6px;
  background: var(--band-card);
}
.bl-bar {
  display: block;
  width: 100%;
  height: 22px;
}
#site[dir='rtl'] .bl-bar {
  transform: scaleX(-1);
}
.bl-bar rect {
  stroke: var(--band);
  stroke-width: 2px;
}
.bl-bar .bl-s-coffee {
  fill: var(--cta-bg);
}
.bl-bar .bl-s-pack {
  fill: var(--band-muted);
}
.bl-bar .bl-s-lab {
  fill: var(--band-muted);
  fill-opacity: 0.45;
}
.bl-bar .bl-s-margin {
  fill: var(--band-ink);
}
.bl-bar .bl-s-vat {
  fill: var(--band-card);
  stroke: var(--band-muted);
  stroke-width: 1px;
  stroke-dasharray: 3 2;
}
.bl-key-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 12px 0 0;
  padding: 0;
  color: var(--band-muted);
  font-size: 0.82rem;
  list-style: none;
}
.bl-key-list li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.bl-sw {
  display: inline-block;
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 3px;
}
.bl-sw.bl-s-coffee {
  background: var(--cta-bg);
}
.bl-sw.bl-s-pack {
  background: var(--band-muted);
}
.bl-sw.bl-s-lab {
  background: var(--band-muted);
  opacity: 0.45;
}
.bl-sw.bl-s-margin {
  background: var(--band-ink);
}
.bl-sw.bl-s-vat {
  border: 1px dashed var(--band-muted);
  background: var(--band-card);
}

/* The worked example's "How" column holds formulas: they stay at the start of
   the column and wrap, though the build marks all-number cells to sit at the
   end on one line. */
[data-tool='blend'] ~ .tool-doc td:nth-child(2) {
  white-space: normal;
  text-align: start;
}
#site[dir='rtl'] [data-tool='blend'] ~ .tool-doc td[dir='ltr'] {
  text-align: right;
}

@media (max-width: 620px) {
  .bl-head {
    display: none;
  }
  .bl-row {
    grid-template-columns: repeat(3, minmax(0, 1fr)) 44px;
    grid-template-areas: 'n n n d' 's g l l' 'o o o o';
    align-items: end;
    gap: 8px 8px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
  }
  .bl-row > :nth-child(1) {
    grid-area: n;
  }
  .bl-row > :nth-child(2) {
    grid-area: s;
  }
  .bl-row > :nth-child(3) {
    grid-area: g;
  }
  .bl-row > :nth-child(4) {
    grid-area: l;
  }
  .bl-row > :nth-child(5) {
    grid-area: o;
  }
  .bl-row > :nth-child(6) {
    grid-area: d;
  }
  .bl-cap {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip-path: none;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 600;
    line-height: 1.25;
    white-space: normal;
  }
  .bl-row input {
    min-height: 44px;
  }
  .bl-c-out {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
  }
  .bl-del {
    width: 44px;
    height: 44px;
  }
  .bl-foot .tool-add {
    min-height: 44px;
  }
}

/* The UAE VAT return calculator: output against input VAT as three bars on the
   band (the net drawn as the gap between them), and the figures laid out box by
   box as on the VAT 201. Tokens only; the bars mirror in Arabic. */
.vr-chart {
  margin: 4px 0 14px;
}
.vr-bar-l {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0 5px;
  color: var(--band-muted);
  font-size: 0.88rem;
}
.vr-bar-l b {
  color: var(--band-ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.vr-track {
  height: 14px;
  overflow: hidden;
  border-radius: 4px;
  background: var(--band-card);
}
.vr-bar {
  display: block;
  width: 100%;
  height: 14px;
}
#site[dir='rtl'] .vr-bar {
  transform: scaleX(-1);
}
.vr-s-out {
  fill: var(--cta-bg);
}
.vr-s-in {
  fill: var(--band-muted);
}
.vr-s-net {
  fill: var(--band-ink);
}

/* The return, box by box. */
.vr-ret {
  margin-top: clamp(18px, 3vw, 32px);
}
.vr-ret-box {
  padding: clamp(18px, 2.6vw, 28px);
  border: 1px solid var(--line);
  border-top: 3px solid var(--ink);
  background: var(--surface);
}
.vr-ret-h {
  margin: 0;
  font: 700 clamp(1.15rem, 2vw, 1.4rem)/1.25 var(--font-display);
  letter-spacing: -0.01em;
}
.vr-ret-sub {
  max-width: 70ch;
  margin: 6px 0 14px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}
.vr-scroll {
  overflow-x: auto;
}
.vr-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
  font-variant-numeric: tabular-nums;
}
.vr-table th,
.vr-table td {
  padding: 9px 8px;
  border-bottom: 1px solid var(--line);
  line-height: 1.35;
  text-align: start;
  vertical-align: baseline;
}
.vr-table thead th {
  border-bottom: 2px solid var(--ink);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}
.vr-table thead th:nth-child(n+3),
.vr-table td:nth-child(n+3) {
  text-align: end;
  white-space: nowrap;
}
.vr-table td:first-child {
  width: 2.6em;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.86rem;
}
.vr-table tbody th {
  font-weight: 400;
}
.vr-table td:nth-child(n+3) {
  font-weight: 600;
}
.vr-table .vr-grp th {
  padding-top: 18px;
  border-bottom-color: var(--line-strong);
  color: var(--primary);
  font: 700 0.86rem/1.3 var(--font-text);
}
.vr-table tbody tr:first-child th {
  padding-top: 10px;
}
.vr-table .vr-tot th,
.vr-table .vr-tot td {
  background: var(--sunken);
  font-weight: 700;
}
.vr-table .vr-key th,
.vr-table .vr-key td {
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 700;
}
.vr-table .vr-key td:last-child {
  font-size: 1.04rem;
}

/* The worked example's "How" column holds formulas: they stay at the start of
   the column and wrap, though the build marks all-number cells to sit at the
   end on one line. */
[data-tool='vatreturn'] ~ .tool-doc td:nth-child(2) {
  white-space: normal;
  text-align: start;
}
#site[dir='rtl'] [data-tool='vatreturn'] ~ .tool-doc td[dir='ltr'] {
  text-align: right;
}

@media (max-width: 620px) {
  [data-tool='vatreturn'] .q-seg span {
    height: 44px;
  }
  .vr-table {
    font-size: 0.86rem;
  }
  .vr-table th,
  .vr-table td {
    padding: 8px 5px;
  }
  .vr-table td:first-child {
    width: 2em;
  }
}

/* The menu engineering calculator: the item lines, the summary's class counts,
   the matrix, the item-by-item plan and the worked table. Colours come from the
   tokens only; each class has its token and a shape, so it never rests on
   colour alone. */
.mx-head,
.mx-row {
  display: grid;
  grid-template-columns:
    minmax(0, 1.55fr) minmax(0, 0.8fr) minmax(0, 0.95fr) minmax(0, 0.85fr)
    104px 36px;
  gap: 8px;
  align-items: center;
}
.mx-head {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.25;
}
.mx-rows {
  display: grid;
  gap: 8px;
}
.mx-in {
  display: block;
  min-width: 0;
}
.mx-cap {
  display: none;
}
.mx-row input {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  font: 400 0.95rem/1.3 var(--font-text);
}
#site[dir='rtl'] .mx-row input[dir='ltr'] {
  text-align: right;
}
.mx-row input:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}
.mx-kslot {
  min-width: 0;
}
.mx-k {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  padding: 3px 9px 3px 7px;
  border-radius: 999px;
  background: var(--sunken);
  color: var(--ink);
  font: 600 0.78rem/1.3 var(--font-text);
  white-space: nowrap;
}
.mx-sw {
  flex: none;
  width: 12px;
  height: 12px;
}
.mx-del {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--muted);
  font-size: 1.2rem;
  cursor: pointer;
}
.mx-del:hover {
  background: var(--sunken);
  color: var(--ink);
}
.mx-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}
.tool-add:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.mx-btn {
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--muted);
  font: 600 0.88rem/1.2 var(--font-text);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.mx-btn:hover {
  background: var(--sunken);
  color: var(--ink);
}
.mx-check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font: 600 0.92rem/1.35 var(--font-text);
  cursor: pointer;
}
.mx-check input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--primary);
}

/* Each class: its token, used by marks, washes and swatches, never by text. */
.mx-c-star {
  fill: var(--primary);
}
.mx-c-plow {
  fill: var(--saffron);
}
.mx-c-puzzle {
  fill: var(--r3);
}
.mx-c-dog {
  fill: var(--line-strong);
}
.mx-c-none {
  fill: var(--muted);
}

/* The class counts, on the summary's band. */
[data-tool='menu'] .tool-big b {
  font-size: clamp(2.1rem, 4vw, 2.9rem);
  overflow-wrap: anywhere;
}
.mx-counts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 14px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.mx-counts li {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 9px 0;
  border-top: 1px solid var(--band-line);
}
.mx-counts span {
  color: var(--band-muted);
  font-size: 0.76rem;
  line-height: 1.25;
}
.mx-counts b {
  font: 800 1.45rem/1 var(--font-display);
  font-variant-numeric: tabular-nums;
}

/* The results: the matrix beside the plan, the worked table under both. */
.mx-out {
  margin-top: clamp(20px, 3vw, 32px);
}
.mx-res {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 32px);
  align-items: start;
}
.mx-table-box {
  grid-column: 1 / -1;
  min-width: 0;
}
.mx-fig {
  min-width: 0;
  margin: 0;
  padding: clamp(16px, 2.4vw, 24px);
  border: 1px solid var(--line);
  border-top: 3px solid var(--ink);
  background: var(--surface);
}
.mx-h {
  margin: 0 0 6px;
  font: 700 clamp(1.15rem, 2vw, 1.4rem)/1.25 var(--font-display);
  letter-spacing: -0.01em;
}
.mx-fig figcaption p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}
.mx-chart {
  min-width: 0;
}
.mx-svg {
  display: block;
  width: 100%;
  height: auto;
  font-family: var(--font-text);
}
.mx-q {
  fill-opacity: 0.09;
}
.mx-grid {
  stroke: var(--line);
  stroke-width: 1;
}
.mx-zero {
  stroke: var(--line-strong);
  stroke-width: 1;
}
.mx-tick {
  fill: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.mx-ax {
  fill: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
}
.mx-th {
  stroke: var(--ink);
  stroke-width: 1.5;
  stroke-dasharray: 5 4;
  opacity: 0.7;
}
.mx-thl {
  fill: var(--ink);
  font-size: 11.5px;
  font-weight: 600;
  paint-order: stroke;
  stroke: var(--surface);
  stroke-width: 4px;
  stroke-linejoin: round;
}
.mx-qn {
  fill: var(--muted);
  font: 700 13px var(--font-display);
  letter-spacing: 0.01em;
}
.mx-dot > :not(title) {
  stroke: var(--surface);
  stroke-width: 2px;
}
.mx-lbl {
  fill: var(--ink);
  font-size: 12.5px;
  font-weight: 500;
  paint-order: stroke;
  stroke: var(--surface);
  stroke-width: 3.5px;
  stroke-linejoin: round;
}
.mx-svg.is-narrow .mx-lbl {
  font-size: 11.5px;
}
.mx-lead {
  stroke: var(--muted);
  stroke-width: 1;
}
.mx-skip {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}
.mx-legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
  margin: 14px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
}
.mx-legend li {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  column-gap: 7px;
  align-items: start;
}
.mx-legend .mx-sw {
  margin-top: 3px;
}
.mx-legend b {
  color: var(--ink);
  font-weight: 600;
}
.mx-legend span {
  grid-column: 2;
}

/* What to do, class by class. */
.mx-plan {
  min-width: 0;
}
.mx-group {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.mx-group h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font: 700 1.02rem/1.3 var(--font-display);
}
.mx-group h3 .mx-sw {
  width: 14px;
  height: 14px;
}
.mx-group h3 small {
  margin-inline-start: auto;
  color: var(--muted);
  font: 600 0.8rem/1.25 var(--font-text);
  text-align: end;
}
.mx-rule {
  margin: 4px 0 8px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}
.mx-group ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.mx-group li {
  font-size: 0.9rem;
  line-height: 1.5;
}
.mx-group li b {
  margin-inline-end: 2px;
  font-weight: 700;
}
.mx-none {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

/* Every item, worked out. */
.mx-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.mx-table caption {
  padding-top: 10px;
  caption-side: bottom;
  color: var(--muted);
  font-size: 0.84rem;
  text-align: start;
}
.mx-table th,
.mx-table td {
  padding: 9px 8px;
  border-bottom: 1px solid var(--line);
  text-align: start;
  vertical-align: middle;
}
.mx-table thead th {
  border-bottom: 2px solid var(--ink);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.3;
  vertical-align: bottom;
}
.mx-table .num {
  font-variant-numeric: tabular-nums;
  text-align: end;
  white-space: nowrap;
}
.mx-table tbody th {
  font-weight: 600;
}
.mx-table tfoot th,
.mx-table tfoot td {
  border-top: 2px solid var(--ink);
  border-bottom: 0;
  font-weight: 700;
}
.mx-neg {
  color: var(--danger);
}

@media (max-width: 1000px) {
  .mx-res {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 720px) {
  .mx-table,
  .mx-table tbody,
  .mx-table tfoot,
  .mx-table caption {
    display: block;
  }
  .mx-table thead {
    display: none;
  }
  .mx-table tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 18px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }
  .mx-table tfoot tr {
    border-top: 2px solid var(--ink);
    border-bottom: 0;
  }
  .mx-table th[scope='row'] {
    grid-column: 1;
    grid-row: 1;
    padding: 0;
    border: 0;
    font-size: 1rem;
  }
  .mx-table td {
    display: grid;
    align-content: start;
    min-width: 0;
    padding: 4px 0;
    border: 0;
  }
  .mx-table td.num {
    overflow-wrap: anywhere;
    white-space: normal;
    text-align: start;
  }
  .mx-table td::before {
    content: attr(data-l);
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 400;
    line-height: 1.3;
  }
  .mx-table td.mx-kc {
    grid-column: 2;
    grid-row: 1;
    justify-items: end;
    padding: 0;
  }
  .mx-table td.mx-kc::before,
  .mx-table td.mx-empty {
    display: none;
  }
  .mx-table tfoot th,
  .mx-table tfoot td {
    border: 0;
  }
  .mx-legend {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 620px) {
  .mx-head {
    display: none;
  }
  .mx-row {
    grid-template-columns: repeat(3, minmax(0, 1fr)) 44px;
    grid-template-areas: 'n n n d' 's p c d';
    align-items: end;
    row-gap: 8px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
  }
  .mx-cap {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 600;
    line-height: 1.2;
  }
  .mx-row input {
    min-height: 44px;
  }
  .mx-row > :nth-child(1) {
    grid-area: n;
  }
  .mx-row > :nth-child(2) {
    grid-area: s;
  }
  .mx-row > :nth-child(3) {
    grid-area: p;
  }
  .mx-row > :nth-child(4) {
    grid-area: c;
  }
  .mx-row > .mx-kslot {
    grid-area: n;
    align-self: start;
    justify-self: end;
  }
  .mx-row .mx-k {
    padding-block: 1px;
    font-size: 0.74rem;
  }
  .mx-row > .mx-del {
    grid-area: d;
    align-self: center;
    width: 44px;
    height: 44px;
  }
  .mx-btn,
  .mx-tools .tool-add {
    min-height: 44px;
  }
}
/* The tools hub: groups by job, a heading beside each group's cards; a card says
   how deep it goes and shows its own example's answer. */
.tg-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}
.tg-jump a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 15px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 500;
  font-size: 0.92rem;
  text-decoration: none;
}
.tg-jump a:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.tg {
  display: grid;
}
.tg-group {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr);
  gap: 18px clamp(24px, 4vw, 56px);
  padding-block: clamp(28px, 4vw, 44px);
  border-top: 1px solid var(--line);
  scroll-margin-top: 80px;
}
.tg-group:first-child {
  padding-top: 0;
  border-top: 0;
}
.tg-hd svg {
  width: 30px;
  height: 30px;
  margin-bottom: 14px;
  fill: none;
  stroke: var(--primary);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tg-hd h2 {
  margin: 0 0 8px;
  font: 800 clamp(1.3rem, 2.2vw, 1.6rem)/1.2 var(--font-display);
  letter-spacing: -0.02em;
}
.tg-hd p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}
/* Each tool is an entry under a hairline, not a card: no box, no tint, no lift.
   An in-depth tool's kind carries the saffron point; a quick one an open one. */
.tg-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(20px, 3vw, 36px);
  margin: 0;
  padding: 0;
  list-style: none;
}
/* A tool reads and answers the hover as a post does: its hairline draws in
   green across the top and its title turns green (.post-card above). */
.post-card.tg-card {
  gap: 8px;
  padding: 18px 0 24px;
}
.tg-kind {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  color: var(--muted);
  font: 600 0.72rem/1.3 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.tg-kind::before {
  content: '';
  flex: none;
  width: 8px;
  height: 8px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  box-sizing: border-box;
}
.tg-card.is-deep .tg-kind {
  color: var(--saffron-ink);
}
.tg-card.is-deep .tg-kind::before {
  border-color: var(--saffron);
  background: var(--saffron);
}
#site[lang='ar'] .tg-kind {
  font: 600 0.8rem/1.3 var(--font-text);
  letter-spacing: 0;
}
.tg-ex {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed var(--line-strong);
  color: var(--ink);
  font: 500 0.84rem/1.4 var(--font-mono);
}
#site[lang='ar'] .tg-ex {
  font-family: var(--font-text);
}
/* The foot of each tool page: the other tools, in four short lists. */
.tools-more {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px clamp(18px, 3vw, 36px);
  margin-bottom: 22px;
}
.tools-more-hd {
  margin: 0 0 10px;
  color: var(--muted);
  font: 600 0.76rem/1.2 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
#site[lang='ar'] .tools-more-hd {
  font: 600 0.9rem/1.3 var(--font-text);
  letter-spacing: 0;
}
.tools-more ul {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tools-more a {
  display: inline-block;
  padding: 6px 0;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}
.tools-more a:hover {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-width: 960px) {
  .tg-group {
    grid-template-columns: minmax(0, 1fr);
  }
  .tools-more {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 620px) {
  .tg-cards {
    grid-template-columns: minmax(0, 1fr);
  }
  .post-card.tg-card:nth-child(2) {
    border-top: 1px solid var(--line);
    padding-top: 18px;
  }
}
@media (max-width: 420px) {
  .tools-more {
    grid-template-columns: minmax(0, 1fr);
  }
  .tools-more a {
    padding: 10px 0;
  }
}
/* ─────────────── Trust, privacy and terms: plain pages, plainly laid out ─────────────── */
.tr-reviewed {
  display: flex;
  gap: 8px;
  margin: 22px 0 0;
  color: var(--muted);
  font: 500 0.8rem/1.3 var(--font-mono);
  letter-spacing: 0.04em;
}
#site[lang='ar'] .tr-reviewed {
  font: 500 0.88rem/1.3 var(--font-text);
  letter-spacing: 0;
}
.tr-commit {
  padding-block: 8px clamp(40px, 6vw, 72px);
}
/* The commitments: entries under the heavy ink rule, a hairline under each, a
   plain line icon; no card, no tint. */
.tr-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 clamp(20px, 3vw, 36px);
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 3px solid var(--ink);
}
.tr-grid li {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 20px 0 22px;
  border-bottom: 1px solid var(--line);
}
.tr-grid svg {
  width: 28px;
  height: 28px;
  margin-bottom: 4px;
  fill: none;
  stroke: var(--primary);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tr-grid h2 {
  margin: 0;
  font: 700 1.08rem/1.3 var(--font-display);
  letter-spacing: -0.01em;
}
.tr-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}
.tr-wrap {
  padding-bottom: clamp(24px, 4vw, 48px);
}
.tr-table {
  overflow-x: auto;
  margin: 18px 0 22px;
}
.tr-table table {
  margin: 0;
  min-width: 620px;
}
.tr-table td:first-child {
  white-space: nowrap;
}
.legal-hd {
  border-bottom: 1px solid var(--line);
}
.legal-hd .post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  border-top: 0;
  padding-top: 0;
}
.legal-body h3 {
  margin-top: 26px;
}
/* A line the reader must not miss: in bold, led by the saffron point. */
.legal-body .legal-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 600;
}
.legal-body .legal-note::before {
  content: '';
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: 0.62em;
  border-radius: 50%;
  background: var(--saffron);
}
@media (max-width: 960px) {
  .tr-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 620px) {
  .tr-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.legal-body .tr-table td:first-child {
  white-space: normal;
  font-weight: 600;
}
.legal-body .tr-table th:nth-child(1) {
  width: 19%;
}
.legal-body .tr-table th:nth-child(2) {
  width: 39%;
}
.legal-body .tr-table th:nth-child(3) {
  width: 23%;
}
.shots-grid figure img {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 30px 60px -36px var(--shadow);
}
.shots-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.shots-grid figure {
  margin: 0;
}
.shots-grid img {
  display: block;
  width: 100%;
  height: auto;
}
.shots-grid figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}
.shots-grid figcaption b {
  color: var(--ink);
}
@media (max-width: 860px) {
  .shots-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* ─────────────── Billing ─────────────── */
/* Yearly unless the toggle says monthly; quote.js repaints the two rates. */
.bill-toggle {
  display: inline-flex;
  gap: 4px;
  margin: clamp(20px, 3vw, 28px) 0 0;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}
.bill-toggle label {
  position: relative;
}
.bill-toggle input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}
.bill-toggle span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
}
.bill-toggle span b {
  font-weight: 600;
}
.bill-toggle span i {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--saffron-soft);
  color: var(--saffron-ink);
  font: 600 0.74rem/1.3 var(--font-text);
  font-style: normal;
}
.bill-toggle input:checked + span {
  background: var(--primary);
  color: var(--primary-ink);
}
.bill-toggle input:checked + span i {
  background: color-mix(in srgb, var(--primary-ink) 18%, transparent);
  color: var(--primary-ink);
}
.bill-toggle input:focus-visible + span {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.bill-toggle[hidden] {
  display: none;
}
/* Real screens open full size. */
.zoom {
  display: block;
  border-radius: 16px;
  cursor: zoom-in;
}
.zoom:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}
/* ─────────────── Lightbox ─────────────── */
/* The viewer real screens open in, on the page itself (js/zoom.js): the picture
   on a dark ground, its caption and the controls in a bar above it. */
html.lb-lock {
  overflow: hidden;
  padding-inline-end: var(--lb-bar, 0);
}
.lb {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(10, 16, 13, 0.97);
  color: #efe9e1;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.lb[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}
.lb::backdrop {
  background: transparent;
}
.lb-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: max(10px, env(safe-area-inset-top, 0px))
    max(12px, env(safe-area-inset-right, 0px)) 10px
    max(16px, env(safe-area-inset-left, 0px));
}
.lb-cap {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font: 600 0.95rem/1.4 var(--font-text);
  text-overflow: ellipsis;
  white-space: nowrap;
}
html[lang='ar'] .lb-cap {
  font-family: var(--font-ar);
}
.lb-n {
  padding-inline: 8px;
  color: #a3c8b6;
  font: 500 0.8rem/1 var(--font-mono);
  white-space: nowrap;
}
.lb-b {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(239, 233, 225, 0.28);
  border-radius: 50%;
  background: rgba(10, 16, 13, 0.6);
  color: inherit;
  cursor: pointer;
}
.lb-b:hover {
  background: rgba(239, 233, 225, 0.12);
}
.lb-b[aria-pressed='true'] {
  border-color: #e8a922;
  color: #e8a922;
}
.lb-b svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.lb :focus-visible {
  outline: 2px solid #e8a922;
  outline-offset: 2px;
}
.lb-view {
  display: grid;
  place-items: center;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 4px 16px 24px;
  direction: ltr;
}
.lb-img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100dvh - 100px);
  border-radius: 8px;
  background: #fff;
  cursor: zoom-in;
}
.lb:not(.is-zoomed) .lb-view {
  touch-action: pan-y pinch-zoom;
}
.lb.is-zoomed .lb-view {
  place-items: start;
}
.lb.is-zoomed .lb-img {
  max-width: none;
  max-height: none;
  cursor: zoom-out;
}
.lb-step {
  position: absolute;
  top: 50%;
  margin-top: -22px;
}
.lb-prev {
  inset-inline-start: max(12px, env(safe-area-inset-left, 0px));
}
.lb-next {
  inset-inline-end: max(12px, env(safe-area-inset-right, 0px));
}
html[dir='rtl'] .lb-step svg {
  transform: scaleX(-1);
}
.lb.is-zoomed .lb-step {
  display: none;
}
/* on a phone the arrows sit under the picture, clear of it */
@media (max-width: 600px) {
  .lb-view {
    padding-bottom: 84px;
  }
  .lb-step {
    top: auto;
    bottom: max(20px, env(safe-area-inset-bottom, 0px));
    margin-top: 0;
  }
  .lb-prev {
    inset-inline-start: calc(50% - 56px);
  }
  .lb-next {
    inset-inline-end: calc(50% - 56px);
  }
}
@media (prefers-reduced-motion: no-preference) {
  .lb[open] {
    animation: lb-in 0.22s ease-out;
  }
}
@keyframes lb-in {
  from {
    opacity: 0;
  }
}
/* The tool you're on, in the list at its foot. */
.tools-more a[aria-current='page'] {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}
/* On a phone, wide tables stack each row as a card, each value under its column's
   name (set by the build from the header). */
@media (max-width: 640px) {
  .tr-table {
    overflow: visible;
  }
  .tr-table table {
    min-width: 0;
  }
  .tr-table thead {
    display: none;
  }
  .tr-table table,
  .tr-table tbody,
  .tr-table tr,
  .tr-table td {
    display: block;
    width: auto;
  }
  .tr-table tr {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }
  .tr-table td,
  .tr-table td:first-child {
    padding: 2px 0;
    border: 0;
    white-space: normal;
  }
  .tr-table td:first-child {
    font-weight: 700;
  }
  .tr-table td:not(:first-child)::before {
    content: attr(data-th);
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font: 600 0.72rem/1.4 var(--font-mono);
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
  #site[lang='ar'] .tr-table td:not(:first-child)::before {
    font: 600 0.82rem/1.4 var(--font-text);
    letter-spacing: 0;
    text-transform: none;
  }
}
/* ─────────────── The quote, its own section below ─────────────── */
/* One framed card, like the plan above it: the plan carried in its head, what
   you run on the left, where to send it on the right. */
.pr-quote {
  padding-block: 0 clamp(56px, 7vw, 88px);
}
.pr-quote .qcard {
  padding: clamp(22px, 3vw, 34px) clamp(20px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}
.pr-quote .qc-field > legend {
  font-size: 0.98rem;
}
.pr-quote .q-chips {
  gap: 6px;
}
.pr-quote .q-chip > span {
  min-height: 38px;
  padding: 0 13px;
  font-size: 0.93rem;
}
.pr-quote .q-send .btn {
  min-width: 220px;
}
.qc-plan {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin: 0;
  color: var(--muted);
}
.qc-plan[hidden] {
  display: none;
}
.qc-plan b {
  color: var(--ink);
}
.qc-plan a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--primary);
  font-weight: 600;
}
.qc-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px clamp(24px, 4vw, 48px);
}
.qc-col {
  min-width: 0;
}
.qc-col + .qc-col {
  padding-inline-start: clamp(24px, 4vw, 48px);
  border-inline-start: 1px solid var(--line);
}
.qc-recap {
  margin: 18px 0 0;
}
@media (max-width: 960px) {
  .qc-cols {
    grid-template-columns: minmax(0, 1fr);
  }
  .qc-col + .qc-col {
    padding: 22px 0 0;
    border-inline-start: 0;
    border-top: 1px solid var(--line);
  }
}
dl.qc-recap {
  flex-wrap: wrap;
  gap: 6px 18px;
  justify-content: flex-start;
}
dl.qc-recap > div {
  display: flex;
  gap: 6px;
  font-size: 0.88rem;
  line-height: 1.4;
}
/* ─────────────── Every tool, one way of working (tool-kit.js) ─────────────── */
/* Amounts line their digits up, in fields and in tables. */
[data-tool] input[data-num] {
  font-variant-numeric: tabular-nums;
}
/* Editable rows: every control the same height and shape, numbers to the right
   under right-set heads, the unit inside its box rather than under it. */
[data-tool] [data-row] input,
[data-tool] [data-row] select {
  min-height: 44px;
  border-radius: 10px;
}
[data-tool] [data-row] input[data-num] {
  text-align: right;
}
[data-tool] [data-row] select {
  width: 100%;
  min-width: 0;
  padding: 8px 32px 8px 10px;
  border: 1px solid var(--line-strong);
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23857c70' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 11px 7px;
  background-position: right 12px center;
  color: var(--ink);
  font: 400 0.95rem/1.3 var(--font-text);
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
#site[dir='rtl'] [data-tool] [data-row] select {
  padding: 8px 10px 8px 32px;
  background-position: left 12px center;
}
.fc-head span:nth-child(2),
.fc-head span:nth-child(4),
.fc-head span:nth-child(5),
.bl-head span:nth-child(2),
.bl-head span:nth-child(3),
.bl-head span:nth-child(4),
.be-head span:nth-child(2),
.mx-head span:nth-child(2),
.mx-head span:nth-child(3),
.mx-head span:nth-child(4) {
  text-align: right;
}

/* The food-cost lines: labelled cells, like the blend and the menu. */
.fc-head,
.fc-row {
  grid-template-columns:
    minmax(0, 1.5fr) minmax(0, 0.8fr) minmax(0, 0.85fr) minmax(0, 1.35fr)
    minmax(52px, 0.6fr) 36px;
  gap: 8px;
}
.fc-head {
  align-items: end;
}
.fc-c {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.fc-cap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.fc-c-cost {
  text-align: right;
}
.fc-price {
  position: relative;
  display: block;
}
.fc-price input {
  padding-right: 64px;
}
.fc-price small {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  max-width: 56px;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.1;
  text-align: right;
  pointer-events: none;
}
#site[dir='rtl'] .fc-price input {
  padding-right: 10px;
  padding-left: 64px;
}
#site[dir='rtl'] .fc-price small {
  right: auto;
  left: 10px;
  text-align: left;
}
.fc-del {
  width: 36px;
  height: 36px;
}
@media (max-width: 720px) {
  .fc-head {
    display: none;
  }
  .fc-rows {
    gap: 0;
  }
  .fc-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(64px, auto);
    grid-template-areas:
      'name name del'
      'qty unit unit'
      'price price cost';
    gap: 10px 10px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }
  .fc-row:first-child {
    padding-top: 0;
  }
  .fc-cap {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip-path: none;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 600;
  }
  .fc-c-name {
    grid-area: name;
  }
  .fc-c-name .fc-cap {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .fc-row > :nth-child(2) {
    grid-area: qty;
  }
  .fc-row > :nth-child(3) {
    grid-area: unit;
  }
  .fc-c-price {
    grid-area: price;
  }
  .fc-c-cost {
    grid-area: cost;
    align-self: end;
    min-width: 72px;
  }
  .fc-c-cost output {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 44px;
    font-size: 1.05rem;
  }
  .fc-del {
    grid-area: del;
    align-self: center;
    justify-self: end;
  }
}

/* On a phone, the main figure stays at the foot of the screen while you type. */
.tool-bar {
  position: fixed;
  z-index: 40;
  right: 12px;
  bottom: max(12px, env(safe-area-inset-bottom));
  left: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 8px 14px;
  border: 0;
  border-radius: 16px;
  background: var(--band);
  color: var(--band-ink);
  box-shadow: 0 16px 36px -14px rgba(0, 0, 0, 0.5);
  font: 600 0.92rem/1.2 var(--font-text);
  text-align: start;
  cursor: pointer;
}
.tool-bar[hidden] {
  display: none;
}
.tool-bar-l {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: var(--band-muted);
  font: 600 0.72rem/1.2 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#site[lang='ar'] .tool-bar-l {
  font: 600 0.84rem/1.3 var(--font-text);
  letter-spacing: 0;
}
.tool-bar-v {
  font: 800 1.15rem/1 var(--font-display);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.tool-bar-go {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--band-card);
}
.tool-bar:focus-visible {
  outline: 2px solid var(--cta-bg);
  outline-offset: 2px;
}
@media (min-width: 961px) {
  .tool-bar {
    display: none;
  }
}
/* A field the browser scrolls to stays clear of the result bar. */
html:has(.tool-bar:not([hidden])) {
  scroll-padding-bottom: 96px;
}
/* A figure and its currency never split across lines. */
.tool-rows dd {
  white-space: nowrap;
}
/* 44 px targets on the features page, the tools hub and the tools: the area
   chips and filters, the back link, the segmented choices, the recipe's add
   and remove buttons, and the links at the foot. */
.atlas-jump a,
.atlas-filter button,
.tg-jump a,
.tool-add,
.tool-cta .link-arrow,
.tools-more-all {
  min-height: 44px;
}
.atlas-jump a,
.atlas-filter button {
  display: inline-flex;
  align-items: center;
}
.tool-hero .post-back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-block: 0;
}
.fc-del {
  width: 44px;
  height: 44px;
}
/* At 320 px: a long choice wraps inside its segment, two date fields no longer
   share a row, and a worked example's formulas wrap, so nothing scrolls
   sideways. */
.tool-seg label {
  display: flex;
  min-width: 0;
}
.tool-seg span {
  height: auto;
  min-height: 44px;
  min-width: 0;
  padding: 5px 6px;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
}
@media (max-width: 420px) {
  .tool-three {
    grid-template-columns: minmax(0, 1fr);
  }
  .tool-doc .post-body td.num:not(:last-child) {
    white-space: normal;
  }
}
