/* HeyGulf website. Plain CSS, no build step. */
@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('/fonts/bricolage.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('/fonts/instrument-sans.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --paper: #faf9f7;
  --card: #ffffff;
  --ink: #16130f;
  --ink-2: #4a4540;
  --muted: #7a746d;
  --line: #ece8e3;
  --orange: #e8572a;
  --orange-ink: #b83f18;
  --orange-soft: #fdeee8;
  --sea: #dcebf0;
  --park: #e3efdc;
  --road: #ece6dd;
  --you: #2f80ed;
  --display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --body: 'Instrument Sans', 'Segoe UI', system-ui, sans-serif;
  --gutter: clamp(20px, 5vw, 64px);
  --wide: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--you); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wide); margin: 0 auto; padding-inline: var(--gutter); }

/* ───────── Top bar ───────── */
.top {
  position: absolute; inset: 0 0 auto 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px var(--gutter);
}
.top--plain { position: static; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.375rem; letter-spacing: -0.02em; }
.brand__tile { width: 38px; height: 38px; border-radius: 12px; background: var(--orange); display: grid; place-items: center; }
.brand__tile img { width: 24px; height: 24px; }
.top nav { display: flex; align-items: center; gap: clamp(12px, 2.5vw, 28px); }
.top nav a { text-decoration: none; font-weight: 600; font-size: 0.9375rem; }
.top nav a:not(.btn):hover { color: var(--orange-ink); }
.top nav .hide-s { display: none; }
@media (min-width: 720px) { .top nav .hide-s { display: inline; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: 14px;
  background: var(--ink); color: #fff; font-weight: 700; font-size: 1rem; text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { background: #000; }
.btn:active { transform: scale(0.97); }
.btn--small { min-height: 40px; padding: 0 16px; border-radius: 12px; font-size: 0.9375rem; }
.btn--orange { background: var(--orange); }
.btn--orange:hover { background: var(--orange-ink); }

/* ───────── Hero: a map of plans ───────── */
.hero { position: relative; min-height: 100svh; min-height: max(100svh, 640px); overflow: hidden; display: flex; align-items: flex-end; }
.map { position: absolute; inset: 0; }
.map__sea { position: absolute; left: 52%; top: -34vmax; width: 78vmax; height: 62vmax; border-radius: 50%; background: var(--sea); }
.map__park { position: absolute; left: 61%; top: 58%; width: 15vmax; height: 10vmax; border-radius: 2.4vmax; background: var(--park); transform: rotate(-8deg); }
.map__roads { position: absolute; inset: 0; width: 100%; height: 100%; }
.map__roads line { stroke: var(--road); stroke-linecap: round; vector-effect: non-scaling-stroke; }
.map__roads .major { stroke-width: 14px; }
.map__roads .minor { stroke-width: 7px; }
/* Keeps the headline readable: map fades into paper toward the bottom-left. */
.map__fade { position: absolute; inset: 0; background: radial-gradient(120% 95% at 0% 100%, var(--paper) 30%, rgba(250, 249, 247, 0.82) 48%, rgba(250, 249, 247, 0) 72%); }

.you { position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); width: 18px; height: 18px; margin: -9px; border-radius: 50%; background: var(--you); border: 3px solid #fff; box-shadow: 0 2px 8px rgba(47, 128, 237, 0.45); }
.you::after { content: ''; position: absolute; inset: -16px; border-radius: 50%; background: var(--you); opacity: 0; animation: ping 2.4s ease-out infinite; }
@keyframes ping { 0% { transform: scale(0.3); opacity: 0.45; } 100% { transform: scale(1); opacity: 0; } }

.pin {
  position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%);
  display: flex; align-items: flex-start; gap: 10px;
  transform: translate(-29px, -100%);
  animation: drop 0.65s cubic-bezier(0.3, 1.5, 0.5, 1) both;
  animation-delay: calc(var(--i) * 0.42s + 0.35s);
}
@keyframes drop { from { opacity: 0; transform: translate(-29px, calc(-100% - 34px)) scale(0.6); } 60% { opacity: 1; } to { opacity: 1; transform: translate(-29px, -100%) scale(1); } }
.pin__mark { position: relative; width: 58px; padding-top: 6px; display: grid; justify-items: center; flex: none; }
.pin__bubble { width: 50px; height: 50px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 24px; line-height: 1; box-shadow: 0 6px 18px rgba(22, 19, 15, 0.14); }
.pin__tail { width: 0; height: 0; border: 7px solid transparent; border-top: 9px solid #fff; border-bottom: 0; margin-top: -1px; }
.pin__count { position: absolute; top: 0; right: -4px; min-width: 30px; height: 21px; padding: 0 6px; border-radius: 11px; border: 2px solid #fff; background: var(--ink); color: #fff; font-size: 0.6875rem; font-weight: 800; line-height: 17px; text-align: center; font-variant-numeric: tabular-nums; transition: background 0.3s ease; }
.pin__count.is-bumped { animation: bump 0.4s cubic-bezier(0.3, 1.8, 0.5, 1); }
.pin__count.is-full { background: var(--orange); }
@keyframes bump { 0% { transform: scale(1); } 50% { transform: scale(1.35); } 100% { transform: scale(1); } }
.pin__label { margin-top: 8px; padding: 8px 12px; border-radius: 12px 12px 12px 4px; background: #fff; box-shadow: 0 6px 18px rgba(22, 19, 15, 0.1); font-size: 0.8125rem; line-height: 1.3; color: var(--muted); white-space: nowrap; }
.pin__label b { display: block; color: var(--ink); font-size: 0.9375rem; font-weight: 700; }

.hero__copy { position: relative; z-index: 2; width: 100%; padding: 0 var(--gutter) clamp(36px, 7vh, 80px); }
.hero h1 { font-family: var(--display); font-weight: 800; font-size: clamp(2.6rem, 8.2vw, 6.25rem); line-height: 0.98; letter-spacing: -0.04em; max-width: 12ch; text-wrap: balance; }
.hero h1 .swap { display: block; color: var(--orange); white-space: nowrap; transition: opacity 0.22s ease, transform 0.3s ease; }
.hero h1 .swap.is-out { opacity: 0; transform: translateY(0.18em); }
.hero__sub { margin-top: clamp(16px, 2.4vh, 26px); max-width: 34ch; font-size: clamp(1.0625rem, 1.6vw, 1.3125rem); color: var(--ink-2); }
.hero__cta { margin-top: clamp(20px, 3vh, 32px); display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.hero__note { font-size: 0.9375rem; color: var(--muted); }

/* Phones: pins live in the top half, copy in the bottom half. */
@media (max-width: 719px) {
  .pin, .you { left: calc(var(--mx, var(--x)) * 1%); top: calc(var(--my, var(--y)) * 1%); }
  .pin--quiet .pin__label { display: none; }
  .pin--gone { display: none; }
  .map__sea { left: 38%; top: -30vmax; }
  .map__park { left: 6%; top: 34%; }
  .map__fade { background: linear-gradient(to top, var(--paper) 44%, rgba(250, 249, 247, 0.85) 54%, rgba(250, 249, 247, 0) 68%); }
}

/* ───────── Sections ───────── */
.band { padding-block: clamp(64px, 11vw, 136px); }
.band h2 { font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 4.6vw, 3.5rem); line-height: 1.04; letter-spacing: -0.035em; max-width: 18ch; }
.band .lede { margin-top: 16px; max-width: 52ch; font-size: 1.1875rem; color: var(--ink-2); }

/* How it works: a real sequence, so it is numbered. Each step shows the real screen. */
.steps { margin-top: clamp(40px, 6vw, 72px); display: grid; gap: clamp(48px, 5vw, 64px) clamp(24px, 4vw, 56px); }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { display: grid; gap: 28px; align-content: start; }
@media (max-width: 819px) and (min-width: 520px) { .step { grid-template-columns: 220px 1fr; align-items: center; gap: 32px; } }
.phone {
  width: min(100%, 290px); aspect-ratio: 540 / 1108; overflow: hidden;
  border: 8px solid var(--ink); border-radius: 38px; background: var(--paper);
  box-shadow: 0 18px 40px rgba(22, 19, 15, 0.14);
  transition: transform 0.35s cubic-bezier(0.3, 1.4, 0.5, 1), box-shadow 0.35s ease;
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.step__icon {
  position: relative; display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--orange-soft); color: var(--orange);
  transition: background 0.25s ease, color 0.25s ease, transform 0.35s cubic-bezier(0.3, 1.8, 0.5, 1);
}
.step__icon b { position: absolute; top: -6px; right: -8px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px; border: 2px solid var(--paper); background: var(--ink); color: #fff; font-size: 0.75rem; font-weight: 800; line-height: 20px; text-align: center; }
.steps h3 { margin-top: 16px; font-family: var(--display); font-weight: 700; font-size: 1.5rem; letter-spacing: -0.02em; line-height: 1.15; }
.steps p { margin-top: 8px; color: var(--ink-2); max-width: 36ch; }
@media (hover: hover) {
  .step:hover .phone { transform: translateY(-10px) rotate(-1.5deg); box-shadow: 0 30px 56px rgba(22, 19, 15, 0.2); }
  .step:nth-child(2):hover .phone { transform: translateY(-10px); }
  .step:nth-child(3):hover .phone { transform: translateY(-10px) rotate(1.5deg); }
  .step:hover .step__icon { background: var(--orange); color: #fff; transform: scale(1.1) rotate(-6deg); }
}

/* What people plan */
.plans { background: var(--card); border-block: 1px solid var(--line); }
.kinds { margin-top: clamp(32px, 5vw, 60px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
@media (min-width: 820px) { .kinds { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px 28px; } }
.kinds li { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: center; }
.kinds .emoji { grid-row: span 2; width: 56px; height: 56px; border-radius: 50%; background: var(--paper); border: 1px solid var(--line); display: grid; place-items: center; font-size: 26px; line-height: 1; }
.kinds b { align-self: end; font-family: var(--display); font-size: 1.1875rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }
.kinds span:last-child { align-self: start; font-size: 0.9375rem; color: var(--muted); line-height: 1.3; }

/* Safety */
.safety { background: var(--ink); color: #fff; }
.safety .lede { color: #cfc9c1; }
.rules { margin-top: clamp(36px, 6vw, 72px); display: grid; gap: 14px; }
@media (min-width: 820px) { .rules { grid-template-columns: 1fr 1fr; } }
.rule {
  display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start;
  padding: 22px; border-radius: 20px; border: 1px solid #332e28; background: #1d1915;
  transition: transform 0.3s cubic-bezier(0.3, 1.4, 0.5, 1), border-color 0.25s ease, background 0.25s ease;
}
.rule__icon {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px;
  background: #2b2621; color: #ff8a63;
  transition: background 0.25s ease, color 0.25s ease, transform 0.35s cubic-bezier(0.3, 1.8, 0.5, 1);
}
.rule__age { font-family: var(--display); font-weight: 800; font-size: 1.0625rem; letter-spacing: -0.02em; }
.rule h3 { font-family: var(--display); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.015em; line-height: 1.2; }
.rule p { margin-top: 6px; color: #cfc9c1; max-width: 44ch; }
/* Each safety icon has its own small motion, played on hover (or once on phones). */
@keyframes ic-pop { 0% { transform: scale(1); } 40% { transform: scale(1.18) rotate(-8deg); } 70% { transform: scale(0.96) rotate(3deg); } 100% { transform: scale(1.08) rotate(0); } }
@keyframes ic-swing { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-14deg); } 55% { transform: rotate(10deg); } 80% { transform: rotate(-4deg); } }
@keyframes ic-nod { 0%, 100% { transform: translateY(0); } 30% { transform: translateY(-5px); } 60% { transform: translateY(1px); } }
@keyframes ic-blink { 0%, 100% { transform: scaleY(1); } 35% { transform: scaleY(0.12); } 60% { transform: scaleY(1); } }
@keyframes ic-wave { 0%, 100% { transform: skewY(0) scaleX(1); } 30% { transform: skewY(-7deg) scaleX(0.92); } 65% { transform: skewY(5deg) scaleX(1.04); } }
@keyframes ic-beat { 0%, 100% { transform: scale(1); } 25% { transform: scale(1.22); } 45% { transform: scale(0.97); } 65% { transform: scale(1.12); } }
@keyframes ic-check { from { stroke-dashoffset: 12; } to { stroke-dashoffset: 0; } }
.rule__icon svg, .rule__age { display: block; transform-origin: 50% 60%; }
.rule--phone svg path { stroke-dasharray: 12; }
.rule--flag svg { transform-origin: 20% 50%; }
.rule--eye svg { transform-origin: 50% 50%; }
.rule.is-seen .rule__icon, .rule:hover .rule__icon { background: var(--orange); color: #fff; }
.rule--phone.is-seen svg, .rule--phone:hover svg { animation: ic-pop 0.6s ease both; }
.rule--phone.is-seen svg path, .rule--phone:hover svg path { animation: ic-check 0.5s 0.15s ease-out both; }
.rule--women.is-seen svg, .rule--women:hover svg { animation: ic-swing 0.8s ease both; }
.rule--host.is-seen svg, .rule--host:hover svg { animation: ic-nod 0.6s ease both; }
.rule--eye.is-seen svg, .rule--eye:hover svg { animation: ic-blink 0.5s ease both; }
.rule--flag.is-seen svg, .rule--flag:hover svg { animation: ic-wave 0.9s ease-in-out both; }
.rule--age.is-seen .rule__age, .rule--age:hover .rule__age { animation: ic-beat 0.7s ease both; }
.rule.is-seen .rule__icon { transition-delay: 0.1s; }
@media (hover: hover) {
  .rule:hover { transform: translateY(-4px); border-color: var(--orange); background: #231e19; }
  .rule:hover .rule__icon { transform: scale(1.06); }
  /* On computers, keep icons calm until hovered. */
  .rule.is-seen:not(:hover) .rule__icon { background: #2b2621; color: #ff8a63; }
  .rule.is-seen:not(:hover) svg, .rule.is-seen:not(:hover) svg path, .rule.is-seen:not(:hover) .rule__age { animation: none; }
}

/* Where and languages */
.where { display: grid; gap: clamp(32px, 6vw, 80px); }
@media (min-width: 820px) { .where { grid-template-columns: 1fr 1fr; align-items: start; } }
.where h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
.where p { margin-top: 14px; color: var(--ink-2); max-width: 44ch; }
.chips { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 8px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-weight: 600; font-size: 0.9375rem; }
.chips li.is-live { background: var(--orange-soft); border-color: #f6cdbd; color: var(--orange-ink); }

/* Closing */
.close { background: var(--orange); color: #fff; text-align: left; }
.close h2 { max-width: 16ch; }
.close p { margin-top: 16px; max-width: 46ch; font-size: 1.1875rem; color: #fff; }
.close .btn { margin-top: 28px; }

/* Footer */
.foot { padding-block: 36px; border-top: 1px solid var(--line); font-size: 0.9375rem; color: var(--muted); }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot a { color: var(--ink-2); text-decoration: none; font-weight: 600; }
.foot a:hover { color: var(--orange-ink); text-decoration: underline; }

/* ───────── Text pages (terms, privacy, delete account) ───────── */
.doc { max-width: 720px; margin: 0 auto; padding: clamp(40px, 7vw, 88px) var(--gutter) clamp(64px, 9vw, 120px); }
.doc h1 { font-family: var(--display); font-weight: 800; font-size: clamp(2.25rem, 6vw, 3.5rem); line-height: 1.02; letter-spacing: -0.035em; }
.doc .updated { margin-top: 12px; color: var(--muted); font-size: 0.9375rem; }
.doc .summary { margin-top: 28px; padding: 20px 22px; border-radius: 16px; background: var(--orange-soft); color: var(--ink); }
.doc h2 { margin-top: 48px; font-family: var(--display); font-weight: 700; font-size: 1.625rem; letter-spacing: -0.02em; line-height: 1.15; }
.doc h3 { margin-top: 26px; font-size: 1.0625rem; font-weight: 700; }
.doc p { margin-top: 14px; color: var(--ink-2); }
.doc ul, .doc ol { margin-top: 14px; padding-left: 22px; color: var(--ink-2); }
.doc ul { list-style: disc; }
.doc ol { list-style: decimal; }
.doc li { margin-top: 8px; }
.doc li::marker { color: var(--orange); font-weight: 700; }
.doc a { color: var(--orange-ink); font-weight: 600; }
.doc strong { color: var(--ink); }
.doc table { margin-top: 18px; width: 100%; border-collapse: collapse; font-size: 0.9688rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 12px 12px 0; border-top: 1px solid var(--line); color: var(--ink-2); }
.doc th { color: var(--ink); font-weight: 700; width: 34%; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pin, .pin__count.is-bumped, .you::after { animation: none; }
  .phone, .step__icon, .rule, .rule__icon { transition: none; }
  .rule__icon svg, .rule__icon svg path, .rule__age { animation: none !important; }
  .step:hover .phone, .step:hover .step__icon, .rule:hover, .rule:hover .rule__icon { transform: none; }
  .hero h1 .swap, .btn { transition: none; }
}
