/* Q Cardio Monitor — site styles
   Palette mirrors the original Tailwind build (emerald/teal/cyan). */

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

:root {
  --emerald-50: #ecfdf5;  --emerald-100: #d1fae5;
  --emerald-600: #059669; --emerald-700: #047857;
  --teal-50: #f0fdfa;     --teal-100: #ccfbf1;
  --teal-600: #0d9488;    --teal-700: #0f766e;
  --cyan-50: #ecfeff;     --cyan-600: #0891b2;
  --blue-50: #eff6ff;     --blue-600: #2563eb;
  --purple-50: #faf5ff;   --purple-600: #9333ea;
  --pink-50: #fdf2f8;     --pink-600: #db2777;
  --gray-400: #9ca3af;    --gray-600: #4b5563;
  --gray-700: #374151;    --gray-800: #1f2937;
  --gray-900: #111827;
  --radius-card: 1rem;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--gray-900);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; }
ul { list-style: none; }
svg { width: 1.25em; height: 1.25em; flex-shrink: 0; }

.container { max-width: 72rem; margin: 0 auto; padding: 0 1rem; }
.container-narrow { max-width: 56rem; }
.container-prose { max-width: 48rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.header-inner {
  max-width: 72rem; margin: 0 auto; padding: 1rem;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: .75rem; }
.brand-logo { width: 2.5rem; height: 2.5rem; border-radius: .75rem; }
.brand-name { font-size: 1.25rem; font-weight: 700; color: var(--gray-900); }
.brand-light .brand-name { color: #fff; }

.site-nav { display: none; align-items: center; gap: 2rem; }
.site-nav a { color: var(--gray-600); font-weight: 500; transition: color .2s; }
.site-nav a:hover { color: var(--emerald-600); }
.site-nav .nav-cta {
  background: var(--emerald-600); color: #fff;
  padding: .5rem 1.25rem; border-radius: 9999px;
}
.site-nav .nav-cta:hover { background: var(--emerald-700); color: #fff; }
@media (min-width: 768px) { .site-nav { display: flex; } }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--emerald-50) 0%, var(--teal-50) 50%, var(--cyan-50) 100%);
  padding: 4rem 0 5rem;
}
.hero-grid {
  display: grid; gap: 3rem; align-items: center;
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr 1fr; }
}
.hero-title { font-size: 3rem; line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; }
.hero-tagline { font-size: 1.5rem; font-weight: 600; color: var(--emerald-700); margin-top: 1rem; }
.hero-text { font-size: 1.125rem; color: var(--gray-600); margin-top: 1rem; max-width: 34rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: 1rem 2rem; border-radius: 1rem;
  font-weight: 600; font-size: 1rem;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn svg { width: 1.25rem; height: 1.25rem; }
.btn-primary {
  background: var(--emerald-600); color: #fff;
  box-shadow: 0 10px 20px -8px rgba(5,150,105,.5);
}
.btn-primary:hover { background: var(--emerald-700); transform: translateY(-2px); }
.btn-outline {
  background: #fff; color: var(--emerald-700);
  border: 2px solid var(--emerald-100);
}
.btn-outline:hover { border-color: var(--emerald-600); }
.btn-light { background: #fff; color: var(--emerald-600); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -8px rgba(0,0,0,.25); }
.btn-ghost-light {
  background: transparent; color: #fff;
  border: 2px solid rgba(255,255,255,.4);
}
.btn-ghost-light:hover { border-color: #fff; }

.hero-badges {
  display: flex; flex-wrap: wrap; gap: 2rem; margin-top: 2.5rem;
  font-size: .875rem; color: var(--teal-700); font-weight: 600;
}
.hero-badges li { display: flex; align-items: center; gap: .5rem; }
.hero-badges svg { color: var(--emerald-600); }

/* Phone mockup */
.hero-visual { position: relative; display: flex; justify-content: center; }
.phone-frame {
  position: relative;
  width: 20rem; height: 37.5rem; max-width: 90vw;
  background: linear-gradient(180deg, var(--gray-800), var(--gray-900));
  border-radius: 3rem; padding: .5rem;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,.35);
}
.phone-screen {
  width: 100%; height: 100%;
  background: #fff; border-radius: 2.5rem; overflow: hidden;
}
.phone-screen img { width: 100%; height: 100%; object-fit: cover; }
.float-badge {
  position: absolute; display: flex; align-items: center; justify-content: center;
  border-radius: 9999px; box-shadow: 0 10px 15px -3px rgba(0,0,0,.1);
}
.float-badge svg { width: 2rem; height: 2rem; }
.float-top {
  top: -1rem; left: 1rem; width: 5rem; height: 5rem;
  background: var(--emerald-100); color: var(--emerald-600);
}
.float-bottom {
  bottom: -1rem; right: 1rem; width: 4rem; height: 4rem;
  background: var(--teal-100); color: var(--teal-600);
}
@media (min-width: 1024px) { .float-top { left: -1rem; } .float-bottom { right: -1rem; } }

/* ---------- Features ---------- */
.features { padding: 5rem 0; background: #fff; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header h2 {
  font-size: 2.25rem; font-weight: 800; letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.section-header p { font-size: 1.25rem; color: var(--gray-600); max-width: 42rem; margin: 0 auto; }

.features-grid {
  display: grid; gap: 1.5rem;
}
@media (min-width: 640px)  { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features-grid { grid-template-columns: repeat(3, 1fr); } }

.card {
  padding: 2rem; border-radius: var(--radius-card);
  transition: box-shadow .3s, transform .3s;
}
.card:hover { box-shadow: 0 10px 25px -8px rgba(0,0,0,.15); transform: translateY(-4px); }
.card-emerald { background: linear-gradient(135deg, var(--emerald-50), var(--teal-50)); }
.card-teal    { background: linear-gradient(135deg, var(--teal-50), var(--cyan-50)); }
.card-blue    { background: linear-gradient(135deg, var(--blue-50), var(--cyan-50)); }
.card-cyan    { background: linear-gradient(135deg, var(--cyan-50), var(--blue-50)); }
.card-purple  { background: linear-gradient(135deg, var(--purple-50), var(--pink-50)); }
.card-pink    { background: linear-gradient(135deg, var(--pink-50), var(--purple-50)); }

.card-icon {
  width: 3rem; height: 3rem; border-radius: .75rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem; color: #fff;
}
.card-icon svg { width: 1.5rem; height: 1.5rem; }
.icon-emerald { background: var(--emerald-600); }
.icon-teal    { background: var(--teal-600); }
.icon-blue    { background: var(--blue-600); }
.icon-cyan    { background: var(--cyan-600); }
.icon-purple  { background: var(--purple-600); }
.icon-pink    { background: var(--pink-600); }

.card h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: .75rem; }
.card p { color: var(--gray-600); line-height: 1.7; }

/* ---------- FAQ ---------- */
.faq { padding: 5rem 0; background: linear-gradient(135deg, var(--emerald-50), var(--teal-50)); }
.faq-list { display: grid; gap: 1rem; }
.faq-item {
  background: #fff; border-radius: var(--radius-card);
  padding: 1.25rem 1.5rem;
  border: 1px solid rgba(5,150,105,.12);
}
.faq-item summary {
  font-weight: 600; font-size: 1.0625rem; cursor: pointer;
  list-style: none; position: relative; padding-right: 2rem;
}
.faq-item summary::after {
  content: "+"; position: absolute; right: 0; top: 0;
  font-size: 1.5rem; font-weight: 400; color: var(--emerald-600);
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin-top: .75rem; color: var(--gray-600); }

/* ---------- CTA ---------- */
.cta {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--emerald-600), var(--teal-700));
  text-align: center;
}
.cta-inner { display: grid; gap: 1.5rem; justify-items: center; }
.cta h2 { font-size: 2.25rem; font-weight: 800; color: #fff; }
.cta > .container > p, .cta-inner > p {
  font-size: 1.25rem; color: var(--emerald-100); max-width: 42rem;
}
.cta-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.cta-badges {
  display: flex; flex-wrap: wrap; gap: 2rem; justify-content: center;
  font-size: .875rem; color: var(--emerald-100);
}
.cta-badges li { display: flex; align-items: center; gap: .5rem; }
.cta-badges svg { color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--gray-900); color: #fff; padding: 3rem 0 0; }
.footer-grid {
  display: grid; gap: 2rem;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-brand p { color: var(--gray-400); font-size: .9375rem; margin-top: 1rem; max-width: 20rem; }
.footer-col h4 { font-weight: 600; margin-bottom: 1rem; font-size: 1rem; }
.footer-col a {
  display: block; color: var(--gray-400); font-size: .875rem;
  margin-bottom: .5rem; transition: color .2s;
}
.footer-col a:hover { color: #fff; }
.footer-mail { display: flex; align-items: center; gap: .5rem; }
.footer-mail svg { width: 1rem; height: 1rem; }
.footer-bottom {
  border-top: 1px solid var(--gray-800); margin-top: 2rem;
  padding: 2rem 0; text-align: center;
  font-size: .875rem; color: var(--gray-400);
}
.footer-bottom a { color: var(--gray-400); text-decoration: underline; }
.footer-bottom a:hover { color: #fff; }

/* Language switcher */
.footer-langs {
  display: flex; flex-wrap: wrap; gap: .5rem 1.25rem;
  margin-top: 2rem; padding-top: 1.5rem;
  border-top: 1px solid var(--gray-800);
  font-size: .8125rem;
}
.footer-langs a { color: var(--gray-400); transition: color .2s; }
.footer-langs a:hover { color: #fff; }
.footer-langs a.active { color: #fff; font-weight: 600; }

/* Cookie consent banner */
.consent-banner {
  position: fixed; bottom: 1rem; left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: min(42rem, calc(100% - 2rem));
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--gray-900); color: #fff;
  border-radius: 1rem;
  box-shadow: 0 20px 40px -12px rgba(0,0,0,.4);
  font-size: .875rem;
}
.consent-text { flex: 1 1 20rem; margin: 0; }
.consent-text a { color: var(--emerald-100); text-decoration: underline; }
.consent-actions { display: flex; gap: .5rem; }
.consent-btn {
  padding: .5rem 1.25rem; border-radius: 9999px;
  font-weight: 600; font-size: .875rem; cursor: pointer;
  border: 2px solid transparent; transition: background .2s, border-color .2s;
}
.consent-accept { background: var(--emerald-600); color: #fff; }
.consent-accept:hover { background: var(--emerald-700); }
.consent-reject {
  background: transparent; color: var(--gray-400);
  border-color: var(--gray-700);
}
.consent-reject:hover { color: #fff; border-color: var(--gray-400); }

/* RTL (Hebrew) */
[dir="rtl"] .faq-item summary { padding-right: 0; padding-left: 2rem; }
[dir="rtl"] .faq-item summary::after { right: auto; left: 0; }
[dir="rtl"] .float-top { left: auto; right: 1rem; }
[dir="rtl"] .float-bottom { right: auto; left: 1rem; }
@media (min-width: 1024px) {
  [dir="rtl"] .float-top { right: -1rem; }
  [dir="rtl"] .float-bottom { left: -1rem; }
}

/* ---------- Privacy page ---------- */
.privacy { padding: 3rem 0 5rem; }
.privacy h1 { font-size: 2.5rem; font-weight: 800; margin-bottom: 1rem; }
.privacy-updated { color: var(--gray-600); margin-bottom: 1.5rem; }
.privacy section { margin-top: 2.5rem; }
.privacy h2 { font-size: 1.5rem; font-weight: 600; margin-bottom: 1rem; }
.privacy h3 { font-size: 1.125rem; font-weight: 600; margin: 1.25rem 0 .5rem; }
.privacy p { color: var(--gray-700); margin-bottom: 1rem; }

.checklist li {
  position: relative; padding-left: 1.75rem;
  color: var(--gray-700); margin-bottom: .5rem;
}
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .4rem;
  width: .5rem; height: .5rem; border-radius: 9999px;
  background: var(--emerald-600);
}
.contact-list li { margin-bottom: .5rem; }
.contact-list a {
  color: var(--emerald-600); font-weight: 500;
}
.contact-list a:hover { color: var(--emerald-700); text-decoration: underline; }
.back-link { margin-top: 3rem; }
.back-link a { color: var(--emerald-600); font-weight: 600; }
.back-link a:hover { color: var(--emerald-700); }

/* ---------- Accessibility ---------- */
:focus-visible {
  outline: 3px solid var(--emerald-600);
  outline-offset: 2px;
  border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card { transition: none; }
}
