/* =============================================================
   EMPOWERED × CareOrb AI — Showcase
   Light. Confident. Video-forward. Pure responsive.
   CareOrb design-system tokens: Inter only · burgundy + slate
   ============================================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Brand scale (foundation/tokens/colors.md) */
  --brand-50:  #fdf2f2;
  --brand-100: #fde3e3;
  --brand-200: #fbcaca;
  --brand-300: #f7a3a3;
  --brand-400: #ee6a6a;
  --brand-500: #d94040;
  --brand-600: #a81c1c;
  --brand-700: #780003;
  --brand-800: #600002;
  --brand-900: #430001;

  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50:  #f8fafc;

  --white: #ffffff;
  --black: #000000;

  --container-max: 1200px;
  --container-mid: 920px;

  --shadow-player: 0 30px 80px rgba(15,23,42,0.10), 0 6px 18px rgba(15,23,42,0.06);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-snap: cubic-bezier(0.4, 0, 0.2, 1);
}

html, body { height: 100%; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--white);
  color: var(--slate-900);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv11', 'ss01';
  line-height: 1.55;
  min-height: 100vh;
  display: flex; flex-direction: column;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
button:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--brand-700); outline-offset: 2px; border-radius: 6px; }

main { flex: 1; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
}

/* ===== Header ===== */
.site-header {
  border-bottom: 1px solid var(--slate-200);
  background: rgba(255,255,255,0.88);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 18px 32px;
  display: flex; align-items: center;
  min-height: 72px;
}
.lockup { display: flex; align-items: center; gap: 18px; }
.logo-empowered { height: 38px; width: auto; }
.lockup-divider { width: 1px; height: 28px; background: var(--slate-200); }
.partner { display: flex; align-items: center; gap: 10px; }
.logo-careorb { height: 40px; width: 40px; object-fit: contain; }
.partner-name {
  font-weight: 600;
  font-size: 16px;
  color: var(--slate-900);
  letter-spacing: -0.1px;
}
.partner-name .ai { color: var(--brand-700); font-weight: 700; }

/* ===== Stage (hero + player) ===== */
.stage {
  padding: 64px 0 24px;
}
.hero-title {
  font-weight: 300;
  font-size: clamp(34px, 5.4vw, 60px);
  line-height: 1.06;
  letter-spacing: -0.8px;
  color: var(--slate-900);
  max-width: 1000px;
}
.hero-title .ht-amp {
  font-weight: 300;
  color: var(--slate-500);
  font-style: italic;
  letter-spacing: 0;
  padding: 0 8px;
  font-size: 0.82em;
}
.hero-title .accent {
  color: var(--brand-700);
  font-weight: 500;
}
.hero-sub {
  margin-top: 18px;
  color: var(--slate-600);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.4;
  max-width: 760px;
  font-weight: 400;
}

.player-wrap {
  margin: 36px auto 0;
  max-width: 1100px;
  padding: 0 32px;
}
.player {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-player);
  user-select: none;
  -webkit-user-select: none;
}
.player video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  background: #000;
  display: block;
  -webkit-touch-callout: none;
}
.player video::-webkit-media-controls,
.player video::-webkit-media-controls-enclosure { display: none !important; }

/* Big play overlay */
.big-play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, rgba(8,11,17,0.30) 0%, rgba(8,11,17,0.55) 100%);
  transition: opacity 220ms var(--ease-out);
  z-index: 5;
}
.big-play svg { filter: drop-shadow(0 8px 28px rgba(0,0,0,0.45)); transition: transform 220ms var(--ease-out); }
.big-play:hover svg { transform: scale(1.04); }
.big-play:hover svg circle { fill: rgba(255,255,255,1); }
.big-play:hover svg path { fill: var(--brand-800); }
.player[data-state="playing"] .big-play,
.player[data-state="paused-inline"] .big-play,
.player[data-state="loading"] .big-play,
.player[data-state="error"] .big-play { opacity: 0; pointer-events: none; }

/* Loading */
.player-loading {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(5,9,18,0.5);
  z-index: 4;
}
.spinner {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,0.18);
  border-top-color: var(--brand-400);
  animation: spin 900ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Error */
.player-error {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px;
  background: rgba(5,9,18,0.94);
  color: var(--white);
  text-align: center;
  padding: 32px;
  z-index: 6;
}
.player-error-title { font-size: 17px; font-weight: 500; letter-spacing: -0.2px; }
.player-error-msg { color: rgba(255,255,255,0.65); font-size: 13.5px; max-width: 460px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 13.5px; font-weight: 500;
  border: 1px solid transparent;
  transition: all 140ms var(--ease-snap);
  margin-top: 6px;
}
.btn-primary { background: var(--brand-700); color: var(--white); }
.btn-primary:hover { background: var(--brand-800); }

/* Tap layers */
.tap-layer {
  position: absolute; top: 0; bottom: 64px;
  width: 33.33%;
  z-index: 2; background: transparent;
}
.tap-left { left: 0; }
.tap-center { left: 33.33%; }
.tap-right { right: 0; }

.seek-toast, .speed-toast {
  position: absolute;
  top: 50%; transform: translateY(-50%) scale(0.92);
  background: rgba(0,0,0,0.65);
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.4px;
  opacity: 0; pointer-events: none;
  transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out);
  z-index: 8;
}
.seek-toast-left { left: 16%; }
.seek-toast-right { right: 16%; }
.speed-toast { left: 50%; transform: translate(-50%, -50%) scale(0.92); top: 16%; }
.seek-toast.show, .speed-toast.show { opacity: 1; transform: translateY(-50%) scale(1); }
.speed-toast.show { transform: translate(-50%, -50%) scale(1); }

/* Controls */
.controls {
  position: absolute; left: 0; right: 0; bottom: 0;
  z-index: 7;
  padding: 36px 12px 8px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.55) 70%, rgba(0,0,0,0.78) 100%);
  color: var(--white);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out);
}
.player[data-state="playing"]:hover .controls,
.player[data-state="paused-inline"] .controls,
.player[data-state="paused"] .controls,
.player[data-state="loading"] .controls,
.player[data-controls="forced"] .controls,
.player[data-controls="visible"] .controls { opacity: 1; transform: none; }
.player[data-state="idle"] .controls { opacity: 0; pointer-events: none; }

.scrubber-wrap { padding: 0 8px 6px; }
.scrubber { position: relative; height: 18px; cursor: pointer; display: flex; align-items: center; }
.scrubber-track {
  position: relative; flex: 1; height: 4px;
  background: rgba(255,255,255,0.22);
  border-radius: 999px; overflow: hidden;
  transition: height 140ms var(--ease-snap);
}
.scrubber:hover .scrubber-track,
.scrubber.is-dragging .scrubber-track { height: 6px; }
.scrubber-buffered, .scrubber-played {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 0%; border-radius: inherit;
}
.scrubber-buffered { background: rgba(255,255,255,0.32); }
.scrubber-played { background: var(--brand-500); }
.scrubber-thumb {
  position: absolute;
  width: 14px; height: 14px; left: 0%; top: 50%;
  transform: translate(-50%, -50%);
  background: var(--white);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
  opacity: 0;
  transition: opacity 140ms var(--ease-snap);
  pointer-events: none;
}
.scrubber:hover .scrubber-thumb,
.scrubber.is-dragging .scrubber-thumb { opacity: 1; }

.scrubber-preview {
  position: absolute;
  bottom: calc(100% + 12px);
  transform: translateX(-50%);
  background: rgba(0,0,0,0.85);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 6px;
  pointer-events: none;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.scrubber-preview-img { width: 160px; height: 90px; background: #111 center/contain no-repeat; border-radius: 4px; }
.scrubber-preview-time { font-size: 11.5px; color: rgba(255,255,255,0.92); font-weight: 500; }

.controls-row { display: flex; align-items: center; gap: 4px; padding: 4px 6px 6px; }
.ctrl {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 6px;
  color: rgba(255,255,255,0.92);
  transition: background 120ms var(--ease-snap), transform 120ms var(--ease-snap);
}
.ctrl:hover { background: rgba(255,255,255,0.12); color: #fff; }
.ctrl:active { transform: scale(0.94); }
.ctrl-label { font-size: 12px; font-weight: 600; letter-spacing: 0.2px; padding: 0 8px; }
.ctrl-menu-trigger { width: auto; }

.icon-pause, .icon-vol-off, .icon-fs-off { display: none; }
.player.is-playing .icon-play { display: none; }
.player.is-playing .icon-pause { display: inline; }
.player.is-muted .icon-vol-on { display: none; }
.player.is-muted .icon-vol-off { display: inline; }
.player.is-fullscreen .icon-fs-on { display: none; }
.player.is-fullscreen .icon-fs-off { display: inline; }

.ctrl-volume { display: flex; align-items: center; gap: 4px; }
.volume-slider {
  -webkit-appearance: none; appearance: none;
  width: 0; height: 4px;
  background: rgba(255,255,255,0.22);
  border-radius: 999px;
  transition: width 220ms var(--ease-out);
  outline: none;
}
.ctrl-volume:hover .volume-slider,
.ctrl-volume:focus-within .volume-slider { width: 80px; }
.volume-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: #fff; }
.volume-slider::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: #fff; border: none; }

.ctrl-time {
  display: flex; align-items: center; gap: 4px;
  font-size: 12.5px; font-weight: 500;
  font-variant-numeric: tabular-nums;
  margin-left: 8px;
  color: rgba(255,255,255,0.92);
}
.ctrl-time .time-sep { opacity: 0.5; }
.ctrl-spacer { flex: 1; }

.ctrl-menu { position: relative; }
.menu-popover {
  position: absolute;
  bottom: calc(100% + 8px); right: 0;
  background: rgba(15,23,42,0.96);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 6px;
  min-width: 130px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  z-index: 9;
}
.menu-popover[hidden] { display: none; }
.menu-item {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px; color: rgba(255,255,255,0.86);
  text-align: left;
  transition: background 100ms var(--ease-snap);
}
.menu-item:hover { background: rgba(255,255,255,0.08); color: #fff; }
.menu-item.is-active { color: var(--brand-300); }
.menu-check { font-size: 11px; opacity: 0.8; }
.menu-item:not(.is-active) .menu-check { visibility: hidden; }

.player:fullscreen { width: 100vw; height: 100vh; border-radius: 0; }
.player:fullscreen video { object-fit: contain; }

/* ===== Tagline ===== */
.tagline {
  padding: 96px 24px;
  text-align: center;
  max-width: var(--container-max);
  margin: 0 auto;
}
.tagline-line {
  font-weight: 300;
  font-size: clamp(22px, 4.4vw, 44px);
  line-height: 1.22;
  letter-spacing: -0.5px;
  color: var(--slate-800);
  margin: 4px 0;
}
.tagline-line.tagline-final {
  color: var(--brand-700);
  font-weight: 400;
}

/* ===== Apps grid ===== */
.apps {
  padding: 56px 0 88px;
  border-top: 1px solid var(--slate-200);
  background: var(--slate-50);
}
.app-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}
.app-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 14px;
  padding: 22px 24px 24px;
  display: grid;
  grid-template-columns: 88px 1fr;
  grid-template-rows: auto auto;
  column-gap: 18px;
  row-gap: 6px;
  align-items: start;
  transition: transform 240ms var(--ease-out), box-shadow 240ms var(--ease-out), border-color 240ms var(--ease-out);
  box-shadow: 0 1px 2px rgba(15,23,42,0.03);
}
.app-card:hover {
  transform: translateY(-2px);
  border-color: var(--slate-300);
  box-shadow: 0 14px 28px rgba(15,23,42,0.06), 0 2px 6px rgba(15,23,42,0.03);
}
.app-illus {
  grid-row: 1 / 3;
  width: 88px;
  height: 88px;
  display: grid; place-items: center;
}
.app-illus img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  -webkit-user-drag: none;
  user-select: none;
}
.app-name {
  font-weight: 600;
  font-size: 16.5px;
  letter-spacing: -0.15px;
  color: var(--slate-900);
  margin-top: 4px;
}
.app-desc {
  color: var(--slate-600);
  font-size: 14px;
  line-height: 1.6;
  font-weight: 400;
}

/* ===== Contact ===== */
.contact {
  padding: 96px 0;
  background: var(--slate-50);
}
.contact .container { max-width: 760px; }

.contact-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 18px;
  box-shadow: 0 14px 48px rgba(8, 11, 17, 0.06);
  overflow: hidden;
  transition: box-shadow 240ms var(--ease-out);
}
.contact-card[data-expanded="true"] {
  box-shadow: 0 20px 60px rgba(8, 11, 17, 0.10);
}

.contact-card-head {
  padding: 48px 44px 40px;
  text-align: center;
}
.contact-title {
  font-weight: 300;
  font-size: clamp(28px, 3.6vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.6px;
  color: var(--slate-900);
  margin: 0;
}
.contact-sub {
  margin: 14px auto 0;
  color: var(--slate-600);
  font-size: 16px;
  line-height: 1.55;
  max-width: 520px;
}

.contact-people {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 32px 0 36px;
  text-align: left;
}
.contact-person {
  border: 1px solid var(--slate-200);
  border-left: 3px solid var(--brand-700);
  background: var(--slate-50);
  border-radius: 10px;
  padding: 14px 16px;
}
.contact-person:last-child { border-left-color: var(--slate-700); }
.contact-person-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--slate-900);
  letter-spacing: -0.1px;
}
.contact-person-role {
  margin-top: 4px;
  color: var(--slate-600);
  font-size: 12.5px;
  line-height: 1.5;
}

.contact-cta {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 auto;
  cursor: pointer;
}
.contact-cta-arrow { transition: transform 220ms var(--ease-snap); }
.contact-card[data-expanded="true"] .contact-cta { display: none; }

/* Animated form panel */
.contact-form-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 380ms var(--ease-out);
}
.contact-card[data-expanded="true"] .contact-form-panel {
  grid-template-rows: 1fr;
}
.contact-form-panel-inner {
  overflow: hidden;
  min-height: 0;
}
.contact-form {
  padding: 8px 44px 44px;
  border-top: 1px solid var(--slate-200);
  margin-top: 0;
}

.botcheck { position: absolute !important; left: -9999px; opacity: 0; pointer-events: none; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
  margin-bottom: 18px;
}
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--slate-700);
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.form-field input,
.form-field textarea {
  font-family: inherit;
  font-size: 15px;
  color: var(--slate-900);
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 8px;
  padding: 11px 14px;
  line-height: 1.5;
  transition: border-color 140ms var(--ease-snap), box-shadow 140ms var(--ease-snap);
  width: 100%;
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(120,0,3,0.10);
}
.form-actions {
  display: flex; align-items: center; gap: 14px;
  margin-top: 8px;
}
.btn-lg { padding: 12px 26px; font-size: 14.5px; }
.form-error { color: var(--brand-700); font-size: 13.5px; }
.form-success {
  margin-top: 18px;
  padding: 16px 20px;
  background: var(--brand-50);
  border: 1px solid var(--brand-200);
  border-radius: 10px;
  color: var(--brand-800);
  font-weight: 500;
  font-size: 15px;
  text-align: center;
}

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--slate-200);
  padding: 24px 0;
  background: var(--white);
}
.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 32px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px; flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--slate-500);
}
.powered { display: flex; align-items: center; gap: 10px; }
.powered img { height: 26px; width: 26px; object-fit: contain; }
.powered-name { font-size: 13px; color: var(--slate-700); font-weight: 600; }
.footer-meta { color: var(--slate-500); }

/* =============================================================
   Responsive — pure media queries (no JS toggle)
   ============================================================= */

@media (max-width: 960px) {
  .stage { padding: 36px 0 16px; }
  .hero-title { letter-spacing: -0.7px; }
  .player-wrap { padding: 0; margin-top: 28px; }
  .player { border-radius: 0; }
  .tagline { padding: 64px 24px; }
  .apps { padding: 44px 0 64px; }
  .app-grid { grid-template-columns: 1fr; gap: 14px; max-width: 560px; padding: 0 24px; }
  .app-card { grid-template-columns: 64px 1fr; column-gap: 14px; padding: 18px 18px 20px; }
  .app-illus { width: 64px; height: 64px; }
  .contact { padding: 64px 0; }
  .contact .container { padding: 0 24px; }
  .contact-people { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .container { padding: 0 20px; }
  .header-inner { padding: 14px 20px; }
  .lockup-divider { display: none; }
  .partner-name { display: none; }
  .logo-empowered { height: 30px; }
  .logo-careorb { height: 34px; width: 34px; }

  .stage { padding: 28px 0 12px; }
  .stage .container { text-align: center; }

  /* Stack the H1 hero centered: EMPOWERED / and / CareOrb AI */
  .hero-title {
    font-size: clamp(36px, 9vw, 48px);
    line-height: 1.05;
    letter-spacing: -0.6px;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-title .ht-line { display: block; white-space: nowrap; }
  .hero-title .ht-amp {
    padding: 6px 0 4px;
    font-size: 0.5em;
    line-height: 1;
  }
  .hero-sub { margin-left: auto; margin-right: auto; }

  .ctrl { width: 44px; height: 44px; }
  .ctrl-pip { display: none; }
  .ctrl-volume .volume-slider { display: none; }
  .scrubber { height: 22px; }

  .contact-card-head { padding: 36px 22px 28px; }
  .contact-form { padding: 8px 22px 32px; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 10px; padding: 0 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

@media print {
  .site-header, .player-wrap, .controls { display: none; }
}
