:root {
  color-scheme: light;
  --ink: #17211f;
  --muted: #5c6864;
  --line: #dce3df;
  --paper: #ffffff;
  --wash: #f5f7f2;
  --teal: #0f766e;
  --teal-dark: #0b4f4b;
  --amber: #d8942c;
  --blue: #295b7a;
  --danger: #a7472c;
  --shadow: 0 18px 48px rgba(23, 33, 31, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "YuGothic", "Segoe UI", sans-serif;
  line-height: 1.7;
}

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

img,
svg {
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  padding: 12px 40px;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(220, 227, 223, 0.78);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: #ffffff;
  background: var(--teal);
  border-radius: 8px;
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a:hover,
.brand:hover {
  color: var(--teal-dark);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 16px;
  color: #ffffff;
  background: var(--teal-dark);
  border-radius: 8px;
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: 660px;
  display: flex;
  align-items: center;
  background-image: url("assets/hero-review-reply-ai.png");
  background-position: center;
  background-size: cover;
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 72px 0 76px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 610px;
  margin: 0;
  font-size: 52px;
  line-height: 1.16;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.3;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.45;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 560px;
  margin: 22px 0 0;
  color: #2f3a37;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  color: #ffffff;
  background: var(--teal-dark);
  box-shadow: 0 10px 24px rgba(11, 79, 75, 0.22);
}

.button.primary:hover {
  background: #093f3c;
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  border-color: var(--line);
}

.button:disabled {
  cursor: progress;
  opacity: 0.72;
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  max-width: 620px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.hero-metrics li {
  min-width: 136px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(220, 227, 223, 0.9);
  border-radius: 8px;
}

.metric-value {
  display: block;
  font-size: 24px;
  font-weight: 850;
  line-height: 1.1;
}

.metric-label {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.section {
  padding: 88px 0;
}

.section-inner {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 32px;
}

.section-heading p:last-child,
.pricing-grid p,
.form-grid > div > p,
.problem-grid p {
  color: var(--muted);
}

.problem-band,
.feature-band {
  background: var(--wash);
}

.problem-grid,
.pricing-grid,
.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: start;
}

.problem-list {
  display: grid;
  gap: 14px;
}

.problem-list p {
  margin: 0;
  padding: 16px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.sample-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.06fr) minmax(0, 1.06fr);
  gap: 18px;
  align-items: stretch;
}

.review-card,
.reply-card,
.feature-grid article,
.price-list article {
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.review-card {
  background: #fbfaf5;
}

.review-card p,
.reply-card p:last-child,
.feature-grid p,
.price-list p {
  margin: 0;
  color: var(--muted);
}

.stars {
  width: fit-content;
  margin-bottom: 18px;
  color: var(--amber);
  font-size: 16px;
  letter-spacing: 0;
}

.reply-card {
  box-shadow: var(--shadow);
}

.reply-card.warning {
  border-color: #e8c9bd;
  box-shadow: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin: 0 0 14px;
  padding: 4px 9px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
}

.badge.normal {
  color: var(--teal-dark);
  background: #e2f2ed;
}

.badge.caution {
  color: var(--danger);
  background: #f9e7df;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.feature-grid article {
  min-height: 190px;
}

.pricing-band {
  background: #12211e;
  color: #ffffff;
}

.pricing-band .eyebrow,
.pricing-grid p {
  color: #b6d8cf;
}

.price-list {
  display: grid;
  gap: 12px;
}

.price-list article {
  display: grid;
  grid-template-columns: 0.7fr 1fr;
  gap: 8px 18px;
  align-items: center;
  color: var(--ink);
}

.price-list span {
  color: var(--teal-dark);
  font-weight: 850;
}

.price-list strong {
  font-size: 24px;
  line-height: 1.2;
}

.price-list p {
  grid-column: 1 / -1;
}

.form-band {
  background: #f7f4ee;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  color: #2f3a37;
}

.check-list li::before {
  position: absolute;
  left: 0;
  top: 0.18em;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  color: #ffffff;
  background: var(--teal);
  border-radius: 50%;
  content: "✓";
  font-size: 12px;
  font-weight: 900;
}

.diagnosis-form {
  display: grid;
  gap: 16px;
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.diagnosis-form label {
  display: grid;
  gap: 7px;
  font-size: 14px;
  font-weight: 800;
}

.diagnosis-form input,
.diagnosis-form select,
.diagnosis-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 11px 12px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid #cfd8d3;
  border-radius: 8px;
  font: inherit;
  font-weight: 500;
}

.diagnosis-form textarea {
  resize: vertical;
}

.diagnosis-form input:focus,
.diagnosis-form select:focus,
.diagnosis-form textarea:focus {
  outline: 3px solid rgba(15, 118, 110, 0.18);
  border-color: var(--teal);
}

.form-button {
  width: 100%;
  margin-top: 4px;
  border: 0;
  font-size: 16px;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.form-message {
  display: none;
  margin: 0;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
}

.form-message.is-visible {
  display: block;
}

.form-message.is-success {
  color: #0b4f4b;
  background: #e2f2ed;
  border: 1px solid #b7dcd3;
}

.form-message.is-error {
  color: #8f321e;
  background: #f9e7df;
  border: 1px solid #e8c9bd;
}

.site-footer {
  padding: 34px 0;
  color: #dbe4df;
  background: #101614;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-size: 13px;
}

.footer-inner p {
  margin: 0;
}

.footer-inner a {
  color: #ffffff;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 900px) {
  .site-header {
    padding: 10px 22px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: 610px;
    background-position: 57% center;
  }

  .hero-inner,
  .section-inner {
    width: min(100% - 32px, 720px);
  }

  h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 28px;
  }

  .problem-grid,
  .pricing-grid,
  .form-grid,
  .sample-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    display: grid;
  }
}

@media (max-width: 560px) {
  .site-header {
    gap: 12px;
  }

  .brand span:last-child {
    max-width: 130px;
    line-height: 1.25;
  }

  .header-cta {
    min-height: 38px;
    padding: 8px 12px;
    font-size: 13px;
  }

  .hero {
    min-height: 590px;
    background-position: 66% center;
  }

  .hero::before {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.58);
    content: "";
  }

  .hero-inner {
    padding: 54px 0 48px;
  }

  h1 {
    max-width: 360px;
    font-size: 32px;
  }

  h2 {
    font-size: 24px;
  }

  .hero-copy {
    max-width: 340px;
    font-size: 16px;
  }

  .button {
    width: 100%;
  }

  .hero-metrics li {
    width: calc(50% - 7px);
    min-width: 0;
  }

  .section {
    padding: 64px 0;
  }

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

  .diagnosis-form {
    padding: 20px;
  }

}
