/* Landing page. Builds on site.css tokens. One idea: the sky IS the product. */
.landing { --top: #f4ad2f; --bottom: #c4e6f3; --sky-ink: #1d1a0f; --sky-sub: rgba(29, 26, 15, 0.78); }
/* Before the live verdict arrives (or if it fails): a plain morning sky that says nothing. */
.landing [data-scene="wait"] { --top: #8fb6c9; --bottom: #dcebf0; --sky-ink: #13201e; --sky-sub: rgba(19, 32, 30, 0.72); }
.landing [data-scene="sunny"] { --top: #f4ad2f; --bottom: #c4e6f3; --sky-ink: #1d1a0f; --sky-sub: rgba(29, 26, 15, 0.78); }
.landing [data-scene="risky"] { --top: #1f6564; --bottom: #9fd3ca; --sky-ink: #ffffff; --sky-sub: rgba(255, 255, 255, 0.88); }
/* Rain is coming but not falling yet: a grey daytime sky, no rain drawn. */
.landing [data-scene="cloudy"] { --top: #465a70; --bottom: #a3b4c2; --sky-ink: #ffffff; --sky-sub: rgba(255, 255, 255, 0.88); }
/* A daytime storm: dark slate, clearly not the navy of night. */
.landing [data-scene="rain"] { --top: #2e3b52; --bottom: #74849b; --sky-ink: #ffffff; --sky-sub: rgba(255, 255, 255, 0.88); }
.landing [data-scene="haze"] { --top: #b98a63; --bottom: #ecc9a5; --sky-ink: #2a1b10; --sky-sub: rgba(42, 27, 16, 0.82); }
.landing [data-scene="night"] { --top: #0a1430; --bottom: #24346a; --sky-ink: #f4f1e4; --sky-sub: rgba(244, 241, 228, 0.82); }

.sky {
  position: relative; overflow: hidden; color: var(--sky-ink);
  background: linear-gradient(180deg, var(--top) 0%, var(--bottom) 78%);
  transition: background 600ms ease, color 400ms ease;
}
.sky canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.sky .inner { position: relative; max-width: 1120px; margin: 0 auto; padding: 22px 20px 0; }
.sky header.site a { color: var(--sky-ink); }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 40px; align-items: center; padding: 28px 0 0; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
.eyebrow { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sky-sub); margin: 0; }
.sky h1 { font-size: clamp(44px, 7.4vw, 92px); line-height: 0.95; letter-spacing: -0.045em; margin-top: 14px; }
.sky h1 em { font-style: normal; display: inline-block; transform-origin: 50% 0; animation: peg 3.2s ease-in-out infinite alternate; }
@keyframes peg { from { transform: rotate(-3deg); } to { transform: rotate(3deg); } }
.sky .lede { color: var(--sky-sub); max-width: 40ch; font-size: clamp(18px, 2.2vw, 21px); }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 20px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid var(--sky-ink); color: var(--sky-ink); }
.btn.solid { background: var(--sky-ink); color: var(--top); }
.btn:focus-visible { outline: 3px solid var(--sky-ink); outline-offset: 3px; }
@media (max-width: 520px) { .cta-row .btn { width: 100%; justify-content: center; } }
.soon { font-size: 14px; color: var(--sky-sub); }

/* Live phone card */
.live { display: grid; gap: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font: 700 13px var(--body); padding: 7px 12px; border-radius: 999px; cursor: pointer; border: 1.5px solid color-mix(in srgb, var(--sky-ink) 45%, transparent); background: transparent; color: var(--sky-ink); }
.chip[aria-pressed="true"] { background: var(--sky-ink); color: var(--top); border-color: var(--sky-ink); }
.chip:focus-visible { outline: 2px solid var(--sky-ink); outline-offset: 2px; }
.card-live {
  border-radius: 30px; padding: 22px 22px 18px; color: var(--sky-ink);
  background: color-mix(in srgb, var(--top) 22%, rgba(255, 255, 255, 0.28));
  border: 1px solid rgba(255, 255, 255, 0.45); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 30px 60px -32px rgba(10, 20, 18, 0.55);
}
.pc-place { margin: 0; font-weight: 700; font-size: 14px; color: var(--sky-sub); display: flex; justify-content: space-between; gap: 10px; }
.pc-word { margin: 6px 0 0; font: 800 clamp(64px, 11vw, 104px)/0.9 var(--display); letter-spacing: -0.05em; }
/* The display font leaves a gap to the left of straight-stemmed letters (R and N: 0.069em, about 7px at this
   size) and almost none beside a Y. The word is pulled left by its first letter's gap so that it lines up with
   the ink of the lines above and below it, which have about 1.5px of their own. Same fix as the app. */
.pc-word[data-first="R"], .pc-word[data-first="N"] { margin-left: calc(1.5px - 0.069em); }
.pc-word[data-first="Y"] { margin-left: calc(1.5px - 0.004em); }
.pc-word.drop { animation: drop 520ms cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes drop { from { transform: translateY(-20px); opacity: 0.3; } to { transform: none; opacity: 1; } }
.pc-line { margin: 8px 0 0; font-weight: 700; font-size: 19px; line-height: 1.3; }
.pc-meta { margin: 6px 0 0; font-size: 14px; color: var(--sky-sub); }
.pc-strip { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; margin-top: 16px; }
.pc-strip i { height: 22px; border-radius: 5px; position: relative; }
/* As in the app (17 Oct): hours with nothing to worry about are a quiet tint of the sky, rain is blue, haze rust. */
.pc-strip i::before, .pc-legend i::before { content: ''; position: absolute; inset: 0; border-radius: inherit; background: var(--sky-ink); opacity: 0.18; }
.pc-strip i[data-s]:not([data-s="good"])::before, .pc-legend i[data-s]:not([data-s="good"])::before { display: none; }
.pc-strip i[data-s="risky"] { background: #86aeee; }
.pc-strip i[data-s="wet"] { background: #4561d8; }
.pc-strip i[data-s="heavy"] { background: #b4552f; }
.pc-strip i[data-s="sheltered"] { background: repeating-linear-gradient(135deg, #a9b3be 0 4px, #d3d9df 4px 8px); }
/* What the strip's colours mean; only shown once there is a strip. */
.pc-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 8px 0 0; font-size: 11px; font-weight: 600; color: var(--sky-sub); }
.pc-legend[hidden] { display: none; }
.pc-legend span { display: inline-flex; align-items: center; gap: 5px; }
.pc-legend i { width: 10px; height: 10px; border-radius: 3px; position: relative; }
.pc-legend i[data-s="risky"] { background: #86aeee; }
.pc-legend i[data-s="wet"] { background: #4561d8; }
.pc-legend i[data-s="heavy"] { background: #b4552f; }
.pc-hours { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; font-size: 11px; font-weight: 700; color: var(--sky-sub); margin-top: 4px; }
.pc-note { margin: 12px 0 0; font-size: 12px; color: var(--sky-sub); }

/* Clothesline */
.line-wrap { position: relative; height: 210px; margin-top: 22px; }
.line-wrap svg { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: min(1100px, 100%); height: 210px; overflow: visible; }
.garment { transform-box: fill-box; transform-origin: 50% 0; animation: sway var(--sway-dur, 3s) ease-in-out infinite alternate; cursor: pointer; }
.garment:nth-of-type(2n) { animation-delay: -0.9s; }
.garment:nth-of-type(3n) { animation-delay: -1.7s; }
.garment.poke { animation: poke 1.3s cubic-bezier(.2, .9, .3, 1); }
@keyframes sway { from { transform: rotate(calc(var(--sway, 3deg) * -1)); } to { transform: rotate(var(--sway, 3deg)); } }
@keyframes poke { 0% { transform: rotate(0); } 15% { transform: rotate(-24deg); } 35% { transform: rotate(16deg); } 55% { transform: rotate(-9deg); } 75% { transform: rotate(4deg); } 100% { transform: rotate(0); } }

/* Ticker */
.ticker { overflow: hidden; background: var(--ink); color: var(--paper); padding: 14px 0; }
.ticker-track { display: flex; gap: 40px; width: max-content; animation: marquee 38s linear infinite; font: 800 20px var(--display); letter-spacing: -0.01em; }
.ticker-track span::after { content: '✺'; margin-left: 40px; color: var(--marigold); }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Sections */
.section { max-width: 1120px; margin: 0 auto; padding: 72px 20px 0; }
.section > h2 { font-size: clamp(32px, 5vw, 52px); margin: 0; }
.section > .lede { margin-top: 14px; max-width: 64ch; text-wrap: pretty; }
.features { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 32px; }
@media (min-width: 560px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .features { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 20px; display: grid; gap: 10px; align-content: start; }
.feature h3 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: -0.02em; }
.feature p { margin: 0; color: var(--muted); font-size: 16px; }
.demo { height: 132px; border-radius: 16px; position: relative; overflow: hidden; display: grid; place-items: center; }

.demo-word { background: linear-gradient(180deg, var(--d-top, #f4ad2f), var(--d-bottom, #c4e6f3)); transition: background 500ms ease; }
.demo-word b { font: 800 64px/1 var(--display); letter-spacing: -0.05em; color: var(--d-ink, #1d1a0f); }
.demo-word b.drop { animation: drop 520ms cubic-bezier(.2, 1.4, .4, 1) both; }

.demo-compass { background: #eaf4f8; }
@media (prefers-color-scheme: dark) { .demo-compass { background: #182a33; } }
.demo-compass svg { width: 120px; height: 120px; }
.demo-compass .arrow { transform-origin: 60px 60px; animation: wind 6s ease-in-out infinite; }
@keyframes wind { 0%, 100% { transform: rotate(-20deg); } 50% { transform: rotate(160deg); } }

.demo-notif { background: linear-gradient(180deg, #191a45, #3d4280); }
.notif { width: 86%; background: rgba(255, 255, 255, 0.9); color: #13201e; border-radius: 16px; padding: 10px 12px; font-size: 13px; line-height: 1.35; box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.6); animation: notif 6s ease-in-out infinite; }
.notif strong { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.notif strong img { border-radius: 4px; }
@keyframes notif { 0%, 8% { transform: translateY(-140%); opacity: 0; } 18%, 78% { transform: none; opacity: 1; } 90%, 100% { transform: translateY(-140%); opacity: 0; } }

.demo-haze { background: linear-gradient(180deg, #b98a63, #ecc9a5); padding: 0 18px; place-items: stretch; align-content: center; gap: 8px; }
.meter { position: relative; height: 14px; border-radius: 7px; background: linear-gradient(90deg, #7bb38f 0 33.3%, #c9906b 33.3% 66.7%, #b4552f 66.7% 100%); }
.needle { position: absolute; top: -6px; width: 4px; height: 26px; border-radius: 2px; background: #2a1b10; left: var(--pm, 50%); transition: left 900ms cubic-bezier(.2, 1.2, .4, 1); }
.meter-labels { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; color: #2a1b10; }
.meter-read { font: 800 18px var(--display); color: #2a1b10; }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 30px; padding: 0; list-style: none; }
.steps li { counter-increment: step; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 20px; margin: 0; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--marigold); color: #1d1a0f; font: 800 18px var(--display); margin-bottom: 8px; }
.steps strong { display: block; font-size: 18px; line-height: 1.3; }
.steps span { color: var(--muted); }

.cities { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.cities > .city:last-child:nth-child(odd) { grid-column: span 2; } /* seven cities: never one left alone on a phone */
@media (min-width: 600px) { .cities { grid-template-columns: repeat(4, minmax(0, 1fr)); } .cities > .city:last-child:nth-child(odd) { grid-column: auto; } }
@media (min-width: 1100px) { .cities { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
.city { text-align: left; font: inherit; color: inherit; cursor: pointer; border-radius: 20px; padding: 16px; border: 1px solid var(--line); background: var(--card); display: grid; gap: 6px; align-content: start; }
.city:hover, .city:focus-visible { border-color: var(--ink); outline: none; }
.city .name { font-weight: 700; font-size: 15px; white-space: nowrap; }
.city .v { justify-self: start; align-self: start; font: 800 13px/1 var(--body); letter-spacing: 0.04em; padding: 6px 11px; border-radius: 999px; color: #fff; background: var(--muted); }
.city .v[data-v="YES"] { background: #23885a; }
.city .v[data-v="RISKY"] { background: #c98612; }
.city .v[data-v="NO"] { background: #c4473a; } /* one colour, one meaning: the app's NO pill (red), whatever the reason */
.city .why { font-size: 14px; color: var(--muted); }

.studio { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.studio h2 { margin-top: 0; }
.studio .lede { margin-bottom: 0; }
.studio .contact { margin-top: 0; }
@media (max-width: 760px) { .studio { grid-template-columns: minmax(0, 1fr); } }
.contact .tip { margin: 18px 0 0; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; }
.tip-text { color: var(--muted); }
.kopi { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--marigold); color: #1d1a0f; font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap; }
.kopi:hover { background: color-mix(in srgb, var(--marigold) 85%, #000); }
.kopi svg { width: 18px; height: 18px; flex: none; }
.page-foot { max-width: 1120px; margin: 0 auto; padding: 0 20px 48px; }

@media (prefers-reduced-motion: reduce) {
  .sky h1 em, .garment, .ticker-track, .demo-compass .arrow, .notif { animation: none !important; }
  .notif { transform: none; opacity: 1; }
  .ticker-track { flex-wrap: wrap; width: auto; padding: 0 20px; }
  .pc-word.drop, .demo-word b.drop { animation: none; }
}
