/* 한강자리 brand site v2 — data vignettes (실제 앱 컴포넌트 재현) */

/* ---- live grid: parking + crowd cards (morning) ---- */
.scene-live .scene-inner { width: min(960px, 100%); }
.live-grid {
  display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 350px);
  gap: 14px; justify-content: center; align-items: stretch;
  margin: 6px auto 18px;
}
.live-grid .park-card { margin: 0; max-width: none; }

.crowd-card {
  display: flex; flex-direction: column; text-align: left;
  background: var(--glass-strong); border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: 26px 24px 18px; box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(20px) saturate(1.3); backdrop-filter: blur(20px) saturate(1.3);
}
.crowd-card-badge {
  display: inline-flex; align-items: center;
  font-size: 11px; font-weight: 760; letter-spacing: 0; color: #fcd58a;
  background: rgba(251, 191, 77, 0.12); border: 1px solid rgba(251, 191, 77, 0.32);
  padding: 5px 10px; border-radius: 999px; white-space: nowrap;
}
.crowd-hero { display: flex; align-items: baseline; gap: 10px; margin: 0 0 2px; }
.crowd-level {
  font-size: clamp(34px, 4.6vw, 44px); font-weight: 870; letter-spacing: 0;
  line-height: 1.15; color: #fcd58a;
}
.crowd-desc { font-size: 13.5px; font-weight: 650; color: var(--ink-2); }
.crowd-bars { margin: auto 0 0; padding-top: 24px; }
.crowd-bar-track { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.cb { position: relative; height: 26px; border-radius: 7px; background: rgba(251, 191, 77, 0.72); }
.cb::before {
  content: ""; position: absolute; top: -9px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 4px; border-radius: 50%; background: inherit;
}
.cb-now { background: rgba(125, 179, 255, 0.92); }
.cb-late { background: rgba(244, 154, 86, 0.78); }
.crowd-bar-labels { display: grid; grid-template-columns: repeat(7, 1fr); margin-top: 7px; }
.crowd-bar-labels span { font-size: 10.5px; font-weight: 650; color: var(--ink-3); text-align: center; white-space: nowrap; }
.crowd-bar-labels span:nth-child(1) { grid-column: 1; }
.crowd-bar-labels span:nth-child(2) { grid-column: 3; }
.crowd-bar-labels span:nth-child(3) { grid-column: 5; }
.crowd-bar-labels span:nth-child(4) { grid-column: 7; }
.crowd-next {
  margin-top: auto; padding-top: 14px; border-top: 1px solid var(--hairline);
  font-size: 13px; font-weight: 680; color: var(--amber);
}
.crowd-next::before {
  content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: rgba(244, 154, 86, 0.95); margin-right: 7px; vertical-align: 1px;
}

/* ---- park status card (morning) ---- */
.park-card {
  max-width: 560px; margin: 6px auto 18px; text-align: left;
  background: var(--glass-strong); border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: 26px 26px 16px; box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(20px) saturate(1.3); backdrop-filter: blur(20px) saturate(1.3);
}
.park-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.park-card-name { display: block; font-size: 17px; font-weight: 780; }
.park-card-src { font-size: 12px; color: var(--ink-3); }
.park-card-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 760; letter-spacing: 0; color: #7ce7bd;
  background: rgba(52, 211, 153, 0.12); border: 1px solid rgba(52, 211, 153, 0.32);
  padding: 5px 10px; border-radius: 999px; white-space: nowrap;
}
.live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 8px var(--green);
  animation: livepulse 2.2s ease-in-out infinite;
}
@keyframes livepulse { 50% { opacity: 0.35; } }
.park-card-hero { display: flex; align-items: baseline; gap: 10px; margin: 0 0 4px; }
.park-card-num {
  font-size: clamp(46px, 7vw, 62px); font-weight: 870; letter-spacing: 0;
  line-height: 1; font-variant-numeric: tabular-nums; color: #f6edda;
}
.park-card-unit { font-size: 15px; font-weight: 650; color: var(--ink-2); }
.park-card-sum { font-size: 13px; font-weight: 680; color: var(--amber); margin: 0 0 18px; }

.lot-list { border-top: 1px solid var(--hairline); }
.lot-row {
  display: grid; grid-template-columns: 8px minmax(0, 1fr) 42px;
  align-items: center; gap: 12px; padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.lot-row:last-child { border-bottom: none; padding-bottom: 6px; }
.lot-dot { width: 8px; height: 8px; border-radius: 50%; }
.lot-dot.lot-free { background: var(--green); box-shadow: 0 0 8px rgba(52, 211, 153, 0.6); }
.lot-dot.lot-normal { background: var(--amber); box-shadow: 0 0 8px rgba(251, 191, 77, 0.55); }
.lot-dot.lot-busy { background: var(--red); box-shadow: 0 0 8px rgba(242, 112, 107, 0.55); }
.lot-name { display: flex; align-items: baseline; gap: 8px; font-size: 14.5px; font-weight: 720; min-width: 0; }
.lot-status { font-size: 11.5px; font-weight: 680; white-space: nowrap; }
.lot-st-free { color: #7ce7bd; }
.lot-st-normal { color: #fcd58a; }
.lot-st-busy { color: #f8a09c; }
.lot-count { font-size: 14px; font-weight: 780; text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.lot-row:has(.lot-st-free) .lot-count { color: #7ce7bd; }
.lot-row:has(.lot-st-busy) .lot-count { color: #f8a09c; }

/* ---- forecast timeline (noon) ---- */
.timeline {
  position: relative; display: flex; justify-content: space-between; gap: 4px;
  max-width: 540px; margin: 36px 0 18px; padding: 10px 2px 0;
}
.tl-stop {
  position: relative; flex: 1;
  display: grid; grid-template-rows: 24px 12px 20px; row-gap: 9px; justify-items: center;
}
.tl-track {
  position: absolute; left: calc(100% / 12); right: calc(100% / 12);
  top: calc(10px + 24px + 9px + 6px); height: 1.5px; transform: translateY(-50%);
  background: linear-gradient(90deg, rgba(251, 191, 77, 0.55) 0%, rgba(251, 191, 77, 0.45) 70%, rgba(52, 211, 153, 0.7) 100%);
}
.tl-label {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 24px;
  font-size: 11.5px; font-weight: 720; color: var(--ink-2);
  white-space: nowrap; text-shadow: 0 1px 14px rgba(2, 6, 16, 0.45);
}
.tl-dot {
  position: relative; z-index: 1; width: 12px; height: 12px; border-radius: 50%;
  background: #101729; border: 2.5px solid var(--amber);
  box-shadow: 0 0 0 3px rgba(251, 191, 77, 0.12);
}
.tl-dot.tl-free {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.16), 0 0 16px rgba(52, 211, 153, 0.45);
}
.tl-num { font-size: 14.5px; font-weight: 790; font-variant-numeric: tabular-nums; color: var(--ink); text-shadow: 0 1px 12px rgba(2, 6, 16, 0.4); }
.tl-best .tl-num { color: #7ce7bd; }
.scene-split .stat-caption { text-align: left; }

/* ---- forecast phone: recreated lot-detail screen (noon) ---- */
.app-screen {
  aspect-ratio: 290 / 623; width: 100%;
  border-radius: 38px; overflow: hidden;
  display: flex; flex-direction: column;
  padding: 38px 16px 0; text-align: left;
  background:
    radial-gradient(120% 55% at 82% 110%, rgba(108, 196, 161, 0.32) 0%, transparent 62%),
    linear-gradient(180deg, #0c1530 0%, #143350 52%, #1d4f58 100%);
}
.app-screen > * { flex-shrink: 0; }
.as-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.as-nav-btn {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  color: #e8eefb; background: rgba(13, 22, 40, 0.45); border: 1px solid rgba(255, 255, 255, 0.14);
}
.as-nav-heart { color: #f490b1; background: rgba(244, 114, 158, 0.16); border-color: rgba(244, 114, 158, 0.3); }
.as-head { margin-bottom: 6px; }
.as-park { display: block; font-size: 10.5px; font-weight: 680; color: var(--ink-3); margin-bottom: 2px; }
.as-title { display: block; font-size: 19px; font-weight: 840; letter-spacing: 0; }
.as-card {
  background: rgba(13, 22, 40, 0.45); border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 18px; padding: 10px;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.as-gauge { position: relative; width: 134px; margin: 2px auto 6px; }
.as-gauge svg { display: block; width: 100%; height: auto; transform: rotate(-90deg); }
.as-ring-bg, .as-ring { fill: none; stroke-width: 7; stroke-linecap: round; }
.as-ring-bg { stroke: rgba(160, 190, 255, 0.13); }
.as-ring { stroke: url(#asRing); stroke-dasharray: 114 327; filter: drop-shadow(0 0 7px rgba(251, 191, 77, 0.42)); }
.as-gauge-num {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px;
}
.as-gauge-num strong {
  font-size: 38px; font-weight: 880; line-height: 1; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fdf6e3 20%, #f0c269 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.as-gauge-num span { font-size: 10px; font-weight: 650; color: var(--ink-2); }
.as-status {
  display: flex; align-items: baseline; justify-content: center; gap: 6px;
  flex-wrap: wrap; margin: 0 0 5px; padding: 4px 9px;
  font-size: 10px; line-height: 1.4; text-align: center;
  background: rgba(5, 9, 20, 0.4); border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
}
.as-status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); align-self: center; flex-shrink: 0; }
.as-status strong { font-weight: 790; }
.as-status-aux { color: var(--ink-2); font-weight: 600; }
.as-updated { text-align: center; font-size: 9px; color: var(--ink-3); margin: 0; }
.as-updated::before {
  content: ""; display: inline-block; width: 4px; height: 4px; border-radius: 50%;
  background: var(--amber); margin-right: 5px; vertical-align: 1.5px;
}
.as-section { font-size: 11px; font-weight: 740; color: var(--ink-2); margin: 9px 2px 5px; }
.as-chart-card { display: flex; flex-direction: column; gap: 6px; }
.as-chart-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.as-chart-titles { display: flex; flex-direction: column; gap: 2px; }
.as-chart-titles strong { font-size: 12.5px; font-weight: 780; }
.as-chart-titles span { font-size: 9.5px; color: var(--ink-3); }
.as-chart-ic {
  width: 13px; height: 13px; border-radius: 50%; margin-top: 2px; flex-shrink: 0;
  border: 1.5px solid var(--amber);
  background: linear-gradient(90deg, transparent 50%, var(--amber) 50%);
}
.as-plot { position: relative; }
.as-y {
  position: absolute; left: 2px; transform: translateY(-50%);
  font-size: 8px; font-weight: 650; color: var(--ink-3); font-variant-numeric: tabular-nums;
}
.as-y:nth-child(1) { top: 25%; }
.as-y:nth-child(2) { top: 50%; }
.as-y:nth-child(3) { top: 75%; }
.as-chart { display: block; width: 100%; height: auto; }
.as-grid line { stroke: rgba(255, 255, 255, 0.08); stroke-width: 1; }
.as-band { fill: rgba(251, 191, 77, 0.16); }
.as-base { stroke: rgba(255, 255, 255, 0.25); stroke-width: 1; stroke-dasharray: 3 4; }
.as-line { fill: none; stroke: var(--amber); stroke-width: 2.5; stroke-linecap: round; }
.as-chart-x { display: flex; justify-content: space-between; padding-left: 13%; font-size: 9.5px; font-weight: 650; color: var(--ink-3); }
.as-ops { display: flex; align-items: center; gap: 11px; min-height: 76px; }
.as-ops-ic {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  color: #7db3ff; background: rgba(110, 160, 255, 0.14); border: 1px solid rgba(110, 160, 255, 0.3);
}
.as-ops-info { display: flex; flex-direction: column; gap: 2px; }
.as-ops-label { font-size: 9.5px; font-weight: 650; color: var(--ink-3); }
.as-ops-info strong { font-size: 13px; font-weight: 800; color: #ffd9a8; font-variant-numeric: tabular-nums; }

/* ---- notif placement in split (dusk) ---- */
.notif-stack { display: flex; flex-direction: column; gap: 10px; width: min(480px, 100%); margin-top: 32px; }

/* ---- widget support (sunset) ---- */
.mode-note {
  max-width: 460px; margin-top: 24px; padding: 15px 16px; text-align: left;
  background: rgba(7, 11, 22, 0.48); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 18px;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.mode-pill {
  display: inline-flex; margin-bottom: 8px; font-size: 12px; font-weight: 760; color: #7ce7bd;
}
.mode-note p { font-size: 13.5px; line-height: 1.55; color: #dbe5f2; }

/* ---- widget shots (sunset) ---- */
.widget-stack { position: relative; flex-direction: column; align-items: center; min-height: 440px; }
.widget-shot {
  border-radius: 30px; overflow: hidden;
  border: 1px solid var(--hairline);
  box-shadow: 0 34px 80px rgba(2, 6, 16, 0.55);
}
.widget-shot img { width: 100%; height: auto; }
.widget-shot-main { position: relative; z-index: 2; width: min(330px, 82%); margin: 34% 18% 0 0; }
.widget-shot-back { position: absolute; top: 0; right: max(0px, calc(50% - 300px)); z-index: 1; width: min(300px, 72%); opacity: 0.95; }

/* hover: bring the hovered widget forward (parallax owns the figure's
   transform, so scale lives on the inner picture) */
@media (hover: hover) {
  .widget-shot { transition: opacity 0.35s ease, box-shadow 0.35s ease; }
  .widget-shot picture { display: block; transition: transform 0.35s ease; }
  .widget-shot:hover { z-index: 3; opacity: 1; box-shadow: 0 42px 96px rgba(2, 6, 16, 0.65); }
  .widget-shot:hover picture { transform: scale(1.04) translateY(-4px); }
}
@media (prefers-reduced-motion: reduce) {
  .widget-shot, .widget-shot picture { transition: none; }
}

/* ---- transit card (night) ---- */
.transit-card {
  max-width: 560px; margin: 6px auto 34px; text-align: left;
  background: var(--glass-strong); border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: 6px 20px; box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
}
.transit-row { display: flex; align-items: center; gap: 14px; padding: 16px 0; }
.transit-row + .transit-row { border-top: 1px solid rgba(255, 255, 255, 0.08); }
.transit-ic {
  display: grid; place-items: center; flex-shrink: 0;
  width: 40px; height: 40px; border-radius: 13px;
  color: var(--brand-soft);
  background: rgba(110, 160, 255, 0.13); border: 1px solid rgba(110, 160, 255, 0.25);
}
.transit-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.transit-name { font-size: 15px; font-weight: 760; }
.transit-meta { font-size: 12.5px; color: var(--ink-3); }
.transit-walk {
  flex-shrink: 0; font-size: 12.5px; font-weight: 720; color: #7ce7bd;
  background: rgba(52, 211, 153, 0.12); border: 1px solid rgba(52, 211, 153, 0.3);
  padding: 6px 11px; border-radius: 999px; white-space: nowrap;
}
.nav-lead { font-size: 13px; font-weight: 680; letter-spacing: 0; color: var(--ink-3); margin-bottom: 16px; }
.nav-lead-maps { margin-top: 26px; }
.nav-chip-go { font-size: 12px; color: var(--ink-3); }

/* ---- support card (deep night) ---- */
.support-card {
  display: flex; flex-wrap: wrap; align-items: center; gap: 15px;
  max-width: 532px; margin: 58px auto 0; text-align: left;
  background: var(--glass); border: 1px solid var(--hairline); border-radius: 20px;
  padding: 16px 18px;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.support-ic {
  display: grid; place-items: center; flex-shrink: 0;
  width: 44px; height: 44px; border-radius: 14px; color: #ffd9a8;
  background: rgba(251, 191, 77, 0.12); border: 1px solid rgba(251, 191, 77, 0.26);
}
.support-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.support-title { font-size: 14.5px; font-weight: 760; }
.support-body { font-size: 12.5px; line-height: 1.5; color: #c4d1e3; }
.support-actions {
  flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 8px;
  padding-left: 59px; margin-top: 2px;
}
.support-btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 720; color: var(--ink-2);
  background: transparent; border: 1px solid var(--hairline);
  padding: 8px 14px; border-radius: 999px; white-space: nowrap;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}
.support-actions .support-btn:first-child {
  color: var(--ink); background: rgba(251, 191, 77, 0.1);
  border-color: rgba(251, 191, 77, 0.34);
}
.support-btn:hover {
  border-color: rgba(244, 247, 251, 0.34); background: var(--glass);
  transform: translateY(-1px);
}
.support-actions .support-btn:first-child:hover {
  border-color: rgba(251, 191, 77, 0.55); background: rgba(251, 191, 77, 0.16);
}
.support-mark { height: 15px; width: auto; display: block; }
.support-mark-kakao { border-radius: 4.5px; }

/* ---- support QR dialog (deep night) ---- */
.support-qr {
  margin: auto; padding: 0; border: 0; background: transparent;
  max-width: calc(100vw - 32px);
}
.support-qr::backdrop {
  background: rgba(4, 7, 16, 0.62);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.support-qr-panel {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  width: 296px; max-width: 100%; padding: 18px 20px 22px; text-align: center;
  color: var(--ink); background: var(--glass-strong);
  border: 1px solid var(--hairline); border-radius: var(--radius);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
}
.support-qr-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%;
}
.support-qr-title { font-size: 14.5px; font-weight: 760; }
.support-qr-close {
  display: grid; place-items: center; flex-shrink: 0;
  width: 28px; height: 28px; color: var(--ink-3);
  background: transparent; border: 1px solid var(--hairline); border-radius: 999px;
  cursor: pointer; transition: color 0.2s ease, border-color 0.2s ease;
}
.support-qr-close:hover { color: var(--ink); border-color: rgba(244, 247, 251, 0.34); }
.support-qr-tile { display: block; padding: 10px; background: #fff; border-radius: 16px; }
.support-qr-tile img { display: block; }
.support-qr-hint { margin: 0; font-size: 12.5px; line-height: 1.55; color: #c4d1e3; }
.support-qr-link {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 720; color: var(--ink-2);
  border: 1px solid var(--hairline); border-radius: 999px; padding: 7px 13px;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.support-qr-link:hover { border-color: rgba(244, 247, 251, 0.34); background: var(--glass); }
.support-qr[open] { animation: support-qr-in 0.22s ease; }
.support-qr[open]::backdrop { animation: support-qr-fade 0.22s ease; }
@keyframes support-qr-in {
  from { opacity: 0; transform: translateY(6px) scale(0.97); }
}
@keyframes support-qr-fade {
  from { opacity: 0; }
}

@media (max-width: 760px) {
  .live-grid { grid-template-columns: minmax(0, 560px); }
  .crowd-card { padding: 20px 18px 16px; }
  .crowd-bars { padding-top: 20px; }
  .crowd-next { padding-top: 12px; margin-top: 16px; }
  .park-card { padding: 20px 18px 12px; }
  .lot-row { grid-template-columns: 8px minmax(0, 1fr) 34px; }
  .timeline { margin-left: auto; margin-right: auto; padding-top: 8px; }
  .tl-label { font-size: 10px; }
  .tl-num { font-size: 12.5px; }
  .scene-split .stat-caption { text-align: center; }
  .mode-note { margin: 24px auto 0; text-align: center; }
  .notif-stack { max-width: 460px; margin: 28px auto 0; }
  .widget-stack { min-height: 360px; width: min(360px, 100%); margin: 0 auto; }
  .widget-shot-main { width: min(300px, 82%); margin: 118px auto 0 8%; }
  .widget-shot-back { left: 13%; right: auto; transform: none; width: min(286px, 78%); }
  .transit-card { padding: 2px 16px; }
  .transit-meta { white-space: normal; }
  .support-card { flex-wrap: wrap; justify-content: center; text-align: center; }
  .support-copy { flex-basis: 100%; align-items: center; }
  .support-actions { padding-left: 0; justify-content: center; margin-top: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  .live-dot { animation: none; }
  .support-qr[open],
  .support-qr[open]::backdrop { animation: none; }
}
