:root {
  --bg: #0d0d0d;
  --card: #1a1a1a;
  --card-2: #242424;
  --text: #ffffff;
  --text-2: #9ca3af;
  --accent: #4f8cff;
  --success: #22c55e;
  --radius: 20px;
  --maxw: 1080px;
}

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

html { scroll-behavior: smooth; }

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

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Nav */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 13, 13, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; color: var(--text); text-decoration: none; }
.logo img { width: 32px; height: 32px; border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--text-2); text-decoration: none; font-size: 0.95rem; }
.nav-links a:hover { color: var(--text); }
.lang-switch { border: 1px solid rgba(255,255,255,0.15); border-radius: 8px; padding: 4px 10px; font-weight: 600; }

/* Hero */
.hero { padding: 84px 0 60px; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; }
.hero h1 .accent { color: var(--accent); }
.hero p.sub { margin-top: 20px; font-size: 1.15rem; color: var(--text-2); max-width: 34rem; }
.hero-cta { margin-top: 32px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--text); color: var(--bg);
  border-radius: 14px; padding: 12px 22px;
  text-decoration: none; font-weight: 700;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.store-badge:hover { transform: translateY(-2px); opacity: 0.92; }
.store-badge svg { width: 26px; height: 26px; }
.store-badge .lines { display: flex; flex-direction: column; line-height: 1.2; text-align: left; }
.store-badge .small { font-size: 0.7rem; font-weight: 500; }
.store-badge .big { font-size: 1.05rem; }
.cta-note { font-size: 0.85rem; color: var(--text-2); }
.hero-phone { display: flex; justify-content: center; position: relative; }
.hero-phone::before {
  content: ""; position: absolute; inset: -50px -30px;
  background: radial-gradient(circle at 50% 40%, rgba(79, 140, 255, 0.12), transparent 62%);
  pointer-events: none;
}
.phone {
  position: relative;
  width: min(300px, 80vw); border-radius: 38px; padding: 10px;
  background: #101114; border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 30px 80px rgba(79, 140, 255, 0.14), 0 8px 30px rgba(0,0,0,0.6);
}
.phone img { width: 100%; height: auto; border-radius: 28px; display: block; }


/* Interactive daily-score demo */
.demo-card {
  width: min(360px, 92vw);
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
  position: relative;
}
.demo-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.demo-title { font-weight: 800; font-size: 1.15rem; }
.demo-hint {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--accent);
  animation: pulse-hint 2.2s ease-in-out infinite;
}
.demo-ring-row { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; min-height: 96px; }
.demo-ring { position: relative; width: 96px; height: 96px; flex-shrink: 0; }
.demo-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: #2d3038; stroke-width: 10; }
.ring-fill {
  fill: none; stroke: var(--accent); stroke-width: 10; stroke-linecap: round;
  transition: stroke-dashoffset 0.45s ease, stroke 0.3s ease;
}
.demo-ring-text {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.demo-ring-text span { font-weight: 800; font-size: 1.25rem; }
.demo-ring-text small { color: var(--text-2); font-size: 0.68rem; }
.demo-status { font-size: 0.92rem; color: var(--text-2); }
.demo-quote { font-size: 0.92rem; font-weight: 600; color: var(--success); }
.demo-items { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.demo-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; background: var(--card-2); border-radius: 14px;
  cursor: pointer; user-select: none;
  border: 1px solid transparent; transition: border-color 0.2s;
}
.demo-item:hover { border-color: rgba(255, 255, 255, 0.12); }
.demo-chip {
  position: relative;
  width: 32px; height: 32px; border-radius: 10px;
  background: var(--card); border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  display: flex; align-items: center; justify-content: center;
}
.demo-chip::after {
  content: ""; position: absolute; bottom: -5px; left: 50%;
  transform: translateX(-50%);
  width: 13px; height: 2.5px; border-radius: 2px;
  background: var(--tick, var(--accent));
}
.demo-item .name { font-weight: 600; font-size: 0.95rem; flex: 1; }
.demo-check {
  width: 24px; height: 24px; border-radius: 50%;
  border: 2px solid var(--text-2); color: transparent;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 800; transition: all 0.2s;
}
.demo-item.done .demo-check { background: var(--success); border-color: var(--success); color: #06220f; }
.demo-item.done .name { color: var(--text-2); text-decoration: line-through; }

/* Heartbeat: one soft beat on completion */
.beat { animation: heart-beat 0.35s ease-out; }
@keyframes heart-beat {
  0% { transform: scale(1); }
  30% { transform: scale(1.18); }
  100% { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .beat { animation: none; }
}

/* FAQ: minimal editorial list, no boxes */
.faq { max-width: 46rem; margin: 0; }
.faq details {
  background: transparent; border: 0; border-radius: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 0; margin: 0;
}
.faq details:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.faq summary {
  cursor: pointer; font-weight: 650; font-size: 1.02rem;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; color: var(--text-2); font-weight: 500; font-size: 1.2rem;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 10px; color: var(--text-2); font-size: 0.96rem; }
@keyframes pulse-hint {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
@media (prefers-reduced-motion: reduce) {
  .demo-hint { animation: none; }
  .ring-fill { transition: none; }
}

/* Closing CTA */
.closing-cta {
  text-align: center;
  background: var(--card);
  border: 1px solid rgba(79, 140, 255, 0.18);
  border-radius: var(--radius);
  padding: 56px 32px;
}
.closing-cta h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; }
.closing-cta p { margin: 12px auto 28px; color: var(--text-2); max-width: 34rem; }

/* Sections: left-aligned, editorial */
section { padding: 72px 0; }
.eyebrow {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--accent);
  display: block; margin-bottom: 10px;
}
.section-head { text-align: left; max-width: 44rem; margin: 0 0 40px; }
.section-head h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 800; letter-spacing: -0.01em; }
.section-head p { margin-top: 12px; color: var(--text-2); font-size: 1.05rem; }

/* Pulse divider between sections: a flat line with one heartbeat */
.pulse-divider {
  display: flex; align-items: center; gap: 0;
}
.pulse-divider::before, .pulse-divider::after {
  content: ""; flex: 1; height: 1px; background: rgba(255, 255, 255, 0.08);
}
.pulse-divider svg { width: 72px; height: 18px; flex-shrink: 0; }
.pulse-divider path {
  fill: none; stroke: var(--accent); stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round; opacity: 0.75;
}

/* Hero ECG line drawing itself under the headline */
.hero-ecg {
  width: min(320px, 100%); height: 30px;
  margin-top: 18px; display: block;
}
.hero-ecg path {
  fill: none; stroke: var(--accent); stroke-width: 2.5;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 620; stroke-dashoffset: 620;
  animation: ecg-hero-draw 1.4s ease-out 0.3s forwards;
}
@keyframes ecg-hero-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .hero-ecg path { animation: none; stroke-dashoffset: 0; }
}

/* A day with Pulse: timeline along the pulse line */
.day-timeline { list-style: none; position: relative; margin-top: 6px; }
.day-timeline::before {
  content: ""; position: absolute; left: 17px; top: 10px; bottom: 10px;
  width: 2px; background: var(--card-2);
}
.day-moment {
  position: relative; display: flex; gap: 20px; padding: 15px 0;
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.day-moment.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .day-moment { opacity: 1; transform: none; transition: none; }
}
.day-node {
  position: relative; z-index: 1; flex-shrink: 0;
  width: 36px; height: 36px; border-radius: 11px;
  background: var(--card-2); border: 1px solid rgba(255, 255, 255, 0.07);
  display: flex; align-items: center; justify-content: center;
  color: var(--text);
}
.day-node::after {
  content: ""; position: absolute; bottom: -6px; left: 50%;
  transform: translateX(-50%);
  width: 15px; height: 3px; border-radius: 2px;
  background: var(--tick, var(--accent));
}
.day-node svg { width: 17px; height: 17px; }
.day-moment.success .day-node { background: #1b3223; color: var(--success); border-color: rgba(34, 197, 94, 0.3); }
.day-moment.success .day-node::after { background: var(--success); }
.day-time {
  font-size: 0.76rem; font-weight: 700; letter-spacing: 0.05em;
  color: var(--text-2);
}
.day-body h3 { font-size: 1.05rem; margin: 3px 0 4px; }
.day-body p { color: var(--text-2); font-size: 0.95rem; max-width: 33rem; }

.demo-chip svg { width: 18px; height: 18px; }
.privacy .shield { color: var(--success); display: flex; align-items: center; }
.privacy .shield svg { width: 42px; height: 42px; flex-shrink: 0; }


/* Privacy strip */
.privacy {
  background: var(--card); border-radius: var(--radius);
  padding: 40px; display: flex; gap: 24px; align-items: center;
  border: 1px solid rgba(79, 140, 255, 0.3);
}
.privacy .shield { font-size: 2.4rem; }
.privacy p { color: var(--text-2); font-size: 0.95rem; }



/* Footer */
footer { border-top: 1px solid rgba(255,255,255,0.06); padding: 36px 0 48px; color: var(--text-2); font-size: 0.9rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
footer a { color: var(--text-2); }
footer a:hover { color: var(--text); }

/* Cookie banner */
.cookie-banner {
  position: fixed; bottom: 16px; left: 16px; right: 16px; z-index: 100;
  max-width: 560px; margin: 0 auto;
  background: var(--card-2); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px; padding: 18px 20px;
  display: none; gap: 14px; align-items: center; flex-wrap: wrap;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}
.cookie-banner.visible { display: flex; }
.cookie-banner p { flex: 1 1 260px; font-size: 0.85rem; color: var(--text-2); }
.cookie-banner button {
  border: 0; border-radius: 10px; padding: 10px 18px; font-weight: 700; cursor: pointer; font-size: 0.9rem;
}
.cookie-accept { background: var(--accent); color: #fff; }
.cookie-decline { background: transparent; color: var(--text-2); border: 1px solid rgba(255,255,255,0.2) !important; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 56px; }
  .hero p.sub { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
    .privacy { flex-direction: column; text-align: center; }
  .nav-links a:not(.lang-switch):not(.nav-cta) { display: none; }
}

/* Legal pages */
.legal { max-width: 46rem; padding: 56px 24px 72px; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 800; letter-spacing: -0.01em; }
.legal-date { margin: 10px 0 8px; color: var(--text-2); font-size: 0.9rem; }
.legal h2 { margin: 30px 0 8px; font-size: 1.12rem; font-weight: 700; }
.legal p { color: var(--text-2); font-size: 0.97rem; margin-bottom: 8px; }
.legal a { color: var(--accent); }

.made-by { margin-top: 12px; font-size: 0.82rem; color: var(--text-2); }
