/* Coming-soon and welcome pages. Builds on style.css tokens.
   The one bold element: the stethoscope tube from the logo, running across the page into a heartbeat. */

body.launch { background: var(--paper); min-height: 100vh; padding-bottom: 0; }

/* ---------- the tube */
.tube { display: block; width: 100%; height: clamp(56px, 9vw, 120px); overflow: visible; }
.tube__path { fill: none; stroke: var(--navy); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.tube__end { fill: none; stroke: var(--navy); stroke-width: 3; vector-effect: non-scaling-stroke; }
.tube__end-in { fill: var(--navy); }
.tube__pulse { fill: var(--blue); }
.tube--draw { clip-path: inset(0 100% 0 0); animation: tube 2.2s .3s cubic-bezier(.55, .1, .3, 1) forwards; }
.tube--draw .tube__pulse { opacity: 0; transform-box: fill-box; transform-origin: center; animation: pulse 1.2s 2.4s ease-out forwards; }
@keyframes tube { to { clip-path: inset(0 0 0 0); } }
@keyframes pulse { 0% { opacity: 0; transform: scale(.4); } 40% { opacity: 1; transform: scale(1.8); } 100% { opacity: 1; transform: scale(1); } }
[dir="rtl"] .tube { transform: scaleX(-1); }

/* ---------- coming soon */
.lt { width: min(100% - 32px, var(--wrap)); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding-top: 28px; }
.lt__logo { width: clamp(130px, 14vw, 168px); }
.lt__lang { font-weight: 600; text-decoration: none; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.lt__lang:hover { border-color: var(--navy); }
.launch .tube { margin: 8px 0 0; }

.soon {
  width: min(100% - 32px, var(--wrap)); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 80px); align-items: start;
  padding: 8px 0 56px;
}
.soon__date { display: inline-block; margin-bottom: 18px; padding: 6px 14px; border-radius: 999px; background: var(--navy); color: #fff; font-weight: 600; font-size: .9375rem; }
.soon h1 { font-size: clamp(2.4rem, 1.4rem + 4.2vw, 4.6rem); line-height: 1.02; letter-spacing: -.025em; max-width: 11ch; margin-bottom: .35em; }
:lang(ar) .soon h1 { letter-spacing: 0; line-height: 1.2; max-width: 13ch; }
.soon__lede { font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); color: var(--ink-2); max-width: 46ch; margin-bottom: 32px; }

.notify { background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); padding: clamp(20px, 3vw, 28px); max-width: 560px; }
.notify h2 { font-size: 1.375rem; margin-bottom: 16px; }
.notify__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.notify .field { margin-bottom: 14px; }
.notify__type { margin: 4px 0 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.notify__type legend { font-weight: 600; margin-bottom: 8px; width: 100%; }
.notify__type label { cursor: pointer; }
.notify__type input { position: absolute; opacity: 0; pointer-events: none; }
.notify__type span { display: inline-block; padding: 8px 14px; border: 1px solid #B9C9DA; border-radius: 999px; background: #fff; font-size: .9375rem; }
.notify__type input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.notify__type input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.notify .fine { margin: 10px 0 0; }
.notify__done { display: flex; gap: 14px; align-items: flex-start; }
.notify__done svg { flex: none; width: 36px; height: 36px; fill: none; stroke: var(--green); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; background: #E3F2EA; border-radius: 50%; padding: 6px; }
.notify__done p { margin: 4px 0 0; font-size: 1.125rem; font-weight: 500; }

/* the catalogue, as it would sit on a desk */
.soon__side { padding-top: 12px; }
.stack { position: relative; margin: 0; aspect-ratio: 11 / 10; }
.stack img { position: absolute; width: 82%; border-radius: var(--r-s); border: 1px solid var(--line); background: #fff; }
.stack__b { inset-inline-end: 0; top: 0; transform: rotate(5deg); box-shadow: 0 10px 24px -14px rgba(15,37,82,.4); }
.stack__m { inset-inline-end: 6%; top: 5%; transform: rotate(-3deg); box-shadow: 0 12px 28px -14px rgba(15,37,82,.4); }
.stack__f { inset-inline-start: 0; top: 11%; transform: rotate(-.5deg); box-shadow: 0 28px 56px -24px rgba(15,37,82,.45); }
.soon__cat { margin-top: 8px; text-align: center; }

.coming { background: #fff; border-block: 1px solid var(--line); }
.coming ul { list-style: none; margin: 0 auto; padding: 32px 0; width: min(100% - 32px, var(--wrap)); display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.coming li { display: grid; gap: 4px; padding-inline-start: 18px; border-inline-start: 3px solid var(--blue); }
.coming b { font: 600 1.125rem/1.3 var(--serif); color: var(--navy-2); }
:lang(ar) .coming b { font-family: var(--arabic); }
.coming span { color: var(--ink-2); }

.lf { width: min(100% - 32px, var(--wrap)); margin: 0 auto; padding: 32px 0 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px 40px; align-items: end; }
.lf h2 { font: 600 1.0625rem var(--sans); color: var(--ink); margin-bottom: 8px; }
:lang(ar) .lf h2 { font-family: var(--arabic); }
.lf__act { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 0; font-weight: 600; font-size: 1.0625rem; }
.lf__addr { margin: 0; color: var(--ink-2); font-size: .9375rem; }

/* ---------- welcome */
.wel { width: min(100% - 32px, 980px); margin: 0 auto; padding: clamp(28px, 6vh, 64px) 0 48px; text-align: center; }
.wel__logo { width: clamp(150px, 20vw, 220px); margin: 0 auto; }
.wel .tube { height: 56px; margin: 4px 0 18px; }
.wel__hi { display: grid; gap: 4px; margin-bottom: 20px; }
.wel__hi span { display: block; }
.wel__hi span[lang="en"] { font: 600 clamp(2rem, 1.3rem + 3vw, 3.4rem)/1.05 var(--serif); letter-spacing: -.02em; }
.wel__hi span[lang="ar"] { font: 700 clamp(1.8rem, 1.2rem + 2.6vw, 3rem)/1.3 var(--arabic); }
.wel__hi .is-dim { color: #8FA6C2; font-size: .62em; }
.wel__lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; background: #fff; padding: 4px; gap: 4px; margin-bottom: 22px; }
.wel__lang a { padding: 10px 26px; border-radius: 999px; text-decoration: none; font-weight: 600; color: var(--ink); }
.wel__lang a[lang="ar"] { font-family: var(--arabic); }
.wel__lang a[aria-current] { background: var(--navy); color: #fff; }
.wel__lede { color: var(--ink-2); font-size: 1.125rem; max-width: 52ch; margin: 0 auto 36px; }
.wel__q { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); margin-bottom: 18px; }
.aud { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; text-align: start; }
.aud a { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; text-decoration: none; color: var(--ink); }
.aud img { aspect-ratio: 11 / 8; object-fit: cover; object-position: center 70%; width: 100%; border-bottom: 1px solid var(--line); }
.aud__name { padding: 12px 14px 2px; font-weight: 700; color: var(--navy-2); font-size: 1.0625rem; }
.aud__d { padding: 0 14px 14px; color: var(--ink-2); font-size: .875rem; line-height: 1.4; }
.aud a:hover { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.aud a:hover .aud__name { text-decoration: underline; text-underline-offset: 3px; }
.wel__skip { margin: 8px 0 6px; }
.wel__skip a { font-weight: 600; }

/* staff preview banner inside the shop */
.previewbar { background: #FFF4D6; color: #6B4A00; text-align: center; padding: 8px 16px; font-size: .875rem; font-weight: 500; }

@media (max-width: 960px) {
  .aud { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 820px) {
  .soon { grid-template-columns: 1fr; }
  .soon__side { max-width: 440px; margin-inline: auto; width: 100%; padding-top: 0; }
  .coming ul { grid-template-columns: 1fr; gap: 18px; padding: 28px 0; }
}
@media (max-width: 560px) {
  .notify__row { grid-template-columns: 1fr; gap: 0; }
  .aud { grid-template-columns: 1fr 1fr; gap: 10px; }
  .aud li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .aud li:last-child:nth-child(odd) img { aspect-ratio: 11 / 4; }
  .aud__d { display: none; }
  .wel__lang a { padding: 10px 20px; }
  .lf { align-items: start; }
}
@media (prefers-reduced-motion: reduce) {
  .tube--draw { clip-path: none; }
  .tube--draw .tube__pulse { opacity: 1; }
}
