:root {
  color-scheme: light;
  --text: #181714;
  --muted: #5e5b54;
  --line: rgba(24, 23, 20, 0.2);
  --input: rgba(255, 255, 255, 0.72);
  --input-border: rgba(24, 23, 20, 0.18);
  --button-bg: #181714;
  --button-text: #fbfaf6;
  --accent: #b95842;
  --surface: #f6f7f2;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(90deg, rgba(246, 247, 242, 0.97) 0%, rgba(246, 247, 242, 0.82) 36%, rgba(246, 247, 242, 0.28) 72%),
    var(--surface);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background-image: url("assets/ontrak-hero-v2.png");
  background-position: center right;
  background-size: cover;
  opacity: 0.78;
  transform: scale(1.01);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 250, 241, 0.9), rgba(255, 250, 241, 0) 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(28, 27, 24, 0.04));
  pointer-events: none;
}

.page-shell {
  min-height: 100vh;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100vh;
  padding: clamp(22px, 4vw, 48px);
  grid-template-rows: 1fr;
}

.hero-copy {
  position: relative;
  z-index: 1;
  align-self: center;
  width: min(620px, 100%);
  padding: clamp(52px, 8vw, 96px) 0;
}

h1 {
  max-width: 8ch;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4.3rem, 13vw, 11rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.82;
}

.lede {
  max-width: 470px;
  margin: clamp(22px, 4vw, 34px) 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.48;
}

.phone-form {
  width: min(380px, 100%);
  margin-top: clamp(28px, 5vw, 44px);
}

.field-label {
  display: block;
  margin-bottom: 10px;
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 750;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

input,
button {
  min-height: 54px;
  border-radius: 8px;
  font: inherit;
}

input {
  width: 100%;
  border: 1px solid var(--input-border);
  background: var(--input);
  color: var(--text);
  outline: none;
  padding: 0 16px;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

input::placeholder {
  color: color-mix(in srgb, var(--muted) 70%, transparent);
}

input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent);
}

button {
  border: 0;
  cursor: pointer;
}

.phone-form button {
  width: fit-content;
  min-width: 132px;
  background: var(--button-bg);
  color: var(--button-text);
  padding: 0 22px;
  font-weight: 800;
}

.phone-form button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 42%, transparent);
  outline-offset: 3px;
}

@media (max-width: 720px) {
  body {
    background:
      linear-gradient(180deg, rgba(246, 247, 242, 0.96) 0%, rgba(246, 247, 242, 0.82) 54%, rgba(246, 247, 242, 0.38) 100%),
      var(--surface);
  }

  body::before {
    background-position: center bottom;
    opacity: 0.4;
  }

  .hero {
    padding: 22px;
  }

  .hero-copy {
    align-self: end;
    padding: 74px 0 28px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .phone-form button {
    width: 100%;
  }

}

@media (max-width: 380px) {
  h1 {
    font-size: 3.7rem;
  }
}
