/* KRYPHS parent site. Direction: taste-skill "Loud and flat" (seed 1604229375), palette and type kept from the brand.
   Colours: the four parent-logo colours plus neutrals, nothing else (D3). Sub-agency marks keep their own colours
   inside the mark only (assets/img/*.svg and the .mark-* blocks). */

@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url("../fonts/schibsted-grotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Noto Kufi Arabic"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/noto-kufi-arabic-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }

:root {
  /* palette: the parent logo */
  --saffron: #FFB703;
  --rust: #7C2D12;
  --orange: #C2410C;   /* burnt orange */
  --cream: #FFF1C9;
  /* neutrals */
  --ink: #141414;
  --white: #FFFFFF;
  --grey: #4D4D4D;      /* secondary text on light grounds (7.4:1 on cream) */
  --grey-light: #D9D9D9;

  /* roles */
  --bg: var(--cream);
  --text: var(--ink);
  --accent: var(--rust);      /* the primary action */
  --on-accent: var(--cream);

  --font: "Schibsted Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-ar: "Noto Kufi Arabic", "Segoe UI", Tahoma, sans-serif;

  /* five type steps */
  --t-display: clamp(40px, min(11vw, calc(var(--fit, 300vw) / var(--chars, 30))), 176px);
  --t-head: clamp(28px, 3.2vw, 48px);
  --t-lead: clamp(20px, 1.7vw, 26px);
  --t-body: 20px;
  --t-small: 16px;

  --m: clamp(20px, 3.4vw, 56px);       /* the one pair of outer margins */
  --gap: clamp(20px, 2.4vw, 40px);
  --bar: 64px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}
@media (max-width: 640px) { :root { --t-body: 18px; --bar: 58px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bar) + 8px); }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: var(--t-body); line-height: 1.5; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; overflow-x: clip; }
:lang(ar) body, :lang(ar) button, :lang(ar) input, :lang(ar) select, :lang(ar) textarea { font-family: var(--font-ar); }
img, svg, video { display: block; max-width: 100%; }
h1, h2, h3, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
bdi { unicode-bidi: isolate; }
.num { font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
::selection { background: var(--saffron); color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.on-dark :focus-visible, .on-dark:focus-visible { outline-color: var(--saffron); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; inset-inline-start: var(--m); top: -100px; z-index: 50; background: var(--ink); color: var(--cream); padding: 12px 16px; font-weight: 700; }
.skip:focus { top: 8px; }

/* ---------- type ---------- */
.display { font-size: var(--t-display); font-weight: 900; line-height: 0.92; letter-spacing: -0.035em; text-wrap: balance; max-width: 16ch; }
:lang(ar) .display { font-weight: 800; letter-spacing: 0; line-height: 1.25; --fit: 260vw; }
.head { font-size: var(--t-head); font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance; }
:lang(ar) .head { letter-spacing: 0; line-height: 1.35; }
.lead { font-size: var(--t-lead); line-height: 1.4; font-weight: 500; max-width: 34ch; text-wrap: pretty; }
.body { max-width: 52ch; text-wrap: pretty; }
.small { font-size: var(--t-small); line-height: 1.5; }
:lang(ar) .lead, :lang(ar) .body { line-height: 1.75; }

/* ---------- frame ---------- */
.wrap { padding-inline: var(--m); }
.screen { position: relative; min-height: 100svh; padding-block: clamp(88px, 12vh, 150px); display: grid; align-content: center; isolation: isolate; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 32px; align-items: center; }
.f-saffron { background: var(--saffron); color: var(--ink); }
.f-rust { background: var(--rust); color: var(--cream); }
.f-orange { background: var(--orange); color: var(--white); }
.f-cream { background: var(--cream); color: var(--ink); }
.f-ink { background: var(--ink); color: var(--cream); }

/* ---------- buttons: one shape, square ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 56px; padding: 14px 28px; border: 0; border-radius: 0; background: var(--rust); color: var(--cream); font-weight: 800; font-size: 19px; line-height: 1.1; text-decoration: none; cursor: pointer; touch-action: manipulation; transition: transform 160ms var(--ease-out), background-color 200ms ease; }
.btn:active { transform: scale(0.97); }
.btn .arrow { width: 20px; height: 20px; flex: none; }
:dir(rtl) .btn .arrow { transform: scaleX(-1); }
.f-rust .btn, .f-orange .btn, .f-ink .btn { background: var(--saffron); color: var(--ink); }
.btn-big { min-height: 72px; font-size: clamp(20px, 1.8vw, 26px); padding-inline: 36px; }
.link { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; font-weight: 800; text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--ink); color: var(--cream); }
  .f-rust .btn:hover, .f-orange .btn:hover, .f-ink .btn:hover { background: var(--cream); color: var(--ink); }
  .link:hover { text-decoration-thickness: 5px; }
}

/* ---------- top bar ---------- */
.bar { position: sticky; top: 0; z-index: 30; height: var(--bar); display: flex; align-items: center; gap: 16px; padding-inline: var(--m); background: var(--cream); color: var(--ink); }
.bar .lockup { display: flex; align-items: center; min-height: 48px; margin-inline-end: auto; }
.bar .lockup img { height: 34px; width: auto; }
.langs { display: flex; gap: 2px; }
.langs a { display: grid; place-items: center; min-width: 44px; min-height: 44px; padding-inline: 8px; font-weight: 800; font-size: 16px; text-decoration: none; }
.langs a[aria-current="page"] { background: var(--ink); color: var(--cream); }
.bar .btn { min-height: 44px; padding: 10px 18px; font-size: 16px; }
@media (hover: hover) and (pointer: fine) { .langs a:not([aria-current]):hover { background: var(--saffron); } }
@media (max-width: 480px) {
  .bar { gap: 6px; }
  .bar .lockup img { height: 28px; }
  .langs a { min-width: 40px; padding-inline: 4px; font-size: 16px; }
  .bar .btn { padding-inline: 12px; font-size: 16px; }
}
@media (max-width: 370px) { .bar .lockup img { height: 24px; } .bar .btn { padding-inline: 10px; } }

/* ---------- 1 hero ---------- */
.hero { min-height: calc(100svh - var(--bar)); padding-block: clamp(40px, 8vh, 96px) clamp(48px, 9vh, 110px); overflow: hidden; }
.hero .copy { grid-column: 1 / span 8; display: grid; gap: 32px; align-content: center; position: relative; z-index: 1; }
.hero .display { max-width: none; }
.hero .lead { max-width: 30ch; }
.hero .art { grid-column: 9 / -1; position: relative; aspect-ratio: 1; align-self: center; }
@media (max-width: 900px) {
  .hero .copy { grid-column: 1 / -1; }
  .hero .art { grid-column: 7 / -1; grid-row: 1; width: 100%; max-width: 220px; justify-self: end; }
}

/* ---------- marquee (the signature move) ---------- */
.marquee { background: var(--ink); color: var(--saffron); overflow: hidden; padding-block: clamp(18px, 3vw, 40px); }
.marquee-track { display: flex; width: max-content; }
.marquee-item { display: flex; align-items: center; gap: 0.5em; padding-inline-end: 0.5em; font-size: clamp(44px, 8vw, 128px); font-weight: 900; line-height: 1; letter-spacing: -0.03em; white-space: nowrap; }
:lang(ar) .marquee-item { letter-spacing: 0; line-height: 1.4; }
.marquee-item .dot { width: 0.28em; height: 0.28em; border-radius: 50%; background: var(--orange); flex: none; }
@media (prefers-reduced-motion: no-preference) {
  .marquee-track { animation: marquee 48s linear infinite; }
  :dir(rtl) .marquee-track { animation-name: marquee-rtl; }
  .marquee:hover .marquee-track { animation-play-state: paused; }
}
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes marquee-rtl { to { transform: translateX(50%); } }

/* ---------- 2 problem: leads waiting ---------- */
.s02 .copy { grid-column: 1 / span 6; display: grid; gap: 28px; }
.s02 .pile { grid-column: 7 / -1; position: relative; height: min(64vh, 560px); }
.bubble { position: absolute; display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: var(--cream); color: var(--ink); width: min(300px, 70%); }
.bubble .ico { width: 34px; height: 34px; flex: none; color: var(--rust); }
.bubble .lines { display: grid; gap: 8px; flex: 1; }
.bubble .lines i { display: block; height: 10px; background: var(--grey-light); }
.bubble .lines i:last-child { width: 60%; }
.bubble .unread { width: 14px; height: 14px; border-radius: 50%; background: var(--orange); flex: none; }
.bubble.alt { background: var(--saffron); }
.bubble.alt .lines i { background: var(--ink); opacity: .18; }
.b1 { top: 4%; inset-inline-start: 6%; } .b2 { top: 20%; inset-inline-end: 0; } .b3 { top: 37%; inset-inline-start: 0; }
.b4 { top: 53%; inset-inline-end: 6%; } .b5 { top: 70%; inset-inline-start: 12%; } .b6 { top: 84%; inset-inline-end: 14%; }
@media (max-width: 900px) { .s02 .copy, .s02 .pile { grid-column: 1 / -1; } .s02 .pile { height: 380px; } }

/* ---------- 3 problem: scattered tools ---------- */
.s03 .copy { grid-column: 7 / -1; grid-row: 1; display: grid; gap: 28px; }
.s03 .tools { grid-column: 1 / span 6; grid-row: 1; position: relative; height: min(62vh, 540px); }
.tool { position: absolute; background: var(--white); color: var(--ink); padding: 18px; display: grid; gap: 10px; }
.tool .ico { width: 30px; height: 30px; color: var(--orange); }
.tool.sheet { width: 62%; top: 4%; inset-inline-start: 0; transform: rotate(-4deg); }
.tool.note { width: 44%; top: 34%; inset-inline-end: 0; background: var(--saffron); transform: rotate(5deg); }
.tool.app { width: 54%; top: 60%; inset-inline-start: 14%; background: var(--rust); color: var(--cream); transform: rotate(-2deg); }
.tool.app .ico { color: var(--saffron); }
.cells { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.cells i { height: 18px; background: var(--cream); }
.cells i:nth-child(4n+1) { background: var(--saffron); }
.rules { display: grid; gap: 12px; padding-block: 6px; }
.rules i { display: block; height: 6px; background: var(--ink); opacity: .25; }
.app-rows { display: grid; gap: 8px; }
.app-rows i { display: block; height: 14px; background: var(--cream); opacity: .3; }
.app-rows i:nth-child(2) { width: 70%; } .app-rows i:nth-child(3) { width: 84%; }
@media (max-width: 900px) { .s03 .copy, .s03 .tools { grid-column: 1 / -1; } .s03 .tools { grid-row: 2; height: 400px; } }

/* ---------- 4 one system (pin 1, desktop) ---------- */
.s04 .copy { grid-column: 1 / span 5; display: grid; gap: 28px; }
.s04 .system { grid-column: 6 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(20px, 3vw, 48px); align-items: center; }
@media (max-width: 1023px) { .s04 .copy, .s04 .system { grid-column: 1 / -1; } .nest { width: min(100%, 420px); } }
@media (max-width: 560px) { .s04 .system { grid-template-columns: 1fr; } .nest { width: 78%; } .stages { grid-template-columns: 1fr 1fr; } }

/* ---------- 5 funnel ---------- */
.s05 .copy { grid-column: 1 / span 5; display: grid; gap: 28px; }
.s05 .flow { grid-column: 6 / -1; position: relative; }
.flow svg { width: 100%; height: auto; overflow: visible; }
.flow .path-bg { stroke: var(--ink); stroke-opacity: .14; }
.flow .path { stroke: var(--rust); }
.flow .stop rect { fill: var(--cream); }
.flow .stop.last rect { fill: var(--rust); }
.flow .runner { fill: var(--rust); }
@media (max-width: 900px) { .s05 .copy, .s05 .flow { grid-column: 1 / -1; } }

/* ---------- 6 automation + AI ---------- */
.s06 .copy { grid-column: 1 / span 5; display: grid; gap: 28px; }
.s06 .canvas { grid-column: 7 / -1; display: grid; gap: 20px; }
.case { background: var(--cream); color: var(--ink); padding: clamp(20px, 2.4vw, 32px); display: grid; gap: 10px; max-width: 46ch; }
.case h3 { font-size: 22px; font-weight: 800; line-height: 1.25; }
.wf { background: var(--ink); padding: clamp(18px, 2.4vw, 32px); display: grid; gap: 24px; }
.wf-row { display: flex; align-items: center; justify-content: space-between; gap: 0; }
.node { width: clamp(52px, 5vw, 72px); aspect-ratio: 1; display: grid; place-items: center; background: var(--cream); color: var(--rust); border-radius: 14px; position: relative; z-index: 1; flex: none; }
.node .ico { width: 55%; height: 55%; }
.node.ai { background: var(--saffron); color: var(--ink); }
.wire { flex: 1; height: 6px; background: var(--saffron); transform-origin: left center; }
:dir(rtl) .wire { transform-origin: right center; }
.chat { display: grid; gap: 10px; }
.msg { max-width: 72%; padding: 12px 16px; background: var(--cream); display: grid; gap: 8px; }
.msg i { display: block; height: 9px; background: var(--ink); opacity: .2; }
.msg i:last-child { width: 55%; }
.msg.bot { justify-self: end; background: var(--saffron); }
@media (max-width: 900px) { .s06 .copy, .s06 .canvas { grid-column: 1 / -1; } }

/* ---------- 7 calculator (no pin) ---------- */
.s07 { align-content: start; }
.s07 .copy { grid-column: 1 / span 5; align-self: start; display: grid; gap: 24px; position: sticky; top: calc(var(--bar) + 32px); }
.s07 .calc { grid-column: 6 / -1; }
.calc { display: grid; gap: 24px; }
.calc-region { display: grid; gap: 12px; }
.calc-region legend, .calc-label { font-weight: 800; font-size: 18px; padding: 0; margin-bottom: 4px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: grid; place-items: center; min-height: 48px; padding: 8px 18px; background: var(--white); font-weight: 700; transition: background-color 200ms ease, color 200ms ease; }
.chip input:checked + span { background: var(--ink); color: var(--cream); }
.chip input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 3px; }
.rate-row { display: flex; flex-wrap: wrap; align-items: end; gap: 16px 24px; }
.examples { font-size: var(--t-small); color: var(--grey); }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; }
.tab { min-height: 52px; padding: 10px 22px; border: 0; background: var(--white); font-weight: 800; font-size: 18px; cursor: pointer; transition: background-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out); }
.tab:active { transform: scale(0.97); }
.tab[aria-selected="true"] { background: var(--rust); color: var(--cream); }
.tab .touched { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--orange); margin-inline-start: 8px; vertical-align: middle; opacity: 0; transition: opacity 200ms ease; }
.tab[data-touched] .touched { opacity: 1; }
.tab[aria-selected="true"] .touched { background: var(--saffron); }
@media (hover: hover) and (pointer: fine) { .tab:not([aria-selected="true"]):hover, .chip input:not(:checked) + span:hover { background: var(--saffron); } }
.panel { display: grid; gap: 22px; background: var(--white); padding: clamp(20px, 2.4vw, 32px); }
.panel[hidden] { display: none; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.field { display: grid; gap: 6px; align-content: start; }
.field label, .field .lbl { font-size: 16px; font-weight: 700; line-height: 1.3; }
.field input, .field select { width: 100%; min-height: 50px; padding: 10px 14px; border: 2px solid var(--ink); border-radius: 0; background: var(--white); font-size: 19px; font-variant-numeric: tabular-nums; }
.field input[type="number"] { direction: ltr; text-align: start; }
:dir(rtl) .field input[type="number"] { text-align: end; }
.field input:focus-visible, .field select:focus-visible { outline: 3px solid var(--saffron); outline-offset: 0; border-color: var(--ink); }
.field.rate input { width: 140px; }
.result { background: var(--ink); color: var(--cream); padding: clamp(20px, 2.4vw, 32px); display: grid; gap: 14px; }
.result .big { font-size: clamp(24px, 2.4vw, 34px); font-weight: 800; line-height: 1.25; max-width: 30ch; }
.result .big b, .result .line b { color: var(--saffron); font-weight: 900; }
.result .line { font-size: 19px; line-height: 1.45; max-width: 46ch; }
.result .fine { font-size: var(--t-small); line-height: 1.5; color: var(--cream); max-width: 60ch; }
.result .src { font-size: 16px; color: var(--grey-light); max-width: 60ch; }
.total { display: grid; gap: 18px; background: var(--saffron); color: var(--ink); padding: clamp(20px, 2.4vw, 32px); }
.total p { font-size: clamp(20px, 1.8vw, 26px); font-weight: 800; line-height: 1.3; max-width: 34ch; }
.calc-lib { font-size: var(--t-small); }
@media (max-width: 1023px) { .s07 .copy { position: static; } .s07 .copy, .s07 .calc { grid-column: 1 / -1; } }
@media (max-width: 560px) { .fields { grid-template-columns: 1fr; } .tab { flex: 1 1 40%; padding-inline: 10px; } }

/* ---------- 8 bridge ---------- */
.s08 .copy { grid-column: 1 / span 5; display: grid; gap: 28px; }
.s08 .trio { grid-column: 7 / -1; display: grid; gap: 14px; }
.trio a { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; padding: 18px 20px; background: var(--cream); color: var(--ink); text-decoration: none; transition: transform 200ms var(--ease-out), background-color 200ms ease; }
.trio a:active { transform: scale(0.98); }
.trio .mk { width: clamp(56px, 5vw, 76px); height: auto; aspect-ratio: 1; }
.trio .nm { font-size: clamp(24px, 2.4vw, 34px); font-weight: 900; line-height: 1.05; letter-spacing: -0.02em; }
.trio .lb { display: block; font-size: 16px; font-weight: 600; color: var(--grey); letter-spacing: 0; margin-top: 4px; }
.trio .arrow { width: 26px; height: 26px; }
:dir(rtl) .trio .arrow { transform: scaleX(-1); }
@media (hover: hover) and (pointer: fine) { .trio a:hover { background: var(--white); transform: translateX(6px); } :dir(rtl) .trio a:hover { transform: translateX(-6px); } }
@media (max-width: 900px) { .s08 .copy, .s08 .trio { grid-column: 1 / -1; } }


/* ---------- 9 erp ---------- */
.s09 .head-col { grid-column: 1 / span 7; display: grid; gap: 28px; }
.s09 .side { grid-column: 9 / -1; display: grid; gap: 20px; align-self: end; }
.sys-tag { display: flex; align-items: center; gap: 16px; font-weight: 700; font-size: 18px; }
.sys-tag .tile { width: 64px; flex: none; }
.sys-tag .tile img, .sys-tag .tile svg { width: 100%; height: auto; }
.facts { display: grid; gap: 12px; }
.facts li { display: flex; gap: 12px; align-items: baseline; font-size: 19px; line-height: 1.45; max-width: 46ch; }
.facts li::before { content: ""; width: 12px; height: 12px; flex: none; background: currentColor; transform: translateY(-1px); }
.steps4 { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 24px; }
.steps4 li { display: grid; gap: 14px; font-weight: 800; font-size: clamp(18px, 1.6vw, 24px); }
.steps4 .track { height: 14px; background: var(--grey-light); overflow: hidden; }
.steps4 .fill { display: block; height: 100%; background: var(--rust); transform-origin: left center; }
:dir(rtl) .steps4 .fill { transform-origin: right center; }
.note { font-size: 16px; color: var(--grey); max-width: 60ch; }
@media (max-width: 900px) { .s09 .head-col, .s09 .side { grid-column: 1 / -1; } .steps4 { grid-template-columns: 1fr 1fr; row-gap: 20px; } }

/* ---------- 10 cr (pin 2, desktop: before/after) ---------- */
.s10 .copy { grid-column: 1 / span 6; display: grid; gap: 24px; }
.s10 .ba { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: end; }
.frame { position: relative; aspect-ratio: 9 / 16; overflow: hidden; background: var(--grey); }
.frame video, .frame img:not(.badge) { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.frame .tag { position: absolute; top: 12px; inset-inline-start: 12px; z-index: 3; padding: 6px 12px; background: var(--cream); color: var(--ink); font-weight: 800; font-size: 16px; }
.raw video, .raw img { filter: grayscale(1) contrast(0.82) brightness(1.06); }
.edited .media { position: absolute; inset: 0; transform: scale(1.22); transform-origin: 50% 40%; }
.edited video, .edited img:not(.badge) { filter: grayscale(1) contrast(1.25); }
.edited .tone { position: absolute; inset: 0; background: var(--saffron); mix-blend-mode: multiply; z-index: 1; }
.edited .tag { background: var(--saffron); }
.edited .cap { position: absolute; inset-inline: 10%; bottom: 10%; z-index: 2; display: grid; gap: 8px; }
.edited .cap i { display: block; height: 14px; background: var(--cream); }
.edited .cap i:last-child { width: 62%; background: var(--rust); }
.edited .badge { position: absolute; top: 12px; bottom: auto; inset-inline-end: 12px; z-index: 3; width: 40px; height: 40px; }
.play { position: absolute; z-index: 4; inset-inline-start: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border: 0; background: var(--ink); color: var(--cream); font-weight: 800; cursor: pointer; }
.play .ico { width: 18px; height: 18px; }
.play[hidden] { display: none; }
.prices { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.prices li { background: var(--cream); color: var(--ink); padding: 16px 18px; font-weight: 800; font-size: 19px; line-height: 1.3; }
.s10 .facts { gap: 10px; }
/* desktop pin: the edited frame slides over the raw one; transforms only */
.ba.wipe { display: block; position: relative; max-width: min(100%, 52vh); justify-self: end; width: 100%; }
.ba.wipe .frame { position: absolute; inset: 0; }
.ba.wipe .raw { position: relative; }
.ba.wipe .mask { position: absolute; inset: 0; overflow: hidden; z-index: 2; }
.ba.wipe .mask > .frame { position: absolute; inset: 0; }
.ba.wipe .divider { position: absolute; top: 0; bottom: 0; inset-inline-start: 0; width: 8px; margin-inline-start: -4px; background: var(--saffron); z-index: 5; }
@media (max-width: 1023px) { .s10 .copy, .s10 .ba { grid-column: 1 / -1; } .s10 .ba { max-width: 560px; } }
@media (max-width: 560px) { .prices { grid-template-columns: 1fr; } }

/* ---------- 11 ad.kryphs + KRYPHS Library ---------- */
.s11 .copy { grid-column: 1 / span 5; display: grid; gap: 24px; }
.s11 .lib { grid-column: 7 / -1; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.plans li { background: var(--ink); color: var(--cream); padding: 16px; font-weight: 800; font-size: 18px; line-height: 1.3; }
.pilot { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 19px; font-weight: 600; }
.pill-tag { display: inline-block; padding: 4px 10px; background: var(--rust); color: var(--cream); font-size: 16px; font-weight: 800; }
.libui { background: var(--cream); display: grid; grid-template-columns: 64px 1fr; min-height: 420px; }
.libui .side { background: var(--ink); display: grid; align-content: start; gap: 14px; padding: 16px 0; justify-items: center; }
.libui .side .ico { width: 26px; height: 26px; color: var(--cream); opacity: .55; }
.libui .side .ico.on { opacity: 1; color: var(--saffron); }
.libui .main { padding: 18px; display: grid; gap: 14px; align-content: start; }
.libui .top { display: flex; gap: 10px; align-items: center; }
.libui .search { flex: 1; height: 40px; background: var(--white); display: flex; align-items: center; padding-inline: 12px; }
.libui .search .ico { width: 18px; height: 18px; color: var(--grey); }
.libui .cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.vid { background: var(--white); display: grid; }
.vid .th { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--rust); }
.vid .th img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.15); mix-blend-mode: multiply; }
.vid.s .th { background: var(--saffron); } .vid.o .th { background: var(--orange); }
.vid .meta { display: flex; align-items: center; gap: 6px; padding: 8px; }
.vid .meta i { height: 8px; flex: 1; background: var(--grey-light); }
.vid .meta .ico { width: 16px; height: 16px; color: var(--rust); flex: none; }
.vid.lift { position: relative; z-index: 2; }
@media (max-width: 900px) { .s11 .copy, .s11 .lib { grid-column: 1 / -1; } }
@media (max-width: 560px) { .plans { grid-template-columns: 1fr; } .libui { grid-template-columns: 48px 1fr; min-height: 0; } .libui .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .libui .cards .vid:nth-child(n+5) { display: none; } }

/* ---------- 12 how we work + routing + booking ---------- */
.s12 { align-content: start; }
.s12 .copy { grid-column: 1 / span 6; display: grid; gap: 28px; }
.s12 .how { grid-column: 8 / -1; display: grid; gap: 10px; }
.how li { display: flex; gap: 16px; align-items: center; padding: 16px 20px; background: var(--cream); color: var(--ink); font-weight: 700; font-size: 20px; line-height: 1.3; }
.how .tick { width: 30px; height: 30px; flex: none; color: var(--rust); }
.routes { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 40px; }
.route { display: grid; align-content: space-between; gap: 40px; min-height: 200px; padding: 22px; border: 0; text-align: start; cursor: pointer; font-weight: 900; font-size: clamp(22px, 2vw, 30px); line-height: 1.1; letter-spacing: -0.01em; transition: transform 200ms var(--ease-out), background-color 200ms ease; }
.route:active { transform: scale(0.98); }
.route .arrow { width: 32px; height: 32px; justify-self: end; }
:dir(rtl) .route .arrow { transform: scaleX(-1); }
.route.r-s { background: var(--saffron); color: var(--ink); }
.route.r-c { background: var(--cream); color: var(--ink); }
.route.r-o { background: var(--orange); color: var(--white); }
.route.r-i { background: var(--ink); color: var(--cream); }
@media (hover: hover) and (pointer: fine) { .route:hover { transform: translateY(-6px); } }
.final { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 48px; }
@media (max-width: 900px) { .s12 .copy, .s12 .how { grid-column: 1 / -1; } .routes { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .route { min-height: 150px; padding: 18px; } }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: var(--cream); padding-block: clamp(64px, 10vh, 120px) 32px; display: grid; gap: clamp(48px, 8vh, 96px); }
.foot .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px 40px; align-items: start; }
.foot .line { max-width: 44ch; font-size: 18px; }
.foot nav ul { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.foot nav a { display: inline-flex; min-height: 44px; align-items: center; font-weight: 700; }
.foot .name { font-size: clamp(64px, 19vw, 300px); font-weight: 900; line-height: 0.82; letter-spacing: -0.05em; color: var(--saffron); direction: ltr; text-align: start; }
:dir(rtl) .foot .name { text-align: end; }
.foot .meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; font-size: 16px; }
.foot .credits { color: var(--grey-light); max-width: 70ch; }

/* ---------- booking dialog ---------- */
.dlg { /* taste-skill-ignore: the dialog floats */ width: min(600px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 0; background: var(--cream); color: var(--ink); overscroll-behavior: contain; overflow-y: auto; box-shadow: 0 30px 80px -30px rgba(20, 20, 20, .6); }
.dlg::backdrop { background: rgba(20, 20, 20, .66); }
html.dlg-open, html.dlg-open body { overflow: hidden; }
.dlg [hidden] { display: none !important; }
.dlg-panel { padding: clamp(20px, 3vw, 32px); display: grid; gap: 20px; }
.dlg-head { display: flex; justify-content: space-between; gap: 16px; align-items: start; }
.dlg h2 { font-size: clamp(28px, 4vw, 36px); font-weight: 900; line-height: 1.05; letter-spacing: -0.02em; }
:lang(ar) .dlg h2 { letter-spacing: 0; line-height: 1.35; }
.dlg-sub { font-size: 17px; margin-top: 8px; max-width: 46ch; }
.x { flex: none; width: 48px; height: 48px; display: grid; place-items: center; border: 0; background: var(--ink); color: var(--cream); cursor: pointer; transition: transform 160ms var(--ease-out); }
.x:active { transform: scale(0.95); }
.x .ico { width: 20px; height: 20px; }
.dlg form { display: grid; gap: 18px; }
.dgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.df { display: grid; gap: 6px; align-content: start; min-width: 0; }
.df.wide { grid-column: 1 / -1; }
.df > label, .df > .lbl { font-size: 16px; font-weight: 800; }
.df small { font-size: 16px; font-weight: 500; color: var(--grey); }
.df input, .df select, .df textarea, .pickf { display: block; width: 100%; min-height: 52px; padding: 12px 14px; border: 2px solid var(--ink); border-radius: 0; background: var(--white); font-size: 18px; }
.df textarea { min-height: 96px; resize: vertical; line-height: 1.45; }
.df input:focus-visible, .df select:focus-visible, .df textarea:focus-visible, .pickf:focus-visible { outline: 3px solid var(--rust); outline-offset: 0; }
.df [aria-invalid="true"] { border-color: var(--orange); border-width: 3px; }
.ferr { font-size: 16px; font-weight: 700; color: var(--rust); }
.pickf { display: flex; align-items: center; justify-content: space-between; gap: 8px; text-align: start; cursor: pointer; }
.pickf .ico { width: 20px; height: 20px; color: var(--rust); flex: none; }
.pickf.empty .pv { color: var(--grey); }
.pv { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dlg .send { width: 100%; }
.dlg .send[disabled] { opacity: .7; cursor: wait; }
.privacy { font-size: 16px; color: var(--grey); }
.send-err { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 14px; background: var(--white); border-inline-start: 6px solid var(--orange); font-size: 16px; font-weight: 700; }
.send-err button { min-height: 44px; padding: 8px 16px; border: 0; background: var(--ink); color: var(--cream); font-weight: 800; cursor: pointer; }
.done { display: grid; gap: 18px; justify-items: start; outline: none; }
.done .ok { width: 64px; height: 64px; display: grid; place-items: center; background: var(--saffron); }
.done .ok .ico { width: 30px; height: 30px; color: var(--ink); }
.done p { font-size: 19px; max-width: 40ch; }
/* day and time picker */
.pick { width: min(440px, calc(100% - 32px)); }
.calbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.calbar p { font-weight: 800; font-size: 19px; }
.nav { width: 48px; height: 48px; display: grid; place-items: center; border: 2px solid var(--ink); background: transparent; cursor: pointer; }
.nav .ico { width: 18px; height: 18px; }
:dir(rtl) .nav .ico, :dir(rtl) .back .ico { transform: scaleX(-1); }
.nav:disabled { opacity: .35; cursor: default; }
.calgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.dow { text-align: center; font-size: 14px; font-weight: 700; color: var(--grey); padding-block: 6px; }
.day { height: 46px; padding: 0; border: 0; background: var(--white); font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; cursor: pointer; }
.day:disabled { background: transparent; color: var(--grey); font-weight: 400; cursor: default; }
.day[aria-pressed="true"], .slot[aria-pressed="true"] { background: var(--rust); color: var(--cream); }
.slots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.slot { min-height: 48px; border: 0; background: var(--white); font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; direction: ltr; cursor: pointer; }
.back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border: 2px solid var(--ink); background: transparent; font-weight: 700; cursor: pointer; justify-self: start; }
.back .ico { width: 16px; height: 16px; }
@media (hover: hover) and (pointer: fine) { .day:not(:disabled):not([aria-pressed="true"]):hover, .slot:not([aria-pressed="true"]):hover { background: var(--saffron); } }
@media (prefers-reduced-motion: no-preference) {
  .dlg[open] { animation: dlg-in 220ms var(--ease-out); }
  @keyframes dlg-in { from { opacity: 0; transform: translateY(16px); } }
}
@media (prefers-reduced-motion: reduce) {
  .dlg[open] { animation: dlg-fade 160ms ease; }
  @keyframes dlg-fade { from { opacity: 0; } }
}
@media (max-width: 640px) {
  .dlg { width: 100%; max-width: 100%; max-height: 94dvh; margin: auto 0 0; }
  .dgrid { grid-template-columns: 1fr; }
  .slots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- helpers for motion (motion.js adds .motion on <html> only when it runs) ---------- */
.mask-line { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.mask-line > span { display: inline-block; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
  .btn, .tab, .route, .trio a { transition: background-color 200ms ease, color 200ms ease; }
  .btn:active, .tab:active, .route:active, .trio a:active, .x:active { transform: none; }
}

/* ================= v0.1 strings layout (Maya's keys) ================= */
/* bar: the full lockup on wide screens, the mark alone on phones so the CTA fits at 360 px */
.bar .lk-mark { display: none; height: 36px; width: 36px; }
@media (max-width: 560px) {
  .bar .lk-full { display: none; }
  .bar .lk-mark { display: block; }
  .bar .btn { max-width: 46vw; white-space: normal; text-align: center; line-height: 1.15; min-height: 44px; padding: 6px 12px; font-size: 16px; }
}

/* hero */
.hero { position: relative; }
.hero-mark { width: 100%; height: auto; overflow: visible; }
.scroll-cue { position: absolute; inset-inline-start: var(--m); bottom: 20px; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 16px; font-weight: 700; text-decoration: none; }
.scroll-cue svg { width: 18px; height: 18px; }
@media (max-height: 640px), (max-width: 560px) { .scroll-cue { display: none; } }

/* the outcome / system line under a screen's text (Maya's chapter line, set after the text, not as a label above it) */
.tagline { font-size: 19px; font-weight: 800; line-height: 1.35; max-width: 40ch; }
.f-saffron .tagline { color: var(--rust); }
.f-rust .tagline, .f-ink .tagline { color: var(--saffron); }

/* 4: the KRYPHS mark as the diagram. Tile = KRYPHS; the three rings = grow, earn more, spend less */
.nest { position: relative; aspect-ratio: 1; width: min(100%, 60vh); }
.nest i { position: absolute; }
.nest .n0 { inset: 0; border-radius: 23.3%; background: var(--saffron); }
.nest .n1 { inset: 18.3%; border-radius: 15%; border: clamp(8px, 1.4vw, 18px) solid var(--rust); }
.nest .n2 { inset: 30%; border-radius: 13%; border: clamp(8px, 1.4vw, 18px) solid var(--orange); }
.nest .n3 { inset: 40.8%; border-radius: 9%; border: clamp(8px, 1.4vw, 18px) solid var(--cream); }
.stages { display: grid; gap: 22px; }
.stages li { display: flex; align-items: flex-start; gap: 16px; }
.stages li > span:last-child { display: grid; gap: 4px; }
.stages b { font-size: var(--t-head); font-weight: 900; line-height: 1.05; letter-spacing: -0.02em; }
:lang(ar) .stages b { letter-spacing: 0; line-height: 1.35; }
.stages li > span:last-child > span { font-size: 18px; line-height: 1.4; max-width: 24ch; }
.stages .sw { width: 26px; height: 26px; border-radius: 7px; flex: none; margin-top: 6px; }
.stages li:nth-child(1) .sw { background: var(--rust); outline: 3px solid var(--saffron); outline-offset: -3px; }
.stages li:nth-child(2) .sw { background: var(--orange); }
.stages li:nth-child(3) .sw { background: var(--cream); }
@media (max-width: 1023px) { .s04 .copy, .s04 .system { grid-column: 1 / -1; } .nest { width: min(100%, 380px); } }
@media (max-width: 640px) { .s04 .system { grid-template-columns: 1fr; } .nest { width: 72%; } }

/* 5: the funnel; the diagram mirrors in Arabic so it reads from the start side */
.flow-labels { position: absolute; inset: 0; pointer-events: none; }
.flow-labels li { position: absolute; inset-inline-start: var(--x); top: var(--y); transform: translateX(-50%); font-weight: 800; font-size: clamp(16px, 1.5vw, 22px); line-height: 1.15; white-space: nowrap; }
:dir(rtl) .flow-labels li { transform: translateX(50%); }
.flow-labels li:first-child { transform: none; }
.flow-labels li.end { transform: translateX(-70%); color: var(--rust); font-size: clamp(18px, 1.8vw, 26px); }
:dir(rtl) .flow-labels li.end { transform: translateX(70%); }
:dir(rtl) .flow svg { transform: scaleX(-1); }
.flow .stop rect { fill: var(--cream); }

/* 6: the case */
.case .note { font-size: 16px; color: var(--grey); }

/* 7: the calculator */
.field.wide { grid-column: 1 / -1; }
.field .hint { font-size: 16px; line-height: 1.45; color: var(--grey); max-width: 60ch; }
.inp { position: relative; display: block; }
.inp input { padding-inline-end: 40px; }
.inp .unit { position: absolute; inset-inline-end: 14px; top: 50%; transform: translateY(-50%); font-weight: 700; font-size: 18px; color: var(--grey); pointer-events: none; }
.tab { display: grid; gap: 2px; text-align: start; min-height: 64px; padding: 10px 18px; }
.tab .tt { display: flex; align-items: center; font-size: 19px; font-weight: 800; }
.tab .ts { font-size: 16px; font-weight: 500; }
.tab[aria-selected="true"] .ts { color: var(--cream); }
:dir(rtl) .tab .ts[dir="ltr"] { text-align: end; }
.examples { display: block; font-size: 16px; color: var(--grey); max-width: 60ch; }
.examples b { color: var(--ink); }
.result .fig { font-size: clamp(48px, 5.4vw, 84px); font-weight: 900; line-height: 1; letter-spacing: -0.03em; color: var(--saffron); }
.total-h { font-size: 20px; font-weight: 800; }
.total .total-line { font-size: clamp(20px, 1.8vw, 26px); font-weight: 800; line-height: 1.3; max-width: 36ch; }
.total .total-line b { font-weight: 900; }
.total .small { font-size: 17px; font-weight: 600; max-width: 50ch; }
.total .cta-lead { font-size: 19px; font-weight: 800; margin-top: 6px; }
.total-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.reset { min-height: 56px; padding: 12px 20px; border: 2px solid var(--ink); background: transparent; font-weight: 800; font-size: 17px; cursor: pointer; transition: transform 160ms var(--ease-out), background-color 200ms ease; }
.reset:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .reset:hover { background: var(--cream); } }
.calc-lib .link { font-size: 17px; min-height: 44px; }

/* 9 / 10 / 11: system tag (mark + outcome line + "a KRYPHS system") */
.sys-tag { display: flex; align-items: center; gap: 16px; }
.sys-tag .tile { width: 64px; flex: none; }
.sys-tag .tile img { width: 100%; height: auto; }
.sys-tag > span:last-child { display: grid; gap: 2px; font-size: 17px; font-weight: 600; line-height: 1.3; }
.sys-tag b { font-size: 19px; font-weight: 800; }
.f-ink .sys-tag b, .f-rust .sys-tag b { color: var(--saffron); }
.f-saffron .sys-tag b { color: var(--rust); }

/* 10: before/after */
.s10 .ba-col { grid-column: 8 / -1; display: grid; gap: 14px; justify-items: end; }
.s10 .ba { width: 100%; }
.ba-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; width: 100%; }
.play { position: static; background: var(--saffron); color: var(--ink); }
.play .i-pause { display: none; }
.play[aria-pressed="true"] .i-play { display: none; }
.play[aria-pressed="true"] .i-pause { display: block; }
.f-ink .note { color: var(--grey-light); }
@media (max-width: 1023px) { .s10 .ba-col { grid-column: 1 / -1; justify-items: start; } .s10 .ba { max-width: 560px; } }

/* 11 */
.product { font-size: 19px; line-height: 1.4; }
.pilot { font-size: 19px; }

/* 12 */
.s12 .how-col { grid-column: 8 / -1; display: grid; gap: 14px; }
.how-h { font-size: 20px; font-weight: 800; color: var(--saffron); }
.how li > span { display: grid; gap: 2px; }
.how li b { font-size: 20px; font-weight: 800; }
.how li > span > span { font-size: 18px; font-weight: 500; }
.route > span { display: grid; gap: 10px; }
.route .rb { font-size: 16px; font-weight: 600; letter-spacing: 0; line-height: 1.35; }
@media (max-width: 900px) { .s12 .how-col { grid-column: 1 / -1; } }

/* footer */
.foot .fh { font-size: 16px; font-weight: 800; color: var(--saffron); margin-bottom: 6px; }
.foot .contact p { font-size: 17px; }
.foot .unset { font-weight: 800; }
.foot .legal { font-size: 16px; color: var(--grey-light); max-width: 60ch; }
.motion-toggle a { display: inline-flex; min-height: 44px; align-items: center; font-weight: 700; }
.motion-toggle a[aria-disabled] { text-decoration: none; }

/* booking extras */
.done .when { font-weight: 800; color: var(--ink); }
.dgrid .tz { font-size: 16px; color: var(--grey); }
.done .wa-blocked { font-size: 17px; color: var(--grey); }
.done .wa-blocked a { display: inline-block; min-height: 44px; padding-block: 10px; color: var(--rust); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }

/* motion off (footer switch or reduced motion): the marquee stands still */
.no-motion .marquee-track { animation: none !important; }

/* ================= poster layout: the headline runs the full width on its own row, sized so it holds two lines ================= */
.screen > .grid { container-type: inline-size; align-items: start; row-gap: clamp(20px, 3vh, 36px); }
.screen .copy, .s09 .head-col { display: contents; }
/* --chars is the headline's length (set by the build and by i18n.js); 0.56 em a character, two lines at about 90% fill */
.display { grid-column: 1 / -1; grid-row: 1; max-width: none; font-size: clamp(36px, calc(var(--fitk, 330) * 1cqi / var(--chars, 30)), 168px); margin-bottom: clamp(4px, 1vh, 12px); }
:lang(ar) .display { --fitk: 330; line-height: 1.3; }
.screen .copy > :not(.display), .s09 .head-col > :not(.display) { grid-column: 1 / span 5; }
.screen .sys-tag { grid-row: auto; }
.s09 .sys-tag, .s10 .sys-tag, .s11 .sys-tag { order: -1; }
/* the visual of each screen sits beside the text, under the headline */
.hero .art { grid-column: 8 / -1; grid-row: 2 / span 4; width: min(100%, 44vh); justify-self: end; }
.s02 .pile { grid-column: 7 / -1; grid-row: 2 / span 6; height: min(48vh, 440px); }
.s03 .tools { grid-column: 7 / -1; grid-row: 2 / span 6; height: min(48vh, 440px); }
.s04 .system { grid-column: 6 / -1; grid-row: 2 / span 6; }
.nest { width: min(100%, 46vh); }
.s05 .flow { grid-column: 6 / -1; grid-row: 2 / span 6; max-width: 70vh; justify-self: end; width: 100%; }
.s06 .canvas { grid-column: 7 / -1; grid-row: 2 / span 6; }
.s07 .calc { grid-column: 6 / -1; grid-row: 2 / span 8; }
.s07 .copy > .lead { position: sticky; top: calc(var(--bar) + 24px); }
.s08 .trio { grid-column: 7 / -1; grid-row: 2 / span 4; }
.s09 .side { grid-column: 7 / -1; grid-row: 2 / span 4; align-self: start; }
.s09 .steps4 { grid-column: 1 / -1; }
.s10 .ba-col { grid-column: 8 / -1; grid-row: 2 / span 8; }
.s11 .lib { grid-column: 7 / -1; grid-row: 2 / span 8; }
.s12 .how-col { grid-column: 7 / -1; grid-row: 2 / span 4; }
/* the three system screens: the mark line comes first, above the headline row */
.s09 .sys-tag, .s10 .sys-tag, .s11 .sys-tag { grid-column: 1 / -1; grid-row: 1; }
.s09 .display, .s10 .display, .s11 .display { grid-row: 2; }
.s09 .side, .s10 .ba-col, .s11 .lib { grid-row: 3 / span 8; }
.route { text-decoration: none; }
.wf .msg { width: 64%; }
.wf .msg.bot { width: 52%; }
@media (max-width: 900px) {
  .display { --fitk: 420; }
  :lang(ar) .display { --fitk: 440; }
  .screen .copy > :not(.display), .s09 .head-col > :not(.display),
  .hero .art, .s02 .pile, .s03 .tools, .s04 .system, .s05 .flow, .s06 .canvas, .s07 .calc, .s08 .trio, .s09 .side, .s10 .ba-col, .s11 .lib, .s12 .how-col { grid-column: 1 / -1; grid-row: auto; }
  .hero .art { grid-row: auto; width: min(48%, 220px); justify-self: start; }
  .s07 .copy > .lead { position: static; }
  .s05 .flow { max-width: none; }
  .nest { width: min(72%, 360px); }
}
@media (max-width: 560px) {
  .display { --fitk: 430; }
  .screen { min-height: auto; padding-block: 72px; }
  .hero { min-height: calc(100svh - var(--bar)); }
}

/* 10: keep the cr.kryphs screen one viewport tall on desktop so it can hold the wipe */
@media (min-width: 1024px) { .s10 { padding-block: 72px; } .ba.wipe { max-width: min(100%, 34vh); } .s10 .facts { gap: 6px; } .s10 .facts li { font-size: 19px; } }
.screen { overflow-x: clip; }
@media (min-width: 1024px) {
  .s10 .copy > :not(.display):not(.sys-tag) { grid-column: 1 / span 4; }
  .s10 .copy > .facts:not(.display):not(.sys-tag) { grid-column: 5 / span 4; grid-row: 3 / span 6; }
  .s10 .display { --fitk: 280; }
  .s10 .ba-col { grid-column: 9 / -1; grid-row: 3 / span 8; }
}
figure { margin: 0; }
@media (min-width: 1024px) {
  .s10 .display { --fitk: 215; grid-column: 1 / span 8; }
  .s10 .sys-tag { grid-column: 1 / span 8; }
  .s10 .ba-col { grid-row: 1 / span 10; align-self: center; }
  .ba.wipe { max-width: min(100%, 40vh); }
}
/* 10: the cr.kryphs card holds two scannable groups, short videos and podcasts (strings v1.6) */
.offers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 32px); align-items: start; }
.offer { display: grid; gap: 10px; align-content: start; }
.offer h3 { font-size: clamp(22px, 1.9vw, 28px); font-weight: 900; line-height: 1.1; letter-spacing: -0.01em; color: var(--saffron); padding-bottom: 8px; border-bottom: 3px solid var(--saffron); }
:lang(ar) .offer h3 { letter-spacing: 0; line-height: 1.4; }
.offer .prices { grid-template-columns: 1fr; gap: 4px; }
.offer .prices li { padding: 10px 14px; font-size: 19px; line-height: 1.35; }
.s10 .offer .facts { gap: 6px; }
.s10 .offer .facts li { font-size: 19px; line-height: 1.4; max-width: 46ch; }
.s10 .longform { font-size: 19px; line-height: 1.45; max-width: 52ch; color: var(--grey-light); text-wrap: pretty; }
@media (min-width: 1024px) {
  .s10 .copy > :is(.offers, .lead, .longform):not(.display) { grid-column: 1 / span 8; }
  .s10 .copy > .lead { max-width: 52ch; }
}
@media (max-width: 1023px) { .s10 .copy > :is(.offers):not(.display) { grid-column: 1 / -1; } }
@media (max-width: 640px) { .offers { grid-template-columns: 1fr; gap: 28px; } }
.ba.wipe .raw { z-index: 1; }
.edited .tag { inset-inline-start: auto; inset-inline-end: 12px; }
.edited .badge { inset-inline-end: auto; inset-inline-start: 12px; }
@media (max-width: 560px) { .display { line-height: 1; } .stages { grid-template-columns: 1fr; } }
:lang(ar) .display { --fitk: 235; }
@media (min-width: 1024px) { :lang(ar) .s10 .display { --fitk: 160; } }
@media (max-width: 900px) { :lang(ar) .display { --fitk: 330; } }

/* inspect round 1 fixes */
/* the system line sits under the headline, never above it as a label */
.screen .sys-tag { grid-row: auto !important; order: 0 !important; }
.s09 .display, .s10 .display, .s11 .display { grid-row: 1; }
.s09 .side, .s11 .lib { grid-row: 2 / span 8; }
/* 10 on desktop: the picture sits at the foot of the screen, so when the screen is taller than the window (strings v1.6
   added the podcast group) the pin can start with the screen's bottom on the window's bottom and still show the whole picture */
@media (min-width: 1024px) { .s10 .ba-col { grid-row: 1 / span 6; align-self: end; } }
/* routing: a list set in large type, one full-width row per system */
.routes { grid-template-columns: 1fr; gap: 6px; }
.route { grid-template-columns: minmax(0, 1fr) auto; align-items: center; min-height: 0; padding: clamp(18px, 2.4vw, 30px) clamp(18px, 2.4vw, 32px); }
.route > span { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: baseline; gap: 6px 24px; }
.route b { font-size: clamp(26px, 3.4vw, 52px); font-weight: 900; letter-spacing: -0.02em; line-height: 1.05; }
:lang(ar) .route b { letter-spacing: 0; line-height: 1.35; }
.route .rb { font-size: clamp(16px, 1.4vw, 20px); }
@media (hover: hover) and (pointer: fine) { .route:hover { transform: translateX(8px); } :dir(rtl) .route:hover { transform: translateX(-8px); } }
@media (max-width: 640px) { .route > span { grid-template-columns: 1fr; } }
/* tablet: two lines for every headline */
@media (min-width: 561px) and (max-width: 900px) { .display { --fitk: 330; } :lang(ar) .display { --fitk: 250; } }
@media (min-width: 561px) and (max-width: 1023px) { .s04 .system { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); } .stages li > span:last-child > span { max-width: none; } }
@media (max-width: 560px) { .result .big { font-size: 20px; } }

/* how it starts: a plain ordered list in large type (no icon cards) */
.how { gap: 0; }
.how li { background: none; color: var(--cream); padding: 14px 0; border-block-start: 6px solid var(--saffron); }
.how li b { font-size: clamp(24px, 2.4vw, 34px); font-weight: 900; line-height: 1.1; }
.how li > span > span { font-size: 18px; }
@media (max-width: 640px) { .routes { margin-inline: calc(-1 * var(--m)); } .route { padding-inline: var(--m); } }
/* Arabic: Latin runs (Odoo S.A., ISO dates, $ amounts) are isolated left-to-right and kept on one line */
bdi[dir="ltr"] { white-space: nowrap; }
.total .total-fine { font-size: 16px; font-weight: 500; max-width: 60ch; }
/* figures inside a sentence use proportional digits (tabular ones spaced the thousands comma: "$1 , 968") */
b.num { font-variant-numeric: normal; }

/* launch mode: the note shown when WHATSAPP_NUMBER is unset */
.wa-note { position: fixed; inset-inline: var(--m); bottom: 20px; z-index: 40; margin-inline: auto; max-width: 40ch; padding: 14px 18px; background: var(--ink); color: var(--cream); font-size: 18px; font-weight: 700; text-align: center; }
.wa-note[hidden] { display: none; }
.foot .contact[hidden] { display: none; }
[hidden] { display: none !important; }
/* F-7 in the form: each typed line takes its own direction ("CLIENT_A S.A." stays left-to-right in Arabic); empty fields keep the page direction */
.df input:not([type=tel]), .df textarea { unicode-bidi: plaintext; }
