/* The five Trailivo promises (owner, 2026-10-01): one fixed line in the top
   banner, and cards in the hero. Markup: shared/partials/five-banner.html and
   five-hero.html. Copy: scripts/fivepoints/copy.py.

   Brand colours come from each site's own palette: the primary button is
   var(--terracotta-text), which every brand defines as its AA-safe shade
   against white. Göbeklitepe loads this file too (a satellite copy, synced
   by scripts/sync-satellite.sh) and defines it in its own styles.v2.css. */

/* ── Top banner: one fixed line with all the points ─────────────────────── */
/* One line wherever it fits. A long language (Ukrainian, Russian) on a
   narrower desktop wraps to a second centred line instead of being cut off;
   common.js measures the banner and moves the navbar, so a taller banner is
   safe. No dividers between points: the icons separate them, and a divider
   would start a wrapped line. */
.app-banner .five-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 22px;
  width: 100%;
  max-width: 1400px;
  padding: 8px 52px 8px 16px;
}
.five-points {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.five-points li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  color: #fff;
  font-size: 0.86rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
/* A point or card that ships hidden (stays, until offers are live) must stay
   hidden whatever display rule its class carries. */
[data-five-stays][hidden] { display: none !important; }
.five-points .five-ic {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #f6dfa4;
  flex-shrink: 0;
}
.five-points .five-ic svg { width: 13px; height: 13px; }
.app-banner .five-banner .app-banner__close {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 1180px) {
  .five-points { column-gap: 16px; }
  .five-points li { font-size: 0.8rem; }
}
@media (max-width: 980px) {
  .app-banner .five-banner { gap: 6px 14px; padding: 9px 44px 9px 14px; }
  .five-points { row-gap: 4px; }
  .five-points li { font-size: 0.78rem; }
}
@media (max-width: 600px) {
  /* Phones: short centred lines of points, no chips or icons. */
  .app-banner .five-banner { padding: 8px 40px 8px 10px; }
  .five-points { column-gap: 12px; }
  .five-points li { font-size: 0.74rem; gap: 5px; }
  .five-points .five-ic { display: none; }
  .five-points li::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #f6dfa4;
    flex-shrink: 0;
  }
}

/* ── Hero: promise, buttons, the five cards, the kept labels ────────────── */
.hero .hero-content.five-hero {
  width: 100%;
  min-width: 0;
  max-width: 1240px;
  /* Clear the banner at its MEASURED height (common.js publishes it as
     --announcement-h) plus the ~65px navbar: 160px on desktop, as before, and
     still clear when a phone wraps the banner or a reader dismisses it. */
  padding-top: calc(var(--announcement-h, 72px) + 88px);
}
.five-hero .hero-sub {
  max-width: 720px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.65;
}
.five-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 30px;
}
.five-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.five-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.five-btn--primary {
  background: var(--terracotta-text);
  color: #fff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
}
.five-btn--primary:hover,
.five-btn--primary:focus-visible { transform: translateY(-2px); color: #fff; filter: brightness(0.94); }
.five-btn--ghost {
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.06);
}
.five-btn--ghost:hover,
.five-btn--ghost:focus-visible { background: rgba(255, 255, 255, 0.16); color: #fff; transform: translateY(-2px); }

/* The hero's QR, first in the row (owner, 2026-10-01), then the planner
   button: the shared .lw-getapp-qr tile
   (white, so it scans on any photo), a little smaller than in the footer so
   the row stays compact. It is the only way to the app here (owner,
   2026-10-01: no app button), so phones keep it too: a phone cannot scan its
   own screen, but tapping the tile opens /download-app. */
.five-ctas { align-items: center; }
.five-ctas .five-qr { margin-right: 6px; padding: 7px; box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28); }
.five-ctas .five-qr img { width: 84px; height: 84px; }
.five-ctas .five-qr span { max-width: 108px; font-size: 0.64rem; }

.five-cards {
  display: grid;
  /* One equal column per SHOWN card: four while stays is hidden, five after. */
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 0;
  text-align: left;
  counter-reset: five;
}
.five-card {
  position: relative;
  padding: 18px 16px;
  border-radius: 18px;
  background: rgba(16, 20, 14, 0.58);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  counter-increment: five;
}
/* Numbered by what is shown: a hidden card takes no number. */
.five-card .five-num::before { content: counter(five, decimal-leading-zero); }
.five-card .five-num {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(246, 223, 164, 0.8);
}
.five-card .five-ic {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(246, 223, 164, 0.28), rgba(192, 98, 58, 0.35));
  color: #f6dfa4;
}
.five-card .five-ic svg { width: 22px; height: 22px; }
.five-card strong {
  display: block;
  margin: 12px 0 6px;
  font-size: 1.02rem;
  line-height: 1.3;
  color: #fff;
}
.five-card .five-line {
  display: block;
  font-size: 0.86rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
}

/* The labels each site keeps under the cards (its own .hero-badge style). */
.hero-badges.five-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
}
.five-hero .hero-live-link { margin: 16px 0 0; }

@media (max-width: 1100px) {
  .five-cards { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .five-btn { padding: 12px 22px; font-size: 0.95rem; }
  .five-cards {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    margin: 0 -16px;
    padding: 2px 16px 10px;
    scrollbar-width: none;
  }
  .five-cards::-webkit-scrollbar { display: none; }
  .five-card { flex: 0 0 74%; scroll-snap-align: start; }
  .hero-badges.five-pills { gap: 6px; }
  .hero-badges.five-pills .hero-badge { font-size: 0.72rem; padding: 6px 10px; gap: 5px; }
}
