/* ==========================================================================
   Appnatic site styles: shared components and the Studio A homepage.
   Loaded AFTER tokens.css, which holds every colour, font, radius and shadow for
   light and dark. This file never defines theme colours of its own.

   Shared components (every team uses these names; see build/DESIGN_SYSTEM.md):
   .wrap .section .eyebrow h1-h3 .hl .lead .muted .card .btn(--primary|--ghost)
   .chip .stat-strip .phone .install-cta .faq .table .tile-grid .badges
   Logical properties only (RTL-safe).
   ========================================================================== */

/* latin-ext halves of the two Latin families (Turkish ğ ş İ, etc.). The main faces are in
   tokens.css; a later @font-face with a unicode-range is tried first for its characters. */
@font-face { font-family: "Plus Jakarta Sans"; src: url("../fonts/plus-jakarta-sans-var-ext.woff2") format("woff2"); font-weight: 400 800; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-var-ext.woff2") format("woff2"); font-weight: 400 700; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  /* Component constants (not theme colours): a phone is dark in both themes. */
  --bezel: #050D0B;
  --screen-bg: #0D211C;
  --header-h: 72px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --glow: rgba(18, 161, 80, .20);

  /* Old token names, kept as aliases so module CSS written before Direction A keeps working
     while the teams move to the new names. No mono font: --mono is Inter with tabular figures. */
  --ink: var(--text);
  --ink-2: var(--text-2);
  --muted: var(--text-3);
  --faint: var(--text-3);
  --paper: var(--surface);
  --mist: var(--surface-2);
  --mist-2: var(--surface-2);
  --signal: var(--green-ink);
  --signal-ink: var(--green-ink);
  --signal-soft: var(--green-wash);
  --sans: var(--body);
  --mono: var(--body);
  --maxw: var(--wrap);
  --radius-lg: var(--radius);
  --app: var(--green-ink);
  --app-soft: var(--green-wash);
  --app-line: var(--green-line);
}
@supports (color: color-mix(in srgb, red 10%, transparent)) {
  :root { --glow: color-mix(in srgb, var(--green) 16%, transparent); }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--text-2);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
body:lang(ar) { font-family: "Inter", var(--arabic); font-size: 18px; }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
b, strong { font-weight: 600; color: var(--text); }
::selection { background: var(--green); color: #fff; }
:focus-visible { outline: 2px solid var(--green-ink); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; inset-block-start: 10px; inset-inline-start: 10px; z-index: 200; background: var(--btn-bg); color: var(--btn-fg); padding: 10px 16px; border-radius: 10px; font-weight: 600; transform: translateY(-160%); transition: transform .2s; }
.skip:focus { transform: none; }

/* icons: <svg class="ico"><use href="#i-clock"/></svg> (sprite in the layout; icon() in PHP) */
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ico--fill { fill: currentColor; stroke: none; }
.i-arrow { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
[dir="rtl"] .i-arrow, [dir="rtl"] .ico--flip { transform: scaleX(-1); }

/* ---------- Type ---------- */
h1, h2, h3, h4, .h1, .h2, .h3, .h4 { font-family: var(--head); color: var(--text); font-weight: 700; text-wrap: balance; }
h1, .h1 { font-size: 64px; line-height: 1.07; letter-spacing: -.02em; }
h2, .h2 { font-size: 42px; line-height: 1.12; letter-spacing: -.015em; }
h3, .h3 { font-size: 22px; line-height: 1.3; letter-spacing: -.005em; }
h4, .h4 { font-size: 17px; line-height: 1.35; }
:lang(ar) :is(h1, h2, h3, h4, .h1, .h2, .h3, .h4) { font-family: "Plus Jakarta Sans", var(--arabic); letter-spacing: 0; line-height: 1.35; }
.hl { color: var(--green-ink); }
.lead, .lede { font-size: 19px; line-height: 1.6; color: var(--text-2); max-width: 64ch; text-wrap: pretty; }
.muted { color: var(--text-3); font-size: 14px; line-height: 1.5; }
.small { font-size: 14px; }
.num, .mono, .dg { font-variant-numeric: tabular-nums; font-family: inherit; }
.stamp { font-size: 13px; line-height: 1.5; color: var(--text-3); font-variant-numeric: tabular-nums; }
.stamp--block { margin-block-start: 18px; }
.kicker { font-size: 13px; font-weight: 600; color: var(--green-ink); }
.prose { color: var(--text-2); }
.prose > * + * { margin-block-start: 1em; }
.prose--lg { font-size: 19px; line-height: 1.65; }
.prose a:not(.btn):not(.link) { color: var(--green-ink); text-decoration: underline; text-decoration-color: var(--green-line); text-underline-offset: 3px; }
.prose a:not(.btn):not(.link):hover { text-decoration-color: currentColor; }
.prose ul { list-style: disc; padding-inline-start: 1.25em; }
.prose li + li { margin-block-start: .45em; }
.prose li::marker { color: var(--green-ink); }
.link { display: inline-flex; align-items: center; gap: 6px; color: var(--green-ink); font-weight: 600; font-size: 15px; }
.link .ico, .link .i-arrow { width: 16px; height: 16px; stroke-width: 2.2; }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }
.link:hover .i-arrow { transform: translateX(3px); }
[dir="rtl"] .link:hover .i-arrow { transform: scaleX(-1) translateX(3px); }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: 96px; }
.section + .section { padding-block-start: 0; }
.section--tight { padding-block: 56px; }
.section.section--flush { padding-block-start: 0; }
.section--band { background: var(--bg-deep); border-block: 1px solid var(--line); }
.section--band + .section, .section + .section--band { padding-block-start: 96px; }

/* section head: eyebrow + h2 (+ text) on the start side, a link or badges on the end side */
.s-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 32px; margin-block-end: 44px; }
.s-head > div { max-width: 780px; }
.s-head h2 { margin-block-start: 16px; }
.s-head p:not(.eyebrow) { margin-block-start: 14px; max-width: 620px; }
.s-head > .link { flex: none; margin-block-end: 6px; }

/* inner-page top: breadcrumbs, H1, lead */
.page-head { padding-block: 40px 48px; }
.page-head h1, .page-head .h1 { font-size: 52px; margin-block: 18px 16px; max-width: 900px; }
.page-head .stamp { margin-block-start: 14px; }
.page-head__narrow { max-width: none; }

/* ---------- Eyebrow, chip ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; width: fit-content;
  padding: 6px 13px; border-radius: var(--radius-pill);
  background: var(--green-wash); border: 1px solid var(--green-line);
  color: var(--green-ink); font: 600 13px/1.2 var(--body);
}
.eyebrow .ico { width: 15px; height: 15px; }
.eyebrow .star { width: 14px; height: 14px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: var(--radius-pill);
  background: var(--surface-2); border: 1px solid var(--line);
  color: var(--text-2); font: 500 13px/1.3 var(--body);
}
.chip .ico { width: 14px; height: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips > li { padding: 5px 12px; border-radius: var(--radius-pill); background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2); font-size: 14px; }

/* ---------- The one card ---------- */
.card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card--flush { padding: 0; }
a.card, .card--link { transition: border-color .2s; }
a.card:hover, .card--link:hover { border-color: var(--green-line); }

/* ---------- The one button ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: var(--radius-pill);
  border: 1px solid transparent; background: var(--btn-bg); color: var(--btn-fg);
  font: 700 15px/1.1 var(--head); letter-spacing: .005em; white-space: nowrap; text-decoration: none;
  transition: background-color .2s, border-color .2s, color .2s;
}
:lang(ar) .btn { font-family: "Plus Jakarta Sans", var(--arabic); letter-spacing: 0; }
.btn:hover { background: var(--btn-bg-hover); }
.btn .ico { width: 18px; height: 18px; stroke-width: 2.2; }
.btn--primary, .btn--signal, .btn--app { background: var(--btn-bg); color: var(--btn-fg); }
.btn--primary:hover, .btn--signal:hover, .btn--app:hover { background: var(--btn-bg-hover); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn--ghost:hover { background: transparent; border-color: var(--green-line); color: var(--green-ink); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn--lg { min-height: 52px; padding: 0 26px; font-size: 16px; }
.btn:hover .i-arrow { transform: translateX(3px); }
[dir="rtl"] .btn:hover .i-arrow { transform: scaleX(-1) translateX(3px); }

/* ---------- Ratings and stars ---------- */
.stars { position: relative; display: inline-flex; vertical-align: middle; line-height: 0; }
.stars svg { width: 15px; height: 15px; flex: none; }
.stars__bg { display: inline-flex; fill: var(--line-2); }
.stars__fg { position: absolute; inset-block-start: 0; inset-inline-start: 0; display: inline-flex; overflow: hidden; fill: var(--star); white-space: nowrap; }
.stars--sm svg { width: 14px; height: 14px; }
.star { width: 15px; height: 15px; fill: var(--star); stroke: none; flex: none; }
.rating { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 14px; color: var(--text-3); }
.rating b { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }
.rating .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .6; }
/* store facts line from store_facts() */
.facts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font-size: 14px; color: var(--text-3); }
.fact { display: inline-flex; align-items: center; gap: 6px; }
.fact b { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }
.facts .stamp { flex-basis: 100%; }

/* ---------- Store badges ---------- */
.badges, .store-badges { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.store-badge { display: inline-block; border-radius: 9px; line-height: 0; transition: opacity .2s, box-shadow .2s; }
.store-badge:hover { opacity: .88; }
.store-badge img { height: 48px; width: auto; }
.store-badge--lg img { height: 52px; }
.badges--sm .store-badge img { height: 40px; }
.store-badge--soon {
  position: relative;
  min-block-size: 44px;
  max-inline-size: min(100%, 164px);
  padding: 7px 12px;
  border: 1px solid var(--line-2);
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  font: 650 13px/1.2 var(--body);
  text-wrap: balance;
}
.store-badge--lg.store-badge--soon { min-block-size: 52px; }
.soon-pop {
  position: absolute; inset-inline-start: 50%; inset-block-start: calc(100% + 8px); transform: translateX(-50%); z-index: 30;
  inline-size: max-content; max-inline-size: min(190px, calc(100vw - 32px)); white-space: normal;
  background: var(--text); color: var(--bg); font: 500 13px/1.3 var(--body); padding: 7px 11px; border-radius: 8px; pointer-events: none; box-shadow: var(--shadow-sm);
}
[dir="rtl"] .soon-pop { transform: translateX(50%); }
@media (prefers-reduced-motion: no-preference) { .soon-pop { animation: soon-in .16s ease-out; } }
@keyframes soon-in { from { opacity: 0; } to { opacity: 1; } }
html.is-ios .store-badge--ios { order: -1; }
/* black badges get a hairline ring on dark backgrounds */
:root[data-theme="dark"] .store-badge { box-shadow: 0 0 0 1px var(--line-2); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .store-badge { box-shadow: 0 0 0 1px var(--line-2); } }

/* ---------- App icon ---------- */
.app-icon { border-radius: 22%; flex: none; background: var(--surface-2); }
.app-icon--lg { width: 72px; height: 72px; }
.icon-stack { display: flex; flex: none; }
.icon-stack img { width: 36px; height: 36px; border-radius: 10px; box-shadow: 0 0 0 2px var(--bg); }
.icon-stack img + img { margin-inline-start: -8px; }

/* ---------- Phone: a real store screenshot cropped to its screen ----------
   <div class="phone" style="--x:80;--y:250;--w:440"><div class="screen"><img …></div>[<div class="pop" style="--l…"><img …></div>]</div>
   --x/--y/--w: the app screen inside the 600 px wide store image (source pixels), so the store caption is cut off.
   .pop: the app's own floating card from the same screenshot, allowed past the bezel. Use phone() in PHP. */
.phone {
  --pad: 9px; --x: 0; --y: 0; --w: 600;
  position: relative; width: 300px; max-width: 100%; padding: var(--pad); direction: ltr;
  border-radius: 46px; background: var(--bezel);
  box-shadow: 0 0 0 1px var(--line-2), var(--shadow);
}
.screen { position: relative; overflow: hidden; aspect-ratio: var(--screen-ratio, 440 / 936); border-radius: 37px; background: var(--screen-bg); }
.screen img, .pop img {
  position: absolute; top: 0; max-width: none; height: auto;
  width: calc(600 / var(--w) * 100%);
  left: calc(var(--x) / var(--w) * -100%);
  margin-top: calc(var(--y) / var(--w) * -100%);
}
.pop { position: absolute; left: var(--pad); top: var(--pad); width: calc(100% - 2 * var(--pad)); height: 0; pointer-events: none; z-index: 2; filter: drop-shadow(0 14px 22px rgba(0, 0, 0, .35)); }
.pop img { clip-path: inset(calc(var(--t) / var(--H) * 100%) calc((600 - var(--r)) / 6 * 1%) calc((var(--H) - var(--b)) / var(--H) * 100%) calc(var(--l) / 6 * 1%) round var(--rad, 12px)); }
.pop--ellipse img {
  clip-path: ellipse(
    calc((var(--r) - var(--l)) / 12 * 1%) calc((var(--b) - var(--t)) / var(--H) * 50%)
    at calc((var(--l) + var(--r)) / 12 * 1%) calc((var(--t) + var(--b)) / var(--H) * 50%)
  );
}
.phone--sm { --pad: 7px; width: 200px; border-radius: 34px; }
.phone--sm .screen { border-radius: 28px; }

/* plain store screenshot (rails, press) */
.shot { border-radius: 18px; background: var(--surface-2); box-shadow: 0 0 0 1px var(--line); }

/* ---------- Stat strip ---------- */
.stat-strip { display: flex; flex-wrap: wrap; padding-block: 34px 30px; }
.stat-strip .stat { flex: 1 1 0; min-width: 150px; text-align: center; padding-inline: 12px; }
.stat-strip .stat + .stat { border-inline-start: 1px solid var(--line); }
.stat-strip .stat > b, .stat-strip .stat > strong { display: flex; justify-content: center; align-items: center; gap: 8px; font: 700 42px/1.1 var(--head); color: var(--text); letter-spacing: -.015em; font-variant-numeric: tabular-nums; }
.stat-strip .stat .star { width: 28px; height: 28px; }
.stat-strip .stat > span { display: block; margin-block-start: 6px; font-size: 15px; color: var(--text-2); }
.stat-strip__src { flex: 1 0 100%; text-align: center; margin-block-start: 20px; font-size: 13px; color: var(--text-3); }

/* ---------- Tile grid (tools, cities) ---------- */
.tile-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tile-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tile { display: flex; flex-direction: column; gap: 14px; padding: 22px; min-height: 168px; }
.tile__ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--green-wash); color: var(--green-ink); flex: none; }
.tile b, .tile strong { font: 700 17px/1.3 var(--head); color: var(--text); }
.tile p { font-size: 14px; line-height: 1.5; margin-block-start: -8px; color: var(--text-2); }
.tile--row { flex-direction: row; align-items: center; gap: 14px; padding: 14px 16px; min-height: 0; }
.tile--row > div { min-width: 0; }
.tile--row b { display: block; font: 600 16px/1.25 var(--head); }
.tile--row .c { font-size: 13px; color: var(--text-3); }
.tile--row > .ico { margin-inline-start: auto; color: var(--text-3); width: 16px; height: 16px; }
:lang(ar) :is(.tile b, .tile strong) { font-family: "Plus Jakarta Sans", var(--arabic); }
.cc { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--green-line); color: var(--green-ink); font: 700 13px/1 var(--head); transform: rotate(45deg) scale(.82); }
.cc > span { transform: rotate(-45deg); }

/* ---------- Data table ---------- */
.table-wrap, .scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; }
.table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 16px; }
.table th, .table td { padding: 14px 16px; text-align: end; vertical-align: middle; border-block-end: 1px solid var(--line); white-space: nowrap; }
.table th:first-child, .table td:first-child, .table .txt { text-align: start; }
.table thead th { font: 600 13px/1.3 var(--body); color: var(--text-3); background: var(--surface-2); border-block-end: 0; }
.table thead th:first-child { border-start-start-radius: 12px; border-end-start-radius: 12px; }
.table thead th:last-child { border-start-end-radius: 12px; border-end-end-radius: 12px; }
.table td, .table tbody th { color: var(--text); }
.table tbody th { font-weight: 600; }
.table tbody th a:hover, .table td a:hover { color: var(--green-ink); }
.table tbody tr:last-child > * { border-block-end: 0; }
.table tr.today > *, .table tr.is-today > * { background: var(--green-wash); }
.table tr.today > :first-child, .table tr.is-today > :first-child { border-start-start-radius: 12px; border-end-start-radius: 12px; box-shadow: inset 3px 0 0 var(--green-ink); }
[dir="rtl"] .table tr.today > :first-child, [dir="rtl"] .table tr.is-today > :first-child { box-shadow: inset -3px 0 0 var(--green-ink); }
.table tr.today > :last-child, .table tr.is-today > :last-child { border-start-end-radius: 12px; border-end-end-radius: 12px; }
.table .num { text-align: end; }
.table .sub td { color: var(--text-2); }
.table caption { caption-side: bottom; }

/* ---------- FAQ: <div class="faq"><details><summary>Q</summary><p>A</p></details>… ---------- */
.faq details { border-block-end: 1px solid var(--line); }
.faq details:first-child { border-block-start: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-block: 20px; font: 600 18px/1.4 var(--head); color: var(--text); }
:lang(ar) .faq summary { font-family: "Plus Jakarta Sans", var(--arabic); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 20px; height: 20px; background: var(--green-ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .2s;
}
.faq details[open] > summary::after { transform: rotate(45deg); }
.faq summary > i, .faq summary > .ico { display: none; }
.faq details > :not(summary) { padding-block-end: 22px; padding-inline-end: 40px; font-size: 16px; color: var(--text-2); max-width: 72ch; }
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
.faq-grid h2 { margin-block: 16px; }

/* ---------- Breadcrumbs ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--text-3); }
.crumbs a:hover { color: var(--text); }
.crumbs span[aria-hidden] { opacity: .5; }
.crumbs [aria-current] { color: var(--text-2); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-head { position: sticky; inset-block-start: 0; z-index: 60; background: var(--header-bg); border-block-end: 1px solid var(--line); }
@supports (backdrop-filter: blur(8px)) { .site-head { backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); } }
.site-head > .wrap { min-height: var(--header-h); display: flex; align-items: center; gap: clamp(14px, 1.45vw, 22px); }
/* logo: the "a" app-icon tile + wordmark */
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; color: var(--text); direction: ltr; }
.brand__word { font: 800 25px/1 var(--head); letter-spacing: -.03em; color: var(--text); }
/* Owner pick 29 Nov: the "a" as an app-icon tile (white on green, like the favicon), then the name. Same in both themes. */
.brand__mark { box-sizing: border-box; width: 34px; height: 34px; padding: 7px; flex: none; border-radius: 9px; background: var(--green); color: #FFFFFF; }
.brand--lg { gap: 14px; }
.brand--lg .brand__word { font-size: 38px; }
.brand--lg .brand__mark { width: 48px; height: 48px; padding: 10px; border-radius: 12px; }
.nav { display: flex; flex-wrap: wrap; min-inline-size: 0; align-items: center; align-content: center; column-gap: clamp(18px, 1.75vw, 24px); margin-inline-start: 8px; }
.nav a { font-size: 15px; font-weight: 500; color: var(--text-2); white-space: nowrap; padding-block: 6px; transition: color .2s; }
.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] { color: var(--text); box-shadow: inset 0 -2px 0 var(--green-ink); }
.nav-tools { position: relative; }
.nav-tools > summary { display: flex; align-items: center; gap: 6px; list-style: none; cursor: pointer; color: var(--text-2); font-size: 15px; font-weight: 500; white-space: nowrap; }
.nav-tools > summary::-webkit-details-marker { display: none; }
.nav-tools > summary:hover, .nav-tools[open] > summary { color: var(--text); }
.nav-tools__chevron { width: 14px; height: 14px; flex: none; }
.nav-tools[open] .nav-tools__chevron { transform: rotate(180deg); }
.nav .nav-tools__list { position: absolute; inset-block-start: calc(100% + 10px); inset-inline-start: 0; min-inline-size: 196px; margin: 0; padding: 6px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: var(--shadow); }
.nav .nav-tools__list a { display: block; padding: 9px 12px; border-radius: 8px; }
.nav .nav-tools__list a:hover { background: var(--surface-2); }
.head-end { margin-inline-start: auto; display: flex; flex: none; align-items: center; gap: clamp(8px, .85vw, 14px); }
.head-contact { border-radius: 8px; }

/* language menu */
.langs { position: relative; }
.langs summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 6px; font-size: 15px; font-weight: 500; color: var(--text-2); cursor: pointer; border-radius: 10px; }
.langs summary:hover { color: var(--text); }
.langs summary::-webkit-details-marker { display: none; }
.langs summary > span { white-space: nowrap; }
.langs summary .ico { width: 18px; height: 18px; flex: none; }
.langs summary .chev { width: 14px; height: 14px; transition: transform .2s; }
.langs[open] summary .chev { transform: rotate(180deg); }
.langs__list { position: absolute; inset-inline-end: 0; inset-block-start: calc(100% + 8px); min-width: 200px; max-block-size: min(65vh, 32rem); overflow-y: auto; padding: 6px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: var(--shadow); z-index: 70; }
.langs__list a { display: block; padding: 9px 12px; border-radius: 9px; font-size: 15px; color: var(--text-2); }
.langs__list a:hover { background: var(--surface-2); color: var(--text); }
.langs__list a[aria-current] { color: var(--green-ink); font-weight: 600; background: var(--green-wash); }

/* theme toggle: shows the moon in light (go dark) and the sun in dark (go light) */
.theme-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 12px; color: var(--text-2); border: 1px solid transparent; transition: color .2s, border-color .2s; }
.theme-btn:hover { color: var(--text); border-color: var(--line-2); }
.theme-btn .ico { width: 20px; height: 20px; }
.theme-btn .i-sun { display: none; }
:root[data-theme="dark"] .theme-btn .i-sun { display: block; }
:root[data-theme="dark"] .theme-btn .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-btn .i-moon { display: none; }
}
html.no-js .theme-btn { display: none; }

/* mobile menu (<details>, works without JS) */
.mnav { display: none; }
.mnav > summary { list-style: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line-2); color: var(--text); cursor: pointer; }
.mnav > summary::-webkit-details-marker { display: none; }
.mnav > summary .i-close { display: none; }
.mnav[open] > summary .i-close { display: block; }
.mnav[open] > summary .i-menu { display: none; }
.mnav__panel {
  position: absolute; inset-inline: 0; inset-block-start: 100%;
  background: var(--bg); border-block-end: 1px solid var(--line); box-shadow: var(--shadow);
  padding: 8px var(--gutter) 24px; max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
}
.mnav__links { display: grid; }
.mnav__links a { display: flex; align-items: center; gap: 12px; padding: 14px 2px; font: 600 18px/1.3 var(--head); color: var(--text); border-block-end: 1px solid var(--line); }
:lang(ar) .mnav__links a { font-family: "Plus Jakarta Sans", var(--arabic); }
.mnav__links a .ico { color: var(--green-ink); }
.mnav__links a[aria-current="page"] { color: var(--green-ink); }
.mnav__links .nav-tools > summary { gap: 12px; padding: 14px 2px; border-block-end: 1px solid var(--line); font: 600 18px/1.3 var(--head); color: var(--text); }
.mnav__links .nav-tools > summary .ico { color: var(--green-ink); }
.mnav__links .nav-tools__list { margin: 0; padding-inline-start: 24px; background: var(--surface); }
.mnav__links .nav-tools__list a { font-size: 16px; padding-block: 11px; }
.home-contact__card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: clamp(20px, 4vw, 38px); }
.home-contact__card h2 { font-size: clamp(26px, 3vw, 36px); }
.home-contact__card p { margin-block-start: 8px; color: var(--text-2); }
.home-contact__card .btn { max-inline-size: 100%; padding-block: 8px; white-space: normal; overflow-wrap: anywhere; text-align: start; }
.mnav__download { margin-block-start: 16px; }
.mnav__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-block-start: 18px; }
.mnav__langs { display: flex; flex-wrap: wrap; gap: 6px; }
.mnav__langs a { padding: 6px 11px; border-radius: var(--radius-pill); border: 1px solid var(--line); font-size: 14px; color: var(--text-2); }
.mnav__langs a[aria-current] { border-color: var(--green-line); color: var(--green-ink); background: var(--green-wash); }
.mnav__row .theme-btn { border-color: var(--line-2); }

@media (min-width: 1181px) {
  .site-head > .wrap { max-width: calc(var(--wrap) + 72px); padding-inline: clamp(22px, 2vw, var(--gutter)); }
}
@media (min-width: 1181px) and (max-width: 1240px) {
  .site-head > .wrap { gap: 14px; padding-inline: 18px; }
  .nav a, .nav-tools > summary { font-size: 14px; }
}
@media (max-width: 1180px) {
  .nav { display: none; }
  .mnav { display: block; }
  .site-head .langs, .site-head .head-contact, .site-head > .wrap > .head-end > .theme-btn { display: none; }
}
@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .site-head > .wrap { gap: 12px; }
  .brand__word { font-size: 22px; }
  .brand { gap: 8px; }
  .site-head .brand__mark { width: 30px; height: 30px; padding: 6px; border-radius: 8px; }
  .head-end { gap: 10px; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-foot { background: var(--bg-deep); color: var(--text-2); border-block-start: 1px solid var(--line); padding-block: 72px 36px; font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 1.3fr repeat(4, minmax(0, 1fr)) minmax(0, 1.2fr); gap: 28px; }
.foot-brand p { margin-block: 14px 20px; max-width: 280px; line-height: 1.55; }
.foot-brand .icon-stack { margin-block-end: 20px; }
.foot-brand .icon-stack img { box-shadow: 0 0 0 2px var(--bg-deep); }
.foot-h { color: var(--text); font: 700 14px/1.3 var(--head); margin-block-end: 12px; }
:lang(ar) .foot-h { font-family: "Plus Jakarta Sans", var(--arabic); }
.foot-col > .foot-h ~ .foot-h { margin-block-start: 22px; }
.foot-col a, .foot-col button { display: block; padding-block: 4px; color: var(--text-2); text-align: start; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.foot-col a:hover, .foot-col button:hover { color: var(--green-ink); }
.foot-langs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-block-start: 48px; }
.foot-langs .ico { width: 18px; height: 18px; color: var(--text-3); margin-inline-end: 4px; }
.foot-langs a { padding: 5px 11px; border-radius: var(--radius-pill); border: 1px solid var(--line-2); color: var(--text-2); font-size: 13.5px; }
.foot-langs a:hover { color: var(--text); border-color: var(--green-line); }
.foot-langs a[aria-current] { color: var(--green-ink); border-color: var(--green-line); background: var(--green-wash); }
.foot-base { margin-block-start: 28px; padding-block-start: 24px; border-block-start: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: space-between; color: var(--text-3); font-size: 13px; }
@media (max-width: 1080px) {
  .foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .site-foot { padding-block: 56px 28px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
}

/* ---------- Consent ---------- */
.consent {
  position: fixed; inset-block-end: 16px; inset-inline-start: 16px; z-index: 80; max-width: min(520px, calc(100% - 32px));
  padding: 16px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line-2); color: var(--text-2);
  box-shadow: var(--shadow); display: grid; gap: 12px; font-size: 14px; line-height: 1.5;
}
.consent[hidden], .consent [hidden] { display: none; }
.consent a { color: var(--green-ink); text-decoration: underline; text-underline-offset: 3px; }
.consent__actions { display: flex; gap: 8px; justify-content: flex-end; }
@media (max-width: 560px) {
  .consent { inset-block-end: 10px; inset-inline-start: 10px; max-width: calc(100% - 20px); padding: 12px 14px; gap: 8px; font-size: 13px; }
}

/* ==========================================================================
   Install CTA: install_cta($slug, $placement, $opts) in src/components.php.
   Used on every page type and in any column width, so it sizes itself with a container query.
   ========================================================================== */
.install-cta {
  container-type: inline-size;
  display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 14px 20px;
  margin-block: 28px; padding: 22px 24px;
  background: linear-gradient(100deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--green-line); border-radius: var(--radius);
  color: var(--text-2); font-family: var(--body); text-align: start;
}
.install-cta__icon { width: 64px; height: 64px; border-radius: 16px; }
.install-cta__body { display: grid; gap: 3px; min-width: 0; }
.install-cta__title { margin: 0; font: 700 19px/1.3 var(--head); color: var(--text); letter-spacing: -.005em; }
:lang(ar) .install-cta__title { font-family: "Plus Jakarta Sans", var(--arabic); letter-spacing: 0; }
.install-cta__text { margin: 0; font-size: 15px; line-height: 1.5; color: var(--text-2); }
.install-cta__meta { margin: 6px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: 14px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.install-cta__rating { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; color: var(--text); }
.install-cta__rating svg { width: 15px; height: 15px; fill: var(--star); }
.install-cta__src { color: var(--text-3); font-size: 13px; }
.install-cta__badges { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.install-cta__badges .store-badge img { height: 44px; width: auto; }
.install-cta--compact { grid-template-columns: 48px minmax(0, 1fr) auto; gap: 10px 16px; margin-block: 20px; padding: 14px 16px; border-radius: 16px; }
.install-cta--compact .install-cta__icon { width: 48px; height: 48px; border-radius: 12px; }
.install-cta--compact .install-cta__title { font-size: 16px; }
.install-cta--compact .install-cta__meta { margin-block-start: 2px; font-size: 13px; }
.install-cta--compact .install-cta__badges .store-badge img { height: 40px; }
@container (max-width: 640px) {
  .install-cta__badges { grid-column: 1 / -1; justify-content: flex-start; }
}
@container (max-width: 380px) {
  .install-cta__text { display: none; }
}
@supports not (container-type: inline-size) {
  @media (max-width: 640px) { .install-cta__badges { grid-column: 1 / -1; justify-content: flex-start; } }
}
@media (max-width: 480px) {
  .install-cta { grid-template-columns: 56px minmax(0, 1fr); padding: 18px; gap: 14px 16px; }
  .install-cta__icon { width: 56px; height: 56px; }
  .install-cta--compact { grid-template-columns: 44px minmax(0, 1fr); }
  .install-cta--compact .install-cta__icon { width: 44px; height: 44px; }
  .install-cta__badges { grid-column: 1 / -1; justify-content: flex-start; }
}

/* ==========================================================================
   Home
   ========================================================================== */
.studio-hero {
  padding-block: clamp(40px, 5.45vw, 74px) clamp(34px, 4.6vw, 62px);
}
.studio-hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  align-items: center;
  gap: clamp(24px, 4vw, 48px);
}
.studio-hero__copy {
  max-inline-size: 56rem;
  margin-inline: auto;
  text-align: center;
}
.studio-hero h1 {
  font: 640 clamp(40px, 6.45vw, 83px)/1.04 "Geist", var(--head);
  letter-spacing: -.066em;
  overflow-wrap: anywhere;
  text-wrap: wrap;
}
.studio-hero__line { display: block; overflow: hidden; padding-block: .12em; margin-block: -.12em; }
.studio-hero__line > span { display: block; }
.studio-hero__line--accent > span {
  color: var(--green-ink);
  font: italic 400 1.13em/1.02 "Instrument Serif", Georgia, serif;
  letter-spacing: -.035em;
}
html:is(:lang(ar), :lang(bn), :lang(hi), :lang(ja), :lang(ko), :lang(ru), :lang(th), :lang(uk), :lang(ur), :lang(zh)) .studio-hero h1 {
  font-size: clamp(34px, 4.8vw, 66px);
  line-height: 1.23;
  letter-spacing: 0;
}
html[dir="rtl"] .studio-hero h1 { font-family: var(--arabic); line-height: 1.3; }
html:is(:lang(ar), :lang(bn), :lang(hi), :lang(ja), :lang(ko), :lang(ru), :lang(th), :lang(uk), :lang(ur), :lang(zh)) .studio-hero__line--accent > span {
  font: inherit;
  letter-spacing: inherit;
}
.studio-hero .lead { margin-block-start: 23px; margin-inline: auto; max-inline-size: 56ch; font-size: clamp(16px, 1.65vw, 19px); text-wrap: balance; }
.studio-hero__actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; margin-block-start: 24px; }
.studio-hero__actions .btn {
  min-block-size: 50px;
  max-inline-size: 100%;
  padding: 11px 18px;
  border-radius: 8px;
  font-size: 16px;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
}

.studio-hero__previews {
  position: relative;
  isolation: isolate;
  justify-self: center;
  inline-size: min(100%, 524px);
  aspect-ratio: 100 / 106;
}
.studio-hero__preview {
  position: absolute;
  inline-size: 38%;
  border-radius: clamp(9px, 1.7vw, 22px);
  background: var(--surface-2);
  box-shadow: var(--shadow), 0 0 0 1px var(--line);
}
.studio-hero__poster-frame { display: block; border-radius: inherit; }
.studio-hero__poster { inline-size: 100%; block-size: auto; border-radius: inherit; }
.studio-hero__preview--left { inset-inline-start: 6.4%; inset-block-start: 18%; rotate: -7deg; }
.studio-hero__preview--center {
  inset-inline: 0;
  inset-block-start: 3%;
  margin-inline: auto;
  inline-size: 38.8%;
  padding: clamp(3px, .4vw, 5px);
  z-index: 1;
  background: #101615;
}
.studio-hero__preview--center .studio-hero__poster-frame {
  aspect-ratio: 344 / 767;
  overflow: hidden;
  container-type: inline-size;
  border-radius: 10% / 4.5%;
}
/* Straighten the screen in calorie-3.webp at any width. The four screen corners
   in the 600 × 1305 source are (210,310), (535,385), (347,1217), and (30,1116). */
.studio-hero__preview--center .studio-hero__poster {
  inline-size: calc(100% * 600 / 344);
  max-inline-size: none;
  border-radius: 0;
  transform-origin: top left;
  transform: translate(-50.2784%, -18.7051%) perspective(100cqw) matrix3d(
    1.106181, -.190195, -.034803, 0,
    .245114, .931930, -.005588, 0,
    0, 0, 1, 0,
    0, 0, 0, 1
  );
}
.studio-hero__preview--right { inset-inline-end: 6.4%; inset-block-start: 20%; rotate: 6deg; }
.studio-hero__preview:focus-visible { z-index: 2; }

@media (min-width: 901px) {
  .studio-hero__layout .studio-hero__copy { margin-inline: 0; text-align: start; }
  .studio-hero__layout .lead { margin-inline: 0; text-wrap: pretty; }
  .studio-hero__layout .studio-hero__actions { justify-content: flex-start; }
}

.studio-work { padding-block: 42px 47px; background: var(--bg-deep); border-block: 1px solid var(--line); }
.studio-work h2, .studio-tools h2 { font-size: clamp(28px, 3.6vw, 40px); }
.studio-work__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px 18px; flex-wrap: wrap; margin-block-end: 17px; }
.studio-work__grid, .studio-tools__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.studio-work-card, .studio-event, .studio-tool { border-radius: 12px; }
.studio-work-card { padding: 20px; transition: border-color .2s, translate .2s; }
.studio-work-card:hover { translate: 0 -2px; }
.studio-work-card h3, .studio-event h3 { font-size: 21px; }
.studio-work-card p { margin-block: 6px 11px; font-size: 15px; }
.studio-work-card > .i-arrow { color: var(--green-ink); }

.studio-tools { padding-block: clamp(38px, 5vw, 62px); }
.studio-tools h2 { margin-block-end: 17px; }
.studio-tools__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
.studio-tool-links { display: grid; gap: 7px; }
.studio-tool {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  min-block-size: 48px;
}
.studio-tool :is(.ico, .i-arrow) { color: var(--green-ink); }
.studio-tool b { display: block; font-size: 15px; line-height: 1.3; }
.studio-tool small { display: block; margin-block-start: 3px; font-size: 13px; line-height: 1.4; }
.studio-event {
  background: var(--event-bg);
  color: var(--event-fg);
  padding: clamp(18px, 2.5vw, 29px);
}
.studio-event :is(h3, p, b) { color: inherit; }
.studio-event__icon { color: var(--green-ink); margin-block-end: 9px; }
.studio-event h3 + p { margin-block-start: 5px; font-size: 16px; }
.studio-event__date { font-size: 14px; margin-block-start: 12px; }
.studio-event__date > span { display: block; font-weight: 600; }
.studio-event__links { display: flex; flex-wrap: wrap; gap: 7px 16px; margin-block-start: 13px; }
.studio-event__count { margin-block-start: 10px; font-size: 13px; font-variant-numeric: tabular-nums; }

.proof { border-block: 1px solid var(--line); background: var(--bg-deep); }

/* app cards (2 x 2) */
.apps { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.app-card { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) 196px; gap: 36px; min-height: 440px; padding-block: 32px; padding-inline: 32px 30px; }
.app-card .body { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.app-id { display: flex; align-items: center; gap: 12px; }
.app-card .app-id { margin-block-start: 20px; }
.app-id img { width: 48px; height: 48px; border-radius: 12px; }
.app-id b { display: block; font: 700 16px/1.25 var(--head); color: var(--text); }
.app-id span { font-size: 13px; color: var(--text-3); }
.app-id--lg { gap: 16px; }
.app-id--lg img { width: 64px; height: 64px; border-radius: 16px; }
.app-id--lg span { font-size: 14px; }
.app-card h3 { margin-block-start: 18px; font-size: 22px; }
.app-card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.app-card p { margin-block-start: 10px; font-size: 15px; line-height: 1.55; }
.app-card .rating { margin-block-start: auto; padding-block-start: 16px; gap: 6px 8px; font-size: 13.5px; }
.app-card .link { margin-block-start: 14px; position: relative; z-index: 2; }
.app-card .shot-col { align-self: start; }
.app-card .phone { --pad: 7px; width: 196px; border-radius: 34px; margin-block-start: 6px; }
.app-card .screen { border-radius: 28px; }
.app-card:hover { border-color: var(--green-line); }

/* screens rail */
.rail { position: relative; }
.rail__track { display: flex; gap: 20px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; padding-block: 6px 24px; padding-inline: 2px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.rail__item { flex: 0 0 220px; scroll-snap-align: start; display: grid; gap: 12px; align-content: start; }
/* Every screen card has the same shape (most store shots are 600x1305; Athan's are 600x1064 and get a slight side trim). */
.rail__item .shot { width: 100%; height: auto; aspect-ratio: 600 / 1305; object-fit: cover; object-position: center; }
.rail__item figcaption { display: grid; gap: 2px; font-size: 14px; line-height: 1.4; }
.rail__item figcaption span { color: var(--text); font-weight: 500; }
.rail__item figcaption a { color: var(--text-3); }
.rail__item figcaption a:hover { color: var(--green-ink); }
.rail__nav { display: flex; justify-content: flex-end; gap: 8px; }
.rail__btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--text); transition: border-color .2s, opacity .2s; }
.rail__btn:hover { border-color: var(--green-line); color: var(--green-ink); }
.rail__btn[disabled] { opacity: .35; cursor: default; }
.rail__btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .rail__btn svg { transform: scaleX(-1); }

.sub-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-block: 56px 20px; }
.sub-head h3 { font-size: 24px; }

/* reviews */
.ratings-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-block-end: 24px; }
.r-app { display: flex; align-items: center; gap: 14px; padding: 16px 18px; }
.r-app img { width: 44px; height: 44px; border-radius: 11px; }
.r-app b { font: 700 22px/1 var(--head); color: var(--text); font-variant-numeric: tabular-nums; }
.r-app .stars { margin-inline-start: 8px; vertical-align: 2px; }
.r-app small { display: block; font-size: 13px; color: var(--text-3); margin-block-start: 5px; }
.reviews { columns: 3; column-gap: 16px; }
.reviews--1 { columns: 1; max-width: 560px; }
.reviews--2 { columns: 2; }
.review { break-inside: avoid; margin: 0 0 16px; padding: 24px; display: grid; gap: 16px; }
.review__quote { color: var(--text); font-size: 16px; line-height: 1.6; }
.review__quote p::before { content: "\201C"; }
.review__quote p::after { content: "\201D"; }
.review__by { display: flex; align-items: center; gap: 12px; }
.review__avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--text); font: 700 13px/1 var(--head); flex: none; }
.review__who { display: grid; gap: 1px; min-width: 0; flex: 1; }
.review__who strong { font-size: 14px; color: var(--text); }
.review__meta { font-size: 13px; color: var(--text-3); }
.review__meta time { white-space: nowrap; }
.review__meta a { color: var(--text-2); }
.review__meta a:hover { color: var(--green-ink); }
.review__src { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--text-3); flex: none; transition: background-color .2s, color .2s; }
.review__src:hover { background: var(--surface-2); color: var(--green-ink); }
.review__src .i-arrow { width: 16px; height: 16px; }

/* principles */
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.principles--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.principles .card { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.principles h3 { font-size: 19px; }
.principles p { font-size: 15px; line-height: 1.55; }
.principles .link { margin-block-start: auto; padding-block-start: 4px; }

/* final CTA */
.final { text-align: center; padding: 72px 32px; border-color: var(--green-line);
  background: radial-gradient(500px 260px at 50% 0%, var(--glow), transparent 70%), var(--surface); }
.final .icon-stack { justify-content: center; margin-block-end: 26px; }
.final .icon-stack img { width: 56px; height: 56px; border-radius: 14px; box-shadow: 0 0 0 3px var(--surface); }
.final .icon-stack img + img { margin-inline-start: -10px; }
.final h2 { font-size: 48px; max-width: 760px; margin-inline: auto; }
.final .lead { margin: 18px auto 0; max-width: 560px; }
.final .badges { justify-content: center; margin-block-start: 30px; }
.final .link { margin-block-start: 22px; }

/* ==========================================================================
   Apps catalogue + app page
   ========================================================================== */
.catalogue { display: grid; gap: 24px; }
.entry { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 48px; align-items: center; padding: 40px; overflow: hidden; }
.entry__copy { display: grid; gap: 18px; align-content: start; justify-items: start; }
.entry__name { font-size: 30px; }
.entry__name a:hover { color: var(--green-ink); }
.entry__text { max-width: 58ch; }
.entry__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-block-start: 4px; }
/* App entries: three real screens in a fan, the app's main screen (first shot) larger in the middle, the other two behind it (owner 29 Nov: they looked small and cramped) */
.entry__media { display: flex; justify-content: center; align-items: center; padding-block: 8px; direction: ltr; }
.entry__media .phone { flex: none; --pad: 7px; width: 186px; border-radius: 33px; position: relative; z-index: 1; transform: translateY(26px); }
.entry__media .phone .screen { border-radius: 27px; }
.entry__media .phone:nth-child(1) { order: 2; width: 236px; z-index: 2; transform: none; border-radius: 40px; }
.entry__media .phone:nth-child(1) .screen { border-radius: 33px; }
.entry__media .phone:nth-child(2) { order: 1; margin-inline-end: -72px; }
.entry__media .phone:nth-child(3) { order: 3; margin-inline-start: -72px; }
@media (min-width: 901px) and (max-width: 1240px) {
  .entry__media .phone { width: min(150px, 39.47%); }
  .entry__media .phone:nth-child(1) { width: min(196px, 51.58%); }
  .entry__media .phone:nth-child(2) { margin-inline-end: max(-58px, -15.26%); }
  .entry__media .phone:nth-child(3) { margin-inline-start: max(-58px, -15.26%); }
}

.ticks { display: grid; gap: 10px; }
.ticks li { position: relative; padding-inline-start: 30px; color: var(--text-2); font-size: 16px; line-height: 1.5; }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 0; inset-block-start: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--green-wash); box-shadow: inset 0 0 0 1px var(--green-line); }
.ticks li::after { content: ""; position: absolute; inset-inline-start: 7px; inset-block-start: 8px; width: 7px; height: 4px; border-inline-start: 2px solid var(--green-ink); border-block-end: 2px solid var(--green-ink); transform: rotate(-45deg); }
[dir="rtl"] .ticks li::after { transform: rotate(45deg); }
.ticks--compact { gap: 6px; }
.ticks--compact li { font-size: 15px; }

.app-hero { position: relative; overflow: hidden; }
.app-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(560px 480px at 74% 50%, var(--glow), transparent 70%); pointer-events: none; }
[dir="rtl"] .app-hero::before { background: radial-gradient(560px 480px at 26% 50%, var(--glow), transparent 70%); }
.app-hero > .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; padding-block: 32px 80px; }
.app-hero__copy { display: grid; gap: 22px; align-content: start; justify-items: start; }
.app-hero__copy .app-id { margin-block-start: 10px; }
.app-hero__copy .app-id img { width: 64px; height: 64px; border-radius: 16px; }
.app-hero__title { font-size: 60px; }
.app-hero .facts { font-size: 15px; }
.app-hero__trust {
  display: grid; gap: 7px; max-inline-size: 100%; padding: 12px 16px;
  border: 1px solid var(--green-line); border-radius: 14px; background: var(--green-wash);
}
.app-hero__trust-label { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 700; }
.app-hero__trust-label .ico { inline-size: 18px; block-size: 18px; color: var(--green-ink); }
.app-hero__trust .fact:last-child b { color: var(--green-ink); }
.app-hero__media {
  display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; justify-self: center;
  inline-size: min(100%, 530px); padding-block-start: 24px; isolation: isolate;
}
.app-hero__media .phone {
  grid-area: 1 / 1; inline-size: min(46%, 220px); --pad: 7px;
  border-radius: 15% / 7.5%; isolation: isolate;
}
.app-hero__media .screen { border-radius: 14% / 7%; }
.app-hero__media .phone:first-child { inline-size: min(60%, 290px); --pad: 9px; z-index: 1; }
.app-hero__media .phone:only-child { inline-size: min(80%, 290px); }
.app-hero__media .phone:nth-child(2) { justify-self: end; }
.app-hero__media .phone:nth-child(3) { justify-self: start; }
@media (prefers-reduced-motion: no-preference) {
  .app-hero--flagship .app-hero__media .phone,
  .app-hero__trust { animation: app-hero-reveal .55s var(--ease) both; }
  .app-hero--flagship .phone:nth-child(2) { animation-delay: .08s; }
  .app-hero--flagship .phone:nth-child(3),
  .app-hero__trust { animation-delay: .16s; }
}
@keyframes app-hero-reveal { from { opacity: .65; transform: translateY(12px); } }

.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.feature { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 16px; align-items: start; align-content: start; padding: 20px 22px; }
.feature .tile__ico { grid-row: span 2; }
.feature__t { font-size: 17px; padding-block-start: 2px; }
.feature p { font-size: 15px; line-height: 1.55; grid-column: 2; }
.split-head { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 24px 64px; align-items: start; margin-block-end: 44px; }
.split-head h2 { margin-block-start: 16px; }

.spot__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 72px; align-items: center; }
.spot--flip .spot__copy { order: 2; }
.spot__copy { display: grid; gap: 18px; align-content: start; justify-items: start; max-width: 640px; }
.spot__copy h2 { font-size: 38px; }
.spot__text { font-size: 17px; }
.spot__sub { font: 700 15px/1.3 var(--head); color: var(--text); margin-block-start: 6px; }
.spot__media { justify-self: center; }
.spot__media .phone { width: 280px; }
.spot__media .phone.phone--qibla { width: min(330px, calc(100vw - 86px)); border-radius: 14% / 7%; }
.phone--qibla .screen { border-radius: 12.5% / 6.25%; }
.phone--qibla .pop { filter: none; }
.spot:has(.phone--qibla) { overflow-x: clip; }

.steps { display: grid; gap: 18px; }
.steps li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start; }
.steps__n { width: 36px; height: 36px; border-radius: 50%; background: var(--green-wash); border: 1px solid var(--green-line); color: var(--green-ink); display: grid; place-items: center; font: 700 15px/1 var(--head); font-variant-numeric: tabular-nums; }
.steps h3 { font-size: 17px; }
.steps p { font-size: 15px; margin-block-start: 2px; }

.get { display: grid; grid-template-columns: auto 1fr auto; gap: 18px 24px; align-items: center; padding: 28px; border-color: var(--green-line); background: linear-gradient(100deg, var(--surface) 0%, var(--surface-2) 100%); }
.get__id { display: contents; }
.get__id img { width: 64px; height: 64px; border-radius: 16px; }
.get__name { font: 700 20px/1.3 var(--head); color: var(--text); }
.get__sub { font-size: 15px; color: var(--text-2); }
.get__links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 22px; padding-block-start: 18px; border-block-start: 1px solid var(--line); font-size: 14px; }
.get__links a { color: var(--text-2); }
.get__links a:hover { color: var(--green-ink); }

.more { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.more a { display: flex; gap: 14px; align-items: center; height: 100%; padding: 18px; }
.more img { border-radius: 11px; }
.more a > span { display: grid; gap: 2px; font-size: 14px; line-height: 1.45; }
.more strong { font: 700 16px/1.3 var(--head); }
.more a > span > span { color: var(--text-3); font-size: 13.5px; }

/* ==========================================================================
   About, contact, press, legal, 404
   ========================================================================== */
.about { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, .85fr); gap: 64px; align-items: start; }
.kv > div { display: flex; flex-direction: column-reverse; gap: 2px; padding-block: 16px; border-block-start: 1px solid var(--line); }
.kv > div:first-child { border-block-start: 0; padding-block-start: 0; }
.kv dt { font-size: 14px; color: var(--text-2); }
.kv dd { font: 700 34px/1.1 var(--head); color: var(--text); letter-spacing: -.015em; font-variant-numeric: tabular-nums; }
.timeline { display: grid; max-width: 820px; }
.timeline li { display: grid; grid-template-columns: 140px 1fr; gap: 16px; align-items: center; padding-block: 18px; border-block-start: 1px solid var(--line); }
.timeline li:last-child { border-block-end: 1px solid var(--line); }
.timeline time { color: var(--green-ink); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.timeline a { font: 600 17px/1.4 var(--head); color: var(--text); }
.timeline a:hover { color: var(--green-ink); }
.next { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.next a { display: grid; gap: 6px; }
.next strong { font: 700 19px/1.3 var(--head); }
.next .ico { color: var(--green-ink); margin-block-start: 8px; }

.contact { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, .85fr); gap: 32px; align-items: start; }
.contact__form { padding: 32px; }
.form { display: grid; gap: 22px; }
.topics { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.topics legend { font: 700 16px/1.3 var(--head); color: var(--text); margin-block-end: 12px; padding: 0; }
.topic { position: relative; display: block; cursor: pointer; }
.topic input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.topic__box { position: relative; display: grid; gap: 4px; height: 100%; padding-block: 14px; padding-inline: 46px 16px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--surface-2); transition: border-color .2s, background-color .2s; }
.topic__box::before { content: ""; position: absolute; inset-inline-start: 16px; inset-block-start: 17px; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-2); background: var(--surface); transition: border-color .2s, box-shadow .2s; }
.topic__box strong { font-size: 15px; color: var(--text); }
.topic__box span { font-size: 13.5px; color: var(--text-3); line-height: 1.45; }
.topic:hover .topic__box { border-color: var(--green-line); }
.topic input:checked + .topic__box { border-color: var(--green-ink); background: var(--green-wash); }
.topic input:checked + .topic__box::before { border-color: var(--green-ink); box-shadow: inset 0 0 0 4px var(--surface), inset 0 0 0 10px var(--green-ink); }
.topic input:focus-visible + .topic__box { outline: 2px solid var(--green-ink); outline-offset: 3px; }
.field { display: grid; gap: 7px; }
.field > span { font-size: 14px; font-weight: 600; color: var(--text); }
.field small { font-weight: 400; color: var(--text-3); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--text); background: var(--surface-2);
  padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 150px; line-height: 1.5; }
.field textarea::placeholder { color: var(--text-3); }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%); background-position: calc(100% - 20px) 52%, calc(100% - 15px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-inline-end: 40px; }
[dir="rtl"] .field select { background-position: 20px 52%, 15px 52%; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green-ink); box-shadow: 0 0 0 3px var(--green-wash); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field__err { color: var(--danger); font-size: 14px; }
.field__err--box { padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--danger); background: var(--surface-2); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.form__foot p { flex: 1 1 220px; }
.hp { position: absolute; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }
.js .field.is-hidden { display: none; }
.contact__side { display: grid; gap: 14px; align-content: start; }
.contact__side h2 { font-size: 18px; }
.contact__side h2:not(:first-child) { margin-block-start: 12px; }
.inboxes > div { padding-block: 10px; border-block-start: 1px solid var(--line); display: grid; gap: 2px; }
.inboxes dt { font-size: 13px; color: var(--text-3); }
.inboxes dd { font-size: 15px; overflow-wrap: anywhere; }
.inboxes a { color: var(--green-ink); }
.side-links { display: grid; gap: 4px; }
.side-links a { display: flex; align-items: center; gap: 10px; font-size: 15px; padding-block: 6px; color: var(--text); }
.side-links a:hover { color: var(--green-ink); }
.side-links img { border-radius: 7px; }
.sent { display: grid; gap: 14px; justify-items: start; }
.sent h2 { font-size: 32px; }

.press { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.press h2 { font-size: 22px; margin-block-end: 14px; }
.press__h { margin-block-start: 32px; }
.factsheet > div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding-block: 12px; border-block-start: 1px solid var(--line); font-size: 15px; }
.factsheet dt { color: var(--text-3); }
.factsheet dd { color: var(--text); }
.factsheet a { color: var(--green-ink); }
.press-apps li { display: flex; gap: 14px; align-items: flex-start; padding-block: 14px; border-block-start: 1px solid var(--line); }
.press-apps li:first-child { border-block-start: 0; padding-block-start: 0; }
.press-apps a:hover strong { color: var(--green-ink); }
.downloads { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-block-end: 18px; }
.dl-card { display: grid; gap: 12px; align-content: start; }
.dl-card h3 { font-size: 17px; }
.dl-card__preview { height: 140px; border-radius: 14px; background: var(--surface-2); display: flex; align-items: center; justify-content: center; gap: 10px; overflow: hidden; }
.dl-card__preview--shots .shot { width: auto; height: 118px; border-radius: 8px; }
.dl-list { display: grid; gap: 4px; font-size: 14.5px; }
.dl-list a { color: var(--green-ink); }
.dl-list a:hover { text-decoration: underline; text-underline-offset: 3px; }
.dl-list--inline { display: flex; flex-wrap: wrap; gap: 6px; }
.dl-list--inline a { display: inline-grid; place-items: center; min-width: 38px; height: 38px; border: 1px solid var(--line-2); border-radius: 10px; font-size: 14px; color: var(--text); font-variant-numeric: tabular-nums; }
.dl-list--inline a:hover { border-color: var(--green-line); color: var(--green-ink); text-decoration: none; }

.legal { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; align-items: start; }
.legal__toc { position: sticky; inset-block-start: calc(var(--header-h) + 24px); display: grid; gap: 2px; padding: 12px; font-size: 14px; }
.legal__toc a { padding: 7px 10px; border-radius: 9px; color: var(--text-2); }
.legal__toc a:hover { background: var(--surface-2); color: var(--text); }
.legal__body { max-width: 740px; }
.legal__body h2 { font-size: 24px; line-height: 1.3; margin-block: 48px 12px; }
.legal__body h2:first-child { margin-block-start: 0; }
.policy-links { list-style: none !important; padding: 0 !important; display: grid; gap: 0; }
.policy-links li { display: flex; align-items: center; gap: 12px; padding-block: 10px; border-block-end: 1px solid var(--line); }
.policy-links li + li { margin: 0; }
.lr, .draft-note { color: var(--text); background: var(--surface-2); border: 1px solid var(--gold); }
.lr { display: inline-block; margin-inline-start: 4px; padding: 1px 8px; border-radius: 6px; font-size: 12px; line-height: 1.6; vertical-align: 1px; }
.draft-note { margin-block-start: 16px; padding: 10px 14px; border-radius: var(--radius-sm); font-size: 14px; max-width: 640px; }

.nf { padding-block: 120px; }
.nf__inner { display: grid; justify-items: start; gap: 18px; max-width: calc(760px + 2 * var(--gutter)); }
.nf__code { font: 800 96px/1 var(--head); color: var(--green-ink); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.nf__links { display: flex; flex-wrap: wrap; gap: 10px; margin-block-start: 10px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1120px) {
  .app-card { grid-template-columns: minmax(0, 1fr) 180px; }
  .app-card .phone { width: 180px; }
  .tile-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .principles--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .studio-hero__layout { grid-template-columns: minmax(0, 1fr); gap: clamp(24px, 4.5vw, 38px); }
  .studio-hero__previews { max-inline-size: 452px; }
  h1, .h1 { font-size: 48px; }
  h2, .h2 { font-size: 34px; }
  .page-head h1, .page-head .h1 { font-size: 42px; }
  .app-hero > .wrap { grid-template-columns: 1fr; padding-block-start: 24px; }
  .app-hero__title { font-size: 48px; }
  .apps { grid-template-columns: 1fr; }
  .ratings-row { grid-template-columns: 1fr; }
  .reviews { columns: 2; }
  .faq-grid, .split-head { grid-template-columns: 1fr; gap: 24px; }
  .s-head { flex-direction: column; align-items: flex-start; }
  .principles { grid-template-columns: 1fr 1fr; }
  .entry { grid-template-columns: 1fr; padding: 32px; }
  .entry__media { order: -1; }
  .spot__grid { grid-template-columns: 1fr; gap: 40px; }
  .spot--flip .spot__copy { order: 0; }
  .more { grid-template-columns: 1fr; }
  .about, .contact, .press { grid-template-columns: 1fr; gap: 32px; }
  .legal { grid-template-columns: 1fr; gap: 24px; }
  .legal__toc { position: static; display: flex; flex-wrap: wrap; }
  .next { grid-template-columns: 1fr; }
  .stat-strip { row-gap: 24px; }
  .stat-strip .stat { flex-basis: 50%; min-width: 0; }
  .stat-strip .stat:nth-child(odd) { border-inline-start: 0; }
}
@media (max-width: 740px) {
  .studio-hero { padding-block: 33px 34px; }
  .studio-hero h1 { font-size: clamp(37px, 10.8vw, 63px); }
  .studio-hero .lead { margin-block-start: 15px; }
  .studio-hero__actions { margin-block-start: 15px; }
  .studio-work { padding-block: 28px; }
  .studio-work__grid, .studio-tools__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  h1, .h1 { font-size: 40px; line-height: 1.1; }
  h2, .h2 { font-size: 28px; }
  h3, .h3 { font-size: 20px; }
  .lead, .lede, .prose--lg { font-size: 17px; }
  .section { padding-block: 64px; }
  .section--band + .section, .section + .section--band { padding-block-start: 64px; }
  .section--tight { padding-block: 40px; }
  .page-head { padding-block: 24px 32px; }
  .page-head h1, .page-head .h1 { font-size: 34px; }
  .s-head { margin-block-end: 28px; }
  .card { padding: 20px; }
  .card--flush { padding: 0; }
  .store-badge img { height: 44px; }
  .store-badge--lg.store-badge--soon { min-block-size: 44px; }
  .stat-strip { padding-block: 28px; }
  .stat-strip .stat > b, .stat-strip .stat > strong { font-size: 32px; }
  .stat-strip .stat > .stat__app-total { display: block; font-size: clamp(24px, 8vw, 32px); overflow-wrap: anywhere; }
  .stat-strip .stat .star { width: 22px; height: 22px; }
  .stat-strip .stat > span { font-size: 14px; }
  .app-card { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 24px; padding: 24px; }
  .app-card .phone { width: 220px; margin: 0 auto; }
  .tile-grid, .tile-grid--3 { grid-template-columns: 1fr 1fr; gap: 12px; }
  .tile { padding: 18px; min-height: 0; }
  .tile-grid--cities { grid-template-columns: 1fr; }
  .reviews, .reviews--2 { columns: 1; }
  .principles, .principles--4, .features { grid-template-columns: 1fr; }
  .feature { padding: 18px; }
  .final { padding: 48px 20px; }
  .final h2 { font-size: 30px; }
  .entry { padding: 24px 20px; gap: 28px; }
  .entry__name { font-size: 24px; }
  .entry__media .phone { width: min(120px, 37.5%); transform: translateY(18px); }
  .entry__media .phone:nth-child(1) { width: min(156px, 48.75%); border-radius: 30px; }
  .entry__media .phone:nth-child(1) .screen { border-radius: 24px; }
  .entry__media .phone:nth-child(2) { margin-inline-end: max(-38px, -11.875%); }
  .entry__media .phone:nth-child(3) { margin-inline-start: max(-38px, -11.875%); }
  .app-hero__title { font-size: 40px; }
  .spot__copy h2 { font-size: 28px; }
  .spot__media .phone { width: 240px; }
  .get { grid-template-columns: auto 1fr; padding: 22px; }
  .get .store-badges { grid-column: 1 / -1; }
  .contact__form { padding: 22px; }
  .topics, .form__row { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; }
  .factsheet > div { grid-template-columns: 1fr; gap: 2px; }
  .faq summary { font-size: 16px; overflow-wrap: anywhere; }
  .faq details > :not(summary) { padding-inline-end: 0; }
  .nf { padding-block: 72px; }
  .nf__code { font-size: 72px; }
  .rail__item { flex-basis: 62vw; }
  .table th, .table td { padding: 12px 10px; font-size: 15px; }
}

@media (max-width: 420px) {
  .app-hero__media { inline-size: calc(100% - 20px); }
}

/* Grid children may shrink below their content (tables scroll inside their own box) */
.apps > *, .faq-grid > *, .about > *, .contact > *, .press > *, .legal > *, .spot__grid > *, .entry > * { min-width: 0; }

/* Entrance and scroll motion. Content is visible with JavaScript disabled. */
@media screen and (prefers-reduced-motion: no-preference) {
  html.motion body:not(.is-home) main h1 { animation: studio-rise .6s var(--ease) both; }
  html.motion .studio-hero__line > span { animation: studio-headline .72s var(--ease) both; }
  html.motion .studio-hero__line--accent > span { animation-delay: .1s; }
  html.motion .studio-hero .lead { animation: studio-rise .55s .18s var(--ease) both; }
  html.motion .studio-hero__actions:not(:focus-within) { animation: studio-rise .55s .27s var(--ease) both; }
  html.motion .studio-hero__preview:not(:focus-visible) { animation: studio-rise .66s .23s var(--ease) both; }
  html.motion .studio-hero__preview--center:not(:focus-visible) { animation-delay: .15s; }
  html.motion .studio-hero__preview--right:not(:focus-visible) { animation-delay: .3s; }
  html.motion .fx {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .6s var(--ease), transform .6s var(--ease), border-color .2s, translate .2s;
  }
  html.motion .fx:is(.is-in, :focus-within, :target) { opacity: 1; transform: none; }
  html.motion .entry.fx .entry__media .phone {
    transition: opacity .55s var(--ease), translate .65s var(--ease);
  }
  html.motion .entry.fx .entry__media .phone:nth-child(2) { transition-delay: .07s; }
  html.motion .entry.fx .entry__media .phone:nth-child(3) { transition-delay: .13s; }
  html.motion .entry.fx:not(:is(.is-in, :focus-within, :target)) .entry__media .phone {
    opacity: .6;
    translate: 0 16px;
  }
}
@keyframes studio-headline {
  from { opacity: 0; transform: translateY(94%); }
  to { opacity: 1; transform: none; }
}
@keyframes studio-rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
  .studio-work-card:hover { translate: none; }
}

@media print {
  .site-head, .site-foot, .consent, .rail__nav, .mnav, .theme-btn { display: none !important; }
  body { font-size: 12pt; background: #fff; color: #000; }
}

/* Footer newsletter row (Team B form, placed by the main session 29 Nov): copy left, form right */
.foot-nl { padding-block-end: 36px; margin-block-end: 40px; border-block-end: 1px solid var(--line); }
.site-foot .nl--footer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 16px 56px; align-items: center; }
.site-foot .nl__h { font: 700 20px/1.3 var(--head); color: var(--text); margin: 0; }
.site-foot .nl__p { color: var(--text-2); font-size: 14.5px; line-height: 1.55; margin: 6px 0 0; max-width: 46ch; }
.site-foot .nl__form { display: grid; gap: 10px; }
.site-foot .nl__row { display: flex; gap: 10px; align-items: flex-end; }
.site-foot .nl__field { flex: 1; min-width: 0; margin: 0; }
.site-foot .nl__btn { min-height: 48px; flex: none; }
.site-foot .nl__consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.5; color: var(--text-3); cursor: pointer; }
.site-foot .nl__consent input { width: 16px; height: 16px; margin-block-start: 2px; flex: none; accent-color: var(--green); }
.site-foot .nl__consent a { color: var(--green-ink); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 860px) { .site-foot .nl--footer { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .site-foot .nl__row { flex-direction: column; align-items: stretch; } }

/* App privacy policy pages (/apps/<slug>/privacy-policy), hosted since 29 Nov 2026 */
.app-privacy__id { margin-block: 18px 6px; }
.app-privacy__id img { border-radius: 14px; }
.app-privacy h3 { font-size: 18px; margin-block: 22px 8px; }
.app-privacy p, .app-privacy li, .app-privacy td, .app-privacy a { overflow-wrap: anywhere; }
.app-privacy .table-wrap { overflow-x: auto; margin-block: 14px; }
.app-privacy .table { width: 100%; min-width: 0; table-layout: auto; }
.app-privacy .table th, .app-privacy .table td { white-space: normal; text-align: start; vertical-align: top; font-variant-numeric: normal; }
.app-privacy .table td:first-child { min-width: 9em; }
.app-privacy__other { margin-block-start: 40px; padding-block-start: 20px; border-block-start: 1px solid var(--line); color: var(--text-3); font-size: 14px; }
