/* The program page: an ordinary scrolling page in the look of the river world (no canvas). Builds on base.css.
   It opens on a picture the world itself drew (tools/hero.mjs): the program's screen in its slab of glass, standing in the
   night water. Further down the program's other screens stand in glass of the same kind. Lime is light here, as in the
   world: the ways to act, the glass's foot, the step the visitor is on, the one day in thirty the program goes online. */
:root { --wrap: 1180px; --card: rgba(255, 255, 255, .04); --bar: 68px; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar) + 20px); }
h1 { font-size: clamp(31px, 8.4vw, 44px); }
h2 { font-size: clamp(30px, 3.6vw, 50px); }
h3 { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(21px, 1.9vw, 26px); line-height: 1.3; text-wrap: balance; }
:root[lang="en"] h3 { letter-spacing: -.01em; line-height: 1.2; }
dl, dd { margin: 0; }
.bar .logo, .end .logo { min-height: 44px; }
.wrap { max-width: var(--wrap); margin-inline: auto; }

/* the bar: stays at the top; clear over the first screen, on a ground of its own once the page moves under it */
.bar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px 30px; min-height: var(--bar); padding: 10px var(--pad);
  border-bottom: 1px solid transparent; transition: background-color .25s ease-out, border-color .25s ease-out;
}
.bar.scrolled, .no-js .bar { background: rgba(7, 6, 28, .94); border-bottom-color: var(--line); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.bar nav { display: flex; gap: 4px 26px; margin-inline-end: auto; }
.bar nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--soft); font-size: 16px; font-weight: 600; transition: color .18s ease-out; }
:root[lang="en"] .bar nav a { font-size: 15px; }
.bar nav a:hover { color: var(--ink); }
.bar .tools { gap: 6px; }
.bar .lang { display: inline-flex; align-items: center; text-decoration: none; }
.bar .btn { min-height: 44px; padding: 8px 18px; border-radius: 12px; font-size: 16px; }
:root[lang="en"] .bar .btn { font-size: 15px; }
@media (max-width: 900px) { .bar nav { display: none; } .bar .tools { margin-inline-start: auto; } }
@media (max-width: 520px) { .bar .try { display: none; } }

/* the first screen. On a screen that stands: the world's picture, its water going dark into the night, the words over
   that dark. (The picture keeps its whole width; the box above the words may cut its top and bottom, never the program.) */
.hero { position: relative; isolation: isolate; overflow: hidden; container-type: inline-size; display: flex; flex-direction: column; margin-top: calc(-1 * var(--bar)); padding-bottom: clamp(30px, 7vw, 48px); }
.vista { order: -1; position: relative; z-index: -1; height: min(141.667cqw, 64svh); overflow: hidden; }
.frame { position: absolute; inset-inline: 0; top: min(0px, calc((100% - 141.667cqw) * .31)); aspect-ratio: 1200 / 1700; --x: 50%; --y: 39%; --w: 80%; --h: 35.9%; }
.frame picture, .frame .pic { display: block; width: 100%; height: 100%; }
.frame .pic { object-fit: cover; }
/* the night laid over it: a ground for the bar at the top, the water going dark at the foot */
.vista::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(rgba(7, 6, 28, .55), rgba(7, 6, 28, 0) 20%), linear-gradient(to top, var(--night) 0%, rgba(7, 6, 28, .86) 17%, rgba(7, 6, 28, 0) 46%);
}
/* the program in the picture enlarges, as every screen on this page does */
.zoom { position: relative; display: block; cursor: zoom-in; }
.zoom img { width: 100%; }
.frame .zoom { position: absolute; z-index: 1; left: calc(var(--x) - var(--w) / 2); top: calc(var(--y) - var(--h) / 2); width: var(--w); height: var(--h); border-radius: 10px; }
.zoom-hint {
  position: absolute; inset-block-end: 12px; inset-inline-end: 12px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: rgba(7, 6, 28, .8); color: #fff; opacity: 0; transition: opacity .18s ease-out;
}
.zoom-hint .i { width: 20px; height: 20px; }
.zoom:hover .zoom-hint, .zoom:focus-visible .zoom-hint { opacity: 1; }
/* (the keyboard's ring round a picture is lime on a dark line: one of the two stands out from whatever the picture has there) */
.zoom:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; box-shadow: 0 0 0 3px var(--night); }
@media (hover: none) { .zoom-hint { opacity: .92; width: 34px; height: 34px; border-radius: 10px; inset-block-end: 8px; inset-inline-end: 8px; } .zoom-hint .i { width: 17px; height: 17px; } }
.hero-copy { position: relative; display: grid; justify-items: center; gap: 16px; margin-top: calc(-1 * min(27cqw, 136px)); margin-top: calc(-1 * min(27cqw, 136px, max(12svh, 44.16svh - 36.76cqw))); padding-inline: var(--pad); text-align: center; }
/* (the words come up over the picture's foot only where it is dark: over the water under the program's screen, or into
   the night laid over the box's last fifth, 12svh. The screen's foot stands 44.16svh - 36.76cqw above the box's: the box
   is 64svh high and shows the picture from .31 of what it cuts off, and the screen ends at .5695 of the picture's height,
   141.667cqw. On a phone that leaves the water under the screen; a low, wide window has the screen down to the box's foot) */
.hero .name { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 2px 12px; margin-bottom: clamp(10px, 1.3vw, 18px); font: 600 19px/1.5 var(--text); letter-spacing: 0; word-spacing: normal; font-stretch: 100%; color: var(--lime); }
:root[lang="en"] .hero .name { font-size: 17.5px; }
.hero .name small { font-weight: 400; font-size: 16.5px; color: var(--soft); }
:root[lang="en"] .hero .name small { font-size: 15.5px; }
.hero h1 em { color: inherit; }
.hero .lead { max-width: 34em; }
.hero .actions { justify-content: center; margin-top: 6px; }
.fine { color: var(--dim); font-size: 15px; }
/* (a browser that knows neither the container's units nor the small screen's, or not the latter (iOS 15, Samsung Internet
   up to 20, Chrome before 108), drops every line above that uses one: the picture's box had no height there, and the
   words rose under the bar or above the page's top. For it the same first screen in the window's own units: the first
   screen is as wide as the window, and the window's height is what such a browser has) */
@supports not ((width: 1cqw) and (height: 1svh)) {
  .vista { height: min(141.667vw, 64vh); }
  .frame { top: min(0px, calc((100% - 141.667vw) * .31)); }
  .hero-copy { margin-top: calc(-1 * min(27vw, 136px, max(12vh, 44.16vh - 36.76vw))); }
}

/* On a screen that lies: the picture is the whole first screen, the program on one side of it (on the left in Arabic,
   on the right in English) and the words on the other, over a night that deepens toward the page's edge. Where the
   slab's screen stands in each picture comes from tools/hero.mjs (its middle and its size, as shares of the picture).
   (So too a window about as wide as it is tall, a browser snapped to half of a large screen, and a small lying one, a
   phone or a fold turned or a laptop zoomed to 200%: in the standing layout the program's picture, as wide as such a
   window, slid up under the bar and under the words. The same query picks the picture, in the page.) */
@media (min-aspect-ratio: 5/4) and (min-width: 560px), (min-aspect-ratio: 7/8) and (min-width: 760px) {
  .hero { --hh: min(56.25vw, max(100svh, 34rem)); display: grid; align-items: center; min-height: var(--hh); padding: var(--bar) 0 0; }
  .vista { position: absolute; inset: 0; height: auto; }
  .frame { top: min(0px, calc((100% - 56.25cqw) / 2)); aspect-ratio: 16 / 9; }
  :root[lang="ar"] .frame { --x: 30%; --y: 46%; --w: 37%; --h: 41.5%; }
  :root[lang="en"] .frame { --x: 70%; --y: 46%; --w: 37%; --h: 51%; }
  /* (where the words need more height than the picture has, the box is taller than the picture, and the picture's own
     foot goes into the night: 16% of its height, from 47.25cqw down to its foot at 56.25cqw, there only) */
  .vista::after {
    --to: to left;
    background:
      linear-gradient(rgba(7, 6, 28, .5), rgba(7, 6, 28, 0) 18%),
      linear-gradient(var(--to), rgba(7, 6, 28, .84), rgba(7, 6, 28, .76) 30%, rgba(7, 6, 28, .5) 43%, rgba(7, 6, 28, 0) 58%),
      linear-gradient(to top, var(--night), rgba(7, 6, 28, 0) 16%),
      linear-gradient(to top, var(--night), rgba(7, 6, 28, 0)) left 0 top 47.25cqw / 100% clamp(0px, calc((100% - 56.25cqw) * 50), 9cqw) no-repeat;
  }
  :root[dir="ltr"] .vista::after { --to: to right; }
  @supports not ((width: 1cqw) and (height: 1svh)) {
    .hero { --hh: min(56.25vw, max(100vh, 34rem)); }
    .frame { top: min(0px, calc((100% - 56.25vw) / 2)); }
    .vista::after {
      background:
        linear-gradient(rgba(7, 6, 28, .5), rgba(7, 6, 28, 0) 18%),
        linear-gradient(var(--to), rgba(7, 6, 28, .84), rgba(7, 6, 28, .76) 30%, rgba(7, 6, 28, .5) 43%, rgba(7, 6, 28, 0) 58%),
        linear-gradient(to top, var(--night), rgba(7, 6, 28, 0) 16%),
        linear-gradient(to top, var(--night), rgba(7, 6, 28, 0)) left 0 top 47.25vw / 100% clamp(0px, calc((100% - 56.25vw) * 50), 9vw) no-repeat;
    }
  }
  .hero-copy { --m: max(var(--pad), calc((100% - var(--wrap)) / 2)); justify-items: start; gap: 18px; width: min(40%, calc(48% - var(--m))); margin: 0; margin-inline-start: var(--m); padding: 24px 0 44px; text-align: start; }
  .hero .name, .hero .actions { justify-content: flex-start; }
  /* (a button's words go onto two lines where the column is narrower than they are, as in English at 600 to 800 px:
     kept on one line, they widened the whole column of words over the program's screen) */
  .hero .btn { white-space: normal; text-align: center; }
  .hero h1 { font-size: clamp(36px, 4.1vw, 66px); }
  :root[lang="en"] .hero h1 { font-size: clamp(34px, 3.7vw, 58px); }
  /* (the Arabic heading's first line, «أدِر مكتبك العقاري كله», stands whole in the column, which narrows as the screen
     grows past 1405 px: above 1601 px the heading grows smaller with it, 64.9px at 1920, 60.4px at 3840) */
  :root[lang="ar"] .hero h1 { font-size: clamp(36px, 4.1vw, min(66px, calc(69.4px - .2353vw))); }
}
/* (a small lying window, a phone or a fold turned, a laptop at 200%: the words take all the side the program leaves
   them, up to 3.5% short of its screen, not two fifths of the width, or the headline takes a line more) */
@media (min-aspect-ratio: 5/4) and (min-width: 560px) and (max-width: 759.98px) {
  .hero-copy { width: calc(48% - var(--m)); }
}
/* A window this small (a laptop zoomed to 300% and 400%) has no room for the picture and the words together: the words
   come first, under a bar that scrolls away with the page (the program's screens are all further down) */
@media (max-height: 340px) and (max-width: 559.98px) {
  .bar { position: relative; }
  .vista { display: none; }
  .hero { padding-top: calc(var(--bar) + 8px); }
  .hero-copy { margin-top: 0; }
}

/* what the program is, in four words, where the picture ends */
.spec-row { padding: 0 var(--pad); }
.specs { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.specs div { padding: 18px 22px 4px; border-inline-start: 1px solid var(--line); }
.specs div:first-child { border-inline-start: 0; padding-inline-start: 0; }
.specs dt { font-size: 15px; color: var(--dim); }
.specs dd { font-weight: 600; font-size: 19px; line-height: 1.45; }
:root[lang="en"] .specs dd { font-size: 17.5px; }

/* the parts of the page */
.band { padding: clamp(68px, 8.6vw, 124px) var(--pad) 0; }
.head { display: grid; gap: 14px; justify-items: start; max-width: 760px; }
.wrap > .head, .band > .wrap > h2 { margin-bottom: clamp(28px, 3.8vw, 52px); }
.band > .wrap > h2 { max-width: 760px; }
.band .lead { max-width: 33em; }
.band .lead a { color: var(--ink); text-underline-offset: 3px; }
.band .lead a:hover { color: var(--lime); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px clamp(28px, 5vw, 84px); align-items: start; }
.split > .head { margin: 0; }

/* the office day: five steps along a line of light, and the step's own screen in a sheet of glass beside them */
.day { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px clamp(28px, 4.6vw, 72px); align-items: center; }
.path { counter-reset: step; }
.path li { position: relative; counter-increment: step; display: grid; grid-template-rows: auto auto; }
.path b {
  display: flex; align-items: center; gap: 16px; min-height: 52px;
  font-family: var(--display); font-weight: 600; font-size: 21px; line-height: 1.3; color: var(--ink); text-wrap: balance;
}
:root[lang="en"] .path b { font-size: 19px; line-height: 1.25; }
.path b::before {
  content: counter(step); position: relative; z-index: 1; display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%;
  background: #0B082E; border: 1px solid rgba(241, 255, 95, .6); color: var(--lime); font: 600 16px/1 var(--latin);
  transition: border-color .3s ease-out, color .3s ease-out, box-shadow .3s ease-out;
}
.path span { display: block; padding: 0 0 18px; padding-inline-start: 56px; color: var(--soft); font-size: 16.5px; text-wrap: pretty; }
:root[lang="en"] .path span { font-size: 15.5px; }
/* the line from each step to the next: dim, and lit along the steps already taken */
.path li:not(:last-child)::before, .path li:not(:last-child)::after {
  content: ""; position: absolute; inset-inline-start: 19px; top: 26px; bottom: -26px; width: 2px; border-radius: 2px; background: rgba(241, 255, 95, .28);
}
.path li:not(:last-child)::after { background: var(--lime); box-shadow: 0 0 10px rgba(241, 255, 95, .5); transform: scaleY(0); transform-origin: 50% 0; transition: transform .45s cubic-bezier(.3, .7, .2, 1); }
.path li.past::after { transform: scaleY(1); }
/* chosen by hand (product.js): every step a button, the chosen one lit and its line of words open, the others quiet */
.path button {
  display: block; width: 100%; padding: 0; border: 0; border-radius: 12px; background: none; color: inherit; font: inherit; text-align: start; cursor: pointer;
}
.day.chosen .path li { grid-template-rows: auto 0fr; transition: grid-template-rows .4s cubic-bezier(.3, .7, .2, 1); }
.day.chosen .path li.on { grid-template-rows: auto 1fr; }
.day.chosen .path span { min-height: 0; overflow: hidden; opacity: 0; padding-bottom: 6px; transition: opacity .3s ease-out, padding .4s cubic-bezier(.3, .7, .2, 1); }
.day.chosen .path li.on span { opacity: 1; padding-bottom: 18px; }
.day.chosen .path li:not(.on) b { color: var(--soft); }
.day.chosen .path li:not(.on):not(.past) b::before { border-color: rgba(255, 255, 255, .34); color: var(--soft); }
.day.chosen .path li.on b::before { border-color: var(--lime); box-shadow: 0 0 0 5px rgba(241, 255, 95, .1), 0 0 24px rgba(241, 255, 95, .4); }
.path button:hover b { color: var(--ink); }
.path button:focus-visible { outline-offset: 4px; }

/* the glass: the slab of the first picture, drawn by the page: a rim of light, a top edge catching the moon, the
   lime light at its foot and the glow it throws on the water under it */
.glass, .price {
  position: relative; border-radius: clamp(16px, 1.8vw, 26px);
  background: linear-gradient(168deg, rgba(222, 222, 255, .2), rgba(150, 150, 236, .07) 34%, rgba(110, 110, 220, .045) 66%, rgba(190, 190, 255, .12));
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, .5), inset 0 -1px 0 rgba(255, 255, 255, .16), inset 1px 0 0 rgba(255, 255, 255, .14), inset -1px 0 0 rgba(255, 255, 255, .14),
    0 40px 90px -36px rgba(47, 47, 228, .6), 0 0 120px rgba(47, 47, 228, .14);
}
.glass { display: grid; gap: 14px; padding: clamp(8px, 1vw, 14px) clamp(8px, 1vw, 14px) clamp(24px, 2.4vw, 34px); }
.glass::after, .price::after {
  content: ""; position: absolute; inset-inline: 7%; bottom: clamp(10px, 1vw, 14px); height: 2px; border-radius: 2px; pointer-events: none;
  background: linear-gradient(90deg, rgba(241, 255, 95, 0), #F1FF5F 14%, #F1FF5F 86%, rgba(241, 255, 95, 0));
  box-shadow: 0 0 14px 1px rgba(241, 255, 95, .6), 0 0 44px 6px rgba(241, 255, 95, .18);
}
.glass::before { content: ""; position: absolute; inset-inline: 12%; top: calc(100% + 4px); height: 60px; border-radius: 50%; pointer-events: none; background: radial-gradient(50% 50% at 50% 0%, rgba(241, 255, 95, .16), rgba(47, 47, 228, .1) 60%, transparent 100%); filter: blur(8px); }
.glass .zoom, .glass img { border-radius: clamp(6px, .7vw, 10px); }
.glass .zoom { box-shadow: 0 0 0 1px rgba(255, 255, 255, .12); }
/* one screen at a time once a step can be chosen, the next coming in as the last fades */
.day.chosen .glass .shot { grid-area: 1 / 1; transition: opacity .4s ease-out, display .4s allow-discrete; }
.day.chosen .glass .shot:not(.on) { display: none; opacity: 0; }
@starting-style { .day.chosen .glass .shot.on { opacity: 0; } }
/* (without the script every screen is shown, numbered as its step) */
.day:not(.chosen) .glass { counter-reset: shot; }
.day:not(.chosen) .shot { position: relative; counter-increment: shot; }
.day:not(.chosen) .shot::before {
  content: counter(shot); position: absolute; z-index: 1; inset-block-start: 10px; inset-inline-start: 10px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: #0B082E; border: 1px solid rgba(241, 255, 95, .6); color: var(--lime); font: 600 14px/1 var(--latin);
}

/* around the day: what else the office has, said once each */
.around { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 30px clamp(20px, 2.6vw, 40px); }
.around div { display: grid; gap: 8px; align-content: start; padding-top: 20px; border-top: 1px solid var(--line); }
.around dt { display: grid; justify-items: start; gap: 14px; font-weight: 600; font-size: 19px; line-height: 1.4; }
:root[lang="en"] .around dt { font-size: 17.5px; }
.around dt .i { width: 28px; height: 28px; color: var(--dim); }
.around dd { color: var(--soft); font-size: 16.5px; text-wrap: pretty; }
:root[lang="en"] .around dd { font-size: 15.5px; }

/* without the internet: thirty days, one of them online */
.cycle { display: grid; gap: 28px; padding: clamp(22px, 3vw, 38px); border-radius: 24px; border: 1px solid var(--line); background: var(--card); }
.month { position: relative; display: grid; grid-template-columns: repeat(30, minmax(0, 1fr)); align-items: center; justify-items: center; min-height: 26px; padding-bottom: 26px; }
.month::before, .month::after { position: absolute; bottom: 0; width: 3.333%; text-align: center; font: 600 13px/1 var(--latin); color: var(--dim); }
.month::before { content: "1"; inset-inline-start: 0; }
.month::after { content: "30"; inset-inline-end: 0; color: var(--lime); }
.month i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .34); }
.month i:last-child { width: 16px; height: 16px; background: var(--lime); box-shadow: 0 0 0 5px rgba(241, 255, 95, .16), 0 0 22px 4px rgba(241, 255, 95, .5); }
.modes { display: grid; gap: 18px; }
.modes li { display: grid; grid-template-columns: 16px minmax(0, 1fr); column-gap: 14px; }
.modes li::before { content: ""; grid-row: span 2; width: 8px; height: 8px; margin: 12px 4px 0; border-radius: 50%; background: rgba(255, 255, 255, .34); }
:root[lang="en"] .modes li::before { margin-top: 10px; }
.modes li.on::before { background: var(--lime); box-shadow: 0 0 10px 2px rgba(241, 255, 95, .55); }
.modes b { font-size: 19px; }
:root[lang="en"] .modes b { font-size: 17.5px; }
.modes span { color: var(--soft); font-size: 16.5px; }
:root[lang="en"] .modes span { font-size: 15.5px; }

/* the price: asked for, not printed; said in a sheet of the same glass */
.price {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 28px clamp(24px, 4vw, 68px); align-items: center;
  padding: clamp(26px, 4.6vw, 64px) clamp(26px, 4.6vw, 64px) clamp(40px, 5.4vw, 76px); border-radius: clamp(22px, 2.6vw, 32px);
  background-color: rgba(28, 7, 112, .42);
  /* the same glass, less lit than the program's: the screens keep the light */
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, .42), inset 0 -1px 0 rgba(255, 255, 255, .14), inset 1px 0 0 rgba(255, 255, 255, .12), inset -1px 0 0 rgba(255, 255, 255, .12),
    0 30px 70px -46px rgba(47, 47, 228, .5);
}
.price::after { box-shadow: 0 0 10px rgba(241, 255, 95, .4); }
.price-say { display: grid; gap: 18px; justify-items: start; }
.price .lead { color: var(--soft); }
.price .actions { margin-top: 6px; }
.ticks { display: grid; gap: 16px; }
.ticks li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 14px; align-items: start; font-weight: 600; font-size: 19px; line-height: 1.55; }
:root[lang="en"] .ticks li { font-size: 17.5px; line-height: 1.45; }
.ticks .i { width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: rgba(241, 255, 95, .16); color: var(--lime); }

/* the questions, the help form */
#faq .head { position: sticky; top: calc(var(--bar) + 28px); }
.qa { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
#help .reach { margin-top: 8px; color: var(--soft); }
#help .reach a { display: inline-block; min-height: 36px; line-height: 36px; color: var(--ink); }      /* (a line of words, not a box: in Arabic a drag across a flex box lost its selection, and the number could not be copied) */
#help .write { max-width: none; padding: clamp(20px, 3vw, 36px); border-radius: 24px; border: 1px solid var(--line); background: var(--card); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
#help .write .btn { justify-self: start; min-width: 230px; min-height: 52px; }
.no-js #help .split { grid-template-columns: minmax(0, 1fr); }

/* the last screen: the night sea again, the moon low over it under the words and its path on the water coming to the
   foot of the page. The sky is the world's own (no lime in it); the lime here is the way to act. The same picture as
   the day's: the moon is put in the middle and the horizon at --hz over the foot (the picture's horizon is 65.1% of
   the way down it, so it is moved down by the rest, 34.9% of its own height); the sky comes out of the night slowly
   (a straight ramp would show where it starts) and the water goes into it at the foot */
.finale { --hz: clamp(64px, 9vw, 140px); position: relative; isolation: isolate; overflow: hidden; margin-top: clamp(64px, 8.6vw, 124px); padding: clamp(72px, 9vw, 132px) var(--pad) clamp(200px, 19vw, 300px); text-align: center; }
.finale .sea {
  position: absolute; z-index: -1; left: 50%; bottom: var(--hz); width: max(104%, 1100px); aspect-ratio: 2400 / 880; transform: translate(-51.8%, 34.9%); pointer-events: none;
  -webkit-mask-image: linear-gradient(transparent, rgba(0, 0, 0, .06) 9%, rgba(0, 0, 0, .24) 19%, rgba(0, 0, 0, .52) 29%, rgba(0, 0, 0, .8) 39%, rgba(0, 0, 0, .95) 47%, #000 54%);
  mask-image: linear-gradient(transparent, rgba(0, 0, 0, .06) 9%, rgba(0, 0, 0, .24) 19%, rgba(0, 0, 0, .52) 29%, rgba(0, 0, 0, .8) 39%, rgba(0, 0, 0, .95) 47%, #000 54%);
}
.finale .sea img { display: block; width: 100%; height: 100%; }
.finale::after { content: ""; position: absolute; z-index: -1; inset-inline: 0; bottom: 0; height: calc(var(--hz) * .9); pointer-events: none; background: linear-gradient(rgba(7, 6, 28, 0), var(--night)); }
.finale .wrap { display: grid; justify-items: center; gap: 20px; }
.finale .lead { max-width: 30em; }
.finale .actions { justify-content: center; margin-top: 10px; }

/* the foot */
.end { padding: clamp(40px, 6vw, 72px) var(--pad) 26px; }
.end .wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 34px clamp(24px, 5vw, 84px); }
.end-brand { display: grid; gap: 14px; justify-items: start; align-content: start; }
.end-brand p { color: var(--soft); max-width: 25em; font-size: 16.5px; }
.end-cols { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 26px 28px; }
.end-cols div { display: grid; gap: 2px; align-content: start; justify-items: start; }
.end-cols b { margin-bottom: 4px; font-size: 15px; font-weight: 600; color: var(--dim); }
.end-cols a, .end-cols span { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; color: var(--soft); text-decoration: none; font-size: 16.5px; }
:root[lang="en"] :is(.end-cols a, .end-cols span) { font-size: 15.5px; }
.end-cols a { transition: color .18s ease-out; }
.end-cols a:hover { color: var(--ink); }
.end-row { grid-column: 1 / -1; padding-top: 22px; border-top: 1px solid var(--line); color: var(--dim); font-size: 15px; }

/* arriving: the words rise once over the picture */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
  .hero .lead { animation-delay: .07s; }
  .hero .actions { animation-delay: .14s; }
  .fine { animation-delay: .2s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* (nothing glides: what is chosen is there at once. No transition at all rather than a very short one, which would
     be a transition of every property of every element) */
  *, *::before, *::after, ::backdrop { transition-duration: 0s !important; transition-delay: 0s !important; }
}

/* smaller screens */
@media (max-width: 1140px) {
  .end .wrap { grid-template-columns: minmax(0, 1fr); }      /* (the footer stands as on smaller screens, the logo's block on top: side by side, its columns broke names in two, "Download / (Arabic)", up to 1139 px) */
}
@media (max-width: 1040px) {
  .around { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .split, .day { grid-template-columns: minmax(0, 1fr); }
  .day { gap: 26px; }
  .glass { order: -1; }
  #faq .head { position: static; }
  .price { grid-template-columns: minmax(0, 1fr); }
  .end-cols { grid-template-columns: 1fr 1fr; justify-content: stretch; }
}
@media (max-width: 760px) {
  .specs { grid-template-columns: 1fr 1fr; }
  .specs div:nth-child(odd) { border-inline-start: 0; padding-inline-start: 0; }
  .specs div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .specs div { padding-bottom: 14px; }
  .around { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .around div { gap: 4px; padding: 16px 0; }
  .around dt { display: flex; align-items: center; gap: 14px; }
  .around dt .i { width: 26px; height: 26px; }
  .around dd { padding-inline-start: 40px; }
}
@media (max-width: 600px) {
  .hero .actions, .finale .actions, .price .actions { flex-direction: column; align-self: stretch; justify-self: stretch; width: 100%; }
  .hero .btn, .finale .btn, .price .btn { white-space: normal; text-align: center; }
  .pair { grid-template-columns: minmax(0, 1fr); }
  #help .write .btn { justify-self: stretch; }
  .month i { width: 5px; height: 5px; }
  .month i:last-child { width: 13px; height: 13px; }
  .specs dd { font-size: 17px; }
  :root[lang="en"] .specs dd { font-size: 16px; }
  .path b { font-size: 19.5px; }
  .path span { font-size: 16px; }
}
@media (max-width: 359px) {
  .end-cols { grid-template-columns: minmax(0, 1fr); }      /* (the support line's phone number does not break: two columns do not fit) */
}
/* the smallest phones (320 x 568): the moon comes up right under the buttons, so that the page's last part, its
   heading, its line, both buttons, the moon and the sea, is seen in one screen */
@media (max-width: 559.98px) and (max-height: 600px) {
  .finale { --hz: 40px; padding-bottom: 104px; }
}
