/* Own Hub, public site.
   No JavaScript, no third-party request, no cookie, no tracker.
   Everything below is served from this origin.
   The palette, type and hand marks follow the app: app/lib/theme/app_tokens.dart,
   hand_tokens.dart and app/lib/ui/hand/art_palette.dart. */

/* ---------- Rubik, self-hosted. Licence: /assets/fonts/OFL-Rubik.txt ----------
   Three weights, as in the app: 400 for reading, 500 for labels and
   navigation, 600 for headings and buttons. One Latin and one Arabic file each. unicode-range means an English
   page never downloads the Arabic glyphs, and the other way round only the
   Latin it needs (digits, the brand name). */
@font-face {
  font-family: "Rubik";
  src: url("/assets/fonts/rubik-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Rubik";
  src: url("/assets/fonts/rubik-latin-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Rubik";
  src: url("/assets/fonts/rubik-latin-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Rubik";
  src: url("/assets/fonts/rubik-arabic-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+200C-200F, U+2010-2011, U+204F,
    U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: "Rubik";
  src: url("/assets/fonts/rubik-arabic-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+200C-200F, U+2010-2011, U+204F,
    U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: "Rubik";
  src: url("/assets/fonts/rubik-arabic-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+200C-200F, U+2010-2011, U+204F,
    U+FB50-FDFF, U+FE70-FEFF;
}

/* ---------- Tokens (the app's, by name) ---------- */
:root {
  color-scheme: light;
  --paper: #FFF8F9;          /* surface */
  --paper-raised: #FFFFFF;   /* surfaceLowest */
  --paper-low: #FFF1F4;      /* surfaceLow */
  --paper-sunk: #FBEAEF;     /* surfaceContainer */
  --ink: #241A1E;            /* ink / onSurface */
  --ink-soft: #6B5C61;       /* onSurfaceVariant */
  --rose: #A24661;           /* primary */
  --rose-deep: #9A3F57;      /* primaryDim */
  --rose-ink: #4A1C2E;       /* onPrimaryContainer */
  --rose-container: #FFD9E3; /* primaryContainer, the hand's marker */
  --rose-soft: #F8E1E7;      /* primarySoft */
  --rose-fill: #F2B6C6;      /* ArtTones.rose fill */
  --sage: #4C6E55;           /* tertiary */
  --sage-wash: #DDEDE1;      /* tertiaryContainer */
  --pencil: #977C84;         /* outline, the hand's pencil */
  --rule: #EBDCDF;           /* outlineVariant */
  --rule-strong: #D9C3C9;
  --focus: #9A3F57;

  --measure: 38rem;
  --wide: 72rem;
  --gutter: 1.25rem;
  /* Corners as the app cuts them (app/lib/ui/app_card.dart): three tight
     corners (radius x 0.35, 3 to 8px) and one loose one (radius x 0.9, 10 to
     22px), so a card reads as cut paper, not a moulded toolkit shape. The
     loose corner is bottom-right in English and bottom-left in Arabic. */
  --r-sm: 4px 4px 11px 4px;
  --r-md: 6px 6px 14px 6px;
  --r-lg: 7px 7px 18px 7px;
  --r-xl: 8px 8px 22px 8px;
  --r-btn: 7px 7px 15px 7px;
  --r-btn-trace: 8px 7px 16px 6px;

  --sans: "Rubik", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --arabic: "Rubik", "Geeza Pro", "Segoe UI", "Noto Sans Arabic", Tahoma, sans-serif;
}
html[dir="rtl"] {
  --r-sm: 4px 4px 4px 11px;
  --r-md: 6px 6px 6px 14px;
  --r-lg: 7px 7px 7px 18px;
  --r-xl: 8px 8px 8px 22px;
  --r-btn: 7px 7px 7px 15px;
  --r-btn-trace: 7px 8px 6px 16px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-block-start: 1.5rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem; /* 17px */
  line-height: 1.65;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

html[lang="ar"] body {
  font-family: var(--arabic);
  font-size: 1.125rem; /* Arabic needs a touch more */
  line-height: 1.95;
  font-variant-numeric: lining-nums;
}

img,
svg {
  max-inline-size: 100%;
}
img {
  block-size: auto;
}

/* ---------- Skip link and focus ---------- */
.skip {
  position: absolute;
  inset-inline-start: 0.5rem;
  inset-block-start: -10rem;
  z-index: 50;
  padding: 0.75rem 1.1rem;
  background: var(--rose);
  color: #FFFFFF;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus {
  inset-block-start: 0;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}
main:focus {
  outline: none;
}

/* ---------- Layout ---------- */
.wrap {
  inline-size: 100%;
  max-inline-size: var(--wide);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
main {
  display: block;
}
.prose {
  max-inline-size: var(--measure);
  margin-inline: auto;
}
section .wrap > .prose,
.split > .prose {
  margin-inline: 0;
}
main > section {
  padding-block: 3.5rem;
}
main > section.band {
  background: var(--paper-low);
  border-block: 1px solid var(--rule);
}
@media (min-width: 62rem) {
  main > section {
    padding-block: 5rem;
  }
}

.split {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 52rem) {
  .split {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 4rem;
  }
  .split.promise,
  .split.even {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }
}

/* ---------- Header ---------- */
.site-head {
  background: var(--paper);
  border-block-end: 1px solid var(--rule);
}
.site-head .wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-block: 0.8rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-block-size: 44px;
  margin-inline-end: auto;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.125rem;
}
.brand .mark {
  display: block;
  inline-size: 36px;
  block-size: 36px;
  flex: none;
}
.brand:hover .name {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.head-cta {
  display: none;
  align-items: center;
  min-block-size: 44px;
  padding-inline: 0.5rem;
  color: var(--rose-deep);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
}
.head-cta:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
@media (min-width: 40rem) {
  .head-cta {
    display: inline-flex;
  }
}
.lang-switch {
  display: inline-flex;
  align-items: center;
  min-block-size: 44px;
  padding-inline: 1rem;
  border: 1.5px solid var(--pencil);
  border-radius: var(--r-sm);
  color: var(--ink);
  background: var(--paper-raised);
  font-weight: 500;
  font-size: 0.9375rem;
  text-decoration: none;
}
.lang-switch:hover {
  border-color: var(--rose);
  background: var(--rose-container);
}

/* ---------- Type ---------- */
h1,
h2,
h3,
h4 {
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
  margin-block: 2.25rem 0.6rem;
  scroll-margin-block-start: 1.5rem;
}
html[lang="ar"] :is(h1, h2, h3, h4) {
  line-height: 1.5;
}
h1 {
  font-size: clamp(1.9rem, 1.4rem + 2.4vw, 2.6rem);
  letter-spacing: -0.015em;
  margin-block-start: 0;
}
h2 {
  font-size: clamp(1.35rem, 1.15rem + 1vw, 1.75rem);
  letter-spacing: -0.01em;
  padding-block-start: 1rem;
  border-block-start: 1px solid var(--rule);
}
html[lang="ar"] :is(h1, h2) {
  letter-spacing: 0;
}
h2.no-rule {
  border-block-start: 0;
  padding-block-start: 0;
}
h3 {
  font-size: 1.125rem;
  margin-block: 1.75rem 0.4rem;
}
h4 {
  font-size: 1rem;
  margin-block: 1.25rem 0.3rem;
}

/* The section titles on the home page carry the app's hand underline. */
main > section h2.no-rule {
  margin-block: 0 1.25rem;
  padding-block-end: 0.6rem;
  background: url("/assets/hand/underline.svg") no-repeat;
  background-size: 7.5rem 0.65rem;
  background-position: left bottom;
}
html[dir="rtl"] main > section h2.no-rule {
  background-position: right bottom;
}

p,
ul,
ol,
dl {
  margin-block: 0 1.1rem;
}
li {
  margin-block-end: 0.5rem;
}
ol {
  padding-inline-start: 1.35rem;
}
ul {
  list-style: none;
  padding-inline-start: 1.1rem;
}
ul > li {
  position: relative;
}
ul > li::before {
  content: "";
  position: absolute;
  inset-inline-start: -1.1rem;
  inset-block-start: 0.7em;
  inline-size: 0.4rem;
  block-size: 0.4rem;
  border-radius: 50%;
  background: var(--rose);
}
ul.plain,
ul.plain > li {
  padding-inline-start: 0;
}
ul.plain > li::before {
  content: none;
}
strong,
b {
  font-weight: 600;
}
a {
  color: var(--rose-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover {
  text-decoration-thickness: 2px;
}
.lede {
  font-size: 1.1875rem;
  line-height: 1.6;
}
html[lang="ar"] .lede {
  font-size: 1.25rem;
  line-height: 1.9;
}
.small {
  font-size: 0.9375rem;
  color: var(--ink-soft);
}
.meta {
  color: var(--ink-soft);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-block-end: 1.75rem;
}
.meta b {
  color: var(--ink);
  font-weight: 600;
}
.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--rose-deep);
  font-size: 0.9375rem;
  font-weight: 500;
}

/* A word marked by the reader's pen: the app's two-pass underline. */
.hand {
  display: inline-block;
  padding-block-end: 0.18em;
  background: url("/assets/hand/underline.svg") no-repeat;
  background-size: 100% 0.32em;
  background-position: bottom;
}

/* ---------- Section anchors ---------- */
.anchor {
  margin-inline-start: 0.4rem;
  color: var(--rose-deep);
  text-decoration: none;
  font-weight: 400;
  font-size: 0.7em;
  vertical-align: 0.12em;
  opacity: 0.75;
}
:is(h2, h3):hover .anchor,
.anchor:focus-visible {
  opacity: 1;
  text-decoration: underline;
}

/* ---------- Callouts ---------- */
.callout {
  background: var(--rose-soft);
  border-inline-start: 4px solid var(--rose);
  border-radius: var(--r-md);
  padding: 1rem 1.15rem;
  margin-block: 1.5rem;
}
.callout > :last-child {
  margin-block-end: 0;
}
.callout.calm {
  background: var(--sage-wash);
  border-inline-start-color: var(--sage);
}
.callout.quiet {
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-inline-start: 4px solid var(--pencil);
}
.callout :is(h2, h3) {
  margin-block-start: 0;
  border-block-start: 0;
  padding-block-start: 0;
}

/* ---------- Key / value blocks ---------- */
dl.kv {
  display: grid;
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--paper-raised);
  margin-block: 1.25rem 1.5rem;
}
dl.kv > div {
  display: grid;
  gap: 0.15rem;
  padding: 0.85rem 1rem;
  border-block-start: 1px solid var(--rule);
}
dl.kv > div:first-child {
  border-block-start: 0;
}
dl.kv dt {
  font-weight: 500;
}
dl.kv dd {
  margin: 0;
  color: var(--ink-soft);
}
dl.kv dd > :last-child {
  margin-block-end: 0;
}
@media (min-width: 40rem) {
  dl.kv > div {
    grid-template-columns: minmax(9rem, 14rem) 1fr;
    gap: 0.15rem 1.25rem;
  }
}

/* ---------- Category cards ---------- */
.cards {
  display: grid;
  gap: 0.9rem;
  margin-block: 1.25rem 1.5rem;
  padding: 0;
}
.cards > li {
  margin: 0;
  padding: 1rem 1.15rem;
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  background: var(--paper-raised);
}
.cards > li::before {
  content: none;
}
.cards h3 {
  margin-block: 0 0.5rem;
  font-size: 1rem;
  color: var(--rose-deep);
}
.cards dl {
  margin: 0;
  display: grid;
  gap: 0.35rem;
}
.cards dl > div {
  display: grid;
  gap: 0.1rem;
}
.cards dt {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
html[lang="ar"] .cards dt {
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.875rem;
}
.cards dd {
  margin: 0;
}
@media (min-width: 46rem) {
  .cards dl > div {
    grid-template-columns: minmax(6rem, 9rem) 1fr;
    gap: 0.1rem 1rem;
    align-items: baseline;
  }
}

/* ---------- Table of contents ---------- */
.toc {
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  background: var(--paper-raised);
  padding: 1rem 1.25rem;
  margin-block: 1.5rem 2.25rem;
}
.toc h2 {
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0;
}
.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
.toc li {
  margin-block-end: 0.1rem;
  break-inside: avoid;
}
.toc a {
  display: block;
  padding-block: 0.35rem;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9375rem;
}
.toc a:hover {
  color: var(--rose-deep);
  text-decoration: underline;
}
.toc .part {
  margin-block: 0.9rem 0.35rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--rose-deep);
}
@media (min-width: 46rem) {
  .toc ol {
    columns: 2;
    column-gap: 2rem;
  }
}

/* ---------- To-be-completed marker ---------- */
.todo {
  display: inline-block;
  padding: 0.05em 0.5em;
  border: 2px dashed var(--rose);
  border-radius: 8px;
  color: var(--rose-deep);
  background: var(--rose-soft);
  font-weight: 600;
  font-size: 0.9375em;
  line-height: 1.5;
}

/* ---------- Buttons ----------
   The app's primary button: a filled rose block with a second, hand-drawn
   outline sitting a little off it, as if traced round by a pen. */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-block: 1.25rem 1.5rem;
}
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-block-size: 56px;
  padding: 0.65rem 1.5rem;
  border: 0;
  border-radius: var(--r-btn);
  background: var(--rose);
  color: #FFFFFF;
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition:
    transform 160ms cubic-bezier(0.23, 1, 0.32, 1),
    background-color 160ms ease;
}
/* The press is felt: a button that does not move reads as not heard. */
.btn:active {
  transform: scale(0.97);
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1.2px solid var(--rose);
  border-radius: var(--r-btn-trace);
  transform: translate(3px, 4px) rotate(0.4deg);
  pointer-events: none;
}
html[dir="rtl"] .btn::after {
  transform: translate(-3px, 4px) rotate(-0.4deg);
}
/* Hover only where there is a real pointer; a tap must not leave a button
   stuck in its hover colour. */
@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    background: var(--rose-deep);
  }
  .btn.ghost:hover {
    background: var(--rose-container);
  }
}
.btn.ghost {
  background: var(--paper-raised);
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn.ghost::after {
  border-color: var(--pencil);
}

/* ---------- Store badges ----------
   Apple's and Google's artwork, unmodified, the same height, App Store
   first, with a quarter of the badge height clear around each. */
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 0.9rem;
  margin-block: 1.75rem 0.5rem;
  padding: 0;
}
.badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  border-radius: 9px;
}
.badge img {
  display: block;
  block-size: 48px;
  inline-size: auto;
}
.badge .soon {
  color: var(--ink-soft);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
}
.badge.is-soon {
  cursor: default;
}
.badges-foot {
  margin: 0;
}
.badges-foot .badge img {
  block-size: 40px;
}

/* ---------- Home: hero ---------- */
main > section.hero {
  padding-block: 2.5rem 3.5rem;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.15rem, 1.5rem + 3.2vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 600;
  max-inline-size: 15ch;
}
html[lang="ar"] .hero h1 {
  line-height: 1.45;
  max-inline-size: 13ch;
}
.hero .lede {
  max-inline-size: 32rem;
  color: var(--ink-soft);
  margin-block-start: 1.25rem;
}
.hero-note {
  margin: 0.5rem 0 0;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}
.hero-art {
  position: relative;
  display: grid;
  justify-items: center;
  padding-block: 1rem 0;
}
.hero-art::before {
  content: "";
  position: absolute;
  inset-block-end: -3rem;
  inline-size: min(26rem, 95%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--sage-wash);
}
.hero-art .kitten {
  position: absolute;
  inset-block-end: -1.6rem;
  inset-inline-start: calc(50% - 11.5rem);
  inline-size: 8.5rem;
  block-size: auto;
}
html[dir="rtl"] .kitten {
  transform: scaleX(-1);
}
@media (min-width: 62rem) {
  main > section.hero {
    padding-block: 4.5rem 5.5rem;
  }
  .hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 3rem;
  }
  .hero-art .kitten {
    inline-size: 10.5rem;
    inset-inline-start: calc(50% - 17.5rem);
  }
}

/* A phone-shaped frame round a screenshot. */
.phone {
  position: relative;
  margin: 0;
  inline-size: min(15rem, 70vw);
  padding: 0.45rem;
  border-radius: 2.1rem;
  background: var(--ink);
  box-shadow: 0 30px 60px -30px rgba(74, 28, 46, 0.45);
}
.phone img {
  display: block;
  inline-size: 100%;
  border-radius: 1.7rem;
  background: var(--paper);
}
@media (min-width: 62rem) {
  .phone {
    inline-size: 18.75rem;
  }
}
.split > .phone {
  justify-self: center;
}

/* Home section titles are not permalinks worth showing. */
main > section h2 .anchor {
  display: none;
}

/* ---------- Home: steps ---------- */
ol.steps.card {
  margin: 0;
  padding: 1.5rem 1.5rem 0.5rem;
  border: 1px solid var(--rule);
  border-radius: var(--r-xl);
  background: var(--paper-raised);
}
ol.steps {
  counter-reset: step;
  list-style: none;
  padding-inline-start: 0;
  margin-block: 1.5rem;
}
ol.steps > li {
  counter-increment: step;
  position: relative;
  padding-inline-start: 3.25rem;
  margin-block-end: 1.1rem;
  min-block-size: 2.4rem;
}
ol.steps > li::before {
  content: counter(step);
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: -0.1rem;
  inline-size: 2.4rem;
  block-size: 2.4rem;
  display: grid;
  place-items: center;
  border: 2px solid var(--rose);
  border-radius: 48% 52% 50% 46%;
  color: var(--rose-deep);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  background: var(--paper-raised);
}

/* ---------- Home: screenshots ---------- */
.shots {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 13.5rem;
  gap: 1.25rem;
  margin: 0.5rem calc(-1 * var(--gutter)) 2.5rem;
  padding: 0.5rem var(--gutter) 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
}
.shots > li {
  margin: 0;
  scroll-snap-align: start;
}
.shots > li::before {
  content: none;
}
.shots figure {
  margin: 0;
}
.shots img {
  display: block;
  inline-size: 100%;
  border-radius: var(--r-lg);
  border: 1px solid var(--rule);
  box-shadow: 0 16px 32px -24px rgba(74, 28, 46, 0.5);
  background: var(--paper);
}
.shots figcaption {
  margin-block-start: 0.8rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ink-soft);
}
.shots figcaption b {
  color: var(--ink);
}
@media (min-width: 52rem) {
  .shots {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, minmax(0, 17.5rem));
    justify-content: space-between;
    margin-inline: 0;
    padding-inline: 0;
    overflow: visible;
  }
}

/* ---------- Home: cards ---------- */
.pillars,
.doorways {
  display: grid;
  gap: 1rem;
  margin-block: 1.25rem 0;
  padding: 0;
}
.pillars > li,
.doorways > li {
  margin: 0;
}
.pillars > li::before,
.doorways > li::before {
  content: none;
}
.pillars > li {
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  background: var(--paper-raised);
}
.pillars h3 {
  margin: 0 0 0.3rem;
  font-size: 1.0625rem;
}
.pillars p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}
html[lang="ar"] .pillars p {
  font-size: 1rem;
}
@media (min-width: 40rem) {
  .pillars,
  .doorways {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 62rem) {
  .pillars {
    grid-template-columns: repeat(3, 1fr);
  }
}

.doorways a {
  display: block;
  block-size: 100%;
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-lg);
  background: var(--paper-raised);
  color: var(--ink);
  text-decoration: none;
}
.doorways a:hover {
  border-color: var(--rose);
  background: var(--rose-soft);
}
.doorways .t {
  display: block;
  margin-block-end: 0.2rem;
  color: var(--rose-deep);
  font-weight: 600;
  font-size: 1.0625rem;
}
.doorways .d {
  display: block;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  line-height: 1.55;
}
html[lang="ar"] .doorways .d {
  font-size: 1rem;
  line-height: 1.8;
}

/* The plain facts. */
.facts {
  margin: 0;
  padding: 1.35rem 1.5rem;
  border: 1px solid var(--rule);
  border-radius: var(--r-xl);
  background: var(--paper-raised);
}
.facts > li {
  margin: 0;
  padding-block: 0.8rem;
  padding-inline-start: 2rem;
  border-block-start: 1px solid var(--rule);
  font-size: 0.9375rem;
  line-height: 1.5;
}
html[lang="ar"] .facts > li {
  font-size: 1rem;
  line-height: 1.75;
}
.facts > li:first-child {
  border-block-start: 0;
  padding-block-start: 0;
}
.facts > li:last-child {
  padding-block-end: 0;
}
/* A tick in the app's "done" sage. */
.facts > li::before {
  inset-inline-start: 0;
  inset-block-start: 1.05rem;
  inline-size: 0.95rem;
  block-size: 0.5rem;
  border-radius: 0;
  background: none;
  /* Physical sides on purpose: a tick reads the same way in both scripts. */
  border-left: 2.5px solid var(--sage);
  border-bottom: 2.5px solid var(--sage);
  transform: rotate(-45deg);
}
.facts > li:first-child::before {
  inset-block-start: 0.25rem;
}
.facts b {
  display: block;
  font-weight: 600;
}
.facts span {
  color: var(--ink-soft);
}

/* ---------- Home: download ---------- */
main > section.download {
  padding-block-end: 1rem;
}
main > section.download .panel {
  display: grid;
  gap: 1.5rem;
  padding: 2rem 1.25rem;
  border-radius: var(--r-xl);
  background: var(--rose-soft);
  border: 1px solid var(--rose-container);
}
section.download .badges {
  margin-block: 1.5rem 0.5rem;
}
.form-card {
  padding: 1.5rem 1.25rem 0.25rem;
  border-radius: var(--r-lg);
  background: var(--paper-raised);
  border: 1px solid var(--rose-container);
}
.form-card .waitlist {
  margin-block-start: 0;
}

/* ---------- The founding offer, at the top of the home page ----------
   Before launch the page has one job, and this is it: the offer in one
   sentence, then the form, on the app's own rose tint. */
.offer {
  display: grid;
  gap: 1rem;
  max-inline-size: 34rem;
  margin-block: 1.5rem 1.25rem;
  padding: 1.25rem 1rem 0.25rem;
  border-radius: var(--r-xl);
  background: var(--rose-soft);
  border: 1px solid var(--rose-container);
}
.offer-t {
  margin: 0;
  padding-inline: 0.25rem;
  font-size: 1.0625rem;
  color: var(--ink);
}
.offer-t b {
  color: var(--rose-deep);
  font-weight: 600;
}
.offer .form-card {
  padding: 1.25rem 1rem 0.25rem;
}
@media (min-width: 52rem) {
  main > section.download .panel {
    padding: 3rem 3.25rem;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }
  .form-card {
    padding: 1.75rem 1.75rem 0.5rem;
  }
}

/* ---------- Waitlist form ---------- */
.waitlist {
  margin-block: 1.5rem;
}
.waitlist .field {
  display: grid;
  gap: 0.4rem;
}
.waitlist label {
  font-weight: 500;
}
.waitlist input[type="text"] {
  font: inherit;
  color: var(--ink);
  background: var(--paper-raised);
  border: 1.5px solid var(--pencil);
  border-radius: var(--r-sm);
  min-block-size: 52px;
  padding: 0.6rem 0.9rem;
  inline-size: 100%;
  max-inline-size: 28rem;
}
.waitlist input[type="text"]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-color: var(--focus);
}
.waitlist .hint {
  color: var(--ink-soft);
  font-size: 0.9375em;
}
.waitlist .check {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.waitlist .check input {
  flex: none;
  inline-size: 1.35rem;
  block-size: 1.35rem;
  margin-block-start: 0.2rem;
  accent-color: var(--rose);
}
.waitlist .check label {
  font-weight: 400;
}
/* The honeypot: there for a bot that fills every field, invisible and
   unreachable for a person. */
.waitlist .hp {
  position: absolute;
  inset-inline-start: -10000px;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
}

/* ---------- Support questions ---------- */
.qa {
  margin-block: 1.25rem 1.5rem;
}
.qa > div {
  padding-block: 1.1rem;
  border-block-start: 1px solid var(--rule);
}
.qa > div:first-child {
  border-block-start: 0;
  padding-block-start: 0;
}
.qa h3 {
  margin-block: 0 0.35rem;
}
.qa p:last-child {
  margin-block-end: 0;
}

/* ---------- Inner pages ---------- */
main > .wrap {
  padding-block: 2.5rem 1rem;
}
@media (min-width: 62rem) {
  main > .wrap {
    padding-block: 3.5rem 1.5rem;
  }
}
main > .wrap h1 {
  padding-block-end: 0.45em;
  background: url("/assets/hand/underline.svg") no-repeat;
  background-size: 9rem 0.55em;
  background-position: left bottom;
}
html[dir="rtl"] main > .wrap h1 {
  background-position: right bottom;
}

/* ---------- Footer ---------- */
.site-foot {
  margin-block-start: 3rem;
  border-block-start: 1px solid var(--rule);
  background: var(--paper-sunk);
  padding-block: 2.5rem 3rem;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}
html[lang="ar"] .site-foot {
  font-size: 1rem;
}
main > section:last-child {
  padding-block-end: 2rem;
}
.foot-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  margin-block-end: 1.25rem;
}
.foot-top .brand {
  margin-inline-end: 0;
  color: var(--ink);
  text-decoration: none;
}
.foot-top .brand .mark {
  inline-size: 32px;
  block-size: 32px;
}
.site-foot nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.5rem;
  padding: 0;
  margin: 0 0 1rem;
}
.site-foot nav li {
  margin: 0;
}
.site-foot nav li::before {
  content: none;
}
.site-foot nav a {
  display: inline-block;
  min-block-size: 44px;
  line-height: 44px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}
.site-foot nav a:hover {
  color: var(--rose-deep);
  text-decoration: underline;
}
.site-foot p {
  margin-block: 0 0.6rem;
  max-inline-size: 46rem;
}
.site-foot a {
  color: var(--rose-deep);
}
.site-foot .tm {
  margin-block-start: 1rem;
  font-size: 0.8125rem;
}

/* ---------- 404 ---------- */
.lost {
  padding-block: 3rem 1rem;
}

/* ---------- Print ---------- */
@media print {
  .site-head,
  .site-foot,
  .skip,
  .toc,
  .badges {
    display: none;
  }
  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
  }
  a {
    color: #000;
  }
}
