/* ---------------------------------------------------------------
   Arab Media Summit 2026 — power bank rental terms
   Scrollable content on top, fixed brand footer at the bottom.
   --------------------------------------------------------------- */

@font-face {
  font-family: "HT Qays Sans";
  src: url("/assets/fonts/htqayssans-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "HT Qays Sans";
  src: url("/assets/fonts/htqayssans-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #20467a;
  --navy-deep: #12497b;
  --sand: #d5ccc2;
  --sand-dark: #c6bcb0;
  --ink: #1c2b45;
  --ink-soft: #4a5a76;
  --page: #ffffff;

  --footer-h: clamp(112px, max(18vh, 22vw), 300px);
  --shell: 62rem;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  margin: 0;
  height: 100%;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--page);
  color: var(--ink);
  font-family: "HT Qays Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(0.95rem, 0.88rem + 0.4vw, 1.075rem);
  line-height: 1.65;
  overflow: hidden;             /* only .sheet scrolls */
}

/* ---------- scrollable top section ---------- */

.sheet {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.sheet__inner {
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(1.5rem, 5vw, 3.25rem) clamp(1.15rem, 5vw, 2.5rem) clamp(1.5rem, 4vw, 2.5rem);
  padding-top: max(clamp(1.5rem, 5vw, 3.25rem), env(safe-area-inset-top));
}

/* ---------- terms ---------- */

.terms + .terms { margin-top: clamp(1.75rem, 4vw, 2.5rem); }

.terms__title {
  margin: 0 0 0.4em;
  font-size: clamp(1.15rem, 1rem + 1vw, 1.5rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--navy);
}

.terms__intro { margin: 0 0 0.85em; }

.terms__list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: term;
}

.terms__list li {
  counter-increment: term;
  position: relative;
  margin-bottom: 0.5em;
  padding-inline-start: 2.1em;
}

.terms__list li::before {
  content: counter(term) ".";
  position: absolute;
  inset-inline-start: 0;
  width: 1.7em;
  text-align: start;
  font-weight: 700;
  color: var(--navy);
  font-variant-numeric: lining-nums;
}

.terms--ar { font-size: 1.05em; }

.terms--ar .terms__list li,
.terms--ar .terms__intro { line-height: 1.85; }

/* ---------- notice pages (cancelled / invalid link) ---------- */

.notice {
  max-width: 34rem;
  margin-inline: auto;
  padding-block: clamp(1rem, 6vh, 3rem);
  text-align: center;
}

.notice__icon {
  width: clamp(52px, 14vw, 68px);
  margin: 0 auto clamp(1rem, 3vw, 1.5rem);
  color: var(--navy);
}

.notice__icon svg { display: block; width: 100%; height: auto; }

.notice__title {
  margin: 0 0 0.35em;
  font-size: clamp(1.1rem, 1rem + 0.9vw, 1.4rem);
  font-weight: 700;
  color: var(--navy);
}

.notice__body { margin: 0; color: var(--ink-soft); }

.notice__rule {
  width: 3.5rem;
  height: 2px;
  margin: clamp(1.25rem, 4vw, 1.75rem) auto;
  background: var(--sand);
  border-radius: 2px;
}

/* ---------- buttons ---------- */

.actions {
  display: flex;
  justify-content: center;
  gap: clamp(0.6rem, 2vw, 0.9rem);
  margin-top: clamp(1.75rem, 5vw, 2.75rem);
  flex-wrap: wrap;
}

.actions--single { justify-content: center; }

.btn {
  flex: 1 1 12rem;
  max-width: 15rem;
  min-height: 3.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 0.75rem 1.5rem;
  border: 0;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.btn__en { font-size: 0.95em; }
.btn__ar { font-size: 1.05em; letter-spacing: 0; }

/*
 * The artwork's buttons are pills with a single squared corner, mirrored so the
 * flat corners point outward at the top. A radius far larger than the box makes
 * the browser scale every non-zero corner down to exactly half the height,
 * which is the full round the artwork uses — at any button size.
 */
.btn--ghost   { border-radius: 0 999px 999px 999px; }   /* square top-left  */
.btn--primary { border-radius: 999px 0 999px 999px; }   /* square top-right */

.btn--primary {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 6px 18px rgba(32, 70, 122, 0.2);
}

.btn--ghost {
  background: var(--sand);
  color: var(--navy);
}

.btn:hover { transform: translateY(-1px); }
.btn--primary:hover { background: #1a3a67; }
.btn--ghost:hover { background: var(--sand-dark); }
.btn:active { transform: translateY(0); }

.btn:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}

.btn--primary:focus-visible { outline-color: var(--sand); outline-offset: 2px; }

/* ---------- fixed brand footer ---------- */

/*
 * Two separate bands rather than one stretched image: the sand bar is a flat
 * colour and the navy field keeps the artwork's own aspect ratio (cover, pinned
 * to the bottom so the dot pattern sits exactly where it was drawn), so nothing
 * is ever skewed at any viewport size.
 */
.brand {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  height: calc(var(--footer-h) + env(safe-area-inset-bottom, 0px));
  background: var(--navy-deep);
}

.brand__band {
  flex: 0 0 33.42%;          /* 126.97 / 379.91 — the artwork's sand band */
  background: var(--sand);
}

.brand__field {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 1rem;
  background: var(--navy-deep) url("/assets/img/footer-field.svg") center bottom / cover no-repeat;
}

.brand__logo {
  height: clamp(46px, 70%, 170px);
  width: auto;
  max-width: 66%;
}

@media (max-width: 40rem) {
  .btn {
    flex: 1 1 100%;
    max-width: none;
  }

  .actions { flex-direction: column-reverse; }  /* Continue sits on top */
  .actions--single { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
  .btn:hover { transform: none; }
}
