/* Aan's own page (src/aan/index.njk, and src/ar/aan.njk right to left).
   The app's screenshots carry the page, and the words beside each say what it shows. The page is as
   plain as the app: its white and grays, its interface blue for links, light or dark as the reader's
   device is. Type: Readex Pro, one family for English and Arabic.
   Screenshots: img/en/ and img/ar/, made from the App Store set (APP_STORE_SCREENSHOTS_1.0.md). */

@font-face { font-family: "Readex Pro"; font-style: normal; font-weight: 160 700; font-display: swap;
  src: url("/aan/assets/fonts/readex-pro-latin-wght-normal.woff2") format("woff2-variations"),
       url("/aan/assets/fonts/readex-pro-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Readex Pro"; font-style: normal; font-weight: 160 700; font-display: swap;
  src: url("/aan/assets/fonts/readex-pro-arabic-wght-normal.woff2") format("woff2-variations"),
       url("/aan/assets/fonts/readex-pro-arabic-wght-normal.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }

/* The app's own colours (AanShared/Colors.swift): its page, its grouped gray, its secondary gray,
   its interface blue, its late red. */
:root {
  color-scheme: light dark;
  --page: #FFFFFF;
  --band: #F2F2F7;
  --ink: #000000;
  --ink-2: #6B6B70;
  --hair: rgba(60, 60, 67, 0.16);
  --link: #1470AD;
  --late: #D70015;
  --event: #AF52DE;
  --shadow: 0 30px 60px -30px rgba(20, 40, 70, 0.35);
  --wrap: 1160px;   /* the studio strip's width, so the bars line up */
  --gutter: 26px;
  --font: "Readex Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --page: #000000;
    --band: #1C1C1E;
    --ink: #FFFFFF;
    --ink-2: #98989D;
    --hair: rgba(235, 235, 245, 0.16);
    --link: #1593D1;
    --late: #FF6961;
    --shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--page); color: var(--ink); font-family: var(--font); font-size: 18px; line-height: 1.6;
  font-weight: 340; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
html[lang="ar"] body { line-height: 1.8; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; color: var(--ink); font-weight: 560; letter-spacing: -0.02em; line-height: 1.12; text-wrap: balance; }
html[lang="ar"] :is(h1, h2, h3) { letter-spacing: 0; line-height: 1.4; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--page); padding: 8px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }

/* ---------- The bar ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--page) 85%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px); border-bottom: 1px solid var(--hair); }
.nav-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 20px; }
.brand img { width: 32px; height: 32px; border-radius: 22.4%; box-shadow: 0 0 0 1px var(--hair); }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 15.5px; font-weight: 420; }
.nav-links a { color: var(--ink-2); text-decoration: none; }
.nav-links a:hover { color: var(--ink); }
.nav-lang { padding-inline-start: 18px; border-inline-start: 1px solid var(--hair); }
.nav-get { padding: 7px 16px; border-radius: 999px; background: var(--link); color: #FFFFFF !important; font-weight: 500; }
.nav-get:hover { filter: brightness(1.08); }
@media (max-width: 820px) { .nav-links .nav-section { display: none; } .nav-lang { border: 0; padding: 0; } }
@media (max-width: 420px) { .nav-links { gap: 14px; } }

/* ---------- A screenshot: the screen alone, its own corners, no device around it ---------- */
.shot { display: block; width: 100%; background: var(--band); box-shadow: 0 0 0 1px var(--hair), var(--shadow); }
.shot.phone { border-radius: 13.6% / 6.26%; }   /* iPhone 17 Pro's corners on 1206 × 2622 */
.shot.ipad { border-radius: 3.4% / 4.5%; }
.shot.mac { border-radius: 1.2% / 1.9%; }
.shot.watch { border-radius: 24% / 20%; }

/* ---------- The top: Today, and what it shows ---------- */
.hero { padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 8vw, 104px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: clamp(36px, 7vw, 110px); align-items: center; }
.hero h1 { font-size: clamp(40px, 5.6vw, 68px); font-weight: 580; letter-spacing: -0.035em; line-height: 1.02; margin-bottom: 24px; }
html[lang="ar"] .hero h1 { letter-spacing: 0; line-height: 1.3; }
.lede { font-size: clamp(19px, 1.7vw, 21px); line-height: 1.55; color: var(--ink-2); max-width: 31em; margin-bottom: 30px; }
.get { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-bottom: 40px; }
.get img { height: 54px; width: auto; }
.get span { font-size: 15.5px; color: var(--ink-2); }
/* What the screenshot shows, each line with the mark the app draws for it. */
.points { list-style: none; margin: 0; padding: 22px 0 0; border-top: 1px solid var(--hair); display: grid; gap: 14px; max-width: 32em; }
.points li { display: grid; grid-template-columns: 26px 1fr; column-gap: 12px; align-items: baseline; font-size: 17px; }
.points li::before { content: ""; justify-self: center; transform: translateY(2px); }
.points .late::before { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--late); }
.points .due::before { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--link); box-shadow: 0 0 0 4px color-mix(in srgb, var(--link) 22%, transparent), 0 0 10px 4px color-mix(in srgb, var(--link) 30%, transparent); }
.points .event::before { width: 4px; height: 16px; border-radius: 2px; background: var(--event); }
.points .part::before { width: 16px; height: 2px; border-radius: 1px; background: var(--ink-2); transform: translateY(-4px); }
.hero-shot { max-width: 340px; justify-self: end; width: 100%; }
html[dir="rtl"] .hero-shot { justify-self: start; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-shot { justify-self: center !important; max-width: 320px; }
}

/* ---------- A feature: its screenshot, and the words that explain it ---------- */
.feature { padding: clamp(56px, 8vw, 96px) 0; }
.feature + .feature { padding-top: 0; }
.feature .wrap { display: grid; grid-template-columns: minmax(240px, 320px) minmax(0, 1fr); gap: clamp(36px, 8vw, 120px); align-items: center; }
.feature.flip .wrap { grid-template-columns: minmax(0, 1fr) minmax(240px, 320px); }
.feature.flip .text { order: -1; }
.feature .text { max-width: 30em; }
.feature h2, .section-head h2 { font-size: clamp(30px, 3.8vw, 44px); margin-bottom: 18px; }
.feature p { color: var(--ink-2); }
.feature p:last-child { margin-bottom: 0; }
.feature q, .grid3 q { color: var(--ink); quotes: "“" "”" "‘" "’"; }
html[lang="ar"] :is(.feature, .grid3) q { quotes: "«" "»" "‹" "›"; }
@media (max-width: 760px) {
  .feature .wrap, .feature.flip .wrap { grid-template-columns: minmax(0, 1fr); }
  .feature .text { order: -1; }
  .feature .shot.phone { max-width: 300px; margin: 0 auto; }
}

/* Three more, side by side. */
.more { padding: clamp(56px, 8vw, 96px) 0; background: var(--band); }
.section-head { max-width: 36em; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head p { color: var(--ink-2); font-size: 19px; margin: 0; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); }
.grid3 .shot.phone { max-width: 280px; margin-bottom: 28px; }
.more .shot { box-shadow: 0 0 0 1px var(--hair), 0 24px 44px -26px rgba(20, 40, 70, 0.3); }
h3 { font-size: 21px; font-weight: 560; letter-spacing: -0.01em; margin-bottom: 8px; }
.grid3 p { color: var(--ink-2); margin: 0; }
@media (max-width: 860px) { .grid3 { grid-template-columns: minmax(0, 1fr); max-width: 30em; } .grid3 .shot.phone { max-width: 260px; } }

/* Every device. */
.devices { padding: clamp(64px, 9vw, 112px) 0; }
.dev-grid { display: grid; grid-template-columns: 5fr 5fr 2fr; gap: clamp(24px, 3vw, 40px); align-items: end; }
.dev-grid figure { margin: 0; }
.dev-grid figcaption { margin-top: 20px; color: var(--ink-2); font-size: 16.5px; }
.dev-grid figcaption b { display: block; color: var(--ink); font-weight: 560; font-size: 18px; margin-bottom: 4px; }
@media (max-width: 900px) { .dev-grid { grid-template-columns: 1fr 1fr; } .dev-grid figure:last-child { grid-column: 1 / -1; max-width: 260px; } }
@media (max-width: 600px) { .dev-grid { grid-template-columns: minmax(0, 1fr); } }

/* Privacy, and what Apple's Reminders shares: words only. */
.band { background: var(--band); padding: clamp(64px, 9vw, 112px) 0; }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(36px, 6vw, 96px); }
.split h2 { font-size: clamp(28px, 3.2vw, 38px); margin-bottom: 18px; }
.split p, .facts li { color: var(--ink-2); }
.facts { margin: 0 0 20px; padding-inline-start: 1.2em; display: grid; gap: 8px; }
.qa { display: grid; gap: 26px; }
.qa p { margin: 0; color: var(--ink-2); }
.qa h3 { font-size: 18px; margin-bottom: 4px; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }

/* The close. */
.final { padding: clamp(72px, 10vw, 128px) 0; text-align: center; }
.final img.icon { width: 96px; height: 96px; margin: 0 auto 28px; border-radius: 22.4%; box-shadow: 0 0 0 1px var(--hair); }
.final h2 { font-size: clamp(32px, 4.4vw, 52px); margin-bottom: 16px; }
.final p { color: var(--ink-2); max-width: 34em; margin-inline: auto; }
.final .get { justify-content: center; margin: 30px 0 0; }
.final .lb-help { border-color: var(--hair); background: var(--band); color: var(--ink); margin-top: 44px; }
.final .lb-note { margin-top: 18px; font-size: 15px; color: var(--ink-2); }

/* ---------- Pieces (X147, 2 Dec): parts of the real screens, straight on the page ---------- */
:root { --ring: #1A6DAE; --pale: #E7EFF8; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --ring: #1593D1; --pale: rgba(21, 147, 209, 0.14); } }
:root[data-theme="dark"] { --ring: #1593D1; --pale: rgba(21, 147, 209, 0.14); }
/* A thing with its own shape (the Mac's panels, its window): its own edge and shadow. */
.co { display: block; filter: drop-shadow(0 0 0.5px rgba(0, 0, 0, 0.16)) drop-shadow(0 18px 30px rgba(20, 40, 70, 0.16)); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .co { filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.6)); } }
:root[data-theme="dark"] .co { filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.6)); }
/* The top (X149, 3 Dec): the words, and Today's whole screen in an iPhone beside them; the points under Download. */
.p-top { padding: clamp(32px, 3.6vw, 52px) 0 clamp(48px, 6vw, 80px); }
.p-top-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; grid-template-areas: "text ph" "pts ph"; column-gap: clamp(40px, 7vw, 104px); align-items: center; }
.p-top-text { grid-area: text; align-self: end; }
.p-top-ph { grid-area: ph; }
.p-top .points { grid-area: pts; align-self: start; max-width: 30em; gap: 12px; margin-top: 8px; }
.p-top h1 { max-width: 11em; }
.p-top .lede { max-width: 28em; }
.p-icon { width: 88px; height: 88px; border-radius: 22.4%; box-shadow: 0 0 0 1px var(--hair), 0 18px 40px -18px rgba(20, 40, 70, 0.35); margin-bottom: 22px; }
/* An iPhone 18 Pro: the screenshot (1206 × 2622 at @3x, here half that) under the frame, which leaves the screen open. */
.ip { position: relative; margin: 0; aspect-ratio: 1296 / 2694; filter: drop-shadow(0 30px 36px rgba(20, 40, 70, 0.26)); }
.ip-scr { position: absolute; left: 3.472%; top: 1.336%; width: 93.056%; height: 97.327%; border-radius: 13.6% / 6.26%; background: var(--band); }
.ip-fr { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ip { filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.7)); } }
:root[data-theme="dark"] .ip { filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.7)); }
/* Blue (X150, 3 Dec): the top and the close in Aan's App Store blue, as the App Store screenshots are, white type on it;
   the features white and pale blue by turns. In dark mode the blue goes deeper and the pale bands go navy. */
:root { --aan-blue: linear-gradient(180deg, #1470AD 0%, #0F5F96 100%); --alt: #F1F6FB; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --aan-blue: linear-gradient(180deg, #0F5F96 0%, #0A3F66 100%); --alt: #0B1824; } }
:root[data-theme="dark"] { --aan-blue: linear-gradient(180deg, #0F5F96 0%, #0A3F66 100%); --alt: #0B1824; }
.p-top, .final { background: var(--aan-blue); color: #FFFFFF; }
.p-top { padding-bottom: clamp(56px, 7vw, 96px); }
.p-top h1, .final h2 { color: #FFFFFF; }
.p-top .lede, .p-top .get span, .final p { color: rgba(255, 255, 255, 0.82); }
.final .lb-note { color: rgba(255, 255, 255, 0.92); }   /* frame.css dims it to 0.75 */
.final .lb-help { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.3); color: #FFFFFF; }
.p-top .p-icon, .final img.icon { box-shadow: 0 18px 40px -16px rgba(0, 20, 40, 0.55); }
.p-top .ip { filter: drop-shadow(0 34px 40px rgba(0, 22, 44, 0.45)); }
.p-top .points { border-top-color: rgba(255, 255, 255, 0.22); }
.p-top .points li { color: #FFFFFF; }
.p-top .points .late::before { border-color: #FF9C94; }
.p-top .points .due::before { border-color: #FFFFFF; box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.22), 0 0 10px 4px rgba(255, 255, 255, 0.28); }
.p-top .points .event::before { background: #E2B5FF; }
.p-top .points .part::before { background: rgba(255, 255, 255, 0.7); }
.p-feat:nth-child(even) { background: var(--alt); }
/* The features (X150, 3 Dec): whole screens, one or two to a feature, two a little over each other (Miqat's and Tiqan's way). */
.p-eye { display: block; margin-bottom: 14px; font-size: 13px; font-weight: 650; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ring); }
html[lang="ar"] .p-eye { font-size: 15px; letter-spacing: 0; text-transform: none; }
.p-duo, .p-one { position: relative; width: 100%; display: grid; place-items: center; padding: 44px 0; isolation: isolate; }
.p-duo::before, .p-one::before { content: ""; position: absolute; inset: 8% 12%; z-index: -1; filter: blur(40px);
  background: radial-gradient(closest-side, color-mix(in srgb, var(--ring) 20%, transparent), transparent); }
.p-duo .ip { grid-area: 1 / 1; width: min(56%, 268px); }
/* The one behind leans out on the side its text starts from (left in English, right in Arabic), so its words show. */
.p-duo .back { transform: translate(-38%, -7%) rotate(-5deg) scale(0.9); }
.p-duo .front { transform: translate(27%, 6%) rotate(3deg); z-index: 2; }
html[dir="rtl"] .p-duo .back { transform: translate(38%, -7%) rotate(5deg) scale(0.9); }
html[dir="rtl"] .p-duo .front { transform: translate(-27%, 6%) rotate(-3deg); }
.p-one .ip { width: min(66%, 290px); }
.p-text b { color: var(--ink); font-weight: 600; }
.p-feat { padding: clamp(56px, 7vw, 96px) 0; }
.p-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(36px, 7vw, 96px); align-items: center; }
.p-row.flip .p-text { order: 2; }
.p-text { max-width: 30em; }
.p-text h2 { font-size: clamp(30px, 3.8vw, 44px); margin-bottom: 18px; }
.p-text p { color: var(--ink-2); }
.p-text p:last-child { margin-bottom: 0; }
.p-pic { display: flex; justify-content: center; }
.p-pic img { max-width: 100%; height: auto; }
/* Every device (2 Dec): the Mac's window behind, the iPad, the iPhone and the watch in front of it. */
.p-dev { position: relative; max-width: 1080px; aspect-ratio: 1080 / 720; margin: 0 auto; }
.p-dev img { position: absolute; height: auto; }
.p-dv-mac { width: 80%; inset-inline-start: 20%; top: 0; }
.p-dv-ipad { width: 49%; inset-inline-start: 0; top: 43.5%; z-index: 2; }
.p-dv-phone { width: 16.5%; inset-inline-start: 81%; top: 34%; z-index: 3; }
.p-dv-watch { width: 12%; inset-inline-start: 56%; top: 71%; z-index: 3; }
/* The Mac's menu bar panel, and Quick Add over its foot. */
.p-mac { width: 540px; max-width: 100%; display: flex; flex-direction: column; align-items: flex-end; }
.p-mac-bar { width: 64%; }
.p-mac-qa { width: 100%; margin-top: -9%; position: relative; }
.p-caps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 40px; }
.p-caps p { margin: 0; color: var(--ink-2); font-size: 16.5px; }
.p-caps b { display: block; color: var(--ink); font-weight: 560; font-size: 18px; margin-bottom: 4px; }
@media (max-width: 860px) {
  .p-top-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "text" "ph" "pts"; }
  .p-top-ph { width: min(290px, 76vw); margin: 0 auto 36px; }
  .p-row { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .p-row.flip .p-text { order: 0; }
}
@media (max-width: 600px) {
  .p-top .p-icon { display: none; }   /* the bar above already has it, and the phone comes up into the first screen */
  .p-top { padding-top: 28px; }
  .p-top .get { margin-bottom: 24px; }
  .p-top h1 { margin-bottom: 16px; }
}
@media (max-width: 600px) { .p-caps { grid-template-columns: minmax(0, 1fr); gap: 18px; } }
