/* The home page (pages/home.html), loaded after site.css on that page alone, so the
   other pages never carry it. It began as the trial at /v2/ (round 3, 11 Nov 2026)
   and became the home on 12 Nov 2026, adding Any ERP vs Seyaqi (a plain table
   since the same day) and the questions.
   The brand's own parts: strong type, hairline rules, the bracket mark, the
   saffron point, the Seyaqi icons, cardamom and saffron bands. No tinted callouts,
   no striped cards, no shadowed card grids. The films are the app redrawn from the
   same tokens, so light and dark follow the theme; motion runs only for people who
   haven't asked for less. */
:root {
  --ease: cubic-bezier(0.22, 0.9, 0.24, 1);
  --home-grid: rgba(21, 32, 26, 0.08);
  --home-night-a: #0a271c;
  --home-night-b: #123d2d;
  --home-sb: #e8a922;
  --home-btn: #14110e;
  --home-btn-ink: #e8a922;
  --home-try: #1c5a42;
  --home-try-ink: #f4f6f1;
  --home-try-muted: #c2e0d1;
  --home-try-line: rgba(244, 246, 241, 0.26);
  /* the app, redrawn */
  --a-bg: #f4f6f1;
  --a-panel: #ffffff;
  --a-head: #e1f0e8;
  --a-line: #dbe2d8;
  --a-ink: #15201a;
  --a-muted: #56635b;
  --a-green: #1c5a42;
  --a-on-green: #ffffff;
  --a-soft: #daf2e6;
  --a-hi: #fbedcf;
  --a-bar: #c2e0d1;
  --a-bad: #b0352a;
  --a-shadow: rgba(21, 32, 26, 0.18);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --home-btn: #efe9e1;
    --home-btn-ink: #14110e;
    --home-grid: rgba(239, 233, 225, 0.07);
    --home-night-a: #07180f;
    --home-night-b: #0e2a1f;
    --home-sb: #e0a11c;
    --home-try: #123d2d;
    --a-bg: #14110e;
    --a-panel: #1f1a16;
    --a-head: #16291f;
    --a-line: #382f27;
    --a-ink: #efe9e1;
    --a-muted: #ab9f90;
    --a-green: #73c79e;
    --a-on-green: #0f1a14;
    --a-soft: #112d21;
    --a-hi: #3b2b0f;
    --a-bar: #24493a;
    --a-bad: #e77262;
    --a-shadow: rgba(0, 0, 0, 0.5);
  }
}
:root[data-theme='dark'] {
  --home-btn: #efe9e1;
  --home-btn-ink: #14110e;
  --home-grid: rgba(239, 233, 225, 0.07);
  --home-night-a: #07180f;
  --home-night-b: #0e2a1f;
  --home-sb: #e0a11c;
  --home-try: #123d2d;
  --a-bg: #14110e;
  --a-panel: #1f1a16;
  --a-head: #16291f;
  --a-line: #382f27;
  --a-ink: #efe9e1;
  --a-muted: #ab9f90;
  --a-green: #73c79e;
  --a-on-green: #0f1a14;
  --a-soft: #112d21;
  --a-hi: #3b2b0f;
  --a-bar: #24493a;
  --a-bad: #e77262;
  --a-shadow: rgba(0, 0, 0, 0.5);
}

/* ── shared ──────────────────────────────────────────────────────────────── */
.home-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.home .ic {
  flex: none;
  width: 1.25em;
  height: 1.25em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#site[dir='rtl'] .home .ic:has(use[href='#i-arrow']) {
  transform: scaleX(-1);
}
:where(.home) h2 {
  font: 800 clamp(2rem, 4.3vw, 3.4rem) / 1.05 var(--font-display);
  letter-spacing: -0.035em;
}
#site[lang='ar'] :where(.home) h2 {
  line-height: 1.3;
}
.home-sec {
  padding-block: clamp(64px, 9vw, 120px);
  scroll-margin-top: 72px;
}
.home-k {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font: 500 0.78rem/1.3 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--saffron-ink);
}
.home-k::before {
  content: '';
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--saffron);
}
#site[lang='ar'] .home-k {
  font: 600 0.88rem/1.4 var(--font-ar);
}
.home-note {
  max-width: 44ch;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}
.home-sub {
  max-width: 60ch;
  margin-top: 18px;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  line-height: 1.65;
}
#site[lang='ar'] .home-sub,
#site[lang='ar'] .home-lede {
  line-height: 1.85;
}
.home-head {
  display: grid;
  gap: 16px;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.home-margin {
  display: grid;
  gap: 14px;
  align-content: start;
}
.home-acts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 14px;
}
.home .link-arrow {
  min-height: 44px;
}
.home .btn .ic {
  width: 18px;
  height: 18px;
}
/* the second action: an ink outline that fills on hover */
.home-btn-try {
  border: 1.5px solid var(--ink);
  background: transparent;
  color: var(--ink);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.home-btn-try:hover {
  background: var(--ink);
  color: var(--paper);
}
.home-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--saffron-ink);
  font: 600 0.75rem/1.2 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.home-tag::before {
  content: '';
  width: 8px;
  height: 8px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}
#site[lang='ar'] .home-tag {
  font: 600 0.84rem/1.3 var(--font-ar);
}
@media (min-width: 1000px) {
  .home-head {
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 40px;
  }
  .home-margin {
    padding-top: 12px;
  }
}

/* ── the hero: what Seyaqi is, then one number with its causes ───────────── */
.home-hero {
  padding-block: clamp(36px, 6vw, 88px) clamp(48px, 6vw, 80px);
}
.home-hero-in {
  display: grid;
  /* one column that may not grow past the page: an implicit auto track took
     its widest child's min-content and pushed /ar/ 5px off the left at 320px */
  grid-template-columns: minmax(0, 1fr);
  gap: 26px;
}
.home-hero h1 {
  max-width: 17ch;
  font: 800 clamp(2.5rem, 6vw, 4.9rem) / 1.02 var(--font-display);
  letter-spacing: -0.045em;
  text-wrap: balance;
}
#site[lang='ar'] .home-hero h1 {
  max-width: 15ch;
  line-height: 1.28;
  letter-spacing: 0;
}
.home-lede {
  max-width: 50ch;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.6;
}
.home-hero-l .home-acts {
  margin-top: 22px;
}
.home-status {
  display: grid;
  gap: 4px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}
.home-live {
  position: relative;
  padding-inline-start: 18px;
  color: var(--ink);
  font-weight: 600;
}
.home-live::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 0.45em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 24%, transparent);
}
.home-live + span {
  padding-inline-start: 18px;
}

.home-fig {
  margin: 12px 0 0;
  padding-block: 16px 22px;
  border-block: 1px solid var(--line);
  background-image: radial-gradient(var(--home-grid) 1.1px, transparent 1.3px);
  background-size: 18px 18px;
}
.home-fig-hd {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font: 500 0.78rem/1.3 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.home-fig-hd #home-fig-cap {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
}
.home-fig-hd b {
  color: var(--ink);
  font-weight: 600;
}
#site[lang='ar'] .home-fig-hd {
  font: 500 0.9rem/1.4 var(--font-ar);
}
.home-fig-body {
  display: grid;
  /* as the hero: one column held to the page, so a wide child cannot widen it */
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding-block: 20px 10px;
}
.home-num {
  order: -1;
  direction: ltr;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.05em;
  margin: 0;
  font: 800 clamp(4.4rem, 15vw, 10.5rem) / 1 var(--font-display);
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}
.home-num b {
  font-weight: 800;
}
.home-br {
  flex: none;
  width: 0.236em;
  height: 1.18em;
  overflow: visible;
}
.home-br path {
  fill: none;
  stroke: var(--primary);
  stroke-width: 6.8;
  stroke-linecap: round;
}
.home-notes {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.home-notes li {
  position: relative;
  display: grid;
  gap: 4px;
  padding-inline-start: 20px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}
.home-notes li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 0.4em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--saffron);
}
.home-notes b {
  color: var(--ink);
  font: 600 0.78rem/1.3 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
#site[lang='ar'] .home-notes b {
  font: 700 0.9rem/1.4 var(--font-ar);
}
#site[lang='ar'] .home-notes li {
  line-height: 1.75;
}
.home-verdict {
  max-width: 62ch;
  margin: 14px auto 0;
  padding-top: 16px;
  border-top: 1px dashed var(--line-strong);
  font: 600 clamp(1.02rem, 1.5vw, 1.22rem) / 1.5 var(--font-display);
  text-align: center;
  text-wrap: balance;
}
@media (min-width: 1000px) {
  .home-hero-in {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 40px 64px;
    align-items: end;
  }
  .home-fig {
    grid-column: 1 / -1;
  }
  .home-fig-body {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 48px;
  }
  .home-num {
    order: 0;
  }
  .home-notes {
    gap: 30px;
  }
  .home-notes li {
    padding-inline-start: 0;
  }
  .home-notes:first-child li {
    text-align: end;
  }
  /* a leader line from each note to the brackets, ending on the brand's point */
  .home-notes li::before {
    top: 0.62em;
    width: 34px;
    height: 1px;
    border-radius: 0;
    background: var(--line-strong);
  }
  .home-notes li::after {
    content: '';
    position: absolute;
    top: calc(0.62em - 4px);
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--saffron);
  }
  .home-notes:first-child li::before {
    inset-inline: auto -42px;
  }
  .home-notes:first-child li::after {
    inset-inline: auto -46px;
  }
  .home-notes:last-child li::before {
    inset-inline-start: -42px;
  }
  .home-notes:last-child li::after {
    inset-inline-start: -46px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .home-num b {
    animation: home-rumour 1.5s ease-out both;
  }
  .home-br path {
    stroke-dasharray: 1 1;
    animation: home-draw 0.9s 0.55s cubic-bezier(0.6, 0, 0.2, 1) both;
  }
  .home-notes li {
    animation: home-rise 0.55s calc(1.2s + var(--i) * 0.16s) ease-out both;
  }
  .home-verdict {
    animation: home-rise 0.6s 2s ease-out both;
  }
}
@keyframes home-rumour {
  0%,
  40% {
    color: var(--line-strong);
  }
  100% {
    color: var(--ink);
  }
}
@keyframes home-draw {
  from {
    stroke-dashoffset: 1;
  }
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes home-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

/* ── the real figures, ruled like a ledger ───────────────────────────────── */
.home-real {
  padding-block: clamp(32px, 4vw, 56px) clamp(48px, 6vw, 80px);
}
.home-real-hd {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 22px;
  padding-bottom: 18px;
  border-bottom: 3px solid var(--ink);
}
.home-real h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
}
.home-asof {
  margin-inline-start: auto;
  color: var(--muted);
  font: 500 0.8rem/1.3 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
#site[lang='ar'] .home-asof {
  font: 500 0.9rem/1.4 var(--font-ar);
}
.home-figs {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}
.home-figs li {
  display: grid;
  gap: 8px;
  align-content: start;
  padding-block: 22px;
  border-bottom: 1px solid var(--line);
}
.home-figs b {
  color: var(--primary);
  font: 800 clamp(2.8rem, 5.4vw, 4.4rem) / 1 var(--font-display);
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.home-figs span {
  max-width: 30ch;
  color: var(--muted);
  line-height: 1.5;
}
@media (min-width: 760px) {
  .home-figs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .home-figs li {
    padding-inline-end: 24px;
    border-bottom: 0;
  }
  .home-figs li + li {
    padding-inline-start: 28px;
    border-inline-start: 1px solid var(--line);
  }
}

/* ── try it: the demo, as the person you are ─────────────────────────────── */
.home-try {
  padding-block: clamp(56px, 7vw, 96px);
  background-color: var(--home-try);
  background-image:
    linear-gradient(
      90deg,
      transparent,
      var(--home-try) 12%,
      var(--home-try) 88%,
      transparent
    ),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23f4f6f1' stroke-opacity='.12' stroke-width='6' stroke-linecap='round'%3E%3Cpath transform='translate(30 30) scale(.5) translate(-32 -32)' d='M25 12C12 19 12 45 25 52M39 12C52 19 52 45 39 52'/%3E%3Cpath transform='translate(90 90) scale(.5) translate(-32 -32)' d='M25 12C12 19 12 45 25 52M39 12C52 19 52 45 39 52'/%3E%3C/g%3E%3Cg fill='%23e8a922' fill-opacity='.55'%3E%3Ccircle cx='30' cy='30' r='3.25'/%3E%3Ccircle cx='90' cy='90' r='3.25'/%3E%3C/g%3E%3Cg fill='%23f4f6f1' fill-opacity='.14'%3E%3Ccircle cx='90' cy='30' r='2.2'/%3E%3Ccircle cx='30' cy='90' r='2.2'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 100% 100%, 120px 120px;
  color: var(--home-try-ink);
  scroll-margin-top: 64px;
}
#site[dir='rtl'] .home-try {
  background-image:
    linear-gradient(
      90deg,
      transparent,
      var(--home-try) 12%,
      var(--home-try) 88%,
      transparent
    ),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23f4f6f1' stroke-opacity='.12' stroke-width='6' stroke-linecap='round'%3E%3Cpath transform='translate(30 30) scale(.5) translate(-32 -32)' d='M25 12C12 19 12 45 25 52M39 12C52 19 52 45 39 52'/%3E%3Cpath transform='translate(90 90) scale(.5) translate(-32 -32)' d='M25 12C12 19 12 45 25 52M39 12C52 19 52 45 39 52'/%3E%3C/g%3E%3Cg fill='%23e8a922' fill-opacity='.55'%3E%3Ccircle cx='30' cy='30' r='3.25'/%3E%3Ccircle cx='90' cy='90' r='3.25'/%3E%3C/g%3E%3Cg fill='%23f4f6f1' fill-opacity='.14'%3E%3Ccircle cx='90' cy='30' r='2.2'/%3E%3Ccircle cx='30' cy='90' r='2.2'/%3E%3C/g%3E%3C/svg%3E");
}
.home-try-in {
  display: grid;
  gap: 32px;
}
.home-try-hd {
  display: grid;
  gap: 14px;
  align-content: start;
  justify-items: start;
}
.home-try h2 {
  font-size: clamp(2.2rem, 4.6vw, 3.8rem);
}
.home-try-hd > p:not(.home-k) {
  max-width: 34ch;
  color: var(--home-try-muted);
  font-size: 1.06rem;
  line-height: 1.6;
}
.home-try-hd .btn {
  margin-top: 8px;
}
.home-try .home-k {
  color: var(--saffron);
}
.home-btn-ghost {
  border: 1.5px solid var(--home-try-ink);
  background: transparent;
  color: var(--home-try-ink);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.home-btn-ghost:hover {
  background: var(--home-try-ink);
  color: var(--home-try);
}
.home-try :focus-visible {
  outline-color: var(--saffron);
}
/* the roles, set as one sentence: "Open Seyaqi as" … the owner */
.home-roles {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--home-try-line);
  list-style: none;
}
.home-roles a {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr) auto;
  column-gap: 16px;
  row-gap: 6px;
  align-items: center;
  padding: 22px 2px;
  border-bottom: 1px solid var(--home-try-line);
  color: inherit;
  text-decoration: none;
}
.home-role-n {
  grid-row: span 2;
  align-self: start;
  padding-top: 0.75em;
  color: var(--saffron);
  font: 500 0.82rem/1 var(--font-mono);
}
.home-roles b {
  position: relative;
  justify-self: start;
  font: 800 clamp(1.8rem, 3.6vw, 2.9rem) / 1.08 var(--font-display);
  letter-spacing: -0.035em;
  transition: color 0.25s ease;
}
#site[lang='ar'] .home-roles b {
  line-height: 1.35;
  letter-spacing: 0;
}
/* the brand's brackets close around the role you point at */
.home-roles b::before,
.home-roles b::after {
  content: '';
  position: absolute;
  top: 6%;
  bottom: 2%;
  width: 0.26em;
  background: no-repeat center / 100% 100%
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 200' preserveAspectRatio='none'%3E%3Cpath d='M32 6C8 50 8 150 32 194' fill='none' stroke='%23e8a922' stroke-width='9' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.35s var(--ease);
}
.home-roles b::before {
  left: -0.42em;
  transform: translateX(-0.25em);
}
.home-roles b::after {
  right: -0.42em;
  transform: translateX(0.25em) scaleX(-1);
}
.home-roles a > span:not(.home-role-n) {
  grid-column: 2;
  color: var(--home-try-muted);
  font-size: 1.02rem;
  line-height: 1.5;
}
.home-roles .ic {
  grid-row: 1 / span 2;
  grid-column: 3;
  box-sizing: border-box;
  width: 48px;
  height: 48px;
  padding: 13px;
  border: 1.5px solid var(--home-try-line);
  border-radius: 50%;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s;
}
.home-roles a:hover b,
.home-roles a:focus-visible b {
  color: var(--saffron);
}
.home-roles a:hover b::before,
.home-roles a:hover b::after,
.home-roles a:focus-visible b::before,
.home-roles a:focus-visible b::after {
  opacity: 1;
  transform: none;
}
.home-roles a:hover b::after,
.home-roles a:focus-visible b::after {
  transform: scaleX(-1);
}
.home-roles a:hover .ic,
.home-roles a:focus-visible .ic {
  border-color: var(--saffron);
  background: var(--saffron);
  color: #14110e;
}
@media (min-width: 1000px) {
  .home-try-in {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 64px;
    align-items: center;
  }
}

/* ── see it work: tabs, each a short film ────────────────────────────────── */
.see-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: clamp(28px, 4vw, 48px);
  /* sideways only, and only when the tabs don't fit (a phone): nothing hangs
     below the bar, so it never scrolls up and down */
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}
.see-tabs::-webkit-scrollbar {
  display: none;
}
.see-tabs button {
  position: relative;
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 16px;
  border: 0;
  background: none;
  color: var(--muted);
  font: 600 1.02rem/1.2 var(--font-display);
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s ease;
}
#site[lang='ar'] .see-tabs button {
  font-size: 1.05rem;
}
.see-tabs button::after {
  content: '';
  position: absolute;
  inset-inline: 10px;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--ink);
  transform: scaleX(0);
  transition: transform 0.35s var(--ease);
}
.see-tabs .ic {
  width: 22px;
  height: 22px;
  color: var(--primary);
  --pt: var(--line-strong);
}
.see-tabs button:hover,
.see-tabs [aria-selected='true'] {
  color: var(--ink);
}
.see-tabs [aria-selected='true']::after {
  transform: none;
}
.see-tabs [aria-selected='true'] .ic {
  --pt: var(--saffron);
}
html:not(.js) .see-tabs {
  display: none;
}
/* on a phone the five jobs sit in one row, each an icon over its name */
@media (max-width: 700px) {
  .see-tabs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2px;
    overflow: visible;
  }
  .see-tabs button {
    flex-direction: column;
    justify-content: flex-start;
    gap: 6px;
    min-height: 64px;
    padding: 8px 2px 10px;
    font-size: 0.74rem;
    line-height: 1.2;
    text-align: center;
    white-space: normal;
  }
  #site[lang='ar'] .see-tabs button {
    font-size: 0.78rem;
  }
  .see-tabs button::after {
    inset-inline: 4px;
  }
}
.see-panel {
  display: grid;
  gap: 22px;
}
.see-panel + .see-panel {
  margin-top: 56px;
}
.js .see-panel + .see-panel {
  margin-top: 0;
}
.js .see-panel:not(.is-on) {
  display: none;
}
.see-copy {
  display: grid;
  gap: 16px;
  align-content: start;
}
.see-copy h3 {
  font: 800 clamp(1.5rem, 2.6vw, 2.15rem) / 1.12 var(--font-display);
  letter-spacing: -0.03em;
}
#site[lang='ar'] .see-copy h3 {
  line-height: 1.4;
  letter-spacing: 0;
}
.see-copy > p {
  max-width: 46ch;
  color: var(--muted);
  line-height: 1.65;
}
.see-copy .sc-steps {
  grid-auto-flow: row;
  gap: 0;
  margin-top: 6px;
}
.see-copy .sc-hold {
  justify-self: start;
}
@media (max-width: 999px) {
  /* on a phone the film comes straight after its title */
  .see-panel > .see-copy {
    display: contents;
  }
  .see-copy h3 {
    order: 1;
  }
  .see-copy > p {
    order: 2;
  }
  .see-panel > .sc-stage {
    order: 3;
  }
  .see-copy .sc-steps {
    order: 4;
    margin-top: 0;
  }
  .see-copy .sc-hold {
    order: 5;
  }
}
@media (min-width: 1000px) {
  .see-panel {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: 48px;
    align-items: center;
  }
}

/* the stage: a desktop, a phone that rises into view, a cursor */
.sc-stage {
  --brw: clamp(12px, 2.2vw, 26px);
  --brg: clamp(4px, 0.8vw, 12px);
  display: grid;
  grid-template-columns: var(--brw) minmax(0, 1fr) var(--brw);
  gap: var(--brg);
  min-width: 0;
}
.sc-br {
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
  stroke: var(--primary);
  stroke-width: clamp(4px, 0.6vw, 7px);
  stroke-linecap: round;
}
.see-stage {
  position: relative;
  min-width: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 16px;
}
.see-desk {
  position: absolute;
  inset: 0;
  overflow: hidden;
  container: win / inline-size;
  border: 1px solid var(--a-line);
  border-radius: 14px;
  background: var(--a-bg);
  color: var(--a-ink);
  transform-origin: 78% 40%;
  transition: transform 0.8s var(--ease), opacity 0.8s var(--ease);
}
#site[dir='rtl'] .see-desk {
  transform-origin: 22% 40%;
}
/* behind the phone the desktop steps back under a veil of the page's colour */
.see-desk::after {
  content: '';
  position: absolute;
  z-index: 8;
  inset: 0;
  background: var(--paper);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s var(--ease);
}
.see-stage[data-dev='ph'] .see-desk {
  transform: scale(0.94);
}
.see-stage[data-dev='ph'] .see-desk::after {
  opacity: 0.66;
}
.see-ph {
  position: absolute;
  z-index: 2;
  bottom: 3%;
  inset-inline-start: 8%;
  width: 29%;
  aspect-ratio: 9 / 18.4;
  container: ph / inline-size;
  padding: clamp(3px, 0.8%, 7px);
  border-radius: 14% / 6.8%;
  background: #121513;
  box-shadow:
    0 0 0 1px rgba(239, 233, 225, 0.12),
    0 24px 44px -14px rgba(0, 0, 0, 0.5);
  transform: translateY(116%) rotate(6deg);
  transition: transform 0.85s var(--ease);
}
#site[dir='rtl'] .see-ph {
  transform: translateY(116%) rotate(-6deg);
}
.see-stage[data-dev='ph'] .see-ph {
  transform: translateY(0) rotate(-2.5deg);
}
#site[dir='rtl'] .see-stage[data-dev='ph'] .see-ph {
  transform: translateY(0) rotate(2.5deg);
}
.ph-scr {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 12% / 5.8%;
  background: var(--a-bg);
  color: var(--a-ink);
  font: 400 clamp(11px, 7cqi, 14px) / 1.35 var(--font-text);
  text-align: start;
}
#site[lang='ar'] .ph-scr,
.ph-scr[lang='ar'] {
  font-family: var(--font-ar);
}
/* the cursor: an arrow on the desktop, a fingertip on the phone */
.see-cur {
  position: absolute;
  z-index: 6;
  top: 0;
  left: 0;
  width: 22px;
  height: 22px;
  margin: -2px 0 0 -4.5px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  will-change: transform;
}
.see-cur.is-shown {
  opacity: 1;
}
.see-cur svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: #ffffff;
  stroke: #15201a;
  stroke-width: 1.5;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 2.5px rgba(0, 0, 0, 0.3));
  transform-origin: 22% 12%;
  transition: transform 0.12s ease, opacity 0.2s ease;
}
.see-cur > i {
  position: absolute;
  top: -12px;
  left: -10px;
  width: 30px;
  height: 30px;
  border: 2px solid rgba(21, 32, 26, 0.55);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transform: scale(0.6);
  transition: transform 0.14s ease, opacity 0.2s ease;
}
.see-cur.is-touch svg {
  opacity: 0;
}
.see-cur.is-touch > i {
  opacity: 1;
  transform: none;
}
.see-cur.is-down svg {
  transform: scale(0.8, 0.74);
}
.see-cur.is-down > i {
  transform: scale(0.78);
}
.see-rip {
  position: absolute;
  z-index: 5;
  top: 0;
  left: 0;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border: 2px solid var(--saffron);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}
/* what a film switches: views, things that appear, rows that arrive, marks */
.see-stage .vw {
  position: absolute;
  inset: 0;
  padding: 0.9em 1.1em 1em;
  opacity: 0;
  visibility: hidden;
  transform: translateX(1.4em);
  transition:
    opacity 0.22s ease,
    transform 0.4s var(--ease),
    visibility 0s linear 0.4s;
}
#site[dir='rtl'] .see-stage .vw,
.sc-screen[dir='rtl'] .vw {
  transform: translateX(-1.4em);
}
#site .see-stage .vw.is-on,
.see-stage .vw.is-on {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition:
    opacity 0.38s ease 0.2s,
    transform 0.55s var(--ease) 0.2s,
    visibility 0s;
}
.see-stage .pop {
  opacity: 0;
  transform: translateY(0.45em);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.see-stage .pop.is-on {
  opacity: 1;
  transform: none;
  transition: opacity 0.4s ease, transform 0.5s var(--ease);
}
.see-stage .fill {
  opacity: 0;
  transition: opacity 0.2s ease;
}
.see-stage .fill.is-on {
  opacity: 1;
  transition: opacity 0.45s ease 0.08s;
}
.see-stage .sc-tr.grow {
  max-height: 0;
  padding-block: 0;
  border-bottom-width: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    max-height 0.5s var(--ease),
    padding 0.5s var(--ease),
    opacity 0.3s ease 0.12s;
}
.see-stage .sc-tr.grow[style*='--d'] {
  transition-delay: calc(var(--d) * 0.14s);
}
.see-stage .sc-tr.grow.is-on {
  max-height: 3.2em;
  padding-block: 0.5em;
  border-bottom-width: 1px;
  opacity: 1;
}
.see-stage .sc-diff.grow {
  max-height: 0;
  padding-block: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s var(--ease), padding 0.5s, opacity 0.3s 0.12s;
}
.see-stage .sc-diff.grow.is-on {
  max-height: 4.2em;
  padding-block: 0.32em;
  opacity: 1;
}
.see-stage.is-snap *,
.see-stage.is-snap *::before,
.see-stage.is-snap *::after,
.nt.is-snap *,
.nt.is-snap *::before,
.nt.is-snap *::after {
  transition: none !important;
  animation: none !important;
}
.see-stage.is-fade .see-desk,
.see-stage.is-fade .see-ph,
.see-stage.is-fade .ob-drop,
.see-stage.is-fade .ob-made {
  opacity: 0 !important;
  transition: opacity 0.4s ease !important;
}
/* On a phone a film shows one device at a time, at the stage's full width:
   the phone alone while the branch acts, the app's own panel (no rail, no
   search) the rest of the time, and no text under 11px. */
@media (max-width: 600px) {
  .sc-stage {
    --brw: 10px;
    --brg: 4px;
  }
  .see-stage {
    aspect-ratio: 3 / 4;
  }
  .see-ph,
  #site[dir='rtl'] .see-ph {
    inset: 0;
    width: auto;
    aspect-ratio: auto;
    padding: 5px;
    border-radius: 24px;
    transform: translateY(104%);
  }
  .see-stage[data-dev='ph'] .see-ph,
  #site[dir='rtl'] .see-stage[data-dev='ph'] .see-ph {
    transform: none;
  }
  .ph-scr {
    border-radius: 19px;
    font-size: 14.5px;
  }
  .see-stage[data-dev='ph'] .see-desk {
    opacity: 0;
    transform: scale(0.97);
  }
}

/* ── the app, redrawn ─────────────────────────────────────────────────────── */
.sc-screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  font: 400 clamp(11px, 2.2cqi, 15.5px) / 1.35 var(--font-text);
  text-align: start;
  --na-s: left;
  --na-e: right;
}
#site[lang='ar'] .sc-screen,
.sc-screen[lang='ar'] {
  font-family: var(--font-ar);
}
.sc-screen[lang='en'] {
  font-family: var(--font-text);
}
#site[dir='rtl'] .sc-screen,
.sc-screen[dir='rtl'],
#site[dir='rtl'] .ph-scr,
.ph-scr[dir='rtl'] {
  --na-s: right;
  --na-e: left;
}
#site .sc-screen[dir='ltr'] {
  --na-s: left;
  --na-e: right;
}
/* the language film: the old screen is wiped away right to left, the way
   Arabic reads, behind a saffron edge */
.sc-ghost {
  z-index: 4;
  pointer-events: none;
}
.sc-sweep {
  position: absolute;
  z-index: 5;
  top: 0;
  bottom: 0;
  width: 3px;
  margin-left: -1.5px;
  background: var(--saffron);
  box-shadow: 0 0 18px 4px color-mix(in srgb, var(--saffron) 55%, transparent);
  pointer-events: none;
}
/* in the language film, figures and Latin names keep the Latin face */
.sc-c[lang='ar'] .n,
.sc-c[lang='ar'] bdi {
  font-family: var(--font-text);
}
.sc-screen .ic,
.ph-scr .ic {
  width: 1.3em;
  height: 1.3em;
}
.sc-screen .n,
.ph-scr .n {
  direction: ltr;
  unicode-bidi: isolate;
  font-style: normal;
  font-variant-numeric: tabular-nums;
}
.sc-screen b,
.ph-scr b {
  font-weight: 700;
}
/* a figure with its unit: in Arabic the unit follows it, right to left */
#site[lang='ar'] .n.u {
  direction: rtl;
}
.sc-screen small,
.ph-scr small {
  color: var(--a-muted);
  font-size: 0.86em;
}
.ph-scr small {
  font-size: 0.88em;
}
.sc-top {
  display: flex;
  flex: none;
  align-items: center;
  gap: 0.8em;
  height: 3.2em;
  padding-inline: 1em;
  border-bottom: 1px solid var(--a-line);
  background: var(--a-panel);
}
.sc-mark {
  width: 2em;
  height: 2em;
  flex: none;
  --ctx-line: var(--a-green);
  --ctx-dot: var(--saffron);
}
.sc-search {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  flex: 0 1 13em;
  min-width: 0;
  height: 2.2em;
  padding-inline: 0.7em;
  border-radius: 0.6em;
  background: var(--a-bg);
  color: var(--a-muted);
}
.sc-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  height: 2.2em;
  margin-inline-start: auto;
  padding-inline: 0.7em;
  border: 1px solid var(--a-line);
  border-radius: 0.6em;
  font-weight: 600;
  white-space: nowrap;
}
.sc-pill .ic {
  color: var(--a-muted);
}
.sc-co {
  display: grid;
  flex: none;
  place-items: center;
  width: 2.2em;
  height: 2.2em;
  border-radius: 0.55em;
  background: var(--a-soft);
  color: var(--a-green);
  font-weight: 700;
}
.sc-body {
  position: relative;
  display: flex;
  flex: 1;
  min-height: 0;
}
.sc-rail {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  gap: 1.2em;
  width: 3.4em;
  padding-top: 1.2em;
  border-inline-end: 1px solid var(--a-line);
  background: var(--a-panel);
  color: var(--a-muted);
}
.sc-rail .ic {
  width: 1.4em;
  height: 1.4em;
  transition: color 0.3s ease;
}
.sc-rail .is-on {
  color: var(--a-green);
  --pt: var(--saffron);
}
.sc-main {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  padding: 0.9em 1.1em 1em;
}
@container win (max-width: 470px) {
  .sc-rail,
  .sc-search,
  .sc-xc {
    display: none !important;
  }
  .sc-main,
  .see-stage .vw {
    padding: 0.8em;
  }
}
.sc-h {
  display: flex;
  align-items: center;
  gap: 0.7em;
  margin-bottom: 0.9em;
}
.sc-h > .ic {
  box-sizing: content-box;
  padding: 0.45em;
  border-radius: 0.55em;
  background: var(--a-soft);
  color: var(--a-green);
  --pt: var(--saffron);
}
.sc-h > div {
  display: grid;
  min-width: 0;
}
.sc-h b {
  font-size: 1.1em;
}
.sc-h small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sc-chip {
  display: inline-flex;
  align-items: center;
  margin-inline-start: auto;
  padding: 0.2em 0.65em;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--a-soft);
  color: var(--a-green);
  font-size: 0.82em;
  font-weight: 700;
  white-space: nowrap;
}
.sc-chip.s-wait {
  border-color: var(--a-line);
  background: none;
  color: var(--a-muted);
}
.sc-chip.s-rev {
  border-color: color-mix(in srgb, var(--saffron) 70%, transparent);
  background: none;
  color: var(--a-ink);
}
/* buttons a step has used up leave the screen */
.see-stage .sc-act[data-off]:not(.is-on) {
  visibility: hidden;
}
/* a status chip that swaps for another: only the one that is on shows */
.see-stage .sc-chip[data-on],
.see-stage .sc-chip[data-off] {
  display: none;
}
.see-stage .sc-chip.is-on {
  display: inline-flex;
}
@keyframes sc-pulse {
  50% {
    opacity: 0.25;
  }
}

/* tables */
.sc-t {
  display: grid;
  font-size: 0.92em;
}
.sc-tr {
  position: relative;
  display: grid;
  grid-template-columns: var(--cols);
  gap: 0.8em;
  align-items: center;
  padding: 0.5em 0.6em;
  border-bottom: 1px solid var(--a-line);
  white-space: nowrap;
  background: linear-gradient(var(--a-hi), var(--a-hi)) no-repeat left / 0 100%;
  transition: background-size 0.5s var(--ease);
}
#site[dir='rtl'] .sc-tr,
.sc-screen[dir='rtl'] .sc-tr {
  background-position: right;
}
#site .sc-screen[dir='ltr'] .sc-tr {
  background-position: left;
}
.sc-tr > * {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sc-tr > .sc-btn {
  overflow: visible;
}
.sc-tr > .n {
  text-align: var(--na-e);
}
.sc-tr > .n:first-child,
.t-exc .sc-tr > .n:nth-child(2),
.t-sal .sc-tr > .n:nth-child(2) {
  text-align: var(--na-s);
}
.sc-tr.hl.is-on {
  background-size: 100% 100%;
}
.sc-th {
  border-bottom: 0;
  border-radius: 0.45em;
  background: var(--a-head);
  color: var(--a-green);
  font: 600 0.84em/1.3 var(--font-mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
#site[lang='ar'] .sc-th,
.sc-screen[lang='ar'] .sc-th {
  font-family: var(--font-ar);
  font-size: 0.86em;
  letter-spacing: 0;
}
.sc-th > :not(:first-child) {
  text-align: end;
}
.t-exc .sc-th > :nth-child(2),
.t-sal .sc-th > :nth-child(2),
.t-sal .sc-th > :nth-child(3),
.t-pl .sc-th > :first-child,
.t-thin .sc-th > :first-child,
.t-ap .sc-th > :nth-child(2),
.t-po .sc-th > :nth-child(2),
.t-po .sc-th > :nth-child(3) {
  text-align: start;
}
.sc-tot {
  border-bottom: 0;
  font-weight: 700;
}
.sc-bad {
  color: var(--a-bad);
  font-weight: 600;
}
.t-ap {
  --cols: 8.6em minmax(0, 1fr) 5.8em 6em auto;
}
.t-exc {
  --cols: 8.8em minmax(0, 1fr) 5.4em;
}
.t-cnt {
  --cols: minmax(0, 1fr) 5.4em 5.6em 5.8em 5em;
}
.t-cnt .sc-tot {
  --cols: minmax(0, 1fr) 4.6em;
}
.t-sal {
  --cols: 9em 5.8em minmax(0, 1fr) 4.4em;
}
.t-mg2 {
  --cols: minmax(0, 1fr) 4.4em 4.2em 6em 8em;
}
.t-stk {
  --cols: minmax(0, 1fr) 6.4em 6.2em 5.4em;
}
.t-old {
  --cols: minmax(0, 1fr) 6.2em;
  margin-top: 0.4em;
}
.sc-ok {
  color: var(--a-muted);
}
.t-rst {
  --cols: minmax(0, 1fr) 5.6em 6.8em 6em;
}
.t-pko {
  --cols: minmax(0, 1fr) 4em 5.4em 6em;
}
.t-vat {
  --cols: minmax(0, 1fr) 4em 4em;
}
.t-thin {
  --cols: minmax(0, 1fr) 5em;
}
.t-pl {
  --cols: minmax(0, 1fr) 7em 8em;
}
.t-lot {
  --cols: minmax(0, 1fr) 4.4em 5.8em;
}
.t-po {
  --cols: 8.6em minmax(0, 1fr) 8.6em 5.8em;
}
.t-mg {
  --cols: minmax(0, 1fr) 4em 4em 8em;
}
.sc-rev {
  --cols: minmax(0, 1fr) 6.4em;
}
@container win (max-width: 470px) {
  .t-ap {
    --cols: minmax(0, 1fr) 4.6em auto;
  }
  .t-exc {
    --cols: minmax(0, 1fr) 5em;
  }
  .t-sal {
    --cols: 8.6em minmax(0, 1fr) 3.6em;
  }
  .t-mg2 {
    --cols: minmax(0, 1fr) 3.3em 3.1em 5.5em;
  }
  .t-stk {
    --cols: minmax(0, 1fr) 5.4em 4.6em;
  }
  /* the roast keeps its Avg cost on a phone: it is what the step shows */
  .t-rst {
    --cols: minmax(0, 1fr) 4.4em 3.6em 4.8em;
  }
  .t-rst .sc-tr {
    gap: 0.45em;
    padding-inline: 0.35em;
  }
  /* its names and headings wrap rather than lose their ends */
  .t-rst .sc-th,
  .t-rst .sc-tr > :first-child {
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .t-rst .sc-th {
    align-items: end;
  }
  .see-stage .t-rst .sc-tr.grow.is-on {
    max-height: 4.8em;
  }
  .t-pko {
    --cols: minmax(0, 1fr) 3.2em 4.4em;
  }
  .t-cnt {
    --cols: minmax(0, 1fr) 3.1em 3.6em 3.6em 4.2em;
  }
  .t-cnt .sc-tr {
    gap: 0.45em;
    padding-inline: 0.3em;
  }
  .t-cnt .sc-tr > :first-child {
    white-space: normal;
    line-height: 1.2;
  }
  .t-mg {
    --cols: minmax(0, 1fr) 3.4em 3.4em 6em;
  }
  .t-po {
    --cols: 7.4em minmax(0, 1fr) 4.6em;
  }
  .t-po .sc-tr > :nth-child(2) {
    display: none;
  }
}
.sc-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45em;
  padding: 0.55em 0.95em;
  border-radius: 0.55em;
  background: var(--a-green);
  color: var(--a-on-green);
  font-weight: 700;
  white-space: nowrap;
  transition: transform 0.12s ease, box-shadow 0.3s ease;
}
.sc-btn-s {
  padding: 0.35em 0.7em;
}
.sc-btn-o {
  border: 1px solid var(--a-line);
  background: var(--a-panel);
  color: var(--a-ink);
}
.sc-tr:not(:has(.b-rec)) > .sc-btn-s {
  border: 1px solid var(--a-line);
  background: var(--a-panel);
  color: var(--a-ink);
}
/* a press: the thing sinks a little, and its row lights */
.is-press {
  transform: scale(0.96);
}
.sc-tr.is-press {
  transform: none;
  background-size: 100% 100%;
}
.sc-btn.is-press {
  box-shadow: 0 0 0 0.3em color-mix(in srgb, var(--saffron) 50%, transparent);
}
.sc-act {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5em 0.9em;
  margin-top: 0.9em;
}
.sc-act small {
  color: var(--a-muted);
}
.sc-grp {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2em 0.8em;
  margin-bottom: 0.5em;
  padding-bottom: 0.4em;
  border-bottom: 2px solid var(--a-ink);
  font-weight: 700;
}
.sc-grp small {
  font-weight: 400;
}
.sc-grp > i {
  margin-inline-start: auto;
  min-width: 1.6em;
  padding: 0 0.45em;
  border-radius: 999px;
  background: var(--a-bad);
  color: var(--a-panel);
  font-size: 0.86em;
  text-align: center;
}
.vw > .sc-grp {
  margin-top: 0.5em;
  padding: 0.45em 0.2em;
  border-bottom: 1px solid var(--a-line);
}
.vw > .sc-grp.is-open {
  border-bottom: 2px solid var(--a-ink);
}
.vw > .sc-grp::before {
  content: '›';
  color: var(--a-muted);
}
.vw > .sc-grp.is-open::before {
  transform: rotate(90deg);
}
.sc-sum2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6em;
  margin-bottom: 0.4em;
}
.sc-sum2 > div {
  display: grid;
  gap: 0.15em;
  padding: 0.6em 0.8em;
  border: 1px solid var(--a-line);
  border-radius: 0.7em;
  background: var(--a-panel);
}
.sc-sum2 b {
  font: 800 1.35em/1.15 var(--font-display);
}
.sc-sum2 > div:last-child b {
  color: var(--a-bad);
}
/* a drawer that slides in from the end, as the app's sheets do */
.sc-drawer {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  inset-inline-end: 0;
  display: grid;
  align-content: start;
  gap: 0.45em;
  width: min(25em, 88%);
  padding: 0.8em 1em;
  overflow: hidden;
  border-inline-start: 1px solid var(--a-line);
  background: var(--a-panel);
  box-shadow: -1.6em 0 2.4em -1.6em var(--a-shadow);
  transform: translateX(108%);
  transition: transform 0.6s var(--ease);
}
#site[dir='rtl'] .sc-drawer {
  box-shadow: 1.6em 0 2.4em -1.6em var(--a-shadow);
  transform: translateX(-108%);
}
#site .sc-drawer.is-on {
  transform: none;
}
.sc-drawer .sc-h {
  margin-bottom: 0.2em;
}
.sc-form {
  display: grid;
  margin: 0;
}
.sc-form div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.8em;
  align-items: center;
  padding-block: 0.25em;
  border-bottom: 1px solid var(--a-line);
}
.sc-form dt {
  color: var(--a-muted);
}
.sc-form dd {
  margin: 0;
  font-weight: 600;
}
/* a field being typed into: a box, a focus ring and a caret */
.sc-in,
.ph-in {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 5.6em;
  min-height: 1.7em;
  padding: 0.1em 0.55em;
  border: 1px solid var(--a-line);
  border-radius: 0.4em;
  background: var(--a-panel);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.sc-in.is-focus,
.ph-in.is-focus {
  border-color: var(--a-green);
  box-shadow: 0 0 0 0.2em color-mix(in srgb, var(--a-green) 22%, transparent);
}
.is-focus > b::after {
  content: '';
  display: inline-block;
  width: 1px;
  height: 1em;
  margin-inline-start: 1px;
  background: currentColor;
  vertical-align: -0.12em;
  animation: sc-caret 0.9s steps(1) infinite;
}
@keyframes sc-caret {
  50% {
    opacity: 0;
  }
}
.is-sel > b {
  background: color-mix(in srgb, var(--a-green) 28%, transparent);
}
/* the draft entry a bill will post, as the bill form shows it */
.sc-je {
  display: grid;
  padding: 0.6em 0.7em;
  border: 1px solid var(--a-line);
  border-radius: 0.5em;
  font-size: 0.9em;
}
.sc-je > p {
  margin-bottom: 0.3em;
  font-weight: 700;
}
.sc-je > div {
  display: grid;
  grid-template-columns: 1.8em minmax(0, 1fr) auto;
  gap: 0.5em;
  align-items: center;
  padding-block: 0.22em;
  background: linear-gradient(var(--a-hi), var(--a-hi)) no-repeat left / 0 100%;
  transition: background-size 0.5s var(--ease);
}
#site[dir='rtl'] .sc-je > div {
  background-position: right;
}
.sc-je i {
  padding: 0.05em 0;
  border-radius: 0.25em;
  background: var(--a-bg);
  color: var(--a-muted);
  font: 500 0.86em/1.4 var(--font-mono);
  font-style: normal;
  text-align: center;
}
.sc-je span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sc-je b {
  font-weight: 600;
}
.sc-je .hl.is-on {
  background-size: 100% 100%;
}
.sc-diff span {
  font-weight: 700;
  white-space: normal;
  line-height: 1.25;
}
/* the difference, said in a line with the brand's point, not a box */
.sc-flag {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 600;
}
.sc-flag::before {
  content: '';
  flex: none;
  width: 0.65em;
  height: 0.65em;
  border-radius: 50%;
  background: var(--saffron);
  box-shadow: 0 0 0 0.25em color-mix(in srgb, var(--saffron) 25%, transparent);
}
.sc-flag b {
  color: var(--a-bad);
}
.sc-drawer {
  grid-template-columns: minmax(0, 1fr) auto;
}
.sc-drawer > * {
  grid-column: 1 / -1;
}
.sc-drawer > .sc-flag {
  grid-column: 1;
}
.sc-drawer > .sc-btn {
  grid-column: 2;
  justify-self: end;
}
.sc-toast {
  position: absolute;
  z-index: 3;
  inset-inline: 0;
  bottom: 1.2em;
  display: flex;
  align-items: center;
  gap: 0.5em;
  width: max-content;
  max-width: 92%;
  margin-inline: auto;
  padding: 0.6em 1em;
  border-radius: 0.6em;
  background: var(--a-ink);
  color: var(--a-panel);
  font-weight: 600;
  opacity: 0;
  transform: translateY(1.2em);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.sc-toast .ic,
.ph-toast .ic {
  color: var(--saffron);
  stroke-width: 3;
}
.sc-toast.is-on {
  opacity: 1;
  transform: none;
  transition: opacity 0.4s ease, transform 0.55s cubic-bezier(0.3, 1.4, 0.6, 1);
}
/* the roast */
.rb-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 1em;
  align-items: center;
  margin-bottom: 0.8em;
}
.rb-flow > div {
  display: grid;
  gap: 0.15em;
}
.rb-flow b {
  font: 800 1.7em/1.1 var(--font-display);
}
.rb-flow > div > span {
  color: var(--a-muted);
}
.rb-flow > .ic {
  color: var(--a-muted);
}
.rb-bar {
  display: flex;
  height: 0.95em;
  overflow: hidden;
  border-radius: 999px;
  background: repeating-linear-gradient(
    135deg,
    var(--a-bad) 0 2px,
    transparent 2px 6px
  );
}
.rb-out {
  width: 100%;
  border-radius: 999px;
  background: var(--a-green);
  transition: width 1.1s var(--ease);
}
.rb-bar.is-on .rb-out {
  width: 84.6%;
}
.rb-legend {
  display: flex;
  justify-content: space-between;
  gap: 1em;
  margin-top: 0.4em;
  font-size: 0.92em;
  font-weight: 600;
}
.pk-big {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8em;
  margin-bottom: 0.9em;
}
.pk-big > div {
  display: grid;
  gap: 0.15em;
  padding-top: 0.4em;
  border-top: 2px solid var(--a-ink);
}
.pk-big b {
  justify-self: start;
  font: 800 2.2em/1.05 var(--font-display);
  letter-spacing: -0.03em;
}
.pk-big i {
  font-style: normal;
}
/* the language film: the rail with its names, the profile menu */
.sc-c .sc-top {
  gap: 0.7em;
}
.sc-c .sc-pill {
  margin-inline-start: auto;
}
.sc-rail-l {
  align-items: stretch;
  gap: 0.3em;
  width: 9.6em;
  padding: 0.9em 0.5em;
}
.sc-rail-l > span {
  display: flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.45em 0.6em;
  border-radius: 0.5em;
  white-space: nowrap;
}
.sc-rail-l > .is-on {
  background: var(--a-soft);
  color: var(--a-green);
  font-weight: 700;
}
.sc-rail-l > .sc-av {
  margin-top: auto;
  color: var(--a-ink);
  font-weight: 600;
}
.sc-av i {
  display: grid;
  flex: none;
  place-items: center;
  width: 1.9em;
  height: 1.9em;
  border-radius: 50%;
  background: var(--a-green);
  color: var(--a-on-green);
  font: 700 0.78em/1 var(--font-text);
  font-style: normal;
}
.sc-av.is-press {
  background: var(--a-bg);
}
.sc-menu {
  position: absolute;
  z-index: 3;
  bottom: 3.4em;
  inset-inline-start: 0.6em;
  display: grid;
  gap: 0.4em;
  width: 13.5em;
  padding: 0.8em;
  border: 1px solid var(--a-line);
  border-radius: 0.7em;
  background: var(--a-panel);
  box-shadow: 0 1.2em 2.4em -0.8em var(--a-shadow);
}
.sc-menu p {
  color: var(--a-muted);
  font-size: 0.82em;
  font-weight: 600;
}
.sc-seg {
  display: grid;
  grid-auto-columns: 1fr;
  grid-auto-flow: column;
  padding: 0.18em;
  border: 1px solid var(--a-line);
  border-radius: 0.5em;
}
.sc-seg i {
  padding: 0.3em 0;
  border-radius: 0.35em;
  font-style: normal;
  font-weight: 600;
  text-align: center;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.sc-seg .is-on,
.sc-c[lang='en'] .m-en,
.sc-c[lang='ar'] .m-ar {
  background: var(--a-green);
  color: var(--a-on-green);
}
.sc-seg i[lang='ar'] {
  font-family: 'Alexandria', var(--font-ar);
}
@container win (max-width: 560px) {
  .sc-rail-l {
    width: 3.2em;
  }
  .sc-rail-l > span > span {
    display: none;
  }
  .sc-rail-l > span {
    justify-content: center;
    padding-inline: 0;
  }
}
.sc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em;
  margin-bottom: 0.9em;
}
.sc-chips span {
  padding: 0.3em 0.75em;
  border: 1px solid var(--a-line);
  border-radius: 0.55em;
  background: var(--a-panel);
  white-space: nowrap;
}
.sc-chips .is-on {
  border-color: var(--a-green);
  background: var(--a-green);
  color: var(--a-on-green);
  font-weight: 700;
}
.sc-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6em;
  margin-bottom: 0.9em;
}
.sc-kpis > div,
.ph-kpi {
  display: grid;
  gap: 0.2em;
  min-width: 0;
  padding: 0.7em 0.8em;
  border: 1px solid var(--a-line);
  border-radius: 0.7em;
  background: var(--a-panel);
}
.sc-kpis b,
.ph-kpi b {
  overflow: hidden;
  font: 800 1.3em/1.2 var(--font-display);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sc-kpis em,
.ph-kpi em {
  display: flex;
  gap: 0.3em;
  color: var(--a-muted);
  font-size: 0.84em;
  font-style: normal;
}
.sc-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 0.9em;
  align-items: start;
}
.sc-chart {
  display: grid;
  gap: 0.6em;
  padding: 0.7em 0.8em 1.9em;
  border: 1px solid var(--a-line);
  border-radius: 0.7em;
  background: var(--a-panel);
}
.sc-bars {
  display: flex;
  align-items: flex-end;
  gap: 0.45em;
  height: 7em;
}
.sc-bars > span {
  position: relative;
  flex: 1;
  height: calc(var(--h) * 100%);
  border-radius: 0.3em 0.3em 0 0;
  background: var(--a-bar);
}
.sc-bars > .is-on {
  background: var(--a-green);
}
.sc-bars i {
  position: absolute;
  top: calc(100% + 0.35em);
  inset-inline: -0.6em;
  color: var(--a-muted);
  font-size: 0.78em;
  font-style: normal;
  text-align: center;
  white-space: nowrap;
}
@container win (max-width: 470px) {
  .sc-split {
    grid-template-columns: minmax(0, 1fr);
  }
  .sc-chart {
    display: none;
  }
  .sc-kpis b {
    font-size: 1.05em;
  }
  .sc-kpis > div {
    padding: 0.55em 0.6em;
  }
}
/* the phone's own screens */
.ph-top {
  display: flex;
  flex: none;
  align-items: center;
  gap: 0.6em;
  height: 3.4em;
  padding: 0.6em 0.9em 0;
  background: var(--a-panel);
  border-bottom: 1px solid var(--a-line);
}
.ph-top .sc-mark {
  width: 1.9em;
  height: 1.9em;
}
.ph-top .sc-pill {
  height: 2em;
  padding-inline: 0.55em;
  font-size: 0.92em;
}
.ph-main {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.4em;
  padding: 0.8em 0.85em;
}
.ph-h {
  font: 800 1.35em/1.2 var(--font-display);
}
.ph-ln {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.2em 0.5em;
  align-items: center;
  padding: 0.45em 0;
  border-bottom: 1px solid var(--a-line);
}
.ph-ln > small {
  grid-column: 1;
}
.ph-ln > span:first-child {
  min-width: 0;
}
.ph-ln > .ph-in,
.ph-ln > .ph-pair,
.ph-ln > .ph-v {
  grid-column: 2;
  grid-row: 1 / span 2;
}
.ph-pair {
  display: flex;
  align-items: center;
  gap: 0.3em;
}
.ph-pair .ph-in {
  min-width: 2.6em;
}
.ph-in {
  min-width: 3.4em;
  min-height: 2.3em;
  font-weight: 700;
}
.ph-done .ph-v::after {
  content: ' ✓';
  color: var(--a-green);
}
.ph-wide {
  min-width: 5em;
}
.ph-v {
  font-weight: 700;
}
.ph-go {
  margin-top: auto;
  padding-block: 0.85em;
}
.ph-toast {
  position: absolute;
  inset-inline: 0.9em;
  bottom: 4.6em;
  display: flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.6em 0.8em;
  border-radius: 0.6em;
  background: var(--a-ink);
  color: var(--a-panel);
  font-weight: 600;
  opacity: 0;
  transform: translateY(0.8em);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.ph-toast.is-on {
  opacity: 1;
  transform: none;
  transition: opacity 0.35s ease, transform 0.5s cubic-bezier(0.3, 1.4, 0.6, 1);
}
.ph-kpi {
  padding: 0.75em 0.85em;
}
.ph-kpi b {
  font-size: 1.45em;
}
.ph-kpi em {
  font-size: 0.9em;
}

/* the steps of a film, each with the time left in it, and a pause */
.sc-steps {
  display: grid;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  gap: 12px;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sc-steps button {
  position: relative;
  display: grid;
  align-content: start;
  gap: 3px;
  width: 100%;
  min-height: 44px;
  padding: 11px 0 9px;
  border: 0;
  border-top: 2px solid var(--line);
  background: none;
  color: var(--muted);
  font: inherit;
  text-align: start;
  cursor: pointer;
  transition: color 0.2s ease;
}
.sc-steps button::after {
  content: '';
  position: absolute;
  top: -2px;
  inset-inline: 0;
  height: 2px;
  background: var(--saffron);
  transform: scaleX(var(--p, 0));
  transform-origin: left;
}
#site[dir='rtl'] .sc-steps button::after {
  transform-origin: right;
}
.sc-steps b {
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.3;
}
.sc-steps span {
  font-size: 0.86rem;
  line-height: 1.45;
}
.sc-steps button[aria-current='step'],
.sc-steps button:hover {
  color: var(--ink);
}
.sc-hold {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: none;
  color: var(--ink);
  font: 600 0.88rem/1 var(--font-text);
  cursor: pointer;
}
#site[lang='ar'] .sc-hold {
  font-family: var(--font-ar);
}
.sc-hold[hidden] {
  display: none;
}
/* The Pause appears once its film has loaded (js/home-scenes.js, as the film
   comes near), and only where motion is wanted. Its place is kept from the
   start, so the page does not grow above a section someone is going to
   (/#faq, /#contact). */
@media (prefers-reduced-motion: no-preference) {
  html.js .sc-hold[hidden] {
    display: inline-flex;
    visibility: hidden;
  }
}
.sc-hold .ic {
  width: 16px;
  height: 16px;
}
.sc-hold .i-play,
.sc-hold .t-play,
.sc-hold.is-held .i-pause,
.sc-hold.is-held .t-pause {
  display: none;
}
.sc-hold.is-held .i-play,
.sc-hold.is-held .t-play {
  display: inline;
}

/* ── the Advisor's night, on one screen ──────────────────────────────────── */
.home-night {
  --k: 0;
  position: relative;
  isolation: isolate;
  padding-block: clamp(64px, 8vw, 104px);
  background: linear-gradient(180deg, var(--home-night-a), var(--home-night-b));
  color: var(--band-ink);
  scroll-margin-top: 64px;
}
/* first light, rising with the hours */
.home-night::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(
    90% 60% at 50% 115%,
    rgba(232, 169, 34, 0.3),
    transparent 70%
  );
  opacity: var(--kp, 0);
  transition: opacity 1.2s ease;
  pointer-events: none;
}
.home-night .home-k {
  color: var(--saffron);
}
.home-night .home-sub,
.home-night .home-note {
  color: var(--band-muted);
}
.home-night :focus-visible {
  outline-color: var(--saffron);
}
.home-night .home-head {
  margin-bottom: clamp(28px, 3.4vw, 44px);
}
.nt {
  --n: 7;
  --step: 0;
  --p: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
}
.adv-sky,
.adv-hours {
  grid-row: 1;
  grid-column: 1;
}
.adv-sky {
  position: relative;
  pointer-events: none;
}
.adv-body {
  position: absolute;
  z-index: 2;
  top: 0;
  inset-inline-start: calc((var(--step) + 0.5) / var(--n) * 100%);
  width: 38px;
  height: 38px;
  margin-inline-start: -19px;
  transition: inset-inline-start 0.9s var(--ease), top 0.9s var(--ease);
}
.adv-body svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: opacity 0.8s ease, transform 0.9s var(--ease);
}
.adv-moon {
  fill: #f1e6c9;
  filter: drop-shadow(0 0 10px rgba(241, 230, 201, 0.45));
  transform: rotate(-18deg);
}
.adv-sun {
  fill: var(--saffron);
  stroke: var(--saffron);
  stroke-width: 2;
  stroke-linecap: round;
  filter: drop-shadow(0 0 14px rgba(232, 169, 34, 0.75));
  opacity: 0;
  transform: rotate(-90deg) scale(0.4);
}
.nt.is-end .adv-moon {
  opacity: 0;
  transform: rotate(40deg) scale(0.5);
}
.nt.is-end .adv-sun {
  opacity: 1;
  transform: none;
}
.adv-hours {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--n), minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}
/* the night as a line, filling with saffron as the checks pass */
.adv-hours::before,
.adv-hours::after {
  content: '';
  position: absolute;
  top: 18px;
  inset-inline-start: calc(100% / var(--n) / 2);
  height: 2px;
}
.adv-hours::before {
  width: calc(100% * (var(--n) - 1) / var(--n));
  background: var(--band-line);
}
.adv-hours::after {
  width: calc(
    100% * (var(--n) - 1) / var(--n)
      * min(1, (var(--step) + var(--p)) / (var(--n) - 1))
  );
  background: var(--saffron);
}
.adv-hours button {
  display: grid;
  justify-items: center;
  gap: 4px;
  width: 100%;
  min-height: 44px;
  padding: 44px 2px 6px;
  border: 0;
  background: none;
  color: var(--band-muted);
  font: inherit;
  text-align: center;
  cursor: pointer;
}
.adv-hours button::before {
  content: '';
  position: absolute;
  top: 13px;
  width: 12px;
  height: 12px;
  box-sizing: border-box;
  margin-inline-start: 0;
  border: 2px solid var(--band-muted);
  border-radius: 50%;
  background: var(--home-night-a);
  transition: border-color 0.4s ease, background-color 0.4s ease;
}
.adv-hours li {
  position: relative;
  display: flex;
  justify-content: center;
}
.adv-hours b {
  color: var(--band-ink);
  font: 600 0.74rem/1.2 var(--font-text);
  overflow-wrap: anywhere;
}
#site[lang='ar'] .adv-hours b {
  font: 600 0.74rem/1.3 var(--font-ar);
}
.adv-hours span {
  display: none;
  font-size: 0.86rem;
  line-height: 1.3;
}
.adv-hours .is-past::before,
.adv-hours .is-cur::before {
  border-color: var(--saffron);
  background: var(--saffron);
}
.adv-hours .is-cur b {
  color: var(--saffron);
}
.adv-hours button:hover span,
.adv-hours button:hover b,
.adv-hours .is-cur span {
  color: var(--band-ink);
}
.adv-says {
  display: grid;
}
.adv-says article {
  grid-area: 1 / 1;
  display: grid;
  gap: 14px;
  align-content: start;
}
.js .adv-says article:not(.is-cur) {
  visibility: hidden;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s 0.25s;
}
.js .adv-says article.is-cur {
  transition: opacity 0.5s ease 0.15s, transform 0.6s var(--ease) 0.15s;
}
.adv-tags {
  color: var(--saffron);
  font: 500 0.76rem/1.4 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
#site[lang='ar'] .adv-tags {
  font: 600 0.88rem/1.4 var(--font-ar);
  letter-spacing: 0;
}
.adv-says h3 {
  font: 800 clamp(1.45rem, 2.5vw, 2.1rem) / 1.18 var(--font-display);
  letter-spacing: -0.025em;
  text-wrap: balance;
}
@media (max-width: 999px) {
  .adv-says h3 {
    font-size: 1.32rem;
  }
  /* on a phone the finding comes first, then its screen; the findings share
     one cell, as tall as the longest, so the screen never moves */
  .adv-says {
    order: 2;
  }
  .adv-scr {
    order: 3;
  }
  .adv-foot {
    order: 4;
  }
}
#site[lang='ar'] .adv-says h3 {
  line-height: 1.45;
  letter-spacing: 0;
}
.adv-says p:not(.adv-tags):not(.home-do) {
  max-width: 48ch;
  color: var(--band-muted);
  line-height: 1.6;
}
.home-do {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 12px;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--band-line);
}
.home-do span {
  color: var(--band-muted);
  font: 500 0.72rem/1.4 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
#site[lang='ar'] .home-do span {
  font: 500 0.84rem/1.4 var(--font-ar);
  letter-spacing: 0;
}
.home-do b {
  color: var(--saffron);
}
.home-do b::before {
  content: '→ ';
}
#site[dir='rtl'] .home-do b::before {
  content: '← ';
}
/* the screen the Advisor shows for that hour */
.adv-scr {
  position: relative;
  min-width: 0;
  min-height: 19em;
  overflow: hidden;
  container: win / inline-size;
  border: 1px solid rgba(239, 233, 225, 0.14);
  border-radius: 14px;
  background: var(--a-bg);
  color: var(--a-ink);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
}
.adv-scr .sc-screen {
  position: relative;
  display: grid;
  height: 100%;
  font-size: clamp(11px, 3.1cqi, 15px);
}
.adv-card .sc-t,
.adv-card .ml,
.adv-card .pace,
.adv-card .cs {
  align-content: start;
}
.adv-card {
  grid-area: 1 / 1;
  display: grid;
  align-content: start;
  gap: 0.6em;
  padding: 1.1em 1.2em 1.2em;
}
.js .adv-card:not(.is-cur) {
  visibility: hidden;
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s 0.25s;
}
.js .adv-card.is-cur {
  transition: opacity 0.5s ease 0.2s, transform 0.6s var(--ease) 0.2s;
}
html:not(.js) .adv-card + .adv-card {
  border-top: 1px solid var(--a-line);
}
.adv-card .sc-h > .ic {
  color: var(--a-green);
}
.adv-card {
  grid-template-rows: auto auto 1fr auto;
}
.adv-act {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5em 0.9em;
  align-self: end;
  margin-top: 0.6em;
  padding-top: 0.8em;
  border-top: 1px solid var(--a-line);
}
.adv-act small {
  color: var(--a-muted);
}
/* two figures side by side */
.adv-card .sc-kpis {
  margin-bottom: 0.2em;
}
.adv-kpis {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.adv-card .sc-kpis b.sc-bad {
  color: var(--a-bad);
}
/* a product's pace: what it usually sells against what it sold lately */
.pace {
  display: grid;
  gap: 0.7em;
  padding-top: 0.4em;
}
.pace > div {
  display: grid;
  grid-template-columns: 7em minmax(0, 1fr) 3em;
  gap: 0.7em;
  align-items: center;
}
.pace i {
  width: calc(var(--v) * 100%);
  height: 1.3em;
  border-radius: 0.3em;
  background: var(--a-bar);
}
.pace .is-out i {
  background: var(--a-bad);
}
.pace b {
  text-align: end;
}
.pace > p {
  padding-top: 0.5em;
  border-top: 2px solid var(--a-ink);
  font-weight: 700;
}
.pace > p bdi {
  color: var(--a-bad);
}
/* refunds, branch by branch */
.rf {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1em;
  height: 11em;
  margin-bottom: 1.8em;
  padding-top: 0.6em;
  border-bottom: 2px solid var(--a-ink);
}
.rf > div {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 0.3em;
  height: 100%;
}
.rf i {
  width: min(100%, 3.2em);
  height: calc(var(--v) * 80%);
  min-height: 0.4em;
  border-radius: 0.3em 0.3em 0 0;
  background: var(--a-bar);
}
.rf b {
  order: -1;
  font-weight: 700;
}
.rf bdi {
  position: absolute;
  top: 100%;
  margin-top: 0.45em;
  color: var(--a-muted);
  font-size: 0.86em;
  white-space: nowrap;
}
.rf .is-out i {
  background: var(--a-bad);
}
.rf .is-out b,
.rf .is-out bdi {
  color: var(--a-bad);
  font-weight: 700;
}
/* cash, both ways */
.cs {
  display: grid;
  gap: 0.9em;
  padding-top: 0.6em;
}
.cs > div {
  display: grid;
  grid-template-columns: 10em minmax(0, 1fr) 4.4em;
  gap: 0.7em;
  align-items: center;
}
/* the table under the bars is a table, not a bar row */
.cs > div.sc-t {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}
.cs i {
  height: 1.5em;
  border-radius: 0.3em;
  background: var(--a-bad);
}
.cs-in i {
  width: 54.8%;
  background: var(--a-green);
}
.cs b {
  text-align: end;
}
.cs-gap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1em;
  margin-top: 0.3em;
  padding-top: 0.6em;
  border-top: 2px solid var(--a-ink);
}
.cs-gap b {
  color: var(--a-bad);
  font: 800 1.6em/1.1 var(--font-display);
}
@container win (max-width: 420px) {
  .cs > div {
    grid-template-columns: minmax(0, 1fr) 4.4em;
  }
  .cs > div > span {
    grid-column: 1 / -1;
  }
}
/* the morning email, in the page's language, as each reader is sent it */
.ml-k {
  color: var(--a-muted);
}
.ml {
  display: grid;
  margin: 0;
  padding: 0;
  counter-reset: ml;
  list-style: none;
}
.ml li {
  position: relative;
  padding: 0.6em 0;
  padding-inline-start: 2.2em;
  border-bottom: 1px solid var(--a-line);
  font-weight: 600;
  counter-increment: ml;
}
.ml li::before {
  content: counter(ml);
  position: absolute;
  top: 0.6em;
  inset-inline-start: 0;
  display: grid;
  place-items: center;
  width: 1.5em;
  height: 1.5em;
  border-radius: 50%;
  background: var(--a-green);
  color: var(--a-on-green);
  font-size: 0.9em;
  font-weight: 700;
}
.adv-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}
.adv-foot .sc-hold {
  border-color: rgba(239, 233, 225, 0.4);
  color: var(--band-ink);
}
@media (min-width: 1000px) {
  /* One screen, as the owner asked: from the heading to the last check and
     its controls, the section fits 1280×800 under the sticky header. The
     night is as tall as its longest finding, not a fixed 31em, and each
     check's line sits on one line beside its name. */
  .home-night {
    padding-block: clamp(40px, 3.8vw, 60px);
  }
  .home-night .home-head {
    margin-bottom: clamp(20px, 2vw, 28px);
  }
  .home-night h2 {
    font-size: clamp(2rem, 3.4vw, 3rem);
  }
  .home-night .home-sub {
    margin-top: 12px;
  }
  /* the night in the heading's own margin column, so each finding starts
     under the heading */
  .nt {
    grid-template-columns: 250px minmax(0, 5fr) minmax(0, 6.4fr);
    grid-template-rows: auto auto;
    column-gap: 40px;
    row-gap: 18px;
    align-items: stretch;
  }
  .adv-sky,
  .adv-hours {
    grid-row: 1;
    grid-column: 1;
  }
  .adv-says {
    grid-row: 1;
    grid-column: 2;
    align-self: center;
  }
  .adv-scr {
    grid-row: 1;
    grid-column: 3;
  }
  .adv-foot {
    grid-row: 2;
    grid-column: 1 / -1;
  }
  /* the night runs top to bottom */
  .adv-hours {
    grid-template-columns: none;
    grid-template-rows: repeat(var(--n), minmax(0, 1fr));
    min-height: 24em;
  }
  .adv-hours::before,
  .adv-hours::after {
    top: calc(100% / var(--n) / 2);
    inset-inline-start: 18px;
    width: 2px;
  }
  .adv-hours::before {
    height: calc(100% * (var(--n) - 1) / var(--n));
  }
  .adv-hours::after {
    height: calc(
      100% * (var(--n) - 1) / var(--n)
        * min(1, (var(--step) + var(--p)) / (var(--n) - 1))
    );
  }
  .adv-hours b {
    font: 700 0.95rem/1.25 var(--font-display);
  }
  #site[lang='ar'] .adv-hours b {
    font: 700 0.95rem/1.35 var(--font-ar);
  }
  .adv-hours li {
    justify-content: flex-start;
  }
  .adv-hours button {
    position: relative;
    justify-items: start;
    align-content: center;
    padding: 0;
    padding-inline-start: 46px;
    text-align: start;
  }
  .adv-hours button::before {
    top: 50%;
    inset-inline-start: 13px;
    margin-top: -6px;
  }
  .adv-hours span {
    display: block;
    font-size: 0.82rem;
  }
  .adv-body {
    top: calc((var(--step) + 0.5) / var(--n) * 100%);
    inset-inline-start: 0;
    margin: -19px 0 0;
  }
}
/* a short laptop screen (1280×800, 1366×768): less air above and below, so
   the controls still sit above the fold */
@media (min-width: 1000px) and (max-height: 820px) {
  .home-night {
    padding-block: 32px;
  }
  .home-night .home-head {
    margin-bottom: 18px;
  }
  .home-night h2 {
    font-size: clamp(2rem, 3vw, 2.5rem);
  }
}

/* ── one system: each area a tab, its screen beside it ───────────────────── */
.home-mods-in {
  display: grid;
  gap: 28px;
}
.home-index {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.home-index::-webkit-scrollbar {
  display: none;
}
.home-index button {
  position: relative;
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: none;
  color: var(--ink);
  font: inherit;
  text-align: start;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.home-index .ic {
  width: 22px;
  height: 22px;
  color: var(--muted);
  --pt: var(--line-strong);
  transition: color 0.2s ease;
}
.home-index b {
  font: 700 0.98rem/1.2 var(--font-display);
  white-space: nowrap;
  transition: color 0.2s ease;
}
.home-index button > span {
  display: none;
}
.home-index [aria-selected='true'] {
  border-color: var(--ink);
}
.home-index [aria-selected='true'] .ic {
  color: var(--primary);
  --pt: var(--saffron);
}
.home-index button:hover b,
.home-index [aria-selected='true'] b {
  color: var(--primary);
}
.home-shots {
  display: grid;
  gap: 14px;
  align-content: start;
}
.md-desc {
  color: var(--muted);
  line-height: 1.55;
}
.js .md-p:not(.is-on) {
  display: none;
}
.md-p {
  display: grid;
  gap: 10px;
  justify-items: start;
}
.md-p figure {
  display: grid;
  gap: 10px;
  width: 100%;
  margin: 0;
}
.md-mock {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 1200 / 851;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--sunken);
}
.md-p figcaption {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}
.md-mock {
  container: win / inline-size;
  border-color: var(--a-line);
  background: var(--a-bg);
  color: var(--a-ink);
}
.md-mock .sc-screen {
  padding: 1.3em 1.4em;
  font-size: clamp(11px, 2.45cqi, 16px);
}
.md-mock .sc-tr {
  padding-block: 0.6em;
}
/* a status at the end of a drawn screen's head: Posted, Paid */
.md-mock .sc-h > .st {
  margin-inline-start: auto;
}
/* a cell of two lines: the name, and what it is under it */
.sc-2l > b,
.sc-2l > small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sc-2l > b {
  font-weight: 600;
}
/* a drawn screen's detail rows end on their value, and its action row runs
   the full width */
.md-mock .t-old .sc-tr > :last-child {
  text-align: end;
}
.md-mock .adv-act {
  align-self: stretch;
}
/* the Advisor's reason, in a sentence under its To do */
.md-why {
  margin: 0.9em 0 0;
  color: var(--a-ink);
  line-height: 1.5;
}
.t-soh {
  --cols: minmax(0, 1fr) 6em 5.8em 6.4em;
}
.t-yld {
  --cols: minmax(0, 1fr) 5.6em 5.8em 5em 4.4em;
}
.t-je {
  --cols: minmax(0, 1fr) 6.4em 6.4em;
}
.t-wps {
  --cols: minmax(0, 1fr) 10em 6.4em;
}
.t-todo {
  --cols: minmax(0, 1fr) auto;
}
@container win (max-width: 470px) {
  /* on a phone a name wraps rather than lose its end */
  .sc-2l > b,
  .sc-2l > small,
  .t-yld .sc-tr > :first-child {
    white-space: normal;
    overflow-wrap: break-word;
  }
  .t-soh {
    --cols: minmax(0, 1fr) 5.2em 5.8em;
  }
  .t-yld {
    --cols: minmax(0, 1fr) 4.8em 4.2em;
  }
  .t-je {
    --cols: minmax(0, 1fr) 5.4em 5.4em;
  }
  .t-wps {
    --cols: minmax(0, 1fr) 6em;
  }
}
.st {
  display: inline-block;
  padding: 0.15em 0.6em;
  border: 1px solid var(--a-line);
  border-radius: 999px;
  font-size: 0.86em;
  font-style: normal;
  font-weight: 600;
}
.st-a {
  border-color: color-mix(in srgb, var(--saffron) 70%, transparent);
}
.st-r {
  border-color: var(--a-green);
  color: var(--a-green);
}
.st-b {
  border-color: var(--a-green);
  background: var(--a-green);
  color: var(--a-on-green);
}
.mgc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 3.2em;
  gap: 0.5em;
  align-items: center;
}
.mgc i {
  position: relative;
  height: 0.75em;
  border-radius: 0.3em;
  background: var(--a-bg);
  box-shadow: inset 0 0 0 1px var(--a-line);
}
.mgc i::before {
  content: '';
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: calc(var(--m) * 100%);
  border-radius: inherit;
  background: var(--a-green);
}
.mgc.is-thin i::before {
  background: var(--a-bad);
}
.mgc b {
  text-align: end;
}
.mgc.is-thin b {
  color: var(--a-bad);
}
.home-soon {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  margin-top: 44px;
  padding-block: 20px;
  border-block: 1px solid var(--line);
}
.home-soon ul {
  display: flex;
  flex: 1 1 380px;
  flex-wrap: wrap;
  gap: 6px 0;
  margin: 0;
  padding: 0;
  color: var(--muted);
  list-style: none;
}
.home-soon li + li::before {
  content: '·';
  margin-inline: 10px;
  color: var(--saffron-ink);
  font-weight: 700;
}
/* site.css's ink button is the page's own colour in dark; here it inverts */
.home-soon .btn-ink {
  background: var(--home-btn);
  color: var(--home-btn-ink);
}
@media (min-width: 1000px) {
  .home-mods-in {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 56px;
    align-items: start;
  }
  .home-index {
    display: block;
    overflow: visible;
    border-top: 3px solid var(--ink);
  }
  .home-index button {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr) 20px;
    gap: 4px 14px;
    width: 100%;
    padding: 15px 4px;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }
  .home-index .ic {
    grid-row: span 2;
    align-self: start;
    margin-top: 1px;
  }
  .home-index b {
    font-size: clamp(1.15rem, 1.7vw, 1.38rem);
    letter-spacing: -0.02em;
  }
  .home-index button > span {
    display: block;
    grid-column: 2 / -1;
    max-width: 52ch;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.5;
  }
  /* the chosen area points at its screen */
  .home-index button::after {
    content: '';
    grid-row: 1;
    grid-column: 3;
    width: 10px;
    height: 10px;
    justify-self: end;
    border-radius: 50%;
    background: var(--saffron);
    opacity: 0;
    transform: scale(0.4);
    transition: opacity 0.25s ease, transform 0.35s var(--ease);
  }
  .home-index [aria-selected='true']::after {
    opacity: 1;
    transform: none;
  }
  .md-desc {
    display: none;
  }
  .home-shots {
    position: sticky;
    top: 96px;
  }
}

/* ── no templates: files in, a system out ────────────────────────────────── */
.home-start {
  background: var(--sunken);
}
.home-start-in {
  display: grid;
  gap: 36px;
}
.home-start-copy {
  display: grid;
  gap: 18px;
  align-content: start;
}
.home-start-copy > p:not(.home-k) {
  max-width: 52ch;
  color: var(--muted);
  line-height: 1.65;
}
.ob {
  display: grid;
  gap: 12px;
  min-width: 0;
}
.ob-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) auto minmax(0, 1fr);
  gap: 0.9em;
  align-items: center;
  aspect-ratio: auto;
  min-height: 25em;
  padding: 1.4em;
  overflow: hidden;
  border-radius: 16px;
  background: var(--paper);
  font-size: clamp(11px, 1.05vw, 14px);
  box-shadow: inset 0 0 0 1px var(--line);
}
.ob-hd {
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin-bottom: 0.7em;
  color: var(--muted);
  font: 600 0.8em/1.3 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
#site[dir='rtl'] .fl > span {
  text-align: right;
}
#site[lang='ar'] .ob-hd {
  font: 700 0.92em/1.4 var(--font-ar);
  letter-spacing: 0;
}
.ob-hd .ic {
  width: 1.4em;
  height: 1.4em;
  color: var(--primary);
  --pt: var(--saffron);
}
.ob-drop {
  position: relative;
  align-self: stretch;
  padding: 1em;
  border: 1.5px dashed var(--line-strong);
  border-radius: 12px;
  transition: opacity 0.4s ease;
}
.ob-hint {
  position: absolute;
  inset: 2.8em 1em 1em;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.5em;
  color: var(--muted);
  font-weight: 600;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.ob-hint.is-on {
  opacity: 1;
}
.ob-hint .ic {
  width: 2.4em;
  height: 2.4em;
  color: var(--line-strong);
}
.ob-files {
  display: grid;
  gap: 0.5em;
  margin: 0;
  padding: 0;
  list-style: none;
}
.fl {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.15em 0.55em;
  align-items: center;
  padding: 0.5em 0.6em;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  opacity: 0;
  transform: translateY(-1.6em) rotate(calc((var(--i) - 2) * 3deg));
  transition:
    opacity 0.3s ease calc(var(--i) * 0.09s),
    transform 0.6s cubic-bezier(0.3, 1.35, 0.5, 1) calc(var(--i) * 0.09s);
}
.fl.is-on {
  opacity: 1;
  transform: none;
}
.fl .ic {
  grid-row: span 2;
  width: 1.5em;
  height: 1.5em;
  color: var(--muted);
  --pt: var(--muted);
  transition: color 0.3s ease;
}
.fl > span {
  overflow: hidden;
  text-align: start;
  font: 500 0.88em/1.3 var(--font-mono);
  font-family:
    var(--font-mono), 'IBM Plex Sans Arabic', sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fl em {
  display: flex;
  align-items: center;
  gap: 0.4em;
  color: var(--primary);
  font-size: 0.86em;
  font-style: normal;
  font-weight: 700;
}
.fl em::before {
  content: '';
  width: 0.5em;
  height: 0.5em;
  border-radius: 50%;
  background: var(--saffron);
}
.fl:has(em.is-on) .ic {
  color: var(--primary);
  --pt: var(--saffron);
}
.ob-q {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4em 0.8em;
  margin-top: 0.7em;
  padding-top: 0.6em;
  border-top: 1px dashed var(--line-strong);
  font-size: 0.9em;
}
.ob-q b {
  padding: 0.25em 0.8em;
  border-radius: 999px;
  background: var(--primary);
  color: var(--primary-ink);
}
.ob-arrow svg {
  width: clamp(36px, 4.4vw, 58px);
  height: auto;
}
.ob-arrow path {
  fill: none;
  stroke: var(--primary);
  stroke-width: 6;
  stroke-linecap: round;
}
.ob-arrow circle {
  fill: var(--saffron);
  transform-origin: 32px 32px;
}
.ob-stage:has(.ob-box.is-on:not(.ob-cash.is-on)) .ob-arrow circle {
  animation: home-beat 0.9s ease-in-out infinite;
}
@keyframes home-beat {
  50% {
    transform: scale(1.35);
  }
}
.ob-made {
  display: grid;
  gap: 0.55em;
  align-self: stretch;
  align-content: start;
  transition: opacity 0.4s ease;
}
.ob-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.35em 0.8em;
  align-items: baseline;
  padding-top: 0.55em;
  border-top: 3px solid var(--line);
  color: var(--muted);
  transition: color 0.4s ease, border-color 0.4s ease;
}
.ob-box.is-on {
  border-color: var(--ink);
  color: var(--ink);
}
.ob-box:not(.is-on) > i {
  color: var(--muted);
}
.ob-box b {
  font: 700 1em/1.25 var(--font-display);
}
.ob-box > i {
  color: var(--primary);
  font: 800 1.35em/1.1 var(--font-display);
  font-style: normal;
}
.ob-cash > em {
  color: var(--muted);
  font-size: 0.92em;
  font-style: normal;
  font-weight: 600;
}
.ob-rows {
  grid-column: 1 / -1;
  display: grid;
  gap: 0.25em;
}
.ob-rows i {
  height: 0.45em;
  border-radius: 999px;
  background: var(--line);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}
#site[dir='rtl'] .ob-rows i {
  transform-origin: right;
}
.ob-rows i:nth-child(2) {
  width: 82%;
  transition-delay: 0.12s;
}
.ob-rows i:nth-child(3) {
  width: 64%;
  transition-delay: 0.24s;
}
.ob-box.is-on .ob-rows i {
  transform: none;
}
.cur-stack {
  position: absolute;
  top: 18px;
  left: 16px;
  width: 3.4em;
  height: 4.2em;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.cur-stack.is-on {
  opacity: 1;
}
.fl-scan {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background: var(--saffron);
  box-shadow: 0 0 12px 2px color-mix(in srgb, var(--saffron) 60%, transparent);
  pointer-events: none;
}
.cur-stack b {
  position: absolute;
  inset: 0;
  border: 1.5px solid var(--line-strong);
  border-radius: 4px;
  background: var(--surface);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}
.cur-stack b:nth-child(1) {
  transform: rotate(-9deg);
}
.cur-stack b:nth-child(2) {
  transform: rotate(4deg) translate(3px, 1px);
}
.cur-stack b:nth-child(3) {
  transform: translate(6px, 3px);
}
.ob-ctl {
  margin-top: 4px;
}
@media (max-width: 760px) {
  .ob-stage {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    font-size: 13px;
  }
  .ob-hd,
  #site[lang='ar'] .ob-hd {
    font-size: 0.88em;
  }
  .ob-arrow {
    justify-self: center;
    transform: rotate(90deg);
  }
}
@media (min-width: 1000px) {
  .home-start-in {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 56px;
    align-items: center;
  }
}
/* ── the price ───────────────────────────────────────────────────────────── */
.home-price-in {
  display: grid;
  gap: 40px;
  align-items: start;
}
.home-price-copy {
  display: grid;
  gap: 18px;
  align-content: start;
}
.home-cups {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  margin-top: 8px;
}
.home-cups svg {
  width: clamp(56px, 7vw, 84px);
  height: auto;
  overflow: visible;
}
.home-cup {
  fill: var(--primary);
}
.home-cup-lid {
  fill: var(--ink);
}
.home-cup-band {
  fill: var(--saffron);
}
.home-cup.home-cup-ghost {
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 2;
  stroke-dasharray: 4 4;
}
#site[dir='rtl'] .home-cup-part {
  transform: scaleX(-1);
}
.home-day {
  color: var(--muted);
  font-size: 1.02rem;
}
.home-day b {
  display: block;
  margin-bottom: 2px;
  color: var(--ink);
  font: 800 clamp(1.4rem, 2.4vw, 1.9rem) / 1.2 var(--font-display);
  letter-spacing: -0.02em;
}
.home-price-copy .home-acts {
  margin-top: 6px;
}
/* site.css's ink button is the page's own colour in dark; here it inverts */
.home-price .btn-ink {
  background: var(--home-btn);
  color: var(--home-btn-ink);
}
/* the rates, set as a spec sheet */
.home-rates {
  border-top: 3px solid var(--ink);
}
.home-rates dl {
  margin: 0;
}
.home-rates dl > div {
  display: grid;
  grid-template-columns: minmax(0, 10.5rem) minmax(0, 1fr);
  gap: 4px 20px;
  padding-block: 16px;
  border-bottom: 1px solid var(--line);
}
.home-rates dt {
  padding-top: 3px;
  color: var(--muted);
  font-size: 0.92rem;
}
.home-rates dd {
  display: grid;
  gap: 3px;
  margin: 0;
}
.home-rates dd b {
  font: 700 1.1rem/1.3 var(--font-display);
}
.home-rates dd span {
  color: var(--muted);
  font-size: 0.88rem;
}
.home-rates dl > div:first-child dd b {
  color: var(--primary);
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  letter-spacing: -0.03em;
}
.home-rates .home-note {
  max-width: none;
  margin-top: 16px;
}
@media (min-width: 1000px) {
  .home-price-in {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 64px;
  }
}
@media (max-width: 520px) {
  .home-rates dl > div {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ── who runs on it ──────────────────────────────────────────────────────── */
.home-logos {
  padding-block: 32px;
  border-block: 1px solid var(--line);
}
.home-logos-in {
  display: grid;
  gap: 22px;
}
.home-logos ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px clamp(28px, 4vw, 56px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.home-logos li {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 60px;
  font: 700 1rem/1.3 var(--font-display);
}
/* logos only, no names (the owner's call): the name is the image's alt */
.home-logos img {
  flex: none;
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: contain;
}
/* the seat kept for the next one: the brand's brackets around an empty point */
.home-you a {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 60px;
  color: inherit;
  text-decoration: none;
}
.home-you-br {
  flex: none;
  width: 56px;
  height: 56px;
  --ctx-line: var(--line-strong);
  --ctx-dot: var(--saffron);
  transition: transform 0.3s ease;
}
.home-you a > span {
  display: grid;
  gap: 2px;
}
.home-you a > span > span {
  color: var(--saffron-ink);
  font: 600 0.9rem/1.3 var(--font-text);
}
.home-you a > span > span::after {
  content: ' →';
}
#site[dir='rtl'] .home-you a > span > span::after {
  content: ' ←';
}
.home-you a:hover .home-you-br {
  --ctx-line: var(--primary);
  transform: scale(1.06);
}

/* ── one AI core, shaped for each trade ──────────────────────────────────── */
.home-eds {
  padding-block: clamp(56px, 7vw, 96px);
}
.home-eds .in {
  display: grid;
  gap: 28px;
}
.home-eds-hd {
  display: grid;
  gap: 14px;
}
.home-eds h2 {
  max-width: 20ch;
}
.home-eds-hd > p:not(.home-k) {
  max-width: 56ch;
  color: var(--muted);
  line-height: 1.6;
}
.home-eds ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr));
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--line);
  list-style: none;
}
.home-eds li,
.home-eds li.is-live a {
  display: grid;
  gap: 12px;
  align-content: start;
}
.home-eds li {
  padding: 22px 16px 24px 0;
  border-top: 3px solid var(--ink);
}
/* a name on two lines ("Equipment trading") must not push its status below
   the others: the name row stretches, the status sits on the row's floor */
.home-eds li:not(:has(> a)),
.home-eds li > a {
  grid-template-rows: auto 1fr auto;
}
.home-eds li:has(> a) {
  grid-template-rows: 1fr;
  align-content: stretch;
}
.home-eds .home-st {
  align-self: end;
}
#site[dir='rtl'] .home-eds li {
  padding: 22px 0 24px 16px;
}
.home-eds li.is-next {
  border-top-color: var(--line-strong);
  border-top-style: dashed;
  border-top-width: 2px;
}
.home-eds li.is-live a {
  min-height: 44px;
  color: inherit;
  text-decoration: none;
}
.home-eds .ic {
  width: 34px;
  height: 34px;
  color: var(--primary);
  --pt: var(--saffron);
}
.home-eds b {
  font: 700 clamp(1.1rem, 1.5vw, 1.25rem) / 1.25 var(--font-display);
}
.home-eds a b::after {
  content: ' →';
  color: var(--saffron-ink);
}
#site[dir='rtl'] .home-eds a b::after {
  content: ' ←';
}
.home-eds a:hover b {
  color: var(--primary);
}
.home-st {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font: 600 0.72rem/1.2 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.home-st::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}
#site[lang='ar'] .home-st {
  font: 600 0.84rem/1.3 var(--font-ar);
}
.home-eds .is-next .ic {
  color: var(--muted);
  --pt: var(--muted);
}
.home-eds .is-next b {
  color: var(--muted);
}
.home-eds .is-next .home-st {
  color: var(--saffron-ink);
}
.home-eds .is-next .home-st::before {
  border: 1.5px solid currentColor;
  background: none;
}
@media (min-width: 1000px) {
  .home-eds ul {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
}

/* the shared demo form, flat on this page like everything else on it */
.home .dform {
  box-shadow: none;
}

/* ── any ERP against Seyaqi: one plain table ─────────────────────────────── */
/* Ruled like the figures elsewhere on the page: a heavy ink rule on top,
   hairlines between the rows, no panels and no tints. Any ERP's column is in
   grey and Seyaqi's in ink, its name marked by the saffron point. On a phone
   each row stacks, the thing first, then each cell under its own name. */
.home-vs {
  padding-block: clamp(56px, 6vw, 80px);
}
.home-vs .home-head {
  margin-bottom: clamp(24px, 3vw, 36px);
}
.vs-t {
  width: 100%;
  border-collapse: collapse;
  border-top: 3px solid var(--ink);
  border-bottom: 1px solid var(--line);
  table-layout: fixed;
}
.vs-c-thing {
  width: 24%;
}
.vs-c-erp {
  width: 36%;
}
.vs-c-sey {
  width: 40%;
}
.vs-t th,
.vs-t td {
  padding-block: 18px;
  padding-inline: 0 clamp(18px, 2.4vw, 32px);
  text-align: start;
  vertical-align: top;
}
.vs-t tr > :last-child {
  padding-inline-end: 0;
}
.vs-t thead th {
  padding-block: 14px 12px;
  color: var(--muted);
  font: 500 0.78rem/1.3 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
#site[lang='ar'] .vs-t thead th {
  font: 600 0.92rem/1.4 var(--font-ar);
  letter-spacing: 0;
}
.vs-t thead th.vs-sey {
  color: var(--primary);
}
.vs-t thead th.vs-sey::before,
.vs-sey .vs-who::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-inline-end: 10px;
  border-radius: 50%;
  background: var(--saffron);
  vertical-align: 0.08em;
}
.vs-t tbody tr {
  border-top: 1px solid var(--line);
}
.vs-t tbody th {
  color: var(--ink);
  font: 700 clamp(1rem, 1.3vw, 1.12rem) / 1.35 var(--font-display);
  letter-spacing: -0.01em;
}
#site[lang='ar'] .vs-t tbody th {
  line-height: 1.6;
  letter-spacing: 0;
}
.vs-t td {
  font-size: 0.98rem;
  line-height: 1.55;
}
#site[lang='ar'] .vs-t td {
  line-height: 1.8;
}
.vs-t td.vs-erp {
  color: var(--muted);
}
.vs-t td.vs-sey {
  color: var(--ink);
  font-weight: 500;
}
/* each cell's own name, for the stacked rows on a phone */
.vs-who {
  display: none;
}
@media (max-width: 719px) {
  .vs-t,
  .vs-t tbody,
  .vs-t tr,
  .vs-t th,
  .vs-t td {
    display: block;
    width: auto;
  }
  .vs-t colgroup,
  .vs-t thead {
    display: none;
  }
  .vs-t tbody tr {
    padding-block: 16px 18px;
  }
  .vs-t tbody tr:first-child {
    border-top: 0;
  }
  .vs-t th,
  .vs-t td {
    padding: 0;
  }
  .vs-t tbody th {
    margin-bottom: 10px;
  }
  .vs-t td + td {
    margin-top: 12px;
  }
  .vs-who {
    display: block;
    margin-bottom: 2px;
    color: var(--muted);
    font: 500 0.72rem/1.4 var(--font-mono);
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }
  #site[lang='ar'] .vs-who {
    font: 600 0.84rem/1.5 var(--font-ar);
    letter-spacing: 0;
  }
  .vs-sey .vs-who {
    color: var(--primary);
  }
}
/* ── what Seyaqi is, in plain words, and the questions ───────────────────── */
.home-faq {
  border-top: 1px solid var(--line);
}
.home-about {
  max-width: 66ch;
  margin-top: 20px;
  font-size: clamp(1.04rem, 1.4vw, 1.18rem);
  line-height: 1.7;
}
#site[lang='ar'] .home-about {
  line-height: 1.95;
}
.home-qs {
  display: grid;
  gap: 16px;
}
.home-qs-hd {
  margin: 0;
  color: var(--muted);
  font: 500 0.78rem/1.3 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
#site[lang='ar'] .home-qs-hd {
  font: 600 0.9rem/1.4 var(--font-ar);
  letter-spacing: 0;
}
.home-faq .faq2 {
  border-bottom: 1px solid var(--line);
}
.home-faq .faq2 h3 {
  font: 600 1.05rem/1.4 var(--font-display);
}
.home-faq .faq2 summary {
  min-height: 56px;
}
@media (min-width: 1000px) {
  .home-qs {
    margin-inline-start: 290px;
  }
}

/* On a phone a drawn screen in One system is as tall as its rows: at 13px
   the screenshot's proportions cut off its last rows, House Blend's among
   them. */
@media (max-width: 600px) {
  .md-mock {
    aspect-ratio: auto;
  }
  .md-mock .sc-screen {
    position: relative;
  }
}

/* Where a redrawn screen is narrow (a phone), its text is set at 13px and
   nothing in it falls under 11px. Last in the file, so it wins over each
   screen's own size. */
@container win (max-width: 470px) {
  .see-stage .sc-screen,
  .adv-scr .sc-screen,
  .md-mock .sc-screen {
    font-size: 13px;
  }
  .sc-screen .sc-t {
    font-size: 1em;
  }
  .sc-screen .sc-th,
  .sc-screen[lang='ar'] .sc-th,
  #site[lang='ar'] .sc-screen .sc-th {
    font-size: 0.86em;
    letter-spacing: 0.02em;
  }
  /* 0.88em, not 0.86: the language film sets its screen a touch under full
     size, and these must still reach the eye at 11px or more */
  .sc-screen .sc-chip,
  .sc-screen .sc-kpis em,
  .sc-screen .sc-menu p {
    font-size: 0.88em;
  }
  .sc-screen .sc-je {
    font-size: 0.92em;
  }
  .sc-screen .sc-je i {
    font-size: 0.95em;
  }
  #site .sc-drawer {
    width: 100%;
  }
  .adv-card {
    padding: 0.9em;
  }
  .pace > div {
    grid-template-columns: 5.6em minmax(0, 1fr) 2.6em;
  }
  /* Nothing a drawn screen says is cut off at a phone's width: a name wraps,
     a figure keeps its whole width. */
  .sc-h small,
  .t-mg .sc-tr > :first-child,
  .t-mg2 .sc-tr > :first-child,
  .t-lot .sc-tr > :first-child,
  .t-old .sc-tr > :first-child,
  .t-pl .sc-tr > :first-child {
    white-space: normal;
  }
  /* Profit and loss: the amount and its share as wide as they are */
  .t-pl {
    --cols: minmax(0, 1fr) auto auto;
  }
  .t-pl .sc-th > * {
    white-space: normal;
  }
  /* Purchase orders: the order and its amount on one line, its status under
     them, as a list on a phone reads */
  .t-po {
    --cols: minmax(0, 1fr) auto;
  }
  .t-po .sc-tr {
    grid-template-areas: 'code amt' 'st st';
    row-gap: 0.35em;
  }
  .t-po .sc-tr > :nth-child(1) {
    grid-area: code;
  }
  .t-po .sc-tr > :nth-child(3) {
    grid-area: st;
  }
  .t-po .sc-tr > :nth-child(4) {
    grid-area: amt;
  }
  .t-po .sc-th > :nth-child(3) {
    display: none;
  }
  /* three figures: the first across, the other two side by side */
  .md-mock .sc-kpis,
  .sc-c .sc-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .md-mock .sc-kpis > :first-child:nth-last-child(3),
  .sc-c .sc-kpis > :first-child:nth-last-child(3) {
    grid-column: 1 / -1;
  }
}
@media (max-width: 999px) {
  .adv-hours b,
  #site[lang='ar'] .adv-hours b {
    font-size: 0.7rem;
    white-space: nowrap;
  }
}

/* for someone who asked for less motion: the films hold still, and no cursor */
@media (prefers-reduced-motion: reduce) {
  .see-stage *,
  .see-stage *::before,
  .see-stage *::after,
  .nt *,
  .nt *::before,
  .nt *::after,
  .home-night::before,
  .home-roles *,
  .home-roles *::before,
  .home-roles *::after {
    transition: none !important;
    animation: none !important;
  }
  .see-cur,
  .see-rip {
    display: none;
  }
}
