/* =====================================================================
   Beranda peserta: satu halaman penuh bergaya kartu merah Panel Panitia
   (gradasi, sinar oranye, motif lintasan, pil eyebrow, baris berikon, garis pemisah).
   Font halaman depan: Barlow (v139): Barlow Semi Condensed italic (judul), Barlow Condensed (tanggal & angka), Barlow (teks & tombol).
   ===================================================================== */

/* ---------- satu halaman penuh = satu kartu merah ---------- */
.hero {
  color: #fff; isolation: isolate;
  background: linear-gradient(155deg, #ec3a2d 0%, #da291c 42%, #a81f17 100%);
}
.hero::before {
  display: block; content: ''; position: absolute; z-index: 0; right: -9vw; bottom: -14vh; left: auto; top: auto;
  width: min(1100px, 95vw); aspect-ratio: 600 / 380;
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20600%20380%22%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-width%3D%222.5%22%3E%3Crect%20x%3D%2240%22%20y%3D%2240%22%20width%3D%22520%22%20height%3D%22300%22%20rx%3D%22150.0%22%2F%3E%3Crect%20x%3D%2266%22%20y%3D%2266%22%20width%3D%22468%22%20height%3D%22248%22%20rx%3D%22124.0%22%2F%3E%3Crect%20x%3D%2292%22%20y%3D%2292%22%20width%3D%22416%22%20height%3D%22196%22%20rx%3D%2298.0%22%2F%3E%3Crect%20x%3D%22118%22%20y%3D%22118%22%20width%3D%22364%22%20height%3D%22144%22%20rx%3D%2272.0%22%2F%3E%3Crect%20x%3D%22144%22%20y%3D%22144%22%20width%3D%22312%22%20height%3D%2292%22%20rx%3D%2246.0%22%2F%3E%3Crect%20x%3D%22170%22%20y%3D%22170%22%20width%3D%22260%22%20height%3D%2240%22%20rx%3D%2220.0%22%2F%3E%3C%2Fsvg%3E") center/contain no-repeat;
  opacity: .14; transform: rotate(-8deg); pointer-events: none; user-select: none;
}
.hero::after {
  content: ''; position: absolute; z-index: 0; top: -140px; right: -100px; width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255,200,44,.5), rgba(255,188,13,0) 68%); pointer-events: none;
}
.hero > .wrap { z-index: 1; }
.hero__main { position: relative; padding: 0; text-align: left; }


/* ---------- lokasi: ikon pin ---------- */
.hero__venue::before {
  content: ''; flex: none; width: 42px; height: 42px; border-radius: 13px;
  background: rgba(255,255,255,.17) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffd45e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E") center/22px no-repeat;
}

/* kartu rute: sudut dan bayangan senada */
.route { border-radius: 30px; box-shadow: 0 30px 60px rgba(40,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.06); }

/* ---------- desktop: lebar kolom menyesuaikan tinggi layar ---------- */
@media (min-width: 861px) {
  .hero .wrap { padding-block: 40px 44px; }
  .hero__main { width: 100%; max-width: min(560px, max(400px, calc(100svh * .8 - 150px))); justify-self: center; }
}

/* =====================================================================
   v140 · Beranda mengikuti acuan "Run Together" (rata kiri, satu kolom di mobile) + semua font Barlow
   Font : judul Barlow Semi Condensed italic 800 · tanggal & angka Barlow Condensed italic 800 · teks & tombol Barlow
   Skala: judul/tanggal/angka memakai cqw (lebar kolom) supaya selalu pas di layar 360-430 px.
   ===================================================================== */

/* font dasar seluruh halaman: Barlow */
:root { --body: 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
body { font-family: var(--body); }
button, input, select, textarea { font-family: inherit; }

.hero {
  --y: #ffc72c;
  --f-title: 'Barlow Semi Condensed', 'Barlow Condensed', 'Barlow', system-ui, sans-serif;
  --f-num: 'Barlow Condensed', 'Barlow', system-ui, sans-serif;
  --f-body: 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --body: var(--f-body);
  --hero-gap: 20px;
}
.hero__main { container-type: inline-size; display: flex; flex-direction: column; align-items: stretch; gap: 0; text-align: left; }
.hero__routenote { display: none; }
.hero.hero .hero__main :where(p, span, small, a, div, b, i, h1) {
  font-family: var(--f-body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}

/* 1 · eyebrow: teks kuning berjarak lebar, tanpa pil */
.hero.hero .hero__main .hero__pill {
  align-self: flex-start; padding: 0; border-radius: 0; background: none; color: var(--y);
  font-size: clamp(12px, 3.5cqw, 14px); font-weight: 700; line-height: 1.3; letter-spacing: .2em; text-transform: uppercase;
}
.hero.hero .hero__main .hero__pill::before { display: none; }

/* 2 · judul FUNRUN 5K McDonald's 2026: Barlow Semi Condensed italic, bayangan merah tua di kanan-bawah */
.hero.hero .hero__main .hero__title {
  display: flex; flex-direction: column; align-items: flex-start; gap: 1.8cqw; margin: 4.5cqw 0 6.5cqw; text-align: left;
  font-family: var(--f-title); font-style: italic; font-weight: 800; line-height: .92; letter-spacing: -.01em; text-transform: uppercase;
  text-shadow: .9cqw 1.1cqw 0 rgba(120, 8, 4, .5);
}
.hero.hero .hero__main .hero__title > span { font-family: var(--f-title); white-space: nowrap; }
.hero.hero .hero__main .hero__title > span:first-child { font-size: 19.4cqw; font-weight: 800; line-height: .92; }
.hero.hero .hero__main .hero__title .hero__event { font-size: 12.4cqw; font-weight: 800; line-height: 1; letter-spacing: 0; text-transform: none; color: var(--y); }

/* 3 · tanggal: MINGGU kecil di atas, 13 kuning besar + DESEMBER 2026 putih (Barlow Condensed italic) */
.hero.hero .hero__main .hero__date { display: flex; flex-direction: row; flex-wrap: nowrap; justify-content: flex-start; align-items: flex-end; gap: 2.8cqw; margin: 0 0 var(--hero-gap); line-height: 1; }
.hero.hero .hero__main .hero__date .day {
  flex: none; padding: 0 .04em 0 0; font-family: var(--f-num); font-style: italic; font-weight: 800; font-size: 33cqw; line-height: 1; letter-spacing: -.01em;
  color: var(--y); font-variant-numeric: lining-nums; text-shadow: .9cqw 1cqw 0 rgba(120, 8, 4, .55); text-box: trim-both cap alphabetic;
}
.hero.hero .hero__main .hero__date .dm { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 1.6cqw; min-width: 0; padding: 0; border: 0; text-align: left; }
.hero.hero .hero__main .hero__date .dm b {
  font-family: var(--f-num); font-style: italic; font-weight: 800; font-size: 15.4cqw; line-height: 1; letter-spacing: 0; text-transform: uppercase;
  color: #fff; opacity: 1; white-space: nowrap; text-shadow: .5cqw .6cqw 0 rgba(120, 8, 4, .45); text-box: trim-both cap alphabetic;
}
/* browser tanpa text-box-trim: koreksi optik kecil */
@supports not (text-box: trim-both cap alphabetic) {
  .hero.hero .hero__main .hero__date .day { transform: translateY(-.045em); }
  .hero.hero .hero__main .hero__date .dm b { transform: translateY(.04em); }
}

/* 4 · lokasi: tidak tampil di beranda (ada di kartu rute dan di bagian Info) */
.hero.hero .hero__main .hero__venue { display: none; }

/* 5 · kalimat ajakan */
.hero.hero .hero__main .hero__lead { max-width: none; margin: 0; font-size: 18px; font-weight: 500; line-height: 1.45; letter-spacing: 0; text-align: left; text-wrap: pretty; color: #fff; }

/* 6 · hitung mundur: panel merah gelap, 4 kolom bersekat, angka kuning */
.hero.hero .hero__main .hero__meta { width: 100%; margin-top: var(--hero-gap); }
.hero.hero .hero__main .countdown { width: 100%; padding: 14px 6px 12px; border: 0; border-radius: 22px; background: rgba(70, 0, 0, .34); box-shadow: none; }
.hero.hero .hero__main .countdown__label { display: block; margin: 0 0 8px; text-align: center; font-size: clamp(12px, 3.5cqw, 14px); font-weight: 600; line-height: 1.2; letter-spacing: .26em; text-transform: uppercase; color: rgba(255,255,255,.92); }
.hero.hero .hero__main .countdown__label::before { display: none; }
.hero.hero .hero__main .countdown__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.hero.hero .hero__main .countdown__grid > div { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 0; padding: 2px 4px; border: 0; border-radius: 0; background: none; }
.hero.hero .hero__main .countdown__grid > div + div::before { content: ''; position: absolute; left: 0; top: 10%; bottom: 10%; width: 1px; background: rgba(255,255,255,.22); }
.hero.hero .hero__main .countdown__grid b { font-family: var(--f-num); font-weight: 800; font-size: 10cqw; line-height: 1; letter-spacing: 0; color: var(--y); font-variant-numeric: tabular-nums lining-nums; }
.hero.hero .hero__main .countdown__grid small { font-size: clamp(11px, 3.2cqw, 13px); font-weight: 500; line-height: 1; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.86); opacity: 1; }

/* 7 · tombol pil kuning, teks status, tombol outline */
.hero.hero .hero__main .hero__cta { display: flex; flex-direction: column; align-items: stretch; width: 100%; margin-top: 16px; gap: 0; }
.hero.hero .hero__main .hero__cta > .btn--yellow {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; padding: 12px 20px; border-radius: 999px;
  background: var(--y); color: #2a1300; font-family: var(--f-body); font-size: 18px; font-weight: 700; line-height: 1; letter-spacing: 0; text-transform: none;
  box-shadow: 0 12px 24px -12px rgba(0,0,0,.5);
}
.hero.hero .hero__main .hero__status { margin: 14px 0 0; padding: 0; border: 0; text-align: left; justify-items: start; }
.hero.hero .hero__main .hero__status p { margin: 0; font-size: 16px; font-weight: 400; line-height: 1.4; letter-spacing: 0; color: rgba(255,255,255,.9); }
.hero.hero .hero__main .hero__status a { color: inherit; font-weight: 600; text-decoration: underline; text-decoration-color: rgba(255,255,255,.45); text-underline-offset: 3px; }

/* 8 · kartu rute (tidak diubah, hanya font Barlow) */
.hero.hero .route__eyebrow { display: block; margin-bottom: 4px; font-family: var(--f-body); font-size: 13px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.hero.hero .route__km { font-family: var(--f-num); font-size: 38px; font-weight: 800; line-height: 1; letter-spacing: 0; }
.hero.hero .route__tag { font-family: var(--f-body); font-size: 12px; font-weight: 600; line-height: 1.35; letter-spacing: .12em; }
.hero.hero .route__tag b { font-size: 15px; font-weight: 700; letter-spacing: .01em; }
.hero.hero .route__foot { font-family: var(--f-body); font-size: 14px; font-weight: 500; letter-spacing: 0; }

/* mobile / tablet: satu kolom penuh, kartu rute selebar kolom teks */
@media (max-width: 860px) {
  .hero { overflow-x: clip; }
  .hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(26px, 7vw, 36px); }
  .hero.hero .hero__main { width: 100%; max-width: 520px; margin-inline: auto; }
  .hero .route { width: 100%; max-width: 520px; margin-inline: auto; }
  .hero.hero .route__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 14px; }
}
@media (max-width: 380px) {
  .hero.hero .hero__main .hero__lead { font-size: 17px; }
}

/* =====================================================================
   v141 · Mobile: tulisan "Save the date" dihapus dari HTML, judul FUNRUN 5K naik hampir mentok ke atas,
   semua elemen di bawahnya ikut naik.
   ===================================================================== */
@media (max-width: 860px) {
  .hero .wrap { padding-top: 26px; }  /* v142: sebelumnya 12px, turun sedikit */
  .hero.hero .hero__main .hero__title { margin-top: 0; }
}

/* =====================================================================
   v143 · Mobile: titik slide (kiri bawah) dan tombol "Rute" (kanan bawah) naik,
   menempel di bawah "Sudah pernah mendaftar?" dengan jarak tetap di semua ukuran HP.
   Judul, tanggal, hitung mundur, dan tombol Daftar tidak berubah.
   Ubah --pager-gap kalau ingin lebih dekat/jauh (sebelumnya 44-122 px tergantung tinggi layar).
   ===================================================================== */
@media (max-width: 860px) {
  .hero { --pager-gap: 24px; }
  .hero.view.is-active > .wrap { grid-template-rows: auto auto; align-content: center; row-gap: var(--pager-gap); }
  .hero.hero .hero__main { align-self: start; }
  .hero .pager { margin-top: 0; }
}
