/* ─── Tokens ─────────────────────────────────────────────────────── */
:root {
  --accent: #FF3B30;
  --accent-soft: rgba(255, 59, 48, 0.12);
  --accent-glow: rgba(255, 59, 48, 0.35);

  --bg: #0A0A0F;
  --bg-elev: #14141C;
  --bg-elev-2: #1B1B26;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  --text: #FFFFFF;
  --text-muted: #9A9AA5;
  --text-dim: #6E6E78;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;

  --container: 1180px;

  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;
}

/* ─── Reset & Base ───────────────────────────────────────────────── */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--text); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }
ul { list-style: none; }
button { background: none; border: none; color: inherit; cursor: pointer; font: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 768px) {
  .container { padding: 0 40px; }
}

/* ─── Eyebrow / labels ───────────────────────────────────────────── */
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.eyebrow--center { text-align: center; }

.section-title {
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 60px;
}

/* ─── The brand name, shown as a name ("Yomu Originals") ─────────────
   Two weights: "Yomu" bold, the rest regular, in the language's own order (brand_name_html() in i18n/_loader.php builds the
   markup from the translated name). The span sets the weight itself, so the rest is regular inside a bold heading, brand
   link or label too, and the strong is bold wherever it sits. Size, colour, case and spacing come from the context. */
.wm { font-weight: 400; }
.wm strong { font-weight: 700; }

/* ─── Navigation ─────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0;
  z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px;
  background: rgba(10, 10, 15, 0.7);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}
@media (min-width: 768px) { .nav { padding: 18px 40px; } }

.nav__brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 18px; font-weight: 700; letter-spacing: -0.01em;
  color: var(--text);
}
.nav__brand:hover { color: var(--text); }
.nav__icon { width: 32px; height: 32px; border-radius: 7px; }

.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a { font-size: 15px; font-weight: 500; color: var(--text-muted); }
.nav__links a:hover { color: var(--text); }

.nav__cta {
  background: var(--accent);
  color: white !important;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 14px !important;
  transition: filter .2s, transform .2s;
}
.nav__cta:hover { filter: brightness(1.1); }

@media (max-width: 640px) {
  .nav__links { gap: 12px; }
  .nav__links > a:not(.nav__cta) { display: none; }
  .nav__lang summary span { display: none; }
  .nav__lang-trigger > span { display: none; }
}

/* The Originals link is a fourth text link, and in the languages with long words the row does not fit with it:
   measured in a browser in all 39 languages (2026-10-05), with a desktop window's 15px scrollbar, the four links
   fit from 901px up (Vietnamese is the widest). So the link goes below the site's desktop width, 1024px, in every
   language, the way all the text links go below 640px. */
@media (max-width: 1023px) {
  .nav__links > a.nav__originals { display: none; }
}

/* ─── Top nav language dropdown ──────────────────────────────────── */
.nav__lang { position: relative; }

.nav__lang-trigger {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: inherit;
  transition: color .2s, border-color .2s, background .2s;
}
.nav__lang-trigger:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--bg-elev);
}
.nav__lang-trigger[aria-expanded="true"] {
  color: var(--text);
  border-color: var(--accent);
}

.nav__lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 8px;
  width: 280px;
  max-height: 70vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}
.nav__lang-menu[hidden] { display: none; }
[dir="rtl"] .nav__lang-menu { right: auto; left: 0; }

.nav__lang-menu a {
  display: block;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--text-muted);
  border-radius: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color .15s, background .15s;
}
.nav__lang-menu a:hover {
  background: var(--bg-elev-2);
  color: var(--text);
}
.nav__lang-menu a[aria-current="page"] {
  color: var(--accent);
  background: var(--accent-soft);
  font-weight: 600;
}

@media (max-width: 540px) {
  .nav__lang-menu {
    position: fixed;
    top: auto; bottom: 0;
    left: 0; right: 0;
    width: 100%;
    border-radius: 16px 16px 0 0;
    max-height: 60vh;
  }
}

/* The bottom sheet above hangs off the screen: the nav is blurred (backdrop-filter), which makes the nav, not the window, the
   box a fixed child is placed in, so "bottom: 0" is the nav's bottom edge and the sheet rises out of the top of the screen.
   On a phone the list is a panel under the nav instead, as wide as the nav's content (the Originals site's fix). */
@media (max-width: 540px) {
  .nav__lang { position: static; }
  .nav__lang-menu, [dir="rtl"] .nav__lang-menu {
    position: absolute;
    top: calc(100% + 6px); bottom: auto;
    left: 14px; right: 14px;
    width: auto;
    max-height: min(70vh, 460px);
    border-radius: 14px;
  }
}

/* ─── Language detection popup ───────────────────────────────────── */
.lang-popup {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  z-index: 1000;
  opacity: 0;
  transition: opacity .25s ease;
}
.lang-popup--show { opacity: 1; }
.lang-popup__sheet {
  position: relative;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 36px 28px 28px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  transform: translateY(8px) scale(0.98);
  transition: transform .25s ease;
}
.lang-popup--show .lang-popup__sheet { transform: translateY(0) scale(1); }
.lang-popup__close {
  position: absolute;
  top: 12px; right: 12px;
  width: 32px; height: 32px;
  border-radius: 50%;
  font-size: 22px; line-height: 1;
  color: var(--text-muted);
  transition: background .2s, color .2s;
}
[dir="rtl"] .lang-popup__close { right: auto; left: 12px; }
.lang-popup__close:hover { background: var(--bg-elev-2); color: var(--text); }
.lang-popup__icon {
  width: 64px; height: 64px;
  margin: 0 auto 16px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.lang-popup__sheet h2 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.lang-popup__sheet p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 24px;
}
.lang-popup__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lang-popup__btn {
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  background: var(--bg-elev-2);
  color: var(--text);
  transition: background .2s, transform .15s;
}
.lang-popup__btn:hover { background: rgba(255,255,255,0.08); transform: translateY(-1px); }
.lang-popup__btn--primary {
  background: var(--accent);
  color: white;
}
.lang-popup__btn--primary:hover { filter: brightness(1.1); background: var(--accent); }

/* ─── Hero ───────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 80px 0 60px;
  text-align: center;
  overflow: hidden;
}
@media (min-width: 768px) { .hero { padding: 120px 0 80px; } }

.hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 500px at 50% 0%, rgba(255, 59, 48, 0.18) 0%, transparent 60%),
    radial-gradient(600px 400px at 80% 30%, rgba(180, 60, 220, 0.10) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.hero > .container { position: relative; z-index: 1; }

/* The link to the Yomu Originals site at the top of the hero. Below 1024px the nav link is hidden and the site has no menu,
   so this is what a phone or tablet visitor meets first; from 1024px up the nav link is there and this one is not. */
.hero__originals { display: none; margin: 0 0 22px; }
@media (max-width: 1023px) { .hero__originals { display: block; } }
.hero__originals a {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  max-width: 100%;
  padding: 9px 14px 9px 18px;
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 14px; line-height: 1.35;
  color: var(--text-muted);
  text-align: center;
  transition: border-color .2s, background .2s, color .2s;
}
.hero__originals a:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--text-muted); }
.hero__originals-text { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 8px; min-width: 0; }
.hero__originals .wm { color: var(--text); }
.hero__originals svg { flex: none; color: var(--accent); }
[dir="rtl"] .hero__originals svg { transform: scaleX(-1); }

.hero__title {
  font-size: clamp(44px, 7vw, 84px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 16px auto 24px;
  max-width: 14ch;
  background: linear-gradient(180deg, #fff 0%, #c9c9d4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__subtitle {
  font-size: clamp(17px, 2vw, 21px);
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 40px;
  line-height: 1.5;
}

.hero__cta {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 60px;
}

/* ─── Buttons ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 500;
  transition: transform .15s, filter .15s, background .15s;
  border: 1px solid transparent;
}
.btn:hover { transform: translateY(-1px); }

.btn--app-store {
  background: #fff;
  color: #000;
  padding: 12px 18px;
}
.btn--app-store:hover { background: #f0f0f0; color: #000; filter: none; }
.btn--app-store svg { color: #000; }

.btn span { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; }
.btn__sub { font-size: 11px; font-weight: 400; opacity: 0.75; letter-spacing: 0.02em; }
.btn__main { font-size: 17px; font-weight: 600; }

/* ─── Hero stage (device collage) ────────────────────────────────── */
/* The app's own screens, plain screenshots (portrait): an iPad in the middle and an iPhone each side of it, in front, the
   phones slightly turned. Each is placed by its own width around the stage's middle, so the group stays centred whatever
   the screens' sizes. The screens are dark like the page, so each has a light hairline (and a deep shadow) to read as a device. */
.hero__stage {
  position: relative;
  margin: 60px auto 0;
  max-width: 1040px;
  height: clamp(340px, 46vw, 560px);
  display: flex; justify-content: center; align-items: center;
}

.hero__stage img {
  position: absolute;
  border-radius: 14px;
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.2);
  background: #000;
  object-fit: cover;
}

.hero__stage .stage__ipad {
  height: 100%;
  width: auto;
  aspect-ratio: 3/4;
  bottom: 2%;
  left: 50%;
  z-index: 1;
  border-radius: 24px;
  transform: translateX(-50%);
}
.hero__stage .stage__iphone {
  height: 74%;
  width: auto;
  aspect-ratio: 9/19.5;
  bottom: -6%;
  left: 50%;
  z-index: 3;
  border-radius: 34px;
  transform: translateX(62%) rotate(5deg);
  transform-origin: 50% 100%;
}
.hero__stage .stage__iphone--left {
  z-index: 2;
  transform: translateX(-162%) rotate(-5deg);
}

@media (max-width: 640px) {
  .hero__stage { height: 340px; margin-top: 30px; }
  .hero__stage .stage__ipad { height: 94%; border-radius: 16px; }
  .hero__stage .stage__iphone { height: 70%; border-radius: 22px; bottom: -8%; transform: translateX(50%) rotate(5deg); }
  .hero__stage .stage__iphone--left { transform: translateX(-150%) rotate(-5deg); }
}

/* ─── Stats ──────────────────────────────────────────────────────── */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  padding: 100px 24px 80px;
  text-align: center;
}
@media (min-width: 768px) {
  .stats { grid-template-columns: repeat(4, 1fr); padding: 120px 40px 100px; }
}

.stat__num {
  display: block;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, #fff, #888);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
}
.stat__label {
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* ─── Features grid ──────────────────────────────────────────────── */
.features { padding: 60px 24px 100px; }

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 640px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform .2s, border-color .2s, background .2s;
}
.card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  background: var(--bg-elev-2);
}

.card__icon {
  width: 56px; height: 56px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}

.card h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.card p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.55;
}

/* ─── Showcase ───────────────────────────────────────────────────── */
.showcase {
  padding: 80px 0;
}
.showcase__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  align-items: center;
}
@media (min-width: 900px) {
  .showcase__inner { grid-template-columns: 1fr 1fr; gap: 80px; }
}
.showcase--reverse .showcase__inner { direction: ltr; }
@media (min-width: 900px) {
  .showcase--reverse .showcase__copy { order: 2; }
  .showcase--reverse .showcase__media { order: 1; }
}

.showcase__copy h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-bottom: 20px;
}
.showcase__lede {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.55;
}

.bullets li {
  padding: 10px 0 10px 28px;
  position: relative;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}
.bullets li:first-child { border-top: none; }
.bullets li::before {
  content: "";
  position: absolute;
  left: 4px; top: 17px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1.5px solid var(--accent);
}
.bullets li::after {
  content: "";
  position: absolute;
  left: 8px; top: 21px;
  width: 5px; height: 9px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
}

.showcase__media { display: flex; justify-content: center; }

.device {
  border-radius: 14px;
  background: #000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--border-strong);
}
.device--iphone {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 9/19.5;
  border-radius: 38px;
  object-fit: cover;
}
.device--ipad {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 3/4;
  border-radius: 22px;
  object-fit: cover;
}
.device--mac {
  width: 100%;
  max-width: 600px;
  aspect-ratio: 16/10;
  border-radius: 14px;
  object-fit: cover;
}

/* ─── Sources ────────────────────────────────────────────────────── */
.sources { padding: 100px 24px; background: linear-gradient(180deg, transparent, var(--bg-elev) 30%, var(--bg-elev) 70%, transparent); }

.sources__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 0;
}
@media (min-width: 900px) { .sources__grid { grid-template-columns: repeat(3, 1fr); } }

.source-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color .2s;
}
.source-card:hover { border-color: var(--border-strong); }

.source-card h3 {
  font-size: 22px; font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.source-card > p {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 20px;
}
.source-card ul { display: flex; flex-direction: column; gap: 8px; }
.source-card li {
  font-size: 15px;
  color: var(--text-muted);
  padding-left: 20px;
  position: relative;
}
.source-card li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 500;
}
.source-card strong { color: var(--text); font-weight: 600; }

/* ─── Languages ──────────────────────────────────────────────────── */
.languages { padding: 100px 24px; text-align: center; }

.languages__lede {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 580px;
  margin: -30px auto 50px;
  line-height: 1.55;
}

.languages__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  max-width: 880px;
  margin: 0 auto;
}
@media (min-width: 540px) { .languages__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .languages__grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .languages__grid { grid-template-columns: repeat(5, 1fr); } }

.languages__grid span {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 14px;
  color: var(--text-muted);
  transition: color .2s, border-color .2s;
}
.languages__grid span:hover { color: var(--text); border-color: var(--accent); }

/* ─── CTA ────────────────────────────────────────────────────────── */
.cta {
  padding: 120px 24px;
  text-align: center;
  background:
    radial-gradient(800px 400px at 50% 50%, rgba(255, 59, 48, 0.20) 0%, transparent 60%);
}
.cta h2 {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.cta p {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 40px;
}

/* ─── Footer ─────────────────────────────────────────────────────── */
.footer {
  padding: 60px 24px 80px;
  border-top: 1px solid var(--border);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  text-align: center;
}
@media (min-width: 768px) {
  .footer__inner {
    grid-template-columns: 1fr auto 1fr;
    text-align: left;
    align-items: center;
  }
}

.footer__brand {
  display: flex; align-items: center; gap: 14px;
  justify-content: center;
}
@media (min-width: 768px) { .footer__brand { justify-content: flex-start; } }
.footer__icon { width: 44px; height: 44px; border-radius: 10px; }
/* the brand line: this site's <strong>Yomu</strong>, or the Originals site's wordmark; never the bold token inside a wordmark */
.footer__brand div > strong, .footer__brand .wm { font-size: 16px; display: block; }
.footer__brand p { color: var(--text-muted); font-size: 14px; }

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  justify-content: center;
}
.footer__links a {
  color: var(--text-muted);
  font-size: 15px;
  transition: color .2s;
}
.footer__links a:hover { color: var(--text); }

.footer__legal {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.6;
  grid-column: 1 / -1;
  text-align: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* Footer language switcher */
.footer__lang {
  grid-column: 1 / -1;
  text-align: center;
  margin-top: 8px;
}
.footer__lang summary {
  cursor: pointer;
  list-style: none;
  font-size: 13px;
  color: var(--text-muted);
  padding: 8px 16px;
  display: inline-block;
  border-radius: 999px;
  border: 1px solid var(--border);
  transition: border-color .2s, color .2s;
}
.footer__lang summary::-webkit-details-marker { display: none; }
.footer__lang summary:hover { color: var(--text); border-color: var(--border-strong); }
.footer__lang-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 18px;
  margin-top: 24px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 640px) { .footer__lang-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .footer__lang-grid { grid-template-columns: repeat(4, 1fr); } }
.footer__lang-grid a {
  font-size: 13px;
  color: var(--text-muted);
  padding: 4px 0;
  text-align: left;
}
.footer__lang-grid a[aria-current="page"] { color: var(--accent); font-weight: 600; }

/* Legal pages */
.legal { padding: 80px 24px 120px; max-width: 760px; margin: 0 auto; }
.legal h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 700; letter-spacing: -0.03em; margin: 0 0 16px; }
.legal .meta { color: var(--text-muted); font-size: 14px; margin-bottom: 40px; }
.legal h2 { font-size: 22px; font-weight: 600; margin: 40px 0 12px; letter-spacing: -0.01em; }
.legal p, .legal li { color: var(--text-muted); line-height: 1.7; }
.legal ul { padding-left: 20px; margin: 8px 0 16px; }
.legal ul li { list-style: disc; margin: 6px 0; }
.legal a { color: var(--accent); }
.legal-back { margin-top: 60px; }
.legal pre { background: var(--bg-elev); border: 1px solid var(--border); border-radius: 12px; padding: 20px 24px; overflow-x: auto; margin: 12px 0 24px; }
.legal code { font-family: 'SF Mono', ui-monospace, monospace; font-size: 13px; color: var(--text); }
.legal p code { background: var(--bg-elev); padding: 2px 6px; border-radius: 4px; font-size: 13px; }
.spec-table { width: 100%; border-collapse: collapse; margin: 12px 0 24px; }
.spec-table th { text-align: left; font-size: 13px; font-weight: 600; color: var(--text); padding: 10px 12px; border-bottom: 2px solid var(--border); }
.spec-table td { font-size: 14px; color: var(--text-muted); padding: 10px 12px; border-bottom: 1px solid var(--border); }
.spec-table td:first-child { white-space: nowrap; }

/* Responsive <picture> wrappers behave like their <img>; the width/height
   attributes are only intrinsic-size hints, the CSS aspect-ratio wins. */
picture { display: contents; }
.hero__stage img, .device { height: auto; }

/* ─── About (entity summary) ─────────────────────────────────────── */
.about { padding: 0 24px 60px; text-align: center; }
.about__text {
  max-width: 820px;
  margin: 0 auto;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.6;
  color: var(--text-muted);
}

/* ─── FAQ ────────────────────────────────────────────────────────── */
.faq { padding: 100px 24px; }
.faq__list { max-width: 820px; margin: 0 auto; border-bottom: 1px solid var(--border); }
.faq details { border-top: 1px solid var(--border); }
.faq summary {
  cursor: pointer;
  list-style: none;
  position: relative;
  padding: 20px 44px 20px 0;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
}
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px; top: 14px;
  font-size: 30px;
  font-weight: 300;
  line-height: 1;
  color: var(--accent);
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p {
  color: var(--text-muted);
  line-height: 1.65;
  padding: 0 44px 22px 0;
}
[dir="rtl"] .faq summary { padding: 20px 0 20px 44px; }
[dir="rtl"] .faq summary::after { right: auto; left: 4px; }
[dir="rtl"] .faq details p { padding: 0 0 22px 44px; }

/* ─── 404 ────────────────────────────────────────────────────────── */
.notfound { min-height: 60vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 80px 24px; }
.notfound h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 700; letter-spacing: -0.03em; margin-bottom: 12px; }
.notfound > div > p { color: var(--text-muted); max-width: 520px; margin: 0 auto 32px; }
.notfound__links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.notfound__links .btn { border-color: var(--border-strong); }

/* RTL adjustments */
[dir="rtl"] .nav__brand img,
[dir="rtl"] .footer__icon { margin: 0; }
[dir="rtl"] .hero__stage .stage__ipad { left: auto; right: 50%; transform: translateX(50%); }
[dir="rtl"] .hero__stage .stage__iphone { left: auto; right: 50%; transform: translateX(-62%) rotate(-5deg); }
[dir="rtl"] .hero__stage .stage__iphone--left { transform: translateX(162%) rotate(5deg); }
@media (max-width: 640px) {
  [dir="rtl"] .hero__stage .stage__iphone { transform: translateX(-50%) rotate(-5deg); }
  [dir="rtl"] .hero__stage .stage__iphone--left { transform: translateX(150%) rotate(5deg); }
}
[dir="rtl"] .bullets li { padding: 10px 28px 10px 0; }
[dir="rtl"] .bullets li::before { left: auto; right: 4px; }
[dir="rtl"] .bullets li::after { left: auto; right: 8px; transform: rotate(-45deg); border-left: 2px solid var(--accent); border-right: none; border-bottom: 2px solid var(--accent); }
[dir="rtl"] .source-card li { padding-left: 0; padding-right: 20px; }
[dir="rtl"] .source-card li::before { left: auto; right: 0; content: "←"; }

/* ─── Landing pages (landing.php) ────────────────────────────────── */
/* A landing page's heading is a phrase, not two short lines: smaller and wider than the home page's. */
.hero--landing { padding-bottom: 24px; }
.hero--landing .hero__title { font-size: clamp(34px, 5vw, 60px); line-height: 1.08; max-width: 20ch; }
.bullets--titled li strong { display: block; color: var(--text); font-weight: 600; margin-bottom: 2px; }
.steps { padding: 72px 0; }
.steps__list {
  counter-reset: step;
  list-style: none;
  max-width: 720px;
  margin: 0 auto;
  padding: 0;
}
.steps__list li {
  counter-increment: step;
  position: relative;
  padding: 16px 0 16px 56px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.5;
}
.steps__list li:first-child { border-top: none; }
.steps__list li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 14px;
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft);
  border: 1.5px solid var(--accent);
  color: var(--text);
  font-weight: 600; font-size: 15px;
}
.steps__note {
  max-width: 720px;
  margin: 28px auto 0;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text-muted);
  font-size: 15px;
  text-align: center;
}
.related { padding: 24px 0 72px; }
.related__list {
  list-style: none;
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 10px;
  max-width: 900px;
  margin: 0 auto;
  padding: 0;
}
.related__list a {
  display: inline-block;
  padding: 10px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  color: var(--text-muted);
  font-size: 15px;
  transition: border-color .2s, color .2s;
}
.related__list a:hover { border-color: var(--accent); color: var(--text); }
/* A row of its own under the brand and the main links: as the third item of the footer's three-column grid it sat in
   the narrow right-hand column and wrapped into a ragged stack (seen live on 2026-11-11). */
.footer__links--landing { grid-column: 1 / -1; font-size: 13px; opacity: .85; }
/* Right to left (the Arabic landing pages): the step number sits at the start of the line, on the right. */
[dir="rtl"] .steps__list li { padding: 16px 56px 16px 0; }
[dir="rtl"] .steps__list li::before { left: auto; right: 0; }

/* ─── Yomu for Android: the keep-me-posted form (android.php) ─────── */
.notify { max-width: 520px; margin: 8px auto 0; text-align: start; }
.notify__label { display: block; font-size: 14px; color: var(--text-muted); margin-bottom: 8px; }
.notify__row { display: flex; gap: 10px; flex-wrap: wrap; }
.notify__input {
  flex: 1 1 240px; min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font: inherit; font-size: 16px;   /* 16px: iOS doesn't zoom the page on focus */
}
.notify__input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.notify__button {
  flex: 0 0 auto;
  padding: 14px 22px;
  border: none; border-radius: 14px;
  background: var(--accent); color: #fff;
  font: inherit; font-size: 16px; font-weight: 600;
  cursor: pointer;
}
.notify__button:hover { filter: brightness(1.1); }
.notify__extra { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notify__error { margin-top: 12px; color: #ff8a80; font-size: 14px; }
.notify__small { margin-top: 14px; color: var(--text-muted); font-size: 13px; line-height: 1.5; }
.notify__small a, .hero__subtitle a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
