@import url("https://fonts.googleapis.com/css2?family=Lato:wght@400;700;900&display=swap");

:root {
  --green-700: #075f34;
  --green-600: #09793e;
  --green-500: #16a55a;
  --green-100: #e6f5ec;
  --ink-700: #111515;
  --ink-500: #3c4142;
  --ink-400: #6d7475;
  --sand-100: #f6f8f4;
  --gold-400: #d8a022;
  --white: #ffffff;
  --border: #e4eaeb;
  --shadow: 0 24px 70px rgba(38, 45, 46, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: Lato, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue",
    sans-serif;
  background: var(--sand-100);
  color: var(--ink-500);
  line-height: 1.6;
}

.page-shell {
  width: min(1120px, calc(100% - 48px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  align-items: center;
  padding: 56px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
  gap: 64px;
  align-items: center;
}

.hero-copy {
  max-width: 640px;
}

.brand-logo {
  width: 160px;
  height: auto;
  display: block;
  margin-bottom: 46px;
}

.eyebrow,
.panel-kicker {
  margin: 0 0 14px;
  color: var(--green-600);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  color: var(--green-700);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 620px;
  font-size: 4rem;
}

h2 {
  font-size: 1.75rem;
}

p {
  margin: 0;
  color: var(--ink-400);
}

.hero-text {
  max-width: 620px;
  margin-top: 24px;
  font-size: 1.18rem;
}

.demo-panel {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 34px;
  box-shadow: var(--shadow);
}

.demo-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--gold-400);
}

.panel-content p:not(.panel-kicker) {
  margin-top: 16px;
  font-size: 1rem;
}

.demo-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 28px 0;
}

.demo-meta div {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fbfcfb;
}

.demo-meta span {
  display: block;
  margin-bottom: 5px;
  color: var(--ink-400);
  font-size: 0.78rem;
  font-weight: 700;
}

.demo-meta strong {
  display: block;
  color: var(--ink-700);
  font-size: 0.96rem;
  line-height: 1.3;
}

.cta-button,
form button[type="submit"] {
  min-height: 48px;
  border: none;
  border-radius: 8px;
  background: var(--green-500);
  color: var(--white);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(22, 165, 90, 0.18);
  transition: background 0.18s, box-shadow 0.18s, transform 0.18s;
}

.cta-button {
  width: 100%;
  padding: 0 1.3rem;
}

.cta-button:hover,
form button[type="submit"]:hover {
  background: var(--green-600);
  box-shadow: 0 16px 30px rgba(9, 121, 62, 0.2);
  transform: translateY(-1px);
}

.modal-bg {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
  background: rgba(17, 21, 21, 0.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-bg.active {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  width: min(520px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  position: relative;
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  transition: opacity 0.28s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-bg.active .modal {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  background: var(--green-100);
  color: var(--green-600);
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}

.close-btn:hover {
  background: var(--green-500);
  color: var(--white);
}

.modal-title {
  margin: 8px 42px 8px;
  color: var(--green-700);
  font-size: 1.35rem;
  font-weight: 900;
  text-align: center;
}

.modal-desc {
  margin: 0 0 24px;
  color: var(--ink-400);
  font-size: 1rem;
  text-align: center;
}

form label {
  display: block;
  margin-bottom: 7px;
  color: var(--green-700);
  font-weight: 900;
}

form input {
  width: 100%;
  min-height: 48px;
  margin-bottom: 18px;
  padding: 0.75rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f9fbfb;
  color: var(--ink-500);
  font: inherit;
  transition: background 0.16s, border 0.16s, box-shadow 0.16s;
}

form input:focus {
  border-color: var(--green-500);
  outline: none;
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(22, 165, 90, 0.13);
}

.form-error {
  display: none;
  margin-bottom: 18px;
  padding: 0.8rem 0.95rem;
  border-radius: 8px;
  background: #ffebee;
  color: #9f1717;
  font-weight: 900;
}

form button[type="submit"] {
  padding: 0 1.6rem;
}

.recording-disclaimer {
  margin: 5px 0 22px;
  color: var(--ink-400);
  font-size: 0.82rem;
  font-style: italic;
  text-align: center;
}

.success-modal {
  text-align: center;
}

.success-title {
  margin-bottom: 8px;
  color: var(--green-700);
  font-size: 1.65rem;
  font-weight: 900;
}

.success-desc {
  margin-bottom: 24px;
  color: var(--ink-500);
  font-size: 1.06rem;
}

@media (max-width: 860px) {
  .page-shell {
    width: min(680px, calc(100% - 32px));
    align-items: start;
    padding: 32px 0;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .brand-logo {
    width: 132px;
    margin-bottom: 34px;
  }

  h1 {
    font-size: 3rem;
  }
}

@media (max-width: 540px) {
  .page-shell {
    width: min(100% - 28px, 420px);
    padding: 24px 0;
  }

  .brand-logo {
    width: 118px;
    margin-bottom: 28px;
  }

  h1 {
    font-size: 2.35rem;
  }

  h2 {
    font-size: 1.45rem;
  }

  .hero-text {
    margin-top: 18px;
    font-size: 1.04rem;
  }

  .demo-panel,
  .modal {
    padding: 24px;
  }

  .demo-meta {
    grid-template-columns: 1fr;
  }

  .modal-bg {
    align-items: flex-start;
    padding: 14px;
  }

  .modal {
    max-height: calc(100vh - 28px);
  }

  .modal-title {
    margin-right: 38px;
    margin-left: 38px;
  }

  form button[type="submit"] {
    width: 100%;
  }
}
