/* The Saudi riyal sign (U+20C1) is newer than the faces the site uses. It has a family of its own
   (assets/fonts/riyal-*.woff, OFL) first in every stack, used for that one character only: added
   to the site's own families instead, it took the bold Arabic weights' place and they never loaded. */
@font-face { font-family: Riyal; src: url(/assets/fonts/riyal-regular.woff) format("woff"); font-weight: 100 550; unicode-range: U+20C1; font-display: swap; }
@font-face { font-family: Riyal; src: url(/assets/fonts/riyal-bold.woff) format("woff"); font-weight: 551 1000; unicode-range: U+20C1; font-display: swap; }
  /*
    Bricks site, v4.
    Type: Urbanist (the wordmark's face) for display, Geist for text, Bricolage for money only.
    Scale (desktop): display 88, h2 60, h3 28, lead 20, body 18, small 15.
    Colour: neutral page; each container lit softly by one of the app's budget colours.
    Shape: buttons and chips are pills, containers 36px, photos 28px, app cards 20px.
  */
  :root {
    --bg: #FFFFFF; --surface: #F3F3F1; --card: #FFFFFF; --ink: #0E0E10; --ink-2: #5C5C62; --ink-3: #8E8E94; --line: rgba(14, 14, 16, 0.09);
    --cta: #0E0E10; --cta-ink: #FAFAF8; --good: #17824F; --accent: #A8703F;
    --peach: #F5AC8C; --sun: #F8CB72; --green: #96CE9A; --lav: #B0A8EE; --sky: #92C0E8; --pink: #F2A0BA;
    --tint: 24%; --pool: 0.8;
    --card-shadow: 0 24px 50px -20px rgba(40, 32, 20, 0.30), 0 8px 16px -8px rgba(40, 32, 20, 0.12);
    --ground: rgba(40, 32, 20, 0.22);
    --brick: url(/img/brick-light.svg);
    color-scheme: light;
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --bg: #0B0B0C; --surface: #161618; --card: #1C1C1F; --ink: #F3F3F0; --ink-2: #A2A2A8; --ink-3: #6E6E74; --line: rgba(243, 243, 240, 0.1);
      --cta: #F3F3F0; --cta-ink: #0B0B0C; --good: #4CC98A; --accent: #EED7BC; --tint: 12%; --pool: 0.4;
      --card-shadow: 0 24px 50px -16px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.07);
      --ground: rgba(0, 0, 0, 0.6); --brick: url(/img/brick-dark.svg); color-scheme: dark;
    }
  }
  :root[data-theme="dark"] {
    --bg: #0B0B0C; --surface: #161618; --card: #1C1C1F; --ink: #F3F3F0; --ink-2: #A2A2A8; --ink-3: #6E6E74; --line: rgba(243, 243, 240, 0.1);
    --cta: #F3F3F0; --cta-ink: #0B0B0C; --good: #4CC98A; --accent: #EED7BC; --tint: 12%; --pool: 0.4;
    --card-shadow: 0 24px 50px -16px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.07);
    --ground: rgba(0, 0, 0, 0.6); --brick: url(/img/brick-dark.svg); color-scheme: dark;
  }

  * { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
  body { margin: 0; background: var(--bg); color: var(--ink); font: 18px/1.6 Riyal, Geist, Almarai, system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
  img, video { display: block; max-width: 100%; }
  a { color: inherit; }
  button { font: inherit; color: inherit; }
  .wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 40px; }
  h1, h2 { font-family: Riyal, Urbanist, Geist, Almarai, sans-serif; font-weight: 800; letter-spacing: -0.04em; margin: 0; text-wrap: balance; }
  h1 { font-size: clamp(46px, 6.2vw, 88px); line-height: 0.98; }
  h2 { font-size: clamp(36px, 4.4vw, 60px); line-height: 1.02; }
  h3 { font-family: Riyal, Urbanist, Geist, Almarai, sans-serif; font-weight: 700; font-size: clamp(23px, 2.1vw, 28px); line-height: 1.14; letter-spacing: -0.025em; margin: 0; }
  p { margin: 0; text-wrap: pretty; }
  .lead { font-size: clamp(17px, 1.45vw, 20px); line-height: 1.55; color: var(--ink-2); }
  /* the payoff of a headline, in the one warm accent the page has */
  .accent { color: var(--accent); }
  .money { font-family: Riyal, "Bricolage Grotesque", Geist, Almarai, sans-serif; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
  .ph, .ph-fill { line-height: 1; }

  /* Icons: Hugeicons inlined as SVG, sized and coloured like text. */
  .ph { display: inline-block; line-height: 0; font-style: normal; }
  .ph > svg { width: 1em; height: 1em; display: block; }

  /* Light page, light app. Dark page, dark app. */
  .dark-only { display: none !important; }
  @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .light-only { display: none !important; } :root:not([data-theme="light"]) .dark-only { display: block !important; } }
  :root[data-theme="dark"] .light-only { display: none !important; }
  :root[data-theme="dark"] .dark-only { display: block !important; }

  .render { width: 100%; height: auto; filter: drop-shadow(0 40px 46px var(--ground)); }
  .pool { position: absolute; border-radius: 50%; filter: blur(70px); opacity: var(--pool); pointer-events: none;
    background: conic-gradient(from 200deg, var(--peach), var(--sun), var(--green), var(--sky), var(--lav), var(--peach)); }
  /* A small piece of the app's language: a card that sits beside a phone or on a photo. */
  .chip { display: inline-flex; align-items: center; gap: 12px; padding: 10px 18px 10px 10px; border-radius: 18px; background: var(--card); box-shadow: 0 0 0 1px var(--line), 0 18px 40px -18px rgba(20, 16, 10, 0.32); font-size: 15px; font-weight: 600; line-height: 1.25; color: var(--ink); white-space: nowrap; }
  .chip .who { width: 38px; height: 30px; flex: none; background: center / contain no-repeat; }
  .chip .ico { width: 38px; height: 38px; flex: none; border-radius: 11px; display: grid; place-items: center; font-size: 19px; color: var(--ink); background: color-mix(in srgb, var(--c, var(--green)) 30%, var(--card)); }
  .chip small { display: block; color: var(--ink-2); font-size: 13px; font-weight: 400; margin-top: 1px; }
  .chip > .money { font-size: 17px; margin-inline-start: auto; padding-inline-start: 20px; }
  .money.good { color: var(--good); }

  .btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 54px; padding: 0 26px; border-radius: 999px; font: 500 17px/1 Riyal, Geist, Almarai, sans-serif; text-decoration: none; white-space: nowrap; border: 0; cursor: pointer; transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s, background-color 0.2s; }
  .btn:hover { transform: translateY(-1px); }
  .btn:active { transform: scale(0.98); }
  .btn-primary { background: var(--cta); color: var(--cta-ink); }
  .btn-quiet { background: color-mix(in srgb, var(--card) 70%, transparent); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
  .btn-sm { height: 40px; padding: 0 18px; font-size: 15px; }
  .nav .btn-sm { height: 42px; padding: 0 20px; font: 700 15.5px/1 Riyal, Urbanist, Geist, Almarai, sans-serif; letter-spacing: -0.01em;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.28), inset 0 -2px 3px rgba(0, 0, 0, 0.35), 0 10px 22px -12px rgba(14, 14, 16, 0.5); }
  /* the menus' lift: no hairline, a soft shadow in three layers */
  :root { --drop: 0 1px 2px rgba(14, 14, 16, 0.05), 0 14px 30px -14px rgba(14, 14, 16, 0.22), 0 40px 80px -40px rgba(14, 14, 16, 0.35); }
  :focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

  /* Nav */
  .nav { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.5) blur(20px); -webkit-backdrop-filter: saturate(1.5) blur(20px); transition: box-shadow 0.3s; }
  .nav.scrolled { box-shadow: none; }
  .nav .wrap { height: 68px; display: flex; align-items: center; gap: 40px; }
  .logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
  .logo .mark { width: 32px; height: 25px; background: var(--brick) center / contain no-repeat; }
  .logo .word { font-family: Riyal, Urbanist, Geist, Almarai, sans-serif; font-weight: 800; font-size: 25px; letter-spacing: -0.03em; }
  .nav-links { display: flex; gap: 32px; }
  .nav-links a { text-decoration: none; font: 700 16px/1 Riyal, Urbanist, Geist, Almarai, sans-serif; letter-spacing: -0.01em; color: var(--ink); transition: color 0.2s; }
  .nav-links a:hover { color: var(--accent); }
  .nav-end { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
  .icon-btn { width: 40px; height: 40px; border-radius: 999px; border: 0; background: transparent; color: var(--ink-2); display: grid; place-items: center; cursor: pointer; font-size: 19px; }
  .icon-btn:hover { background: var(--surface); color: var(--ink); }
  .icon-btn .ph-sun { display: none; }
  @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .icon-btn .ph-sun { display: block; } :root:not([data-theme="light"]) .icon-btn .ph-moon { display: none; } }
  :root[data-theme="dark"] .icon-btn .ph-sun { display: block; }
  :root[data-theme="dark"] .icon-btn .ph-moon { display: none; }

  /* Hero: the words in the middle and photos of everyday life drifting round them on a ring seen
     a little from above, near cards full size under the buttons, far ones small and faint over
     the headline (site.js). No app screens and no Brick mark
     here: the page shows the app further down. The hero stays pinned under the bar; the page
     slides up over it after a short run, while the words fade. */
  .hero { position: sticky; top: 0; z-index: 0; margin-top: -68px; height: 100svh; min-height: 620px; overflow: hidden; background: var(--bg); }
  .hero + * { margin-top: 36svh; }
  .hero ~ * { position: relative; z-index: 1; background: var(--bg); }
  /* the ring of cards around the words (site.js places them) */
  .orbit { position: absolute; top: 0; left: -10%; width: 120%; height: 100%; will-change: opacity; }
  .orbit-field { position: absolute; left: 50%; top: 50%; width: max(2000px, 120vw); aspect-ratio: 1; translate: -50% -50%; }
  /* a card turns a little as it comes round the side, its picture with it */
  .orbit-field i { position: absolute; left: 50%; top: 50%; display: none; overflow: hidden; border-radius: 14%; background: var(--surface); will-change: transform, opacity;
    box-shadow: 0 1px 2px rgba(17, 17, 16, 0.04), 0 6px 16px rgba(17, 17, 16, 0.05); }
  .orbit-field i b { position: absolute; inset: 0; background: var(--q, none) center / cover no-repeat; }
  /* what the picture is, as the app would file it: the category's icon and name on a small frosted
     label at the card's foot (a long name takes two lines) */
  .orbit-field i .tag { position: absolute; z-index: 1; inset-inline-start: 7px; bottom: 7px; max-width: calc(100% - 14px); display: flex; align-items: center; gap: 4px;
    padding: 4px 8px 4px 6px; border-radius: 10px; background: rgba(255, 255, 255, 0.84); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    color: #1A1A1C; font: 600 11px/1.15 Geist, Almarai, sans-serif; -webkit-hyphens: auto; hyphens: auto; }
  .orbit-field i .tag svg { flex: none; width: 13px; height: 13px; }
  [dir="rtl"] .orbit-field i .tag { padding: 4px 6px 4px 8px; font-weight: 700; }
  /* a phone's cards are small: the name alone */
  @media (max-width: 639px) { .orbit-field i .tag, [dir="rtl"] .orbit-field i .tag { inset-inline-start: 4px; bottom: 4px; max-width: calc(100% - 8px); padding: 3px 5px; border-radius: 7px; font-size: 8.5px; }
    .orbit-field i .tag svg { display: none; } }
  .orbit-field i::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(17, 17, 16, 0.1); }
  .orbit-fade { position: absolute; inset: auto 0 0; z-index: 1; height: 18%; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
  .hero-copy { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 68px 24px 4vh; will-change: opacity, transform; }
  .hero-copy :is(h1, .h1) { max-width: 13ch; margin: 0 auto; font-family: Riyal, Urbanist, Geist, Almarai, sans-serif; font-weight: 800; letter-spacing: -0.04em; line-height: 0.98; text-wrap: balance; font-size: clamp(48px, 7vw, 96px); }
  /* Brick above the words (HeroMark.astro): rises in softly, floats, blinks and watches the pointer
     and, in 3D (brick3d.js), turns toward the pointer (no hops or bounces: the owner turned those down). Its colours are the mark's, light or dark with the page. */
  .hero-mark { --bm1: #808086; --bm2: #4A4A52; --bm3: #323238; --bmf: #FFFFFF; width: clamp(64px, 6.4vw, 92px); margin-bottom: 26px; animation: rise 1s cubic-bezier(0.16, 1, 0.3, 1) both; }
  .hero-mark svg { display: block; width: 100%; overflow: visible; animation: mark-float 4.6s ease-in-out 1.2s infinite; }
  .hero-mark .s1 { stop-color: var(--bm1); } .hero-mark .s2 { stop-color: var(--bm2); } .hero-mark .s3 { stop-color: var(--bm3); }
  .hero-mark :is(.eye, .mouth) { fill: var(--bmf); }
  @keyframes mark-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }
  @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero-mark { --bm1: #EFEFF2; --bm2: #DCDCE1; --bm3: #A7A6AD; --bmf: #141414; } }
  :root[data-theme="dark"] .hero-mark { --bm1: #EFEFF2; --bm2: #DCDCE1; --bm3: #A7A6AD; --bmf: #141414; }
  @media (prefers-reduced-motion: reduce) { .hero-mark, .hero-mark svg { animation: none; } }
  @media (max-width: 640px) { .hero-mark { width: 60px; margin-bottom: 18px; } }
  /* one feature at a time, all in the same place: the box is as tall as the longest */
  .says { display: grid; width: 100%; }
  .say { grid-area: 1 / 1; display: flex; flex-direction: column; align-items: center; justify-content: center; opacity: 0; translate: 0 18px; pointer-events: none;
    transition: opacity 0.45s cubic-bezier(0.4, 0, 1, 1), translate 0.45s cubic-bezier(0.4, 0, 1, 1); }
  .say.on { opacity: 1; translate: 0 0; pointer-events: auto; transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s, translate 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.3s; }
  .say.gone { translate: 0 -18px; }
  .hero-copy .lead { max-width: 34ch; margin: 26px auto 0; }
  .hero-copy .ctas { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; justify-content: center; }
  .hero .rise { animation: rise 1s cubic-bezier(0.16, 1, 0.3, 1) both; animation-delay: var(--d, 0s); }
  @keyframes rise { from { opacity: 0; translate: 0 22px; } }
  /* the hero's buttons: a pressed-clay pill (light on its top edge, shade under it) and a glass one */
  .hero .btn { height: 56px; padding: 0 32px; font-weight: 600; }
  .hero .btn-primary { box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.28), inset 0 -2px 3px rgba(0, 0, 0, 0.35), 0 12px 28px -10px rgba(14, 14, 16, 0.45); }
  .btn-glass { color: var(--ink); border: 1px solid var(--line); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    background: linear-gradient(-75deg, color-mix(in srgb, var(--ink) 2%, transparent), color-mix(in srgb, var(--ink) 7%, transparent), color-mix(in srgb, var(--ink) 2%, transparent)), color-mix(in srgb, var(--bg) 60%, transparent);
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.7), inset 0 -3px 4px rgba(0, 0, 0, 0.05), 0 12px 28px -14px rgba(14, 14, 16, 0.3); }
  .hero .btn-glass { font-weight: 500; }
  /* the stores in the hero, centred under the words */
  .hero-copy .platforms { justify-content: center; margin-top: 0; }
  #get { scroll-margin-top: 50vh; }
  #get.nudge .platform { animation: nudge 0.9s cubic-bezier(0.3, 1.6, 0.5, 1); }
  #get.nudge .platform + .platform { animation-delay: 0.08s; }
  @keyframes nudge { 30% { scale: 1.07; } 100% { scale: 1; } }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .orbit-field i { box-shadow: none; }
    :root:not([data-theme="light"]) .orbit-field i .tag { background: rgba(22, 22, 24, 0.7); color: #F3F3F0; }
    :root:not([data-theme="light"]) .orbit-field i::after { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09); }
    :root:not([data-theme="light"]) { --drop: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 0 1px rgba(255, 255, 255, 0.06), 0 30px 70px -30px rgba(0, 0, 0, 0.9); }
    :root:not([data-theme="light"]) .nav .btn-sm { box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.5), inset 0 -2px 3px rgba(120, 100, 80, 0.3), 0 10px 26px -12px rgba(243, 243, 240, 0.15); }
    :root:not([data-theme="light"]) .hero .btn-primary { box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.5), inset 0 -2px 3px rgba(120, 100, 80, 0.3), 0 10px 30px rgba(243, 243, 240, 0.1); }
    :root:not([data-theme="light"]) .btn-glass { box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.22), inset 0 -3px 4px rgba(0, 0, 0, 0.35), 0 12px 28px rgba(0, 0, 0, 0.45); }
  }
  :root[data-theme="dark"] .orbit-field i { box-shadow: none; }
  :root[data-theme="dark"] .orbit-field i .tag { background: rgba(22, 22, 24, 0.7); color: #F3F3F0; }
  :root[data-theme="dark"] .orbit-field i::after { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09); }
  :root[data-theme="dark"] { --drop: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 0 1px rgba(255, 255, 255, 0.06), 0 30px 70px -30px rgba(0, 0, 0, 0.9); }
  :root[data-theme="dark"] .nav .btn-sm { box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.5), inset 0 -2px 3px rgba(120, 100, 80, 0.3), 0 10px 26px -12px rgba(243, 243, 240, 0.15); }
  :root[data-theme="dark"] .hero .btn-primary { box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.5), inset 0 -2px 3px rgba(120, 100, 80, 0.3), 0 10px 30px rgba(243, 243, 240, 0.1); }
  :root[data-theme="dark"] .btn-glass { box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.22), inset 0 -3px 4px rgba(0, 0, 0, 0.35), 0 12px 28px rgba(0, 0, 0, 0.45); }
  /* a phone: smaller buttons */
  @media (max-width: 640px) {
    .hero .btn { height: 52px; padding: 0 26px; font-size: 16px; }
  }
  @media (prefers-reduced-motion: reduce) { .hero .rise { animation: none; } }
  /* Progress tracks (split ways, carousels): a label over a line that fills. */
  @property --p { syntax: '<percentage>'; inherits: true; initial-value: 0%; }
  @keyframes fill { from { --p: 0%; } to { --p: 100%; } }

  .facts ul { list-style: none; margin: 0; padding: 32px 0 0; display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 16px 32px; }
  .facts li { display: inline-flex; align-items: center; gap: 12px; color: var(--ink-2); font-size: 16px; }
  .facts .ph { font-size: 22px; color: var(--ink); }

  section.block { padding: 150px 0 0; }

  .photo { position: relative; border-radius: 28px; overflow: hidden; background: var(--surface); }
  .photo > img { width: 100%; height: 100%; object-fit: cover; }

  /* How it works */
  .story { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 72px; margin-top: 64px; }
  .story-stage { position: sticky; top: 100px; height: calc(100dvh - 140px); max-height: 800px; border-radius: 36px; overflow: hidden; background: color-mix(in srgb, var(--c, var(--peach)) var(--tint), var(--bg)); transition: background-color 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
  .shotset { position: absolute; inset: 0; opacity: 0; transform: translateY(12px); transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1); }
  .shotset.on { opacity: 1; transform: none; }
  /* One frame for every step: the phone's top sits 6% down the panel and the panel cuts it just below the screen's bottom controls. */
  .shotset .phone { position: absolute; height: 116%; top: -2.5%; left: 50%; aspect-ratio: 3 / 4; translate: -50% 0; }
  .shotset .phone img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 40px 40px var(--ground)); }
  .steps { list-style: none; margin: 0; padding: 0; }
  .steps li { min-height: 56vh; display: flex; flex-direction: column; justify-content: center; padding: 40px 0; opacity: 0.3; transition: opacity 0.5s; }
  .steps li.on { opacity: 1; }
  .steps li:first-child { padding-top: 120px; }
  .steps .num { font: 600 15px Riyal, Geist, Almarai, sans-serif; color: var(--ink-2); margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
  .steps .num i { width: 12px; height: 12px; border-radius: 4px; background: var(--c); }
  .steps p { margin-top: 16px; color: var(--ink-2); max-width: 32ch; }
  .steps .mobile-shot { display: none; }

  /* The problem */
  /* the problems, set like an editorial list: a strong rule, a number, the point */
  .pains { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 40px; margin-top: 64px; counter-reset: pain; }
  .pain { position: relative; padding-top: 26px; counter-increment: pain; }
  .pain::before { content: counter(pain, decimal-leading-zero); display: block; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; color: var(--ink-3); margin-bottom: 40px; font-variant-numeric: tabular-nums; }
  .pain .ph { position: absolute; top: 24px; right: 0; font-size: 20px; color: var(--ink-3); }
  .pain h3 { font-size: 22px; letter-spacing: -0.01em; }
  .pain p { margin-top: 12px; color: var(--ink-2); font-size: 16px; line-height: 1.55; max-width: 30ch; }

  /* The answer: two real moments */
  .moments { display: grid; grid-template-columns: 1.55fr 1fr; gap: 20px; margin-top: 56px; }
  .moments figure { margin: 0; aspect-ratio: auto; height: 620px; }
  .moments .chip { position: absolute; left: 24px; right: 24px; bottom: 24px; max-width: none; }

  /* Groups */
  .groups-grid { display: grid; grid-template-columns: 1.15fr 1fr; grid-template-rows: auto auto; gap: 20px; margin-top: 64px; }
  .panel { border-radius: 36px; padding: 48px; overflow: hidden; position: relative; background: color-mix(in srgb, var(--c) var(--tint), var(--bg)); }
  .panel p { color: var(--ink-2); margin-top: 12px; max-width: 32ch; }
  .panel-main { grid-row: span 2; min-height: 820px; --c: var(--green); }
  .panel-main .render { position: absolute; width: 104%; left: -2%; bottom: -60px; }
  /* Friends: a photo that fills the panel, words over a soft shade */
  .panel-photo { padding: 0; min-height: 400px; color: #fff; }
  .panel-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
  .panel-photo { display: flex; align-items: flex-end; }
  .panel-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 8, 6, 0.66) 0%, rgba(10, 8, 6, 0.18) 42%, transparent 60%); }
  .panel-photo .over { position: relative; z-index: 1; padding: 40px 44px; }
  .panel-photo p { color: rgba(255, 255, 255, 0.88); }
  /* Split it your way: a real split that changes method */
  .panel-split { --c: var(--sky); }
  .split { margin-top: 24px; background: var(--card); border-radius: 22px; padding: 20px; box-shadow: var(--card-shadow); }
  .split-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-weight: 600; }
  .split-head .money { font-size: 22px; }
  .split-bar { display: flex; gap: 4px; height: 12px; margin: 16px 0 14px; }
  .split-bar span { border-radius: 6px; flex: 1 1 0; transition: flex-grow 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
  .split-people { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .split-people div { display: grid; justify-items: center; gap: 2px; font-size: 13px; color: var(--ink-2); text-align: center; }
  .split-people i { width: 38px; height: 30px; background: center / contain no-repeat; }
  .split-people .money { font-size: 16px; color: var(--ink); }
  /* A label over a thin track that fills while that method shows. */
  .ways { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 22px; align-items: end; }
  .ways button { all: unset; cursor: pointer; display: grid; gap: 10px; font-size: 14px; font-weight: 500; color: var(--ink-3); white-space: nowrap; transition: color 0.3s; }
  .ways button::after { content: ""; height: 3px; border-radius: 3px; background: linear-gradient(var(--ink), var(--ink)) 0 0 / var(--p, 0%) 100% no-repeat, color-mix(in srgb, var(--ink) 14%, transparent); }
  .ways button:hover { color: var(--ink-2); }
  .ways button.done { --p: 100%; }
  .ways button.on { color: var(--ink); animation: fill 2.6s linear forwards; }
  .ways button:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; border-radius: 6px; }

  /* Brick, in someone's hand */
  .brick-row { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 72px; align-items: center; }
  .brick-row .photo { aspect-ratio: 3 / 2; }
  .brick-row .photo .chip { position: absolute; left: 28px; top: 28px; max-width: 360px; }
  .brick-row .lead { margin-top: 24px; max-width: 34ch; }
  /* A real exchange with Brick, in the app's own bubbles. */
  .convo { margin-top: 36px; padding: 22px; border-radius: 28px; background: var(--card); box-shadow: var(--card-shadow); display: grid; gap: 12px; max-width: 460px; }
  .msg { display: flex; align-items: flex-end; gap: 10px; }
  .msg p { margin: 0; padding: 11px 15px; border-radius: 20px; font-size: 15px; line-height: 1.45; max-width: 34ch; }
  .msg.brick p { background: var(--surface); border-bottom-left-radius: 6px; }
  .msg.you { justify-content: flex-end; }
  .msg.you p { background: var(--cta); color: var(--cta-ink); border-bottom-right-radius: 6px; }
  .msg .av { width: 34px; height: 27px; flex: none; background: var(--brick) center / contain no-repeat; }
  .msg .money { font-size: 15px; }
  .convo .msg { opacity: 0; transform: translateY(10px); transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
  .convo.in .msg { opacity: 1; transform: none; }
  .convo.in .msg:nth-child(2) { transition-delay: 0.5s; }
  .convo.in .msg:nth-child(3) { transition-delay: 1.1s; }

  /* Privacy */
  .privacy { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 72px; align-items: center; }
  .privacy .photo { aspect-ratio: 4 / 5; }
  .privacy .lead { margin-top: 20px; max-width: 34ch; }
  .privacy a.more { display: inline-flex; align-items: center; gap: 8px; margin-top: 32px; font-weight: 500; text-decoration: none; }
  .privacy a.more:hover { text-decoration: underline; text-underline-offset: 4px; }

/*
  A tile with a link is one card: anywhere on it opens the page. The link
  stretches over the whole figure (one link, one tab stop, read once by a
  screen reader), rather than the photo being a second link to the same place.

  Hovered, it answers without changing colour: the photo eases in a touch,
  the card over it rises a little higher off it, the tile picks up a soft
  shadow, and the arrow steps forward. Slow and small, the way a printed card
  lifts when a finger reaches for it. Only where there is a pointer that can
  hover; with reduced motion, only the shadow.
*/
.answers figure:has(a.more) { position: relative; }
.answers figure a.more::after { content: ""; position: absolute; inset: 0; z-index: 5; border-radius: 32px; }
.answers figure:has(a.more) .tile { transition: box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1), translate 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.answers figure:has(a.more) .tile > img { transition: scale 1.2s cubic-bezier(0.16, 1, 0.3, 1); }
.answers figure:has(a.more) .tile > :is(.fcard, .notes, .linkpill) { transition: translate 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
.answers figure a.more .ph { transition: translate 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
@media (hover: hover) and (pointer: fine) {
  .answers figure:has(a.more):hover .tile { translate: 0 -4px; }
  .answers figure:has(a.more):hover .tile > img { scale: 1.035; }
  .answers figure:has(a.more):hover .tile > :is(.fcard, .notes, .linkpill) { translate: 0 -6px; }
  .answers figure:has(a.more):hover a.more .ph { translate: 4px 0; }
  [dir="rtl"] .answers figure:has(a.more):hover a.more .ph { translate: -4px 0; }
}
/* Reached by keyboard: the same lift, and a ring round the tile. */
.answers figure:has(a.more:focus-visible) .tile { outline: 2px solid var(--ink); outline-offset: 4px; }
.answers figure a.more:focus-visible { outline: none; }
@media (prefers-reduced-motion: reduce) {
  .answers figure:has(a.more):hover :is(.tile, .tile > img, .tile > .fcard, .tile > .notes, .tile > .linkpill, a.more .ph) { translate: none; scale: none; }
}
  /* promises: bare icons on hairline rows, like every list on the site */
  .promises { display: grid; margin-top: 40px; max-width: 560px; }
  .promise { display: grid; grid-template-columns: 24px 1fr; gap: 18px; padding: 22px 0; }
  .promise .ph { font-size: 22px; color: var(--ink); margin-top: 2px; }
  .promise h3 { font-size: 20px; }
  .promise p { margin-top: 6px; color: var(--ink-2); font-size: 16.5px; line-height: 1.5; }

  /* Questions */
  .faq { max-width: 860px; margin: 0 auto; }
  .faq h2 { text-align: center; margin-bottom: 48px; }
  .faq details { border-radius: 20px; padding: 0 24px; background: var(--surface); }
  .faq details + details { margin-top: 10px; }
  .faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 28px 0; font-size: 20px; font-weight: 500; letter-spacing: -0.01em; }
  .faq summary::-webkit-details-marker { display: none; }
  .faq summary .ph { font-size: 20px; color: var(--ink-2); transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
  .faq details[open]:not(.closing) summary .ph { transform: rotate(45deg); }
  .faq summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 12px; }
  .faq details p { padding: 0 0 28px; padding-inline-end: 48px; color: var(--ink-2); margin-top: -6px; }

  .platforms { display: flex; gap: 12px; margin-top: 40px; flex-wrap: wrap; }
  .platform { display: inline-flex; align-items: center; gap: 12px; height: 60px; padding: 0 22px 0 16px; border-radius: 12px; background: #000; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22); }
  .platform .logo-mark { width: 26px; height: 26px; flex: none; }
  .platform small { display: block; font-size: 12px; opacity: 0.7; line-height: 1.2; }
  .platform b { display: block; font-size: 16px; font-weight: 600; line-height: 1.25; }

  /* the foot: the closing line in big type with the stores, the links in the display face, the
     wordmark across the width fading into the page; no lines */
  footer { padding: 136px 0 36px; overflow: hidden; }
  footer .foot-top { display: grid; grid-template-columns: 1.5fr 1fr; gap: 64px; align-items: end; }
  footer .foot-h { margin: 0; max-width: 11ch; font: 800 clamp(44px, 5.6vw, 80px)/0.98 Riyal, Urbanist, Geist, Almarai, sans-serif; letter-spacing: -0.045em; color: var(--ink); text-wrap: balance; }
  footer .foot-stores { margin-top: 36px; }
  footer .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
  footer h4 { margin: 0 0 20px; font: 700 13px/1 Riyal, Urbanist, Geist, Almarai, sans-serif; letter-spacing: 0.02em; color: var(--ink-3); }
  footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
  footer ul a { text-decoration: none; font: 700 18px/1.2 Riyal, Urbanist, Geist, Almarai, sans-serif; letter-spacing: -0.015em; color: var(--ink); transition: color 0.2s; }
  footer ul a:hover { color: var(--accent); }
  footer .foot-mark { display: flex; align-items: center; justify-content: center; gap: 0.16em; margin: 104px 0 0; color: var(--ink); text-decoration: none;
    font: 800 clamp(96px, 20vw, 320px)/0.82 Riyal, Urbanist, Geist, Almarai, sans-serif; letter-spacing: -0.055em;
    -webkit-mask-image: linear-gradient(180deg, #000 20%, transparent 96%); mask-image: linear-gradient(180deg, #000 20%, transparent 96%); }
  footer .foot-mark .mark { width: 0.86em; height: 0.68em; flex: none; background: var(--brick) center / contain no-repeat; }
  /* its own name: .legal is the privacy page's layout, whose padding made this row 200 px tall */
  footer .foot-legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 20px; color: var(--ink-3); font-size: 14px; }
  @media (max-width: 900px) { footer { padding-top: 104px; } footer .foot-top { grid-template-columns: 1fr; gap: 56px; align-items: start; } footer .foot-mark { margin-top: 72px; } }

  .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1); transition-delay: var(--d, 0s); }
  .reveal.in { opacity: 1; transform: none; }
  /* until site.js runs (html.live), a section shows itself after a few seconds anyway */
  html:not(.live) .reveal { animation: reveal-anyway 0.9s cubic-bezier(0.16, 1, 0.3, 1) 3s forwards; }
  @keyframes reveal-anyway { to { opacity: 1; transform: none; } }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .steps li, .shotset, .story-stage, .split-bar span, .convo .msg { transition: none; }
    .convo .msg { opacity: 1; transform: none; }
    .ways button.on { animation: none; --p: 100%; }
  }

  @media (max-width: 1080px) {
    .wrap { padding: 0 24px; }
    .nav-links { display: none; }
    .facts ul { grid-template-columns: repeat(2, auto); justify-content: center; }
    .brick-row, .privacy { grid-template-columns: 1fr; gap: 48px; }
    .privacy .photo { aspect-ratio: 16 / 10; }
    .story { grid-template-columns: 1fr; gap: 0; margin-top: 48px; }
    .story-stage { display: none; }
    .steps li, .steps li:first-child { min-height: 0; opacity: 1; padding: 0 0 72px; }
    .steps .mobile-shot { display: block; position: relative; margin-top: 28px; border-radius: 28px; background: color-mix(in srgb, var(--c) var(--tint), var(--bg)); aspect-ratio: 4 / 5; overflow: hidden; }
    .steps .mobile-shot img { position: absolute; left: 50%; top: -3%; height: 116%; width: auto; translate: -50% 0; filter: drop-shadow(0 30px 30px var(--ground)); }
    .groups-grid { grid-template-columns: 1fr; }
    .pains { grid-template-columns: 1fr 1fr; gap: 48px 32px; }
    .moments { grid-template-columns: 1fr; }
    .moments figure { height: 520px; }
    .panel-main { min-height: 680px; }
  }
  @media (max-width: 640px) {
    body { font-size: 17px; }
    .wrap { padding: 0 16px; }
    .nav .btn-sm { display: none; }
    .facts ul { grid-template-columns: 1fr 1fr; justify-content: stretch; gap: 14px 16px; }
    .facts li { font-size: 15px; }
    section.block { padding-top: 104px; }
    .brick-row .photo { aspect-ratio: 4 / 3; }
    .brick-row .photo .chip { left: 14px; top: 14px; right: 14px; max-width: none; }
    .panel { padding: 32px 26px; border-radius: 28px; }
    .panel-photo { padding: 0; min-height: 420px; }
    .panel-photo .over { padding: 28px 26px; }
    .panel-main { min-height: 560px; }
    .ways { gap: 8px; }
    .ways button { font-size: 12.5px; white-space: normal; }
    .pains { grid-template-columns: 1fr; gap: 40px; }
    .pain::before { margin-bottom: 20px; }
    .moments figure { height: 440px; }
    .moments .chip { left: 14px; right: 14px; bottom: 14px; }
    .faq summary { font-size: 18px; }
  }

/* ---------- Features menu ---------- */
.menu { position: relative; }
.menu > button { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; font: 700 16px/1 Riyal, Urbanist, Geist, Almarai, sans-serif; letter-spacing: -0.01em; color: var(--ink); transition: color 0.2s; }
.menu > button:hover, .menu.open > button { color: var(--accent); }
.menu > button .ph { font-size: 12px; color: var(--ink-3); transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s; }
.menu > button:hover .ph, .menu.open > button .ph { color: var(--accent); }
.menu.open > button .ph { transform: rotate(180deg); }
.menu > button:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 6px; }
.menu-panel { position: absolute; top: calc(100% + 20px); left: -30px; width: 740px; padding: 14px 10px; border-radius: 30px; color: var(--ink);
  background: var(--card); box-shadow: var(--drop);
  opacity: 0; visibility: hidden; transform: translateY(-4px) scale(0.985); transform-origin: 40px 0;
  transition: opacity 0.2s, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s; }
.menu.open .menu-panel { opacity: 1; visibility: visible; transform: none; }
.menu-list { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 4px; }
.menu-list a, .menu-list .soon { display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: center; padding: 12px 16px; border-radius: 18px; text-decoration: none; color: var(--ink); outline: none; }
.menu-list :is(a, .soon):focus-visible { box-shadow: inset 0 0 0 2px var(--ink); }
.menu-list b { display: block; font: 800 20px/1.15 Riyal, Urbanist, Geist, Almarai, sans-serif; letter-spacing: -0.025em; transition: color 0.2s; }
.menu-list small { display: block; margin-top: 5px; font: 400 13.5px/1.4 Riyal, Geist, Almarai, system-ui, sans-serif; letter-spacing: 0; color: var(--ink-2); }
.menu-list a:is(:hover, :focus-visible, [aria-current]) b { color: var(--accent); }
/* a feature's photo, a small card turned its own way like the ticker's; it straightens under the pointer */
:is(.menu-list, .sheet-row-link) .pic { position: relative; display: block; width: 100%; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 14%; rotate: var(--r); background: var(--surface);
  box-shadow: 0 1px 2px rgba(17, 17, 16, 0.06), 0 8px 18px -6px rgba(17, 17, 16, 0.28); transition: rotate 0.5s cubic-bezier(0.16, 1, 0.3, 1), scale 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
:is(.menu-list, .sheet-row-link) .pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.menu-list :is(a, .soon):is(:hover, :focus-visible) .pic { rotate: 0deg; scale: 1.06; }
@media (prefers-reduced-motion: reduce) { :is(.menu-list, .sheet-row-link) .pic { transition: none; } }
.nav-links .menu { display: inline-flex; }
.nav-links a.here { color: var(--accent); }

/* ---------- Photo tiles with the app's cards floating over them ---------- */
.tile { position: relative; border-radius: 32px; overflow: hidden; background: var(--surface); isolation: isolate; }
.tile > img.bg, .tile .slide > img.bg, .tile > img.fg, .tile .slide > img.fg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--fx, 50%) var(--fy, 50%); }
/* The people sit in front of the cards: photo, then cards, then the cut-out people. */
.tile > img.fg, .tile .slide > img.fg { z-index: 3; pointer-events: none; }
/*
  Cards over photos: small, light and exact, like a widget lifted off the phone.
  A frosted face, a hairline edge, a lit top edge and a shadow in three layers
  (contact, near, far) so each card sits at a believable height above the photo.
*/
.fcard, .note, .linkpill {
  --face: color-mix(in srgb, var(--card) 90%, transparent);
  --edge: rgba(14, 14, 16, 0.06);
  --lift: 0 1px 1px rgba(30, 22, 12, 0.05), 0 8px 18px -8px rgba(30, 22, 12, 0.22), 0 30px 60px -28px rgba(30, 22, 12, 0.42);
  background: var(--face); backdrop-filter: blur(20px) saturate(1.5); -webkit-backdrop-filter: blur(20px) saturate(1.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 0 0 1px var(--edge), var(--stack, 0 0 transparent), var(--lift);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) :is(.fcard, .note, .linkpill) { --face: color-mix(in srgb, var(--card) 86%, transparent); --edge: rgba(255, 255, 255, 0.09); --lift: 0 1px 1px rgba(0, 0, 0, 0.3), 0 8px 18px -8px rgba(0, 0, 0, 0.5), 0 30px 60px -24px rgba(0, 0, 0, 0.8); } }
:root[data-theme="dark"] :is(.fcard, .note, .linkpill) { --face: color-mix(in srgb, var(--card) 86%, transparent); --edge: rgba(255, 255, 255, 0.09); --lift: 0 1px 1px rgba(0, 0, 0, 0.3), 0 8px 18px -8px rgba(0, 0, 0, 0.5), 0 30px 60px -24px rgba(0, 0, 0, 0.8); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) :is(.fcard, .note, .linkpill) { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 0 0 1px var(--edge), var(--stack, 0 0 transparent), var(--lift); } }
:root[data-theme="dark"] :is(.fcard, .note, .linkpill) { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 0 0 1px var(--edge), var(--stack, 0 0 transparent), var(--lift); }
@media (prefers-reduced-transparency: reduce) { .fcard, .note, .linkpill { --face: var(--card); } }
.fcard { position: absolute; z-index: 2; color: var(--ink); border-radius: 20px; padding: 16px 18px; transform: rotate(var(--r, 0deg)); font-size: 14px; line-height: 1.35; }
/* a second card tucked behind: the stack the app keeps its cards in */
/* drawn as the card's own shadow, so it sits behind the card with no seam and follows its corners;
   fainter than the card, as a card further back would be */
.fcard.stacked { --stack: 0 20px 0 -12px color-mix(in srgb, var(--card) 62%, transparent), 0 20px 0 -11px var(--edge); }
.fcard .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fcard .hd { display: flex; align-items: center; gap: 11px; font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.fcard .hd small { display: block; font-weight: 400; color: var(--ink-2); font-size: 12.5px; letter-spacing: 0; margin-top: 1px; }
.fcard .big { font-size: 28px; line-height: 1.1; letter-spacing: -0.02em; margin-top: 12px; }
.fcard .muted { color: var(--ink-2); font-size: 12.5px; }
.fcard .ico { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; font-size: 18px; color: color-mix(in srgb, var(--c, var(--green)) 45%, var(--ink)); background: color-mix(in srgb, var(--c, var(--green)) 26%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c, var(--green)) 30%, transparent); flex: none; }
.fcard .av { width: 34px; height: 27px; flex: none; background: center / contain no-repeat; }
.fcard .items { margin-top: 12px; display: grid; gap: 7px; font-size: 13.5px; color: var(--ink-2); }
.fcard .items .row span:last-child { color: var(--ink); }
.fcard .items .row span:last-child { font-family: Riyal, "Bricolage Grotesque", Geist, Almarai, sans-serif; font-weight: 700; }
.fcard .total { margin-top: 12px; font-size: 14px; }
.fcard .total b.money { font-size: 18px; }
.seg { display: flex; gap: 3px; height: 8px; margin: 14px 0 12px; }
.seg span { border-radius: 5px; }
.legend { display: grid; grid-template-columns: 1fr auto; gap: 5px 18px; font-size: 12.5px; color: var(--ink-2); }
.legend b { font-family: Riyal, "Bricolage Grotesque", Geist, Almarai, sans-serif; color: var(--ink); text-align: right; }
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: 3px; margin-right: 8px; }
.stack { display: flex; }
.stack i { width: 30px; height: 24px; margin-inline-end: -8px; background: center / contain no-repeat; }
.linkpill { position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px 6px 6px; border-radius: 999px; font-weight: 600; font-size: 13.5px; color: var(--ink); }
.linkpill i.av { width: 34px; height: 27px; background: center / contain no-repeat; }
.linkpill .ph { font-size: 16px; color: var(--ink-3); }

/* Frosted card over a photo */
.glass { position: absolute; z-index: 2; color: #fff; border-radius: 22px; padding: 18px 20px; background: rgba(28, 24, 20, 0.36); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16); }
.glass .muted { color: rgba(255, 255, 255, 0.78); font-size: 13px; }
.glass .bar { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.28); margin-top: 10px; overflow: hidden; }
.glass .bar span { display: block; height: 100%; border-radius: 3px; background: #fff; }
@media (prefers-reduced-transparency: reduce) { .glass { background: rgba(28, 24, 20, 0.85); } }

/* Notifications arriving one after another */
.notes { position: absolute; z-index: 2; left: 7%; right: 12%; top: 7%; height: 150px; }
.note { position: absolute; inset: 0 0 auto; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 3px 12px; align-items: start; padding: 13px 15px; border-radius: 20px; color: var(--ink);
  opacity: 0; transform: translateY(-14px) scale(0.96); transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
.note .av { width: 34px; height: 27px; background: var(--brick) center / contain no-repeat; grid-row: span 2; margin-top: 2px; }
.note b { font-size: 14px; }
.note time { font-size: 12px; color: var(--ink-3); }
.note p { grid-column: 2 / 4; font-size: 13px; color: var(--ink-2); margin: 0; line-height: 1.4; }
.note.on { opacity: 1; transform: none; z-index: 3; }
.note.was { opacity: 1; transform: translateY(14px) scale(0.94); z-index: 2; filter: brightness(0.96); }
.note.was2 { opacity: 1; transform: translateY(26px) scale(0.88); z-index: 1; filter: brightness(0.92); }
.note.was p, .note.was b, .note.was time, .note.was .av, .note.was2 p, .note.was2 b, .note.was2 time, .note.was2 .av { opacity: 0; }

/* Photo carousels: the photo crossfades, its card changes with it */
.carousel .slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1); }
.carousel .slide.on { opacity: 1; }
.carousel .slide .glass, .carousel .slide .fcard { opacity: 0; translate: 0 12px; transition: opacity 0.6s 0.25s, translate 0.8s 0.25s cubic-bezier(0.16, 1, 0.3, 1); }
.carousel .slide.on .glass, .carousel .slide.on .fcard { opacity: 1; translate: 0 0; }
.tile-label { position: absolute; z-index: 3; left: 0; right: 0; top: 26px; text-align: center; color: #fff; font-weight: 600; font-size: 18px; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35); }

/* Tracks under a carousel: a label over a thin track that fills while that card shows */
.cycle-nav { position: absolute; z-index: 4; left: 28px; right: 28px; bottom: 24px; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; }
.cycle-nav button { all: unset; cursor: pointer; display: grid; gap: 8px; font-size: 13px; font-weight: 500; color: rgba(255, 255, 255, 0.7); }
.cycle-nav button::after { content: ""; height: 3px; border-radius: 3px; background: linear-gradient(#fff, #fff) 0 0 / var(--p, 0%) 100% no-repeat, rgba(255, 255, 255, 0.3); }
.cycle-nav button.done { --p: 100%; }
.cycle-nav button.on { color: #fff; animation: fill var(--dur, 3.2s) linear forwards; }
.cycle-nav button:focus-visible { outline: 2px solid #fff; outline-offset: 4px; border-radius: 6px; }

/* People in a group, as the app draws them */
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pills span { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px 5px 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.92); color: #0e0e10; font-size: 14px; font-weight: 500; }
.pills i { width: 30px; height: 24px; background: center / contain no-repeat; }

/* ---------- Home: the answer, one tile per pain ---------- */
.answers { display: grid; grid-template-columns: 1fr 1fr; gap: 56px 24px; margin-top: 56px; }
.answers figure { margin: 0; }
.answers .tile { aspect-ratio: 5 / 4; }
.answers figcaption { margin-top: 22px; }
.answers figcaption p { color: var(--ink-2); margin-top: 8px; max-width: 40ch; }
.more { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-weight: 500; font-size: 16px; text-decoration: none; color: var(--ink); }
.more:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Use cases */
.cases { margin-top: 56px; }
.cases .tile { aspect-ratio: 16 / 8; }
.cases .carousel::after { display: none; }
/* the story under the photo, and the tracks beside it */
.cases-foot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 40px; align-items: end; margin-top: 28px; }
.caps { display: grid; }
.cap { grid-area: 1 / 1; opacity: 0; translate: 0 8px; transition: opacity 0.5s, translate 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
.cap.on { opacity: 1; translate: 0 0; }
.cap p { color: var(--ink-2); margin-top: 8px; max-width: 46ch; }
.cases .cycle-nav { position: static; padding-bottom: 6px; }
.cases .cycle-nav button { color: var(--ink-3); }
.cases .cycle-nav button.on { color: var(--ink); }
.cases .cycle-nav button::after { background: linear-gradient(var(--ink), var(--ink)) 0 0 / var(--p, 0%) 100% no-repeat, var(--line); }
.cases .cycle-nav button:focus-visible { outline-color: var(--ink); }

/* ---------- Feature pages ---------- */
.f-hero { padding: 40px 0 0; }
.f-hero .wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
/* eyebrow: a bare icon and the feature's name, the colour only as a short rule under it */
.f-hero h1 { font-size: clamp(42px, 5.2vw, 72px); line-height: 1; }
.f-hero .lead { margin-top: 24px; max-width: 34ch; }
.f-hero .ctas { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.f-hero .tile { aspect-ratio: 1 / 1; }
.points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.point { padding: 30px 28px; border-radius: 28px; background: var(--surface); }
.point .ph { font-size: 24px; width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; background: var(--bg); margin-bottom: 24px; }
.point h3 { font-size: 21px; }
.point p { margin-top: 8px; color: var(--ink-2); font-size: 16px; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 56px; align-items: stretch; }
.duo .tile { min-height: 560px; }
.next { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 40px; }
.next a { display: grid; gap: 14px; padding: 22px; border-radius: 24px; background: var(--surface); text-decoration: none; transition: background-color 0.2s; }
.next a:hover { background: color-mix(in srgb, var(--c) 22%, var(--surface)); }
.next .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; background: color-mix(in srgb, var(--c) 32%, var(--bg)); }
.next b { font-size: 17px; }
.next small { color: var(--ink-2); font-size: 14px; display: block; margin-top: 2px; }

@media (prefers-reduced-motion: reduce) {
  .note, .carousel .slide, .carousel .slide .glass, .carousel .slide .fcard, .cap { transition: none; }
  .cycle-nav button.on { animation: none; --p: 100%; }
}
@media (max-width: 1080px) {
  .nav-links { display: flex; gap: 22px; }
  .nav-links > a:not(.keep) { display: none; }
  .menu-panel { position: fixed; top: 76px; left: 16px; right: 16px; width: auto; }
  .answers { grid-template-columns: 1fr; gap: 48px; }
  .f-hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .points { grid-template-columns: 1fr; }
  .duo { grid-template-columns: 1fr; }
  .next { grid-template-columns: 1fr 1fr; }
  .cases .tile { aspect-ratio: 4 / 5; }
  .cases-foot { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 640px) {
  .answers .tile { aspect-ratio: 4 / 5; }
  .fcard { padding: 14px 16px; border-radius: 18px; }
  .fcard .big { font-size: 24px; }
  .notes { left: 5%; right: 5%; }
  .cycle-nav { left: 16px; right: 16px; }
  .next { grid-template-columns: 1fr; }
  .duo .tile { min-height: 460px; }
}
.carousel::after { content: ""; position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(0deg, rgba(10, 8, 6, 0.45), transparent); pointer-events: none; }
@media (max-width: 640px) {
  .tile .fcard { width: auto !important; left: 14px !important; right: 14px !important; max-width: 340px; }
  .tile .fcard .items .row:nth-child(n+3) { display: none; }
  .cycle-nav button { font-size: 11.5px; }
  /* On a phone the photo is narrow: every card goes to the foot of it, below the faces. */
  .tile:not(.cards-top) .fcard { top: auto !important; bottom: 14px !important; }
  .tile:not(.cards-top) .notes { top: auto !important; bottom: 12px !important; left: 14px !important; right: 14px !important; height: 104px; }
  /* a photo of hands, no faces: the card stays at the top and nothing is laid over it */
  .tile.cards-top .fcard { top: 14px !important; bottom: auto !important; }
  .tile.cards-top > img.fg { display: none !important; }
}

/* ---------- Deep feature sections ---------- */
.deep { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; margin-top: 56px; }
.deep.flip > :first-child { order: 2; }
.deep .copy h3 { font-size: clamp(26px, 2.6vw, 34px); }
.deep .copy p { color: var(--ink-2); margin-top: 14px; max-width: 38ch; }
/* points: bare icons on hairline rows, no boxes */
.deep .copy ul { list-style: none; padding: 0; margin: 30px 0 0; display: grid; max-width: 460px; }
.deep .copy li { display: grid; grid-template-columns: 22px 1fr; gap: 16px; align-items: start; padding: 12px 0; font-size: 15.5px; color: var(--ink-2); line-height: 1.45; }
.deep .copy li b { display: block; color: var(--ink); font-weight: 600; font-size: 16px; margin-bottom: 2px; }
.deep .copy li .ph { font-size: 20px; color: var(--ink); margin-top: 1px; }
.stagec { position: relative; border-radius: 36px; overflow: hidden; background: color-mix(in srgb, var(--c, var(--peach)) var(--tint), var(--bg)); aspect-ratio: 1 / 1.08; display: grid; place-items: center; }
.stagec .phone1 { width: 72%; }
.stagec .pair { position: relative; width: 100%; height: 100%; }
.stagec .pair img { position: absolute; width: 60%; }
.stagec .pair img.a { left: -2%; top: 6%; }
.stagec .pair img.b { right: -2%; top: 14%; }
.stagec img.render { filter: drop-shadow(0 34px 34px var(--ground)); }

/* A straight-on phone whose page scrolls as the section passes. */
.scrollsec { position: relative; }
.scrollsec .sticky { position: sticky; top: 90px; align-self: start; }
.scroller { position: relative; width: min(100%, 420px); margin: 0 auto; aspect-ratio: 1050 / 1400; }
.scroller > img { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 40px 40px var(--ground)); }
.scroller .screen { position: absolute; left: 24.65%; right: 24.65%; top: 8.67%; bottom: 8.67%; border-radius: 13.7% / 6.3%; overflow: hidden; background: #F0F0F0; }
/* the app's own page colour: Transactions and Payments are see-through on it, with their light between */
:root[data-theme="dark"] .scroller .screen { background: #000; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .scroller .screen { background: #000; } }
.scroller .screen .body { position: absolute; left: 0; right: 0; z-index: 1; will-change: transform; }
.scroller .screen img { display: block; width: 100%; height: auto; }
.scroller .screen .top { position: absolute; left: 0; right: 0; top: 0; z-index: 2; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 58%, transparent); mask-image: linear-gradient(to bottom, #000 58%, transparent); }
.scroller .screen .body { top: 0 !important; }
.scroller .screen .bottom { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; }
.scrollsec .track { display: grid; gap: 0; }
.scrollsec .track .item { min-height: 64vh; display: flex; flex-direction: column; justify-content: center; opacity: 0.32; transition: opacity 0.4s; }
.scrollsec .track .item.on { opacity: 1; }
.scrollsec .track .item h3 { font-size: clamp(24px, 2.4vw, 32px); }
.scrollsec .track .item p { color: var(--ink-2); margin-top: 12px; max-width: 36ch; }
.scrollsec .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; margin-top: 40px; }
.scrollsec .stagec { aspect-ratio: auto; height: calc(100dvh - 150px); max-height: 820px; }
.scrollsec .stagec .scroller { height: 92%; width: auto; }

@media (max-width: 1080px) {
  .deep { grid-template-columns: 1fr; gap: 32px; }
  .deep.flip > :first-child { order: 0; }
  .scrollsec .grid { grid-template-columns: 1fr; gap: 0; }
  .scrollsec .sticky { top: 70px; z-index: 1; }
  .scrollsec .stagec { height: 62vh; }
  .scrollsec .track { position: relative; z-index: 2; }
  .scrollsec .track .item { min-height: 0; opacity: 1; padding: 22px 22px; margin: 0 0 40vh; border-radius: 22px; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--card-shadow); }
}
@media (prefers-reduced-motion: reduce) { .scrollsec .track .item { transition: none; } }

/* A wide photo moment inside a feature page */
.tile.moment { aspect-ratio: 3 / 2; margin-top: 48px; }
@media (max-width: 720px) { .tile.moment { aspect-ratio: 4 / 5; } }

/* Budgets: three square photos in a row, each at its own shape */
.limits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.limits .tile { aspect-ratio: 1 / 1; }
.limits .fcard .hd { --c: inherit; }
.fcard .bar { height: 6px; border-radius: 3px; margin-top: 10px; overflow: hidden; background: var(--line); }
.fcard .bar span { display: block; height: 100%; border-radius: 3px; background: var(--ink); }
@media (max-width: 900px) { .limits { grid-template-columns: 1fr; max-width: 480px; } }
/* a feature on its way: no page yet, "Coming soon" in the accent after its line */
.menu-list .soon { cursor: default; }
.menu-list .soon em, .sheet-row-link.soon em { font-style: normal; font-weight: 700; color: var(--accent); white-space: nowrap; }

/* Three equal ways to do one thing */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
.trio figure { margin: 0; }
.trio .stagec { aspect-ratio: 1 / 1.05; }
.trio .stagec .phone1 { width: 82%; }
.trio figcaption h3 { margin-top: 24px; font-size: clamp(22px, 2vw, 26px); }
.trio figcaption p { color: var(--ink-2); margin-top: 8px; max-width: 34ch; }
.trio ul { list-style: none; padding: 0; margin: 20px 0 0; display: grid; }
.trio li { display: grid; grid-template-columns: 20px 1fr; gap: 14px; align-items: start; padding: 10px 0; font-size: 15px; color: var(--ink-2); line-height: 1.45; }
.trio li b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 2px; }
.trio li .ph { font-size: 18px; color: var(--ink); margin-top: 1px; }
@media (max-width: 900px) { .trio { grid-template-columns: 1fr; gap: 48px; max-width: 480px; } }

.fcard.limit { padding: 12px 14px 13px; }
.fcard.limit .hd { gap: 10px; }
.fcard.limit .hd > span:nth-child(2) { flex: 1; min-width: 0; }
.fcard.limit .amt { text-align: right; font-weight: 400; }
.fcard.limit .amt b { display: block; font-size: 17px; }
.fcard.limit .amt small { font-size: 12px; }
.fcard.limit .bar { margin-top: 10px; height: 5px; }
/* on a phone, photo cards keep their head and total: short enough to stay under the faces */
@media (max-width: 640px) { .tile .fcard .items { display: none; } .tile .fcard .total { margin-top: 8px; } }

@media (max-width: 640px) { .tile .fcard .big + .row { display: none; } .tile .fcard .big { margin-top: 8px; } }


/* Cards: level, never tilted, and icons stand bare (no tinted boxes) */
.fcard { transform: translateZ(0) !important; }
.fcard .ico, .chip .ico { width: auto; height: auto; background: none; box-shadow: none; border-radius: 0; font-size: 20px; color: var(--ink); }
.fcard .hd { gap: 10px; }
.chip { gap: 11px; }
.chip .ico { padding-inline-start: 6px; }
.fcard .items .row span:last-child { font-variant-numeric: tabular-nums; }
.fcard .items .row.muted span { font-size: 13px; color: var(--ink-3); }
.fcard .row.total b:first-child { font-weight: 600; }
@media (max-width: 640px) { .tile .fcard .row + .row.total { display: none; } }

/* App cards in the home page's language (2026-11-01): clearer glass, softer corners, the title in
   the display face, amounts in the money face, and no line anywhere: the total sits in a soft
   inner band with its figure large, the way the page sets its big words. */
.fcard { --face: color-mix(in srgb, var(--card) 80%, transparent); border-radius: 24px; padding: 18px 20px;
  -webkit-backdrop-filter: blur(26px) saturate(1.8); backdrop-filter: blur(26px) saturate(1.8); }
.fcard .hd > span:last-child { font-family: Riyal, Urbanist, Geist, Almarai, sans-serif; font-weight: 800; font-size: 16px; letter-spacing: -0.02em; line-height: 1.15; }
.fcard .hd small { font-family: Riyal, Geist, Almarai, sans-serif; font-weight: 500; color: var(--ink-3); letter-spacing: 0; margin-top: 3px; }
.fcard .ico { color: var(--ink-2); }
.fcard .items { margin-top: 14px; gap: 8px; }
.fcard .items .row span:first-child { color: var(--ink-2); }
.fcard .row.total { margin-top: 14px; padding: 10px 12px 10px 14px; border-radius: 14px; background: color-mix(in srgb, var(--ink) 5%, transparent); }
[dir="rtl"] .fcard .row.total { padding: 10px 14px 10px 12px; }
.fcard .row.total b:first-child { font-weight: 500; font-size: 13px; color: var(--ink-2); }
.fcard .total b.money { font-size: 22px; letter-spacing: -0.03em; }
@media (max-width: 640px) { .fcard { padding: 14px 16px; border-radius: 20px; } .fcard .total b.money { font-size: 19px; } }
/* every card on a photo in that one look: the same glass for the notifications and the invite pill,
   titles in the display face, Brick's own words in the text face, the plan's bar and legend lighter */
:is(.fcard, .note, .linkpill) { --face: color-mix(in srgb, var(--card) 80%, transparent); -webkit-backdrop-filter: blur(26px) saturate(1.8); backdrop-filter: blur(26px) saturate(1.8); }
.fcard.says .hd > span:last-child { font-family: Riyal, Geist, Almarai, sans-serif; font-weight: 500; font-size: 15px; letter-spacing: -0.01em; line-height: 1.4; }
.fcard .big { font-size: 30px; margin-top: 14px; letter-spacing: -0.035em; }
.fcard .seg { gap: 3px; height: 8px; margin: 16px 0 14px; }
.fcard .seg span { border-radius: 999px; }
.fcard .legend { gap: 8px 18px; font-size: 13.5px; }
.fcard .legend i { width: 8px; height: 8px; border-radius: 50%; margin-inline: 0 9px; }
.note { border-radius: 22px; padding: 14px 16px; }
.note b { font-family: Riyal, Urbanist, Geist, Almarai, sans-serif; font-weight: 800; font-size: 14.5px; letter-spacing: -0.015em; }
.note p { color: var(--ink-2); }
.linkpill { padding: 7px 18px 7px 7px; font-family: Riyal, Urbanist, Geist, Almarai, sans-serif; font-weight: 800; font-size: 14px; letter-spacing: -0.01em; }
[dir="rtl"] .linkpill { padding: 7px 7px 7px 18px; }

/* the app's light from above, fixed, UNDER the page (as in the app): the page is see-through
   where it is bare, so the light shows there and nowhere else */
/* the camera notch, above everything on the screen: nothing scrolling may ever cover it
   (measured from the app's screenshots: 1206x2622, x 415-790, y 42-151) */
.scroller .screen .notch { position: absolute; z-index: 5; left: 34.41%; width: 31.18%; top: 1.6%; height: 4.2%; border-radius: 999px; background: #000; pointer-events: none; }
.scroller .screen .tint { position: absolute; inset: 0; z-index: 0; pointer-events: none; background: 0 0 / 100% 100% no-repeat; }

/* every notification the same size: one line of title, one line of text */
.note { height: 76px; box-sizing: border-box; }
.note b, .note p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.notes { height: 96px; }
@media (max-width: 640px) { .tile:not(.cards-top) .notes { height: 96px !important; } }

/* ---------- Phones: one considered layout, not the desktop squeezed ---------- */
@media (max-width: 900px) {
  /* Scrolling phones: the phone pins at the top; under it, one caption at a time in a fixed
     place, changing as the page inside the phone moves. Nothing floats over the screen. */
  .scrollsec .grid { display: block; height: calc(100svh + var(--n, 3) * 55svh); margin-top: 28px; }
  .scrollsec .sticky { position: sticky; top: 72px; z-index: 1; }
  .scrollsec .stagec { height: 56svh; max-height: 560px; }
  .scrollsec .stagec .scroller { height: 94%; }
  /* the phone's box reaches down over the caption's place, so the two stop being pinned at the
     same moment and leave together */
  .scrollsec .sticky { margin-bottom: calc(26svh + 20px); }
  .scrollsec .track { position: sticky; top: calc(72px + min(56svh, 560px) + 20px); z-index: 2; display: grid; height: 26svh; margin-top: calc(-26svh - 20px + 20px); }
  .scrollsec .track .item { grid-area: 1 / 1; min-height: 0; margin: 0; padding: 0; background: none; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; border-radius: 0;
    opacity: 0; translate: 0 10px; transition: opacity 0.35s, translate 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
  .scrollsec .track .item.on { opacity: 1; translate: 0 0; }
  .scrollsec .track .item h3 { font-size: 22px; }
  .scrollsec .track .item p { margin-top: 8px; font-size: 16px; }
}
@media (max-width: 640px) {
  section.block { padding-top: 84px; }
  .wrap { padding-inline: max(16px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-right)); }
  h2 { text-wrap: balance; }
  .lead { text-wrap: pretty; }
  /* tap targets of at least 44px */
  .ways button { min-height: 40px; }
  .faq summary, .faq button { min-height: 52px; }
  .deep { margin-top: 40px; gap: 28px; }
  .deep .stagec, .trio .stagec { border-radius: 28px; }
  .deep .copy h3 { font-size: 24px; }
  .tile, .tile.moment { border-radius: 24px; }
  .f-hero h1 { text-wrap: balance; }
  .platforms .platform { flex: 0 0 auto; white-space: nowrap; }
  /* one card per photo on a phone: the invite pill makes room for the balance */
  .tile .linkpill { display: none; }
}
@media (max-width: 380px) { .fcard { font-size: 13px; } }
button, a { -webkit-tap-highlight-color: transparent; }

/* Switching theme: one calm crossfade of the whole page */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.45s; animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
.theme-fade, .theme-fade * { transition: background-color 0.4s, color 0.4s, border-color 0.4s, box-shadow 0.4s !important; }
/* a jump to a far part of the page (site.js leap): the page fades under the bar, moves, comes back */
.leap-veil { position: fixed; inset: 0; z-index: 29; background: var(--bg); opacity: 0; pointer-events: none; transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.leap-veil.on { opacity: 1; pointer-events: auto; transition-duration: 0.2s; }
@media (prefers-reduced-motion: reduce) { ::view-transition-old(root), ::view-transition-new(root) { animation: none; } }

/* the assistant tile: a question and Brick's answer, and a quiet coming-soon badge */
.fcard .ask { margin-top: 12px; padding: 9px 12px; border-radius: 14px 14px 4px 14px; background: var(--surface); font-size: 13.5px; color: var(--ink); }
.fcard .ans { margin-top: 8px; font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }
.soon-pill { display: inline-block; vertical-align: 4px; margin-inline-start: 8px; padding: 3px 10px; border-radius: 999px; font: 600 12px/1.4 Riyal, Geist, Almarai, sans-serif; letter-spacing: 0.02em; color: var(--ink-2); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
@media (max-width: 640px) { .tile .fcard .ask { display: none; } }

/* ---------- Language switch: the language you read on its button, and a menu of each in its own name ---------- */
.langs { position: relative; }
.lang-btn { width: auto; display: inline-flex; gap: 6px; padding: 0 12px 0 10px; font: 700 14px/1 Riyal, Urbanist, Geist, Almarai, sans-serif; letter-spacing: 0.03em; }
.lang-btn .ph { font-size: 18px; }
.langs.open .lang-btn { color: var(--accent); background: transparent; }
.langs-panel { position: absolute; top: calc(100% + 14px); right: 0; min-width: 210px; padding: 8px; border-radius: 24px; display: grid; gap: 0; z-index: 20;
  background: var(--card); box-shadow: var(--drop);
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity 0.18s, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.18s; }
.langs.open .langs-panel { opacity: 1; visibility: visible; transform: none; }
.langs-panel a { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 11px 14px; border-radius: 14px; font: 800 19px/1.2 Riyal, Urbanist, Geist, Almarai, sans-serif; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; outline: none; transition: color 0.2s; }
.langs-panel a small { font: 700 12px/1 Riyal, Urbanist, Geist, Almarai, sans-serif; letter-spacing: 0.05em; color: var(--ink-3); transition: color 0.2s; }
.langs-panel a:is(:hover, :focus-visible, [aria-current]), .langs-panel a:is(:hover, :focus-visible, [aria-current]) small { color: var(--accent); }
.langs-panel a:focus-visible { box-shadow: inset 0 0 0 2px var(--ink); }
.langs-panel a:lang(ar), .langs-panel a:lang(ar) small, .lang-btn span:lang(ar) { font-family: Riyal, Almarai, sans-serif; letter-spacing: 0; }
[dir="rtl"] .langs-panel { right: auto; left: 0; }

/* ---------- Arabic: right to left, in Almarai (the app's Arabic face) ---------- */
html[lang="ar"] body { font-family: Riyal, Almarai, Geist, system-ui, sans-serif; line-height: 1.75; }
html[lang="ar"] :is(h1, h2, h3, h4, .logo .word, b, strong) { letter-spacing: 0; }
html[lang="ar"] :is(h1, h2) { font-family: Riyal, Almarai, sans-serif; font-weight: 800; line-height: 1.25; }
html[lang="ar"] h3 { font-family: Riyal, Almarai, sans-serif; font-weight: 800; line-height: 1.4; }
html[lang="ar"] .logo .word { font-family: Riyal, Urbanist, Almarai, sans-serif; letter-spacing: -0.03em; }
html[lang="ar"] .lead, html[lang="ar"] p { line-height: 1.8; }
html[lang="ar"] .money { direction: ltr; unicode-bidi: isolate; }
html[lang="ar"] .soon-pill { font-family: Riyal, Almarai, sans-serif; letter-spacing: 0; }
html[lang="ar"] :is(.nav-links a, .menu > button, .menu-list b, .langs-panel a, .lang-btn, .nav .btn-sm) { font-family: Riyal, Almarai, sans-serif; letter-spacing: 0; }
html[lang="ar"] .menu-list b { line-height: 1.4; font-size: 19px; }
html[lang="ar"] footer :is(.foot-h, h4, ul a, .foot-mark) { font-family: Riyal, Almarai, sans-serif; letter-spacing: 0; }
html[lang="ar"] footer .foot-h { line-height: 1.3; }
html[lang="ar"] footer .foot-mark { line-height: 1.1; }
/* arrows point the way the text reads */
[dir="rtl"] .ph-arrow-right svg { transform: scaleX(-1); }
[dir="rtl"] .menu-foot .ph, [dir="rtl"] a.more:hover .ph { translate: 0; }
/* things placed from the left in English start from the right */
[dir="rtl"] .menu-panel { left: auto; right: -30px; transform-origin: calc(100% - 40px) 0; }
[dir="rtl"] .deep .copy li, [dir="rtl"] .trio li, [dir="rtl"] .promise { text-align: right; }

/* ---------- Privacy policy: the site's type and colours, a reading column, contents beside it ---------- */
.legal-head { padding: 96px 0 0; }
.legal-head h1 { font-size: clamp(44px, 6vw, 80px); }
.legal-head .lead { margin-top: 16px; color: var(--ink-3); }
.lost { padding-bottom: 120px; }
.lost .lead { max-width: 36ch; color: var(--ink-2); }
.lost .ctas { margin-top: 32px; }
.lost .next { grid-template-columns: repeat(5, 1fr); margin-top: 72px; }
.lost .next a { color: var(--ink); }
@media (max-width: 1080px) { .lost .next { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .lost { padding-bottom: 72px; } .lost .next { grid-template-columns: 1fr; margin-top: 48px; } }
.legal { padding: 56px 0 120px; }
.legal-grid { display: grid; grid-template-columns: 240px minmax(0, 720px); gap: 72px; align-items: start; }
.legal aside { position: sticky; top: 96px; }
.legal-label { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 12px; }
.legal aside ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: toc; }
.legal aside li { counter-increment: toc; }
.legal aside a { display: grid; grid-template-columns: 26px 1fr; padding: 6px 0; font-size: 14px; line-height: 1.4; color: var(--ink-2); text-decoration: none; }
.legal aside a::before { content: counter(toc); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.legal aside a { position: relative; transition: color 0.2s; }
.legal aside a:hover, .legal aside a.on { color: var(--ink); }
/* the section being read: its entry in full ink, its number too, and a short line beside it */
.legal aside a.on { font-weight: 600; }
.legal aside a.on::before { color: var(--ink); }
.legal aside a::after { content: ""; position: absolute; inset-inline-start: -14px; top: 9px; bottom: 9px; width: 2px; border-radius: 2px; background: var(--ink); opacity: 0; transform: scaleY(0.4); transition: opacity 0.25s, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1); }
.legal aside a.on::after { opacity: 1; transform: none; }
.legal-body { font-size: 17px; }
.legal-body h2 { font-size: clamp(24px, 2.2vw, 30px); margin: 64px 0 14px; scroll-margin-top: 96px; }
.legal-body h3 { font-size: 19px; margin: 28px 0 8px; }
.legal-body p, .legal-body li { color: var(--ink-2); line-height: 1.7; }
.legal-body strong { color: var(--ink); font-weight: 600; }
.legal-body ul { padding-inline-start: 20px; }
.legal-body li + li { margin-top: 6px; }
.legal-body a { color: var(--ink); text-underline-offset: 3px; }
.legal-body .summary { border-radius: 24px; padding: 8px 32px 20px; background: var(--surface); }
.legal-body .summary h2 { margin-top: 24px; }
.legal-body .table { overflow-x: auto; margin: 16px 0; }
.legal-body table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.legal-body th, .legal-body td { text-align: start; vertical-align: top; padding: 14px 16px; color: var(--ink-2); line-height: 1.55; }
/* rows told apart by a soft band, not lines */
.legal-body tr:nth-child(even) :is(th, td) { background: var(--surface); }
.legal-body th { color: var(--ink); font-weight: 600; }
[dir="rtl"] .legal-body th, [dir="rtl"] .legal-body td { padding: 14px 0 14px 16px; }
@media (max-width: 960px) {
  .legal-grid { grid-template-columns: 1fr; gap: 40px; }
  .legal aside { position: static; padding: 20px 22px; border-radius: 20px; background: var(--surface); }
  .legal aside ol { columns: 2; column-gap: 24px; display: block; }
}
@media (max-width: 640px) {
  .legal-head { padding-top: 56px; }
  .legal aside ol { columns: 1; }
  .legal-body .summary { padding: 4px 20px 16px; }
}
/* right to left: progress bars fill from the right */
[dir="rtl"] .cycle-nav button::after, [dir="rtl"] .ways button::after { background-position: 100% 0, 0 0; }
html[lang="ar"] .logo .word { font-family: Riyal, Almarai, sans-serif; font-weight: 800; letter-spacing: 0; }
@media (max-width: 640px) { .f-hero .tile .fcard .hd small { display: none; } .f-hero .tile .fcard { padding: 10px 14px; } }
.legal-grid > * { min-width: 0; }
/* right to left: the first of two phones stands on the right, as the eye starts there */
[dir="rtl"] .stagec .pair img.a { left: auto; right: -2%; }
[dir="rtl"] .stagec .pair img.b { right: auto; left: -2%; }


/* ---------- Scrolling without blinks (Safari and Chrome) ----------
   A frosted card inside something fading in has nothing behind it to blur until the fade ends, so
   it blinks when the fade finishes. Photos that carry cards slide in without fading, and every
   frosted layer, the top bar included, keeps its own steady layer. The look is unchanged. */
.reveal:has(.fcard, .note, .linkpill, .chip) { opacity: 1; transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.settled { transition: none; transform: none; will-change: auto; }


/* ---------- The menu on narrow screens: a button in the bar drops a curtain over the whole page;
   the features rise into place in the site's display type, one line after another, and the
   ways out (the two stores, Privacy, FAQ) wait at the foot. ---------- */
.burger { display: none; }
.sheet { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; background: var(--bg); color: var(--ink);
  visibility: hidden; clip-path: inset(0 0 100% 0);
  transition: clip-path 0.55s cubic-bezier(0.76, 0, 0.24, 1) 0.12s, visibility 0s 0.67s; }
.sheet.open { visibility: visible; clip-path: inset(0 0 0 0); transition: clip-path 0.7s cubic-bezier(0.76, 0, 0.24, 1), visibility 0s; }
html.sheet-open { overflow: hidden; }
.sheet:focus { outline: none; }
.sheet-top { flex: none; height: 68px; display: flex; align-items: center; justify-content: space-between; }
.sheet-close .ph { rotate: -90deg; transition: rotate 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.2s; }
.sheet.open .sheet-close .ph { rotate: 0deg; }
/* one centred column; inside it the rows read from the start, like the rest of the site */
.sheet-main { flex: 1; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; align-items: center; justify-content: safe center; padding: 8px 24px 16px; }
.sheet-feats { list-style: none; margin: 0; padding: 0; width: min(440px, 100%); }
.sheet-feats li { position: relative; }
.sheet-row-link { display: grid; grid-template-columns: 46px 1fr auto; column-gap: 18px; align-items: center; padding: 11px 2px; color: var(--ink); text-decoration: none;
  opacity: 0; translate: 0 16px; transition: opacity 0.2s, translate 0.25s; }
.sheet.open .sheet-row-link { opacity: 1; translate: 0 0; transition: opacity 0.6s calc(0.26s + var(--i) * 55ms), translate 0.9s cubic-bezier(0.16, 1, 0.3, 1) calc(0.26s + var(--i) * 55ms); }
.sheet-row-link .pic { grid-column: 1; grid-row: 1 / 3; }
.sheet-row-link .nm { grid-column: 2; align-self: end; font: 800 clamp(24px, 7vw, 30px) / 1.15 Riyal, Urbanist, Geist, Almarai, sans-serif; letter-spacing: -0.03em; }
.sheet-row-link small { grid-column: 2; align-self: start; margin-top: 3px; font-size: 14.5px; line-height: 1.4; color: var(--ink-2); }
.sheet-row-link .ph { grid-column: 3; grid-row: 1 / 3; font-size: 20px; color: var(--ink-3); transition: translate 0.35s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s; }
/* the page you are on: its name in the accent */
.sheet-row-link[aria-current] .nm { color: var(--accent); }
.sheet-row-link:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 12px; }
.sheet-row-link:active .ph { translate: 4px 0; color: var(--ink); }
[dir="rtl"] .sheet-row-link:active .ph { translate: -4px 0; }
@media (hover: hover) {
  .sheet-feats:hover .sheet-row-link:not(.soon) .nm { color: var(--ink-3); transition: color 0.25s; }
  .sheet-feats:hover .sheet-row-link:not(.soon):hover .nm { color: var(--ink); }
  .sheet-row-link:hover .ph { translate: 4px 0; color: var(--ink); }
  [dir="rtl"] .sheet-row-link:hover .ph { translate: -4px 0; }
}
/* the assistant is on its way: the same row, quieter, and no way in yet */
.sheet-row-link.soon .nm { color: var(--ink-3); }
.sheet-foot { flex: none; display: grid; justify-items: center; gap: 16px; padding-top: 8px; max-width: 488px; padding-bottom: max(24px, env(safe-area-inset-bottom)); }
.sheet-foot .sheet-stores { width: 100%; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sheet-foot .sheet-stores .platform { justify-content: center; height: 56px; padding: 0 14px; white-space: nowrap; }
@media (max-width: 359px) { .sheet-foot .sheet-stores { grid-template-columns: 1fr; } }
.sheet-links { display: flex; gap: 24px; white-space: nowrap; }
.sheet-links a { font: 700 16px/1 Riyal, Urbanist, Geist, Almarai, sans-serif; color: var(--ink-2); text-decoration: none; transition: color 0.2s; }
.sheet-links a:hover { color: var(--ink); }
/* the quieter parts fade up just behind the names */
.sheet-foot { opacity: 0; translate: 0 14px; transition: opacity 0.2s, translate 0.25s; }
.sheet.open .sheet-foot { opacity: 1; translate: 0 0; transition: opacity 0.6s calc(0.32s + var(--i) * 60ms), translate 0.9s cubic-bezier(0.16, 1, 0.3, 1) calc(0.32s + var(--i) * 60ms); }
html[lang="ar"] .sheet-row-link .nm { font-family: Riyal, Almarai, sans-serif; letter-spacing: 0; line-height: 1.45; font-size: clamp(22px, 6.4vw, 27px); }

@media (max-width: 1080px) {
  .nav-links { display: none; }
  .burger { display: grid; }
}
@media (min-width: 1081px) { .sheet { display: none; } }
@media (max-height: 700px) { .sheet-row-link small { display: none; } .sheet-row-link { padding: 11px 2px; } }
@media (prefers-reduced-motion: reduce) {
  .sheet, .sheet.open { clip-path: none; transition: opacity 0.2s, visibility 0s 0.2s; opacity: 0; }
  .sheet.open { opacity: 1; transition: opacity 0.2s, visibility 0s; }
  .sheet :is(.sheet-row-link, .sheet-foot) { translate: none; scale: none; opacity: 1; transition: none; }
}

/* Photo cards on a tablet: the desktop places each at a share of the photo's width, which leaves a
   card with rows too narrow to read once the photo is the width of the screen. A floor keeps them
   whole. (On a phone every card spans the photo, side to side, the same way.) */
@media (min-width: 641px) and (max-width: 1080px) {
  .tile .fcard { min-width: min(300px, calc(100% - 28px)); }
  .tile .fcard:has(.items, .rows, .row + .row) { min-width: min(330px, calc(100% - 28px)); }
  /* a wide, short photo has no room for the rows above the faces: the total says it, as on a phone */
  .tile.moment .fcard .items { display: none; }
  .tile.moment .fcard .total { margin-top: 8px; }
}

/* A link to a section (Privacy, FAQ) lands with the section's own content just under the bar, not
   with its top padding, and the end of the section before, in view: the margin takes back the
   padding (150px, 84px on a phone) less a calm gap below the 68px bar. */
section.block[id] { scroll-margin-top: calc(68px + 56px - 80px - 150px); }
@media (max-width: 640px) { section.block[id] { scroll-margin-top: calc(68px + 36px - 80px - 84px); } }

/* ---------- Frost that cannot blink ----------
   A live backdrop-filter makes the browser read back and blur whatever is behind an element on
   every frame it scrolls. On a busy GPU (many tabs, Arc's translucent window) Chromium can drop that
   layer for a frame, and the card or the bar blinks out. So:
   - a card on a photo carries its own blurred copy of the part of the photo under it (.frost, laid
     out by site.js), and its live blur is switched off: the same look, nothing read back;
   - the top bar still has to blur the page live, but the blur sits on a layer behind its content,
     so if that layer is ever late the logo and links stay where they are. */
.frosted { background: transparent !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; isolation: isolate; }
.frost { position: absolute; inset: 0; z-index: -1; border-radius: inherit; overflow: hidden; pointer-events: none; }
.frost::before { content: ""; position: absolute; inset: -40px; background: var(--fi) var(--fp) / var(--fs) no-repeat; filter: blur(20px) saturate(1.5); }
.frost::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--face); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .frost::after { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07); } }
:root[data-theme="dark"] .frost::after { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07); }
.nav { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.nav::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: color-mix(in srgb, var(--bg) 82%, transparent); -webkit-backdrop-filter: saturate(1.5) blur(20px); backdrop-filter: saturate(1.5) blur(20px); }

/* During the theme fade the bar is plain page content (see the theme switch in site.js). */
.nav.pinned { position: relative; } /* keeps its place in the page, so nothing under it moves */

/* Home: the bar sits over the hero like appllama's, on a fade from the page colour to clear rather
   than a solid band, so the cards pass under it; once the page has slid up over the hero it is
   the usual frosted bar again (site.js sets .solid). */
.nav.over::after { content: ""; position: absolute; inset: 0 0 auto; height: 144px; z-index: -1; pointer-events: none; transition: opacity 0.5s;
  background: linear-gradient(color-mix(in srgb, var(--bg) 95%, transparent), color-mix(in srgb, var(--bg) 55%, transparent), transparent); }
.nav.over::before { opacity: 0; transition: opacity 0.5s; }
.nav.over.solid::before { opacity: 1; }
.nav.over.solid::after { opacity: 0; }
.nav.over.scrolled:not(.solid) { box-shadow: none; }

/* ---------- Home, in the hero's language (2026-11-01). The sections are built from the hero's own
   parts: headings at its scale and weight, ending on an accent word; big type straight on the page;
   picture cards like its own (turned, a hairline, a soft lift) that arrive turned and settle; links
   are its glass pills; the closing panel is the hero again, small. Numbers and icons stay black and
   white (see DECISIONS). */
:root { --lift: 0 1px 2px rgba(17, 17, 16, 0.04), 0 12px 32px -8px rgba(17, 17, 16, 0.12), 0 36px 70px -36px rgba(17, 17, 16, 0.22); --hair: rgba(17, 17, 16, 0.08); --settle: cubic-bezier(0.22, 1, 0.36, 1); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --lift: 0 20px 50px -24px rgba(0, 0, 0, 0.7); --hair: rgba(255, 255, 255, 0.09); } }
:root[data-theme="dark"] { --lift: 0 20px 50px -24px rgba(0, 0, 0, 0.7); --hair: rgba(255, 255, 255, 0.09); }

/* the cards melt into the page above the facts, like under the bar: no hard edge */
.hero + .facts::before { content: ""; position: absolute; inset: auto 0 100%; height: 200px; pointer-events: none;
  background: linear-gradient(transparent, color-mix(in srgb, var(--bg) 55%, transparent) 45%, color-mix(in srgb, var(--bg) 92%, transparent) 80%, var(--bg)); }
/* the facts run past like the hero's cards: big words, a small turned picture between each; four
   copies so the loop never shows its end on a wide screen; stops under the pointer */
.ticker-view { overflow: hidden; padding: 40px 0 12px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.ticker { display: flex; width: max-content; animation: tick 56s linear infinite; }
[dir="rtl"] .ticker { animation-name: tick-rtl; }
.facts:hover .ticker { animation-play-state: paused; }
.facts .ticker ul { display: flex; align-items: center; margin: 0; padding: 0; list-style: none; }
.facts .ticker li { display: inline-flex; align-items: center; gap: 0.32em; margin-inline-end: 44px; padding: 14px 0; white-space: nowrap; color: var(--ink);
  font-family: Riyal, Urbanist, Geist, Almarai, sans-serif; font-weight: 800; font-size: clamp(30px, 3.6vw, 54px); letter-spacing: -0.04em; line-height: 1; }
.facts .ticker li .ph { font-size: 0.66em; color: var(--ink-3); }
.facts .ticker .pic i { position: relative; display: block; width: 1.25em; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 14%; rotate: var(--r); background: var(--surface); box-shadow: 0 1px 2px rgba(17, 17, 16, 0.05), 0 8px 20px -6px rgba(17, 17, 16, 0.2); }
.facts .ticker .pic b { position: absolute; inset: 0; background: var(--q, none) center / cover no-repeat; }
@keyframes tick { to { translate: -25% 0; } }
@keyframes tick-rtl { to { translate: 25% 0; } }

/* which section you are in: the sections take turns on the page colour and on a soft band, its
   corners rounded so each reads as a sheet of its own */
.hero ~ .band { background: var(--surface); border-radius: 56px; padding-bottom: 150px; }
.hero ~ .band.feats { padding-bottom: 0; }
.hero ~ .band + * { padding-top: 150px; }
.hero ~ .block:has(+ .band) { padding-bottom: 150px; }
.hero ~ .block:last-child { padding-bottom: 150px; }

/* headings at the hero's scale, centred, with its lead under them */
main > .block > .wrap > h2 { font-size: clamp(38px, 4.6vw, 64px); line-height: 1; letter-spacing: -0.045em; }
main > .block > .wrap > h2 { text-align: center; margin-inline: auto; max-width: 20ch; }
main > .block > .wrap > .lead { text-align: center; margin: 26px auto 0 !important; max-width: 36ch !important; }
main > .block > .wrap > h2 + :not(.lead) { margin-top: 64px; }

/* Every section speaks the facts' language: big words straight on the page (no panels, no boxes),
   small turned photo cards like the hero's, line icons in front of words, and things that run. */
.hero ~ * :is(.feats .tile, .stories .tile) { box-shadow: var(--lift); }
.hero ~ * :is(.feats .tile, .stories .tile)::after { content: ""; position: absolute; inset: 0; z-index: 6; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--hair); pointer-events: none; }

/* lines: a list in big type, every row the same: its number (or icon) in front, then (for the
   problems) a turned picture card of one size in one place, then big words with a small line
   under them. The card spins in and settles; it straightens under the pointer. */
.lines { list-style: none; max-width: 1000px; margin: 72px auto 0; padding: 0; display: grid; gap: 56px; }
.lines li { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; column-gap: 28px; }
.lines.pics li { grid-template-columns: 40px 104px minmax(0, 1fr); column-gap: 40px; }
.lines .n { font-family: Riyal, Urbanist, Geist, Almarai, sans-serif; font-weight: 800; font-size: 22px; letter-spacing: -0.02em; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.lines .n .ph { font-size: 46px; }
.lines .big { font-family: Riyal, Urbanist, Geist, Almarai, sans-serif; font-weight: 800; font-size: clamp(32px, 3.9vw, 56px); line-height: 1.04; letter-spacing: -0.045em; color: var(--ink); }
.lines li > div > p { margin-top: 12px; max-width: 52ch; font-size: 18px; line-height: 1.55; color: var(--ink-2); }
.lines .pic i { position: relative; display: block; width: 104px; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 14%; background: var(--surface);
  box-shadow: 0 1px 2px rgba(17, 17, 16, 0.05), 0 10px 24px -8px rgba(17, 17, 16, 0.25); rotate: calc(var(--r) * 3); scale: 0.5; opacity: 0;
  transition: rotate 1.4s var(--settle), scale 1.4s var(--settle), opacity 0.6s; transition-delay: calc(var(--d, 0s) + 0.2s); }
.lines .pic b { position: absolute; inset: 0; background: var(--q, none) center / cover no-repeat; }
.lines li.in .pic i { rotate: var(--r); scale: 1; opacity: 1; }
@media (hover: hover) { .lines li.in:hover .pic i { rotate: 0deg; scale: 1.08; transition-delay: 0s; transition-duration: 0.7s; } }
.lines-more { margin-top: 56px; text-align: center; }
.lines-more a.more { margin-top: 0 !important; }

/* features: a run. The section holds still while scrolling carries the features across, the way the
   facts run past (site.js sets --run, how far the row travels, and moves it); each is a turned photo
   card with the words in big type beside it */
.hero ~ .feats { padding: 0; height: calc(100svh + var(--run, 0px)); }
.feats-pin { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding-top: 68px; border-radius: inherit; }
.feats-pin > .wrap > h2 { text-align: center; margin-inline: auto; max-width: 20ch; font-size: clamp(38px, 4.6vw, 64px); line-height: 1; letter-spacing: -0.045em; }
.feats-pin > .wrap > .lead { text-align: center; margin: 22px auto 0; max-width: 40ch; }
.feats-view { margin-top: 6vh; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.feats-track { display: flex; align-items: center; gap: 7vw; width: max-content; padding: 40px max(40px, calc((100vw - 1280px) / 2 + 40px)); will-change: transform; }
.feats figure { position: relative; display: flex; align-items: center; gap: 48px; margin: 0; }
.hero ~ .feats .tile { height: min(56svh, 600px); aspect-ratio: 3 / 4; border-radius: 28px; rotate: var(--r); transition: rotate 0.8s var(--settle), scale 0.8s var(--settle); }
/* each photo framed for the tall card: where it sits (--fx, --fy) and, for a wide room, a little closer (--zoom) */
.hero ~ .feats .tile > img.bg { scale: var(--zoom, 1); transform-origin: var(--zo, 50% 50%); }
.feats figcaption { width: clamp(280px, 26vw, 400px); margin: 0; text-align: start; }
.feats figcaption .n { display: block; margin-bottom: 18px; font-family: Riyal, Urbanist, Geist, Almarai, sans-serif; font-weight: 800; font-size: 20px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.feats figcaption h3 { font-family: Riyal, Urbanist, Geist, Almarai, sans-serif; font-weight: 800; font-size: clamp(32px, 3.4vw, 52px); line-height: 1.02; letter-spacing: -0.045em; text-wrap: balance; }
.feats figcaption p { margin-top: 16px; color: var(--ink-2); max-width: 34ch; }
.feats figure a.more::after { content: ""; position: absolute; inset: 0; z-index: 7; }
@media (hover: hover) { .hero ~ .feats figure:has(a.more):hover .tile { rotate: 0deg; scale: 1.02; } }
.feats .soon-pill { vertical-align: 0.35em; }

/* links: the hero's glass pill, small */
main a.more { display: inline-flex; align-items: center; gap: 8px; height: 42px; margin-top: 22px; padding: 0 18px 0 20px; border-radius: 999px; border: 1px solid var(--line);
  font-size: 15px; font-weight: 500; text-decoration: none; color: var(--ink); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  background: linear-gradient(-75deg, color-mix(in srgb, var(--ink) 2%, transparent), color-mix(in srgb, var(--ink) 7%, transparent), color-mix(in srgb, var(--ink) 2%, transparent)), color-mix(in srgb, var(--bg) 60%, transparent);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.7), inset 0 -3px 4px rgba(0, 0, 0, 0.05), 0 12px 28px -14px rgba(14, 14, 16, 0.3); transition: translate 0.3s var(--settle); }
main a.more:hover { text-decoration: none; translate: 0 -1px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) main a.more { box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.22), inset 0 -3px 4px rgba(0, 0, 0, 0.35), 0 12px 28px rgba(0, 0, 0, 0.45); } }
:root[data-theme="dark"] main a.more { box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.22), inset 0 -3px 4px rgba(0, 0, 0, 0.35), 0 12px 28px rgba(0, 0, 0, 0.45); }

/* real life: three turned photo cards side by side, the middle one a little lower, like a hand laid
   down; each carries the story's app card, its name in big type and its line under it. A card
   straightens under the pointer. */
.stories { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px; margin-top: 72px; align-items: start; }
.stories figure { margin: 0; text-align: center; }
.stories figure:nth-child(2) { margin-top: 36px; }
.hero ~ * .stories .tile { aspect-ratio: 4 / 5; border-radius: 28px; rotate: var(--r); transition: rotate 0.8s var(--settle), scale 0.8s var(--settle); }
@media (hover: hover) { .hero ~ * .stories figure:hover .tile { rotate: 0deg; scale: 1.02; } }
.stories figcaption { margin-top: 36px; }
/* the app card small enough to leave the people in view */
.stories .fcard { font-size: 12.5px; padding: 13px 15px; }
.stories h3 { font-family: Riyal, Urbanist, Geist, Almarai, sans-serif; font-weight: 800; font-size: clamp(26px, 2.6vw, 38px); line-height: 1.05; letter-spacing: -0.04em; }
.stories figcaption p { margin: 12px auto 0; max-width: 30ch; font-size: 16px; color: var(--ink-2); }

/* questions: an index in big type, numbered; the one picked is ink with its arrow right after it,
   and its answer sits beside the list in large plain type, level with the first question, arriving
   as it is picked. (On phones the answer opens under its question.) */
.index { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); grid-auto-rows: auto; column-gap: 88px; max-width: 1180px; margin: 72px auto 0; }
.qa { display: contents; }
.qa .q { all: unset; box-sizing: border-box; grid-column: 1; cursor: pointer; display: grid; grid-template-columns: 48px auto 28px; justify-content: start; align-items: center; gap: 12px; padding: 13px 0;
  font-family: Riyal, Urbanist, Geist, Almarai, sans-serif; font-weight: 800; font-size: clamp(22px, 2.3vw, 32px); line-height: 1.12; letter-spacing: -0.035em; color: var(--ink-3); transition: color 0.4s var(--settle), translate 0.5s var(--settle); }
.qa .q .n { font-size: 14px; letter-spacing: 0; font-variant-numeric: tabular-nums; color: var(--ink-3); }
.qa .q .ph { font-size: 22px; color: var(--ink); opacity: 0; translate: -10px 0; transition: opacity 0.4s var(--settle), translate 0.5s var(--settle); }
[dir="rtl"] .qa .q .ph { translate: 10px 0; }
@media (hover: hover) { .qa .q:hover { color: var(--ink-2); } }
.qa.on .q { color: var(--ink); }
.qa.on .q .ph { opacity: 1; translate: 0 0; }
.qa .q:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 8px; }
.qa .a { grid-column: 2; grid-row: 1 / span 7; align-self: start; position: sticky; top: 130px; padding-top: 14px; visibility: hidden; }
.qa.on .a { visibility: visible; }
.qa .card { opacity: 0; translate: 0 14px; transition: opacity 0.4s var(--settle), translate 0.8s var(--settle); }
.qa.on .card { opacity: 1; translate: 0 0; transition-delay: 0.06s; }
.qa .card p { margin: 0; max-width: 30ch; font-size: clamp(21px, 2vw, 27px); line-height: 1.45; letter-spacing: -0.015em; color: var(--ink); text-wrap: pretty; }


@media (max-width: 1080px) {
  .index { grid-template-columns: 1fr; }
  .qa { display: block; }
  .qa .a { position: static; display: grid; grid-template-rows: 0fr; padding: 0; visibility: visible; transition: grid-template-rows 0.6s var(--settle); }
  .qa .a > .card { min-height: 0; overflow: hidden; }
  .qa.on .a { grid-template-rows: 1fr; padding: 4px 0 22px; }
  .qa .card { translate: 0 0; padding: 0 0 0 40px; }
  [dir="rtl"] .qa .card { padding: 0 40px 0 0; }
  .qa .card p { font-size: 18px; }
  .stories { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; gap: 64px; }
  .stories figure:nth-child(2) { margin-top: 0; }
  /* the run becomes a column: the section scrolls like any other */
  .hero ~ .feats { height: auto !important; padding: 110px 0 40px; }
  .feats-pin { position: static; height: auto; overflow: visible; padding-top: 0; }
  .feats-view { -webkit-mask-image: none; mask-image: none; }
  .feats-track { flex-direction: column; align-items: stretch; width: auto; gap: 72px; padding: 24px 40px 0; transform: none !important; }
  .feats figure { flex-direction: column; align-items: flex-start; gap: 28px; }
  .hero ~ .feats .tile { height: auto; width: min(100%, 440px); }
  .feats figure:nth-child(even) .tile { align-self: flex-end; }
  .feats figcaption { width: auto; }
}
@media (max-width: 640px) {
  .hero + .facts::before { height: 140px; }
  .facts ul { padding-top: 32px; gap: 8px; }
  .facts li { font-size: 14px; padding: 8px 14px 8px 12px; }
  main > .block > .wrap > h2 + :not(.lead) { margin-top: 44px; }
  .hero ~ .band { border-radius: 32px; padding-bottom: 96px; }
  .hero ~ .band + * { padding-top: 104px; }
  .hero ~ .block:has(+ .band) { padding-bottom: 96px; }
  .lines { margin-top: 48px; gap: 40px; }
  .lines li { grid-template-columns: 40px minmax(0, 1fr); column-gap: 16px; align-items: start; }
  .lines.pics li { grid-template-columns: 64px minmax(0, 1fr); column-gap: 20px; }
  .lines.pics .n { display: none; }
  .lines .pic i { width: 64px; }
  .lines .n { font-size: 16px; }
  .lines .n .ph { font-size: 30px; }
  .lines li > div > p { font-size: 16px; }
  .feats-track { padding: 16px 20px 0; gap: 56px; }
  .hero ~ .feats .tile { border-radius: 22px; }
  .qa .q { grid-template-columns: 30px 1fr 20px; gap: 10px; padding: 18px 0; font-size: 21px; }


}
@media (prefers-reduced-motion: reduce) {
  .ticker { animation: none; width: auto; justify-content: center; }
  .facts .ticker ul { flex-wrap: wrap; justify-content: center; }
  .facts .ticker ul + ul { display: none; }
  .ticker-view { -webkit-mask-image: none; mask-image: none; }
  .qa .card, .qa .a { transition: none; }
  .lines .pic i { rotate: var(--r); scale: 1; opacity: 1; transition: none; }
}

/* ---------- Feature pages in the home page's language (2026-11-01): big type on the page, turned
   photo cards with a soft lift, phones floating on a soft glow of the section's colour instead of
   in coloured boxes, sections taking turns on the page colour and on a band, no lines. */
.f-hero { padding: 64px 0 40px; }
.f-hero h1 { font-size: clamp(46px, 5.8vw, 84px); line-height: 0.97; letter-spacing: -0.045em; text-wrap: balance; }
.f-hero .ctas a.more { margin-top: 0; }
/* the points beside the phones as the home page's lines: each its own row, the icon in front, the
   bold line in big display type, its sentence under it */
.deep .copy ul { margin-top: 44px; gap: 28px; max-width: 520px; }
.deep .copy li { grid-template-columns: 44px minmax(0, 1fr); gap: 0; padding: 0; font-size: 16.5px; line-height: 1.5; }
.deep .copy li b { font-family: Riyal, Urbanist, Geist, Almarai, sans-serif; font-weight: 800; font-size: clamp(22px, 2vw, 28px); line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 6px; }
.deep .copy li .ph { font-size: 28px; margin-top: 0; }
.deep .copy p { font-size: 18px; }
/* the phones turned a little, like the page's photo cards */
.stagec .pair img.a { rotate: -5deg; } .stagec .pair img.b { rotate: 5deg; }
.deep .stagec .phone1 { rotate: -3deg; }
/* three ways in, like the home page's stories: three turned phones side by side, the middle one a
   little lower, each with its name in big type, centred, and its points under it */
.trio { gap: 44px; margin-top: 72px; }
.trio figure:nth-child(2) { margin-top: 36px; }
.trio figure:nth-child(1) .phone1 { rotate: -4deg; } .trio figure:nth-child(2) .phone1 { rotate: 2deg; } .trio figure:nth-child(3) .phone1 { rotate: 5deg; }
.trio figcaption { text-align: center; }
.trio figcaption h3 { margin-top: 28px; font-size: clamp(30px, 2.8vw, 40px); }
.trio figcaption p { margin-inline: auto; }
.trio ul { max-width: 320px; margin-inline: auto; text-align: start; gap: 14px; }
.trio li { grid-template-columns: 32px 1fr; padding: 0; font-size: 15px; }
.trio li b { font-family: Riyal, Urbanist, Geist, Almarai, sans-serif; font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }
@media (max-width: 900px) { .trio figure:nth-child(2) { margin-top: 0; } }
.f-hero .tile, .tile.moment, .limits .tile { border-radius: 28px; box-shadow: var(--lift); }
.f-hero .tile::after, .tile.moment::after, .limits .tile::after { content: ""; position: absolute; inset: 0; z-index: 6; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--hair); pointer-events: none; }
.f-hero .tile { rotate: -2deg; }
.tile.moment { rotate: -1deg; }
.limits { gap: 32px; }
.limits .tile:nth-child(1) { rotate: -3deg; } .limits .tile:nth-child(2) { rotate: 1.5deg; translate: 0 24px; } .limits .tile:nth-child(3) { rotate: 3deg; }
main:has(> .f-hero) > section.block { padding-bottom: 150px; }
main:has(> .f-hero) > section.block:nth-of-type(odd) { background: var(--surface); border-radius: 56px; }
.stagec { background: radial-gradient(closest-side, color-mix(in srgb, var(--c, var(--peach)) 34%, transparent), transparent); overflow: visible; }
.deep { gap: 80px; margin-top: 72px; }
.deep .copy h3, .trio figcaption h3, .scrollsec .track .item h3 { font-family: Riyal, Urbanist, Geist, Almarai, sans-serif; font-weight: 800; letter-spacing: -0.04em; line-height: 1.04; text-wrap: balance; }
.deep .copy h3 { font-size: clamp(32px, 3.6vw, 50px); }
.scrollsec .track .item h3 { font-size: clamp(30px, 3.2vw, 46px); }
.trio figcaption h3 { font-size: clamp(28px, 2.6vw, 36px); }
.deep .copy li .ph, .trio li .ph { color: var(--ink-3); }
@media (max-width: 640px) {
  main:has(> .f-hero) > section.block { padding-bottom: 96px; }
  main:has(> .f-hero) > section.block:nth-of-type(odd) { border-radius: 32px; }
  .limits .tile:nth-child(2) { translate: none; }
}

/* ---------- The privacy policy in the same language (2026-11-01): the title at the hero's weight, the
   summary as numbered lines in large type (no box), headings in the display face, and the contents
   marking where you are by weight alone (no bar). */
.legal-head { padding-top: 120px; }
.legal-head h1 { font-size: clamp(48px, 6.6vw, 96px); line-height: 0.96; letter-spacing: -0.045em; }
.legal-body .summary { padding: 0; border-radius: 0; background: none; counter-reset: sum; }
.legal-body .summary h2 { margin-top: 0; }
.legal-body .summary ul { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 22px; }
.legal-body .summary li { counter-increment: sum; display: grid; grid-template-columns: 44px minmax(0, 1fr); margin: 0; font-size: clamp(19px, 1.7vw, 23px); line-height: 1.4; letter-spacing: -0.012em; color: var(--ink); }
.legal-body .summary li::before { content: counter(sum, decimal-leading-zero); padding-top: 0.2em; font-family: Riyal, Urbanist, Geist, Almarai, sans-serif; font-weight: 800; font-size: 15px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.legal-body h2 { font-family: Riyal, Urbanist, Geist, Almarai, sans-serif; font-weight: 800; font-size: clamp(28px, 2.8vw, 40px); line-height: 1.08; letter-spacing: -0.04em; margin-top: 96px; }
.legal-body h3 { font-family: Riyal, Urbanist, Geist, Almarai, sans-serif; font-weight: 800; letter-spacing: -0.02em; }
.legal aside a::after { display: none; }
@media (max-width: 960px) { .legal aside { padding: 0; border-radius: 0; background: none; } }

/* Arabic: its letters rise and fall further than Latin's, so the big headings get room between lines
   (the tight English leading made them overlap) */
html[lang="ar"] :is(h1, h2, .h1) { line-height: 1.3 !important; letter-spacing: 0 !important; }
html[lang="ar"] :is(h3, .qa .q, .facts .ticker li, .deep .copy li b, .trio li b) { line-height: 1.4 !important; letter-spacing: 0 !important; }

/* ---------- Home's budget bars lifting off the phone (BudgetBars) ----------
   One wide photo card in the page's shape (the café photo, a hand holding Bricks on Home), with
   the budgets rising out of the phone as small glass bars, the same glass as the cards on the
   other photos (.fcard), and what the month spent and what is left per day laid on the table.
   It fits on one screen with its heading. The bars rise and fill as they come into view. */
/* this section stands in front of the next, so the card's shadow and turned corner fall over it
   instead of being cut by its background */
.hero ~ #glance { z-index: 2; }
.glance.tile { max-width: 1080px; aspect-ratio: 2 / 1; margin: 44px auto 16px; border-radius: 30px; rotate: -1deg; box-shadow: var(--lift); --fy: 50%; transition: rotate 0.8s var(--settle), scale 0.8s var(--settle); }
/* under the pointer it straightens and comes up a little, like every photo card on the page */
@media (hover: hover) { .glance.tile:hover { rotate: 0deg; scale: 1.02; } }
.glance.tile::after { content: ""; position: absolute; inset: 0; z-index: 6; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--hair); pointer-events: none; }
.glance-bars { position: absolute; z-index: 2; left: 49%; bottom: 9%; display: flex; align-items: flex-end; gap: clamp(6px, 0.9vw, 12px); height: 62%; }
.bcol { --fillc: var(--c); --face: color-mix(in srgb, var(--card) 70%, transparent); --edge: rgba(14, 14, 16, 0.06);
  position: relative; width: clamp(52px, 7.2vw, 90px); height: var(--h); border-radius: clamp(16px, 2vw, 26px); overflow: hidden; rotate: var(--r);
  display: flex; flex-direction: column; align-items: center; padding: clamp(10px, 1.4vw, 16px) 4px clamp(10px, 1.2vw, 14px); background: var(--face);
  -webkit-backdrop-filter: blur(20px) saturate(1.5); backdrop-filter: blur(20px) saturate(1.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 0 0 1px var(--edge), 0 1px 1px rgba(30, 22, 12, 0.05), 0 8px 18px -8px rgba(30, 22, 12, 0.25), 0 30px 60px -28px rgba(30, 22, 12, 0.45);
  transition: translate 1.1s cubic-bezier(0.16, 1, 0.3, 1) calc(var(--i) * 80ms), opacity 0.6s calc(var(--i) * 80ms); }
.bcol .fill { position: absolute; inset: auto 0 0; height: var(--p); background: linear-gradient(0deg, var(--fillc) 0%, var(--fillc) 68%, transparent 100%);
  transition: height 1.5s cubic-bezier(0.16, 1, 0.3, 1) calc(0.35s + var(--i) * 90ms); }
.glance:not(.in) .bcol { translate: 0 50px; opacity: 0; }
.glance:not(.in) .bcol .fill { height: 0; }
.bcol .ph { position: relative; font-size: clamp(14px, 1.7vw, 22px); color: var(--ink); }
.bcol .amt { position: relative; margin-top: auto; font: 800 clamp(11px, 1.6vw, 20px)/1 Riyal, Urbanist, Geist, Almarai, sans-serif; letter-spacing: -0.02em; color: #141416; white-space: nowrap; }
.bcol .amt small { font-size: 0.66em; margin-inline-end: 0.08em; }
.bcol .pct { position: relative; margin-top: 4px; font-size: clamp(9px, 1vw, 12px); color: rgba(20, 20, 22, 0.6); font-variant-numeric: tabular-nums; }
/* the two figures: the same glass as the cards on the other photos, their own class so the rules
   that lay those cards across a photo's foot on small screens leave them be */
.glance .gcard { --face: color-mix(in srgb, var(--card) 86%, transparent); --edge: rgba(14, 14, 16, 0.06); color: var(--ink); background: var(--face);
  -webkit-backdrop-filter: blur(20px) saturate(1.5); backdrop-filter: blur(20px) saturate(1.5); rotate: var(--r);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 0 0 1px var(--edge), 0 1px 1px rgba(30, 22, 12, 0.05), 0 8px 18px -8px rgba(30, 22, 12, 0.22), 0 30px 60px -28px rgba(30, 22, 12, 0.42); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .glance .gcard { --edge: rgba(255, 255, 255, 0.09); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 0 0 1px var(--edge), 0 30px 60px -24px rgba(0, 0, 0, 0.8); } }
:root[data-theme="dark"] .glance .gcard { --edge: rgba(255, 255, 255, 0.09); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 0 0 1px var(--edge), 0 30px 60px -24px rgba(0, 0, 0, 0.8); }
.glance .gcard { position: absolute; z-index: 3; display: grid; gap: 3px; padding: clamp(10px, 1.3vw, 14px) clamp(12px, 1.6vw, 18px) clamp(12px, 1.4vw, 16px); border-radius: clamp(14px, 1.8vw, 20px); }
.glance .gcard small { font-size: clamp(10.5px, 1.1vw, 12.5px); color: var(--ink-2); }
.glance .gcard b { font: 800 clamp(18px, 2.4vw, 30px)/1 Riyal, Urbanist, Geist, Almarai, sans-serif; letter-spacing: -0.03em; }
.glance .gcard b.good { color: #3E9B57; }
.glance .gcard.spent { right: 4%; top: 8%; --r: 2deg; }
.glance .gcard.day { left: 4%; bottom: 10%; --r: -2deg; }
/* the photo is not mirrored in Arabic, so the bars and figures keep to the wall beside him; only
   the bars' order runs right to left */
[dir="rtl"] .glance-bars { flex-direction: row-reverse; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .bcol { --fillc: color-mix(in srgb, var(--c) 62%, #1A1A1C); --face: color-mix(in srgb, var(--card) 70%, transparent); --edge: rgba(255, 255, 255, 0.09); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 0 0 1px var(--edge), 0 30px 60px -24px rgba(0, 0, 0, 0.8); } :root:not([data-theme="light"]) .bcol :is(.amt, .ph) { color: #F3F3F0; } :root:not([data-theme="light"]) .bcol .pct { color: rgba(243, 243, 240, 0.6); } :root:not([data-theme="light"]) .glance .gcard b.good { color: #7BC98E; } }
:root[data-theme="dark"] .bcol { --fillc: color-mix(in srgb, var(--c) 62%, #1A1A1C); --face: color-mix(in srgb, var(--card) 70%, transparent); --edge: rgba(255, 255, 255, 0.09); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 0 0 1px var(--edge), 0 30px 60px -24px rgba(0, 0, 0, 0.8); }
:root[data-theme="dark"] .bcol :is(.amt, .ph) { color: #F3F3F0; }
:root[data-theme="dark"] .bcol .pct { color: rgba(243, 243, 240, 0.6); }
:root[data-theme="dark"] .glance .gcard b.good { color: #7BC98E; }
html[lang="ar"] :is(.bcol .amt, .glance .gcard b) { font-family: Riyal, Almarai, sans-serif; letter-spacing: 0; }
/* a phone: the photo stands 4:5, the bars rise on the wall side, what the month spent above them */
@media (max-width: 760px) {
  .glance.tile { aspect-ratio: 4 / 5; margin-top: 28px; border-radius: 24px; --fx: 28%; }
  .glance-bars { left: auto; right: 4%; bottom: 5%; height: 48%; gap: 4px; }
  .bcol { width: 13.5vw; max-width: 60px; border-radius: 14px; padding: 10px 2px 9px; }
  .glance .gcard.spent { right: 4%; left: auto; top: 4%; }
  .glance .gcard.day { display: none; }
}
@media (prefers-reduced-motion: reduce) { .bcol, .bcol .fill { transition: none; } .glance:not(.in) .bcol { translate: none; opacity: 1; } .glance:not(.in) .bcol .fill { height: var(--p); } }

/* Pictures never show half loaded (owner, 2026-11-07): each stays hidden until it has fully
   loaded, then fades in (site.js marks it .ok), over its own tiny blurred copy (--q, from
   scripts/lqip.mjs) so a slow connection sees its colours at once. Phone renders have no copy. */
.qph { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: var(--q) var(--fx, 50%) var(--fy, 50%) / cover no-repeat; }
html.live img.q-img:not(.ok) { opacity: 0; }
img.q-img.ok { animation: pic-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) both; }
/* (each card's own rule paints --q: .orbit-field i b, .facts .ticker .pic b, .lines .pic b) */
.qb::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--u) center / cover no-repeat; }
html.live .qb:not(.ok)::after { opacity: 0; }
.qb.ok::after { animation: pic-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes pic-in { from { opacity: 0; } }
img.q-img.quiet { animation: none; }
@media (prefers-reduced-motion: reduce) { img.q-img.ok, .qb.ok::after { animation: none; } }
