/* 8kultrasound.com landing page - mobile first */

:root {
  --brand: #f68d8b;
  --brand-dark: #e57371;
  --text: #1f2937;
  --text-muted: #6b7280;
  --bg: #ffffff;
  --bg-alt: #f8f9fa;
  --border: #e5e7eb;
  --max-width: 1100px;
  --max-width-narrow: 760px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

img { max-width: 100%; height: auto; display: block; }

a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 {
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 0.5em;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; margin-top: 0; }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.container.narrow { max-width: var(--max-width-narrow); }

section { padding: 3rem 0; }

/* ----- Hero ----- */
.hero {
  padding: 3rem 0 3.5rem;
  text-align: center;
  background: linear-gradient(180deg, #fff5f4 0%, #ffffff 70%);
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  max-width: 760px;
  margin: 0 auto 1rem;
  font-size: 2rem;
}

.subhead {
  max-width: 640px;
  margin: 0 auto 1.5rem;
  font-size: 1.1rem;
  color: var(--text-muted);
}

.cta-supporting {
  margin-top: 0.75rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.cta {
  display: inline-block;
  background: var(--brand);
  color: #ffffff;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.95rem 1.75rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.05s ease;
  box-shadow: 0 4px 14px rgba(246, 141, 139, 0.35);
}

.cta:hover {
  background: var(--brand-dark);
  text-decoration: none;
  color: #ffffff;
}

.cta:active { transform: translateY(1px); }

/* Hero 3-image fade: ultrasound -> 8K result -> after birth */
.hero-fade {
  margin: 2.5rem auto 0;
  max-width: 460px;
}

.hero-fade-frames {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  background: var(--bg-alt);
}

.hero-frame {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: hero-cycle 9s infinite;
}

.hero-frame.frame-1 { animation-delay: 0s; }
.hero-frame.frame-2 { animation-delay: 3s; }
.hero-frame.frame-3 { animation-delay: 6s; }

.hero-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.frame-label {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0.6rem 0.75rem 0.55rem;
  background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0));
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.02em;
}

.hero-fade figcaption {
  margin-top: 0.85rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

@keyframes hero-cycle {
  0%, 100% { opacity: 0; }
  4%       { opacity: 1; }
  37%      { opacity: 1; }
  41%      { opacity: 0; }
}

/* ----- What is ----- */
.what-is { background: var(--bg-alt); }
.what-is h2 { text-align: center; }

/* ----- How it works ----- */
.how-it-works h2 { text-align: center; margin-bottom: 2rem; }

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.steps li {
  position: relative;
  padding: 1.25rem 1.25rem 1.25rem 4rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.step-num {
  position: absolute;
  left: 1.25rem;
  top: 1.25rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.steps h3 { margin: 0 0 0.25em; }
.steps p { margin: 0; color: var(--text-muted); }

/* ----- Comparison ----- */
.comparison { background: var(--bg-alt); }
.comparison h2 { text-align: center; margin-bottom: 1.5rem; }

.cmp-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  font-size: 0.95rem;
}

.cmp-table th,
.cmp-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.cmp-table thead th {
  background: #fafafa;
  font-weight: 600;
}

.cmp-table tbody tr:last-child th,
.cmp-table tbody tr:last-child td {
  border-bottom: none;
}

.cmp-table th[scope="row"] {
  font-weight: 500;
  color: var(--text);
  background: #fff;
}

.cmp-table td.us,
.cmp-table th.us {
  background: #fff5f4;
}

.cmp-table .us strong {
  color: var(--brand-dark);
}

/* ----- Examples ----- */
.examples h2 { text-align: center; margin-bottom: 2rem; }

.examples-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.example { margin: 0; }

.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-alt);
  border: 1px solid var(--border);
}

.pair img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* ----- Testimonial ----- */
.testimonial { background: var(--bg-alt); }

.testimonial blockquote {
  font-size: 1.15rem;
  line-height: 1.5;
  margin: 0 0 1.5rem;
  padding: 0 0 0 1rem;
  border-left: 3px solid var(--brand);
  color: var(--text);
}

.testimonial cite {
  display: block;
  margin-top: 0.75rem;
  font-style: normal;
  font-weight: 600;
  color: var(--text-muted);
}

.testimonial-images {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.testimonial-images figure { margin: 0; text-align: center; }
.testimonial-images img {
  border-radius: 10px;
  border: 1px solid var(--border);
}
.testimonial-images figcaption {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ----- FAQ ----- */
.faq h2 { text-align: center; margin-bottom: 1.5rem; }

.faq details {
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.02rem;
  list-style: none;
  position: relative;
  padding-right: 2rem;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: -2px;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--brand);
  transition: transform 0.15s ease;
}

.faq details[open] summary::after { content: "−"; }

.faq details p {
  margin: 0.6rem 0 0;
  color: var(--text-muted);
}

/* ----- Final CTA ----- */
.final-cta {
  background: linear-gradient(180deg, #ffffff 0%, #fff5f4 100%);
  text-align: center;
  border-top: 1px solid var(--border);
}

.final-cta h2 { margin-bottom: 0.5rem; }
.final-cta p { color: var(--text-muted); margin-bottom: 1.5rem; }

/* ----- Footer ----- */
footer {
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 2rem 0 2.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

footer a { color: var(--text-muted); }
footer .powered-by { margin: 0 0 0.75rem; }
footer nav { margin: 0 0 0.5rem; }
footer nav a { margin: 0 0.5rem; }

/* ----- Responsive: tablet ----- */
@media (min-width: 640px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  .hero h1 { font-size: 2.5rem; }
  .subhead { font-size: 1.2rem; }
  body { font-size: 18px; }

  .examples-grid { grid-template-columns: 1fr 1fr; }
  .testimonial-images { grid-template-columns: 1fr 1fr 1fr; }
}

/* ----- Responsive: desktop ----- */
@media (min-width: 960px) {
  section { padding: 4rem 0; }
  .hero { padding: 4.5rem 0 5rem; }
  .hero h1 { font-size: 3rem; }
  .hero-fade { max-width: 500px; }

  .steps { grid-template-columns: 1fr 1fr 1fr; }

  .examples-grid { grid-template-columns: 1fr 1fr 1fr; }

  .cmp-table { font-size: 1rem; }
  .cmp-table th, .cmp-table td { padding: 1rem 1.25rem; }
}
