/* SOLUNIO — solunio.app
   Layout: one sky behind the whole page whose hour follows the scroll, from before sunrise to night, over layered
   hills as in the promo film; the app's own screens in one phone that stays while the day passes beside it. */
@font-face { font-family: "Solunio Brand"; src: url("../fonts/cinzel.woff") format("woff"); font-display: swap; }
@font-face { font-family: "Solunio Display"; src: url("../fonts/garamond.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Solunio Text"; src: url("../fonts/manrope.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Solunio Text"; src: url("../fonts/manrope-medium.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Solunio Text"; src: url("../fonts/manrope-semibold.woff") format("woff"); font-weight: 600; font-display: swap; }

:root {
  --night: #0B1228;
  --night-2: #121A3A;
  --ivory: #F6F0E6;
  --ivory-soft: rgba(246, 240, 230, 0.78);
  --ivory-faint: rgba(246, 240, 230, 0.52);
  --line: rgba(246, 240, 230, 0.14);
  --gold: #D9B77E;
  --gold-light: #F6DDAE;
  --brand: "Solunio Brand", "Cinzel", Georgia, serif;
  --display: "Solunio Display", "EB Garamond", "Cormorant Garamond", Georgia, serif;
  --text: "Solunio Text", "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: max(28px, env(safe-area-inset-left, 0px));
  --gutter-r: max(28px, env(safe-area-inset-right, 0px));
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--night); color: var(--ivory); font-family: var(--text); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
html[dir="rtl"] body { font-family: "Noto Naskh Arabic", "Geeza Pro", "Segoe UI", var(--text); }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 6px; }
.skip { position: absolute; inset-inline-start: 12px; top: 8px; transform: translateY(-180%); background: var(--ivory); color: var(--night); padding: 8px 14px; border-radius: 8px; z-index: 30; }
.skip:focus { transform: none; }

/* ——— the sky ——— */
.sky-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; display: block; background: #0B1430; }

/* ——— header ——— */
.top { position: fixed; inset: 0 0 auto; z-index: 10; display: flex; align-items: center; justify-content: space-between; padding: calc(env(safe-area-inset-top, 0px) + 22px) var(--gutter-r) 22px var(--gutter); pointer-events: none; }
.top > * { pointer-events: auto; }
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ivory); }
.mark { width: 30px; height: 30px; flex: none; filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.25)); }
.wordmark { font-family: var(--brand); font-size: 16px; letter-spacing: 0.42em; padding-inline-start: 0.1em; }
.top-right { display: flex; align-items: center; gap: 18px; }
.lang { position: relative; }
.lang button { font: 500 13px/1 var(--text); letter-spacing: 0.1em; color: var(--ivory-soft); background: rgba(11, 18, 40, 0.28); border: 1px solid var(--line); padding: 10px 14px; border-radius: 999px; cursor: pointer; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.lang button:hover { color: var(--ivory); }
.lang ul { position: absolute; inset-inline-end: 0; top: 100%; margin: 8px 0 0; padding: 8px; list-style: none; background: rgba(14, 20, 44, 0.94); border: 1px solid var(--line); border-radius: 16px; min-width: 170px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.lang li a { display: block; padding: 10px 12px; border-radius: 10px; text-decoration: none; font-size: 15px; color: var(--ivory-soft); }
.lang li a:hover, .lang li a[aria-current="true"] { color: var(--ivory); background: rgba(246, 240, 230, 0.07); }

/* ——— the time of day, bottom left, as in the film ——— */
.timecard { position: fixed; z-index: 9; inset-inline-start: var(--gutter); bottom: calc(env(safe-area-inset-bottom, 0px) + 30px); display: flex; flex-direction: column; gap: 4px; pointer-events: none; text-shadow: 0 2px 18px rgba(8, 10, 30, 0.35); opacity: 0; transition: opacity .8s; }
.in-day .timecard { opacity: 1; }
.at-end .timecard { opacity: 0; }
.timecard .part { font: 500 11.5px/1 var(--text); letter-spacing: 0.32em; color: var(--gold-light); }
html[dir="rtl"] .timecard .part { letter-spacing: 0; }
.timecard .hour { font-family: var(--display); font-size: 42px; line-height: 1.05; font-variant-numeric: tabular-nums lining-nums; color: var(--ivory); }

/* ——— intro ——— */
.intro { position: relative; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; text-align: center; padding: calc(env(safe-area-inset-top, 0px) + max(120px, 17svh)) var(--gutter-r) 120px var(--gutter); }
.mark-lg { width: 68px; height: 68px; margin-bottom: 30px; }
h1 { font-family: var(--display); font-weight: 500; margin: 0; font-size: clamp(46px, 6.4vw, 92px); line-height: 1.02; letter-spacing: -0.012em; text-wrap: balance; text-shadow: 0 2px 30px rgba(8, 10, 30, 0.25); }
.lede { margin: 22px auto 0; max-width: 30rem; font-size: clamp(17px, 1.45vw, 20px); color: var(--ivory-soft); text-wrap: balance; }
.actions { margin-top: 38px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px; }
.cta { display: inline-flex; align-items: center; text-decoration: none; background: var(--ivory); color: var(--night); font: 600 16px/1 var(--text); padding: 19px 30px; border-radius: 999px; box-shadow: 0 12px 40px rgba(8, 10, 30, 0.35); transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s; }
.cta:hover { transform: translateY(-2px); box-shadow: 0 18px 50px rgba(8, 10, 30, 0.45); }
.film-btn { display: inline-flex; align-items: center; gap: 12px; font: 500 15px/1 var(--text); color: var(--ivory); background: rgba(246, 240, 230, 0.08); border: 1px solid rgba(246, 240, 230, 0.22); padding: 16px 22px 16px 16px; border-radius: 999px; cursor: pointer; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: background .3s; }
.film-btn:hover { background: rgba(246, 240, 230, 0.14); }
.play { width: 26px; height: 26px; border-radius: 50%; background: var(--ivory); position: relative; flex: none; }
.play::after { content: ""; position: absolute; left: 10px; top: 8px; border-style: solid; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent var(--night); }
.free { margin: 28px 0 0; display: flex; align-items: baseline; justify-content: center; gap: 12px; }
.price { font-family: var(--display); font-size: clamp(44px, 5vw, 64px); line-height: 1; color: var(--gold-light); }
.forever { font: 600 13px/1 var(--text); letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold); }
html[dir="rtl"] .forever { letter-spacing: 0; }
.eyebrow { margin: 0 0 22px; font: 600 12px/1 var(--text); letter-spacing: 0.32em; text-transform: uppercase; color: var(--gold); }
html[dir="rtl"] .eyebrow { letter-spacing: 0.12em; }
.soon { margin: 22px 0 0; font-size: 14px; letter-spacing: 0.04em; color: var(--ivory-faint); }
.outro-line { margin: 18px 0 0; font: 600 12px/1 var(--text); letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); }
html[dir="rtl"] .outro-line { letter-spacing: 0.1em; }
.scroll-hint { position: absolute; bottom: calc(env(safe-area-inset-bottom, 0px) + 26px); left: 0; right: 0; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; font-size: 12.5px; letter-spacing: 0.08em; color: var(--ivory-faint); }
.scroll-hint i { width: 1px; height: 36px; background: linear-gradient(var(--ivory-soft), transparent); animation: hint 2.6s ease-in-out infinite; }
@keyframes hint { 0%, 100% { transform: scaleY(0.4); transform-origin: top; opacity: .4; } 50% { transform: scaleY(1); opacity: 1; } }

/* ——— the day: one phone, four moments ——— */
.day { position: relative; }
.stage { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; justify-content: flex-end; padding-inline-end: max(8vw, var(--gutter-r)); pointer-events: none; }
.phone { position: relative; width: min(330px, 26vw, calc(80svh * 504 / 1086)); aspect-ratio: 504 / 1086; border-radius: 46px; overflow: hidden; background: #05070F; box-shadow: 0 50px 100px rgba(4, 6, 20, 0.55), 0 0 0 1px rgba(246, 240, 230, 0.16); }
.phone > * { position: absolute; inset: 7px; width: calc(100% - 14px); height: calc(100% - 14px); object-fit: cover; border-radius: 39px; opacity: 0; transform: scale(1.03); transition: opacity .9s ease, transform 1.2s cubic-bezier(.2,.7,.2,1); }
.phone > .on { opacity: 1; transform: scale(1); }
/* the phone resting in the quiet first hour: dark, only the mark */
.phone .rest { display: grid; place-items: center; background: radial-gradient(120% 70% at 50% 45%, #18214A 0%, #0B1228 55%, #070B1C 100%); }
.phone .rest .mark { width: 30%; height: auto; opacity: .9; }
.chapters { position: relative; margin-top: -100svh; }
.chapter { min-height: 115svh; }
.copy { max-width: min(540px, 46vw); padding-inline-start: max(8vw, var(--gutter)); padding-block: 30svh; }
.js .copy { position: fixed; z-index: 2; top: 50%; inset-inline-start: 0; padding-block: 0; transform: translateY(-46%); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .7s ease, transform 1s cubic-bezier(.2,.7,.2,1), visibility 0s linear .7s; }
.js .chapter.on .copy { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(-50%); transition: opacity .9s ease .1s, transform 1.1s cubic-bezier(.2,.7,.2,1), visibility 0s; }
.chapter .time { font-family: var(--display); font-size: clamp(30px, 3vw, 40px); line-height: 1; margin: 0 0 18px; color: var(--gold-light); font-variant-numeric: tabular-nums lining-nums; }
.js .chapter .time { display: none; }
.js .copy::before { content: ''; position: absolute; z-index: -1; inset: -18% -30% -18% -10%; background: radial-gradient(closest-side, rgba(10, 16, 40, 0.34), rgba(10, 16, 40, 0)); pointer-events: none; }
.chapter .kicker { text-shadow: 0 1px 10px rgba(8, 12, 30, 0.5); font: 600 12px/1 var(--text); letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); margin: 0 0 16px; }
html[dir="rtl"] .chapter .kicker { letter-spacing: 0; }
h2 { font-family: var(--display); font-weight: 500; margin: 0; font-size: clamp(40px, 4.6vw, 64px); line-height: 1.04; letter-spacing: -0.01em; text-wrap: balance; text-shadow: 0 2px 30px rgba(8, 10, 30, 0.3); }
.chapter p:not(.time):not(.kicker) { margin: 22px 0 0; font-size: clamp(17px, 1.35vw, 19.5px); color: rgba(246, 240, 230, 0.9); text-wrap: pretty; text-shadow: 0 1px 2px rgba(8, 12, 30, 0.35), 0 1px 24px rgba(8, 12, 30, 0.45); }

/* ——— outro ——— */
.outro { min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 120px var(--gutter-r) 120px var(--gutter); }
.outro h2 { font-size: clamp(44px, 6vw, 84px); }
.promise { margin: 46px auto 0; max-width: 34rem; font-size: 15px; color: var(--ivory-faint); }
.promise a { color: var(--ivory-soft); text-decoration: none; border-bottom: 1px solid var(--line); white-space: nowrap; }
.promise a:hover { color: var(--ivory); border-color: var(--gold); }

/* ——— YouTube ——— */
.yt { min-height: 80svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 120px var(--gutter-r) 40px var(--gutter); }
.yt[hidden] { display: none; }
.yt h2 { font-size: clamp(34px, 4vw, 52px); }
.yt > p { margin: 16px auto 0; max-width: 30rem; color: var(--ivory-soft); }
.yt-cards { margin-top: 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 220px)); gap: 18px; justify-content: center; width: 100%; }
.yt-card { text-decoration: none; color: var(--ivory); text-align: start; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.yt-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; background: rgba(246, 240, 230, 0.06); border: 1px solid var(--line); transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.yt-card:hover img { transform: translateY(-3px); }
.yt-title { font-size: 15px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yt-meta { font-size: 13px; color: var(--ivory-faint); }
.yt-btn { margin-top: 34px; color: var(--ivory); text-decoration: none; font-size: 15px; border-bottom: 1px solid var(--gold); padding-bottom: 3px; }
.yt-btn:hover { color: var(--gold-light); }

/* ——— footer ——— */
footer { border-top: 1px solid var(--line); background: rgba(7, 12, 30, 0.6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.foot { max-width: 1240px; margin: 0 auto; padding: 28px var(--gutter-r) calc(28px + env(safe-area-inset-bottom, 0px)) var(--gutter); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; font-size: 14px; color: var(--ivory-faint); }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.foot a { text-decoration: none; color: var(--ivory-soft); }
.foot-data { margin: 0; flex-basis: 100%; color: var(--ivory-faint); }
.foot-data a { border-bottom: 1px solid var(--line); }
.foot-data a:hover { border-color: var(--gold); }
.foot a[hidden] { display: none; }
.mailtext { color: var(--ivory); user-select: all; }
.foot a:hover { color: var(--ivory); }

/* ——— the film ——— */
.film { width: min(1100px, 94vw); padding: 0; border: 0; border-radius: 22px; background: #000; overflow: hidden; box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6); }
.film::backdrop { background: rgba(5, 8, 20, 0.82); }
.film video { width: 100%; aspect-ratio: 16 / 9; background: #000; display: block; }
.film.tall { width: min(94vw, calc(88svh * 9 / 16)); border-radius: 26px; }
.film.tall video { aspect-ratio: 9 / 16; }
.film-close { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(246, 240, 230, 0.16); color: var(--ivory); font-size: 22px; line-height: 1; cursor: pointer; }

/* ——— text pages ——— */
.page-body { background: linear-gradient(180deg, #1B2458 0%, #121A3A 34%, var(--night) 70%); min-height: 100vh; }
.page-body .top { position: absolute; }
.page { max-width: 720px; margin: 0 auto; padding: calc(env(safe-area-inset-top, 0px) + 150px) var(--gutter-r) 120px var(--gutter); }
.page h1 { font-size: clamp(42px, 6vw, 64px); }
.page .note { color: var(--ivory-faint); font-size: 14.5px; margin: 18px 0 0; }
.page h2 { font-size: 28px; margin: 56px 0 0; text-shadow: none; }
.page p, .page li { color: var(--ivory-soft); }
.page p { margin: 16px 0 0; }
.page .mail { display: inline-block; margin-top: 26px; font-family: var(--display); font-size: clamp(26px, 4vw, 36px); color: var(--ivory); text-decoration: none; border-bottom: 1px solid var(--gold); user-select: all; }
.qa { margin-top: 64px; border-top: 1px solid var(--line); }
.qa div { padding: 26px 0; border-bottom: 1px solid var(--line); }
.qa h3 { font: 600 17px/1.4 var(--text); margin: 0; color: var(--ivory); }
.qa p { margin: 8px 0 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .chapter:not(.on) > * { opacity: 1; transform: none; }
}

/* ——— phones ——— */
@media (max-width: 820px) {
  body { font-size: 16px; }
  .top { padding-top: calc(env(safe-area-inset-top, 0px) + 16px); padding-bottom: 16px; }
  .mark { width: 26px; height: 26px; }
  .wordmark { font-size: 14px; letter-spacing: 0.36em; }
  .intro { padding-top: calc(env(safe-area-inset-top, 0px) + 90px); padding-bottom: 130px; }
  .mark-lg { width: 56px; height: 56px; margin-bottom: 24px; }
  .intro { padding-top: calc(env(safe-area-inset-top, 0px) + max(96px, 13svh)); }
  .film-btn { padding: 14px 18px 14px 14px; }
  .stage { justify-content: center; align-items: flex-end; padding: 0 0 calc(env(safe-area-inset-bottom, 0px) + 22px); }
  .phone { width: min(78vw, 320px, calc(66svh * 504 / 1086)); border-radius: 36px; }
  .phone video { border-radius: 28px; }
  .chapter { min-height: 105svh; }
  .copy { max-width: none; padding-inline: var(--gutter) var(--gutter-r); text-align: center; }
  .js .copy { top: calc(env(safe-area-inset-top, 0px) + 74px); inset-inline-end: 0; transform: translateY(14px); }
  .js .chapter.on .copy { transform: none; }
  .js .chapter .time { display: block; font-size: 28px; margin-bottom: 12px; }
  h2 { font-size: clamp(32px, 9vw, 44px); }
  .chapter p:not(.time):not(.kicker) { margin: 14px auto 0; font-size: 16px; max-width: 26rem; }
  .timecard { display: none; }
  .foot { flex-direction: column; align-items: flex-start; }
  .yt-cards { grid-template-columns: minmax(0, 1fr); max-width: 340px; }
}
@media (max-width: 820px) and (max-height: 760px) {
  .phone { width: min(78vw, 320px, calc(60svh * 504 / 1086)); }
  .chapter p:not(.time):not(.kicker) { font-size: 15px; }
}

/* ——— the plan segment: the app's Home and conversation, drawn after the app, driven by the scroll ——— */
.phone > .app { overflow: hidden; background: #121628; direction: ltr; transform: none; }
.phone > .app.on { transform: none; }
.app-in { position: absolute; left: 0; top: 0; width: 390px; height: 844px; transform-origin: 0 0; font-family: var(--text); color: #F6F0E6; }
.app .scr { position: absolute; inset: 0; }
.app .home { background: #121628; }
.h-sky { position: absolute; left: 0; right: 0; top: 0; height: 430px; background: linear-gradient(#2A5BA2, #6E98CC 58%, #C9DBE8); overflow: hidden; }
.h-sun { position: absolute; left: 70px; top: 196px; width: 46px; height: 46px; border-radius: 50%; background: #FFF6E2; box-shadow: 0 0 70px 28px rgba(255, 246, 226, 0.38); }
.h-hill2 { position: absolute; left: -40px; right: 130px; bottom: 34px; height: 70px; background: rgba(54, 74, 104, 0.7); border-radius: 60% 60% 0 0 / 50px 50px 0 0; }
.h-hill { position: absolute; left: -10px; right: -10px; bottom: -2px; height: 64px; background: #121628; border-radius: 60% 60% 0 0 / 44px 44px 0 0; }
.h-top { position: absolute; left: 22px; right: 14px; top: 40px; display: flex; justify-content: space-between; font-size: 17px; }
.h-top b { font-weight: 500; display: block; }
.h-top small { display: block; font-size: 14px; color: rgba(246, 240, 230, 0.78); margin-top: 3px; }
.h-ic { display: flex; gap: 18px; padding-top: 2px; }
.h-ic svg { width: 22px; height: 22px; fill: none; stroke: #F6F0E6; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.h-dots { position: absolute; top: 46px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.h-dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(246, 240, 230, 0.4); }
.h-dots i.on { width: 18px; background: #D9B77E; }
.h-todo { position: absolute; left: 22px; top: 108px; font-size: 15px; color: #141B33; }
.h-water { display: flex; align-items: center; gap: 6px; }
.h-water span { margin-right: 6px; font-weight: 500; }
.h-water i { width: 14px; height: 14px; border-radius: 50%; border: 1.6px solid rgba(20, 27, 51, 0.55); }
.h-water i.f { background: #141B33; border-color: #141B33; }
.h-task { margin-top: 12px; display: flex; align-items: center; gap: 9px; font-weight: 500; }
.h-task i { width: 15px; height: 15px; border-radius: 4px; border: 1.6px solid rgba(20, 27, 51, 0.6); }
.h-task em { font-style: normal; font-weight: 400; color: rgba(20, 27, 51, 0.6); margin-left: 8px; }
.h-land { position: absolute; left: 24px; right: 0; top: 452px; }
.h-focus { position: relative; height: 128px; }
.h-f { position: absolute; left: 0; top: 0; right: 24px; }
.h-lab { margin: 0; font-family: var(--display); font-size: 23px; line-height: 28px; color: rgba(246, 240, 230, 0.72); }
.h-cd { white-space: nowrap; margin: 2px 0 0; font-family: var(--display); font-size: 62px; line-height: 66px; letter-spacing: 0.4px; font-variant-numeric: tabular-nums lining-nums; }
.h-sub { margin: 4px 0 0; font-size: 15px; color: rgba(246, 240, 230, 0.72); }
.h-row { position: relative; height: 96px; overflow: hidden; margin-right: 0; margin-top: 26px; border-top: 1px solid rgba(246, 240, 230, 0.14); }
.h-row .col { position: absolute; top: 14px; width: 92px; padding-left: 12px; border-left: 1px solid rgba(246, 240, 230, 0.1); white-space: nowrap; }
.h-row .col span { display: block; font-size: 12.5px; color: rgba(246, 240, 230, 0.62); overflow: hidden; text-overflow: ellipsis; }
.h-row .col b { position: relative; display: block; font-family: var(--display); font-weight: 500; font-size: 25px; line-height: 34px; margin-top: 2px; }
.h-row .col b em { font-style: normal; display: block; }
.h-row .col b .t2 { position: absolute; left: 0; top: 0; opacity: 0; }
.h-row .col.past { opacity: 0.45; }
.h-row .col.now { width: 30px; padding: 0; border: 0; text-align: center; }
.h-row .col.now span { color: #FFD27A; font-size: 10.5px; }
.h-row .col.now i { display: block; width: 2px; height: 44px; margin: 4px auto 0; background: #FFD27A; }
.h-bar { position: absolute; left: 14px; right: 14px; bottom: 26px; display: flex; gap: 10px; align-items: center; }
.h-plus { width: 54px; height: 54px; border-radius: 50%; border: 1.6px solid #D9B77E; color: #D9B77E; display: grid; place-items: center; font-size: 26px; }
.h-ask { flex: 1; height: 54px; border-radius: 27px; background: rgba(246, 240, 230, 0.09); display: flex; align-items: center; padding: 0 20px; font-size: 16px; color: rgba(246, 240, 230, 0.55); }
.h-mic { width: 54px; height: 54px; border-radius: 50%; background: #D9B77E; }
/* the same day's other moments on Home */
.h-new .h-cd { font-size: 50px; line-height: 56px; }
.h-one { height: auto; }
.h-one .h-cd { font-size: 50px; line-height: 56px; }
.h-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.h-chip { padding: 8px 14px; border-radius: 18px; border: 1px solid rgba(246, 240, 230, 0.3); font-size: 14px; color: #F6F0E6; }
.h-chip.main { background: #D9B77E; border-color: #D9B77E; color: #141B33; font-weight: 500; }
.h-counts { margin: 20px 0 0; font-size: 13px; color: rgba(246, 240, 230, 0.6); }
.h-counts + .h-row { margin-top: 10px; }
.h-task.done { color: rgba(20, 27, 51, 0.5); text-decoration: line-through; }
.h-task.done i { background: rgba(20, 27, 51, 0.55); border-color: transparent; }
.sky-dawn .h-sky { background: linear-gradient(#4E5C9A, #A88FB5 52%, #F0BFA0); }
.sky-dawn .h-sun { top: 300px; left: 250px; background: #FFE3C2; box-shadow: 0 0 70px 30px rgba(255, 200, 150, 0.45); }
.sky-day .h-sun { top: 150px; left: 300px; }
.sky-dusk .h-sky { background: linear-gradient(#3C4F8E, #C9879A 55%, #F2B47E); }
.sky-dusk .h-sun { top: 290px; left: 90px; background: #FFD9A8; box-shadow: 0 0 80px 34px rgba(255, 170, 110, 0.5); }
.sky-night .h-sky { background: linear-gradient(#090D26, #18204A 70%, #27306A); }
.sky-night .h-sun { width: 26px; height: 26px; top: 180px; left: 310px; background: #EDE6D6; box-shadow: 0 0 40px 12px rgba(237, 230, 214, 0.18); }
.sky-night .h-hill2 { background: rgba(30, 40, 80, 0.8); }
.sky-night .h-todo, .sky-dusk .h-todo { color: #F6F0E6; }
.sky-night .h-water i, .sky-dusk .h-water i { border-color: rgba(246, 240, 230, 0.6); }
.sky-night .h-water i.f, .sky-dusk .h-water i.f { background: #F6F0E6; border-color: #F6F0E6; }
.sky-night .h-task.done, .sky-dusk .h-task.done { color: rgba(246, 240, 230, 0.55); }
.sky-night .h-task.done i, .sky-dusk .h-task.done i { background: rgba(246, 240, 230, 0.6); }

/* Arabic: the app's own screens read from the right, the day runs from the right too */
.app-in[dir="rtl"] { font-family: "Noto Naskh Arabic", "Geeza Pro", "Segoe UI", var(--text); }
.app-in[dir="rtl"] .h-top { left: 14px; right: 22px; }
.app-in[dir="rtl"] .h-todo { left: auto; right: 22px; }
.app-in[dir="rtl"] .h-water span { margin: 0 0 0 6px; }
.app-in[dir="rtl"] .h-task em { margin: 0 8px 0 0; }
.app-in[dir="rtl"] .h-land { left: 0; right: 24px; }
.app-in[dir="rtl"] .h-f { left: 24px; right: 0; }
.app-in[dir="rtl"] .h-row .col { right: 0; padding: 0 12px 0 0; border-left: 0; border-right: 1px solid rgba(246, 240, 230, 0.1); }
.app-in[dir="rtl"] .h-row .col.now { padding: 0; border: 0; }
.app-in[dir="rtl"] .h-row .col b .t2 { left: auto; right: 0; }
.app-in[dir="rtl"] .h-lab, .app-in[dir="rtl"] .h-cd, .app-in[dir="rtl"] .c-reply { font-family: "Noto Naskh Arabic", "Geeza Pro", var(--display); }
.app-in[dir="rtl"] .c-caret { margin: 0 1px 0 0; }

.app .chat { background: linear-gradient(#FFF6E6, #F0E7D6); color: #1C2340; transform: translateY(100%); will-change: transform; }
.c-top { display: flex; justify-content: space-between; padding: 46px 22px 0; font-size: 20px; color: #141B33; }
.c-body { position: absolute; left: 20px; right: 20px; top: 120px; bottom: 110px; display: flex; flex-direction: column; }
.c-me { margin-bottom: 14px; align-self: flex-end; max-width: 80%; padding: 10px 14px; border-radius: 18px 18px 6px 18px; background: rgba(20, 27, 51, 0.07); font-size: 16px; line-height: 1.4; color: #141B33; opacity: 0; }
.c-dots { display: flex; gap: 5px; margin-top: 20px; opacity: 0; }
.c-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(20, 27, 51, 0.35); }
.c-card { display: flex; align-items: center; gap: 12px; border: 1px solid rgba(20, 27, 51, 0.16); border-radius: 18px; padding: 11px 14px; margin-top: 10px; opacity: 0; }
.c-dots + .c-card { margin-top: 0; }
.c-card div { flex: 1; min-width: 0; }
.c-card small { display: block; font-size: 12.5px; color: rgba(20, 27, 51, 0.6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-card b { display: block; font-family: var(--display); font-weight: 500; font-size: 24px; color: #141B33; margin-top: 2px; }
.c-card > span { font-size: 13.5px; color: #8A6A35; }
.c-reply { margin: 14px 0 0; font-family: var(--display); font-size: 19.5px; line-height: 26px; color: #1C2340; }
.c-reply span { opacity: 0; transition: opacity .3s; }
.c-reply span.in { opacity: 1; }
.c-input { position: absolute; left: 16px; right: 16px; bottom: 28px; display: flex; gap: 10px; align-items: center; }
.c-field { flex: 1; min-height: 52px; border-radius: 26px; background: #FFFFFF; border: 1px solid rgba(20, 27, 51, 0.12); padding: 14px 18px; font-size: 16px; line-height: 1.35; color: #141B33; }
.c-draft:empty::before { content: attr(data-ph); color: rgba(20, 27, 51, 0.42); }
.c-caret { display: inline-block; width: 1.5px; height: 18px; background: #8A6A35; vertical-align: -3px; margin-left: 1px; opacity: 0; }
.c-send { width: 52px; height: 52px; border-radius: 50%; background: #141B33; flex: none; }

.finger { position: absolute; width: 46px; height: 46px; border-radius: 50%; background: rgba(246, 240, 230, 0.35); border: 2px solid rgba(255, 255, 255, 0.75); box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25); opacity: 0; pointer-events: none; left: 0; top: 0; }

.js .chapter.plan-seg { min-height: 360svh; }
body.seg-on .phone { width: min(372px, 30vw, calc(84svh * 504 / 1086)); }
.phone { transition: width .6s cubic-bezier(.2,.7,.2,1); }
@media (max-width: 820px) {
  .js .chapter.plan-seg { min-height: 320svh; }
  .js .chapter.plan-seg .copy p:not(.time):not(.kicker) { display: none; }
  .phone { transition: width .6s cubic-bezier(.2,.7,.2,1); }
  body.seg-on .phone { width: min(78vw, 320px, calc(70svh * 504 / 1086)); }
}
@media (max-width: 820px) and (max-height: 760px) {
  body.seg-on .phone { width: min(78vw, 320px, calc(64svh * 504 / 1086)); }
}

/* ——— the day plays by itself once you start (a film you can speed up by scrolling) ——— */
.auto { position: fixed; z-index: 11; inset-inline-end: var(--gutter-r); bottom: calc(env(safe-area-inset-bottom, 0px) + 26px); width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: rgba(11, 18, 40, 0.35); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); cursor: pointer; display: grid; place-items: center; opacity: 0; transition: opacity .6s; }
.auto[hidden] { display: none; }
.auto-on .auto { opacity: 1; }
.auto i { width: 12px; height: 14px; border-left: 3.5px solid var(--ivory); border-right: 3.5px solid var(--ivory); box-sizing: border-box; }
.auto.paused i { width: 0; height: 0; border-style: solid; border-width: 7px 0 7px 12px; border-color: transparent transparent transparent var(--ivory); margin-left: 3px; }
html[dir="rtl"] .auto.paused i { transform: scaleX(-1); margin-left: 0; margin-right: 3px; }

/* ——— film mode (?film): the page as the explainer film ——— */
.film-intro { display: none; }
.filming .film-intro { display: grid; position: fixed; inset: 0; z-index: 6; place-items: center; pointer-events: none; }
.filming .film-intro p { grid-area: 1 / 1; margin: 0; padding-inline: 8vw; max-width: 18em; text-align: center; font-family: var(--display); font-size: clamp(36px, 4.4vw, 64px); line-height: 1.15; color: var(--ivory); text-wrap: balance; opacity: 0; text-shadow: 0 2px 30px rgba(8, 12, 30, 0.5); }
.filming header.top, .filming .scroll-hint, .filming .intro .actions, .filming .intro .soon, .filming footer, .filming .skip { display: none !important; }
.filming body { cursor: none; }
.filming .intro h1, .filming .intro .lede, .filming .intro .eyebrow { transition: opacity .9s ease; }
.filming.intro-hide .intro h1, .filming.intro-hide .intro .lede, .filming.intro-hide .intro .eyebrow { opacity: 0; }
/* phones (22 Nov): the app as large as the screen allows: just under the words, running off the bottom edge
   (the bar at the bottom of Home may be cut; the plan scene keeps the whole phone in view) */
@media (max-width: 820px) {
  .stage { align-items: flex-start; overflow: hidden; padding: calc(env(safe-area-inset-top, 0px) + 272px) 0 0; transition: padding .6s cubic-bezier(.2,.7,.2,1); }
  .phone { width: min(86vw, 380px, calc((100svh - 290px) / 0.83 * 504 / 1086)); border-radius: 40px; }
  body.seg-on .stage { padding-top: calc(100svh - 76svh - 14px); }
  body.seg-on .phone { width: min(86vw, 380px, calc(76svh * 504 / 1086)); }
}
@media (max-width: 820px) and (max-height: 760px) {
  .stage { padding-top: calc(env(safe-area-inset-top, 0px) + 250px); }
  .phone { width: min(80vw, 340px, calc((100svh - 256px) / 0.83 * 504 / 1086)); }
  body.seg-on .stage { padding-top: calc(100svh - 72svh - 12px); }
  body.seg-on .phone { width: min(84vw, 340px, calc(72svh * 504 / 1086)); }
}
