/* CareCode Coming Soon — Apple-esque matte navy/white */
:root {
  --navy-900: #0a1a2b;
  --navy-800: #0b1522;
  --navy-700: #12304d;
  --ink: #0b1522;
  --muted: #6b7280;
  --border: #e5e7eb;
  --bg: #eef2f6;
  --brand: #274c77;
  --brand-ink: #1f3e61;
  --header-h: 64px; /* keep in sync with .header-inner height */
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ink); background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-800) 60%, var(--navy-900) 100%);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 20px; }

.site-header { position: sticky; top: 0; z-index: 40; background: rgba(11,21,34,0.75); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255,255,255,0.06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.logo { width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(160deg, #0a66a3, #274c77); display: grid; place-items: center; color: #fff; font-weight: 700; }
.brand-name { font-weight: 600; letter-spacing: 0.2px; }
.brand-tag { display: block; font-size: 12px; color: rgba(255,255,255,0.7); }
.nav a { color: rgba(255,255,255,0.9); text-decoration: none; margin-left: 18px; font-weight: 500; transition: color 0.2s ease; }
.nav a:hover { color: #fff; }

.hero { position: relative; padding: 0 0 40px; color: #fff; }
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 30px; align-items: center; position: relative; z-index: 2; }
.hero-visual-first { padding-top: 0; }
.hero-image-wrap { position: relative; width: 100%; height: clamp(320px, 48vw, 560px); overflow: hidden; }
.hero-image { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(1.05) contrast(1.02); }
.hero-image-fallback { position: absolute; inset: 0; background:
  /* Bottom fade to ground the hero — removed top fade to show full image */
  linear-gradient(to bottom,
    rgba(10,26,43,0.00) 0%,
    rgba(10,26,43,0.15) 50%,
    rgba(10,26,43,0.55) 80%,
    rgba(10,26,43,0.85) 100%
  );
  pointer-events: none; }
.hero-over { margin-top: calc(-140px + var(--header-h)); }
.badge { display: inline-block; padding: 6px 12px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); border-radius: 999px; font-size: 12px; margin-bottom: 14px; }
.hero h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.06; margin: 0 0 12px; letter-spacing: -0.02em; }
.hero p { margin: 0 0 14px; color: rgba(255,255,255,0.85); font-size: 18px; }
.punchline { height: 22px; margin: 2px 0 10px; }
.punchline-text { display: inline-block; color: #fff; opacity: 0.92; font-weight: 600; font-size: 16px; letter-spacing: -0.01em; transition: opacity .5s ease, transform .5s ease; }
.punchline-text.is-out { opacity: 0; transform: translateY(6px); }
.cta-row { display: flex; gap: 12px; margin: 16px 0 10px; }
.btn { display: inline-block; padding: 12px 18px; border-radius: 10px; text-decoration: none; font-weight: 600; border: 1px solid transparent; }
.btn-primary { background: #fff; color: var(--navy-800); }
.btn-primary:hover { background: #e8edf2; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.3); }
.btn-ghost:hover { background: rgba(255,255,255,0.08); }
.trust-row { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,0.8); font-size: 14px; margin-top: 8px; }
.dot { width: 6px; height: 6px; border-radius: 999px; background: #52d273; display: inline-block; }
.hero-art { display: grid; gap: 16px; }
.glass-card { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.2); border-radius: 16px; padding: 16px; backdrop-filter: blur(8px); }
.glass-card.small { opacity: 0.9; }
.glass-title { font-weight: 600; margin-bottom: 6px; }
.glass-sub { font-size: 14px; opacity: 0.9; margin-bottom: 10px; }
.glass-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.stat .num { display: inline-block; font-weight: 700; font-size: 22px; }
.stat-line { display: flex; align-items: baseline; gap: 8px; }
.delta { font-size: 12px; font-weight: 700; padding: 2px 6px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.25); }
.delta.up { color: #52d273; background: rgba(82,210,115,0.12); border-color: rgba(82,210,115,0.35); }
.delta.down { color: #8ab4ff; background: rgba(138,180,255,0.12); border-color: rgba(138,180,255,0.35); }
.stat label { font-size: 12px; opacity: 0.9; }
.glass-meta { margin-top: 10px; font-size: 12px; color: rgba(255,255,255,0.9); display: flex; align-items: center; gap: 8px; }
.live-dot { width: 6px; height: 6px; border-radius: 999px; background: #52d273; box-shadow: 0 0 0 0 rgba(82,210,115,0.6); animation: livePulse 2s infinite; display: inline-block; }
@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(82,210,115,0.6); }
  70% { box-shadow: 0 0 0 8px rgba(82,210,115,0); }
  100% { box-shadow: 0 0 0 0 rgba(82,210,115,0); }
}
.fade-edge { position: absolute; inset: auto 0 0 0; height: 260px; background: linear-gradient(
  180deg,
  rgba(10,26,43,0) 0%,
  rgba(10,26,43,0.22) 35%,
  rgba(10,26,43,0.55) 65%,
  rgba(10,26,43,1) 100%
); }

.section { background: #fff; padding: 64px 0; }
.section-muted { background: var(--bg); }
.section h2 { margin: 0 0 22px; font-size: 28px; letter-spacing: -0.01em; color: var(--ink); }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.card { padding: 18px; border: 1px solid var(--border); border-radius: 14px; background: #fff; }
.card-icon { font-size: 24px; }
.card h3 { margin: 8px 0; font-size: 18px; }
.card p { margin: 0; color: var(--muted); }

/* Hype list under hero copy */
.hype-list { margin: 10px 0 0; padding: 0; list-style: none; color: rgba(255,255,255,0.9); font-size: 14px; }
.hype-list li { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.hype-list li::before { content: "•"; color: #52d273; font-weight: 900; }

/* Platform demo */
.platform { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 20px; align-items: start; }
.platform .muted { color: var(--muted); }
.modules { list-style: none; padding: 0; margin: 14px 0; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
.modules li { padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: #fff; font-weight: 600; cursor: pointer; user-select: none; text-align: center; }
.modules li.is-active { border-color: #cbd5e1; box-shadow: 0 6px 16px rgba(39,76,119,0.10); }
.panel-hint { height: 20px; font-size: 12px; color: var(--brand-ink); opacity: 0; transition: opacity .2s ease; }
.panel-hint.is-visible { opacity: 1; }
.panel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.panel { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 12px; position: relative; overflow: hidden; }
.panel .panel-title { font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.panel .panel-sub { font-size: 12px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.kpi { background: #f8fafc; border: 1px solid #e8edf2; border-radius: 10px; padding: 10px; text-align: center; }
.kpi .num { font-weight: 700; font-size: 20px; display: block; }
.big-num { font-size: 28px; font-weight: 700; color: var(--ink); }
.big-num .unit { font-size: 14px; color: var(--muted); margin-left: 4px; }
.big-num.danger { color: #d9534f; }
.spark { margin-top: 6px; }
.sparkline { fill: none; stroke: #274c77; stroke-width: 2; opacity: 0.9; }
.panel.is-hot::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 2px rgba(39,76,119,0.25); border-radius: 12px; animation: pulse 1.8s ease; }

@keyframes pulse {
  0% { box-shadow: inset 0 0 0 2px rgba(39,76,119,0.30); }
  100% { box-shadow: inset 0 0 0 2px rgba(39,76,119,0); }
}

@media (max-width: 960px) {
  .platform { grid-template-columns: 1fr; }
  .panel-grid { grid-template-columns: 1fr 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
}

/* On larger screens, keep the top of the hero image visible */
@media (min-width: 961px) {
  .hero-image { object-position: top center; }
}

.pricing { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.price-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 18px; position: relative; }
.price-card.highlight { border-color: #cbd5e1; box-shadow: 0 6px 24px rgba(39,76,119,0.12); }
.ribbon { position: absolute; top: 12px; right: 12px; font-size: 12px; background: #fff; color: var(--brand); border: 1px solid #cbd5e1; border-radius: 999px; padding: 4px 8px; }
.price-tier { font-weight: 600; color: var(--ink); }
.price-amount { font-size: 28px; font-weight: 700; margin: 6px 0 10px; color: var(--ink); }
.price-amount .per { font-size: 14px; font-weight: 600; color: var(--muted); margin-left: 6px; }
/* Premium card: show the trial duration as a green subscript */
.price-card.highlight .price-amount .per {
  color: #52d273;           /* success green */
  font-size: 12px;          /* smaller for subscript look */
  vertical-align: sub;      /* subscript alignment */
}
.price-points { padding: 0; margin: 0; list-style: none; color: var(--muted); }
.price-points li { margin: 6px 0; }
.price-note { margin-top: 12px; color: var(--muted); }
.price-note.small { margin-top: 4px; font-size: 12px; color: var(--muted); }

.contact { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 20px; align-items: center; }
.contact-row { display: flex; gap: 10px; margin-top: 12px; }
.contact-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 16px; display: flex; align-items: center; gap: 12px; }
.mini-logo { width: 40px; height: 40px; border-radius: 10px; background: linear-gradient(160deg, #0a66a3, #274c77); display: grid; place-items: center; color: #fff; font-weight: 700; }
.contact-meta { color: var(--muted); }

/* Email helper popover */
.email-menu { position: fixed; inset: 0; display: grid; place-items: start center; padding-top: 20vh; background: rgba(11,21,34,0.45); backdrop-filter: blur(2px); z-index: 100; }
.email-menu[hidden] { display: none; }
.email-menu-inner { width: min(520px, 92vw); background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 16px 48px rgba(39,76,119,0.18); overflow: hidden; }
.email-menu-title { font-weight: 700; color: var(--ink); padding: 14px 16px; border-bottom: 1px solid var(--border); }
.email-options { list-style: none; padding: 8px; margin: 0; display: grid; gap: 8px; }
.email-options li { margin: 0; }
.email-options button { width: 100%; text-align: left; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; font-weight: 600; color: var(--ink); cursor: pointer; }
.email-options button:hover { background: #f8fafc; }

.site-footer { background: #fff; border-top: 1px solid var(--border); }
.footer-inner { height: 64px; display: flex; align-items: center; justify-content: space-between; }
.footer-links a { color: var(--muted); text-decoration: none; margin-left: 12px; }
.footer-links a:hover { color: var(--ink); }

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-over { margin-top: calc(-90px + var(--header-h)); }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pricing { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
}
