/* Kawny website, in the design system of the app (mobile-app/src/lib/theme.ts):
   by day cream paper, ink, terracotta and teal; by night plum, cream and gold.
   Display type is Baloo Bhaijaan 2, text is Readex Pro; corners 12 / 20 / 28, buttons are pills.
   One file, no build step. Laid out with logical properties, so Arabic mirrors by itself. */

:root {
  /* day */
  --bg: #F6F1E7;
  --raised: #FFFDF8;
  --text: #1A120E;
  --muted: #6B5E55;
  --action: #B94923;
  --on-action: #FFFDF8;
  --teal: #2C7468;
  --teal-soft: #57B1A2;
  --ochre: #D8B04E;
  --brown: #4E2A24;
  --line: #DDD3C2;
  /* night */
  --n-bg: #1C1424;
  --n-raised: #2A1F33;
  --n-text: #F6EEDF;
  --n-muted: #BDB0C4;
  --n-accent: #E8BC62;
  --n-action: #B8471F;
  --n-indigo: #5652C2;
  --n-indigo-soft: #9C99E8;
  --n-line: rgba(156, 153, 232, 0.35);

  --r-s: 12px;
  --r-m: 20px;
  --r-l: 28px;
  --pad: clamp(20px, 5vw, 40px);
  --max: 1120px;
  --display: "Baloo Bhaijaan 2", "Readex Pro", system-ui, sans-serif;
  --body: "Readex Pro", system-ui, -apple-system, "Segoe UI", Tahoma, "Noto Sans Arabic", sans-serif;
  /* the four-pointed star of the logo, in the three colours it is scattered in */
  --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23D8B04E' d='M12 0c.8 7 5 11.2 12 12-7 .8-11.2 5-12 12-.8-7-5-11.2-12-12 7-.8 11.2-5 12-12z'/%3E%3C/svg%3E");
  --star-teal: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2357B1A2' d='M12 0c.8 7 5 11.2 12 12-7 .8-11.2 5-12 12-.8-7-5-11.2-12-12 7-.8 11.2-5 12-12z'/%3E%3C/svg%3E");
  --star-night: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23E8BC62' d='M12 0c.8 7 5 11.2 12 12-7 .8-11.2 5-12 12-.8-7-5-11.2-12-12 7-.8 11.2-5 12-12z'/%3E%3C/svg%3E");
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
[dir="rtl"] body { line-height: 1.85; }

h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.08; text-wrap: balance; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { line-height: 1.4; }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.3rem); }
h3 { font-size: 1.25rem; }
.lead { color: var(--muted); font-size: 1rem; max-width: 46ch; text-wrap: pretty; }

:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 10px; }
.night :focus-visible { outline-color: var(--n-accent); }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }

.skip {
  position: absolute; inset-inline-start: 12px; top: -80px; z-index: 30;
  background: var(--text); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-weight: 500; text-decoration: none;
}
.skip:focus { top: 12px; }

.ico { width: 1.25em; height: 1.25em; flex: none; }
[dir="rtl"] .ico-arrow { transform: scaleX(-1); }

/* ------------------------------------------------------------------------------------------ buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 30px; border: 0; border-radius: 999px;
  background: var(--action); color: var(--on-action);
  font-family: var(--display); font-weight: 800; font-size: 1.12rem; line-height: 1.2; text-decoration: none; text-align: center;
  cursor: pointer; box-shadow: 0 4px 0 #8E3618;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 5px 0 #8E3618; }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #8E3618; }
.btn[disabled] { opacity: .6; cursor: default; }
.btn-line { background: transparent; color: var(--text); box-shadow: inset 0 0 0 2px var(--text); }
.btn-line:hover { box-shadow: inset 0 0 0 2px var(--text); background: rgba(26, 18, 14, .05); }
.btn-line:active { box-shadow: inset 0 0 0 2px var(--text); transform: none; }
.btn-big { min-height: 64px; padding: 0 38px; font-size: 1.2rem; }
.night .btn-line { color: var(--n-text); box-shadow: inset 0 0 0 2px var(--n-text); }

.more { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; color: var(--action); font-weight: 500; text-decoration: none; }
.more:hover { text-decoration: underline; text-underline-offset: 4px; }

.card { background: var(--raised); border-radius: var(--r-l); padding: clamp(22px, 4vw, 34px); }

/* ------------------------------------------------------------------------------------------ top */

.top {
  position: relative; z-index: 5;
  display: flex; align-items: center; gap: 18px;
  max-width: var(--max); margin-inline: auto; padding: 18px var(--pad);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-inline-end: auto; }
.brand-icon { width: 40px; height: 40px; border-radius: 12px; }
.brand-moon { background: var(--n-bg); }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 1.5rem; line-height: 1; }
.brand-ar { font-family: var(--display); font-weight: 800; font-size: 1.35rem; line-height: 1; color: var(--action); }
.top-nav { display: flex; gap: 22px; }
.top-nav a { text-decoration: none; font-weight: 500; color: var(--muted); }
.top-nav a:hover { color: var(--text); }
.langs { display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: var(--raised); box-shadow: inset 0 0 0 1px var(--line); }
.langs a { min-width: 40px; padding: 5px 10px; border-radius: 999px; text-align: center; text-decoration: none; font-size: .85rem; font-weight: 500; color: var(--muted); }
.langs a[aria-current] { background: var(--text); color: var(--bg); }
@media (max-width: 720px) { .top-nav { display: none; } }

/* ------------------------------------------------------------------------------------------ hero */

.hero { position: relative; overflow: hidden; margin-top: -78px; padding-top: 78px; }
.hero-back {
  position: absolute; inset-inline: 0; bottom: 0; z-index: 0; pointer-events: none;
  width: 100%; min-width: 1100px; height: auto; inset-inline-start: auto; inset-inline-end: 0;
}
[dir="rtl"] .hero-back { transform: scaleX(-1); }
.hero-in {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: clamp(24px, 4vw, 48px);
  padding-block: clamp(28px, 6vw, 72px) clamp(150px, 22vw, 300px);
}
.tag {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: var(--raised); box-shadow: inset 0 0 0 1px var(--line); color: var(--muted);
  font-size: .78rem; font-weight: 500; letter-spacing: .04em; text-transform: uppercase;
}
[dir="rtl"] .tag { letter-spacing: 0; }
.tag::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.hero h1 { margin-top: 18px; font-size: clamp(2.2rem, 4.2vw, 3.2rem); line-height: 1.04; }
[dir="rtl"] .hero h1 { line-height: 1.3; }
.hero h1 span { display: block; }
.hero h1 .accent { color: var(--action); }
.hero-line { margin-top: 20px; max-width: 44ch; font-size: 1.1rem; color: var(--muted); text-wrap: pretty; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
/* the two store badges */
.store {
  display: inline-flex; align-items: center; gap: 10px; height: 60px; padding: 0 18px 0 14px; border-radius: 12px;
  background: #000; color: #fff; box-shadow: inset 0 0 0 1px #A6A6A6; text-decoration: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  transition: transform .12s ease;
}
a.store:hover { transform: translateY(-2px); }
.store-text { display: grid; line-height: 1.05; text-align: left; }
.store-small { font-size: .72rem; font-weight: 400; letter-spacing: .01em; }
.store-big { font-size: 1.42rem; font-weight: 600; letter-spacing: -.01em; }
.store-play .store-small { font-size: .66rem; letter-spacing: .06em; }
.store-play .store-big { font-weight: 500; }
.get-app { display: grid; justify-items: center; gap: 18px; margin-top: clamp(40px, 7vw, 72px); }
.get-app .hero-cta { margin-top: 0; justify-content: center; }
.get-app-art { width: min(100%, 440px); }

/* two phones, the day in front and the night behind */
.phones { position: relative; justify-self: center; width: min(100%, 420px); aspect-ratio: 420 / 560; }
.phone {
  position: absolute; width: 58%; border-radius: 13% / 6.2%; padding: 2.2%; background: var(--text);
  box-shadow: 0 30px 50px -18px rgba(78, 42, 36, .45), 0 0 0 1px rgba(255, 255, 255, .08) inset;
}
.phone img { width: 100%; border-radius: 11% / 5.2%; aspect-ratio: 780 / 1688; object-fit: cover; object-position: top; background: var(--bg); }
.phone-day { inset-inline-start: 4%; top: 0; transform: rotate(-5deg); z-index: 2; }
.phone-night { inset-inline-end: 2%; top: 12%; transform: rotate(6deg); z-index: 1; }
[dir="rtl"] .phone-day { transform: rotate(5deg); }
[dir="rtl"] .phone-night { transform: rotate(-6deg); }

/* the speech clouds of the app: a word in Arabic, the same word at home */
.cloud {
  position: absolute; z-index: 3; padding: 8px 20px; border-radius: 999px;
  background: var(--raised); box-shadow: 0 0 0 2.5px var(--ochre), 0 10px 20px -10px rgba(78, 42, 36, .5);
  font-family: var(--display); font-weight: 800; font-size: 1.35rem; line-height: 1.3; white-space: nowrap;
  animation: bob 3.2s ease-in-out infinite;
}
.cloud::after {
  content: ''; position: absolute; bottom: -9px; inset-inline-start: 22px; width: 16px; height: 16px;
  background: var(--raised); border-radius: 0 0 4px 0; transform: rotate(45deg);
  box-shadow: 2.5px 2.5px 0 var(--ochre);
}
.cloud-ar { inset-inline-start: -8%; top: 30%; color: var(--action); }
.cloud-home { inset-inline-end: -4%; top: 4%; animation-delay: -1.6s; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }

/* on a phone: the title, the two screens, then the two badges side by side; nothing else */
@media (max-width: 860px) {
  .hero-in { grid-template-columns: 1fr; justify-items: center; gap: 0; padding-block: 10px clamp(96px, 26vw, 170px); }
  .hero-text { display: contents; }
  .hero .tag, .hero-line { display: none; }
  .hero h1 { order: 1; margin-top: 6px; text-align: center; font-size: clamp(1.6rem, 7.4vw, 2.3rem); }
  .phones { order: 2; width: min(80%, 330px); margin-top: 26px; }
  /* the phone behind leans out under the frame of the two: the badges start below it */
  .hero-cta { order: 3; flex-wrap: nowrap; justify-content: center; gap: 10px; width: 100%; margin-top: clamp(44px, 15vw, 70px); }
  .hero-cta .store { height: 50px; gap: 8px; padding: 0 13px 0 10px; border-radius: 10px; }
  .hero-cta .store svg { width: 24px; height: 24px; flex: none; }
  .hero-cta .store-small { font-size: .58rem; }
  .hero-cta .store-big { font-size: 1.1rem; white-space: nowrap; }
  .hero-cta .store-play .store-small { font-size: .54rem; }
  .hero-back { min-width: 760px; }
  .cloud { font-size: 1.1rem; padding: 6px 16px; }
}
@media (max-width: 360px) {
  .brand-ar { display: none; }
  .hero-cta .store { height: 46px; padding: 0 10px 0 8px; gap: 6px; }
  .hero-cta .store-big { font-size: .98rem; }
  .hero-cta .store svg { width: 21px; height: 21px; }
}
@media (max-width: 480px) {
  .top { gap: 10px; padding-block: 14px; }
  .brand-icon { width: 34px; height: 34px; border-radius: 10px; }
  .brand-name { font-size: 1.3rem; }
  .brand-ar { font-size: 1.15rem; }
  .langs a { min-width: 34px; padding: 5px 7px; font-size: .8rem; }
}

/* ------------------------------------------------------------------------------------------ sections */

.sec { padding-block: clamp(56px, 9vw, 104px); }
.sec-head { display: grid; gap: 12px; margin-bottom: clamp(26px, 4vw, 44px); }
.sec-head.center { justify-items: center; text-align: center; }
.eyebrow { font-family: var(--body); font-size: .8rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); }
[dir="rtl"] .eyebrow { letter-spacing: 0; font-size: .95rem; }

/* A few stars in the margins of a section: three patterns, so that neighbours differ. Decoration only. */
.stars-a, .stars-b, .stars-c { background-repeat: no-repeat; }
.stars-a { background-image: var(--star), var(--star-teal), var(--star); background-position: 3.5% 34px, 96% 19%, 91% calc(100% - 40px); background-size: 22px, 14px, 16px; }
.stars-b { background-image: var(--star), var(--star), var(--star-teal); background-position: 95.5% 46px, 2.5% 58%, 7% calc(100% - 34px); background-size: 20px, 12px, 16px; }
.stars-c { background-image: var(--star-teal), var(--star), var(--star); background-position: 4% 52px, 97% 44%, 88% calc(100% - 30px); background-size: 15px, 22px, 12px; }
@media (max-width: 760px) {
  .stars-a { background-position: 5% 16px, 94% 22px, 90% calc(100% - 18px); background-size: 16px, 11px, 13px; }
  .stars-b { background-position: 93% 18px, 6% 26px, 8% calc(100% - 16px); background-size: 15px, 10px, 13px; }
  .stars-c { background-position: 6% 20px, 92% 14px, 88% calc(100% - 16px); background-size: 12px, 16px, 10px; }
}
@media (min-width: 861px) {
  .hero { background: var(--star) 51% 120px / 18px no-repeat, var(--star-teal) 46.5% 300px / 11px no-repeat, var(--star) 97.5% 96px / 13px no-repeat; }
}

/* the friends */
.friends { background: var(--raised); border-block: 1px solid var(--line); }
.friends-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(20px, 5vw, 60px); }
.friends-art { width: 100%; max-width: 560px; justify-self: center; }
.names { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.names li {
  display: inline-flex; align-items: baseline; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: var(--bg); font-weight: 500; font-size: .95rem;
}
.names li::before { content: ''; align-self: center; width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--action)); }
.names bdi { font-family: var(--display); font-weight: 600; color: var(--muted); }
@media (max-width: 760px) { .friends-in { grid-template-columns: 1fr; } .friends-art { order: -1; } }

/* what is inside: three coloured cards with a cut-out on top */
.parts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.part {
  position: relative; display: flex; flex-direction: column; gap: 10px; overflow: hidden;
  padding: 26px 26px 30px; border-radius: var(--r-l); color: var(--n-text); background: var(--teal);
}
.part-stories { background: var(--n-bg); }
.part-discovery { background: var(--teal); }
.part-paper { background: var(--ochre); color: var(--text); }
.part-art { height: 190px; margin: -6px -10px 8px; display: grid; place-items: center; border-radius: var(--r-m); background: rgba(255, 253, 248, .1); }
.part-paper .part-art { background: rgba(255, 253, 248, .38); }
.part-art img { max-height: 172px; width: auto; }
.part-tag { font-size: .8rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; opacity: .78; }
[dir="rtl"] .part-tag { letter-spacing: 0; font-size: .92rem; }
.part h3 { font-size: 1.5rem; }
.part p:last-child { opacity: .9; }
.part-stories h3 { color: var(--n-accent); }
.values { margin-top: 30px; max-width: 70ch; color: var(--muted); text-wrap: pretty; }
@media (max-width: 900px) { .parts { grid-template-columns: 1fr; } .part-art { height: 210px; } .part-art img { max-height: 190px; } }

/* how the two languages mix */
.mix-in { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.mix-art { position: sticky; top: 24px; display: grid; gap: 18px; }
.word-art { position: relative; width: 100%; max-width: 460px; justify-self: center; container-type: inline-size; }
.word-art img { width: 100%; }
/* placed on the two empty clouds of the painting (which is never mirrored, so: physical sides) */
.said { position: absolute; transform: translate(-50%, -50%); font-family: var(--display); font-weight: 800; font-size: 3.5cqw; line-height: 1; white-space: nowrap; color: var(--text); }
.said-ar { left: 9.8%; top: 15.4%; color: var(--action); font-size: 4.6cqw; }
.said-home { left: 88%; top: 20.4%; }
.blend { padding: 20px 22px; }
.blend-labels { display: flex; justify-content: space-between; font-size: .85rem; font-weight: 500; color: var(--muted); }
.blend-bar { height: 16px; margin-top: 10px; border-radius: 999px; background: linear-gradient(to right, var(--teal) 0%, var(--teal) 58%, var(--action) 58%, var(--action) 100%); }
[dir="rtl"] .blend-bar { background: linear-gradient(to left, var(--teal) 0%, var(--teal) 58%, var(--action) 58%, var(--action) 100%); }
.steps { display: grid; gap: 14px; }
.step { display: grid; grid-template-columns: auto 1fr; column-gap: 18px; row-gap: 2px; align-items: start; padding: 20px 22px; border-radius: var(--r-m); background: var(--raised); }
.step-n {
  grid-row: span 2; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--bg); box-shadow: inset 0 0 0 2px var(--line); color: var(--action);
  font-family: var(--display); font-weight: 800; font-size: 1.35rem; line-height: 1;
}
.step h3 { font-size: 1.1rem; align-self: end; }
.step p { color: var(--muted); }
.rhythm { margin-top: 14px; padding: 22px; border-radius: var(--r-m); border: 2px dashed var(--line); }
.rhythm h3 { font-family: var(--body); font-size: .8rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); }
[dir="rtl"] .rhythm h3 { letter-spacing: 0; font-size: .95rem; }
.rhythm-line { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 16px; font-size: .88rem; font-weight: 500; }
.rhythm-line li { position: relative; display: grid; gap: 10px; padding-inline-end: 8px; }
.rhythm-line li::before { content: ''; position: absolute; top: 8px; inset-inline: 9px 0; height: 2px; background: var(--line); }
.rhythm-line li:last-child::before { display: none; }
.dot { position: relative; width: 18px; height: 18px; border-radius: 50%; background: var(--action); }
.rhythm-line li:nth-child(2) .dot { background: var(--ochre); }
.rhythm-line li:nth-child(3) .dot { background: var(--teal-soft); }
.rhythm-line li:nth-child(4) .dot { background: var(--teal); }
@media (max-width: 860px) { .mix-in { grid-template-columns: 1fr; } .mix-art { position: static; } }

/* ------------------------------------------------------------------------------------------ the night */

.night {
  position: relative; overflow: hidden; color: var(--n-text);
  background:
    var(--star-night) 6% 13% / 20px no-repeat, var(--star-night) 30% 7% / 11px no-repeat, var(--star-night) 55% 12% / 14px no-repeat,
    var(--star-night) 95% 9% / 17px no-repeat, var(--star-night) 44% 46% / 10px no-repeat, var(--star-night) 3% 50% / 12px no-repeat,
    url('/img/valley-night.webp') center bottom / max(100%, 1100px) auto no-repeat, var(--n-bg);
}
.night-in {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: clamp(24px, 5vw, 64px);
  padding-block: clamp(64px, 9vw, 110px) clamp(170px, 24vw, 330px);
}
.night .eyebrow { color: var(--n-indigo-soft); }
.night blockquote {
  margin-top: 14px; font-family: var(--display); font-weight: 800; font-size: clamp(1.7rem, 4.2vw, 2.8rem); line-height: 1.08; color: var(--n-accent); text-wrap: balance;
}
[dir="rtl"] .night blockquote { line-height: 1.4; }
.night p { margin-top: 18px; max-width: 46ch; color: var(--n-muted); font-size: 1.06rem; }
.night-ends { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.night-ends li { padding: 7px 14px; border-radius: 999px; background: var(--n-raised); box-shadow: inset 0 0 0 1px var(--n-line); font-size: .9rem; color: var(--n-text); }
.night-phone { position: relative; justify-self: center; width: min(74%, 290px); }
.night-phone .phone { position: relative; width: 100%; transform: rotate(4deg); background: #0E0913; box-shadow: 0 40px 70px -24px #000, 0 0 60px -10px rgba(232, 188, 98, .28); }
[dir="rtl"] .night-phone .phone { transform: rotate(-4deg); }
@media (max-width: 860px) { .night-in { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------------------------------ the shelf of stories */

.shelf { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); gap: 18px; overflow-x: auto; padding: 14px var(--pad) 26px; margin-inline: calc(-1 * var(--pad)); scroll-snap-type: x proximity; scrollbar-width: thin; }
.tale { scroll-snap-align: center; display: grid; gap: 10px; align-content: start; transition: transform .25s ease; }
.tale:nth-child(odd) { transform: rotate(-1.6deg); }
.tale:nth-child(even) { transform: rotate(1.4deg) translateY(10px); }
.tale:hover { transform: rotate(0) translateY(-4px); }
.tale-cover { position: relative; border-radius: var(--r-m); overflow: hidden; box-shadow: 0 0 0 6px var(--raised), 0 18px 26px -14px rgba(78, 42, 36, .55); }
.tale-cover img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.tale-kind { position: absolute; top: 10px; inset-inline-start: 10px; padding: 3px 10px; border-radius: 999px; background: var(--teal); color: var(--n-text); font-size: .72rem; font-weight: 500; }
.tale-ar { margin-top: 6px; font-family: var(--display); font-weight: 800; font-size: 1.15rem; line-height: 1.5; color: var(--action); }
.tale-title { font-weight: 500; font-size: .95rem; line-height: 1.35; }

/* ------------------------------------------------------------------------------------------ privacy */

.trust { position: relative; overflow: hidden; min-height: 470px; display: grid; align-items: center; border-radius: var(--r-l); background: var(--teal); color: var(--n-text); }
/* the evening valley fills the card from the right and melts into its teal on the left */
.trust-back {
  position: absolute; inset-block: 0; inset-inline-end: 0; width: auto; max-width: none; height: 100%; aspect-ratio: 3 / 2;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 30%); mask-image: linear-gradient(to right, transparent 0%, #000 30%);
}
[dir="rtl"] .trust-back { transform: scaleX(-1); }
.trust-text { position: relative; max-width: 47%; padding: clamp(28px, 5vw, 56px); padding-inline-end: 0; }
.trust h2 { margin-top: 0; }
.lines { display: grid; gap: 14px; margin-top: 24px; }
.lines li { display: flex; gap: 14px; align-items: flex-start; font-size: 1.04rem; font-weight: 500; }
.lines .ico { margin-top: 2px; width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--n-text); color: var(--teal); stroke-width: 3; }
.trust .more { color: var(--n-text); text-decoration: underline; text-underline-offset: 4px; }
/* Jabal stands on the mound in the front of the painting */
.trust-art { position: absolute; bottom: 9%; inset-inline-end: calc(470px * 1.5 * .55 - 105px); width: auto; height: 60%; max-width: none; filter: drop-shadow(0 12px 10px rgba(10, 40, 34, .35)); }
@media (max-width: 860px) {
  .trust { min-height: 0; display: block; padding-bottom: 300px; }
  .trust-back { inset-block: auto 0; inset-inline: 0; width: 100%; height: 300px; aspect-ratio: auto; object-fit: cover; object-position: 45% bottom; -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 35%); mask-image: linear-gradient(to bottom, transparent 0%, #000 35%); }
  .trust-text { max-width: none; padding: 28px 24px 0; }
  .trust-art { bottom: 26px; inset-inline-end: auto; left: 50%; height: 190px; transform: translateX(-50%); }
}

/* ------------------------------------------------------------------------------------------ price */

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 820px; margin-inline: auto; }
.plan { position: relative; display: grid; gap: 6px; align-content: start; padding: 28px; border-radius: var(--r-l); background: var(--raised); box-shadow: inset 0 0 0 2px var(--line); }
.plan-yearly { box-shadow: inset 0 0 0 3px var(--action); }
.plan-best { position: absolute; top: -14px; inset-inline-start: 24px; padding: 4px 14px; border-radius: 999px; background: var(--action); color: var(--on-action); font-size: .78rem; font-weight: 500; }
.plan h3 { font-size: 1.3rem; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.price-amount { font-family: var(--display); font-weight: 800; font-size: 2.4rem; line-height: 1.1; color: var(--action); }
.price-about, .price-per { color: var(--muted); }
.plan > p:last-child { color: var(--muted); }
.notice { margin-top: 26px; font-weight: 500; }
@media (max-width: 640px) { .plans { grid-template-columns: 1fr; } }

/* the charter teaser */
.teaser { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; box-shadow: inset 0 0 0 2px var(--line); }
.teaser p { margin-top: 8px; color: var(--muted); max-width: 52ch; }

/* ------------------------------------------------------------------------------------------ foot */

.foot {
  color: var(--n-text); padding-block: 56px 52px;
  background: var(--star-night) 97% 30px / 18px no-repeat, var(--star-night) 62% calc(100% - 26px) / 11px no-repeat, var(--star-night) 2.5% calc(100% - 44px) / 13px no-repeat, var(--n-bg);
}
.foot-in { display: grid; grid-template-columns: minmax(0, 1.5fr) auto auto auto; align-items: start; justify-content: space-between; gap: 32px clamp(28px, 6vw, 88px); }
.foot .brand-ar { color: var(--n-accent); }
.foot-brand p { margin-top: 12px; max-width: 40ch; color: var(--n-muted); }
.foot-links { display: grid; gap: 12px; }
.foot-links a { color: var(--n-text); text-decoration: none; font-weight: 500; }
.foot-links a:hover { color: var(--n-accent); }
.foot .langs { justify-self: end; background: var(--n-raised); box-shadow: inset 0 0 0 1px var(--n-line); }
.foot .langs a { color: var(--n-muted); }
.foot .langs a[aria-current] { background: var(--n-accent); color: var(--n-bg); }
@media (max-width: 860px) {
  .foot-in { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .foot .langs { grid-column: 1 / -1; justify-self: start; }
}

/* ------------------------------------------------------------------------------------------ the smaller pages */

.doc { padding-block: clamp(28px, 6vw, 64px) clamp(56px, 9vw, 96px); }
.doc-in { max-width: 760px; }
.doc h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); }
.doc .lead { margin-top: 14px; max-width: 60ch; }
.doc-sec { margin-top: 34px; }
.doc-sec h2 { font-size: 1.5rem; margin-bottom: 10px; }
.doc-sec p + p { margin-top: 10px; }
.doc-sec ul { display: grid; gap: 8px; margin-top: 12px; }
.doc-sec ul li { position: relative; padding-inline-start: 22px; }
.doc-sec ul li::before { content: ''; position: absolute; inset-inline-start: 2px; top: .7em; width: 8px; height: 8px; border-radius: 50%; background: var(--action); }
.doc-sec a, .contact a { color: var(--action); }
.draft { margin-top: 24px; padding: 14px 18px; border-radius: var(--r-s); background: var(--raised); box-shadow: inset 0 0 0 2px var(--ochre); font-weight: 500; }
.numbered { display: grid; gap: 10px; counter-reset: n; }
.numbered li { position: relative; padding-inline-start: 44px; counter-increment: n; }
.numbered li::before {
  content: counter(n); position: absolute; inset-inline-start: 0; top: -2px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--raised); box-shadow: inset 0 0 0 2px var(--line); color: var(--action); font-family: var(--display); font-weight: 800;
}
.charter { display: grid; gap: 12px; margin-top: 30px; }
.charter li { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; border-radius: var(--r-m); background: var(--raised); font-weight: 500; }
.charter-n { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--teal); color: var(--n-text); font-family: var(--display); font-weight: 800; line-height: 1; }
.get { display: grid; gap: 14px; justify-items: start; margin-top: 30px; box-shadow: inset 0 0 0 2px var(--line); }
.get-meta { color: var(--muted); }
.get .notice { margin-top: 0; text-align: start; font-weight: 400; color: var(--muted); }
.get-empty { font-family: var(--display); font-weight: 800; font-size: 1.3rem; }
.doc-404 .btn { margin-top: 26px; }

/* a picture that could not load leaves no hole */
.is-missing { display: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cloud { animation: none; }
  .btn, .tale { transition: none; }
}
