/* ============================================================
   NOOR — Landing Page Styles
   Design language: neo-brutalist, warm paper aesthetic
   Fonts: Reem Kufi (display/Arabic), Amiri (Arabic body),
          Inter (UI), Patrick Hand (handwritten accents)
   ============================================================ */


/* ------------------------------------------------------------
   TOKENS
   ------------------------------------------------------------ */

:root {
  /* Background & text */
  --paper:       #fbf7f1;
  --ink:         #1d1b18;
  --ink-2:       #5b574f;
  --ink-3:       #8b8478;

  /* Brand orange */
  --orange:      #e87241;
  --orange-deep: #c85a2c;
  --orange-soft: #f5c8a8;

  /* Section tints */
  --cream:  #f3ead8;
  --mint:   #cfe5cf;
  --lilac:  #d8cdec;
  --rose:   #f0c8c4;
}


/* ------------------------------------------------------------
   RESET & BASE
   ------------------------------------------------------------ */

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

/* Subtle paper grain overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: radial-gradient(rgba(0, 0, 0, .025) 1px, transparent 1px);
  background-size: 4px 4px;
  mix-blend-mode: multiply;
}

::selection {
  background: var(--orange);
  color: #fff;
}

/* Utility font classes */
.display      { font-family: "Reem Kufi", "Amiri", serif; font-weight: 600; letter-spacing: -0.01em; }
.arabic-flavor { font-family: "Reem Kufi", serif; font-weight: 700; }
.hand         { font-family: "Patrick Hand", cursive; }


/* ------------------------------------------------------------
   NAV
   ------------------------------------------------------------ */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--orange);
  color: #fff;
  border-bottom: 2px solid var(--ink);
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Reem Kufi";
  font-weight: 700;
  font-size: 22px;
  letter-spacing: .5px;
}

/* Small orange dot inside a white rounded square */
.nav .logo .mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: #fff;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
}
.nav .logo .mark::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
}

.nav ul {
  list-style: none;
  display: flex;
  gap: 22px;
  margin: 0;
  padding: 0;
  font-family: "Inter";
  font-size: 14px;
  font-weight: 500;
}

.nav ul a {
  color: #fff;
  text-decoration: none;
  opacity: .92;
}
.nav ul a:hover {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.nav .cta {
  background: #fff;
  color: var(--ink);
  border: 2px solid var(--ink);
  padding: 8px 16px;
  border-radius: 999px;
  font-family: "Inter";
  font-weight: 600;
  font-size: 14px;
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
  transition: transform .12s, box-shadow .12s;
}
.nav .cta:hover  { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.nav .cta:active { transform: translate(2px, 2px);   box-shadow: 1px 1px 0 var(--ink); }


/* ------------------------------------------------------------
   HERO  (2×2 poster grid)
   ------------------------------------------------------------ */

.hero {
  border-bottom: 2px solid var(--ink);
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  grid-template-rows: auto auto;
}

/* Grid cell base — right + bottom borders; last row drops bottom */
.cell {
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  padding: 32px 36px;
  position: relative;
  min-height: 300px;
}
.cell:nth-child(2n)       { border-right: 0; }
.cell:nth-last-child(-n+2) { border-bottom: 0; }

/* — Headline cell (top-left, orange) — */
.cell.headline {
  background: var(--orange);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.eyebrow {
  font-family: "Patrick Hand";
  font-size: 16px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  opacity: .95;
  display: flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: currentColor;
  display: inline-block;
}

.headline h1 {
  font-family: "Reem Kufi";
  font-weight: 700;
  font-size: clamp(40px, 5vw, 68px);
  line-height: .96;
  margin: 0;
  letter-spacing: -0.015em;
}

/* "toy" badge — rotated, outlined, paper-colored */
.headline h1 em {
  font-style: normal;
  background: var(--paper);
  color: var(--orange-deep);
  padding: 0 12px;
  border-radius: 10px;
  display: inline-block;
  box-shadow: 4px 4px 0 var(--ink);
  border: 2px solid var(--ink);
  transform: rotate(-1deg);
}

.headline .lead {
  font-size: 17px;
  max-width: 42ch;
  opacity: .95;
  line-height: 1.5;
}

.headline .meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.pill {
  border: 1.5px solid var(--ink);
  background: rgba(255, 255, 255, .18);
  color: #fff;
  padding: 5px 12px;
  border-radius: 999px;
  font-family: "Inter";
  font-size: 13px;
  font-weight: 500;
  backdrop-filter: blur(2px);
}
.pill.solid {
  background: #fff;
  color: var(--ink);
}

/* — Cube cell (top-right, mint) — */
.cell.cube {
  background: var(--mint);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  gap: 14px;
}

/* Stage wrapper keeps the photo square */
.cube-stage {
  position: relative;
  width: 82%;
  max-width: 360px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cube-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

/* Transparent overlay aligned to the black screen in noor-cube.png */
.photo-screen {
  position: absolute;
  left: 37.6%;
  top: 34%;
  width: 25.4%;
  height: 28.9%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 8%;
}

/* Carousel slides — one visible at a time */
.carousel {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2px;
  padding: 6% 4%;
  text-align: center;
  color: var(--orange);
  transition: opacity .35s ease, transform .35s ease;
  opacity: 0;
  pointer-events: none;
  transform: scale(.92);
}
.carousel.shown { opacity: 1; transform: scale(1); }

.carousel .ico    { width: 38%; aspect-ratio: 1; display: grid; place-items: center; }
.carousel .label  { font-family: "Reem Kufi"; font-weight: 600; font-size: clamp(11px, 1.2vw, 15px); letter-spacing: .5px; line-height: 1; }
.carousel .arabic { font-family: "Amiri", serif; font-size: clamp(14px, 1.6vw, 20px); font-weight: 700; line-height: 1; }

/* Speech bubble above the cube when listening */
.bubble {
  position: absolute;
  left: 50%;
  top: -12%;
  transform: translateX(-50%);
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 14px;
  padding: 8px 14px;
  font-family: "Patrick Hand";
  font-size: 16px;
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  white-space: nowrap;
  opacity: 0;
  transition: opacity .25s, transform .25s;
  pointer-events: none;
}
.bubble.shown { opacity: 1; transform: translate(-50%, -6px); }
.bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 14px;
  height: 14px;
  background: #fff;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: translateX(-50%) rotate(45deg);
}

/* Waveform bars — listening state */
.listen-wave {
  position: absolute;
  inset: 0;
  background: #1a1714;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5%;
  opacity: 0;
  transition: opacity .25s;
  pointer-events: none;
}
.listen-wave.on { opacity: 1; }
.listen-wave .bar {
  width: 5%;
  background: var(--orange);
  border-radius: 999px;
  animation: wave 1.1s ease-in-out infinite;
}
.listen-wave .bar:nth-child(1) { animation-delay: 0s;   height: 30%; }
.listen-wave .bar:nth-child(2) { animation-delay: .1s;  height: 55%; }
.listen-wave .bar:nth-child(3) { animation-delay: .2s;  height: 75%; }
.listen-wave .bar:nth-child(4) { animation-delay: .3s;  height: 55%; }
.listen-wave .bar:nth-child(5) { animation-delay: .4s;  height: 30%; }

@keyframes wave {
  0%, 100% { transform: scaleY(.5); }
  50%       { transform: scaleY(1.3); }
}

/* Thinking dots — processing state */
.thinking {
  position: absolute;
  inset: 0;
  background: #1a1714;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8%;
  opacity: 0;
  transition: opacity .25s;
  pointer-events: none;
}
.thinking.on { opacity: 1; }
.thinking .dot {
  width: 10%;
  aspect-ratio: 1;
  background: var(--orange);
  border-radius: 50%;
  animation: think 1.2s ease-in-out infinite;
}
.thinking .dot:nth-child(2) { animation-delay: .15s; }
.thinking .dot:nth-child(3) { animation-delay: .3s; }

@keyframes think {
  0%, 80%, 100% { transform: scale(.4); opacity: .4; }
  40%           { transform: scale(1);  opacity: 1; }
}

/* Speaking waveform — reply playback state */
.speaking {
  position: absolute;
  inset: 0;
  background: #1a1714;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8% 7%;
  text-align: center;
  color: var(--orange);
  opacity: 0;
  transition: opacity .25s;
  pointer-events: none;
}
.speaking.on { opacity: 1; }
.speaking .wave-mini {
  display: flex;
  gap: 5%;
  align-items: flex-end;
  height: 18%;
  margin-bottom: 6%;
}
.speaking .wave-mini .b {
  width: 7%;
  background: var(--orange);
  border-radius: 999px;
  animation: wave 1.1s ease-in-out infinite;
}
.speaking .wave-mini .b:nth-child(1) { height: 30%; animation-delay: 0s; }
.speaking .wave-mini .b:nth-child(2) { height: 60%; animation-delay: .1s; }
.speaking .wave-mini .b:nth-child(3) { height: 85%; animation-delay: .2s; }
.speaking .wave-mini .b:nth-child(4) { height: 60%; animation-delay: .3s; }
.speaking .wave-mini .b:nth-child(5) { height: 30%; animation-delay: .4s; }

/* Prev / next carousel controls */
.carousel-ctrl {
  display: flex;
  align-items: center;
  gap: 10px;
}

.carousel-ctrl .arrow {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--ink);
  transition: transform .12s, box-shadow .12s;
}
.carousel-ctrl .arrow:hover  { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ink); }
.carousel-ctrl .arrow:active { transform: translate(1px, 1px);   box-shadow: 1px 1px 0 var(--ink); }

.dots { display: flex; gap: 6px; }
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid var(--ink);
  cursor: pointer;
}
.dot.on { background: var(--ink); }

/* — About cell (bottom-left, lilac) — */
.cell.about { background: var(--lilac); }

.cell.about h2 {
  font-family: "Reem Kufi";
  font-weight: 600;
  font-size: 30px;
  margin: 0 0 12px;
  letter-spacing: -.01em;
}

.cell.about p {
  margin: 0;
  color: var(--ink);
  max-width: 48ch;
}

.cell.about .offerings {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.offering {
  border: 1.5px solid var(--ink);
  background: #fff;
  padding: 6px 12px;
  border-radius: 8px;
  font-family: "Inter";
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 2px 2px 0 var(--ink);
}
.offering .num {
  font-family: "Patrick Hand";
  color: var(--orange-deep);
  font-size: 14px;
}

/* — Form / demo cell (bottom-right, mint) — */
.cell.form {
  background: var(--mint);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.cell.form h3 {
  font-family: "Reem Kufi";
  font-weight: 600;
  font-size: 24px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cell.form h3 .ar {
  font-family: "Amiri";
  font-weight: 700;
  color: var(--orange-deep);
  font-size: 26px;
}

.cell.form .help {
  font-size: 14px;
  color: var(--ink-2);
  margin: -6px 0 4px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.field label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--ink-2);
}

.field input {
  border: 2px solid var(--ink);
  background: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  font-family: "Inter";
  font-size: 14px;
  color: var(--ink);
  outline: none;
  transition: box-shadow .15s;
}
.field input:focus { box-shadow: 0 0 0 3px var(--orange-soft); }

.submit {
  background: var(--ink);
  color: #fff;
  border: 2px solid var(--ink);
  padding: 11px 16px;
  border-radius: 10px;
  font-family: "Inter";
  font-weight: 600;
  font-size: 15px;
  box-shadow: 3px 3px 0 var(--orange-deep);
  cursor: pointer;
  transition: transform .12s, box-shadow .12s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.submit:hover  { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--orange-deep); }
.submit:active { transform: translate(2px, 2px);   box-shadow: 1px 1px 0 var(--orange-deep); }

.privacy-note {
  font-size: 12px;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  gap: 6px;
}
.privacy-note svg { flex-shrink: 0; }


/* ------------------------------------------------------------
   TALK TO NOOR  (unlocked conversation panel)
   ------------------------------------------------------------ */

.convo {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 14px;
  box-shadow: 3px 3px 0 var(--ink);
}

.convo .greet {
  font-family: "Reem Kufi";
  font-weight: 600;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.convo .greet .ar {
  font-family: "Amiri";
  color: var(--orange-deep);
  font-weight: 700;
  font-size: 20px;
}

.convo .help {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.45;
}

.convo .chips {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 2px;
}

/* Question chip buttons */
.chip {
  text-align: left;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  padding: 8px 12px;
  border-radius: 999px;
  font-family: "Inter";
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 2px 2px 0 var(--ink);
  transition: transform .12s, box-shadow .12s, background .12s;
}
.chip:hover    { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ink); background: #fff; }
.chip:active   { transform: translate(1px, 1px);   box-shadow: 1px 1px 0 var(--ink); }
.chip:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.chip .q-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  font-family: "Inter";
}

.chip .q-ar {
  font-family: "Amiri";
  color: var(--orange-deep);
  font-weight: 700;
  font-size: 14px;
  margin-left: auto;
  opacity: .8;
}

/* Noor's typewriter reply */
.reply {
  background: var(--cream);
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  padding: 10px 12px;
  font-family: "Inter";
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
  min-height: 54px;
  position: relative;
}

.reply .who {
  font-family: "Patrick Hand";
  font-size: 13px;
  letter-spacing: .5px;
  color: var(--orange-deep);
  margin-bottom: 2px;
}

.reply .typing-cursor {
  display: inline-block;
  width: 7px;
  height: 14px;
  background: var(--ink);
  margin-left: 2px;
  vertical-align: -2px;
  animation: cursor 1s steps(2) infinite;
}

@keyframes cursor {
  0%, 50%    { opacity: 1; }
  51%, 100%  { opacity: 0; }
}

.reply .reset {
  position: absolute;
  top: 8px;
  right: 10px;
  border: 1.5px solid var(--ink);
  background: #fff;
  border-radius: 8px;
  padding: 3px 8px;
  font-family: "Inter";
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 1.5px 1.5px 0 var(--ink);
}
.reply .reset:hover { transform: translate(-1px, -1px); box-shadow: 2.5px 2.5px 0 var(--ink); }

/* Hold-to-speak mic button */
.btn-action {
  border: 2px solid var(--ink);
  background: #fff;
  border-radius: 10px;
  padding: 10px 8px;
  font-family: "Inter";
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  box-shadow: 2px 2px 0 var(--ink);
  transition: transform .1s, box-shadow .1s, background .15s;
  user-select: none;
}
.btn-action:hover              { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ink); }
.btn-action.hold.active        { background: var(--orange-deep); color: #fff; transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn-action small              { font-weight: 400; font-size: 11px; opacity: .8; }


/* ------------------------------------------------------------
   COMPANION CUBE  (fixed bottom-right during features scroll)
   ------------------------------------------------------------ */

.companion {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 120px;
  height: 120px;
  z-index: 30;
  pointer-events: none;
  opacity: 0;
  transform: translateY(20px) scale(.92);
  transition: opacity .35s ease, transform .35s ease;
}
.companion.shown { opacity: 1; transform: translateY(0) scale(1); }

.companion .cube-stage { width: 100%; height: 100%; max-width: none; }
.companion .cube-photo { filter: drop-shadow(4px 4px 0 var(--ink)); }

.companion-label {
  position: absolute;
  left: -8px;
  top: -14px;
  background: #fff;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 3px 10px;
  font-family: "Patrick Hand";
  font-size: 13px;
  color: var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  transform: rotate(-4deg);
  white-space: nowrap;
}

/* Hide companion on small screens to avoid crowding */
@media (max-width: 900px) {
  .companion { display: none; }
}


/* ------------------------------------------------------------
   FEATURES  (4-column strip)
   ------------------------------------------------------------ */

.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 2px solid var(--ink);
}

.feat {
  border-right: 2px solid var(--ink);
  padding: 28px 26px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}
.feat:last-child { border-right: 0; }

/* Alternating background tints per column */
.feat:nth-child(1) { background: var(--paper); }
.feat:nth-child(2) { background: var(--rose); }
.feat:nth-child(3) { background: var(--cream); }
.feat:nth-child(4) { background: var(--mint); }

.feat .num {
  font-family: "Patrick Hand";
  color: var(--orange-deep);
  font-size: 14px;
  letter-spacing: 1.4px;
  font-weight: 700;
}

.feat .icon-box {
  width: 64px;
  height: 64px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: #fff;
  display: grid;
  place-items: center;
  box-shadow: 3px 3px 0 var(--ink);
}

.feat h3 {
  font-family: "Reem Kufi";
  font-weight: 600;
  font-size: 22px;
  margin: 0;
  letter-spacing: -.005em;
}

.feat p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 32ch;
}

.feat .ar {
  font-family: "Amiri";
  font-weight: 700;
  color: var(--orange-deep);
  font-size: 20px;
  margin-top: auto;
}


/* ------------------------------------------------------------
   PRIVACY  (dark section)
   ------------------------------------------------------------ */

.privacy {
  background: var(--ink);
  color: var(--paper);
  padding: 56px 36px;
  border-bottom: 2px solid var(--ink);
}

.privacy .head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.privacy .eyebrow { color: var(--orange-soft); opacity: 1; }

.privacy h2 {
  font-family: "Reem Kufi";
  font-weight: 600;
  font-size: clamp(28px, 3vw, 42px);
  margin: 6px 0 0;
  letter-spacing: -.01em;
  max-width: 18ch;
  line-height: 1.05;
}
.privacy h2 em { font-style: normal; color: var(--orange-soft); }

.privacy .grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 2px solid var(--paper);
  border-radius: 14px;
  overflow: hidden;
}

.privacy .card {
  padding: 24px;
  border-right: 2px solid var(--paper);
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.privacy .card:last-child { border-right: 0; }

.privacy .card .num {
  font-family: "Patrick Hand";
  color: var(--orange-soft);
  letter-spacing: 1.5px;
  font-weight: 700;
  font-size: 13px;
}

.privacy .card h4 {
  font-family: "Reem Kufi";
  font-weight: 600;
  font-size: 19px;
  margin: 0;
}

.privacy .card p {
  margin: 0;
  font-size: 14px;
  color: #dad3c2;
  line-height: 1.55;
}


/* ------------------------------------------------------------
   FOOTER
   ------------------------------------------------------------ */

footer {
  background: var(--paper);
  padding: 32px 36px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

footer .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Reem Kufi";
  font-weight: 700;
  font-size: 20px;
}

footer .brand .mark {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--orange);
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  display: grid;
  place-items: center;
}
footer .brand .mark::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
}

footer .links { display: flex; gap: 10px; align-items: center; }

footer .social {
  border: 2px solid var(--ink);
  background: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  font-family: "Inter";
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  color: var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: transform .12s, box-shadow .12s;
}
footer .social:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ink); }

footer .copyright { font-size: 13px; color: var(--ink-2); }


/* ------------------------------------------------------------
   RESPONSIVE  (≤ 880px)
   ------------------------------------------------------------ */

@media (max-width: 880px) {
  .nav {
    padding: 12px 18px;
    flex-wrap: wrap;
  }

  .nav ul { display: none; }

  /* Stack hero cells vertically */
  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
  }

  .cell {
    border-right: 0 !important;
    padding: 24px 22px;
    min-height: auto;
  }

  /* Swap about and form so cube → form are adjacent on mobile */
  .cell.form  { order: 3; }
  .cell.about { order: 4; }

  /* Remove divider between cube and Talk to Noor */
  .cell.cube { border-bottom: 0; }

  /* Features: 2-up on mobile */
  .features { grid-template-columns: 1fr 1fr; }

  .feat {
    border-right: 2px solid var(--ink);
    min-height: 200px;
    padding: 20px;
  }
  .feat:nth-child(2n)           { border-right: 0; }
  .feat:nth-child(1),
  .feat:nth-child(2)            { border-bottom: 2px solid var(--ink); }

  /* Privacy: single column */
  .privacy { padding: 36px 22px; }

  .privacy .grid { grid-template-columns: 1fr; }

  .privacy .card {
    border-right: 0;
    border-bottom: 2px solid var(--paper);
  }
  .privacy .card:last-child { border-bottom: 0; }

  footer { padding: 24px 22px; }
}


/* ------------------------------------------------------------
   UTILITIES
   ------------------------------------------------------------ */

/* Hint to browser that this element will animate via JS */
.cube-floats { will-change: transform; }
