/* Landing page additions for ReconoMed (uses vars from styles.css) */

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--font-family);
  color: var(--text-primary);
  background: var(--bg-main);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.6);
}

.header-inner {
  height: 72px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 180px;
}

.brand-logo {
  height: 36px;
  object-fit: contain;
}

.brand-name {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.nav-link {
  font-weight: 600;
  color: rgba(17, 24, 39, 0.8);
  padding: 10px 10px;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.nav-link:hover {
  background: rgba(8, 145, 178, 0.10);
  color: var(--text-primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: calc(var(--border-radius) + 2px);
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow);
  background: var(--bg-content);
}

.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }

.btn-primary {
  background: var(--primary);
  color: white;
  border-color: rgba(0,0,0,0.06);
}

.btn-primary:hover { background: var(--primary-dark); }

.btn-ghost {
  background: rgba(255,255,255,0.75);
  border-color: rgba(8, 145, 178, 0.25);
  color: var(--text-primary);
}

.btn-small { padding: 10px 12px; font-weight: 700; }
.btn-full { width: 100%; }

/* Hero */
.hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  align-items: center;
  padding-top: 92px; /* offset for fixed header */
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("img/hero.png");
  background-size: cover;
  background-position: center;
  filter: saturate(1.05);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
      90deg,
      rgba(240, 252, 255, 0.92) 0%,
      rgba(240, 252, 255, 0.80) 40%,
      rgba(240, 252, 255, 0.35) 100%
    );
}

.hero-content {
  position: relative;
  padding: 56px 0;
}

.hero-title {
  font-family: var(--font-family-heading);
  font-size: clamp(32px, 3.6vw, 52px);
  line-height: 1.12;
  margin: 0 0 16px 0;
  letter-spacing: -0.02em;
  max-width: 18ch;
}

.hero-subtitle {
  margin: 0 0 24px 0;
  font-size: 18px;
  color: rgba(17, 24, 39, 0.82);
  max-width: 62ch;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Sections */
.section {
  padding: 72px 0;
  background: transparent;
}

.section-alt {
  background: rgba(255, 255, 255, 0.55);
  border-top: 1px solid rgba(229, 231, 235, 0.7);
  border-bottom: 1px solid rgba(229, 231, 235, 0.7);
}

.section-title {
  font-family: var(--font-family-heading);
  font-size: 34px;
  margin: 0 0 14px 0;
  letter-spacing: -0.02em;
}

.section-title.center { text-align: center; }

.lead {
  font-size: 18px;
  color: rgba(17, 24, 39, 0.82);
}

/* Split (Problem section) */
.split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: center;
}

.split-text p { margin: 10px 0; color: rgba(17, 24, 39, 0.86); }
.split-media { display: grid; }

.media-img {
  width: 100%;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(229, 231, 235, 0.8);
  background: white;
}

/* Responsive video embed (16:9) — injected after facade click */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(229, 231, 235, 0.8);
  background: #000;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Video facade: image + play button overlay */
.video-facade {
  position: relative;
  cursor: pointer;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(229, 231, 235, 0.8);
  display: block;
}

.video-facade img {
  display: block;
  width: 100%;
  transition: filter 0.2s ease-in-out;
}

.video-facade:hover img {
  filter: brightness(0.82);
}

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.93);
  color: var(--primary);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.22);
  transition: background 0.2s ease-in-out, color 0.2s ease-in-out, transform 0.2s ease-in-out;
  padding-left: 4px; /* optical center for play triangle */
}

.video-facade:hover .play-btn {
  background: var(--primary);
  color: white;
  transform: translate(-50%, -50%) scale(1.1);
}

/* Centered quote */
.centered-quote { padding-top: 28px; }
.big-quote {
  margin: 0;
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
  padding: 18px 18px;
  background: rgba(8, 145, 178, 0.10);
  border: 1px solid rgba(8, 145, 178, 0.20);
  border-radius: 16px;
}

/* Features */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  align-items: center;
  padding: 26px 0;
}

.feature-row-reverse .feature-media { order: 2; }
.feature-row-reverse .feature-text { order: 1; }

.feature-quote {
  margin: 0;
  padding: 18px 18px;
  border-left: 4px solid var(--primary);
  background: rgba(255,255,255,0.85);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.feature-quote p { margin: 10px 0; }

.feature-card {
  padding: 18px 18px;
  background: rgba(255,255,255,0.85);
  border-radius: 16px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(229, 231, 235, 0.8);
  border-right: 4px solid var(--primary);
}

.feature-card p { margin: 10px 0; }

/* Access */
.access {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 26px;
  align-items: start;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.badge {
  padding: 8px 10px;
  background: rgba(8, 145, 178, 0.10);
  border: 1px solid rgba(8, 145, 178, 0.18);
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
}

/* Form */
.form {
  background: rgba(255,255,255,0.9);
  border-radius: 16px;
  padding: 18px;
  border: 1px solid rgba(229, 231, 235, 0.85);
  box-shadow: var(--shadow-lg);
}

.field { display: grid; gap: 8px; margin-bottom: 14px; }
.label { font-weight: 700; color: rgba(17, 24, 39, 0.85); }

.input {
  height: 44px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border-default);
  background: white;
  outline: none;
  transition: var(--transition);
  font: inherit;
}

.input:focus {
  border-color: rgba(8, 145, 178, 0.55);
  box-shadow: 0 0 0 4px rgba(8, 145, 178, 0.15);
}

.form-note {
  margin: 10px 0 0 0;
  font-size: 13px;
  color: rgba(107, 114, 128, 0.95);
}

/* Footer references */
.section-footer { padding: 44px 0 56px; }
.divider {
  border: none;
  height: 1px;
  background: rgba(229, 231, 235, 0.9);
  margin: 0 0 18px 0;
}

.footnote-title { margin: 0 0 8px 0; font-weight: 800; }
.footnotes { margin: 0; padding-left: 18px; color: rgba(17, 24, 39, 0.80); }
.footnotes li { margin: 10px 0; }
.copyright { margin: 18px 0 0; color: rgba(107, 114, 128, 0.95); }

/* Responsive */
@media (max-width: 920px) {
  .header-nav { display: none; }
  .split { grid-template-columns: 1fr; }
  .feature-row { grid-template-columns: 1fr; }
  .feature-row-reverse .feature-media,
  .feature-row-reverse .feature-text { order: initial; }
  .access { grid-template-columns: 1fr; }
  .hero-title { max-width: 24ch; }
}

@media (prefers-reduced-motion: reduce) {
  .btn, .nav-link, .input { transition: none; }
  .btn:hover { transform: none; }
}

.form-success, .form-error {
  margin-top: 12px;
  padding: 12px 12px;
  border-radius: 12px;
  font-weight: 700;
}

.form-success {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.form-error {
  background: rgba(239, 68, 68, 0.10);
  border: 1px solid rgba(239, 68, 68, 0.22);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}