/* go.blow.com.sa - the referral page (Staff referrals Part 2, previews v20).
   Fonts are self-hosted (OFL, fonts/OFL.txt): the page makes no third-party request. */
@font-face {
  font-family: 'DM Sans';
  src: url('/fonts/dm-sans-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('/fonts/dm-sans-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('/fonts/dm-sans-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('/fonts/playfair-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('/fonts/playfair-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('/fonts/playfair-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('/fonts/playfair-600-italic.woff2') format('woff2');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Tajawal';
  src: url('/fonts/tajawal-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Tajawal';
  src: url('/fonts/tajawal-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Tajawal';
  src: url('/fonts/tajawal-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Aref Ruqaa';
  src: url('/fonts/aref-ruqaa-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
/* Brand tokens from the app (src/theme/tokens.ts): ink #F10F6D, ground #FCCDDE. One look on purpose:
   the page is the doorway to the app, so it looks like the app in any browser theme. */
:root {
  --pink50: #fff2f7;
  --pink200: #fccdde;
  --pink500: #f10f6d;
  --pink600: #d00a5c;
  --wine900: #5c0426;
  --ink900: #1a1114;
  --ink600: #6b5a5f;
  --rule: rgba(92, 4, 38, 0.12);
  --chip: rgba(92, 4, 38, 0.18);
  --glass: rgba(255, 255, 255, 0.78);
  --green: #067a54;
  --display: 'Playfair Display', Georgia, serif;
  --body: 'DM Sans', system-ui, -apple-system, sans-serif;
  color-scheme: light;
}
:root[lang='ar'] {
  --display: 'Aref Ruqaa', 'Tajawal', serif;
  --body: 'Tajawal', system-ui, sans-serif;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
}
body {
  min-height: 100vh;
  min-height: 100dvh;
  font: 16px/1.6 var(--body);
  color: var(--ink900);
  background: linear-gradient(180deg, var(--pink50) 0%, var(--pink200) 60%, #f7b5ce 100%) fixed;
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
  display: flex;
  flex-direction: column;
}
header,
footer {
  width: 100%;
  max-width: 960px;
  margin-inline: auto;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: max(14px, env(safe-area-inset-top)) 6px;
  direction: ltr;
}
.wm {
  font:
    700 22px/1 'Playfair Display',
    Georgia,
    serif;
  letter-spacing: 0.3em;
  color: var(--wine900);
  text-decoration: none;
  padding-block: 8px;
}
.lang {
  appearance: none;
  cursor: pointer;
  min-height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--chip);
  background: rgba(255, 255, 255, 0.72);
  color: var(--wine900);
  font:
    500 14px/1 'DM Sans',
    sans-serif;
}
.lang[lang='ar'] {
  font-family: 'Tajawal', sans-serif;
  font-size: 15px;
}
.lang:focus-visible,
.btn:focus-visible,
.store:focus-visible,
.open:focus-visible {
  outline: 2px solid var(--wine900);
  outline-offset: 2px;
}
main {
  flex: 1;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  gap: 28px;
  align-content: center;
  padding-block: 28px 40px;
}
.card {
  width: 100%;
  max-width: 440px;
  margin-inline: auto;
  text-align: center;
}
.eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 0 12px;
  font:
    600 11px/1 'DM Sans',
    sans-serif;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--wine900);
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--wine900);
}
:root[lang='ar'] .eyebrow {
  letter-spacing: 0;
  text-transform: none;
  font:
    500 14px/1 'Tajawal',
    sans-serif;
}
h1 em {
  font-style: italic;
  color: var(--pink600);
}
:root[lang='ar'] h1 em {
  font-style: normal;
}
h1 {
  font: 600 32px/1.2 var(--display);
  color: var(--wine900);
  margin: 0 0 10px;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
:root[lang='ar'] h1 {
  letter-spacing: 0;
}
.lead {
  margin: 0 auto 22px;
  color: var(--ink600);
  max-width: 34ch;
}
.code {
  display: inline-block;
  direction: ltr;
  font:
    500 26px/1.2 'DM Sans',
    sans-serif;
  letter-spacing: 0.2em;
  color: var(--wine900);
  background: var(--glass);
  border: 1px solid rgba(185, 189, 192, 0.55);
  border-radius: 14px;
  padding-block: 10px;
  padding-inline-end: 18px;
  padding-inline-start: calc(18px + 0.2em);
}
.btn {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  margin: 12px 0 26px;
  border-radius: 999px;
  border: 1px solid var(--chip);
  color: var(--ink600);
  font: 500 15px/1 var(--body);
  background: rgba(255, 255, 255, 0.4);
}
.btn.done {
  border-color: rgba(14, 159, 110, 0.35);
  background: rgba(14, 159, 110, 0.1);
  color: var(--green);
}
.steps {
  list-style: none;
  margin: 0 0 24px;
  padding: 16px 18px;
  text-align: start;
  background: var(--glass);
  border: 1px solid rgba(185, 189, 192, 0.55);
  border-radius: 18px;
  display: grid;
  gap: 10px;
}
.steps li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-size: 15px;
  line-height: 1.45;
}
.steps b {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 12px;
  background: var(--pink600);
  color: #fff;
  display: inline-grid;
  place-items: center;
  font:
    600 13px/1 'DM Sans',
    sans-serif;
  transform: translateY(-1px);
}
.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.store {
  display: inline-flex;
  line-height: 0;
  border-radius: 8px;
}
/* Official artwork, unaltered. Apple's SVG is the badge itself; Google's PNG
   carries 41px of clear space on every side of 250, so it is sized up and the
   space pulled in, to give both the same visible 44px. */
.badge-ios {
  height: 44px;
  width: auto;
}
.badge-android {
  height: 65.48px;
  width: auto;
  margin: -10.74px;
}
.open {
  display: inline-block;
  margin-top: 18px;
  color: #820637;
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  min-height: 44px;
  line-height: 44px;
}
.qrbox {
  display: none;
}
.later {
  margin: 18px auto 0;
  color: var(--ink600);
  font-size: 14px;
  max-width: 34ch;
}
footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-block: 14px max(18px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--rule);
  font-size: 13px;
  color: var(--ink600);
}
footer a {
  color: inherit;
}
footer p {
  margin: 0;
}
.links {
  display: flex;
  justify-content: center;
  gap: 18px;
}
/* The stores' trademark notice (approved 2 Dec): English on both versions. */
.tm {
  font:
    400 11px/1.5 'DM Sans',
    sans-serif;
  text-align: center;
  max-width: 72ch;
  opacity: 0.85;
}
/* Arabic is never italic (404.html shows both languages on one page). */
[lang='ar'] em {
  font-style: normal;
}
h1[lang='ar'] {
  font-family: 'Aref Ruqaa', 'Tajawal', serif;
  letter-spacing: 0;
}
/* Desktop: the card and a QR to scan with the phone, side by side. */
@media (min-width: 860px) {
  .later {
    margin-inline: 0;
  }
  main {
    grid-template-columns: minmax(0, 440px) minmax(0, 320px);
    justify-content: center;
    align-items: center;
    gap: 72px;
    padding-block: 56px;
  }
  .card {
    text-align: start;
    margin: 0;
  }
  .lead {
    margin-inline: 0;
  }
  .eyebrow {
    justify-content: flex-start;
  }
  h1 {
    font-size: 38px;
  }
  .stores {
    justify-content: flex-start;
  }
  .qrbox {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    padding: 28px;
    background: var(--glass);
    border: 1px solid rgba(185, 189, 192, 0.55);
    border-radius: 22px;
  }
  .qrbox .plate {
    background: #fff;
    padding: 14px;
    border-radius: 14px;
    box-shadow: 0 0 26px rgba(241, 15, 109, 0.42);
    line-height: 0;
  }
  .qrbox p {
    margin: 0;
    color: var(--ink600);
    font-size: 15px;
    max-width: 26ch;
  }
}
[hidden] {
  display: none !important;
}
