:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --text: #1a1a2e;
  --muted: #6c6c7f;
  --border: #e6e6ef;
  --primary: #0d6efd;
  --primary-hover: #0b5ed7;
  --accent: #198754;
  --danger: #d9534f;
  --shadow: 0 8px 30px rgba(26, 26, 46, 0.08);
  --radius: 10px;
  --max-width: 760px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #11111a;
    --surface: #1a1a2e;
    --text: #f4f4f8;
    --muted: #a0a0b0;
    --border: #2a2a40;
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 22px;
}

/* Focus styles (keyboard accessibility) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary);
  color: #fff;
  padding: 8px 16px;
  z-index: 100;
  text-decoration: none;
  font-weight: 600;
  border-radius: 0 0 var(--radius) 0;
}

.skip-link:focus {
  top: 0;
}

/* Visually hidden helper */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cta { transition: none; }
  .cta:hover { transform: none; }
}

/* Hero */
.hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 64px 0 48px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(25, 135, 84, 0.08);
  border: 1px solid rgba(25, 135, 84, 0.18);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.lang-switch {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  margin-bottom: 18px;
  font-size: 0.85rem;
  font-weight: 600;
}

.lang-switch a {
  color: var(--muted);
  text-decoration: none;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.lang-switch a[aria-current="true"] {
  color: var(--text);
  border-color: var(--border);
  background: var(--bg);
}

.lang-switch a:hover { color: var(--primary); }

.hero h1 {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 18px;
}

.hero p {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  padding: 14px 28px;
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.cta:hover { background: var(--primary-hover); transform: translateY(-1px); }

@media (prefers-reduced-motion: reduce) {
  .cta:hover { transform: none; }
}

.cta.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  font-weight: 500;
}
.cta.secondary:hover { background: var(--bg); }

.hero-visual {
  margin-top: 38px;
  display: flex;
  justify-content: center;
}

.hero-visual img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

/* Sections */
section {
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
}

section:last-of-type { border-bottom: none; }

h2 {
  font-size: 1.55rem;
  font-weight: 700;
  margin-bottom: 22px;
  line-height: 1.25;
}

/* Problem */
.problem ul,
.why ul {
  list-style: none;
  display: grid;
  gap: 14px;
}

.problem li,
.why li {
  position: relative;
  padding-left: 30px;
  font-size: 1.02rem;
}

.problem li::before,
.why li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.problem li::before { background: var(--danger); }
.why li::before { background: var(--accent); }

/* Steps */
.steps { counter-reset: step; display: grid; gap: 18px; }

.step {
  position: relative;
  padding: 22px 22px 22px 74px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 20px;
  top: 20px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.step strong { display: block; font-size: 1.08rem; margin-bottom: 4px; }
.step p { color: var(--muted); }

/* Pricing */
.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow);
}

.price-range {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.pricing-card .desc {
  color: var(--muted);
  font-size: 1rem;
  max-width: 520px;
  margin: 0 auto 12px;
}

.pricing-card .note { color: var(--muted); font-size: 0.85rem; }

/* Form */
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}

.form-card .note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 12px;
}

.form-status {
  margin-top: 16px;
  padding: 14px;
  border-radius: 8px;
  background: rgba(25, 135, 84, 0.08);
  border: 1px solid rgba(25, 135, 84, 0.18);
  color: var(--text);
  font-size: 0.95rem;
}

.form-status.error {
  background: rgba(217, 83, 79, 0.08);
  border-color: rgba(217, 83, 79, 0.25);
}

.copy-fallback { margin-top: 12px; }
.copy-fallback p { margin-bottom: 8px; color: var(--muted); font-size: 0.85rem; }
.copy-fallback textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  resize: vertical;
}
.copy-fallback .copy-btn { margin-top: 10px; }

/* FAQ */
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 10px;
}

.faq summary {
  font-weight: 600;
  cursor: pointer;
  font-size: 1.02rem;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.98rem;
}

/* Demo video preview */
.demo-video {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.demo-video .lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 620px;
  margin-bottom: 28px;
}

.video-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  background: var(--bg);
}

.video-card img {
  display: block;
  width: 100%;
  height: auto;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(17, 17, 26, 0.42);
  color: #fff;
  text-align: center;
  padding: 20px;
}

.play-btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--primary);
  display: grid;
  place-items: center;
  font-size: 28px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.play-label {
  font-size: 0.95rem;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  max-width: 260px;
  line-height: 1.35;
}

/* Trust bar */
.trust {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
}

.trust-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.trust-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.trust-item strong {
  font-size: 1rem;
  color: var(--text);
}

.trust-item span {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.45;
}

/* Language divider */
.lang-divider {
  background: var(--surface);
  color: var(--muted);
  text-align: center;
  padding: 18px 0;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* Visually hidden heading for the French demo section */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Footer */
footer {
  background: var(--surface);
  color: var(--muted);
  padding: 36px 0;
  text-align: center;
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
}

footer a { color: var(--text); text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cta, .hero-visual img { transition: none; }
}

/* Focus visibility */
.cta:focus-visible,
.form-group input:focus-visible,
.form-group select:focus-visible,
.form-group textarea:focus-visible,
.copy-btn:focus-visible,
.faq summary:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Demo page transcript */
.demo-hero { padding-bottom: 32px; }

.demo-call { background: var(--bg); }

.demo-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-bottom: 28px;
  font-size: 0.9rem;
  color: var(--muted);
}

.demo-role {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--accent);
}

.demo-patient {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.transcript {
  list-style: none;
  display: grid;
  gap: 14px;
  counter-reset: demo-line;
}

.transcript li {
  position: relative;
  padding: 18px 18px 18px 64px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.transcript li::before {
  counter-increment: demo-line;
  content: counter(demo-line);
  position: absolute;
  left: 16px;
  top: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.9rem;
  background: var(--border);
  color: var(--text);
}

.transcript .rina-line::before { background: var(--primary); color: #fff; }
.transcript .patient-line::before { background: rgba(25, 135, 84, 0.12); color: var(--accent); }

.transcript .speaker {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
  color: var(--muted);
}

.transcript .rina-line .speaker { color: var(--primary); }
.transcript .patient-line .speaker { color: var(--accent); }

.transcript .line {
  display: block;
  font-size: 1.02rem;
  line-height: 1.5;
}

.transcript .line.speaking {
  font-weight: 600;
}

.transcript li.active-line {
  border-color: var(--primary);
  background: rgba(13, 110, 253, 0.05);
}

.demo-note {
  margin-top: 28px;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: rgba(25, 135, 84, 0.08);
  border: 1px solid rgba(25, 135, 84, 0.18);
  color: var(--text);
  font-size: 0.9rem;
}

.demo-cta {
  text-align: center;
  background: var(--surface);
}

.demo-cta-inline {
  text-align: center;
  margin-top: 28px;
}

.demo-cta-inline .lead {
  margin-bottom: 18px;
}

.demo-cta p {
  max-width: 560px;
  margin: 0 auto 22px;
  color: var(--muted);
}

/* Print */
@media print {
  .hero-actions, .lang-divider, .form-card, .cta { display: none; }
  body { background: #fff; color: #000; }
  section { border-bottom: 1px solid #ccc; }
}

/* Responsive */
@media (max-width: 620px) {
  .hero h1 { font-size: 1.75rem; }
  .hero p { font-size: 1rem; }
  .form-row { grid-template-columns: 1fr; }
  .step { padding-left: 68px; }
  .step::before { left: 16px; top: 16px; }
  .trust-bar { grid-template-columns: 1fr; }
  .play-btn { width: 58px; height: 58px; font-size: 22px; }
  .play-label { font-size: 0.85rem; }
}
