/* tamoora.com's front page (/ and /en), in the app's own look: its paper, ink and yellow, the six colour cards of its
   home with their leaf corner (the start-top corner rounder than the rest), Tajawal, and the app's own screens in its
   devices, the iPad and the iPhone in turn (R1c). Light only, as the app is. Arabic is never letter-spaced. One yellow
   button per band. */

@font-face { font-family: 'Tajawal'; src: url('/account/fonts/tajawal-regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Tajawal'; src: url('/account/fonts/tajawal-bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Tajawal'; src: url('/account/fonts/tajawal-extrabold.ttf') format('truetype'); font-weight: 800; font-display: swap; }

:root {
  --paper: #faf8ef;
  --panel: #fffef8;
  --ink: #284b3a;
  --ink-2: #3f5d4e;
  --muted: #536158;
  --line: #dce2d1;
  --line-2: #c9d1bd;
  --deep: #244d42;
  --deeper: #183f35;
  --on-deep: #fffef8;
  --on-deep-2: #d3dfd5;
  --sun: #f9d45d;
  --cta: #ffdf75;
  --cta-hover: #ffd75c;
  --ledge: #ead079;
  --focus: #a57d17;
  --ok: #2f6f50;
  --lav: #e7dcfa;
  --teal: #d3eceb;
  --peach: #ffe0c5;
  --lime: #e2edbc;
  --coral: #ffd5cd;
  --butter: #ffe68c;
  --sage: #edf1df;
  --band-lilac: #efe8fb;
  --band-lime: #eef4d6;
  --learn: #f3f5e7;
  --foot: #f3f0e2;
  --bezel: #16231c;
  --bezel-edge: #2c3b33;
  --r: 12px;
  --leaf: 25px;
  --r-big: 20px;
  --leaf-big: 38px;
  --gutter: 16px;
  --font: 'Tajawal', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  color-scheme: light;
}
@media (min-width: 768px) {
  :root { --r: 20px; --leaf: 38px; --r-big: 27px; --leaf-big: 42px; --gutter: 24px; }
}
@media (min-width: 1200px) {
  :root { --gutter: 32px; }
}

/* ───────── base ───────── */
*, *::before, *::after { box-sizing: border-box; }
/* a quick second tap never zooms the page (founder 2026-11-10); two fingers still do */
html { touch-action: manipulation; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h, 68px) + 20px); scroll-padding-bottom: calc(var(--mbar-h, 0px) + 12px); background: var(--paper); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, dl, dd, figure, fieldset { margin: 0; }
ul, ol { padding: 0; }
h1, h2, h3 { font-weight: 800; text-wrap: balance; }
p { text-wrap: pretty; }
img, svg { display: block; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: .08em; }
b, strong { font-weight: 800; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }
.ic { width: 20px; height: 20px; flex: none; }
[dir="rtl"] .arw { transform: scaleX(-1); }
.skip {
  position: absolute; top: -80px; inset-inline-start: 12px; z-index: 60;
  padding: .7rem 1.1rem; border-radius: 12px; background: var(--ink); color: var(--panel); font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

/* headings and the lines under them */
h2 { font-size: clamp(1.85rem, 1.3rem + 2.3vw, 3rem); line-height: 1.2; color: var(--ink); overflow-wrap: break-word; }
:lang(ar) h2 { line-height: 1.34; }
:is(:lang(en),:lang(tr),:lang(id),:lang(fr),:lang(zh)) h2 { letter-spacing: -.015em; }
.lede { margin-top: .7rem; max-width: 52ch; font-size: clamp(1.08rem, 1rem + .4vw, 1.3rem); color: var(--ink-2); }
.sub { margin-top: .6rem; max-width: 56ch; font-size: clamp(1.06rem, 1rem + .3vw, 1.2rem); color: var(--ink-2); font-weight: 700; }
.pill {
  display: inline-flex; align-items: center; min-height: 32px; padding: .2rem .85rem; margin-bottom: .85rem;
  border-radius: 999px; background: var(--panel); border: 1px solid var(--line-2);
  font-size: .92rem; font-weight: 800; color: var(--ink);
}
.hl {
  padding-inline: .08em;
  background: linear-gradient(transparent 58%, var(--sun) 58%, var(--sun) 90%, transparent 90%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.cap { font-size: .9rem; color: var(--muted); }
.small { font-size: .92rem; color: var(--muted); }

/* ───────── buttons (pills: one yellow per band, outline and quiet ones beside it) ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 44px; padding: .55rem 1.3rem; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 800; font-size: 1rem; line-height: 1.2; text-align: center; text-decoration: none;
  cursor: pointer; transition: background-color .15s ease, transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.btn.primary { background: var(--cta); color: var(--ink); box-shadow: 0 3px 0 var(--ledge); }
.btn.outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.sm { min-height: 44px; padding: .45rem 1rem; font-size: .96rem; }
.btn.lg { min-height: 52px; padding: .7rem 1.6rem; font-size: 1.08rem; }
@media (hover: hover) {
  .btn.primary:hover { background: var(--cta-hover); }
  .btn.outline:hover { background: var(--sage); }
  .btn.ghost:hover { background: var(--sage); }
}
.btn.primary:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ledge); }
.btn .arw { width: 20px; height: 20px; }

/* signed in or out: the family's own browser shows «Family account» */
.btn.when-in { display: none; }
[data-in] .btn.when-in { display: inline-flex; }
[data-in] .btn.when-out { display: none; }

/* ───────── header ───────── */
.top {
  position: sticky; top: 0; z-index: 40;
  background: rgba(250, 248, 239, .94);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  box-shadow: 0 1px 0 var(--line);
}
.top-in { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; flex: none; border-radius: 10px; }
.brand img { height: 40px; width: auto; }
.nav { display: none; }
.nav a, .lang {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 .85rem; border-radius: 999px;
  font-weight: 700; text-decoration: none; color: var(--ink);
}
@media (hover: hover) { .nav a:hover, .lang:hover { background: var(--sage); } }
.lang { font-size: .96rem; border: 1px solid var(--line-2); }
.top-acts { margin-inline-start: auto; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px; }
.top .top-acts > .btn.wide { display: none; }
.menu { position: relative; }
.menu > summary { list-style: none; }
.menu > summary::-webkit-details-marker { display: none; }
.ibtn {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel); color: var(--ink); cursor: pointer;
}
.ibtn .ic { width: 22px; height: 22px; }
.menu[open] .m-open, .menu:not([open]) .m-close { display: none; }
.sheet {
  position: absolute; top: calc(100% + 10px); inset-inline-end: 0; z-index: 45;
  width: min(320px, calc(100vw - 2 * var(--gutter)));
  display: grid; gap: 8px; padding: 12px;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 18px; border-start-start-radius: 30px;
  box-shadow: 0 22px 50px rgba(40, 75, 58, .18);
}
.sheet nav { display: grid; gap: 2px; padding-bottom: 6px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.sheet nav a { display: flex; align-items: center; min-height: 48px; padding: 0 14px; border-radius: 12px; font-weight: 700; text-decoration: none; }
@media (hover: hover) { .sheet nav a:hover { background: var(--sage); } }
.sheet > .btn { width: 100%; }
[data-in] .top .btn[data-join] { display: none; }
.notice { padding: .6rem var(--gutter); background: var(--butter); color: var(--ink); text-align: center; font-weight: 700; }
@media (max-width: 379.98px) {
  .brand img { height: 34px; }
  .lang { padding: 0 .7rem; font-size: .9rem; }
}
@media (min-width: 720px) {
  .top-in { min-height: 76px; gap: 12px; }
  .brand img { height: 46px; }
  .top .top-acts > .btn.wide { display: inline-flex; }
  .top .top-acts > .btn.wide.when-in { display: none; }
  [data-in] .top .top-acts > .btn.wide.when-in { display: inline-flex; }
  [data-in] .top .top-acts > .btn.wide.when-out { display: none; }
  [data-in] .top .top-acts > .btn.wide[data-join] { display: none; }
  .top .menu .sheet > .btn { display: none; }
  .sheet nav { border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }
}
@media (min-width: 1100px) {
  .nav { display: flex; flex-wrap: wrap; gap: 2px; margin-inline-start: 1rem; }
  .menu { display: none; }
}

/* ───────── the devices: the app's own screens in an iPhone and an iPad (their corners follow their size) ───────── */
.phone {
  position: relative; margin: 0; padding: 3.4%;
  border-radius: 15% / 6.9%; background: var(--bezel);
  box-shadow: 0 0 0 1px var(--bezel-edge), 0 22px 50px rgba(40, 75, 58, .2);
}
.phone img { width: 100%; border-radius: 12.4% / 5.7%; }
.pad {
  position: relative; margin: 0; padding: 2.4%;
  border-radius: 6% / 4.5%; background: var(--bezel);
  box-shadow: 0 0 0 1px var(--bezel-edge), 0 26px 60px rgba(40, 75, 58, .18);
}
.pad img { width: 100%; border-radius: 3.7% / 2.8%; }
/* rising from its panel's edge: the screen cut above its tab bar, no bezel below */
.pad.rise { padding-bottom: 0; border-radius: 6% 6% 0 0 / 6% 6% 0 0; box-shadow: 0 0 0 1px var(--bezel-edge), 0 -6px 44px rgba(40, 75, 58, .14); }
.pad.rise img { border-radius: 3.8% 3.8% 0 0 / 4% 4% 0 0; }
.rise { overflow: hidden; }
.rise > .phone { box-shadow: 0 0 0 1px var(--bezel-edge), 0 -6px 40px rgba(0, 0, 0, .16); }

/* ───────── hero ───────── */
.hero { position: relative; overflow: hidden; padding-block: clamp(1.4rem, 3.4vw, 3rem) clamp(1.75rem, 3.4vw, 2.75rem); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.6rem; align-items: center; }
.over {
  display: inline-flex; align-items: center; min-height: 34px; padding: .25rem .95rem; border-radius: 999px;
  background: var(--sage); border: 1px solid var(--line); font-weight: 800; font-size: .95rem;
}
.hero h1 {
  margin-top: .8rem;
  font-size: clamp(2.55rem, 1.6rem + 4.3vw, 4.6rem);
  line-height: 1.1;
  overflow-wrap: break-word;
  color: var(--ink);
}
:lang(ar) .hero h1 { line-height: 1.26; }
:is(:lang(en),:lang(tr),:lang(id),:lang(fr),:lang(zh)) .hero h1 { letter-spacing: -.025em; }
.hero .lede { margin-top: .9rem; max-width: 36ch; font-size: clamp(1.1rem, 1rem + .5vw, 1.36rem); }
.hero-acts { display: flex; flex-wrap: wrap; gap: .9rem 1.1rem; margin-top: 1.5rem; }
.act { display: flex; flex-direction: column; align-items: stretch; gap: .4rem; flex: 1 1 15rem; min-width: 0; }
.act .cap { padding-inline: .4rem; }
.stores { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.25rem; }
.store {
  display: inline-flex; align-items: center; gap: .65rem; min-height: 52px; padding: .4rem 1.05rem .4rem .95rem;
  border-radius: 14px; border-start-start-radius: 22px;
  background: var(--deeper); color: var(--panel); text-decoration: none;
  transition: background-color .15s ease;
}
@media (hover: hover) { .store:hover { background: var(--deep); } }
.store .st { width: 24px; height: 24px; }
.store span { display: flex; flex-direction: column; line-height: 1.2; }
.store small { font-size: .78rem; opacity: .86; }
.store b { font-size: 1.05rem; }
/* the child's iPad, the parents' phone in front of it, Tamoora at its foot, all on the sun */
.hero-art {
  position: relative; justify-self: center; width: min(90%, 520px);
  padding-inline-start: 15%; padding-block: 3% 8%;
}
.disc {
  position: absolute; top: 50%; left: 50%; translate: -50% -50%;
  width: 92%; aspect-ratio: 1; border-radius: 50%;
  background: var(--butter); box-shadow: 0 0 0 18px rgba(249, 212, 93, .22);
}
.hero-pad { width: 100%; }
.hero-phone { position: absolute; inset-inline-start: 0; bottom: 0; width: 31%; z-index: 2; }
.mascot {
  position: absolute; z-index: 3; inset-inline-end: -3%; bottom: -1%; width: 23%;
  animation: rise .42s cubic-bezier(.2, .7, .3, 1) .15s both;
}
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@media (min-width: 560px) {
  .act { flex: 0 0 auto; align-items: flex-start; }
}
@media (min-width: 960px) {
  .hero-in { grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: 2.5rem; }
}

/* ───────── the worlds (R1e): the six colour cards of the app's home as tabs, each world shown in place under them ───────── */
.worlds { padding-block: 0 clamp(2.25rem, 4.6vw, 3.5rem); }
.worlds > .wrap > h2 { font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2.25rem); }
.wtabs {
  margin-top: 1rem;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, max(6.3rem, calc((100% - 16px) / 3))), 1fr)); gap: 8px;
}
.wtab {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; min-width: 0;
  min-height: 92px; padding: 10px 8px; text-align: center;
  border: 2px solid transparent; border-radius: var(--r); border-start-start-radius: var(--leaf);
  background: var(--tone, var(--sage)); color: var(--ink); font: inherit; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.wtab .gl { width: 34px; height: 36px; flex: none; }
.wtab b { font-size: 1rem; line-height: 1.3; overflow-wrap: break-word; min-width: 0; max-width: 100%; }
/* the world on show: an ink edge and a bar along its foot (never its colour alone) */
.wtab[aria-selected="true"] { border-color: var(--ink); box-shadow: inset 0 -5px 0 var(--ink), 0 10px 22px rgba(40, 75, 58, .14); }
@media (hover: hover) {
  .wtab:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(40, 75, 58, .12); }
  .wtab[aria-selected="true"]:hover { box-shadow: inset 0 -5px 0 var(--ink), 0 10px 22px rgba(40, 75, 58, .14); }
}
@media (min-width: 768px) {
  .wtabs { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 12px; }
  .wtab { flex-direction: row; justify-content: flex-start; gap: .65rem; min-height: 72px; padding: 12px 16px; text-align: start; }
  .wtab .gl { width: 40px; height: 43px; }
  .wtab b { font-size: 1.1rem; }
}
.t-lav { --tone: var(--lav); }
.t-teal { --tone: var(--teal); }
.t-peach { --tone: var(--peach); }
.t-lime { --tone: var(--lime); }
.t-coral { --tone: var(--coral); }
.t-butter { --tone: var(--butter); }
.t-sage { --tone: var(--sage); }

/* a world's panel (R1f): the same box for every world, its own tint, its words and three points beside the app's own
   iPad screen in one frame of one size (the screen first on a phone, beside the words from 900px) */
.wp {
  --wp-pad: clamp(16px, 3vw, 40px);
  position: relative; margin-top: 14px;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.4rem; align-items: center;
  padding: var(--wp-pad);
  border-radius: var(--r-big); border-start-start-radius: var(--leaf-big);
  background: var(--wp-bg, var(--panel)); border: 1px solid var(--wp-edge, var(--line));
}
.wp-copy { min-width: 0; }
.wp h3 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.7rem); line-height: 1.2; overflow-wrap: break-word; }
:lang(ar) .wp h3 { line-height: 1.34; }
:is(:lang(en),:lang(tr),:lang(id),:lang(fr),:lang(zh)) .wp h3 { letter-spacing: -.015em; }
.wp .sub { margin-top: .5rem; }
.wp-pts { list-style: none; display: grid; gap: .5rem; margin-top: 1.1rem; }
.wp-pts li {
  display: flex; align-items: flex-start; gap: .55rem; min-width: 0; padding: .7rem .95rem;
  border-radius: 14px; border-start-start-radius: 22px;
  background: rgba(255, 254, 248, .78); border: 1px solid var(--wp-edge, var(--line));
  font-weight: 800; line-height: 1.45; overflow-wrap: break-word;
}
.wp-pts li > span { min-width: 0; }
.wp-note { margin-top: 1rem; max-width: 62ch; font-size: .95rem; font-weight: 700; color: var(--muted); }
.ipad {
  order: -1; justify-self: center; margin: 0; width: min(100%, 300px); padding: 3.2%;
  border-radius: 7% / 5.25%; background: var(--bezel);
  box-shadow: 0 0 0 1px var(--bezel-edge), 0 24px 54px rgba(40, 75, 58, .2);
}
.ipad img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; border-radius: 4.2% / 3.15%; background: var(--paper); }
.wp-youtube { --wp-bg: #fdebe6; --wp-edge: #f4cfc5; }
.wp-school { --wp-bg: var(--band-lilac); --wp-edge: #e1d6f4; }
.wp-academy { --wp-bg: #e4f3f2; --wp-edge: #c9e4e2; }
.wp-stories { --wp-bg: #fff1e3; --wp-edge: #f6dcc4; }
.wp-quran { --wp-bg: var(--band-lime); --wp-edge: #dbe6bd; }
.wp-companion { --wp-bg: #fff6cf; --wp-edge: #f2e3a6; }
.wp:focus-visible { outline-offset: 3px; }
/* the six panels share one cell, so the box keeps the tallest world's size whichever is shown, at every width and
   text size; a world not shown keeps its room unseen (out of sight, of the keyboard and of a screen reader) */
.wps { display: grid; grid-template-columns: minmax(0, 1fr); }
.wps > .wp { grid-area: 1 / 1; }
.wps > .wp[hidden] { display: grid !important; visibility: hidden; }
@media (min-width: 900px) {
  .wp { grid-template-columns: minmax(0, 1fr) 340px; gap: 3rem; }
  .ipad { order: 0; width: 100%; }
  .wp h3 br { display: none; }
}

/* ───────── the parents' controls' tiles ───────── */
.dot { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; flex: none; }
.dot .ic { width: 21px; height: 21px; }
.ctl {
  list-style: none; margin-top: 1.4rem;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 9.6rem), 1fr)); gap: 10px;
}
.ctl li {
  display: flex; flex-direction: column; align-items: flex-start; gap: .2rem; min-width: 0;
  padding: 14px 14px 16px; border-radius: 14px; border-start-start-radius: 26px;
}
.ctl b { margin-top: .45rem; font-size: 1.05rem; line-height: 1.35; overflow-wrap: break-word; max-width: 100%; }
.ctl li > span:last-child { font-size: .94rem; line-height: 1.5; overflow-wrap: break-word; max-width: 100%; }
@media (min-width: 768px) {
  .ctl { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ───────── the parents' space ───────── */
.pa { position: relative; overflow: hidden; padding-top: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--line); background: var(--learn); }
.pa-in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
.ctl li { background: var(--tone, var(--sage)); }
.ctl .dot { background: var(--panel); color: var(--ink); }
.ctl li > span:last-child { color: var(--ink-2); }
.trust { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; margin-top: 1.1rem; }
.trust ul { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; }
.trust li { display: inline-flex; align-items: center; gap: .35rem; font-size: .93rem; font-weight: 700; color: var(--ink-2); line-height: 1.5; }
.trust .ck { width: 18px; height: 18px; flex: none; color: var(--ok); }
.trust a { display: inline-flex; align-items: center; min-height: 32px; font-size: .93rem; font-weight: 800; color: var(--ink); }
.pa-art { display: flex; justify-content: center; align-items: flex-end; }
.pa-art .pad { width: min(92%, 520px); }
@media (min-width: 900px) {
  .pa h2 br { display: none; }
  .pa-in { grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr); gap: 3rem; }
  .pa-copy { padding-bottom: clamp(2.5rem, 4.4vw, 4rem); }
  .pa-art .pad { width: min(100%, 480px); }
}

/* ───────── the rows a phone scrolls sideways, the next tile showing at the edge (a grid on a wider screen, a column
   on the narrowest) ───────── */
@media (min-width: 360px) and (max-width: 767.98px) {
  .rail {
    display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(70%, 16rem); gap: 10px;
    margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 14px;
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
    scrollbar-width: thin; scrollbar-color: var(--line-2) transparent;
  }
  .rail > * { scroll-snap-align: start; }
  .rail:focus-visible { outline-offset: -3px; }
}

/* ───────── the plans ───────── */
.plans { padding-block: clamp(2.5rem, 5vw, 4rem); background: var(--panel); border-block: 1px solid var(--line); }
.plans h2, .plans .wrap > .lede { text-align: center; margin-inline: auto; }
/* the free account above the plans, as the app shows it */
.free-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 18px; align-items: center;
  max-width: 640px; margin: 1.5rem auto 0; padding: 18px 20px;
  border: 1px solid #d9e1cd; border-radius: var(--r-big); border-start-start-radius: var(--leaf-big);
  background: linear-gradient(120deg, #eef2e2, #fffdf3);
}
.free-row > div { min-width: 0; }
.free-row h3 { font-size: 1.22rem; line-height: 1.4; }
.free-price { font-weight: 800; color: var(--ink); }
.free-row .tline { font-size: .95rem; color: var(--muted); }
@media (max-width: 479.98px) {
  .free-row { grid-template-columns: minmax(0, 1fr); }
  .free-row .btn { width: 100%; }
}
.pick { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 10px 18px; margin-top: 1.4rem; }
.seg { border: 0; padding: 0; min-width: 0; text-align: center; }
.seg legend.seg-q { position: static; width: auto; height: auto; overflow: visible; clip-path: none; white-space: normal; margin-inline: auto; padding: 0 0 .45rem; font-weight: 800; color: var(--ink); }
.save { padding: .05rem .5rem; border-radius: 999px; background: var(--butter); color: var(--ink); font-size: .82rem; font-weight: 800; }
.seg legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.seg-in { position: relative; display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px; padding: 4px; border-radius: 999px; background: var(--foot); border: 1px solid var(--line); }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.seg label {
  display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; padding: 0 1.05rem; border-radius: 999px;
  border: 1px solid transparent; color: var(--muted); font-weight: 700; cursor: pointer; white-space: nowrap;
  flex-wrap: wrap; justify-content: center; max-width: 100%;
}
.seg-in { max-width: 100%; }
.save { white-space: nowrap; }
.seg .sk { display: none; width: 18px; height: 18px; color: var(--ok); }
.seg input:checked + label { background: var(--panel); color: var(--ink); font-weight: 800; border-color: var(--line-2); box-shadow: 0 1px 3px rgba(40, 75, 58, .14); }
.seg input:checked + label .sk { display: block; }
.seg input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; }
.tiers { display: grid; gap: 14px; max-width: 880px; margin: 1.75rem auto 0; }
.tier {
  position: relative; display: flex; flex-direction: column; gap: .6rem; padding: 20px 16px 16px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-big); border-start-start-radius: var(--leaf-big);
}
.tier h3 { font-size: 1.36rem; line-height: 1.3; }
.badge {
  position: absolute; top: -14px; inset-inline-start: 22px;
  padding: .25rem .85rem; border-radius: 999px; background: var(--sun); color: var(--ink);
  font-size: .86rem; font-weight: 800; box-shadow: 0 2px 0 var(--ledge);
}
.trial { align-self: flex-start; padding: .2rem .75rem; border-radius: 999px; background: var(--butter); color: var(--ink); font-size: .9rem; font-weight: 800; }
.price { display: block; }
.p { display: none; flex-wrap: wrap; align-items: baseline; gap: .1rem .45rem; }
.amt { font-size: clamp(2.2rem, 1.85rem + 1.3vw, 2.8rem); line-height: 1.05; font-weight: 800; font-variant-numeric: tabular-nums; }
.unit { font-weight: 800; color: var(--ink-2); }
:is(:lang(en),:lang(tr),:lang(id),:lang(fr),:lang(zh)) .p .unit { order: -1; }
.for { flex-basis: 100%; font-size: .95rem; color: var(--muted); }
.eq { margin-top: .3rem; padding: .15rem .7rem; border-radius: 999px; background: var(--butter); color: var(--ink); font-size: .9rem; font-weight: 800; }
.na { display: block; color: var(--muted); font-weight: 700; }
.tline { color: var(--ink-2); font-weight: 700; }
.feats { list-style: none; display: grid; gap: .4rem; }
.feats li { display: flex; align-items: flex-start; gap: .55rem; line-height: 1.5; }
.ck { width: 20px; height: 20px; flex: none; margin-top: .2rem; color: var(--ok); }
.tier > .btn { margin-top: auto; width: 100%; }
.tier .feats { margin-bottom: .5rem; }
.tier.featured {
  background: linear-gradient(160deg, var(--deep), var(--deeper)); color: var(--panel); border-color: transparent;
  box-shadow: 0 22px 46px rgba(24, 63, 53, .22);
}
.tier.featured h3, .tier.featured .amt { color: var(--panel); }
.tier.featured .amt { color: var(--sun); }
.tier.featured .unit { color: #e9f0e6; }
.tier.featured .for, .tier.featured .na { color: var(--on-deep-2); }
.tier.featured .ck { color: var(--sun); }
.tier.featured :focus-visible { outline-color: var(--sun); }
.plans-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.5rem; margin-top: 1.4rem; color: var(--muted); font-size: .96rem; }
.plans-foot a { display: inline-flex; align-items: center; min-height: 32px; font-weight: 700; color: var(--ink); }
@supports selector(:has(*)) {
  .plans:not([data-sel]):has(#cy-y:checked) .p[data-k="m1"],
  .plans:not([data-sel]):has(#kd-2:checked) .p[data-k="m1"],
  .plans:not([data-sel]):has(#kd-3:checked) .p[data-k="m1"] { display: none; }
  .plans:not([data-sel]):has(#cy-m:checked):has(#kd-2:checked) .p[data-k="m2"],
  .plans:not([data-sel]):has(#cy-m:checked):has(#kd-3:checked) .p[data-k="m3"],
  .plans:not([data-sel]):has(#cy-y:checked):has(#kd-1:checked) .p[data-k="y1"],
  .plans:not([data-sel]):has(#cy-y:checked):has(#kd-2:checked) .p[data-k="y2"],
  .plans:not([data-sel]):has(#cy-y:checked):has(#kd-3:checked) .p[data-k="y3"] { display: flex; }
}
.plans:not([data-sel]) .p[data-k="m1"] { display: flex; }
.plans[data-sel="m1"] .p[data-k="m1"],
.plans[data-sel="m2"] .p[data-k="m2"],
.plans[data-sel="m3"] .p[data-k="m3"],
.plans[data-sel="y1"] .p[data-k="y1"],
.plans[data-sel="y2"] .p[data-k="y2"],
.plans[data-sel="y3"] .p[data-k="y3"] { display: flex; }
@media (min-width: 900px) {
  .tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
  .tier { padding: 28px 24px 24px; }
  .tier .price { min-height: 6.6rem; }
}

/* ───────── the parents' questions ───────── */
.faq { padding-block: clamp(2.5rem, 5vw, 4rem); }
.faq-in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.1rem; }
.qa { border-bottom: 1px solid var(--line); }
.faq-list > .qa:first-child { border-top: 1px solid var(--line); }
.qa > summary {
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 58px; padding: 12px 4px; cursor: pointer; font-weight: 800; font-size: 1.08rem; line-height: 1.45; border-radius: 8px;
}
.qa > summary::-webkit-details-marker { display: none; }
.cv { width: 22px; height: 22px; flex: none; transition: transform .2s ease; }
.qa[open] .cv { transform: rotate(180deg); }
.ans { padding: 0 4px 18px; color: var(--ink-2); line-height: 1.8; }
.ans p { max-width: 68ch; }
.ans p + p { margin-top: .5rem; }
.ans a { font-weight: 800; color: var(--ink); }
@media (min-width: 900px) {
  .faq-in { grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); gap: 3rem; align-items: start; }
}

/* ───────── the last word ───────── */
.final { padding-block: 0 clamp(2.75rem, 6vw, 4.5rem); }
.final-card {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; align-items: center; overflow: hidden;
  padding: clamp(24px, 4.5vw, 48px);
  border-radius: 28px; border-start-start-radius: 56px;
  background: linear-gradient(135deg, var(--sage), #fbf8e9); border: 1px solid var(--line);
}
.final-card h2 { font-size: clamp(1.9rem, 1.35rem + 2.3vw, 3rem); }
.final-copy > p:first-of-type { margin-top: .5rem; font-size: 1.12rem; color: var(--ink-2); }
.final .hero-acts { margin-top: 1.3rem; }
.final .hero-acts .btn { flex: 1 1 13rem; min-width: 0; }
@media (min-width: 560px) { .final .hero-acts .btn { flex: 0 0 auto; } }
.final .cap { margin-top: .6rem; }
.final-mascot { width: clamp(96px, 26vw, 180px); justify-self: center; }
@media (min-width: 860px) {
  .final-card { grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; }
}

/* ───────── footer ───────── */
.foot { padding-block: 2.5rem 1.25rem; background: var(--foot); border-top: 1px solid #e3e1cf; }
.foot-in { display: grid; gap: 1.6rem 1.5rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.foot-brand { grid-column: 1 / -1; }
.foot-brand img { height: 42px; width: auto; }
.op { margin-top: .6rem; color: var(--muted); font-size: .95rem; }
.foot h2 { font-size: 1rem; line-height: 1.4; margin-bottom: .5rem; }
.foot ul { list-style: none; display: grid; gap: .2rem; }
.foot-in > * { min-width: 0; }
.foot li { color: var(--ink-2); font-size: .96rem; overflow-wrap: anywhere; }
.foot li a { display: inline-block; max-width: 100%; padding-block: .25rem; color: var(--ink); text-decoration: none; }
@media (hover: hover) { .foot li a:hover { text-decoration: underline; } }
.foot-in > div:last-child { grid-column: 1 / -1; }
.copy-line { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid #e3e1cf; color: var(--muted); font-size: .9rem; }
/* the guides' column (SEO_1104): three columns under the brand, then the six side by side */
@media (min-width: 900px) {
  .foot-in { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-in > div:last-child { grid-column: span 2; }
}
@media (min-width: 1180px) {
  .foot-in { grid-template-columns: minmax(0, 1.1fr) minmax(0, .8fr) minmax(0, .9fr) minmax(0, .9fr) minmax(0, .8fr) minmax(0, 1.25fr); }
  .foot-brand, .foot-in > div:last-child { grid-column: auto; }
}

/* ───────── the bar on a phone ───────── */
.mbar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 35;
  display: flex; flex-wrap: wrap; gap: 10px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 254, 248, .96); border-top: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: transform .25s ease, visibility 0s linear 0s;
}
.mbar .btn { flex: 1 1 8rem; min-width: 0; }
.mbar[data-hide] { transform: translateY(110%); visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s; }
@media (max-width: 767.98px) {
  body { padding-bottom: max(var(--mbar-h, 0px), calc(72px + env(safe-area-inset-bottom))); }
  html { scroll-padding-bottom: calc(var(--mbar-h, 72px) + 12px); }
}
@media (min-width: 768px) {
  .mbar { display: none; }
}

/* ───────── a world's own page (SEO_1027): the breadcrumb, the hero with its screen, the points as the parents' tiles,
   the other worlds as the home's colour cards; and the home panel's link to it ───────── */
.wp-more { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; margin-top: .8rem; font-weight: 800; color: var(--ink); }
.wp-more .arw { width: 20px; height: 20px; }
.crumbs { padding-top: 1rem; font-size: .93rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; margin: 0; padding: 0; }
.crumbs li + li::before { content: '›'; margin-inline-end: .3rem; color: var(--muted); }
[dir="rtl"] .crumbs li + li::before { content: '‹'; }
.crumbs a { display: inline-flex; align-items: center; min-height: 32px; font-weight: 700; color: var(--ink); }
.crumbs [aria-current] { color: var(--muted); }
.tp .over { gap: .45rem; background: var(--tone, var(--sage)); }
.tp .over-gl { width: 22px; height: 23px; flex: none; }
.tp .hero h1 { font-size: clamp(2.2rem, 1.5rem + 3.2vw, 3.8rem); }
.tp-art { justify-self: center; width: min(88%, 380px); }
.tp-ipad { order: 0; width: 100%; }
.tp-pad { width: 100%; }
.tp-sec { padding-block: clamp(1.6rem, 3.6vw, 2.6rem) 0; }
.tp-sec h2, .tp-more h2 { font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2.25rem); }
.tp-pts { grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); }
.tp-pts b { margin-top: 0; }
.tp .faq { margin-top: clamp(1rem, 2.6vw, 2rem); border-top: 1px solid var(--line); }
.tp-more { padding-block: 0 clamp(2rem, 4vw, 3rem); }
.tp-worlds { list-style: none; padding: 0; }
.tp-worlds > li { display: flex; min-width: 0; }
.tp-worlds .wtab { flex: 1 1 auto; text-decoration: none; }
/* the library's pages (SEO_1027 round 2): a list of links as chips, the books with their units, a surah's way on */
.lib-links { list-style: none; padding: 0; margin-top: 1rem; display: grid; gap: .5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 11.5rem), 1fr)); }
.lib-links a {
  display: flex; align-items: center; min-height: 44px; padding: .55rem .9rem; border-radius: 14px;
  background: var(--panel); border: 1px solid var(--line-2); color: var(--ink); font-weight: 700; text-decoration: none; overflow-wrap: anywhere;
}
.lib-books { list-style: none; padding: 0; margin-top: 1rem; display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }
.lib-books > li { padding: 1rem 1.1rem; border-radius: 20px; background: var(--tone, var(--sage)); border: 1px solid var(--line); }
.lib-books b { display: block; font-size: 1.12rem; color: var(--ink); }
.lib-books span { display: block; margin-top: .15rem; color: var(--ink-2); font-weight: 700; }
.lib-books ol { margin: .6rem 0 0; padding-inline-start: 1.3rem; color: var(--ink-2); }
.lib-books ol li { margin-top: .2rem; }
/* SEO_1104: a unit at its printed page, with the lessons its table of contents lists */
.lib-cap { margin-top: .5rem; max-width: 62ch; color: var(--ink-2); }
.lib-books > li > ol > li { font-weight: 700; }
.lib-books .pg { display: inline; margin: 0; font-size: .86rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.lib-books ol.les { margin-top: .15rem; padding-inline-start: 1.15rem; list-style: disc; font-size: .95rem; }
.lib-books ol.les li { font-weight: 400; margin-top: .1rem; }
.lib-nav { display: flex; flex-wrap: wrap; gap: .6rem; padding-block: clamp(1.4rem, 3vw, 2rem) clamp(2rem, 4vw, 3rem); }
.lib-up { padding-block: .8rem clamp(2rem, 4vw, 3rem); font-weight: 800; }
.lib-up a { color: var(--ink); }
.src { margin-top: .4rem; color: var(--muted); font-size: .92rem; }
.src summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }
.src pre { white-space: pre-wrap; font: inherit; font-size: .85rem; margin-top: .4rem; }
@media (hover: hover) {
  .lib-links a:hover { border-color: var(--ink); background: var(--sage); }
}
@media (min-width: 768px) {
  .tp-pts { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .tp .hero-in { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
  .tp-art { width: min(100%, 400px); }
}

/* ───────── motion, contrast, print ───────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mascot { animation: fade 1ms both; }
  .btn, .wtab, .cv, .mbar, .store { transition: none; }
  .wtab:hover { transform: none; }
}
@media (forced-colors: active) {
  .btn, .store, .ibtn, .lang, .seg-in { border: 2px solid ButtonText; }
  .wtab { border: 1px solid ButtonText; }
  .wtab[aria-selected="true"] { border: 4px solid Highlight; }
  .wtab[aria-selected="true"] b { text-decoration: underline; text-underline-offset: .25em; }
  .tier, .wp, .wp-pts li, .ctl li, .final-card, .free-row, .ipad { border: 1px solid CanvasText; }
  .seg input:checked + label { outline: 2px solid Highlight; }
  .hl { background: none; text-decoration: underline; }
  .disc { display: none; }
}
@media print {
  .top, .mbar, .menu, .stores, .hero-art, .ipad, .pa-art, .wtabs, .wps > .wp[hidden] { display: none !important; }
  body { padding-bottom: 0; }
}

/* (§56, his word 11-23) one plan, two cards side by side — the month's and the year's, the year's lifted — and the plan's
   lines once under them */
.tiers.duo { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-width: 680px; align-items: stretch; margin-top: 2.2rem; }
.tiers.duo .tier { padding: 28px 16px 16px; gap: .55rem; text-align: center; }
.tiers.duo .tier h3 { font-size: 1.2rem; }
.tiers.duo .tier .price { min-height: 0; }
.tiers.duo .tier[data-cycle] .p:not([hidden]) { display: flex; flex-direction: column; align-items: center; gap: .2rem; }
.tiers.duo .amt { font-size: clamp(2.6rem, 2.1rem + 2.2vw, 3.5rem); line-height: 1; }
.tiers.duo .for { flex-basis: auto; }
.tiers.duo .eq { margin-top: .4rem; }
.tiers.duo .badge { inset-inline-start: auto; left: 50%; transform: translateX(-50%); white-space: nowrap; }
.tiers.duo .badge[hidden] { display: none; }
.tiers.duo .tier > .btn { margin-top: auto; padding-inline: .8rem; }
.incl { max-width: 680px; margin: 1.1rem auto 0; padding: 20px 22px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-big); }
.incl[hidden] { display: none; }
.incl h3 { font-size: 1.12rem; line-height: 1.4; margin-bottom: .75rem; }
.incl .feats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem 1.4rem; }
@media (max-width: 600px) { .incl .feats { grid-template-columns: minmax(0, 1fr); } .incl { padding: 16px; } }
@media (max-width: 400px) { .tiers.duo { gap: 10px; } .tiers.duo .tier { padding: 26px 10px 12px; } .tiers.duo .tier > .btn { font-size: .9rem; padding-inline: .45rem; } .tiers.duo .for, .tiers.duo .eq { font-size: .84rem; } }
@media (forced-colors: active) { .incl { border: 1px solid CanvasText; } }
/* (his word 45, later) the free card under the two cards and the plan's lines, at their width: nothing above the two cards */
.incl + .free-row { max-width: 680px; margin-top: 1.4rem; }

/* (his word 46, 11-23) «Join for free» one line under the plans' head; the year's card says its month, as large as the
   month's price; the plan's lines under the two cards */
.plans .join-line { margin: .8rem auto 0; text-align: center; font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); font-weight: 800; line-height: 1.4; }
.plans .join-line[hidden] { display: none; }
.plans .join-line a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .28em; }
.plans .join-line a:hover { text-decoration-thickness: 3px; }
.plans .join-line a:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; border-radius: 6px; }
.tiers.duo .tier .p .eq.big { margin: 0; padding: 0; background: none; border-radius: 0; color: inherit; font-size: clamp(2.6rem, 2.1rem + 2.2vw, 3.5rem); line-height: 1; font-weight: 800; font-variant-numeric: tabular-nums; }
.tiers.duo .tier.featured .p .eq.big { color: var(--sun); }
@media (forced-colors: active) { .plans .join-line a { color: LinkText; } .tiers.duo .tier .p .eq.big { color: CanvasText; } }

/* (his word 47, 11-23) the parents' iPad whole — its full screen with its tab bar, the bezel all round — centred on the copy
   beside it, which keeps its own foot: no empty band above the device */
.pa-art { align-items: center; padding-bottom: clamp(2.5rem, 4.4vw, 4rem); }
