/* gettalla.app — the site performs the app.
   The top is «طلّة»'s own opening film on its dark stage; under it, on the app's cream paper, the real app plays itself
   (recorded from the app, never redrawn). Every motion plays once and settles. The lockup, colours and fonts are the app's own.
   No outside request: fonts, pictures and films are served from this site. */

@font-face { font-family: 'Noto Sans Arabic'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/fonts/noto-arabic-arabic.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; }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url(/fonts/playfair-latin.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: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(/fonts/manrope-latin.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: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(/fonts/manrope-latinext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --stage: #0c0706;          /* the film's own dark */
  --paper: #fffaf3; --ink: #20191d; --ruby: #a8183a; --muted: #75666d; --line: #dfd2d1;   /* the app's frame */
  --on-stage: #fffaf3; --on-stage-soft: #cdbcb1; --ground: #ede2d6;
  --body: 'Noto Sans Arabic', 'Manrope', Tahoma, sans-serif;
  --display: 'Noto Sans Arabic', 'Manrope', Tahoma, sans-serif;
  --screen-w: 384; --screen-h: 777;
  --tap-left: 3.65%; --tap-top: 83.91%; --tap-w: 41.95%; --tap-h: 6.18%;   /* where «إطلالة أخرى» stands in the recorded screen */
  color-scheme: light;
}
html:lang(en) { --body: 'Manrope', 'Noto Sans Arabic', Arial, sans-serif; --display: 'Playfair Display', Georgia, serif; --screen-w: 360; --screen-h: 740;
  --tap-left: 54.57%; --tap-top: 83.11%; --tap-w: 41.54%; --tap-h: 6.49%; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--stage); }
body { margin: 0; background: var(--stage); color: var(--ink); font-family: var(--body); font-weight: 400; font-size: 17px; line-height: 1.8; overflow-x: hidden; }
html:lang(en) body { font-size: 16px; line-height: 1.65; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ruby); outline-offset: 3px; border-radius: 3px; }
.stage :focus-visible, .close :focus-visible { outline-color: var(--on-stage); }
h1, h2, p { margin: 0; }

/* ───────── the stage: the opening film ───────── */
.stage { position: relative; min-height: 100svh; background: var(--stage); color: var(--on-stage); overflow: hidden; padding-bottom: 76px; }
.lang { position: absolute; z-index: 3; top: 8px; inset-inline-end: 12px; display: inline-grid; place-items: center; min-width: 48px; min-height: 48px; padding: 0 8px; text-decoration: none; color: var(--on-stage); }
.lang:lang(en) { font-family: 'Manrope', Arial, sans-serif; font-weight: 500; font-size: 12px; letter-spacing: .12em; }
.lang:lang(ar) { font-family: 'Noto Sans Arabic', sans-serif; font-weight: 500; font-size: 16px; }

/* the app's own lockup, as the film shows it: cream on the dark, the ruby rule */
.mark { position: absolute; z-index: 2; top: 14px; left: 0; right: 0; display: flex; flex-direction: column; align-items: center; margin: 0; pointer-events: none; }
.mark-latin { display: block; font-family: 'Playfair Display', Georgia, serif; font-weight: 400; font-size: 17px; line-height: 1.15; letter-spacing: .34em; margin-right: -.34em; direction: ltr; }
.mark-rule { display: block; width: 32px; height: 1px; margin: 7px 0 2px; background: var(--ruby); }
.mark-arabic { display: block; font-family: 'Noto Sans Arabic', sans-serif; font-weight: 300; font-size: 16px; line-height: 1.5; }

.film { position: relative; width: 100%; aspect-ratio: 9 / 16; max-height: 100svh; margin: 0 auto; -webkit-mask-image: linear-gradient(#000 80%, transparent); mask-image: linear-gradient(#000 80%, transparent); }
.film video, .film img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.film img { display: none; }

.say { position: relative; z-index: 2; margin-top: -34px; padding: 0 24px; text-align: center; }
h1 { font-family: var(--display); font-weight: 300; font-size: clamp(38px, 11vw, 52px); line-height: 1.35; letter-spacing: 0; }
html:lang(en) h1 { font-weight: 400; font-size: clamp(30px, 8.7vw, 50px); line-height: 1.12; letter-spacing: -.01em; }
.say p { max-width: 24em; margin: 14px auto 0; color: var(--on-stage-soft); text-wrap: pretty; }

/* ───────── the paper: the app plays itself ───────── */
.sheet { position: relative; z-index: 4; margin-top: -28px; background: var(--paper); border-radius: 28px 28px 0 0; }
.intro { padding: 64px 20px 8px; text-align: center; }
.intro h2 { max-width: 21em; margin: 0 auto; font-size: clamp(23px, 6.2vw, 30px); line-height: 1.7; text-wrap: pretty; }
html:lang(en) .intro h2 { font-size: clamp(23px, 6.2vw, 30px); line-height: 1.32; }
.steps { counter-reset: step; list-style: none; margin: 36px 0 0; padding: 0; border-top: 1px solid var(--line); text-align: start; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 8px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(step); grid-row: 1 / span 2; font-family: 'Playfair Display', Georgia, serif; font-weight: 400; font-size: 34px; line-height: 1.25; color: var(--ruby); }
.steps b { font-weight: 600; font-size: 18px; line-height: 1.6; }
.steps span { color: var(--muted); }
.act { display: grid; gap: 36px; padding: 72px 20px 24px; }
.words { text-align: center; }
h2 { font-family: var(--display); font-weight: 300; font-size: clamp(32px, 9vw, 44px); line-height: 1.4; letter-spacing: 0; text-wrap: balance; }
html:lang(en) h2 { font-weight: 400; font-size: clamp(31px, 8.6vw, 44px); line-height: 1.14; letter-spacing: -.01em; }
.words p { max-width: 25em; margin: 14px auto 0; color: var(--muted); text-wrap: pretty; }
/* his own objects, as the app's doors show them: the hanger for «خططي», the suitcase for «رحلاتي» */
.thing { display: block; height: auto; margin: 0 auto 18px; }
.thing-hanger { width: 150px; }
.thing-case { width: 168px; }
.points { list-style: none; margin: 26px 0 0; padding: 0; border-top: 1px solid var(--line); text-align: start; }
.points li { display: grid; gap: 0 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.points b { font-weight: 600; }
.points span { color: var(--muted); }
.kinds { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 26px 0 0; padding: 0; color: var(--muted); font-size: 13px; line-height: 1.5; text-align: center; }
.kinds img { display: block; width: min(100%, 76px); height: auto; margin: 0 auto 6px; }
.frieze { min-width: 0; }
.frieze p { margin: 0 0 18px; color: var(--muted); text-align: center; }
.frieze ul { list-style: none; display: flex; gap: 18px; margin: 0 -20px; padding: 0 20px 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; color: var(--muted); font-size: 14px; text-align: center; }
.frieze ul::-webkit-scrollbar { display: none; }
.frieze li { flex: 0 0 78%; scroll-snap-align: center; }
.frieze img { display: block; width: 100%; height: auto; margin-bottom: 8px; }
.try { display: none; }
.js .try { display: block; color: var(--ruby); font-weight: 500; }

/* one screen of the app, at the phone's own size */
.show { display: grid; justify-items: center; gap: 14px; }
.screen { position: relative; width: min(100%, calc(var(--screen-w) * 1px)); aspect-ratio: var(--screen-w) / var(--screen-h); overflow: hidden; border-radius: 30px; background: var(--paper);
  box-shadow: 0 0 0 1px var(--line), 0 44px 80px -48px rgba(32, 25, 29, .6); isolation: isolate; }
.screen video, .screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; background: var(--paper); }
.chain video:not(:first-of-type) { display: none; }
.js .chain video:not(:first-of-type) { display: block; }
.js .chain video { opacity: 0; transition: opacity .28s ease; }
.js .chain video.on { opacity: 1; }

/* «إطلالة أخرى», the app's own button in the film: a tap here deals the next look */
.tap { display: none; }
.js .tap { display: block; position: absolute; z-index: 2; left: var(--tap-left); top: var(--tap-top); width: var(--tap-w); height: var(--tap-h); padding: 0; border: 0; border-radius: 14px; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.tap::after { content: ""; position: absolute; inset: -5px; border: 2px solid var(--ruby); border-radius: 18px; opacity: 0; }
.tap.hint::after { animation: ring 1.25s ease-out 3 both; }
@keyframes ring { 0% { opacity: 0; transform: scale(.96); } 35% { opacity: .95; transform: scale(1); } 100% { opacity: .55; transform: scale(1.03); } }

.again { display: none; }
.js .again { display: inline-grid; grid-auto-flow: column; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 0; border-radius: 22px; background: none; color: var(--muted); font-size: 14px; cursor: pointer; visibility: hidden; }
.js .done .again { visibility: visible; }
.again svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* the two quiet screens: «خزانتي» and «إطلالاتي» */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; width: 100%; max-width: 620px; }
.pair figure { margin: 0; display: grid; gap: 10px; justify-items: center; }
.pair figure:last-child { margin-top: 40px; }
.pair .screen { border-radius: 16px; }
.pair figcaption { color: var(--muted); font-size: 14px; }

/* the pieces of our own wardrobes, on the look page's warm ground under its ruby band */
.ours { margin-top: 72px; padding: 64px 20px 56px; background: var(--ground); border-top: 6px solid var(--ruby); text-align: center; }
.ours-words p { max-width: 26em; margin: 14px auto 0; color: #5d5257; text-wrap: pretty; }
.ours-words .aside { font-size: 14px; }
.rail { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 12px; max-width: 1084px; margin: 36px auto 0; padding: 0; color: #5d5257; font-size: 13px; line-height: 1.5; }
.rail img { display: block; width: 100%; height: auto; margin-bottom: 8px; border-radius: 14px; }

/* ───────── the close: back on the stage ───────── */
.close { position: relative; z-index: 4; background: var(--stage); color: var(--on-stage); text-align: center; padding: 0 24px 40px; }
.close::before { content: ""; display: block; height: 28px; margin: 0 -24px; background: var(--ground); border-radius: 0 0 28px 28px; }
.promise { padding: 84px 0 0; }
.promise p { max-width: 24em; margin: 14px auto 0; color: var(--on-stage-soft); }
.facts { list-style: none; max-width: 980px; margin: 40px auto 0; padding: 0; border-top: 1px solid rgba(255, 250, 243, .14); text-align: start; }
.facts li { display: grid; padding: 14px 0; border-bottom: 1px solid rgba(255, 250, 243, .14); }
.facts b { font-weight: 600; }
.facts span { color: var(--on-stage-soft); }
.trial { margin-top: 56px; }
.trial .soon { color: #e7b9c2; }
.contact { margin-top: 56px; padding-top: 32px; border-top: 1px solid rgba(255, 250, 243, .14); color: var(--on-stage-soft); }
.contact a { display: inline-block; margin-top: 4px; padding: 10px 4px; font-family: 'Manrope', Arial, sans-serif; font-weight: 500; font-size: 17px; letter-spacing: .02em; color: var(--on-stage); text-decoration-color: var(--ruby); text-underline-offset: 7px; direction: ltr; }
.foot { margin-top: 56px; color: #8f7f76; font-size: 13px; }
.foot .mark { position: static; margin-bottom: 20px; color: var(--on-stage); }
.foot .mark-latin { font-size: 20px; }
.foot .mark-arabic { font-size: 19px; }

/* ───────── wider screens: the words on one side, the performance on the other, one axis down the page ───────── */
@media (min-width: 900px) {
  .stage { --pad: max(48px, calc((100vw - 1180px) / 2)); --fh: min(94vh, 980px); --fw: calc(var(--fh) * 9 / 16);
    display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 24px; min-height: 100vh; padding: 0 var(--pad) 28px; }
  .stage::before { content: ""; position: absolute; z-index: 0; top: 0; height: var(--fh); left: calc(var(--pad) + var(--fw) * .5); width: calc(var(--fw) * 1.15); pointer-events: none;
    background: radial-gradient(ellipse 50% 46% at 38% 40%, rgba(64, 40, 28, .96) 0%, rgba(50, 31, 23, .78) 36%, rgba(30, 18, 14, .4) 68%, rgba(12, 7, 6, 0) 100%); }
  html[dir="ltr"] .stage::before { left: auto; right: calc(var(--pad) - var(--fw) * .65); }
  .film { position: relative; z-index: 1; grid-column: 2; grid-row: 1; width: auto; height: var(--fh); max-height: none;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 14%, #000 80%, transparent), linear-gradient(transparent, #000 7%, #000 78%, transparent); mask-image: linear-gradient(to right, transparent, #000 14%, #000 80%, transparent), linear-gradient(transparent, #000 7%, #000 78%, transparent);
    -webkit-mask-composite: source-in; mask-composite: intersect; }
  .say { grid-column: 1; grid-row: 1; margin: 0; padding: 0; text-align: start; }
  .mark { position: static; align-items: flex-start; margin: 0 0 64px; }
  .stage .mark { grid-column: 1; grid-row: 1; align-self: start; margin-top: 56px; }
  .stage .mark-latin { font-size: 30px; }
  .stage .mark-rule { width: 52px; margin: 13px 0 5px; }
  .stage .mark-arabic { font-size: 28px; }
  h1 { font-size: clamp(56px, 6.4vw, 92px); }
  html:lang(en) h1 { font-size: clamp(54px, 6vw, 88px); }
  .say p { margin-inline: 0; font-size: 19px; }
  .lang { top: 44px; inset-inline-end: max(40px, calc((100vw - 1180px) / 2 - 8px)); }

  .intro { max-width: 1180px; margin: 0 auto; padding: 120px 48px 20px; }
  .intro h2 { max-width: 24em; font-size: clamp(30px, 2.9vw, 40px); }
  html:lang(en) .intro h2 { font-size: clamp(30px, 2.9vw, 40px); }
  .steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 48px; margin-top: 64px; }
  .steps li { grid-template-columns: 56px minmax(0, 1fr); padding: 22px 0; border-bottom: 0; }
  .steps li::before { font-size: 44px; }
  .act { grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 72px; max-width: 1180px; margin: 0 auto; padding: 110px 48px 40px; }
  .points { max-width: 30em; margin-top: 34px; }
  .points li { grid-template-columns: 9.5em minmax(0, 1fr); }
  .kinds { max-width: 30em; margin-top: 30px; font-size: 14px; }
  .frieze { grid-column: 1 / -1; margin-top: 24px; }
  .frieze p { margin-bottom: 28px; font-size: 19px; }
  .frieze ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 44px; margin: 0; padding: 0; overflow: visible; font-size: 15px; }
  .ours { margin-top: 110px; padding: 110px 48px 96px; }
  .ours-words p { font-size: 19px; }
  .ours-words .aside { font-size: 15px; }
  .rail { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; margin-top: 56px; font-size: 14px; }
  .facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 48px; margin-top: 56px; }
  .facts li { border-bottom: 0; }
  .words { text-align: start; }
  h2 { font-size: clamp(44px, 4.6vw, 64px); }
  html:lang(en) h2 { font-size: clamp(42px, 4.4vw, 62px); }
  .words p { margin-inline: 0; font-size: 19px; }
  .thing { margin: 0 0 30px; }
  .thing-hanger { width: 230px; }
  .thing-case { width: 250px; }
  .screen { width: auto; height: min(82vh, calc(var(--screen-h) * 1px)); }
  .pair { max-width: none; width: auto; gap: 20px; }
  .pair .screen { height: min(58vh, 560px); border-radius: 22px; }
  .pair figure:last-child { margin-top: 72px; }

  .close { padding-bottom: 56px; }
  .promise { padding-top: 120px; }
  .foot .mark { align-items: center; }
}

/* less motion asked for: the film and the clips stand on their last picture; a tap still plays them */
@media (prefers-reduced-motion: reduce) {
  .film video { display: none; }
  .film img { display: block; }
  .tap.hint::after { animation: none; opacity: .55; }
  .js .chain video { transition: none; }
}

/* the page for an address that does not exist */
.lost { min-height: 100svh; display: grid; align-content: center; padding-top: 40px; }
.lost::before { display: none; }
.lost .foot { margin-top: 0; }
.lost .promise { padding-top: 40px; }
.lost a { color: var(--on-stage); text-decoration-color: var(--ruby); text-underline-offset: 6px; }
