/* מצפן — landing page. Fresh palette (the app's default theme) with the warm
   "field notebook" grain: paper, orange, leaf green, bottle green, deep ink. */

:root {
  --paper: #fffaf3;
  --paper-2: #fbf0e1;
  --sand: #f0e0c6;
  --sand-2: #e3cba3;
  --orange: #f3823a;
  --orange-deep: #c55310;
  --green: #34a348;
  --green-deep: #166534;
  --ink: #33382c;
  --ink-2: #5c3a1e;
  --muted: #7a6a55;
  --blue: #3b73a8;
  --gold: #e4a12c;
  --night: #1b2a2f;

  --accent: var(--orange);
  --accent-deep: var(--orange-deep);

  --radius: 1.25rem;
  --radius-sm: 0.75rem;
  --shadow-soft: 0 12px 40px -14px rgba(60, 40, 20, 0.28);
  --shadow-card: 0 2px 16px -2px rgba(60, 40, 20, 0.12);
  --hair: 1px solid rgba(92, 58, 30, 0.12);

  --font-display: 'Frank Ruhl Libre', 'Heebo', serif;
  --font-body: 'Heebo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'Consolas', monospace;

  --container: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* paper grain — a tiny tiled SVG noise, multiplied over everything */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.36 0 0 0 0 0.23 0 0 0 0 0.12 0 0 0 0.06 0'/></filter><rect width='220' height='220' filter='url(%23n)'/></svg>");
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
}

.container {
  width: min(var(--container), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
  vertical-align: -0.2em;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.82em;
  letter-spacing: 0.02em;
  direction: ltr;
  unicode-bidi: isolate;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s, background-color 0.2s, color 0.2s;
  touch-action: manipulation;
}
.btn:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}
.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(197, 83, 16, 0.6);
}
.btn-primary:hover {
  background: var(--orange-deep);
  transform: translateY(-2px);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink-2);
  border-color: rgba(92, 58, 30, 0.18);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover {
  background: #fff;
  transform: translateY(-2px);
}
.btn-dark {
  background: var(--green-deep);
  color: #fff;
}
.btn-dark:hover {
  background: #0f4d27;
  transform: translateY(-2px);
}

/* ---------- field-style bits ---------- */
/* the Israeli trail blaze: white · colour · white on a dark stone */
.blaze {
  display: inline-block;
  width: 22px;
  height: 14px;
  border-radius: 2px;
  background: linear-gradient(to bottom, #fff 0 33%, var(--accent) 33% 66%, #fff 66%);
  box-shadow: 0 0 0 1.5px var(--ink);
  vertical-align: middle;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--accent-deep);
  text-transform: uppercase;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.stamp {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border: 2px solid var(--accent-deep);
  border-radius: 6px;
  color: var(--accent-deep);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  transform: rotate(-4deg);
  opacity: 0.85;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: #fff;
  border: var(--hair);
  box-shadow: var(--shadow-card);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background-color 0.3s, box-shadow 0.3s;
}
.nav.scrolled {
  background: rgba(255, 250, 243, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(92, 58, 30, 0.1);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--ink-2);
}
.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: var(--shadow-card);
  background: #fff;
}
.brand small {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.1;
}
.nav-links {
  display: none;
  gap: 0.25rem;
  margin-inline-start: auto;
}
.nav-links a {
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-2);
  transition: background-color 0.2s;
}
.nav-links a:hover {
  background: rgba(255, 255, 255, 0.8);
}
.nav-cta {
  margin-inline-start: auto;
}
.nav-cta .btn {
  min-height: 42px;
  padding: 0.45rem 1.1rem;
  font-size: 0.95rem;
}
@media (min-width: 900px) {
  .nav-links {
    display: flex;
  }
  .nav-cta {
    margin-inline-start: 0;
  }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  margin-top: -68px; /* ride under the sticky nav */
  padding-top: 68px;
  min-height: 100svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 28% 60%;
  transform: scale(1.04);
  will-change: transform;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, var(--paper) 0%, rgba(255, 250, 243, 0.6) 22%, rgba(255, 250, 243, 0) 55%),
    linear-gradient(to left, rgba(255, 250, 243, 0.92) 0%, rgba(255, 250, 243, 0.72) 26%, rgba(255, 250, 243, 0.15) 58%, rgba(255, 250, 243, 0) 100%);
}
.hero-contours {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  opacity: 0.32;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.hero-contours path {
  fill: none;
  stroke: var(--ink-2);
  stroke-width: 1.1;
}
.hero-grid {
  display: grid;
  gap: 2.5rem;
  padding-block: clamp(2rem, 6vw, 5rem) clamp(3rem, 6vw, 5rem);
}
@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 3rem;
  }
}
.hero-copy {
  max-width: 640px;
}
.hero-copy > * {
  animation: fade-up 0.9s var(--ease-out) both;
}
.hero-copy > :nth-child(2) { animation-delay: 0.1s; }
.hero-copy > :nth-child(3) { animation-delay: 0.22s; }
.hero-copy > :nth-child(4) { animation-delay: 0.34s; }
.hero-copy > :nth-child(5) { animation-delay: 0.46s; }
@keyframes fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.9rem 0.4rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  border: var(--hair);
  backdrop-filter: blur(6px);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-2);
}
.hero h1 {
  margin-top: 1.2rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.5rem, 6.2vw, 4.7rem);
  line-height: 1.08;
  color: var(--ink-2);
}
.hero h1 em {
  font-style: normal;
  color: var(--orange-deep);
  position: relative;
  white-space: nowrap;
}
.hero h1 em::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: 0.06em;
  height: 0.16em;
  background: var(--orange);
  opacity: 0.35;
  border-radius: 4px;
  z-index: -1;
}
.hero-sub {
  margin-top: 1.25rem;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.7;
  color: var(--ink);
  max-width: 56ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
}
.hero-meta {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.2rem;
  font-size: 0.88rem;
  color: var(--muted);
}
.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.hero-coords {
  position: absolute;
  bottom: 1.1rem;
  inset-inline-start: var(--gutter);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-2);
  opacity: 0.7;
  direction: ltr;
}

/* the floating phone + field chips */
.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 420px;
}
.phone {
  position: relative;
  width: min(290px, 74vw);
  aspect-ratio: 412 / 915;
  padding: 9px;
  border-radius: 46px;
  background: #1a1713;
  box-shadow:
    0 40px 80px -30px rgba(40, 25, 10, 0.55),
    0 0 0 1.5px #3a332b inset;
}
.phone::before {
  /* side buttons */
  content: '';
  position: absolute;
  inset-inline-end: -3px;
  top: 120px;
  width: 3px;
  height: 64px;
  border-radius: 2px;
  background: #2c2620;
}
.phone .screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 38px;
  overflow: hidden;
  background: linear-gradient(160deg, #fffaf3, #eef8ec);
}
.phone .screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: opacity 0.8s ease;
}
.phone .screen img.hidden {
  opacity: 0;
}
.phone .notch {
  position: absolute;
  top: 17px;
  left: 50%;
  transform: translateX(-50%);
  width: 84px;
  height: 24px;
  border-radius: 14px;
  background: #1a1713;
  z-index: 2;
}
.phone.no-shot .screen img {
  visibility: hidden;
}
.phone.no-shot .screen::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 2rem;
  text-align: center;
  font-weight: 700;
  color: var(--muted);
  background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(92, 58, 30, 0.05) 14px 28px);
}
.hero .phone {
  transform: rotate(-4deg);
  animation: phone-in 1.2s var(--ease-out) both;
}
@keyframes phone-in {
  from {
    opacity: 0;
    transform: translateY(40px) rotate(-8deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(-4deg);
  }
}
.field-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  border: var(--hair);
  box-shadow: var(--shadow-soft);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink-2);
  backdrop-filter: blur(6px);
  animation: float 6s ease-in-out infinite;
  z-index: 3;
}
.field-chip .icon {
  color: var(--accent-deep);
}
.field-chip .mono {
  font-size: 0.8rem;
}
.fc-1 { top: 8%; inset-inline-end: 0; --accent-deep: var(--orange-deep); }
.fc-2 { top: 42%; inset-inline-start: -4%; animation-delay: -2s; --accent-deep: var(--green-deep); }
.fc-3 { bottom: 16%; inset-inline-end: -2%; animation-delay: -4s; --accent-deep: var(--blue); }
.fc-4 { bottom: 4%; inset-inline-start: 6%; animation-delay: -1s; --accent-deep: var(--gold); }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.scroll-cue {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  gap: 0.2rem;
  color: var(--muted);
  font-size: 0.75rem;
  text-decoration: none;
}
.scroll-cue .icon {
  animation: nudge 1.8s ease-in-out infinite;
}
@keyframes nudge {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(6px); opacity: 1; }
}

/* ---------- stats ---------- */
.stats {
  position: relative;
  z-index: 1;
  margin-top: -1.5rem;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(92, 58, 30, 0.12);
  border: var(--hair);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
@media (min-width: 760px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.stat {
  background: #fff;
  padding: 1.2rem 1.4rem;
}
.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 900;
  color: var(--ink-2);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stat span {
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------- generic section ---------- */
.section {
  padding-block: clamp(4rem, 9vw, 7.5rem);
  position: relative;
}
.section-head {
  max-width: 760px;
}
.section-head h2,
.mod-head h2 {
  margin-top: 0.9rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.9rem, 4vw, 3rem);
  color: var(--ink-2);
}
.section-head p,
.lead {
  margin-top: 1rem;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.75;
  color: var(--ink);
  max-width: 62ch;
}

/* trail divider between big sections */
.trail-divider {
  display: block;
  width: 100%;
  height: 70px;
  overflow: visible;
}
.trail-divider path {
  fill: none;
  stroke: var(--ink-2);
  stroke-width: 2;
  stroke-dasharray: 9 9;
  opacity: 0.45;
}

/* ---------- about / pillars ---------- */
.pillars {
  display: grid;
  gap: 1rem;
  margin-top: 2.5rem;
}
@media (min-width: 700px) {
  .pillars {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1040px) {
  .pillars {
    grid-template-columns: repeat(4, 1fr);
  }
}
.pillar {
  position: relative;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: #fff;
  border: var(--hair);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}
.pillar:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}
.pillar-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  color: #fff;
  background: var(--accent);
  box-shadow: 0 8px 18px -8px var(--accent);
}
.pillar-icon .icon {
  width: 24px;
  height: 24px;
}
.pillar h3 {
  margin-top: 1rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink-2);
}
.pillar p {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: var(--ink);
  line-height: 1.65;
}

/* module legend */
.legend {
  margin-top: 4rem;
}
.legend-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.legend-head h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--ink-2);
}
.legend-head p {
  color: var(--muted);
  font-size: 0.95rem;
}
.legend-grid {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.4rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 700px) {
  .legend-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1040px) {
  .legend-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}
.legend-tile {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem;
  border-radius: 16px;
  background: #fff;
  border: var(--hair);
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s, border-color 0.25s;
}
.legend-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
  border-color: var(--accent);
}
.legend-tile .tile {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
}
.legend-tile .tile .icon {
  width: 22px;
  height: 22px;
}
.legend-tile b {
  display: block;
  font-size: 1rem;
  color: var(--ink-2);
}
.legend-tile small {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.3;
}

/* ---------- module sections ---------- */
.mod {
  padding-block: clamp(3rem, 7vw, 5.5rem);
}
.mod-banner {
  position: relative;
  height: clamp(220px, 40vw, 480px);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  isolation: isolate;
}
.mod-banner img {
  position: absolute;
  inset: -10% 0;
  width: 100%;
  height: 120%;
  object-fit: cover;
  object-position: 25% center;
  will-change: transform;
}
.mod-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to left, rgba(20, 18, 10, 0.55) 0%, rgba(20, 18, 10, 0.25) 40%, rgba(20, 18, 10, 0) 70%);
}
.mod-banner .mod-title {
  position: absolute;
  z-index: 2;
  inset-inline-start: clamp(1.2rem, 4vw, 3rem);
  bottom: clamp(1.2rem, 4vw, 2.6rem);
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
  max-width: 60%;
}
.mod-banner .mod-title .eyebrow {
  color: #fff;
  opacity: 0.9;
}
.mod-banner .mod-title .eyebrow::before {
  background: #fff;
}
.mod-banner .mod-title h2 {
  margin-top: 0.5rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.2rem, 6vw, 4.4rem);
  line-height: 1;
}
.mod-banner .mod-title p {
  margin-top: 0.4rem;
  font-size: clamp(0.95rem, 1.6vw, 1.25rem);
  font-weight: 600;
  opacity: 0.95;
}
.mod-banner .badge {
  position: absolute;
  z-index: 2;
  top: 1rem;
  inset-inline-end: 1rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.92);
  color: var(--ink-2);
  font-size: 0.78rem;
  font-weight: 700;
}
.mod-grid {
  display: grid;
  gap: 2.5rem;
  margin-top: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}
@media (min-width: 960px) {
  .mod-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 4rem;
  }
  .mod.flip .mod-grid > .mod-visual {
    order: -1;
  }
}
.mod-text .lead {
  margin-top: 0.4rem;
}
.mod-text h3 {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 800;
  color: var(--ink-2);
}
.features {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.75rem;
}
.features li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  border: var(--hair);
  transition: background-color 0.2s, transform 0.25s var(--ease-out);
}
.features li:hover {
  background: #fff;
  transform: translateX(-3px);
}
.features .f-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: color-mix(in srgb, var(--accent) 14%, white);
  color: var(--accent-deep);
}
.features .f-icon .icon {
  width: 20px;
  height: 20px;
}
.features b {
  display: block;
  color: var(--ink-2);
  font-size: 1rem;
}
.features span {
  display: block;
  font-size: 0.92rem;
  color: var(--ink);
  line-height: 1.55;
}
.mod-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 460px;
}
.mod-visual .phone {
  z-index: 1;
}
.demo {
  position: absolute;
  z-index: 2;
  width: min(300px, 82vw);
  border-radius: 18px;
  background: #fff;
  border: var(--hair);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.demo-br { bottom: 4%; inset-inline-end: 0; }
.demo-bl { bottom: 6%; inset-inline-start: 0; }
.demo-tl { top: 6%; inset-inline-start: 0; }
.demo-tr { top: 4%; inset-inline-end: 0; }
@media (max-width: 959px) {
  .mod-visual {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .mod-visual .phone {
    width: min(250px, 60vw);
  }
  .demo {
    position: static;
    width: min(340px, 100%);
  }
}
.demo-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-2);
  background: var(--paper-2);
  border-bottom: var(--hair);
}
.demo-head .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(52, 163, 72, 0.2);
}
.demo-body {
  padding: 0.9rem;
}

/* demo — activity card (מסע) */
.act-card .act-art {
  height: 96px;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
}
.act-card .act-title {
  margin-top: 0.6rem;
  font-weight: 800;
  color: var(--ink-2);
}
.act-card .act-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.4rem;
}
.act-card .act-meta .chip {
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
  box-shadow: none;
}
.tabs-demo {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: var(--hair);
}
.tabs-demo span {
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--paper-2);
  transition: all 0.3s;
}
.tabs-demo span.on {
  color: #fff;
  background: var(--accent);
  transform: scale(1.06);
}

/* demo — mini map (שבילוג / מתכנן / אופליין) */
.mini-map {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: #f6f0e2;
}
.mini-map svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.mini-map .contour {
  fill: none;
  stroke: #b0865a;
  stroke-width: 0.9;
  opacity: 0.55;
}
.mini-map .contour.major {
  stroke-width: 1.4;
  opacity: 0.75;
}
.mini-map .wadi {
  fill: none;
  stroke: #6fa5c7;
  stroke-width: 2;
  stroke-dasharray: 3 4;
  opacity: 0.8;
}
.pin {
  transform-origin: center bottom;
  transform-box: fill-box;
  opacity: 0;
}
.mini-map.play .pin {
  animation: pin-drop 0.5s var(--ease-out) both;
}
@keyframes pin-drop {
  from { opacity: 0; transform: translateY(-30px) scale(0.6); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.measure {
  fill: none;
  stroke: var(--green-deep);
  stroke-width: 2.5;
  stroke-dasharray: 6 5;
  stroke-dashoffset: 400;
  opacity: 0;
}
.mini-map.play .measure {
  animation: dash-in 1.4s 0.9s var(--ease-out) forwards;
}
@keyframes dash-in {
  from { opacity: 1; stroke-dashoffset: 400; }
  to { opacity: 1; stroke-dashoffset: 0; }
}
.az-arc {
  fill: none;
  stroke: var(--blue);
  stroke-width: 2;
  opacity: 0;
}
.mini-map.play .az-arc {
  animation: fade-in 0.5s 1.9s forwards;
}
.map-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  fill: var(--ink-2);
  opacity: 0;
}
.mini-map.play .map-label {
  animation: fade-in 0.5s 2.1s forwards;
}
@keyframes fade-in {
  to { opacity: 1; }
}
.map-toolbar {
  position: absolute;
  top: 8px;
  inset-inline-start: 8px;
  display: grid;
  gap: 4px;
}
.map-toolbar span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: #fff;
  color: var(--ink-2);
  box-shadow: var(--shadow-card);
}
.map-toolbar span .icon {
  width: 14px;
  height: 14px;
}
.map-toolbar span.on {
  background: var(--green-deep);
  color: #fff;
}

/* route drawing (מתכנן) */
.route {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
}
.mini-map.play .route {
  animation: route-draw 1.6s var(--ease-out) forwards;
}
.mini-map.play .route.r2 { animation-delay: 1.2s; }
.mini-map.play .route.r3 { animation-delay: 2.2s; }
.mini-map.play .route.r4 { animation-delay: 3s; }
@keyframes route-draw {
  to { stroke-dashoffset: 0; }
}
.route-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.8rem;
  margin-top: 0.6rem;
  font-size: 0.72rem;
  color: var(--muted);
}
.route-legend i {
  display: inline-block;
  width: 14px;
  height: 4px;
  border-radius: 2px;
  margin-inline-end: 4px;
  vertical-align: middle;
}
.brief-lines {
  margin-top: 0.7rem;
  display: grid;
  gap: 0.3rem;
  font-size: 0.8rem;
}
.brief-lines div {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s, transform 0.4s;
  display: flex;
  gap: 0.4rem;
  align-items: center;
}
.brief-lines div.on {
  opacity: 1;
  transform: none;
}
.brief-lines .icon {
  color: var(--accent-deep);
}

/* demo — identify (עזרים) */
.ident {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 0.8rem;
  align-items: start;
}
.ident .photo {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.ident .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ident .scan {
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 3px;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  opacity: 0;
}
.play .ident .scan {
  animation: scan 1.6s ease-in-out 2;
}
@keyframes scan {
  0% { top: 0; opacity: 1; }
  50% { top: calc(100% - 3px); opacity: 1; }
  100% { top: 0; opacity: 0; }
}
.ident .res {
  display: grid;
  gap: 0.3rem;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.5s, transform 0.5s;
}
.play .ident .res {
  opacity: 1;
  transform: none;
  transition-delay: 3.2s;
}
.ident .res b {
  color: var(--ink-2);
}
.ident .res i {
  font-family: var(--font-mono);
  font-style: italic;
  font-size: 0.78rem;
  color: var(--muted);
  direction: ltr;
  display: block;
  text-align: right;
}
.ident .res small {
  font-size: 0.78rem;
  color: var(--green-deep);
  font-weight: 600;
}
.bloom {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2px;
  margin-top: 0.4rem;
}
.bloom span {
  height: 8px;
  border-radius: 2px;
  background: var(--sand);
}
.bloom span.on {
  background: var(--orange);
}

/* tools sub-grid */
.tools-grid {
  display: grid;
  gap: 0.9rem;
  margin-top: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1000px) {
  .tools-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.tool-card {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 0.9rem;
  align-items: center;
  padding: 1rem;
  border-radius: 18px;
  background: #fff;
  border: var(--hair);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
}
.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}
.tool-card img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 14px;
  background: var(--paper-2);
}
.tool-card b {
  display: block;
  color: var(--ink-2);
  font-size: 1.05rem;
}
.tool-card span {
  display: block;
  font-size: 0.88rem;
  color: var(--ink);
  line-height: 1.5;
}

/* demo — members (מרחבים) */
.members {
  display: flex;
  align-items: center;
}
.members img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid #fff;
  background: var(--paper-2);
  margin-inline-start: -12px;
  object-fit: cover;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.4s, transform 0.4s var(--ease-out);
}
.members img:first-child {
  margin-inline-start: 0;
}
.play .members img {
  opacity: 1;
  transform: none;
}
.members .more {
  margin-inline-start: 0.6rem;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
}
.roles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.7rem;
}
.roles span {
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: color-mix(in srgb, var(--accent) 14%, white);
  color: var(--accent-deep);
}

/* demo — post (מפגש) */
.post .who {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.post .who img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--paper-2);
}
.post .who b {
  display: block;
  font-size: 0.92rem;
  color: var(--ink-2);
}
.post .who small {
  color: var(--muted);
  font-size: 0.75rem;
}
.post .txt {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  line-height: 1.55;
}
.post .anchor {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.5rem;
  padding: 0.3rem 0.6rem;
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 12%, white);
  color: var(--accent-deep);
  font-size: 0.78rem;
  font-weight: 700;
}
.post .react {
  display: flex;
  gap: 1rem;
  margin-top: 0.7rem;
  padding-top: 0.6rem;
  border-top: var(--hair);
  font-size: 0.8rem;
  color: var(--muted);
}
.post .react span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.play .post .react .like {
  color: #d9534f;
  animation: pop 0.4s 0.8s var(--ease-out) both;
}
@keyframes pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

/* demo — chat (שאל את מצפן) */
.chat {
  display: grid;
  gap: 0.5rem;
  min-height: 190px;
}
.bubble {
  max-width: 88%;
  padding: 0.55rem 0.8rem;
  border-radius: 16px;
  font-size: 0.88rem;
  line-height: 1.5;
}
.bubble.q {
  justify-self: end;
  background: var(--paper-2);
  border-end-end-radius: 4px;
}
.bubble.a {
  justify-self: start;
  background: color-mix(in srgb, var(--green) 12%, white);
  border-end-start-radius: 4px;
}
.bubble .src {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.4rem;
  padding: 0.2rem 0.5rem;
  border-radius: 8px;
  background: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--green-deep);
}
.typing i {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 1px;
  border-radius: 50%;
  background: var(--muted);
  animation: blink 1s infinite;
}
.typing i:nth-child(2) { animation-delay: 0.2s; }
.typing i:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink {
  0%, 80%, 100% { opacity: 0.25; }
  40% { opacity: 1; }
}
.caret::after {
  content: '▍';
  color: var(--green-deep);
  animation: blink 0.9s infinite;
}

/* demo — offline */
.signal {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}
.signal i {
  width: 3px;
  background: var(--muted);
  border-radius: 1px;
  opacity: 0.35;
}
.signal i:nth-child(1) { height: 4px; }
.signal i:nth-child(2) { height: 7px; }
.signal i:nth-child(3) { height: 10px; }
.signal i:nth-child(4) { height: 13px; }
.needle {
  transform-origin: 50% 50%;
  transform-box: fill-box;
}
.play .needle {
  animation: swing 4s ease-in-out infinite;
}
@keyframes swing {
  0%, 100% { transform: rotate(-30deg); }
  50% { transform: rotate(40deg); }
}
.play .mini-map.rotating svg.rot {
  animation: map-rot 4s ease-in-out infinite;
}
@keyframes map-rot {
  0%, 100% { transform: rotate(30deg) scale(1.4); }
  50% { transform: rotate(-40deg) scale(1.4); }
}

/* portal topics */
.topics {
  display: grid;
  gap: 0.8rem;
  margin-top: 2rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 900px) {
  .topics {
    grid-template-columns: repeat(3, 1fr);
  }
}
.topic {
  position: relative;
  padding: 1.1rem 1.1rem 1.1rem 1.4rem;
  border-radius: 16px;
  background: #fff;
  border: var(--hair);
  overflow: hidden;
}
.topic::before {
  content: '';
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 6px;
  background: var(--tc);
}
.topic b {
  display: block;
  color: var(--ink-2);
}
.topic span {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}

/* business */
.biz-safety {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.8rem;
  align-items: start;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: color-mix(in srgb, var(--green) 10%, white);
  border: 1px solid color-mix(in srgb, var(--green) 35%, white);
  font-size: 0.92rem;
  color: var(--green-deep);
}
.biz-safety .icon {
  color: var(--green-deep);
  width: 22px;
  height: 22px;
}
.families {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.2rem;
}
.families span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: #fff;
  border: var(--hair);
  font-size: 0.8rem;
  font-weight: 600;
}
.families img {
  width: 20px;
  height: 20px;
  border-radius: 5px;
}

/* ---------- tech strip ---------- */
.tech {
  background: var(--night);
  color: #f4efe6;
  padding-block: clamp(3rem, 6vw, 5rem);
  position: relative;
  overflow: hidden;
}
.tech::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 80% at 80% 20%, rgba(243, 130, 58, 0.18), transparent 60%),
    radial-gradient(50% 60% at 15% 90%, rgba(52, 163, 72, 0.18), transparent 60%);
}
.tech .container {
  position: relative;
}
.tech h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
}
.tech .eyebrow {
  color: var(--orange);
}
.tech .section-head h2 {
  color: #fff;
}
.tech-grid {
  display: grid;
  gap: 0.8rem;
  margin-top: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1000px) {
  .tech-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.tech-card {
  padding: 1.1rem 1.2rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.tech-card .icon {
  color: var(--orange);
  width: 22px;
  height: 22px;
}
.tech-card b {
  display: block;
  margin-top: 0.5rem;
}
.tech-card span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.88rem;
  color: rgba(244, 239, 230, 0.75);
  line-height: 1.55;
}
.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.6rem;
}
.stack span {
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  direction: ltr;
}

/* ---------- final CTA ---------- */
.cta {
  position: relative;
  min-height: 60vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  text-align: center;
  padding-block: clamp(4rem, 9vw, 7rem);
}
.cta img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% center;
}
.cta::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(10, 14, 20, 0.75), rgba(10, 14, 20, 0.25));
}
.cta h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}
.cta p {
  margin-top: 1rem;
  font-size: 1.15rem;
  max-width: 48ch;
  margin-inline: auto;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}
.cta .hero-actions {
  justify-content: center;
}

/* ---------- footer ---------- */
.footer {
  padding-block: 2.5rem;
  background: #120f0c;
  color: rgba(244, 239, 230, 0.7);
  font-size: 0.88rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
}
.footer a {
  color: rgba(244, 239, 230, 0.9);
  text-decoration: none;
}
.footer a:hover {
  text-decoration: underline;
}
.footer .brand {
  color: #fff;
}

/* ---------- reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .hero-bg img,
  .mod-banner img {
    transform: none !important;
  }
}

/* ---------- gallery strip ---------- */
.gallery {
  margin-top: 4rem;
}
.strip {
  display: flex;
  gap: 1.2rem;
  margin-top: 1.4rem;
  padding: 0.5rem 0.25rem 1.2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.strip figure {
  flex: none;
  margin: 0;
  scroll-snap-align: start;
  text-align: center;
}
.strip figcaption {
  margin-top: 0.6rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-2);
}
.phone.phone-sm {
  width: 190px;
  padding: 6px;
  border-radius: 30px;
}
.phone.phone-sm .screen {
  border-radius: 24px;
}
.phone.phone-sm .notch {
  top: 11px;
  width: 56px;
  height: 16px;
}
.phone.phone-sm::before {
  display: none;
}

/* ---------- business listing demo ---------- */
.listing {
  width: min(360px, 100%);
  border-radius: 20px;
  background: #fff;
  border: var(--hair);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transform: rotate(-2deg);
}
.listing-art {
  height: 170px;
  background-size: cover;
  background-position: 30% center;
}
.listing-body {
  padding: 1rem 1.1rem 1.2rem;
}
.listing-top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  justify-content: space-between;
}
.listing-top .chip {
  font-size: 0.75rem;
  box-shadow: none;
}
.open-now {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--green-deep);
}
.open-now i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(52, 163, 72, 0.25);
}
.play .open-now i {
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(52, 163, 72, 0.25); }
  50% { box-shadow: 0 0 0 7px rgba(52, 163, 72, 0.08); }
}
.listing-body > b {
  display: block;
  margin-top: 0.7rem;
  font-size: 1.15rem;
  color: var(--ink-2);
}
.listing-body > small {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}
.listing-nav {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.7rem;
}
.listing-nav span {
  flex: 1;
  text-align: center;
  padding: 0.4rem 0;
  border-radius: 10px;
  background: var(--paper-2);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-2);
  direction: ltr;
}
.listing-review {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  margin-top: 0.8rem;
  padding-top: 0.7rem;
  border-top: var(--hair);
  font-size: 0.8rem;
  color: var(--ink);
}
.listing-review .score {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--orange);
  color: #fff;
  font-weight: 900;
  font-size: 1rem;
}

/* ---------- back to top ---------- */
.to-top {
  position: fixed;
  z-index: 60;
  bottom: 1.25rem;
  inset-inline-end: 1.25rem;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ink-2);
  color: #fff;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  transform: translateY(16px) scale(0.9);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s var(--ease-out), background-color 0.2s;
}
.to-top .icon {
  width: 22px;
  height: 22px;
  transform: rotate(180deg);
}
.to-top.show {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.to-top:hover {
  background: var(--orange-deep);
}
.to-top:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

/* ---------- contact ---------- */
.contact {
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
}
.contact-grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}
@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4rem;
  }
}
.contact h2 {
  margin-top: 0.9rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  color: var(--ink-2);
}
.contact-alt {
  margin-top: 1.6rem;
  display: grid;
  gap: 0.7rem;
}
.contact-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0.8rem 1rem;
  border-radius: 14px;
  background: #fff;
  border: var(--hair);
  font-size: 0.95rem;
}
.contact-row .icon {
  color: var(--orange-deep);
}
.contact-row a {
  color: var(--ink-2);
}
.copy-btn {
  margin-inline-start: auto;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: var(--hair);
  background: var(--paper-2);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-2);
  cursor: pointer;
  transition: background-color 0.2s;
}
.copy-btn:hover {
  background: var(--sand);
}
.contact-form {
  padding: clamp(1.2rem, 3vw, 2rem);
  border-radius: var(--radius);
  background: #fff;
  border: var(--hair);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 1rem;
}
.field {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.field label,
.field legend {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink-2);
}
.field label small {
  font-weight: 500;
  color: var(--muted);
}
.field input[type='text'],
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  border: 1.5px solid var(--sand-2);
  background: var(--paper);
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea {
  resize: vertical;
  min-height: 110px;
}
.field input:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(243, 130, 58, 0.18);
}
.field input.invalid,
.field textarea.invalid {
  border-color: #d9534f;
}
.interest {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.interest label {
  position: relative;
  cursor: pointer;
}
.interest input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}
.interest span {
  display: inline-block;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1.5px solid var(--sand-2);
  background: var(--paper);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-2);
  transition: all 0.2s;
}
.interest input:checked + span {
  background: var(--green-deep);
  border-color: var(--green-deep);
  color: #fff;
}
.interest input:focus-visible + span {
  box-shadow: 0 0 0 3px rgba(59, 115, 168, 0.4);
}
/* visually hidden the sr-only way — never with a huge negative offset: in an
   RTL document a left:-9999px box widens the scrollable area leftwards and
   the whole page painted blank */
.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem 1rem;
}
.form-status {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
  min-height: 1.4em;
}
.form-status.ok {
  color: var(--green-deep);
}
.form-status.err {
  color: #b23a36;
}
.form-note {
  font-size: 0.78rem;
  color: var(--muted);
}
.contact-form.sent .field,
.contact-form.sent .form-foot .btn {
  opacity: 0.55;
  pointer-events: none;
}
.btn[disabled] {
  opacity: 0.6;
  pointer-events: none;
}

/* ---------- footer: Marvah credit ---------- */
.footer-inner {
  align-items: center;
}
.footer-links a {
  margin-inline: 0.15rem;
}
.marvah {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none !important;
  color: rgba(244, 239, 230, 0.9);
}
.marvah-badge {
  display: grid;
  place-items: center;
  width: 78px;
  height: 68px;
  padding: 6px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 18px -8px rgba(0, 0, 0, 0.6);
  transition: transform 0.25s var(--ease-out);
}
.marvah:hover .marvah-badge {
  transform: translateY(-2px);
}
.marvah-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.marvah-text {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.3;
}
.marvah-text small {
  display: block;
  font-weight: 400;
  font-size: 0.75rem;
  color: rgba(244, 239, 230, 0.6);
}
