/* CozziTech site styles.
   Brand palette derived from the official logo:
   - Navy   #213554
   - Coral  #D34A4C
   - Mid-blue #527B99 */

:root {
  --ct-navy-900: #213554;
  --ct-navy-800: #1a2a45;
  --ct-navy-700: #2c4368;
  --ct-coral-600: #B8393B;
  --ct-coral-500: #D34A4C;
  --ct-coral-400: #E26D6F;
  --ct-blue-600: #3D6480;
  --ct-blue-500: #527B99;
  --ct-slate-900: #0F172A;
  --ct-slate-700: #334155;
  --ct-slate-500: #64748B;
  --ct-slate-200: #E2E8F0;
  --ct-slate-100: #F1F5F9;
  --ct-slate-50:  #F8FAFC;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ct-slate-900);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Visible focus indicator everywhere — accessibility default */
:focus-visible {
  outline: 2px solid var(--ct-coral-500);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Reserve space for screenshots so layout doesn't shift while image loads */
.screenshot img { display: block; width: 100%; height: auto; }

img, svg { max-width: 100%; }

.font-display {
  font-family: 'Inter', system-ui, sans-serif;
  letter-spacing: -0.02em;
}

.gradient-hero {
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(211,74,76,0.18), transparent 60%),
    radial-gradient(900px 600px at -10% 20%, rgba(82,123,153,0.28), transparent 60%),
    linear-gradient(180deg, #213554 0%, #1a2a45 100%);
}

.gradient-text {
  background: linear-gradient(90deg, #E26D6F 0%, #D34A4C 50%, #B8393B 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.75rem 1.25rem;
  border-radius: 0.625rem;
  background: var(--ct-coral-600);
  color: #fff;
  font-weight: 600;
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
  box-shadow: 0 1px 2px rgba(15,23,42,.08);
}
.btn-primary:hover { background: #9C2F31; transform: translateY(-1px); }

.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.75rem 1.25rem;
  border-radius: 0.625rem;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.25);
  transition: background .15s ease, border-color .15s ease;
}
.btn-secondary:hover { background: rgba(255,255,255,0.16); border-color: rgba(255,255,255,0.4); }

.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.75rem 1.25rem;
  border-radius: 0.625rem;
  background: #fff;
  color: var(--ct-navy-900);
  font-weight: 600;
  border: 1px solid var(--ct-slate-200);
  transition: background .15s ease, border-color .15s ease;
}
.btn-ghost:hover { background: var(--ct-slate-50); border-color: var(--ct-slate-500); }

.card {
  background: #fff;
  border: 1px solid var(--ct-slate-200);
  border-radius: 1rem;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -10px rgba(15,23,42,.12);
  border-color: #cbd5e1;
}

.badge {
  display: inline-flex; align-items: center;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.badge-live   { background: #ECFDF5; color: #047857; }
.badge-soon   { background: #FEF3C7; color: #B45309; }
.badge-new    { background: #FEE2E2; color: #B8393B; }
.badge-beta   { background: #F5F3FF; color: #6D28D9; }

.section { padding: 5rem 0; }
.section-tight { padding: 3rem 0; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--ct-coral-600);
}

.prose-list li { padding-left: 1.5rem; position: relative; }
.prose-list li::before {
  content: "";
  position: absolute; left: 0; top: 0.55rem;
  width: 0.5rem; height: 0.5rem; border-radius: 999px;
  background: var(--ct-coral-500);
}

.feature-icon {
  width: 2.5rem; height: 2.5rem;
  border-radius: 0.625rem;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #FEE2E2, #DBEAFE);
  color: var(--ct-navy-900);
}

/* nav active link (white-header style) */
.nav-link.active { color: var(--ct-navy-900) !important; }
.nav-link.active::after {
  content: ""; display: block; height: 2px; margin-top: 4px;
  background: var(--ct-coral-500); border-radius: 2px;
}

/* logo helpers */
.logo-mark { height: 2.25rem; width: auto; display: block; }
.logo-mark-lg { height: 2.75rem; width: auto; display: block; }
.logo-on-dark { filter: brightness(0) invert(1); }

/* mobile menu */
[data-mobile-menu][hidden] { display: none; }

/* skip-to-content for a11y */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: #fff; color: var(--ct-navy-900);
  padding: .5rem .75rem; border-radius: .375rem;
}
.skip-link:focus { left: 1rem; top: 1rem; outline: 2px solid var(--ct-coral-500); }

/* shadow for screenshot frames */
.screenshot {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--ct-slate-200);
  box-shadow: 0 30px 60px -25px rgba(33, 53, 84, 0.35), 0 12px 30px -12px rgba(15, 23, 42, 0.15);
  background: #fff;
}

/* Higher-contrast text helpers for use on the dark navy hero / footer.
   Plain Tailwind text-white/50 fails WCAG AA against #213554. */
.text-onhero-strong { color: rgba(255,255,255,0.92); }
.text-onhero-muted  { color: rgba(255,255,255,0.78); }
.text-onhero-soft   { color: rgba(255,255,255,0.72); }

/* Chat bubble surfaces with solid backgrounds so contrast checkers can
   compute foreground/background ratios (alpha-on-gradient confuses axe). */
.chat-bubble-them { background-color: #1F3052; }
.chat-bubble-you  { background-color: #2A3D62; }
.chat-name-them   { color: #FFB7B9; font-weight: 600; }
.chat-name-you    { color: rgba(255,255,255,0.85); }
