/* Rihla 2.0 — shared brand tokens
   Brand palette: deep cobalt navy + warm amber + cream, on near-black for premium feel.
   Pulls from the actual app icon: dominant navy #1F1FA0, off-white wordmark, amber accent. */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght,SOFT@9..144,300..900,0..100&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Cairo:wght@400;500;600;700;800;900&family=Comfortaa:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Brand */
  --navy-900: #0A0B1F;
  --navy-800: #11133B;
  --navy-700: #1B1E5C;
  --navy-600: #2326A0;        /* the icon's cobalt */
  --navy-500: #3338C7;
  --navy-400: #5860EE;
  --navy-300: #8A8EFF;

  --cream-50:  #F8F4EC;
  --cream-100: #F2EBDD;
  --cream-200: #E7DEC8;
  --cream-300: #D6C9A8;

  --amber-500: #F5A524;       /* warm gold */
  --amber-600: #E08C0E;
  --amber-300: #FFCB6B;

  --ink:       #0B0C18;
  --paper:     #F8F4EC;

  --line:      rgba(255,255,255,0.10);
  --line-soft: rgba(255,255,255,0.06);
  --line-paper:rgba(11,12,24,0.10);

  /* Type */
  --serif: 'Fraunces', 'Times New Roman', serif;
  --sans:  'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --arabic:'Cairo', 'Plus Jakarta Sans', sans-serif;
  --hand:  'Comfortaa', 'Fraunces', cursive; /* matches Rihla wordmark vibe */
  --mono:  'JetBrains Mono', ui-monospace, monospace;

  /* Motion */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
}

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

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; }
button { font: inherit; cursor: pointer; }

/* Reusable bits */
.r-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 500;
}
.r-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--amber-500);
  box-shadow: 0 0 0 4px rgba(245,165,36,0.18);
}

.r-store-row { display: flex; gap: 12px; flex-wrap: wrap; }

.r-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px 14px 18px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), background .2s;
  white-space: nowrap;
}
@media (max-width: 480px) {
  .r-store-btn {
    white-space: normal;
    flex: 1 1 calc(50% - 6px);
    min-width: 0;
    justify-content: center;
    text-align: center;
    padding: 12px 14px;
    font-size: 14px;
  }
  .r-store-btn .stack { align-items: center; width: 100%; }
}
@media (max-width: 380px) {
  .r-store-btn { flex: 1 1 100%; }
}
.r-store-btn .glyph {
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
}
.r-store-btn .stack { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; line-height: 1; }
.r-store-btn .stack .top { font-size: 10px; font-weight: 500; opacity: .7; letter-spacing: .08em; text-transform: uppercase; }
.r-store-btn .stack .bot { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }

.r-store-btn--solid {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 12px 30px -10px rgba(0,0,0,0.5), inset 0 -1px 0 rgba(0,0,0,0.06);
}
.r-store-btn--solid:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -10px rgba(0,0,0,0.6); }

.r-store-btn--outline {
  background: transparent;
  color: var(--paper);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.7);
}
.r-store-btn--outline:hover { background: rgba(255,255,255,0.08); }

.r-store-btn--amber {
  background: var(--amber-500);
  color: var(--navy-900);
  box-shadow: 0 12px 30px -10px rgba(245,165,36,0.6);
}
.r-store-btn--amber:hover { transform: translateY(-2px); background: var(--amber-300); }

/* Phone frame */
.r-phone {
  position: relative;
  width: 286px;
  max-width: min(286px, calc(100vw - 32px));
  aspect-ratio: 9 / 19.5;
  border-radius: 38px;
  background: #000;
  padding: 9px;
  box-shadow:
    0 50px 100px -30px rgba(0,0,0,0.7),
    0 0 0 1px rgba(255,255,255,0.08),
    inset 0 0 0 1.5px rgba(255,255,255,0.12);
}
.r-phone .r-phone-screen {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 30px;
  overflow: hidden;
  background: #000;
}
.r-phone .r-phone-screen img,
.r-phone .r-phone-screen video {
  width: 100%; height: 100%;
  object-fit: cover;
}
.r-phone .r-phone-notch {
  position: absolute;
  top: 14px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 26px;
  border-radius: 14px;
  background: #000;
  z-index: 2;
}

/* GIF placeholder badge — marks where a screen recording will replace static art */
.r-gif-slot {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(11,12,24,0.7);
  color: var(--cream-50);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.1);
}
.r-gif-slot::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--amber-500);
  animation: gifPulse 1.6s ease-in-out infinite;
}
@keyframes gifPulse { 0%,100% { opacity:1 } 50% { opacity: .35 } }

/* Section helpers */
.r-container { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.r-section { padding: 96px 0; position: relative; }
@media (max-width: 768px) {
  .r-section { padding: 64px 0; }
  .r-container { padding: 0 20px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
