/* HalalScope — warm, elegant marketing for halalscope.app */
:root {
  --ink: #1a1814;
  --ink-muted: #5c5348;
  --parchment: #f9f4eb;
  --parchment-deep: #efe6d8;
  --parchment-card: #fffcf6;
  --sand: #e8dcc8;
  --sand-light: rgba(232, 220, 200, 0.55);
  --leaf: #1b5e20;
  --leaf-soft: #2e6b3a;
  --leaf-deep: #123218;
  --pine: #1e4d2f;
  --mint-wash: rgba(200, 220, 200, 0.22);
  --brass: #9a7b2c;
  --gold: #b8860b;
  --gold-bright: #d4af37;
  --gold-mist: rgba(184, 134, 11, 0.14);
  --radius: 20px;
  --radius-sm: 14px;
  --shadow-soft: 0 6px 32px rgba(26, 24, 20, 0.06);
  --shadow-lift: 0 24px 56px rgba(26, 24, 20, 0.1);
  --shadow-glow: 0 0 0 1px rgba(30, 77, 47, 0.08), 0 28px 64px rgba(18, 50, 28, 0.14);
  --font-display: "El Messiri", Georgia, serif;
  --font-body: "Literata", Georgia, "Times New Roman", serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
  scrollbar-gutter: stable;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .bloom-a,
  .bloom-b,
  .scan-ring,
  .hero-logo {
    animation: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.06rem;
  line-height: 1.72;
  color: var(--ink);
  background: var(--parchment);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

#main {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* Warm layered light */
.body-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 85% 65% at 5% 0%, var(--mint-wash) 0%, transparent 50%),
    radial-gradient(ellipse 55% 45% at 95% 10%, var(--gold-mist) 0%, transparent 48%),
    radial-gradient(ellipse 50% 40% at 80% 95%, rgba(30, 77, 47, 0.06) 0%, transparent 45%),
    linear-gradient(175deg, var(--parchment) 0%, var(--parchment-deep) 55%, #e5dcc8 100%);
}

.bloom-a,
.bloom-b {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.38;
  animation: drift 26s ease-in-out infinite;
}

.bloom-a {
  width: min(58vw, 440px);
  height: min(58vw, 440px);
  background: rgba(46, 107, 58, 0.22);
  top: 5%;
  right: -12%;
}

.bloom-b {
  width: min(48vw, 380px);
  height: min(48vw, 380px);
  background: rgba(212, 175, 55, 0.16);
  bottom: 12%;
  left: -12%;
  animation-delay: -13s;
}

@keyframes drift {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-14px, 20px) scale(1.06);
  }
}

/* Interlaced geometry — visible but gentle */
.geometry-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='%231e4d2f' stroke-width='0.55'%3E%3Cpath d='M50 5 L58 35 L88 35 L64 52 L72 82 L50 65 L28 82 L36 52 L12 35 L42 35 Z'/%3E%3Ccircle cx='50' cy='50' r='18'/%3E%3Cpath d='M50 32 L50 68 M32 50 L68 50'/%3E%3Cpath d='M5 50h18M77 50h18M50 5v18M50 77v18' opacity='0.6'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 100px 100px;
}

.wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  box-sizing: border-box;
  padding-left: max(1.5rem, env(safe-area-inset-left, 0px));
  padding-right: max(1.5rem, env(safe-area-inset-right, 0px));
}

a {
  color: var(--pine);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--leaf);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 0.75rem 1rem;
  background: var(--leaf-deep);
  color: #fff;
  z-index: 100;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Header — full-width bar, content aligned with .wrap (same as main) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  border-bottom: 1px solid rgba(201, 162, 39, 0.32);
  background: linear-gradient(
    to bottom,
    rgba(255, 252, 246, 0.97) 0%,
    rgba(249, 244, 235, 0.94) 100%
  );
  backdrop-filter: blur(16px) saturate(1.05);
  -webkit-backdrop-filter: blur(16px) saturate(1.05);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.65) inset,
    0 4px 24px rgba(26, 24, 20, 0.04);
}

.header-bar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding-top: max(0.95rem, env(safe-area-inset-top, 0px));
  padding-bottom: 0.95rem;
  min-height: 3.5rem;
  box-sizing: border-box;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  min-width: 0;
}

.logo:hover {
  opacity: 0.92;
}

.logo:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 4px;
  border-radius: 6px;
}

.logo-mark-img {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
  border-radius: 11px;
  box-shadow: 0 2px 10px rgba(30, 77, 47, 0.15);
}

@media (min-width: 480px) {
  .logo-mark-img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
  }
}

.site-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.2rem, 4.2vw, 1.5rem);
  color: var(--pine);
  letter-spacing: 0.02em;
  line-height: 1.15;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-aux {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.2rem;
  padding: 0.2rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: rgba(30, 77, 47, 0.06);
  border: 1px solid rgba(30, 77, 47, 0.1);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.nav-aux a {
  color: var(--ink-muted);
  text-decoration: none;
  padding: 0.5rem 1.05rem;
  border-radius: 999px;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.nav-aux a:hover {
  color: var(--pine);
  background: rgba(255, 252, 246, 0.95);
  box-shadow: 0 1px 3px rgba(26, 24, 20, 0.06);
}

.nav-aux a[aria-current="page"] {
  color: var(--leaf-deep);
  background: rgba(255, 252, 246, 0.98);
  box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.35);
}

.nav-aux a:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 2px;
}

/* Hero */
.hero {
  padding: 2.75rem 0 3.25rem;
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
  position: relative;
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    padding: 3rem 0 4.25rem;
    gap: 1.75rem;
  }
}

.hero-panel {
  position: relative;
  padding: 1.75rem 1.5rem 2rem;
  background: linear-gradient(145deg, var(--parchment-card) 0%, rgba(255, 250, 242, 0.96) 100%);
  border-radius: var(--radius);
  border: 1px solid rgba(201, 162, 39, 0.22);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  overflow-x: hidden;
}

@media (min-width: 640px) {
  .hero-panel {
    padding: 2rem 2rem 2.25rem;
  }
}

/* Gold corner hints */
.hero-panel::before,
.hero-panel::after {
  content: "";
  position: absolute;
  width: 36px;
  height: 36px;
  border-color: rgba(201, 162, 39, 0.45);
  border-style: solid;
  pointer-events: none;
}

.hero-panel::before {
  top: 12px;
  left: 12px;
  border-width: 2px 0 0 2px;
  border-radius: 4px 0 0 0;
}

.hero-panel::after {
  bottom: 12px;
  right: 12px;
  border-width: 0 2px 2px 0;
  border-radius: 0 0 4px 0;
}

.hero-glow {
  position: absolute;
  width: 110%;
  max-width: 480px;
  height: 180px;
  top: -30px;
  left: -6%;
  background: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.1) 0%, transparent 68%);
  pointer-events: none;
  z-index: 0;
}

.hero-brand {
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.hero-brand-name {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.85rem, 6vw, 2.45rem);
  color: var(--pine);
  letter-spacing: 0.03em;
  line-height: 1.15;
}

.hero-logo {
  width: min(100%, 320px);
  height: auto;
  display: block;
  filter: drop-shadow(0 14px 32px rgba(30, 77, 47, 0.1));
  animation: heroLogoIn 1.1s ease-out both;
}

@keyframes heroLogoIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.divider-ornament {
  display: block;
  width: min(100%, 240px);
  height: 14px;
  margin: 0.25rem 0 1rem;
  position: relative;
  z-index: 1;
}

.hero-salam {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 4.2vw, 2.35rem);
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 0.35rem;
  color: var(--pine);
  letter-spacing: 0.02em;
  position: relative;
  z-index: 1;
}

.hero-salam-sub {
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-style: italic;
  color: var(--brass);
  margin: 0 0 1.35rem;
  max-width: 38ch;
  line-height: 1.55;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--leaf-deep);
  background: linear-gradient(135deg, rgba(255, 252, 246, 0.95) 0%, var(--sand-light) 100%);
  border: 1px solid rgba(30, 77, 47, 0.12);
  padding: 0.45rem 1rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 12px rgba(26, 24, 20, 0.04);
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.75rem, 3.8vw, 2.65rem);
  line-height: 1.2;
  letter-spacing: 0.01em;
  margin: 0 0 1rem;
  color: var(--ink);
  position: relative;
  z-index: 1;
}

.hero-lead {
  font-size: 1.08rem;
  color: var(--ink-muted);
  max-width: 38ch;
  margin: 0 0 1.75rem;
  position: relative;
  z-index: 1;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: stretch;
  position: relative;
  z-index: 1;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 1.35rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(26, 24, 20, 0.08);
  background: linear-gradient(180deg, #fffefb 0%, var(--parchment-card) 100%);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  color: var(--ink);
  min-width: 220px;
  position: relative;
  cursor: not-allowed;
}

.store-btn[aria-disabled="true"] {
  pointer-events: none;
}

.store-btn .store-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
}

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

.store-btn .store-kicker {
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
  font-family: var(--font-body);
}

.store-btn .store-title {
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-body);
}

.store-btn .soon {
  position: absolute;
  top: -10px;
  right: 12px;
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 100%);
  color: #fff;
  padding: 0.25rem 0.55rem;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(154, 123, 44, 0.35);
}

.hero-visual {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 900px) {
  .hero-visual {
    min-height: 400px;
    justify-content: flex-end;
    padding-right: 0.5rem;
  }
}

.arch-backdrop {
  position: absolute;
  width: min(92%, 340px);
  height: 300px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -54%);
  border: 2px solid rgba(201, 162, 39, 0.28);
  border-bottom: none;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.06) 0%, transparent 55%);
}

@media (min-width: 900px) {
  .arch-backdrop {
    left: auto;
    right: 0;
    transform: translate(8%, -52%);
  }
}

.phone-frame {
  position: relative;
  z-index: 2;
  width: min(100%, 300px);
  aspect-ratio: 9 / 18.5;
  border-radius: 42px;
  background: linear-gradient(160deg, #243d28 0%, var(--leaf) 40%, var(--leaf-deep) 100%);
  box-shadow:
    var(--shadow-glow),
    0 52px 100px rgba(18, 40, 24, 0.28),
    inset 0 0 0 1px rgba(212, 175, 55, 0.25),
    inset 0 0 0 3px rgba(255, 255, 255, 0.1);
  padding: 14px;
  transform: rotate(-2.5deg);
  transition: transform 0.4s ease;
}

@media (prefers-reduced-motion: reduce) {
  .phone-frame,
  .phone-frame:hover {
    transform: none !important;
  }
}

@media (hover: hover) and (pointer: fine) {
  .phone-frame:hover {
    transform: rotate(0deg) translateY(-5px);
  }
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 32px;
  background: linear-gradient(180deg, #fffefb 0%, var(--parchment-card) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  padding: 1.5rem;
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(201, 162, 39, 0.12);
}

.phone-screen .phone-mark {
  width: 76px;
  height: auto;
  opacity: 0.94;
}

.scan-ring {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 3px dashed var(--leaf-soft);
  display: grid;
  place-items: center;
  animation: pulse 3.4s ease-in-out infinite;
  background: radial-gradient(circle, rgba(232, 242, 233, 0.65) 0%, rgba(255, 254, 250, 0.9) 100%);
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.92;
  }
}

.scan-icon {
  width: 34px;
  height: 34px;
  color: var(--pine);
}

.phone-caption {
  font-size: 0.78rem;
  color: var(--ink-muted);
  font-weight: 600;
  font-family: var(--font-display);
  letter-spacing: 0.04em;
}

/* Wave */
.section-wave {
  display: block;
  width: 100%;
  height: 56px;
  margin: 0;
}

.section-wave svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Features */
.features {
  padding: 1rem 0 4rem;
  position: relative;
  background: linear-gradient(180deg, rgba(232, 220, 200, 0.2) 0%, transparent 28%);
}

.section-ornament {
  text-align: center;
  font-size: 0.85rem;
  color: var(--brass);
  letter-spacing: 0.35em;
  margin-bottom: 0.5rem;
  font-family: var(--font-display);
}

.features h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0 0 0.5rem;
  text-align: center;
  color: var(--ink);
}

.features-sub {
  text-align: center;
  color: var(--ink-muted);
  font-size: 1.04rem;
  max-width: 38ch;
  margin: 0 auto 2.35rem;
  font-style: italic;
  line-height: 1.65;
}

.feature-grid {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background: linear-gradient(165deg, rgba(255, 252, 246, 0.95) 0%, rgba(249, 244, 235, 0.88) 100%);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  border: 1px solid rgba(201, 162, 39, 0.18);
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.25rem;
  right: 1.25rem;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, transparent, var(--gold-bright), var(--gold), transparent);
  opacity: 0.65;
}

@media (hover: hover) and (pointer: fine) {
  .feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lift);
    border-color: rgba(30, 77, 47, 0.15);
  }
}

.feature-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255, 252, 246, 0.9) 0%, var(--gold-mist) 100%);
  display: grid;
  place-items: center;
  margin-bottom: 1.05rem;
  color: var(--pine);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(201, 162, 39, 0.15);
}

.feature-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.14rem;
  margin: 0 0 0.55rem;
  color: var(--ink);
}

.feature-card p {
  margin: 0;
  font-size: 0.97rem;
  color: var(--ink-muted);
  line-height: 1.65;
}

/* CTA — centered card inside .wrap */
.cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 0.25rem;
}

.cta-strip {
  width: 100%;
  max-width: 100%;
  margin: 0.5rem auto 4rem;
  padding: 2.85rem 1.75rem 3.1rem;
  border-radius: calc(var(--radius) + 6px);
  background:
    linear-gradient(180deg, rgba(212, 175, 55, 0.12) 0%, transparent 35%),
    linear-gradient(145deg, #1a4a25 0%, var(--pine) 38%, var(--leaf-deep) 100%);
  color: #fffef9;
  text-align: center;
  box-shadow: var(--shadow-glow), 0 32px 70px rgba(12, 38, 22, 0.38);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.22);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-gold-rule {
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 4px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(212, 175, 55, 0.5),
    var(--gold-bright),
    rgba(212, 175, 55, 0.5),
    transparent
  );
  opacity: 0.85;
}

.cta-strip::before {
  content: "";
  position: absolute;
  inset: -45% -25% auto;
  height: 85%;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.1) 0%, transparent 58%);
  pointer-events: none;
}

.cta-brand-wrap {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.35rem;
  margin-bottom: 1.05rem;
  background: rgba(255, 254, 250, 0.98);
  border-radius: 16px;
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(201, 162, 39, 0.25);
}

.cta-brand-img {
  height: 40px;
  width: auto;
  display: block;
}

.cta-strip h2 {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(1.42rem, 3vw, 1.88rem);
  margin: 0 0 0.7rem;
  font-weight: 600;
  width: 100%;
  text-align: center;
  padding: 0 0.5rem;
  box-sizing: border-box;
}

.cta-strip p {
  position: relative;
  z-index: 1;
  margin: 0 auto 1.65rem;
  max-width: 42ch;
  width: 100%;
  opacity: 0.95;
  font-size: 1.03rem;
  line-height: 1.62;
  text-align: center;
  padding: 0 0.5rem;
  box-sizing: border-box;
}

.cta-strip .store-row {
  position: relative;
  z-index: 1;
  justify-content: center;
  width: 100%;
  padding: 0 0.5rem;
  box-sizing: border-box;
}

.cta-strip .store-btn {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fffef9;
  backdrop-filter: blur(10px);
}

.cta-strip .store-btn .store-kicker {
  color: rgba(255, 255, 255, 0.78);
}

.cta-strip .store-btn .soon {
  background: linear-gradient(135deg, #fffef9 0%, #f0e6d4 100%);
  color: var(--leaf-deep);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* Footer */
.site-footer {
  padding: 2.6rem 0 2.5rem;
  border-top: 1px solid rgba(201, 162, 39, 0.2);
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.93rem;
  color: var(--ink-muted);
  background: linear-gradient(0deg, rgba(232, 220, 200, 0.15) 0%, transparent 100%);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-brand img {
  height: 38px;
  width: auto;
  opacity: 0.92;
}

.footer-copy p {
  margin: 0;
}

.footer-tagline {
  font-family: var(--font-display);
  font-size: 0.88rem;
  color: var(--brass);
  margin-top: 0.35rem !important;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-links a {
  color: var(--ink-muted);
  text-decoration: none;
  font-weight: 500;
  font-family: var(--font-body);
}

.footer-links a:hover {
  color: var(--pine);
}

/* Legal */
.legal-page {
  padding: 3rem 0 4rem;
  max-width: 720px;
}

.legal-page h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  margin: 0 0 1rem;
  color: var(--ink);
}

.legal-page .meta {
  color: var(--ink-muted);
  font-size: 0.93rem;
  margin-bottom: 2rem;
  font-style: italic;
}

.legal-page h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
  color: var(--ink);
}

.legal-page p,
.legal-page li {
  color: var(--ink-muted);
}

.legal-page ul {
  padding-left: 1.25rem;
}

.back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-weight: 600;
  text-decoration: none;
  font-family: var(--font-display);
}

.back-link:hover {
  text-decoration: underline;
}

/* -----------------------------------------------------------------
   Small screens — phones (portrait-first)
   ----------------------------------------------------------------- */
@media (max-width: 639px) {
  body {
    font-size: 1rem;
    line-height: 1.68;
  }

  .wrap {
    padding-left: max(1rem, env(safe-area-inset-left, 0px));
    padding-right: max(1rem, env(safe-area-inset-right, 0px));
  }

  .header-bar {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.85rem;
    padding-top: max(0.75rem, env(safe-area-inset-top, 0px));
    padding-bottom: 0.85rem;
    min-height: 0;
  }

  .header-bar .logo {
    justify-content: center;
  }

  .header-bar .nav-aux {
    width: 100%;
    max-width: 20rem;
    justify-content: center;
    flex-wrap: wrap;
    row-gap: 0.25rem;
  }

  .hero-glow {
    left: 0;
    width: 100%;
    max-width: none;
    top: -20px;
  }

  .hero-copy.hero-panel {
    text-align: center;
  }

  .hero-panel .divider-ornament {
    margin-left: auto;
    margin-right: auto;
  }

  .hero h1,
  .hero-lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-badge {
    margin-left: auto;
    margin-right: auto;
  }

  .hero .store-row .store-btn,
  .cta-strip .store-btn {
    justify-content: center;
  }

  .logo-mark-img {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

  .site-title {
    font-size: clamp(1.05rem, 5vw, 1.28rem);
  }

  .nav-aux {
    gap: 0.15rem;
    padding: 0.25rem;
    font-size: 0.82rem;
  }

  .nav-aux a {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 1rem;
  }

  .hero {
    padding: 1.75rem 0 2rem;
    gap: 1.75rem;
  }

  .hero-panel {
    padding: 1.35rem 1.1rem 1.5rem;
    border-radius: 16px;
  }

  .hero-panel::before,
  .hero-panel::after {
    width: 28px;
    height: 28px;
  }

  .hero-panel::before {
    top: 10px;
    left: 10px;
  }

  .hero-panel::after {
    bottom: 10px;
    right: 10px;
  }

  .hero-brand-name {
    font-size: clamp(1.65rem, 7vw, 2rem);
    text-align: center;
  }

  .hero-logo {
    width: min(100%, 280px);
    margin: 0 auto;
  }

  .hero-salam {
    font-size: clamp(1.45rem, 7vw, 1.95rem);
    line-height: 1.4;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .hero-salam-sub {
    font-size: 0.92rem;
    max-width: none;
  }

  .hero-badge {
    font-size: 0.65rem;
    letter-spacing: 0.06em;
    padding: 0.4rem 0.85rem;
    line-height: 1.35;
    text-align: center;
  }

  .hero h1 {
    font-size: clamp(1.55rem, 6.5vw, 2rem);
    line-height: 1.22;
  }

  .hero-lead {
    font-size: 1rem;
    max-width: none;
    margin-bottom: 1.5rem;
  }

  .hero .store-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .store-btn {
    width: 100%;
    min-width: 0;
    min-height: 52px;
    justify-content: flex-start;
    padding: 0.85rem 1rem;
    border-radius: 12px;
  }

  .hero-visual {
    min-height: 260px;
    padding-bottom: 0.5rem;
  }

  .arch-backdrop {
    width: min(96%, 300px);
    height: 240px;
  }

  .phone-frame {
    width: min(100%, 260px);
    border-radius: 36px;
    padding: 11px;
    transform: rotate(-1.5deg);
  }

  .phone-screen {
    border-radius: 28px;
    padding: 1.25rem;
    gap: 0.9rem;
  }

  .section-wave {
    height: 36px;
  }

  .features {
    padding: 0.5rem 0 2.75rem;
  }

  .features h2 {
    font-size: clamp(1.45rem, 5.5vw, 1.85rem);
    padding: 0 0.25rem;
  }

  .features-sub {
    font-size: 0.98rem;
    margin-bottom: 1.75rem;
    max-width: none;
    padding: 0 0.25rem;
  }

  .feature-grid {
    gap: 1rem;
    width: 100%;
    justify-items: stretch;
  }

  .feature-card {
    padding: 1.35rem 1.25rem;
    border-radius: 16px;
    text-align: center;
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
    box-sizing: border-box;
  }

  .feature-card .feature-icon {
    margin-left: auto;
    margin-right: auto;
  }

  .feature-card::before {
    left: 1rem;
    right: 1rem;
  }

  .cta-wrap {
    width: 100%;
  }

  .cta-strip {
    margin-bottom: 2.75rem;
    padding: 2rem 1.1rem 2.35rem;
    border-radius: 16px;
  }

  .cta-gold-rule {
    left: 5%;
    right: 5%;
  }

  .cta-brand-wrap {
    padding: 0.55rem 1rem;
    margin-bottom: 0.85rem;
  }

  .cta-brand-img {
    height: 36px;
  }

  .cta-strip h2 {
    font-size: clamp(1.28rem, 5vw, 1.55rem);
  }

  .cta-strip p {
    font-size: 0.98rem;
    max-width: none;
  }

  .cta-strip .store-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 0;
  }

  .cta-strip .store-btn {
    width: 100%;
    min-width: 0;
    min-height: 52px;
  }

  .site-footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.25rem;
    padding: 2rem 0 calc(2rem + env(safe-area-inset-bottom, 0px));
  }

  .footer-brand {
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
  }

  .footer-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
  }

  .footer-links {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem 1.25rem;
  }

  .footer-links a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .legal-page {
    padding: 2rem 0 3rem;
  }

  .legal-page h1 {
    font-size: 1.65rem;
  }
}

/* Very narrow — reduce geometry noise */
@media (max-width: 380px) {
  .geometry-layer {
    opacity: 0.03;
  }

  .hero-badge {
    font-size: 0.6rem;
    letter-spacing: 0.05em;
  }
}
