/* /offers/housinganywhere-promo-code/ — "Renter pass": a passport card on a night map, one visa stamp
   per country. A nod to HousingAnywhere's coral-orange mark on deep navy. */

.po--ha {
  --po-accent: #ff4b27;
  --po-accent-ink: #fff;
  --po-accent-soft: #fff0ea;
  --po-deep: #0e1a2b;
  --po-paper: #f6f4f0;
  --po-line: rgba(14, 26, 43, 0.14);
  --ha-navy-2: #16263c;
  --ha-sky: #8fb4ff;
}

/* ---------- Hero ---------- */
.ha-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2.75rem, 7vw, 5rem) 0 clamp(3.5rem, 8vw, 5.5rem);
  background:
    radial-gradient(46rem 30rem at 92% 0%, rgba(255, 75, 39, 0.22), transparent 60%),
    radial-gradient(40rem 26rem at 0% 110%, rgba(143, 180, 255, 0.16), transparent 60%),
    var(--po-deep);
  color: #eef2f8;
}
/* Dotted "world map" texture: a dot grid faded towards the edges. */
.ha-hero__map {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1.2px, transparent 1.4px);
  background-size: 16px 16px;
  -webkit-mask-image: radial-gradient(60% 70% at 70% 45%, #000 20%, transparent 75%);
  mask-image: radial-gradient(60% 70% at 70% 45%, #000 20%, transparent 75%);
  pointer-events: none;
}
.ha-hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.ha-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.1rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffd2c6;
}
.ha-kicker__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--po-accent); }

.ha-hero__title {
  font-family: var(--fh-font-display, 'Fraunces', Georgia, serif);
  font-size: clamp(2.3rem, 5.4vw, 4.1rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: #fff;
}
.ha-hero__title em { font-style: normal; color: var(--po-accent); }
.ha-code-inline {
  display: inline-block;
  padding: 0 0.25em;
  border: 2px dashed rgba(255, 255, 255, 0.55);
  border-radius: 0.2em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82em;
  letter-spacing: 0.04em;
}
.ha-hero__dek { max-width: 37rem; margin: 1.3rem 0 0; font-size: 1.1rem; color: #c3cedd; }
.ha-hero__dek strong { color: #fff; }

.ha-facts { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.6rem 0 0; padding: 0; list-style: none; }
.ha-facts li {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.ha-facts strong { font-size: 1.25rem; color: #fff; font-variant-numeric: tabular-nums; }
.ha-facts span { font-size: 0.85rem; color: #aab7c8; }

.ha-hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.ha-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 52px;
  padding: 0.8rem 1.4rem;
  border: 0;
  border-radius: 12px;
  font: 800 1rem/1.1 var(--fh-font-body, 'DM Sans', sans-serif);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.ha-btn:hover { transform: translateY(-2px); }
.ha-btn--primary { background: var(--po-accent); color: #fff; box-shadow: 0 12px 30px rgba(255, 75, 39, 0.35); }
.ha-btn--primary.is-copied { background: #15803d; box-shadow: none; }
.ha-btn--ghost { color: #fff; border: 1.5px solid rgba(255, 255, 255, 0.35); }
.ha-btn--ghost:hover { border-color: #fff; }
.ha-btn--light { background: #fff; color: var(--po-deep); }

/* ---------- The renter pass ---------- */
.ha-pass-wrap { display: flex; justify-content: center; perspective: 1200px; }
.ha-pass {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(100%, 26rem);
  padding: 0;
  border: 0;
  border-radius: 20px;
  overflow: hidden;
  background:
    repeating-linear-gradient(115deg, rgba(14, 26, 43, 0.025) 0 2px, transparent 2px 9px),
    linear-gradient(160deg, #fffdf9, #f3efe7);
  color: var(--po-deep);
  text-align: left;
  font: inherit;
  cursor: pointer;
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.4);
  transform: rotateY(-8deg) rotateX(4deg) rotate(-1.5deg);
  transition: transform 0.35s ease;
}
.ha-pass:hover { transform: rotateY(0) rotateX(0) rotate(0) translateY(-4px); }
.ha-pass:focus-visible { outline-offset: 8px; }
.ha-pass__band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1.2rem;
  background: var(--po-accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.ha-pass__brand { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.95rem; letter-spacing: 0; text-transform: none; }
.ha-pass__brand img { filter: brightness(0) invert(1); }
.ha-pass__body { display: grid; grid-template-columns: 5.2rem minmax(0, 1fr); gap: 1rem; padding: 1.2rem 1.2rem 0.6rem; }
.ha-pass__photo {
  display: grid;
  place-items: center;
  height: 6.4rem;
  border-radius: 10px;
  background: linear-gradient(160deg, #ffe1d8, #ffc7b7);
  color: var(--po-accent);
}
.ha-pass__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0.55rem 0.9rem; font-weight: 700; font-size: 0.9rem; }
.ha-pass__fields > span { display: flex; flex-direction: column; }
.ha-pass__lbl { font-size: 0.62rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: #7a8594; }
.ha-pass__code-row { display: flex; flex-direction: column; gap: 0.15rem; margin: 0.4rem 1.2rem 0; padding: 0.7rem 0.9rem; border: 2px dashed var(--po-accent); border-radius: 12px; background: rgba(255, 75, 39, 0.06); }
.ha-pass__code { font: 800 2.2rem/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 0.1em; color: var(--po-deep); }
.ha-pass__mrz {
  margin: 0.9rem 0 0;
  padding: 0.6rem 1.2rem;
  background: rgba(14, 26, 43, 0.05);
  font: 600 0.66rem/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.12em;
  color: #4b5767;
  white-space: nowrap;
  overflow: hidden;
}
.ha-pass__hint { padding: 0.7rem 1.2rem 0.9rem; font-size: 0.85rem; font-weight: 700; color: #5c6570; }
.ha-pass.is-copied .ha-pass__hint { color: var(--of-ok); }
.ha-pass.is-copied .ha-pass__code-row { border-style: solid; border-color: var(--of-ok); background: #dcfce7; }
.ha-pass__stamp {
  position: absolute;
  right: 1rem;
  top: 4.6rem;
  display: grid;
  place-items: center;
  width: 5.6rem;
  height: 5.6rem;
  border: 3px double rgba(21, 128, 61, 0.75);
  border-radius: 50%;
  color: rgba(21, 128, 61, 0.85);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(-16deg) scale(0.4);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.3, 1.6, 0.5, 1), opacity 0.2s ease;
  pointer-events: none;
}
.ha-pass__stamp b { font-size: 1.15rem; letter-spacing: 0.02em; }
.ha-pass:hover .ha-pass__stamp,
.ha-pass.is-copied .ha-pass__stamp { opacity: 1; transform: rotate(-16deg) scale(1); }

/* ---------- Where: stamps ---------- */
.ha-where { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.ha-find { display: grid; gap: 0.4rem; max-width: 34rem; margin-bottom: 1.25rem; }
.ha-find__label { font-weight: 800; font-size: 0.9rem; }
.ha-find__field { position: relative; display: flex; align-items: center; }
.ha-find__field svg { position: absolute; left: 1rem; color: var(--of-muted); pointer-events: none; }
.ha-find__field input {
  width: 100%;
  min-height: 54px;
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  border: 2px solid var(--po-line);
  border-radius: 14px;
  background: #fff;
  color: var(--of-ink);
  font: 600 1rem/1.2 var(--fh-font-body, 'DM Sans', sans-serif);
}
.ha-find__field input:focus { outline: none; border-color: var(--po-accent); box-shadow: 0 0 0 4px rgba(255, 75, 39, 0.15); }
.ha-find__status { margin: 0; min-height: 1.4em; font-size: 0.875rem; color: var(--of-muted); }

.ha-top { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-bottom: 2rem; }
.ha-top__label { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--of-muted); margin-right: 0.25rem; }
.ha-top a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 40px;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: var(--po-deep);
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  text-decoration: none;
}
.ha-top a span { color: #ffb4a3; font-size: 0.78rem; }
.ha-top a:hover { background: var(--po-accent); }
.ha-top a:hover span { color: #fff; }

.ha-stamps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.ha-stamp {
  position: relative;
  padding: 1.25rem 1.2rem 1.2rem;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--po-line), 0 10px 24px rgba(14, 26, 43, 0.06);
}
/* The visa-stamp frame: a dashed inner border in the stamp's ink. */
.ha-stamp::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1.5px dashed var(--stamp-ink, var(--po-accent));
  border-radius: 10px;
  opacity: 0.45;
  pointer-events: none;
}
.ha-stamp--1 { --stamp-ink: #ff4b27; }
.ha-stamp--2 { --stamp-ink: #2f6fe4; }
.ha-stamp--3 { --stamp-ink: #0f8a6a; }
.ha-stamp--4 { --stamp-ink: #8a3ffc; }
.ha-stamp[hidden] { display: none; }
.ha-stamp__head { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 0.1rem 0.8rem; margin-bottom: 0.9rem; }
.ha-stamp__code {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 3.1rem;
  height: 3.1rem;
  border: 2px solid var(--stamp-ink);
  border-radius: 50%;
  color: var(--stamp-ink);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  transform: rotate(-12deg);
}
.ha-stamp__name { font-family: var(--fh-font-display, 'Fraunces', Georgia, serif); font-size: 1.35rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.ha-stamp__name a { color: inherit; text-decoration: none; }
.ha-stamp__name a:hover { text-decoration: underline; }
.ha-stamp__count { font-size: 0.82rem; font-weight: 700; color: var(--of-muted); }
.ha-stamp .po-chips { position: relative; }
.ha-stamp .po-chip__count { background: color-mix(in srgb, var(--stamp-ink) 12%, #fff); }
.ha-stamp .po-chips a:hover { border-color: var(--stamp-ink); }
.ha-stamp__more { position: relative; margin-top: 0.6rem; }
.ha-stamp__more summary { display: inline-flex; min-height: 36px; align-items: center; font-weight: 800; font-size: 0.875rem; color: var(--stamp-ink); cursor: pointer; }
.ha-stamp__more .po-chips { margin-top: 0.3rem; }
.ha-where__empty { margin: 1.5rem 0 0; color: var(--of-muted); }
.ha-where__empty[hidden] { display: none; }

/* ---------- How ---------- */
.ha-how { padding: clamp(3.5rem, 8vw, 5.5rem) 0; background: #fff; }
.ha-steps { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
/* Dotted route between the three stops */
.ha-steps::before { content: ''; position: absolute; left: 1.5rem; right: 1.5rem; top: 1.5rem; border-top: 2px dashed rgba(255, 75, 39, 0.4); }
.ha-steps li { position: relative; }
.ha-steps__num { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--po-accent); color: #fff; font-weight: 800; font-size: 1.2rem; box-shadow: 0 0 0 6px #fff; }
.ha-steps h3 { margin-top: 1rem; font-size: 1.15rem; font-weight: 800; line-height: 1.25; }
.ha-steps p { margin: 0.5rem 0 0; color: var(--of-muted); }

/* ---------- Homes ---------- */
.po-homes--ha { background: var(--po-paper); }

/* ---------- Good to know ---------- */
.ha-know { padding: clamp(3.5rem, 8vw, 5.5rem) 0; background: var(--po-deep); color: #e8edf5; }
.ha-know .section-head p { color: #aab7c8; }
.ha-know .section-head a { color: #ffb4a3; }
.ha-know .section-index { color: #ffb4a3; }
.ha-know__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.ha-fact { padding: 1.3rem; border-radius: 14px; background: var(--ha-navy-2); border: 1px solid rgba(255, 255, 255, 0.08); }
.ha-fact-label { margin: 0; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: #ffb4a3; }
.ha-fact-value { margin: 0.45rem 0 0; font-weight: 800; color: #fff; line-height: 1.3; }
.ha-fact-note { margin: 0.55rem 0 0; font-size: 0.9rem; color: #aab7c8; }

/* ---------- Final ---------- */
.ha-final { padding: clamp(3.5rem, 8vw, 5rem) 0; background: var(--po-accent); color: #fff; text-align: center; }
.ha-final h2 { font-family: var(--fh-font-display, 'Fraunces', Georgia, serif); font-size: clamp(2rem, 4.6vw, 3.3rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; }
.ha-final__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 1.75rem; }
.ha-final__code { display: inline-flex; align-items: center; gap: 1rem; min-height: 56px; padding: 0.6rem 0.7rem 0.6rem 1.3rem; border: 2px dashed rgba(255, 255, 255, 0.85); border-radius: 14px; background: rgba(14, 26, 43, 0.2); color: #fff; font: inherit; cursor: pointer; }
.ha-final__code-text { font: 800 1.4rem/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 0.1em; }
.ha-final__code-hint { padding: 0.55rem 0.9rem; border-radius: 10px; background: #fff; color: var(--po-deep); font-weight: 800; font-size: 0.9rem; }
.ha-final__code.is-copied { border-style: solid; }

@media (max-width: 980px) {
  .ha-stamps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .ha-hero__grid { grid-template-columns: 1fr; }
  .ha-pass { transform: rotate(-1deg); }
}
@media (max-width: 760px) {
  .ha-stamps { grid-template-columns: 1fr; }
  .ha-steps { grid-template-columns: 1fr; }
  .ha-steps::before { left: 1.5rem; right: auto; top: 1.5rem; bottom: 1.5rem; border-top: 0; border-left: 2px dashed rgba(255, 75, 39, 0.4); }
  .ha-hero__actions .ha-btn { width: 100%; }
  .ha-pass__stamp { top: 3.8rem; }
}
@media (max-width: 420px) {
  .ha-pass__body { grid-template-columns: 1fr; }
  .ha-pass__photo { display: none; }
  .ha-pass__code { font-size: 1.9rem; }
}
