/* ============================================
   FinanceOS — Coming Soon page
   ============================================ */

body.fos-cs {
  font-family: var(--font-sans);
  color: var(--navy);
  background: var(--bg-warm);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body.fos-cs a { color: inherit; text-decoration: none; }

/* Hide WP admin bar gap on takeover */
body.fos-cs.admin-bar { padding-top: 0; }

.cs-page {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 32px 48px 28px;
  isolation: isolate;
}

/* Brand glow */
.cs-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.cs-glow::before, .cs-glow::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(160px);
}
.cs-glow::before {
  width: 720px; height: 720px;
  top: -180px; left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255,163,16,0.30) 0%, rgba(255,163,16,0) 70%);
}
.cs-glow::after {
  width: 560px; height: 560px;
  bottom: -200px; right: -120px;
  background: radial-gradient(circle, rgba(249,53,118,0.18) 0%, rgba(249,53,118,0) 70%);
}

/* Nav */
.cs-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}
.cs-brand-logo { display: inline-flex; align-items: center; }
.cs-brand-logo img { display: block; height: 44px; width: auto; }
.cs-brand-logo .custom-logo { height: 44px; width: auto; }

.cs-nav-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--border-card);
  border-radius: 999px;
  font-size: 13px;
  color: var(--gray);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.cs-nav-meta .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brand-pink);
  box-shadow: 0 0 0 4px rgba(249,53,118,0.18);
  animation: cs-pulse 2.4s var(--ease-out-expo) infinite;
}
@keyframes cs-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(249,53,118,0.18); }
  50%      { box-shadow: 0 0 0 8px rgba(249,53,118,0.05); }
}

/* Main */
.cs-main {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 80px;
  align-items: center;
  padding: 64px 0 32px;
}
.cs-main--solo { grid-template-columns: minmax(0, 1fr); }

.cs-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--brand-pink);
  margin-bottom: 28px;
}
.cs-eyebrow .bar {
  width: 28px; height: 1.5px;
  background: var(--brand-pink);
  border-radius: 1px;
}

h1.cs-hero {
  font-size: clamp(48px, 6.4vw, 92px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -1.6px;
  color: var(--navy);
  margin: 0 0 28px;
}
h1.cs-hero .light { font-weight: 300; display: block; }
h1.cs-hero .gradient {
  display: inline-block;
  line-height: 1.15;
  padding-bottom: 0.12em;
}

.cs-lede {
  font-size: 19px;
  line-height: 1.65;
  color: var(--gray);
  max-width: 540px;
  margin: 0 0 40px;
}

/* Countdown */
.cs-countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  max-width: 540px;
  margin: 0 0 40px;
}
.cs-cd-cell {
  background: var(--bg-white);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 22px 14px 16px;
  text-align: center;
  box-shadow: var(--shadow-card-soft);
  transition: transform .35s var(--ease-out-expo), box-shadow .35s var(--ease-out-expo);
}
.cs-cd-cell:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(26,26,46,0.08);
}
.cs-cd-num {
  font-size: 46px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -1.2px;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}
.cs-cd-label {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray-light);
}

/* Preview card */
.cs-preview-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.05;
  max-width: 520px;
  justify-self: end;
}
.cs-preview {
  position: absolute;
  inset: 0;
  background: var(--bg-white);
  border: 1px solid var(--border-card);
  border-radius: 24px;
  overflow: hidden;
  box-shadow:
    0 27px 54px -13px rgba(255, 163, 16, 0.30),
    0 8px 24px rgba(26, 26, 46, 0.06);
  display: flex;
  flex-direction: column;
}
.cs-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-card);
  background: var(--bg-warm);
}
.cs-chrome span { width: 9px; height: 9px; border-radius: 50%; background: #e8e4dd; }
.cs-chrome .url {
  margin-left: 14px;
  flex: 1;
  background: #fff;
  border: 1px solid var(--border-card);
  border-radius: 999px;
  font-size: 12px;
  color: var(--gray-soft);
  padding: 5px 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
}
.cs-pv-body {
  flex: 1;
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fffbf5 100%);
}
.cs-pv-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cs-pv-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-pink-light);
  color: var(--brand-pink);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
}
.cs-pv-pill .live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand-pink);
  animation: cs-pulse 2.4s var(--ease-out-expo) infinite;
}
.cs-pv-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--gray-soft);
  text-transform: uppercase;
}

.cs-pv-stat { display: flex; align-items: baseline; gap: 8px; }
.cs-pv-stat .num {
  font-size: 56px;
  font-weight: 500;
  color: var(--brand-pink);
  line-height: 1;
  letter-spacing: -1.4px;
  font-variant-numeric: tabular-nums;
}
.cs-pv-stat .unit { font-size: 18px; color: var(--navy); font-weight: 500; }
.cs-pv-stat .delta {
  margin-left: auto;
  font-size: 12px;
  color: #16a34a;
  background: #e8f9ee;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
}

.cs-pv-bars {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: end;
  gap: 8px;
  height: 88px;
  padding: 0 4px;
}
.cs-pv-bar {
  background: linear-gradient(180deg, #ffdbe5 0%, #f93576 100%);
  border-radius: 4px 4px 2px 2px;
  transform-origin: bottom;
  animation: cs-bar-grow 1s var(--ease-out-expo) backwards;
}
.cs-pv-bar.dim { background: linear-gradient(180deg, #f3eee6 0%, #e8e4dd 100%); }
@keyframes cs-bar-grow {
  from { transform: scaleY(0); opacity: 0; }
  to   { transform: scaleY(1); opacity: 1; }
}

.cs-pv-list { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }
.cs-pv-item { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--gray); }
.cs-pv-item .check {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--brand-pink-light);
  color: var(--brand-pink);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cs-pv-item .check svg { width: 10px; height: 10px; }
.cs-pv-item strong { color: var(--navy); font-weight: 500; }

/* Floating chips */
.cs-chip {
  position: absolute;
  background: #fff;
  border: 1px solid var(--border-card);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 12px 30px rgba(26,26,46,0.10);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--navy);
  animation: cs-float 6s ease-in-out infinite;
}
.cs-chip .badge {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--brand-pink-light);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--brand-pink);
}
.cs-chip .badge.warm { background: var(--brand-orange-light); color: var(--brand-orange); }
.cs-chip .label { font-size: 11px; color: var(--gray-light); }
.cs-chip strong { font-weight: 500; font-size: 14px; }

.cs-chip-1 { top: -18px; left: -28px; animation-delay: 0s; }
.cs-chip-2 { bottom: 60px; left: -36px; animation-delay: -2s; }
.cs-chip-3 { top: 38%; right: -26px; animation-delay: -4s; }

@keyframes cs-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

/* Footer */
.cs-footer {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding-top: 28px;
  border-top: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 13px;
  color: var(--gray-light);
  flex-wrap: wrap;
}
.cs-footer .links { display: flex; gap: 20px; }
.cs-footer .links a {
  transition: color .2s var(--ease-out-expo);
  position: relative;
}
.cs-footer .links a:hover { color: var(--brand-pink); }

/* State variants */
body.fos-cs[data-state="live"] .cs-nav-meta .dot {
  background: #16a34a;
  box-shadow: 0 0 0 4px rgba(22,163,74,0.18);
  animation-name: cs-pulse-green;
}
@keyframes cs-pulse-green {
  0%,100% { box-shadow: 0 0 0 4px rgba(22,163,74,0.18); }
  50%     { box-shadow: 0 0 0 8px rgba(22,163,74,0.05); }
}
body.fos-cs[data-state="maintenance"] .cs-nav-meta .dot {
  background: var(--brand-orange);
  box-shadow: 0 0 0 4px rgba(255,163,16,0.22);
  animation-name: cs-pulse-orange;
}
@keyframes cs-pulse-orange {
  0%,100% { box-shadow: 0 0 0 4px rgba(255,163,16,0.22); }
  50%     { box-shadow: 0 0 0 8px rgba(255,163,16,0.05); }
}

/* Reveal */
.fos-cs [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  animation: cs-reveal-up .9s var(--ease-out-expo) forwards;
}
.fos-cs [data-reveal="1"] { animation-delay: .05s; }
.fos-cs [data-reveal="2"] { animation-delay: .15s; }
.fos-cs [data-reveal="3"] { animation-delay: .25s; }
.fos-cs [data-reveal="4"] { animation-delay: .35s; }
.fos-cs [data-reveal="5"] { animation-delay: .45s; }
.fos-cs [data-reveal="6"] { animation-delay: .55s; }
@keyframes cs-reveal-up { to { opacity: 1; transform: translateY(0); } }

/* Responsive */
@media (max-width: 980px) {
  .cs-page { padding: 24px 24px 24px; }
  .cs-main { grid-template-columns: 1fr; gap: 56px; padding: 40px 0 24px; }
  .cs-preview-wrap { justify-self: center; max-width: 460px; }
  h1.cs-hero { font-size: clamp(40px, 9vw, 64px); }
}
@media (max-width: 560px) {
  .cs-page { padding: 20px 20px; }
  .cs-nav-meta { display: none; }
  .cs-countdown { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .cs-cd-cell { padding: 16px 4px 12px; border-radius: 14px; }
  .cs-cd-num { font-size: 30px; }
  .cs-chip-1, .cs-chip-2, .cs-chip-3 { display: none; }
  .cs-footer { flex-direction: column; align-items: flex-start; }
}
