:root {
  --primary: #bc9a3b;
  --primary-dark: #8a6d24;
  --ink: #111827;
  --muted: #5f6b7a;
  --soft: #f3f3f3;
  --line: #dbdbdb;
  --gold: #bc9a3b;
  --radius: 30px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

a { color: inherit; text-decoration: none; }

span { color: var(--primary); }

.site-header,
.page-shell,
.site-footer {
  width: min(1300px, calc(100% - 20px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 58px 0 34px;
}

.brand img { width: clamp(180px, 18vw, 220px); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 500;
  text-transform: uppercase;
  white-space: nowrap;
}

.button-primary { background: var(--primary); color: #fff; }
.button-light { background: #fff; color: var(--primary); border-color: var(--line); }

.hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  justify-items: center;
  padding: 20px 0 10px;
}

.hero-tile {
  width: 100%;
  max-width: 630px;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.hero-copy-block {
  width: 100%;
  padding: clamp(30px, 4vw, 45px);
  border-radius: var(--radius);
  background: var(--soft);
  display: flex;
  flex-direction: column;
  gap: clamp(30px, 4vw, 45px);
}

.hero-copy-block h1 {
  margin: 0;
  font-size: clamp(1.125rem, 2.4vw, 1.875rem);
  font-weight: 400;
  line-height: 1.25;
}

.hero-copy-block p,
.section-heading p,
.intro-panel p,
.benefit-copy p,
.cta-panel p,
.slider-copy p,
.faq p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero-copy img { border-radius: 22px; width: 100%; }

.image-card { display: grid; place-items: end; background: #edf5ef; }
.image-card img { width: 100%; height: 100%; object-fit: cover; }

.testimonial {
  padding: 54px;
  background: #fff;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
}

.quote-mark { color: var(--primary); font-size: clamp(5rem, 8vw, 7rem); line-height: 0.55; font-family: Georgia, serif; }
.testimonial p { margin: 0; font-size: 1.25rem; line-height: 1.75; font-weight: 300; }
.stars { display: flex; gap: 5px; }
.stars img { width: 22px; height: 22px; }
.doctor { display: flex; align-items: center; gap: 15px; }
.doctor img { width: 52px; height: 52px; border-radius: 50%; }
.doctor small { display: block; color: var(--muted); margin-top: 4px; }

.panel,
.cta-panel {
  margin-top: 20px;
  padding: clamp(30px, 5vw, 60px);
  border-radius: var(--radius);
  background: var(--soft);
}

.section-heading { max-width: 960px; margin: 0 auto 34px; text-align: center; }
h2 { margin: 0; font-size: clamp(1.25rem, 2.4vw, 2rem); font-weight: 400; line-height: 1.25; }
h3 { margin: 0; font-size: 1rem; }

.screen-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 24px;
  align-items: center;
  overflow-x: auto;
  padding: 8px 4px 18px;
}

.screen-row img {
  width: 100%;
  max-width: 210px;
  margin-inline: auto;
  filter: drop-shadow(0 18px 24px rgba(12, 35, 25, 0.16));
}

.slider-nav { max-width: 480px; margin: 50px auto 0; display: flex; align-items: center; gap: clamp(15px, 3vw, 30px); }
.slider-arrow { flex: 0 0 clamp(30px, 4vw, 40px); width: clamp(30px, 4vw, 40px); height: clamp(30px, 4vw, 40px); }
.slider-copy { flex: 1; text-align: center; }
.slider-copy p { margin: 8px 0 0; }

.intro-panel {
  margin-top: 20px;
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) 1.1fr;
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  padding: clamp(32px, 7vw, 90px);
  border-radius: var(--radius);
  background: #050505;
  color: #fff;
}

.intro-panel p { color: #e7ece9; }
.intro-panel .button-light { width: fit-content; }

.benefits {
  display: grid;
  grid-template-columns: 1.4fr repeat(2, minmax(170px, 0.6fr));
  gap: 20px;
  align-items: stretch;
  padding: 42px 20px;
}

.benefit-copy { align-self: center; padding: 20px 26px; }
.benefit-copy h2 strong { display: block; margin-top: 8px; }

.meter-card {
  min-height: 310px;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(188, 154, 59, 0.35);
  display: flex;
  align-items: end;
}

.meter-card > div {
  width: 100%;
  min-height: 44%;
  padding: 28px;
  background: var(--primary);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: end;
}

.meter-card strong { font-size: 2.25rem; font-weight: 400; }
.meter-card p { margin: 8px 0 0; line-height: 1.45; }

.faq { padding: 52px 0 30px; }
.faq > h2 { text-align: center; margin-bottom: 24px; }
.faq-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.faq article { padding: 30px 20px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.faq h3 { padding-left: 54px; min-height: 42px; position: relative; line-height: 1.45; }
.faq h3::before { content: ""; position: absolute; left: 0; top: 0; width: 40px; height: 40px; background: url("/assets/question-outline-gold.svg") center / contain no-repeat; }

.cta-panel { text-align: center; margin-bottom: 20px; }
.cta-panel p { max-width: 720px; margin: 18px auto 28px; }
.cta-panel .button-light { border-color: transparent; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08); }

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 36px 0 48px;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer img { width: 170px; }
.site-footer a { color: var(--primary-dark); font-weight: 700; }

@media (max-width: 900px) {
  .site-header,
  .site-footer { flex-direction: column; text-align: center; padding-top: 30px; }
  .hero-grid,
  .intro-panel,
  .benefits,
  .faq-grid { grid-template-columns: 1fr; }
  .hero-tile { aspect-ratio: auto; max-width: 830px; }
  .screen-row { grid-template-columns: repeat(4, minmax(180px, 1fr)); }
  .benefits { padding-inline: 0; }
}

@media (max-width: 560px) {
  .header-actions { width: 100%; justify-content: center; flex-wrap: wrap; }
  .button { min-height: 40px; padding-inline: 22px; }
  .hero-copy-block,
  .testimonial { padding: 30px; }
  .testimonial p { font-size: 1rem; }
  .intro-panel { padding: 30px; }
  .screen-row { gap: 14px; }
}

.form-panel,
.legal {
  max-width: 920px;
  margin: 0 auto 30px;
}

.form-panel h1,
.legal h1 {
  margin: 0 0 24px;
  text-align: center;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
}

form {
  display: grid;
  gap: 20px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  padding: 14px 16px;
}

textarea { min-height: 200px; resize: vertical; }

form .button { justify-self: center; border: 0; cursor: pointer; }

.legal p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

@media (max-width: 700px) {
  .form-grid { grid-template-columns: 1fr; }
}

.recovered-footer {
  width: 100%;
  max-width: none;
  margin-top: 28px;
  padding: 60px 10px;
  background: #050505;
  color: #fff;
  display: grid;
  gap: 30px;
  text-align: center;
}

.recovered-footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  padding-bottom: 6px;
}

.recovered-footer a {
  color: #fff;
  font-size: 1.1rem;
  text-decoration: none;
}

.recovered-footer a:hover { color: #d9c47a; text-decoration: underline; }

.footer-main {
  width: min(1280px, calc(100% - 20px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  gap: clamp(30px, 6vw, 84px);
  align-items: center;
  justify-items: center;
}

.footer-main img { width: min(240px, 80vw); }
.footer-main p,
.apple-note,
.copyright {
  margin: 0;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.6;
}

.apple-note { max-width: 640px; margin-inline: auto; }
.copyright strong { font-weight: 700; }

@media (max-width: 760px) {
  .footer-main { grid-template-columns: 1fr; }
}

/* Homepage recovery pass: closer to the original React hero tile layout. */
.hero-photo {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.hero-visual {
  position: relative;
  overflow: hidden;
  background: #fff;
}

.hero-visual img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.hero-visual-bottom {
  justify-content: flex-end;
}

.testimonial {
  padding: clamp(30px, 5vw, 80px) clamp(30px, 4vw, 60px);
  border: 0;
  background: #fff;
  gap: 28px;
}

@media (max-width: 900px) {
  .hero-tile {
    aspect-ratio: auto;
    max-width: 830px;
  }
}

.legal-page {
  max-width: 980px;
  padding: clamp(30px, 5vw, 60px);
}

.eyebrow-text {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
}

.legal h2 {
  margin: 34px 0 12px;
  font-size: 1.35rem;
  font-weight: 700;
}

.legal h3 {
  margin: 22px 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
}

.legal ul {
  display: grid;
  gap: 10px;
  margin: 12px 0 0;
  padding-left: 1.25rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  list-style: disc;
}

.legal li::marker {
  color: var(--primary);
}

.legal a {
  color: var(--primary-dark);
  font-weight: 700;
  text-decoration: underline;
}
