/* Dagasta public site — same palette & fonts as the app (lib/core/theme/app_colors.dart). */
:root {
  --nile: #0e5e8a;
  --sand: #f6ebd9;
  --sand-card: #fff8ee;
  --clay: #d9642b;
  --acacia: #3e8e5a;
  --karkadeh: #b3263e;
  --gold: #f2b33d;
  --night: #14213d;
  --indigo: #3d3a8c;
  --ink: #14213d;
  --muted: #5b6477;
  --radius: 22px;
  --shadow: 0 14px 40px rgba(20, 33, 61, 0.14);
  --display: 'Reem Kufi', 'Cairo', system-ui, sans-serif;
  --body: 'Cairo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  /* Nubian zigzag band (the app's NubianBand): gold / clay / acacia / nile triangles. */
  --band: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='12' viewBox='0 0 48 12'%3E%3Cpath d='M0 12 6 0l6 12z' fill='%23f2b33d'/%3E%3Cpath d='M12 12 18 0l6 12z' fill='%23d9642b'/%3E%3Cpath d='M24 12 30 0l6 12z' fill='%233e8e5a'/%3E%3Cpath d='M36 12 42 0l6 12z' fill='%230e5e8a'/%3E%3C/svg%3E");
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
}

html[lang='en'] body {
  line-height: 1.6;
}

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

a {
  color: var(--nile);
}

h1,
h2,
h3 {
  font-family: var(--display);
  line-height: 1.25;
  margin: 0 0 0.4em;
}

h2 {
  font-size: clamp(1.8rem, 1.2rem + 2.4vw, 2.7rem);
  text-align: center;
}

h3 {
  font-size: 1.3rem;
}

.wrap {
  width: min(1140px, 100% - 32px);
  margin-inline: auto;
}

.skip {
  position: absolute;
  inset-inline-start: 12px;
  top: -60px;
  background: var(--night);
  color: #fff;
  padding: 8px 14px;
  border-radius: 10px;
  z-index: 50;
}

.skip:focus {
  top: 12px;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.band {
  height: 12px;
  background: var(--band) repeat-x;
  background-size: 48px 12px;
}

/* ─── Top bar ─── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 235, 217, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(20, 33, 61, 0.08);
}

.topbar-in {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 72px;
}

.brand img {
  width: 96px;
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-inline-start: auto;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 999px;
}

.nav a:hover {
  background: rgba(14, 94, 138, 0.08);
}

.nav a.nav-cta {
  background: var(--clay);
  color: #fff;
  box-shadow: 0 4px 0 #a44a1f;
}

.nav a.nav-cta:hover {
  background: #c75722;
}

.lang {
  font: 800 0.95rem var(--body);
  color: var(--nile);
  background: #fff;
  border: 2px solid var(--nile);
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
  min-width: 56px;
}

.lang:hover {
  background: var(--nile);
  color: #fff;
}

/* ─── Hero ─── */
.hero {
  position: relative;
  padding: clamp(28px, 6vw, 80px) 0 clamp(40px, 7vw, 96px);
  background:
    radial-gradient(60% 55% at 85% 20%, rgba(242, 179, 61, 0.35), transparent 70%),
    radial-gradient(50% 50% at 10% 90%, rgba(14, 94, 138, 0.16), transparent 70%);
}

.hero-in {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-weight: 800;
  color: var(--acacia);
  background: rgba(62, 142, 90, 0.12);
  padding: 4px 14px;
  border-radius: 999px;
  margin: 0 0 14px;
}

.hero h1 {
  font-size: clamp(2.6rem, 1.4rem + 5.5vw, 4.8rem);
  color: var(--nile);
}

.hero h1 .hl {
  color: var(--clay);
}

.lead {
  font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.3rem);
  color: #2b3650;
  max-width: 34em;
  margin: 0 0 24px;
}

.note {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 14px 0 0;
}

/* Store buttons */
.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.stores-center {
  justify-content: center;
}

.store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 200px;
  padding: 10px 20px 10px 18px;
  border-radius: 16px;
  background: var(--night);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 6px 0 #0a1224;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.store:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 0 #0a1224;
}

.store:active {
  transform: translateY(3px);
  box-shadow: 0 3px 0 #0a1224;
}

.store svg {
  width: 30px;
  height: 30px;
  flex: none;
}

.store span {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  text-align: start;
}

.store small {
  font-size: 0.75rem;
  opacity: 0.85;
}

.store b {
  font-size: 1.2rem;
  font-weight: 800;
  direction: ltr;
  unicode-bidi: isolate;
}

.store.soon {
  background: #3a4561;
  box-shadow: 0 6px 0 #232c42;
  cursor: default;
}

.store.soon:hover {
  transform: none;
}

.store.soon small {
  color: var(--gold);
  opacity: 1;
  font-weight: 700;
}

.store.preferred {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

/* Phones */
.phone {
  position: relative;
  border-radius: 38px;
  padding: 9px;
  background: #0f1626;
  box-shadow: var(--shadow), inset 0 0 0 2px #2a3550;
}

.phone img {
  border-radius: 30px;
  width: 100%;
  height: auto;
}

.hero-art {
  position: relative;
  min-height: 520px;
}

.hero-art .phone {
  position: absolute;
  width: min(270px, 62%);
}

.phone-back {
  top: 0;
  inset-inline-end: 4%;
  transform: rotate(6deg);
  opacity: 0.96;
}

.phone-front {
  bottom: 0;
  inset-inline-start: 4%;
  transform: rotate(-5deg);
}

[dir='ltr'] .phone-back {
  transform: rotate(-6deg);
}

[dir='ltr'] .phone-front {
  transform: rotate(5deg);
}

.sticker {
  position: absolute;
  font-size: clamp(2rem, 1.2rem + 2vw, 3.2rem);
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.15));
  animation: bob 3.2s ease-in-out infinite;
}

.s1 {
  top: 6%;
  inset-inline-start: 6%;
}

.s2 {
  top: 44%;
  inset-inline-end: -2%;
  animation-delay: -1s;
}

.s3 {
  bottom: 4%;
  inset-inline-end: 30%;
  animation-delay: -2s;
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0) rotate(-4deg);
  }
  50% {
    transform: translateY(-10px) rotate(4deg);
  }
}

/* ─── Sections ─── */
.section,
.download {
  scroll-margin-top: 76px;
}

.section {
  padding: clamp(48px, 8vw, 96px) 0;
}

.section-alt {
  background: var(--sand-card);
  border-block: 1px solid rgba(20, 33, 61, 0.06);
}

.section-lead {
  text-align: center;
  color: var(--muted);
  font-size: 1.1rem;
  margin: 0 auto 36px;
  max-width: 36em;
}

.cards {
  display: grid;
  gap: 20px;
}

.cards-3 {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: 0 6px 24px rgba(20, 33, 61, 0.07);
  border: 1px solid rgba(20, 33, 61, 0.06);
}

.card p {
  margin: 0;
  color: #3a4560;
}

.mode {
  position: relative;
  overflow: hidden;
  border-top: 6px solid var(--c);
}

.mode h3 {
  color: var(--c);
  font-size: 1.6rem;
}

.mode-icon {
  font-size: 2.4rem;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: color-mix(in srgb, var(--c) 14%, #fff);
  margin-bottom: 14px;
}

.mode-nile {
  --c: var(--nile);
}

.mode-clay {
  --c: var(--clay);
}

.mode-acacia {
  --c: var(--acacia);
}

.pill {
  display: inline-block;
  margin-top: 14px;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 12%, #fff);
  padding: 2px 12px;
  border-radius: 999px;
}

/* Steps */
.steps {
  list-style: none;
  padding: 0;
  margin: 36px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: s;
}

.step {
  text-align: center;
  padding: 10px 12px;
}

.step-n {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin: 0 auto 12px;
  border-radius: 50%;
  font: 700 2rem var(--display);
  color: #fff;
  background: var(--nile);
  box-shadow: 0 6px 0 #0a4566;
}

.step:nth-child(2) .step-n {
  background: var(--clay);
  box-shadow: 0 6px 0 #a44a1f;
}

.step:nth-child(3) .step-n {
  background: var(--acacia);
  box-shadow: 0 6px 0 #2c6a42;
}

.step p {
  color: #3a4560;
  margin: 0;
}

/* Gallery (horizontal scroll-snap) */
.gallery {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 12px max(16px, calc((100% - 1140px) / 2)) 28px;
  scrollbar-width: thin;
  scrollbar-color: var(--nile) transparent;
}

.shot {
  flex: none;
  width: clamp(200px, 22vw, 250px);
  margin: 0;
  scroll-snap-align: center;
  text-align: center;
}

.shot figcaption {
  margin-top: 14px;
  font-weight: 700;
}

/* Features */
.feat-icon {
  font-size: 2.2rem;
  display: block;
  margin-bottom: 6px;
}

.feat h3 {
  color: var(--nile);
}

/* Download band */
.download {
  background: var(--nile);
  color: #fff;
  text-align: center;
}

.band-light {
  opacity: 0.95;
}

.download-in {
  padding: clamp(40px, 7vw, 80px) 0;
}

.download-logo {
  width: 200px;
  height: auto;
  margin: 0 auto 10px;
}

.download h2 {
  color: #fff;
}

.download p {
  color: var(--sand);
  font-size: 1.15rem;
  margin: 0 0 24px;
}

.download .store {
  background: #fff;
  color: var(--night);
  box-shadow: 0 6px 0 #0a4566;
}

.download .store.soon {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  box-shadow: none;
  border: 2px solid rgba(255, 255, 255, 0.35);
}

/* Footer */
.footer {
  background: var(--night);
  color: var(--sand);
  padding: 22px 0;
}

.footer-in {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}

.footer p {
  margin: 0;
}

.muted {
  opacity: 0.7;
}

/* ─── Responsive ─── */
@media (max-width: 960px) {
  .hero-in {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .lead {
    margin-inline: auto;
  }

  .hero .stores {
    justify-content: center;
  }

  /* Stacked layout: the art box is sized from its width so the tilted phones always fit inside it. */
  .hero-art {
    min-height: 0;
    aspect-ratio: 4 / 5;
    max-width: 440px;
    width: 100%;
    margin: 20px auto 0;
  }

  .hero-art .phone {
    width: 52%;
  }

  .cards-3 {
    gap: 14px;
  }

  .card {
    padding: 22px 18px;
  }

  .nav a:not(.nav-cta) {
    display: none;
  }
}

@media (max-width: 720px) {
  .cards-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .topbar-in {
    min-height: 62px;
    gap: 10px;
  }

  .brand img {
    width: 78px;
  }

  .nav a.nav-cta {
    padding: 6px 12px;
    font-size: 0.95rem;
  }

  .cards-3,
  .steps {
    grid-template-columns: 1fr;
  }

  .store {
    width: 100%;
    justify-content: center;
    max-width: 320px;
  }

  .stores {
    justify-content: center;
  }

  .shot {
    width: 66vw;
  }

  .footer-in {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 360px) {
  .nav a.nav-cta {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .sticker {
    animation: none;
  }

  .store {
    transition: none;
  }
}
