/*
 * Styles of the landing pages (index.html, tr/, ar/, de/, fr/) and of 404.html.
 *
 * Colours are roles of docs/design/tokens/design-tokens.json (theme.light and theme.dark);
 * check_site.py recomputes the contrast of every text and background pair used here. Sizes
 * are the steps of the same file: the type scale (13, 15, 17, 22, 26, 30 and 52 px, fluid
 * between two steps), the 4-pt spacing scale and the radii. Everything is local: the two font
 * files sit in assets/fonts/ and nothing is loaded from another host. Layout uses logical
 * properties only, so the Arabic page mirrors by itself. No script.
 */

@font-face {
  font-family: "Readex Pro";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/ReadexPro-Regular.woff") format("woff");
}

@font-face {
  font-family: "Readex Pro";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/ReadexPro-Medium.woff") format("woff");
}

:root {
  color-scheme: light dark;

  /* theme.light */
  --canvas: #f4f1ea; /* bg.canvas, sand.100 (Paper) */
  --surface: #fbf9f4; /* bg.surface, sand.50 */
  --sunken: #e9e4d8; /* bg.surface-sunken, sand.200 */
  --tint: #e6eeeb; /* bg.surface-selected, sage.100 */
  --text: #0e3a3f; /* text.primary, ink.800 (Night ink) */
  --text-2: #4f6866; /* text.secondary, slate.500 */
  --accent: #8a5a14; /* text.accent, dawn.700 */
  --link: #1f4f55; /* text.link, ink.700 */
  --border: #e3ded2; /* border.subtle, sand.300 */
  --border-strong: #6b807d; /* border.strong, slate.400 */
  --focus: #8a5a14; /* border.focus, dawn.700 */
  --brand-bg: #0e3a3f; /* bg.brand, ink.800 */
  --brand-rule: #33666b; /* ink.600, the rules on the brand band */
  --on-brand: #f4f1ea; /* text.on-brand, sand.100 */
  --on-brand-2: #c9d6d2; /* text.on-brand-secondary, sage.200 */
  --on-brand-accent: #e7b567; /* text.on-brand-accent, dawn.400 */
  --focus-inverse: #e7b567; /* border.focus-inverse, dawn.400 */
  --action-bg: #0e3a3f; /* action.primary-bg, ink.800 */
  --action-bg-hover: #0a2a2e; /* action.primary-bg-pressed, ink.900 */
  --action-fg: #f4f1ea; /* action.primary-fg, sand.100 */
  --note-bg: #fdf6e9; /* feedback.warning-bg, dawn.50 */
  --note-fg: #6b4510; /* feedback.warning-fg, dawn.800 */
  --note-border: #a97422; /* dawn.600 */
  --crescent: #0e3a3f; /* logo.color.light-crescent */
  --dot: #e7b567; /* logo.color.light-dot and dark-dot */

  /* The hero stage: a Deep plate with a circle behind the phone, as the store images have. */
  --stage-bg: #0a2a2e; /* ink.900 (Deep) */
  --stage-circle: #1f4f55; /* ink.700 */
  --stage-text: #f4f1ea; /* sand.100 */
  --stage-accent: #e7b567; /* dawn.400 */
  /* The frame drawn around a screen. The corners of the screen images carry this colour, so
     it is the same in both schemes. */
  --device: #0e3a3f; /* ink.800 */

  /* typography.latin, in rem (1 px token = 1/16 rem) */
  --fs-display: 3.25rem; /* display, 52 */
  --fs-headline-lg: 1.875rem; /* headline-lg, 30 */
  --fs-headline-md: 1.625rem; /* headline-md, 26 */
  --fs-title-lg: 1.375rem; /* title-lg, 22 */
  --fs-body-lg: 1.0625rem; /* body-lg and title-md, 17 */
  --fs-body-md: 0.9375rem; /* body-md, 15 */
  --fs-body-sm: 0.8125rem; /* body-sm, 13 */

  /* space, the 4-pt grid */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.25rem;
  --s-6: 1.5rem;
  --s-8: 2rem;
  --s-10: 2.5rem;
  --s-12: 3rem;
  --s-16: 4rem;
  --s-20: 5rem;

  /* radius */
  --radius-xs: 0.25rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;
  --radius-2xl: 1.5rem;
  --radius-full: 62.5rem;

  --wrap: 72rem;
  --gutter: 1.25rem; /* layout.screen-margin-compact */
  --section: var(--s-12);
}

@media (prefers-color-scheme: dark) {
  :root {
    /* theme.dark */
    --canvas: #0a2a2e; /* bg.canvas, ink.900 (Deep) */
    --surface: #0e3a3f; /* bg.surface, ink.800 */
    --sunken: #061d20; /* bg.surface-sunken, ink.950 */
    --tint: #1f4f55; /* bg.surface-selected, ink.700 */
    --text: #f4f1ea; /* text.primary, sand.100 */
    --text-2: #c9d6d2; /* text.secondary, sage.200 */
    --accent: #e7b567; /* text.accent, dawn.400 */
    --link: #f0cb8e; /* text.link, dawn.300 */
    --border: #1f4f55; /* border.subtle, ink.700 */
    --border-strong: #93b6b7; /* border.strong, ink.300 */
    --focus: #e7b567; /* border.focus, dawn.400 */
    --brand-bg: #1f4f55; /* bg.brand, ink.700 */
    --brand-rule: #4a7c80; /* ink.500 */
    --on-brand: #f4f1ea; /* text.on-brand, sand.100 */
    --on-brand-2: #c9d6d2; /* text.on-brand-secondary, sage.200 */
    --on-brand-accent: #f0cb8e; /* text.on-brand-accent, dawn.300 */
    --action-bg: #f4f1ea; /* action.primary-bg, sand.100 */
    --action-bg-hover: #e3ded2; /* action.primary-bg-pressed, sand.300 */
    --action-fg: #0e3a3f; /* action.primary-fg, ink.800 */
    --note-bg: #33210a; /* feedback.warning-bg, dawn.950 */
    --note-fg: #f3d9a6; /* feedback.warning-fg, dawn.200 */
    --note-border: #e7b567; /* dawn.400 */
    --crescent: #f4f1ea; /* logo.color.dark-crescent */
    --stage-bg: #061d20; /* ink.950 */
    --stage-circle: #1f4f55; /* ink.700 */
  }
}

@media (min-width: 37.5rem) {
  :root {
    --gutter: 1.5rem; /* layout.screen-margin-medium, from 600 px */
  }
}

@media (min-width: 52.5rem) {
  :root {
    --gutter: 2rem; /* layout.screen-margin-expanded, from 840 px */
    --section: var(--s-20);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: "Readex Pro", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    sans-serif;
  font-size: var(--fs-body-lg);
  font-weight: 400;
  line-height: 1.6;
  font-synthesis: none;
  overflow-wrap: break-word;
}

h1,
h2,
h3,
p,
ul,
figure,
address {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

address {
  font-style: normal;
}

h1,
h2,
h3,
strong,
summary {
  font-weight: 500;
}

h1,
h2,
h3 {
  overflow-wrap: anywhere;
  hyphens: auto;
  text-wrap: balance;
}

h2 {
  font-size: clamp(var(--fs-headline-md), 1.45rem + 0.8vw, var(--fs-headline-lg));
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h3 {
  font-size: var(--fs-title-lg);
  line-height: 1.3;
}

a {
  color: var(--link);
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 0.125em;
}

:focus-visible {
  outline: 0.1875rem solid var(--focus);
  outline-offset: 0.1875rem;
  border-radius: var(--radius-xs);
}

picture,
img,
svg {
  display: block;
}

.wrap {
  max-inline-size: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

main > section {
  padding-block: var(--section);
}

/* Skip link: off screen until it has the focus. */
.skip {
  position: absolute;
  inset-block-start: var(--s-2);
  inset-inline-start: var(--s-2);
  z-index: 10;
  padding: var(--s-3) var(--s-4);
  border-radius: var(--radius-md);
  background: var(--action-bg);
  color: var(--action-fg);
  transform: translateY(-200%);
}

.skip:focus {
  transform: none;
}

/* ---------------------------------------------------------------------------------------- */
/* The symbol and the lockup (design/01, "Wordmark and lockup"). Never mirrored.            */
/* ---------------------------------------------------------------------------------------- */

.symbol {
  flex: none;
}

.symbol-crescent {
  fill: var(--crescent);
}

.symbol-dot {
  fill: var(--dot);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5078125rem; /* 0.3125 x the wordmark size */
  min-block-size: 3rem;
  color: var(--text);
  text-decoration: none;
}

.brand .symbol {
  inline-size: 1.828125rem; /* 1.125 x the wordmark size */
  block-size: 1.828125rem;
}

.wordmark {
  font-size: 1.625rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.0156em;
}

/* ---------------------------------------------------------------------------------------- */
/* Header: the lockup and the language menu (a <details>, so it opens without a script).    */
/* ---------------------------------------------------------------------------------------- */

.site-header .wrap {
  display: flex;
  flex-wrap: wrap; /* with very large text the menu moves under the lockup */
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2) var(--s-4);
  padding-block: var(--s-3);
}

.lang-menu {
  position: relative;
}

.lang-menu summary {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-block-size: 2.75rem;
  padding-inline: var(--s-3) var(--s-4);
  border: 0.0625rem solid var(--border-strong);
  border-radius: var(--radius-full);
  font-size: var(--fs-body-md);
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}

.lang-menu summary::-webkit-details-marker {
  display: none;
}

/* A chevron from two borders. Physical sides on purpose: it points down in both directions. */
.lang-menu summary::after {
  content: "";
  inline-size: 0.4375rem;
  block-size: 0.4375rem;
  margin-block-end: 0.25rem;
  border-right: 0.09375rem solid currentColor;
  border-bottom: 0.09375rem solid currentColor;
  transform: rotate(45deg);
}

.lang-menu[open] summary::after {
  margin-block: 0.25rem 0;
  transform: rotate(225deg);
}

.lang-menu ul {
  position: absolute;
  inset-block-start: calc(100% + var(--s-2));
  inset-inline-end: 0;
  z-index: 5;
  min-inline-size: 12rem;
  padding: var(--s-2);
  border: 0.0625rem solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 0.25rem 0.75rem -0.125rem rgb(6 29 32 / 10%); /* shadow.level-2 */
}

.lang-menu li a {
  display: flex;
  align-items: center;
  min-block-size: 2.75rem;
  padding-inline: var(--s-3);
  border-radius: var(--radius-md);
  color: var(--text);
  font-size: var(--fs-body-md);
  text-decoration: none;
}

.lang-menu li a:hover {
  background: var(--tint);
}

.lang-menu li a[aria-current="page"] {
  background: var(--tint);
  font-weight: 500;
}

.icon {
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-fill {
  fill: currentColor;
  stroke: none;
}

.lang-menu .icon {
  inline-size: 1.25rem;
  block-size: 1.25rem;
}

/* Draft note: on the pages only while the DRAFT_NOTE switch of build_site.py is on. */
.draft {
  margin-block: 0 var(--s-6);
  padding: var(--s-3) var(--s-4);
  border: 0.0625rem solid var(--note-border);
  border-inline-start-width: 0.375rem;
  border-radius: var(--radius-xs);
  background: var(--note-bg);
  color: var(--note-fg);
  font-size: var(--fs-body-md);
}

/* ---------------------------------------------------------------------------------------- */
/* Hero: the words, and the Today screen on its stage.                                      */
/* ---------------------------------------------------------------------------------------- */

main > .hero {
  padding-block: var(--s-6) var(--section);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-10);
  align-items: center;
}

.eyebrow {
  color: var(--accent);
  font-size: var(--fs-body-md);
  font-weight: 500;
}

h1 {
  margin-block-start: var(--s-3);
  font-size: clamp(var(--fs-headline-lg), 1.1rem + 3.9vw, var(--fs-display));
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* The hero line is two sentences; each starts on its own line. */
h1 > span,
.cta-line > span {
  display: block;
}

.lede {
  margin-block-start: var(--s-5);
  max-inline-size: 38rem;
  font-size: clamp(var(--fs-body-lg), 0.9rem + 0.75vw, var(--fs-title-lg));
  line-height: 1.5;
}

.note {
  margin-block-start: var(--s-4);
  max-inline-size: 38rem;
  color: var(--text-2);
  font-size: var(--fs-body-md);
}

/* Store buttons: our own text buttons, no store artwork. */
.stores {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-block-start: var(--s-8);
}

.store {
  display: inline-grid;
  align-content: center;
  gap: 0.125rem;
  min-inline-size: 9.5rem;
  min-block-size: 4rem;
  padding: var(--s-3) var(--s-4);
  border: 0.0625rem solid transparent;
  border-radius: var(--radius-lg);
  line-height: 1.25;
  text-decoration: none;
}

.store-os {
  font-size: var(--fs-body-sm);
}

.store-name {
  font-size: 1.1875rem;
  font-weight: 500;
}

.store-note {
  font-size: var(--fs-body-sm);
  font-weight: 500;
}

a.store {
  background: var(--action-bg);
  color: var(--action-fg);
  transition: background-color 0.15s ease-out;
}

a.store:hover {
  background: var(--action-bg-hover);
}

.store--soon {
  border-color: var(--border-strong);
  background: var(--surface);
  color: var(--text);
}

.store--soon .store-os {
  color: var(--text-2);
}

.store--soon .store-note {
  color: var(--accent);
}

/* The stage: a Deep plate, a Night-ink circle and the phone coming in from the top edge,
   as the store images compose it. */
.stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  justify-items: center;
  padding: 0 var(--s-5) var(--s-8);
  border-radius: var(--radius-2xl);
  background: var(--stage-bg);
  color: var(--stage-text);
}

.stage::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset-block-start: 16%;
  inset-inline: -22%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--stage-circle);
}

.stage-phone {
  inline-size: min(74%, 18rem);
}

.stage figcaption {
  display: grid;
  gap: var(--s-1);
  padding-block-start: var(--s-6);
  text-align: center;
}

.stage .cap-title {
  font-size: var(--fs-title-lg);
  font-weight: 500;
  line-height: 1.3;
}

.stage .cap-sub {
  color: var(--stage-accent);
  font-size: var(--fs-body-md);
}

/*
 * The device frame. The numbers are the frame of the store images measured against the
 * screen: 21 px of frame around a screen 586 px wide, corners of 48 px outside and 27 px
 * inside. A padding in per cent counts from the width of the parent, which the phone fills.
 */
.phone {
  padding: 3.344%;
  border-radius: 7.64% / 3.66%;
  background: var(--device);
}

.phone img {
  inline-size: 100%;
  block-size: auto;
  border-radius: 4.61% / 2.13%;
}

/* The Today screen is shown from the next-prayer card down (store-metadata, rule S-3): its
   frame has no top edge and hangs from the top of the stage. */
.phone--open {
  padding: 0 3.373% 3.373%;
  border-radius: 0 0 7.47% 7.47% / 0 0 4.42% 4.42%;
}

.phone--open img {
  border-radius: 0 0 4.39% 4.39% / 0 0 2.47% 2.47%;
}

@media (min-width: 60rem) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: var(--s-16);
  }

  main > .hero {
    padding-block-start: var(--s-10);
  }

  .stage {
    padding-block-end: var(--s-10);
  }
}

/* ---------------------------------------------------------------------------------------- */
/* The app screens: a row that scrolls sideways on a phone and stands still on a wide screen */
/* ---------------------------------------------------------------------------------------- */

main > .screens {
  padding-block-start: 0;
}

.screens h2,
.features h2,
.plans h2 {
  margin-block-end: var(--s-8);
}

.screens-scroller {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  padding-block: var(--s-1) var(--s-4);
}

.screens-list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(66vw, 15rem);
  gap: var(--s-5);
  inline-size: max-content; /* so that the gutter after the last screen scrolls into view */
  padding-inline: var(--gutter);
}

.screens-list > li {
  scroll-snap-align: start;
}

.shot figcaption {
  display: grid;
  gap: var(--s-1);
  padding-block-start: var(--s-4);
  text-align: center;
}

.shot .cap-title {
  font-weight: 500;
  line-height: 1.35;
}

.shot .cap-sub {
  color: var(--text-2);
  font-size: var(--fs-body-md);
  line-height: 1.45;
}

@media (min-width: 52.5rem) {
  .screens-scroller {
    overflow: visible;
    padding-block: 0;
  }

  .screens-list {
    grid-auto-flow: row;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--s-8);
    inline-size: auto;
    max-inline-size: calc(var(--wrap) + 2 * var(--gutter));
    margin-inline: auto;
  }
}

@media (min-width: 70rem) {
  .screens-list {
    gap: var(--s-12);
  }
}

/* ---------------------------------------------------------------------------------------- */
/* Feature blocks: two wide, three narrow, then the notebook across the row.                */
/* ---------------------------------------------------------------------------------------- */

main > .features {
  padding-block-start: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-4);
}

.feature {
  padding: var(--s-6);
  border: 0.0625rem solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
}

.feature-icon {
  display: grid;
  place-items: center;
  inline-size: 2.75rem;
  block-size: 2.75rem;
  margin-block-end: var(--s-4);
  border-radius: 50%;
  background: var(--tint);
  color: var(--text);
}

.feature p {
  margin-block-start: var(--s-3);
}

.feature .aside {
  margin-block-start: var(--s-5);
  padding: var(--s-4) var(--s-5);
  border-radius: var(--radius-lg);
  background: var(--tint);
}

@media (min-width: 48rem) {
  .feature-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: var(--s-5);
  }

  .feature {
    padding: var(--s-8);
  }

  .feature--half {
    grid-column: span 3;
  }

  .feature--third {
    grid-column: span 2;
    padding: var(--s-6);
  }

  .feature--full {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: var(--s-10);
    align-items: center;
  }

  .feature--full .aside {
    margin-block-start: 0;
    padding: var(--s-6);
  }
}

/* ---------------------------------------------------------------------------------------- */
/* "Your records stay yours": the band in the brand colour.                                 */
/* ---------------------------------------------------------------------------------------- */

.privacy {
  background: var(--brand-bg);
  color: var(--on-brand);
}

.privacy h2 {
  color: var(--on-brand-accent);
  font-size: var(--fs-body-lg);
  line-height: 1.4;
  letter-spacing: 0;
}

.privacy .lead {
  max-inline-size: 50rem;
  margin-block-start: var(--s-3);
  font-size: clamp(var(--fs-title-lg), 1rem + 1.6vw, var(--fs-headline-lg));
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.privacy-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: var(--s-6) var(--s-10);
  margin-block-start: var(--s-10);
}

.privacy-points li {
  padding-block-start: var(--s-5);
  border-block-start: 0.0625rem solid var(--brand-rule);
  color: var(--on-brand-2);
}

.privacy .more {
  margin-block-start: var(--s-8);
}

.privacy .more a {
  display: inline-flex;
  align-items: center;
  min-block-size: 2.75rem;
  color: var(--on-brand);
  font-weight: 500;
  overflow-wrap: anywhere;
}

.privacy :focus-visible {
  outline-color: var(--focus-inverse);
}

/* ---------------------------------------------------------------------------------------- */
/* Free and Premium.                                                                        */
/* ---------------------------------------------------------------------------------------- */

.plans-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-4);
}

.plan {
  display: flex;
  flex-direction: column;
  padding: var(--s-6);
  border: 0.0625rem solid var(--border);
  border-radius: var(--radius-2xl);
  background: var(--surface);
}

.plan--premium {
  border-color: transparent;
  background: var(--tint);
}

.plan-lead {
  margin-block-end: var(--s-6);
  font-size: var(--fs-title-lg);
  font-weight: 500;
  line-height: 1.35;
}

.plan--premium .plan-lead {
  margin-block-end: var(--s-4);
}

.plan .promise {
  margin-block-start: auto;
  padding-block-start: var(--s-5);
  border-block-start: 0.0625rem solid var(--border);
  color: var(--accent);
  font-weight: 500;
}

/* Subscription details per store. */
.plan details {
  margin-block-start: var(--s-3);
  border-block-start: 0.0625rem solid var(--border-strong);
}

.plan details + details {
  margin-block-start: 0;
}

.plan summary {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  min-block-size: 3rem;
  cursor: pointer;
  list-style: none;
}

.plan summary::-webkit-details-marker {
  display: none;
}

.plan summary::before {
  content: "+";
  flex: none;
  inline-size: 1rem;
  text-align: center;
}

.plan details[open] summary::before {
  content: "\2212";
}

.plan details p {
  margin-block: 0 var(--s-4);
  font-size: var(--fs-body-md);
}

@media (min-width: 48rem) {
  .plans-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--s-5);
  }

  .plans-grid > :only-child {
    grid-column: 1 / -1;
  }

  .plan {
    padding: var(--s-8);
  }
}

/* ---------------------------------------------------------------------------------------- */
/* Languages.                                                                               */
/* ---------------------------------------------------------------------------------------- */

main > .languages {
  padding-block-start: 0;
}

/* The sentence and the five links sit side by side where both fit, and wrap where not (the
   widths are in rem, so they also wrap when only the text is enlarged). */
.languages-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-6) var(--s-10);
}

.languages-grid > div {
  flex: 1 1 20rem;
  min-inline-size: 0;
}

.languages p {
  margin-block-start: var(--s-3);
  max-inline-size: 34rem;
  color: var(--text-2);
}

.lang-pills {
  display: flex;
  flex: 0 1 auto;
  flex-wrap: wrap;
  gap: var(--s-2);
}

.lang-pills a {
  display: inline-flex;
  align-items: center;
  min-block-size: 3rem;
  padding-inline: var(--s-5);
  border: 0.0625rem solid var(--border-strong);
  border-radius: var(--radius-full);
  color: var(--text);
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
  transition: background-color 0.15s ease-out;
}

.lang-pills a:hover {
  background: var(--tint);
}

.lang-pills a[aria-current="page"] {
  border-color: transparent;
  background: var(--action-bg);
  color: var(--action-fg);
}

/* ---------------------------------------------------------------------------------------- */
/* Closing call.                                                                            */
/* ---------------------------------------------------------------------------------------- */

main > .cta {
  padding-block-start: 0;
}

.cta .wrap {
  display: grid;
  justify-items: center;
  text-align: center;
}

.cta-mark .symbol {
  inline-size: 4rem;
  block-size: 4rem;
}

.cta-line {
  margin-block-start: var(--s-4);
  max-inline-size: 30rem;
  font-size: clamp(var(--fs-headline-md), 1.45rem + 0.8vw, var(--fs-headline-lg));
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.cta .stores {
  justify-content: center;
  text-align: start;
}

/* ---------------------------------------------------------------------------------------- */
/* Footer.                                                                                  */
/* ---------------------------------------------------------------------------------------- */

.site-footer {
  background: var(--sunken);
  color: var(--text-2);
  font-size: var(--fs-body-md);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-8);
  padding-block: var(--s-12);
}

.company {
  display: grid;
  gap: var(--s-1);
  margin-block-start: var(--s-3);
  max-inline-size: 26rem;
}

/* The company's lines are Turkish and read left to right; on the Arabic page they still
   sit at the start of the block. */
[dir="rtl"] .company {
  text-align: end;
}

.company-name {
  color: var(--text);
  font-weight: 500;
}

.legal a,
.footer-langs a {
  display: inline-flex;
  align-items: center;
  min-block-size: 2.75rem;
  color: var(--text);
  overflow-wrap: anywhere;
}

.footer-langs {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--s-5);
}

.footer-langs a {
  text-decoration: none;
}

.footer-langs a:hover {
  text-decoration: underline;
}

.footer-langs a[aria-current="page"] {
  font-weight: 500;
}

.legal-note {
  grid-column: 1 / -1;
}

@media (min-width: 48rem) {
  .footer-grid {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.2fr) minmax(0, 0.7fr);
    gap: var(--s-10);
  }

  .footer-langs {
    display: block;
  }
}

/* ---------------------------------------------------------------------------------------- */
/* 404.html.                                                                                */
/* ---------------------------------------------------------------------------------------- */

.notfound-box {
  display: grid;
  justify-items: center;
  padding-block: var(--s-16) var(--s-20);
  text-align: center;
}

.notfound-box h1 {
  margin-block-start: var(--s-6);
  font-size: clamp(var(--fs-headline-md), 1.3rem + 1.6vw, var(--fs-headline-lg));
}

.notfound-list {
  display: grid;
  gap: var(--s-1);
  margin-block-start: var(--s-8);
}

.notfound-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--s-1) var(--s-3);
  color: var(--text-2);
}

.notfound-list a {
  display: inline-flex;
  align-items: center;
  min-block-size: 2.75rem;
  font-weight: 500;
}

/*
 * Arabic: taller lines and no letter spacing, as typography.arabic of the tokens sets them
 * against typography.latin.
 */
html[lang="ar"] body {
  line-height: 1.85;
}

html[lang="ar"] h1 {
  line-height: 1.4;
  letter-spacing: 0;
}

html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] .lede,
html[lang="ar"] .plan-lead,
html[lang="ar"] .cta-line,
html[lang="ar"] .privacy .lead,
html[lang="ar"] .cap-title {
  line-height: 1.55;
  letter-spacing: 0;
}

/* A line in another language keeps its own rhythm inside a page (the 404 list). */
[lang="ar"] {
  letter-spacing: 0;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

@media (forced-colors: active) {
  .symbol-crescent,
  .symbol-dot {
    fill: CanvasText;
  }

  .stage,
  .phone,
  .feature,
  .plan {
    border: 0.0625rem solid CanvasText;
  }

  .stage::before {
    display: none;
  }
}

@media print {
  .skip,
  .lang-nav,
  .stores,
  .cta,
  .footer-langs {
    display: none;
  }

  body {
    background: #ffffff;
    color: #000000;
  }

  .privacy,
  .site-footer {
    background: none;
    color: inherit;
  }

  .privacy h2,
  .privacy-points li,
  .privacy .more a {
    color: inherit;
  }

  .screens-scroller {
    overflow: visible;
  }

  .screens-list {
    grid-auto-flow: row;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    inline-size: auto;
  }
}
