/* The home page (9 Nov 2026), in the InsideLife colours: a sunset hero, one city at a time; the
   cities on lagoon blue; the game on cream; a danfo-yellow band to play; news on the night.
   Pills, Anton and Inter as on every other page (site.css). */

.front { --soft: #aab4bf; --card: #0b1016; --edge: #222a32; background: var(--black); }
.front .f-wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.front .y { color: var(--danfo); }
.f-kicker { margin: 0 0 16px; color: var(--danfo); font: 700 .78rem/1 var(--body); letter-spacing: .22em; text-transform: uppercase; }
.f-link { display: inline-flex; align-items: center; gap: 8px; font: 700 .98rem/1 var(--body); text-decoration: none; color: inherit; }
.f-link::after { content: "\2192"; transition: transform .2s ease; }
.f-link:hover::after, a:hover > .f-link::after { transform: translateX(4px); }

/* 1. Hero: a city at a time, over the sunset */
.f-hero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end;
  min-height: clamp(580px, 88svh, 860px); background: var(--lagoon); }
.f-hero .media { position: absolute; inset: 0; z-index: -2; margin: 0; opacity: 0; transition: opacity 1.2s ease; }
.f-hero .media.on { opacity: 1; }
.f-hero .media video { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; }
.f-hero .media video.playing { opacity: 1; }
.f-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(0deg, rgba(7,9,12,.96) 0%, rgba(7,9,12,.55) 32%, rgba(7,9,12,0) 60%), linear-gradient(90deg, rgba(40,15,30,.45), rgba(40,15,30,0) 60%); }
.f-hero .f-wrap { padding-top: 120px; padding-bottom: clamp(40px, 8vh, 84px); }
.f-hero h1 { margin: 0 0 20px; max-width: 12em; font-size: clamp(2.7rem, 7vw, 6.2rem); line-height: .95; text-wrap: balance; }
.f-hero .lede { max-width: 34em; margin: 0 0 28px; color: #eef1f4; font-size: clamp(1.05rem, 1.5vw, 1.22rem); }
.f-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Cinematic bands: a loop from the game across the full width, a few words over it */
.f-cine { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; min-height: clamp(520px, 86svh, 860px); background: var(--black); }
.f-cine .media { position: absolute; inset: 0; z-index: -2; margin: 0; }
.f-cine .media img, .f-cine .media video, .f-hero .media img, .f-hero .media video { width: 100%; height: 100%; object-fit: cover; }
.f-cine .media video { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; }
.f-cine .media video.playing { opacity: 1; }
.f-cine::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(0deg, rgba(7,9,12,.94) 0%, rgba(7,9,12,.45) 34%, rgba(7,9,12,0) 62%); }
@media (min-width: 900px) {
  .f-cine::after { background: linear-gradient(0deg, rgba(7,9,12,.85) 0%, rgba(7,9,12,0) 46%), linear-gradient(90deg, rgba(7,9,12,.8) 0%, rgba(7,9,12,.25) 42%, rgba(7,9,12,0) 62%); }
  .f-cine.right::after { background: linear-gradient(0deg, rgba(7,9,12,.85) 0%, rgba(7,9,12,0) 46%), linear-gradient(270deg, rgba(7,9,12,.8) 0%, rgba(7,9,12,.25) 42%, rgba(7,9,12,0) 62%); }
  .f-cine.right .f-cine-copy { margin-left: auto; }
}
.f-cine .f-wrap { padding-top: 120px; padding-bottom: clamp(44px, 9vh, 96px); }
.f-cine-copy { max-width: 34rem; }
.f-cine h2 { margin: 0 0 16px; font-size: clamp(2.8rem, 7vw, 6rem); line-height: .92; text-wrap: balance; }
.f-cine p { margin: 0 0 22px; color: #e6eaee; font-size: clamp(1.02rem, 1.4vw, 1.15rem); }
.f-cine .f-link { color: var(--danfo); }
.f-cine .facts { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 0 0 24px; padding: 0; list-style: none; font-size: .92rem; color: #e6eaee; }
.f-cine .facts b { display: block; color: var(--danfo); font: 400 1.7rem/1 var(--display); }

/* Sections */
.f-section { padding: clamp(72px, 10vw, 136px) 0; }
.f-head { max-width: 42em; margin-bottom: clamp(34px, 5vw, 60px); }
.f-head h2 { margin: 0 0 16px; font-size: clamp(2.5rem, 6vw, 4.6rem); }
.f-head p { margin: 0; color: var(--soft); font-size: 1.1rem; }
.f-head .f-kicker { margin-bottom: 18px; color: var(--danfo); }
.f-head h2, .f-row h3, .f-city h3 { text-wrap: balance; }

/* 2. The cities, on lagoon blue */
.f-lagoon { background: linear-gradient(180deg, var(--black) 0%, var(--lagoon) 26%, #08202f 100%); }
.f-citygrid { display: grid; gap: 22px; }
@media (min-width: 820px) { .f-citygrid { grid-template-columns: 1fr 1fr; } }
.f-city { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; min-height: 540px; padding: 30px;
  overflow: hidden; border-radius: 12px; background: var(--card); color: #fff; text-decoration: none; box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.f-city img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.f-city::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(7,9,12,.96) 0%, rgba(7,9,12,.4) 46%, rgba(7,9,12,0) 72%); }
.f-city:hover img { transform: scale(1.04); }
.f-city .where { align-self: flex-start; margin: 0 0 12px; padding: 6px 11px; border-radius: 999px; background: var(--danfo); color: var(--ink); font: 700 .72rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; }
.f-city h3 { margin: 0 0 12px; font-size: clamp(2.4rem, 4.4vw, 3.6rem); }
.f-city p { max-width: 30em; margin: 0 0 18px; color: #e3e7eb; }
.f-city .facts { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0 0 22px; padding: 0; list-style: none; font-size: .92rem; font-variant-numeric: tabular-nums; }
.f-city .facts b { margin-right: 6px; color: var(--danfo); font: 400 1.4rem/1 var(--display); }
.f-city .f-link { color: var(--danfo); }
.f-next { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; padding: 20px 24px;
  border: 1px dashed rgba(255,255,255,.25); border-radius: 12px; }
.f-next p { margin: 0; color: var(--soft); }
.f-next b { color: #fff; }
.f-next .f-link { color: #fff; }

/* 3. The game, on cream */
.f-cream { background: var(--cream); color: var(--ink); }
.f-cream .f-head p, .f-cream .f-row p { color: var(--muted); }
.f-cream .f-kicker { color: #b3500f; }
.f-cream .y { color: var(--sunset); }
.f-rows { display: grid; gap: clamp(60px, 8vw, 112px); }
.f-row { display: grid; gap: 24px; align-items: center; }
@media (min-width: 860px) {
  .f-row { grid-template-columns: 7fr 5fr; gap: 60px; }
  .f-row.flip { grid-template-columns: 5fr 7fr; }
  .f-row.flip > figure { order: 2; }
}
.f-row figure { margin: 0; overflow: hidden; border-radius: 12px; background: var(--card); aspect-ratio: 16 / 9; box-shadow: 0 22px 50px rgba(16,22,28,.18); }
.f-row figure img { width: 100%; height: 100%; object-fit: cover; }
.f-row h3 { margin: 0 0 14px; font-size: clamp(2rem, 3.6vw, 3rem); }
.f-row p { margin: 0; font-size: 1.06rem; max-width: 32em; }
.f-row .tag { display: inline-block; margin-bottom: 14px; padding: 6px 12px; border-radius: 999px; background: var(--ink); color: var(--danfo); font: 700 .72rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; }

/* 4. Screenshots, on the night */
.f-strip { display: grid; grid-auto-flow: column; grid-auto-columns: min(80vw, 540px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0 var(--gutter) 14px; scrollbar-width: thin; scrollbar-color: var(--edge) transparent; }
@media (min-width: 1280px) { .f-strip { padding-left: calc((100vw - var(--max)) / 2 + var(--gutter)); } }
.f-strip figure { margin: 0; scroll-snap-align: start; }
.f-strip img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; background: var(--card); }
.f-strip figcaption { margin-top: 10px; color: var(--soft); font-size: .92rem; }

/* 5. Play, on danfo yellow */
.f-yellow { background: var(--danfo); color: var(--ink); }
.f-yellow .f-kicker { color: var(--ink); opacity: .7; }
.f-yellow .f-head p { color: #3a3200; }
.f-play { display: grid; gap: 18px; }
@media (min-width: 820px) { .f-play { grid-template-columns: repeat(3, 1fr); } }
.f-card { display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: 12px; background: var(--ink); color: #fff; }
.f-card h3 { margin: 0; font-size: 2.1rem; }
.f-card p { margin: 0; color: var(--soft); flex: 1; }
.f-card .tag { align-self: flex-start; padding: 6px 11px; border-radius: 999px; background: rgba(246,194,15,.16); color: var(--danfo); font: 700 .7rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; }
.f-card .btn { align-self: stretch; margin-top: 8px; }
#get-app.flash { animation: f-flash 1.2s ease; }
@keyframes f-flash { 0%, 100% { box-shadow: none; } 30% { box-shadow: 0 0 0 4px var(--ink); } }

/* 6. For real businesses */
.f-band { display: grid; gap: 18px; }
@media (min-width: 820px) { .f-band { grid-template-columns: 1fr 1fr; } }
.f-band a { display: flex; flex-direction: column; gap: 10px; padding: 28px; border: 1px solid var(--edge); border-radius: 12px; background: var(--card); color: #fff; text-decoration: none; transition: border-color .2s; }
.f-band a:hover { border-color: var(--danfo); }
.f-band h3 { margin: 0; font-size: 1.9rem; }
.f-band p { margin: 0; color: var(--soft); }
.f-band .f-link { color: var(--danfo); margin-top: 6px; }

/* 7. News */
.front .news-list { margin: 0; padding: 0; list-style: none; }
.front .news-list li { display: grid; gap: 6px 32px; padding: 24px 0; border-top: 1px solid var(--edge); }
@media (min-width: 760px) { .front .news-list li { grid-template-columns: 200px 1fr; } }
.front .news-list time { color: var(--danfo); font-size: .9rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.front .news-list h3 { margin: 0 0 6px; font-size: 1.7rem; }
.front .news-list p { margin: 0; color: var(--soft); }

@media (prefers-reduced-motion: reduce) { .f-hero .media, .f-city img { transition: none; } }
