/* Raymo website. Light page, one Raymo blue (with its tints), Space Grotesk + Inter.
   Design tokens match the app, the launch video and the Play screenshots (see CLAUDE.md).
   2026-10-31 redesign: softer surfaces, bento albums, floating chips, FAQ, screenshot slots. */

:root {
  /* Surfaces */
  --page: #F4F6FA;
  --card: #FFFFFF;
  --card-tint: #EBF0F7;           /* image well inside cards */
  --tint: #E6F0FA;                /* Raymo blue at ~10% on white: tinted tiles, discs */
  --tint-2: #D4E5F6;              /* stronger tint: disc behind the hero phones */
  --line: rgba(18, 32, 64, .08);
  --line-2: rgba(18, 32, 64, .14);
  --shadow: 0 20px 50px rgba(18, 32, 64, .10);
  --shadow-sm: 0 6px 20px rgba(18, 32, 64, .07);
  --shadow-chip: 0 10px 30px rgba(18, 32, 64, .14);

  /* Text */
  --ink: #12151C;
  --ink-2: #5A6474;
  --ink-3: #8E9AAD;                /* large text and decoration only (below AA for body text) */

  /* Accent: Raymo blue */
  --blue: #0D76BF;
  --blue-light: #3D8FE0;
  --blue-deep: #0A639F;            /* button hover and small blue text on the page (AA on #F4F6FA) */

  /* The one dark band (Photoverse) and media frames */
  --dark: #0B0D12;
  --dark-2: #151922;
  --on-dark: #F4F6FA;
  --on-dark-2: rgba(244, 246, 250, .72);
  --on-dark-line: rgba(244, 246, 250, .12);

  /* Type */
  --font-display: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Shape and layout */
  --radius: 28px;
  --radius-sm: 20px;
  --radius-media: 24px;
  --radius-pill: 999px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(72px, 10vw, 140px);
  --nav-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* Star tiling (assets/brand/star-pattern.svg): hero and final section only */
  --pattern-opacity: .2;
}

/* ------------------------------------------------------------ base ---- */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;           /* 17 px */
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
@media (min-width: 1024px) { body { font-size: 1.125rem; } }  /* 18 px */

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0;
}
h1 { font-size: clamp(2.55rem, 6.4vw, 4.9rem); line-height: 1.04; }
h2 { font-size: clamp(2rem, 4.4vw, 3.3rem); text-wrap: balance; }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.6rem); letter-spacing: -0.02em; line-height: 1.15; }

:focus-visible { outline: 3px solid var(--blue-light); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
/* Keeps a hyphenated word on one line, where a break would read badly (French «Mettez-en»). */
.nowrap { white-space: nowrap; }
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px;
}
.skip-link:focus { top: 12px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue-deep);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--blue);
}
.lead { font-size: clamp(1.0625rem, 1.6vw, 1.25rem); color: var(--ink-2); }

.section { padding: var(--section-y) 0; position: relative; }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head h2 { margin-bottom: 18px; }
.section-head p { color: var(--ink-2); font-size: clamp(1.0625rem, 1.5vw, 1.1875rem); margin: 0; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head a { color: var(--blue-deep); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(13, 118, 191, .35); }
.section-head a:hover { text-decoration-color: currentColor; }

/* Scroll reveal: only with JS (html.js), never with reduced motion. */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* --------------------------------------------------------- buttons ---- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-weight: 500; font-size: 1rem; line-height: 1.2;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 6px 16px rgba(13, 118, 191, .28); }
.btn-primary:hover { background: var(--blue-deep); }
.btn-primary:active { transform: translateY(1px); }
.btn svg { flex: none; }

/* Official Google Play badge: used unmodified, clear space >= a quarter of its height.
   Disabled link until launch. */
.play { display: inline-flex; align-items: center; gap: 14px 18px; flex-wrap: wrap; }
.play-badge { display: inline-block; line-height: 0; }
.play-badge img { height: 56px; width: auto; }
.play-badge[aria-disabled="true"] { cursor: default; }
.soon {
  display: inline-block;
  font-size: .8125rem; font-weight: 600; letter-spacing: .02em;
  color: var(--blue-deep);
  background: rgba(13, 118, 191, .09);
  border: 1px solid rgba(13, 118, 191, .18);
  padding: 5px 12px; border-radius: var(--radius-pill);
}

/* ------------------------------------------------------------- nav ---- */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 246, 250, .82);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background-color .2s ease;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); gap: 16px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 500; font-size: 1.375rem; letter-spacing: -0.03em; }
.brand img { width: 34px; height: 34px; }

.nav-links { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.nav-links a:not(.btn) { padding: 8px 14px; border-radius: var(--radius-pill); color: var(--ink-2); font-size: .975rem; font-weight: 500; transition: color .15s ease, background-color .15s ease; }
.nav-links a:not(.btn):hover { color: var(--ink); background: rgba(18, 32, 64, .05); }
.nav-links .btn { min-height: 42px; padding: 9px 18px; margin-left: 10px; font-size: .95rem; }
.nav-links a { white-space: nowrap; }
.nav-inner .brand { flex-shrink: 0; }
/* Small laptops: the links, the Get button and the language button share one row */
@media (min-width: 921px) and (max-width: 960px) {
  .nav-links a:not(.btn) { padding: 8px 9px; font-size: .925rem; }
  .nav-links .btn { padding: 9px 14px; }
}

.nav-toggle {
  display: none;
  width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--card);
  align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle .bar { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: background-color .2s ease; }
.nav-toggle .bar::before, .nav-toggle .bar::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease; }
.nav-toggle .bar::before { top: -6px; }
.nav-toggle .bar::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar::after { transform: translateY(-6px) rotate(-45deg); }

/* Language button (2026-11-24): one button that names the page's language and opens the list
   of all of them, each written in its own language. Always in the top bar: at the end of the
   row on desktop, next to the menu button below the menu breakpoint. A native <details>, so it
   works without JavaScript; js/main.js closes it on Esc, on an outside click and when the menu
   opens. */
.lang { position: relative; flex-shrink: 0; }
.lang > summary {
  list-style: none; display: inline-flex; align-items: center; gap: 7px;
  min-height: 42px; padding: 8px 12px 8px 11px; border-radius: var(--radius-pill);
  border: 1px solid var(--line-2); background: var(--card); color: var(--ink);
  font-size: .95rem; font-weight: 500; white-space: nowrap; cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.lang > summary::-webkit-details-marker { display: none; }
.lang > summary::marker { content: ""; }
.lang > summary:hover { border-color: rgba(18, 32, 64, .26); }
.lang[open] > summary { background: var(--tint); border-color: transparent; }
.lang-globe { color: var(--ink-2); flex-shrink: 0; }
.lang-caret { color: var(--ink-2); flex-shrink: 0; transition: transform .2s ease; }
.lang[open] .lang-caret { transform: rotate(180deg); }
.lang-list {
  position: absolute; inset-inline-end: 0; top: calc(100% + 8px); z-index: 60;
  min-width: 200px; margin: 0; padding: 6px; list-style: none;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 24px 50px rgba(18, 32, 64, .16);
}
.lang-list a, .lang-list .lang-current {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 12px; border-radius: 10px; font-size: .975rem; font-weight: 500; color: var(--ink-2);
}
.lang-list a:hover { background: rgba(18, 32, 64, .05); color: var(--ink); }
.lang-list .lang-current { color: var(--ink); }
.lang-list .lang-current svg { color: var(--blue); flex-shrink: 0; }

/* The menu button from 920 px down (760 px until 2026-11-24). Measured with the language button:
   the row needs 761 px in English, 796 px in Arabic and 895 px in French ("Fonctionnalités",
   "Confidentialité"), so one breakpoint for every language, with a margin. Re-measure when a
   language or a nav link is added. */
@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; left: 12px; right: 12px; top: calc(var(--nav-h) - 4px);
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 10px 10px 12px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    box-shadow: 0 24px 50px rgba(18, 32, 64, .16);
    display: none;
  }
  .nav.is-open .nav-links { display: flex; }
  /* The language button stays in the bar, just before the menu button */
  .lang { order: 1; margin-inline-start: auto; }
  .nav-toggle { order: 2; }
  .nav-links a:not(.btn) { padding: 12px 14px; font-size: 1.0625rem; border-radius: 12px; }
  .nav-links .btn { margin: 8px 0 0; min-height: 48px; }
  /* Without JS the menu stays visible as a plain row */
  .no-js .nav-toggle { display: none; }
  .no-js .nav-links { position: static; display: flex; flex-direction: row; flex-wrap: wrap; padding: 0; border: 0; box-shadow: none; background: none; }
}
/* Narrow phones (320 px): logo, language button and menu button need 342 px; without the
   globe and with a smaller gap they fit. */
@media (max-width: 359px) {
  .nav-inner { gap: 10px; }
  .lang-globe { display: none; }
}

/* ---------------------------------------------------- star pattern ---- */

.has-pattern { position: relative; isolation: isolate; }
.has-pattern::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("../assets/brand/star-pattern.svg") center top / 276px 159.35px repeat;
  opacity: var(--pattern-opacity);
  -webkit-mask-image: radial-gradient(ellipse 70% 75% at 50% 30%, #000 0%, rgba(0, 0, 0, .55) 45%, transparent 80%);
          mask-image: radial-gradient(ellipse 70% 75% at 50% 30%, #000 0%, rgba(0, 0, 0, .55) 45%, transparent 80%);
}
/* The hero's tiling starts under the translucent nav, so it has no hard top edge */
.hero.has-pattern::before { top: calc(-1 * var(--nav-h)); }

/* ----------------------------------------------------- media frame ---- */

.frame {
  position: relative;
  margin: 0;
  background: var(--dark);
  border-radius: var(--radius-media);
  box-shadow: var(--shadow);
  overflow: hidden;
  aspect-ratio: 16 / 9;
}
.frame video, .frame img { width: 100%; height: 100%; object-fit: cover; }

.clip-toggle {
  position: absolute; right: 14px; bottom: 14px;
  width: 44px; height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(11, 13, 18, .62); color: #fff;
  border: 1px solid rgba(255, 255, 255, .22);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  cursor: pointer; opacity: .85; transition: opacity .15s ease, background-color .15s ease;
}
.clip-toggle:hover, .clip-toggle:focus-visible { opacity: 1; background: rgba(11, 13, 18, .82); }
.clip-toggle .i-play { display: none; }
.clip-toggle[data-state="paused"] .i-play { display: block; }
.clip-toggle[data-state="paused"] .i-pause { display: none; }
.no-js .clip-toggle { display: none; }

/* Floating chips: a search pill or a short fact beside a phone */
.float-chip {
  position: absolute; z-index: 3;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 18px 11px 14px;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-chip);
  font-size: .9375rem; font-weight: 500; line-height: 1.2; color: var(--ink);
  white-space: nowrap;
}
.float-chip svg { flex: none; color: var(--blue); }
.float-chip b { font-family: var(--font-display); font-weight: 600; color: var(--blue-deep); font-size: 1.1em; }

/* ------------------------------------------------------------ hero ---- */

.hero { padding: clamp(28px, 5vw, 64px) 0 clamp(56px, 7vw, 88px); overflow-x: clip; }  /* the disc behind the phones is wider than a phone screen */

/* Copy and phones: stacked and centred on small screens, side by side from 960 px */
.hero-grid { display: grid; gap: clamp(48px, 7vw, 64px); justify-items: center; text-align: center; }
.hero-copy { max-width: 640px; }

.hero-tag {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 clamp(20px, 3vw, 28px);
  padding: 6px 16px 6px 8px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  font-size: .9rem; font-weight: 500; color: var(--ink-2);
}
.hero-tag img { width: 26px; height: 26px; }

.hero h1 { margin: 0 0 22px; font-size: clamp(2.3rem, 7.4vw, 3.6rem); line-height: 1.04; }
.hero h1 span { display: block; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero .lead { margin: 0 auto 34px; max-width: 34em; }

.hero-actions { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.watch-link {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 6px 18px 6px 6px; margin: 0;
  border: 1px solid var(--line); background: var(--card);
  border-radius: var(--radius-pill); box-shadow: var(--shadow-sm);
  font-weight: 500; font-size: 1rem; color: var(--ink); cursor: pointer;
  transition: border-color .18s ease, color .18s ease;
}
.watch-icon {
  flex: none; width: 36px; height: 36px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--blue); color: #fff;
  transition: background-color .18s ease;
}
.watch-icon svg { margin-left: 2px; }
.watch-len { color: var(--ink-2); font-weight: 400; }
.watch-link:hover { color: var(--blue-deep); border-color: rgba(13, 118, 191, .35); }
.watch-link:hover .watch-icon { background: var(--blue-deep); }

/* Two phones on a tinted disc, chips around them. Sizes follow --pw (front phone width). */
.hero-visual {
  --pw: min(270px, 62vw);
  position: relative;
  width: calc(var(--pw) * 1.75);
  max-width: 100%;
  height: calc(var(--pw) * 2.06 + 24px);
}
.hero-disc {
  position: absolute; left: 50%; top: 50%;
  width: calc(var(--pw) * 1.7); aspect-ratio: 1;
  transform: translate(-50%, -48%);
  border-radius: 50%;
  background: var(--tint-2);
}
.hero-phone { position: absolute; height: auto; }
.hero-phone--front { width: var(--pw); right: 4%; top: 0; z-index: 2; }
.hero-phone--back {
  width: calc(var(--pw) * .82); left: 4%; top: calc(var(--pw) * .32); z-index: 1;
  transform: rotate(-6deg); opacity: .96;
}
.chip-query { left: -2%; top: calc(var(--pw) * .2); }
.chip-count { right: -3%; top: calc(var(--pw) * .92); }
.chip-offline { left: 0; bottom: calc(var(--pw) * .16); }

@media (max-width: 520px) {
  .hero-visual { --pw: min(232px, 60vw); width: 100%; }
  .float-chip { font-size: .8125rem; padding: 8px 13px 8px 10px; gap: 7px; }
  .float-chip svg { width: 15px; height: 15px; }
  .chip-query { left: 0; }
  .chip-count { right: 0; }
}

@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) auto; align-items: center; justify-items: start; text-align: left; column-gap: clamp(40px, 5vw, 80px); }
  .hero-copy { max-width: 600px; }
  .hero h1 { font-size: clamp(2.6rem, 4.4vw, 3.75rem); }
  .hero .lead { margin-left: 0; }
  .hero-actions { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
  .hero-visual { --pw: clamp(240px, 21vw, 290px); }
}

/* Facts strip: in place of reviews */
.facts {
  list-style: none;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px;
  margin-top: clamp(48px, 6vw, 72px);
}
.facts li {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 18px 9px 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: .9375rem; font-weight: 500; color: var(--ink);
}
.fact-icon {
  width: 30px; height: 30px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--tint); color: var(--blue);
}

/* ------------------------------------------------------- organized ---- */

.organized { padding-top: clamp(56px, 7vw, 96px); }
.organized .section-head { margin-left: auto; margin-right: auto; text-align: center; }

.bento { display: grid; gap: clamp(14px, 1.8vw, 22px); grid-template-columns: repeat(12, minmax(0, 1fr)); }

.tile {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex; flex-direction: column;
  min-height: 460px;
  transition: box-shadow .3s ease, transform .3s var(--ease);
}
.tile:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.tile--tint { background: var(--tint); border-color: rgba(13, 118, 191, .12); }

.tile-text { padding: 28px 28px 0; }
.tile-text h3 { margin-bottom: 8px; }
.tile-text p { color: var(--ink-2); margin: 0; font-size: 1rem; max-width: 30em; }
.tile-icon {
  width: 44px; height: 44px; border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--tint); color: var(--blue);
  margin-bottom: 18px;
}
.tile--tint .tile-icon { background: var(--card); }

/* The phone's top part shows; the tile's bottom edge cuts it */
.tile-shot {
  flex: 1; min-height: 240px;
  position: relative;
  margin-top: 24px;
}
.tile-shot img {
  position: absolute; left: 50%; top: 0;
  width: min(72%, 270px); height: auto;
  transform: translateX(-50%);
  transition: transform .5s var(--ease);
}
.tile:hover .tile-shot img { transform: translateX(-50%) translateY(-6px); }

/* Wide tiles: text left, phone right */
.tile--wide { flex-direction: row; min-height: 420px; }
.tile--wide .tile-text { flex: 1 1 50%; padding: 36px 8px 36px 36px; align-self: center; }
.tile--wide .tile-text h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); letter-spacing: -0.03em; }
.tile--wide .tile-shot { flex: 1 1 50%; margin-top: 36px; }
.tile--wide .tile-shot img { width: min(80%, 280px); }

.tile--people   { grid-column: span 7; }
.tile--places   { grid-column: span 5; }
.tile--discover { grid-column: span 4; }
.tile--rewind   { grid-column: span 4; }
.tile--circles  { grid-column: span 4; }
.tile--cleanup  { grid-column: span 5; }
.tile--details  { grid-column: span 7; }

@media (max-width: 1000px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento > .tile { grid-column: span 1; }
  .bento > .tile--people { grid-column: span 2; }
  .tile--details { flex-direction: column; min-height: 460px; }
  .tile--details .tile-text { flex: none; padding: 28px 28px 0; align-self: stretch; }
  .tile--details .tile-text h3 { font-size: clamp(1.35rem, 2.2vw, 1.6rem); letter-spacing: -0.02em; }
  .tile--details .tile-shot { flex: 1; margin-top: 24px; }
  .tile--details .tile-shot img { width: min(72%, 270px); }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .bento > .tile, .bento > .tile--people { grid-column: auto; }
  .tile, .tile--wide { flex-direction: column; min-height: 0; }
  .tile--wide .tile-text { flex: none; padding: 26px 24px 0; align-self: stretch; }
  .tile-text { padding: 26px 24px 0; }
  .tile-shot, .tile--wide .tile-shot { flex: none; height: 300px; min-height: 0; margin-top: 22px; }
  .tile-shot img, .tile--wide .tile-shot img { width: min(66%, 250px); }
}

/* Whole phone (.tile-shot--full): Discover, Rewind, Circles and Photo details show the whole phone,
   because what they are about is not all in the top part of the screen (the place and the tags in
   Photo details sit at the bottom). These rules come after the ones above so they win at every width. */
.tile .tile-shot--full { display: flex; justify-content: center; align-items: flex-end; min-height: 0; margin: 24px 0 28px; }
.tile .tile-shot--full img { position: static; transform: none; width: min(64%, 240px); }
.tile:hover .tile-shot--full img { transform: translateY(-6px); }
.tile--wide .tile-shot--full { margin: 36px 0; }
.tile--wide .tile-shot--full img { width: min(80%, 280px); }
@media (max-width: 1000px) {
  .tile--wide .tile-shot--full { margin: 24px 0 28px; }
  .tile .tile-shot--full img, .tile--wide .tile-shot--full img { width: min(72%, 250px); }
}
@media (max-width: 640px) {
  .tile .tile-shot--full, .tile--wide .tile-shot--full { height: auto; margin: 22px 0 24px; }
  .tile .tile-shot--full img, .tile--wide .tile-shot--full img { width: min(66%, 250px); }
}

/* ----------------------------------------------------------- yours ---- */

.yours { padding-top: 0; }
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 22px); }
.feature-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.feature-text { padding: 32px 32px 28px; }
.feature-text h3 { margin-bottom: 10px; }
.feature-text p { color: var(--ink-2); margin: 0; font-size: 1rem; }
.feature-shots {
  margin-top: auto; flex: none;
  background: var(--card-tint);
  display: flex; justify-content: center; align-items: flex-start; gap: 18px;
  padding: 32px 24px 0;
  height: 380px; overflow: hidden;
}
.feature-shots > img { width: min(62%, 250px); height: auto; flex: none; }
.feature-shots--pair > img { width: min(44%, 210px); }
.feature-shots--pair > img:nth-child(2) { margin-top: 40px; }
@media (max-width: 860px) {
  .duo { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .feature-text { padding: 26px 24px 24px; }
  .feature-shots { height: 320px; padding-top: 26px; }
}

/* --------------------------------------------------------- privacy ---- */

.privacy { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.privacy-grid {
  display: grid; gap: clamp(40px, 6vw, 96px);
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center;
}
.privacy-copy .section-head { margin-bottom: 36px; }
.privacy-visual { position: relative; display: flex; justify-content: center; padding: 20px 0; }
.privacy-visual img { position: relative; z-index: 1; width: min(300px, 64vw); height: auto; }
.privacy-disc {
  position: absolute; left: 50%; top: 50%;
  width: min(430px, 100%); aspect-ratio: 1; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: var(--tint);
}
.chip-plane { left: 50%; bottom: 13%; transform: translateX(-50%); }

.points { list-style: none; display: grid; gap: 20px; }
.points li { display: grid; grid-template-columns: 30px 1fr; gap: 14px; align-items: start; }
.points .check {
  width: 30px; height: 30px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--tint); color: var(--blue);
}
.points b { display: block; font-weight: 600; line-height: 1.4; padding-top: 3px; }
.points span.sub { display: block; color: var(--ink-2); font-size: .95em; margin-top: 2px; }

@media (min-width: 1000px) {
  .points { grid-template-columns: 1fr 1fr; column-gap: 32px; row-gap: 24px; }
}
@media (max-width: 900px) {
  .privacy-grid { grid-template-columns: 1fr; }
  .privacy-copy { order: -1; }
}

/* ------------------------------------------------------ photoverse ---- */

.photoverse { background: var(--dark); color: var(--on-dark); overflow: hidden; }
.photoverse .eyebrow { color: var(--blue-light); }
.photoverse .eyebrow::before { background: var(--blue-light); }
.photoverse .section-head p { color: var(--on-dark-2); }
.pv-frame { max-width: 1040px; margin: 0 auto; background: var(--dark-2); border: 1px solid var(--on-dark-line); box-shadow: 0 30px 70px rgba(0, 0, 0, .45); }
.slot-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  color: var(--on-dark-2); font-size: .9375rem; text-align: center; padding: 24px;
}
/* A scatter of points of light, drawn with tiny radial dots (no gradient fill) */
.pv-dots {
  position: absolute; inset: 0; opacity: .7;
  background-image:
    radial-gradient(circle at 23% 41%, rgba(244, 246, 250, .95) 0 1.4px, transparent 2px),
    radial-gradient(circle at 71% 18%, rgba(61, 143, 224, .95) 0 2px, transparent 2.6px),
    radial-gradient(circle at 47% 77%, rgba(244, 246, 250, .6) 0 1px, transparent 1.5px),
    radial-gradient(circle at 88% 63%, rgba(61, 143, 224, .7) 0 1.3px, transparent 1.8px),
    radial-gradient(circle at 9% 12%, rgba(244, 246, 250, .45) 0 .9px, transparent 1.3px);
  background-size: 113px 89px, 167px 131px, 71px 59px, 139px 103px, 43px 53px;
  -webkit-mask-image: radial-gradient(ellipse 55% 60% at 50% 50%, #000 0%, transparent 75%);
          mask-image: radial-gradient(ellipse 55% 60% at 50% 50%, #000 0%, transparent 75%);
}
.slot-placeholder .ring {
  position: relative;
  width: 68px; height: 68px; border-radius: 50%;
  background: rgba(244, 246, 250, .08);
  border: 1px solid rgba(244, 246, 250, .28);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--on-dark);
}
.slot-placeholder > span:last-child { position: relative; }

.pv-points {
  list-style: none;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 22px);
  max-width: 1040px; margin: clamp(32px, 4vw, 48px) auto 0;
}
.pv-points li {
  background: var(--dark-2);
  border: 1px solid var(--on-dark-line);
  border-radius: var(--radius-sm);
  padding: 26px 26px 28px;
}
.pv-points h3 { font-size: 1.25rem; margin-bottom: 8px; }
.pv-points p { color: var(--on-dark-2); margin: 0; font-size: 1rem; }
.pv-icon {
  width: 44px; height: 44px; border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(61, 143, 224, .16); color: var(--blue-light);
  margin-bottom: 18px;
}
@media (max-width: 860px) { .pv-points { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------- how ---- */

.steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 22px); }
.step {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.step-text { padding: 30px 28px 28px; }
.step .num {
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--blue); color: #fff; margin-bottom: 20px;
}
.step h3 { margin-bottom: 10px; }
.step p { color: var(--ink-2); margin: 0; font-size: 1rem; }
.step-shot {
  margin-top: auto; flex: none;
  background: var(--card-tint);
  display: flex; justify-content: center; align-items: center;
  padding: 28px 24px;
}
/* The whole phone shows: what each step needs (Allow all, the scan's progress) is in its lower half */
.step-shot > img { width: min(70%, 230px); height: auto; flex: none; }
/* Tablet: one card per row, text beside its screen */
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
  .step { flex-direction: row; }
  .step-text { flex: 1; align-self: center; padding: 28px; }
  .step-shot { flex: 0 0 42%; margin-top: 0; }
  .step-shot > img { width: min(78%, 200px); }
}
@media (max-width: 560px) {
  .step { flex-direction: column; }
  .step-text { padding: 26px 24px 24px; align-self: stretch; }
  .step-shot { flex: none; }
  .step-shot > img { width: min(62%, 210px); }
}

/* ------------------------------------------------------------- faq ---- */

.faq { padding-top: 0; }
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (min-width: 901px) { .faq .section-head { position: sticky; top: calc(var(--nav-h) + 32px); } }
.faq-list {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 8px clamp(18px, 3vw, 32px);
}
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 0;
  font-weight: 600; font-size: 1.0625rem; line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {   /* caret */
  content: ""; flex: none;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230D76BF' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(180deg); }
.faq summary:hover { color: var(--blue-deep); }
.faq summary:focus-visible { outline-offset: -2px; }
.faq-body p { color: var(--ink-2); margin: -4px 0 22px; font-size: 1rem; max-width: 40em; }
.faq-body a { color: var(--blue-deep); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; } .faq .section-head { margin-bottom: 0; } }

/* ------------------------------------------------------------- get ---- */

.get { padding-top: 0; }
.get-card {
  text-align: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 8px);
  box-shadow: var(--shadow);
  padding: clamp(56px, 8vw, 104px) clamp(20px, 5vw, 64px);
  overflow: hidden;
}
.get-card.has-pattern::before {
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000 0%, rgba(0, 0, 0, .5) 45%, transparent 78%);
          mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000 0%, rgba(0, 0, 0, .5) 45%, transparent 78%);
}
.get-logo { width: 72px; height: 72px; margin: 0 auto 24px; }
.get h2 { max-width: 16ch; margin: 0 auto 16px; }
.get-lead { color: var(--ink-2); max-width: 32em; margin: 0 auto 32px; font-size: clamp(1.0625rem, 1.5vw, 1.1875rem); }
.get .play { justify-content: center; }
.get .fine { margin: 26px 0 0; color: var(--ink-2); font-size: .9375rem; }

/* ---------------------------------------------------------- footer ---- */

.footer { border-top: 1px solid var(--line); padding: 64px 0 40px; background: var(--page); font-size: .9375rem; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-brand { max-width: 340px; }
.footer-brand p { color: var(--ink-2); margin: 14px 0 0; }
.footer-cols { display: flex; gap: clamp(32px, 6vw, 80px); flex-wrap: wrap; }
.footer-col h2 { font-family: var(--font-body); font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 14px; }
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { color: var(--ink); }
.footer-col a:hover { color: var(--blue-deep); text-decoration: underline; text-underline-offset: 3px; }
.footer-meta {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 10px 32px; flex-wrap: wrap;
  color: var(--ink-2); font-size: .875rem;
}
.footer-meta p { margin: 0; }
.footer-meta a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(18, 32, 64, .25); }
.footer-meta a:hover { color: var(--blue-deep); }

/* ---------------------------------------------------- video dialog ---- */

.film-dialog {
  padding: 0; border: 0; background: transparent; overflow: visible;
  width: min(92vw, 1100px, calc((100vh - 120px) * 16 / 9));
  max-width: none; max-height: none;
}
.film-dialog::backdrop { background: rgba(11, 13, 18, .82); }
.film-dialog .frame { box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.film-dialog video { object-fit: contain; background: #000; }
.film-dialog.is-tall { width: min(92vw, calc((100vh - 120px) * 9 / 16)); }
.film-dialog.is-tall .frame { aspect-ratio: 9 / 16; }
.film-close {
  position: absolute; right: 0; top: -56px;
  width: 44px; height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .25);
  cursor: pointer;
}
.film-close:hover { background: rgba(255, 255, 255, .26); }
body.dialog-open { overflow: hidden; }

/* ---------------------------------------------------- legal pages ---- */

.legal-wrap { max-width: 780px; margin: 0 auto; padding: clamp(48px, 7vw, 88px) var(--gutter) clamp(72px, 9vw, 120px); }
/* The link to the same page in the other language (English / Arabic), above the title */
.legal-wrap .lang-switch { margin: 0 0 20px; font-size: .95rem; font-weight: 500; }
/* Long addresses (the GDPR representative's portal link) break instead of widening the page
   on narrow phones */
.legal-wrap a { overflow-wrap: anywhere; }
.legal-wrap h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 18px; }
.legal-meta { color: var(--ink-2); font-size: .95rem; margin-bottom: 40px; }
.legal-wrap h2 { font-size: clamp(1.35rem, 2.4vw, 1.65rem); letter-spacing: -0.02em; margin: 48px 0 14px; }
.legal-wrap h3 { font-size: 1.15rem; margin: 28px 0 10px; }
.legal-wrap p, .legal-wrap li { color: #2E3542; font-size: 1rem; }
.legal-wrap ul, .legal-wrap ol { padding-left: 24px; margin: 10px 0 18px; }
.legal-wrap li { margin-bottom: 8px; }
.legal-wrap p { margin-bottom: 14px; }
.legal-wrap a { color: var(--blue-deep); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(13, 118, 191, .35); }
.legal-wrap a:hover { text-decoration-color: currentColor; }
.legal-wrap strong, .legal-wrap b { color: var(--ink); font-weight: 600; }
.legal-wrap table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: .95rem; background: var(--card); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-sm); }
.legal-wrap th, .legal-wrap td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); color: #2E3542; }
.legal-wrap th { background: var(--card-tint); color: var(--ink); font-weight: 600; }
.legal-wrap tr:last-child td { border-bottom: 0; }
@media (max-width: 600px) { .legal-wrap table { display: block; overflow-x: auto; } }

mark.ph {
  background: #FFF1B8; color: #5A4300;
  padding: 1px 6px; border-radius: 6px;
  font-weight: 500;
}

.legal-summary {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 28px 30px 12px; margin-bottom: 16px;
}
.legal-summary h2 { margin: 0 0 12px; font-size: 1.25rem; }
@media (max-width: 600px) {
  .legal-summary { padding: 22px 20px 6px; }
  .legal-summary ul { padding-left: 20px; }
}

/* ------------------------------------------------------------- 404 ---- */

.err { min-height: calc(100vh - var(--nav-h) - 220px); display: flex; align-items: center; text-align: center; }
.err .wrap { padding-top: 72px; padding-bottom: 96px; }
.err-code { font-family: var(--font-display); font-weight: 500; font-size: clamp(4.5rem, 14vw, 8rem); letter-spacing: -0.04em; line-height: 1; color: var(--blue); margin-bottom: 18px; }
.err h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 14px; }
.err p { color: var(--ink-2); margin-bottom: 30px; }
.err .err-fr, .err .err-ar { margin: 28px 0 0; }
.err .err-fr + .err-ar { margin-top: 10px; }
.err .err-fr a, .err .err-ar a { color: var(--blue-deep); text-decoration: underline; text-underline-offset: 3px; }

/* ---------------------------------------------------------- motion ---- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .tile:hover, .tile:hover .tile-shot img { transform: none; }
  .tile:hover .tile-shot img { transform: translateX(-50%); }
  .tile:hover .tile-shot--full img { transform: none; }
}
