@font-face { font-family: 'Readex Pro'; font-style: normal; font-weight: 300 600; font-display: swap; src: url("fonts/readex-pro-arabic.woff2") format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-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, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1; }
@font-face { font-family: 'Readex Pro'; font-style: normal; font-weight: 300 600; font-display: swap; src: url("fonts/readex-pro-latin-ext.woff2") format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Readex Pro'; font-style: normal; font-weight: 300 600; font-display: swap; src: url("fonts/readex-pro-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: 'Roboto Condensed'; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/roboto-condensed-latin-ext.woff2") format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Roboto Condensed'; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/roboto-condensed-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; }

/* Zen website. The whole site sits between a bid and an ask: the app's buy blue and sell red on a deep
   ink ground. One number, --spread (in pips), sets the opening of every ring and the gap in every rule. */
@property --spread { syntax: "<number>"; inherits: true; initial-value: 1.2; }
@property --turn { syntax: "<number>"; inherits: true; initial-value: 0; }

:root {
  --ink: #0b1220;
  --ink-raised: #111a2b;
  --line: #22304a;
  --text: #e8edf5;
  --muted: #93a1b8;
  --bid: #3d94e8;
  --ask: #f04a32;
  --display: "Readex Pro", "Segoe UI", system-ui, sans-serif;
  --label: "Roboto Condensed", "Readex Pro", "Segoe UI", sans-serif;
  --page: min(1180px, 100% - 48px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --spread: 1.2;
  --turn: 0;
  /* Ring opening in degrees and rule gap in pixels, both from the spread. */
  --gap: calc(14 + 9 * var(--spread));
  --gapw: calc(6px + 18px * var(--spread));
  --rule: linear-gradient(to right,
    var(--line) 0 calc(78% - var(--gapw) / 2 - 40px),
    var(--bid) 0 calc(78% - var(--gapw) / 2),
    transparent 0 calc(78% + var(--gapw) / 2),
    var(--ask) 0 calc(78% + var(--gapw) / 2 + 40px),
    var(--line) 0);
  transition: --spread 0.5s var(--ease), --turn 0.9s var(--ease);
  color-scheme: dark;
}
/* The 404 page: no price, so the ring stands wide open. */
:root.off-quotes { --spread: 6; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
html.i18n-pending body { visibility: hidden; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 17px/1.6 var(--display);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--bid); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--bid); color: #06101f; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
[id] { scroll-margin-top: 96px; }

h1 { font-size: clamp(2.3rem, 5.2vw, 4.3rem); line-height: 1.04; font-weight: 600; letter-spacing: -0.03em; text-wrap: balance; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); line-height: 1.12; font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; }
h3 { font-size: 1.2rem; line-height: 1.3; font-weight: 600; }
:lang(ar) h1, :lang(ar) h2 { letter-spacing: 0; line-height: 1.3; }
.lede { max-width: 40em; margin-top: 22px; color: var(--muted); font-size: clamp(1.05rem, 1.5vw, 1.25rem); font-weight: 300; }
.label { font: 500 0.82rem/1.3 var(--label); letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); }
:lang(ar) .label { letter-spacing: 0; font-size: 0.9rem; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.wrap { width: var(--page); margin-inline: auto; }

.skip { position: absolute; z-index: 20; inset-block-start: 10px; inset-inline-start: 10px; padding: 10px 16px; border-radius: 999px; background: var(--text); color: var(--ink); font-weight: 600; text-decoration: none; translate: 0 -200%; }
.skip:focus { translate: 0 0; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgb(11 18 32 / 0.88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); view-transition-name: site-header; }
.site-header .wrap { display: flex; align-items: center; gap: 12px 28px; flex-wrap: wrap; padding-block: 14px; }
/* The logo is live: its ring follows the spread, and opens wider under the pointer. */
.brand { display: flex; flex: none; align-items: center; gap: 11px; border-radius: 6px; color: var(--text); }
.brand .ring { width: 34px; height: 34px; }
.brand .ring circle { stroke-width: 20; transition: stroke-dasharray 0.5s var(--ease), stroke-dashoffset 0.5s var(--ease); }
.brand .word { width: 62px; height: 25px; overflow: visible; }
.brand:focus-visible .ring { --gap: 80; }
.site-nav { display: flex; gap: 4px 24px; flex-wrap: wrap; margin-inline-start: auto; }
/* Nav links: a line that draws from the start edge; the current page keeps it. */
.site-nav a { padding-block: 6px; font-size: 0.95rem; color: var(--muted); text-decoration: none; background: linear-gradient(var(--bid) 0 0) 0 100% / 0% 2px no-repeat; transition: background-size 0.45s var(--ease), color 0.2s; }
:dir(rtl) .site-nav a { background-position: 100% 100%; }
.site-nav a[aria-current="page"], .site-nav a:focus-visible { color: var(--text); background-size: 100% 2px; }
.lang { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.lang button { min-height: 28px; padding: 4px 10px; border: 0; border-radius: 999px; background: none; color: var(--muted); font: 500 0.8rem/1.4 var(--label); cursor: pointer; transition: color 0.2s, background-color 0.2s; }
.lang button[aria-pressed="true"] { background: var(--line); color: var(--text); }

/* Buttons: the label rolls up one line, the way a price digit changes. */
.button { position: relative; isolation: isolate; display: inline-grid; overflow: clip; padding: 13px 24px; border-radius: 999px; background: var(--bid); color: #06101f; font-weight: 600; font-size: 1rem; line-height: 1.5; text-align: center; text-decoration: none; transition: background-color 0.3s; }
/* ...and the pill floods from bid blue to ask red. */
.button::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ask); scale: 0 1; transform-origin: 0 50%; transition: scale 0.5s var(--ease); }
:dir(rtl) .button::before { transform-origin: 100% 50%; }
.button:focus-visible::before, .button:active::before { scale: 1 1; }
.button > span { grid-area: 1 / 1; transition: translate 0.5s var(--ease); }
.button > span + span { translate: 0 160%; }
.button:focus-visible > span, .button:active > span { translate: 0 -160%; }
.button:focus-visible > span + span, .button:active > span + span { translate: 0 0; }
.button.small { padding: 8px 18px; font-size: 0.92rem; }

/* Links in text: an ask-red underline at rest that rises into a band. */
.link { color: var(--text); text-decoration: none; padding-block: 2px; background: linear-gradient(var(--ask) 0 0) 0 100% / 100% 2px no-repeat; transition: background-size 0.4s var(--ease); }
.link:focus-visible { background-size: 100% 100%; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 34px; }

@media (hover: hover) {
  .brand:hover .ring { --gap: 80; }
  .site-nav a:hover { color: var(--text); background-size: 100% 2px; }
  .site-nav a[aria-current="page"]:hover { background-image: linear-gradient(var(--ask) 0 0); }
  .lang button[aria-pressed="true"]:hover { background: #2d4063; }
  .lang button:hover { color: var(--text); }
  .button:hover::before { scale: 1 1; }
  .button:hover > span { translate: 0 -160%; }
  .button:hover > span + span { translate: 0 0; }
  .link:hover { background-size: 100% 100%; }
  .site-footer nav a:hover { text-decoration: underline; }
}

/* Ring: the logo's two arcs. They never meet, and the opening is the spread. */
.ring { display: block; overflow: visible; rotate: calc(var(--turn) * 1deg); }
.ring circle { fill: none; stroke-width: 7; stroke-linecap: round; }
.ring .ring-ask { stroke: var(--ask); stroke-dasharray: calc(105 - var(--gap)) 360; stroke-dashoffset: calc(-32.5 - var(--gap) / 2); }
.ring .ring-bid { stroke: var(--bid); stroke-dasharray: calc(255 - var(--gap)) 360; stroke-dashoffset: calc(-137.5 - var(--gap) / 2); }

/* Hero */
.hero { padding-block: clamp(48px, 7vw, 96px) 0; }
.hero-top { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px 56px; align-items: center; }
.page-hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px 56px; align-items: center; padding-block: clamp(48px, 7vw, 88px) clamp(32px, 5vw, 56px); }
.page-hero .quote { width: min(100%, 320px); }
.page-hero .price b { font-size: 2.4rem; }
.page-hero h1 { max-width: 15em; font-size: clamp(2.1rem, 4.6vw, 3.6rem); }

/* The quote: a simulated EURUSD price whose spread the visitor sets. */
.quote { width: min(100%, 380px); margin-inline: auto; }
.quote-face { position: relative; display: grid; place-items: center; aspect-ratio: 1; }
.quote-face .ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.quote-read { position: relative; display: grid; gap: 14px; justify-items: center; text-align: center; }
.prices { display: flex; gap: clamp(16px, 2.4vw, 30px); direction: ltr; }
.prices > div { display: grid; gap: 4px; justify-items: start; }
.prices dt { font: 500 0.82rem/1.3 var(--label); letter-spacing: 0.09em; text-transform: uppercase; }
.prices .bid dt { color: var(--bid); }
.prices .ask dt { color: #ff7a66; }
.price { display: inline-flex; align-items: baseline; font: 500 1.3rem/1 var(--label); font-variant-numeric: tabular-nums; }
.price b { font-size: clamp(2.4rem, 4.2vw, 3.1rem); font-weight: 500; letter-spacing: -0.01em; }
.price sup { align-self: flex-start; font-size: 1.3rem; line-height: 1; }
.seen { display: flex; gap: 8px; align-items: baseline; color: var(--muted); font-size: 0.86rem; }
.seen b { color: var(--text); font: 500 1rem/1 var(--label); font-variant-numeric: tabular-nums; }
.markup { display: grid; gap: 10px; margin-top: 22px; }
.markup-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.markup-head output { color: var(--text); font: 500 1rem/1 var(--label); font-variant-numeric: tabular-nums; }
.markup input { width: 100%; height: 28px; margin: 0; background: none; accent-color: var(--bid); cursor: ew-resize; appearance: none; -webkit-appearance: none; }
.markup input::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(to right, var(--bid) 0 50%, var(--ask) 0); }
.markup input::-moz-range-track { height: 2px; background: linear-gradient(to right, var(--bid) 0 50%, var(--ask) 0); }
.markup input::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -10px; border: 2px solid var(--ink); border-radius: 50%; background: var(--text); transition: scale 0.2s var(--ease); }
.markup input::-moz-range-thumb { width: 18px; height: 18px; border: 2px solid var(--ink); border-radius: 50%; background: var(--text); }
.markup input:active::-webkit-slider-thumb { scale: 1.25; }
.markup p { color: var(--muted); font-size: 0.86rem; line-height: 1.5; }

.stage { position: relative; margin-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(48px, 9vw, 120px); direction: ltr; }
.shot { border-radius: 12px; border: 6px solid #1c2740; box-shadow: 0 30px 80px rgb(0 0 0 / 0.55); background: #fff; }
.stage .desk { width: 80%; }
.stage .phone { position: absolute; width: 17.5%; }
.stage .phone.ios { right: 14%; bottom: 3%; }
.stage .phone.android { right: 0; bottom: 0; }
.phone img { width: 100%; border: 7px solid #1c2740; border-radius: 30px; background: #fff; box-shadow: 0 24px 60px rgb(0 0 0 / 0.6); }
.phone.android img { border-radius: 20px; }
figcaption { margin-top: 12px; text-align: center; }
.stage .desk-caption { width: 80%; }

/* Sections. Each one opens with a spread rule: bid on one side of the gap, ask on the other. */
main > section { padding-block: clamp(64px, 9vw, 120px); background: var(--rule) top center / var(--page) 2px no-repeat; }
.section-head { max-width: 46em; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head p { margin-top: 16px; color: var(--muted); font-size: 1.1rem; font-weight: 300; }

/* Index of the four tools: each row is a link. */
.tools { border-top: 1px solid var(--line); }
.tools li { border-bottom: 1px solid var(--line); }
.tool { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 8fr) 28px; gap: 8px 32px; align-items: baseline; padding-block: 28px; text-decoration: none; background: var(--rule) 0 100% / 0% 1px no-repeat; transition: background-size 0.6s var(--ease); }
.tool h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 500; letter-spacing: -0.015em; transition: translate 0.5s var(--ease); }
:lang(ar) .tool h3 { letter-spacing: 0; }
.tool p { color: var(--muted); }
.tool .arrow { justify-self: end; font-size: 1.3rem; color: var(--muted); transition: translate 0.5s var(--ease), color 0.2s; }
:dir(rtl) .tool .arrow { scale: -1 1; }
.tool:focus-visible { background-size: 100% 1px; }
.tool:focus-visible .arrow { color: var(--text); translate: 6px 0; }
@media (hover: hover) {
  .tool:hover { background-size: 100% 1px; }
  .tool:hover h3 { translate: 10px 0; }
  .tool:hover .arrow { color: var(--text); translate: 6px 0; }
  :dir(rtl) .tool:hover h3 { translate: -10px 0; }
  :dir(rtl) .tool:hover .arrow { translate: -6px 0; }
}

.points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 64px; }
.points li { padding-inline-start: 22px; border-inline-start: 3px solid var(--bid); }
.points li:nth-child(even) { border-color: var(--ask); }
.points p { margin-top: 8px; color: var(--muted); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 32px 64px; align-items: start; }
.checks li { position: relative; padding: 13px 0; padding-inline-start: 26px; border-bottom: 1px solid var(--line); }
.checks li::before { content: ""; position: absolute; inset-inline-start: 0; top: 1.45em; width: 12px; height: 3px; border-radius: 2px; background: var(--bid); }
.checks li:nth-child(even)::before { background: var(--ask); }
.checks.two { columns: 2; column-gap: 48px; }
.checks.two li { break-inside: avoid; }
/* The demo runs in this order, so its list is numbered. */
.steps { padding: 0; margin: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; padding-inline-start: 44px; }
.checks.steps li::before { content: counter(step); top: 13px; width: auto; height: auto; background: none; color: var(--bid); font: 500 1rem/1.7 var(--label); font-variant-numeric: tabular-nums; }
.split .actions { margin-top: 28px; }
.wide-shot { margin-top: clamp(32px, 5vw, 56px); direction: ltr; }
.shots-2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; margin-top: clamp(32px, 5vw, 56px); direction: ltr; }

.phones { display: grid; gap: 64px; margin-top: clamp(40px, 6vw, 64px); }
.phones h3 { margin-bottom: 22px; }
.phone-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 3vw, 40px); max-width: 900px; direction: ltr; }

/* Call to action */
.cta { background-color: var(--ink-raised); }
.cta .wrap { display: grid; grid-template-columns: minmax(0, 3fr) auto; gap: 32px 48px; align-items: center; }
.cta p { margin-top: 14px; color: var(--muted); max-width: 36em; }

/* 404 */
.lost { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px 56px; align-items: center; padding-block: clamp(56px, 8vw, 110px); }
.lost .label { margin-bottom: 18px; }
.lost .price { color: var(--muted); }

/* Footer: the quote again, small, on every page. */
.site-footer { border-top: 1px solid var(--line); padding-block: 40px 56px; color: var(--muted); font-size: 0.88rem; }
.site-footer .wrap { display: grid; gap: 14px; }
.foot-quote { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-bottom: 14px; color: var(--text); }
.foot-quote .ring { width: 44px; height: 44px; flex: none; }
.foot-quote .ring circle { stroke-width: 9; }
.foot-quote .pair { display: inline-flex; gap: 14px; direction: ltr; font: 500 1.05rem/1 var(--label); font-variant-numeric: tabular-nums; }
.foot-quote .pair .bid { color: #7db8f2; }
.foot-quote .pair .ask { color: #ff8a78; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 10px; }
.site-footer nav a { padding-block: 4px; color: var(--text); text-decoration: none; }

/* Motion. Things arrive the way a price changes: one short step, then still. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-group(site-header) { animation: none; }
  ::view-transition-old(root) { animation: 0.22s ease-in both step-out; }
  ::view-transition-new(root) { animation: 0.5s var(--ease) both step-in; }

  .js :is(.section-head, .split, .tools li, .points li, .wide-shot, .shots-2 figure, .phones > div, .cta .wrap) { opacity: 0; translate: 0 18px; transition: opacity 0.7s var(--ease), translate 0.7s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
  .js :is(.section-head, .split, .tools li, .points li, .wide-shot, .shots-2 figure, .phones > div, .cta .wrap).in { opacity: 1; translate: 0 0; }
  :is(.tools, .points) li:nth-child(2), .shots-2 figure:nth-child(2), .phones > div:nth-child(2) { --i: 1; }
  :is(.tools, .points) li:nth-child(3) { --i: 2; }
  :is(.tools, .points) li:nth-child(4) { --i: 3; }

  .quote-face .ring circle { animation: 1.2s var(--ease) both draw; }
  .quote-read, .markup { animation: 0.8s 0.25s var(--ease) both step-in; }
  .stage { animation: 0.9s 0.15s var(--ease) both step-in; }
}
@keyframes draw { from { stroke-dasharray: 0 360; } }
@keyframes step-in { from { opacity: 0; translate: 0 18px; } }
@keyframes step-out { to { opacity: 0; translate: 0 -10px; } }

@media (max-width: 860px) {
  .hero-top, .page-hero, .lost, .split, .cta .wrap, .phones, .points { grid-template-columns: minmax(0, 1fr); }
  .tool { grid-template-columns: minmax(0, 1fr) 28px; }
  .tool > :not(.arrow) { grid-column: 1; }
  .tool .arrow { grid-area: 1 / 2; }
  .points { gap: 32px; }
  .checks.two { columns: 1; }
  .site-nav { order: 3; width: 100%; margin-inline-start: 0; gap: 4px 20px; }
  .site-nav a { padding-block: 9px; }
  .lang { margin-inline-start: auto; }
  .quote { width: min(100%, 340px); }
}
@media (max-width: 640px) {
  :root { --page: calc(100% - 32px); }
  body { font-size: 16px; }
  .stage { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; padding-bottom: 56px; }
  .stage .desk-fig { grid-column: 1 / -1; }
  .stage .desk, .stage .desk-caption { width: 100%; }
  .stage .phone { position: static; width: 100%; }
  .pan { overflow-x: auto; border-radius: 12px; scroll-snap-type: x proximity; overscroll-behavior-x: contain; }
  .pan .shot { width: 760px; max-width: none; box-shadow: none; scroll-snap-align: start; }
  .stage .desk { width: 760px; }
  .phone-row { gap: 10px; }
  .phone img { border-width: 4px; border-radius: 18px; }
  .header-cta { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .button > span { translate: none !important; }
  .button > span + span { visibility: hidden; }
  .tool h3, .tool .arrow { translate: none !important; }
}
