/* Every Era Health — minimal static site
   Deep Slate on warm off-white, system fonts. */

:root {
  --slate: #344F62;
  --slate-soft: #5a7183;
  --bg: #f7f4ef;
  --rule: #e2dcd2;
  --max: 42rem;
  --shell: 62rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

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

.page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.5rem;
}

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

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
}

/* Small brand header, top-left */
.site-header {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.logo {
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 auto;
}

.wordmark {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--slate);
}

/* Main holds the hero + contact, vertically centered; footer sits below */
main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(2.75rem, 7vh, 5rem);
  padding: clamp(2.5rem, 6vh, 4.5rem) 0;
}

/* Hero — stacked on mobile (text first, phone below), two columns on desktop */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 3.5rem);
  align-items: center;
}

/* Let grid children shrink below their content's intrinsic width */
.hero-content,
.hero-visual {
  min-width: 0;
}

@media (min-width: 860px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: clamp(3rem, 5vw, 5rem);
  }
  .hero-visual {
    order: 1;
  }
  .hero-content {
    order: 2;
  }
}

.hero-visual {
  display: flex;
  justify-content: center;
}

/* Subtle warm backdrop so the phone doesn't float */
.phone-backdrop {
  display: inline-flex;
  justify-content: center;
  padding: clamp(1.5rem, 5vw, 3rem);
  border-radius: clamp(24px, 4vw, 36px);
  background: radial-gradient(
    115% 100% at 50% 20%,
    #f2ece1 0%,
    #eae1d4 60%,
    #e5dccc 100%
  );
}

.phone {
  width: 70vw;
  max-width: 280px;
  padding: 0.5rem;
  background: #ffffff;
  border: 1px solid var(--rule);
  border-radius: 2rem;
  box-shadow: 0 16px 36px rgba(52, 79, 98, 0.14);
}

.phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1.6rem;
}

.hero-headline {
  font-size: clamp(2.1rem, 5.2vw, 3.35rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 0 0 1.1rem;
  max-width: 24ch;
}

.hero-sub {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  line-height: 1.55;
  color: var(--slate);
  margin: 0 0 2rem;
  max-width: 46ch;
}

/* Email signup */
.signup {
  margin: 0;
  max-width: 22rem;
}

.signup-form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.signup-label {
  font-size: 0.8rem;
  color: var(--slate-soft);
  letter-spacing: 0.01em;
}

.signup-label .req {
  color: var(--slate-soft);
}

.signup-input {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: var(--slate);
  background: #ffffff;
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  -webkit-appearance: none;
  appearance: none;
}

.signup-input::placeholder {
  color: #a99f92;
}

.signup-input:focus {
  outline: none;
  border-color: var(--slate);
  box-shadow: 0 0 0 3px rgba(52, 79, 98, 0.12);
}

.signup-button {
  margin-top: 0.35rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--bg);
  background: var(--slate);
  border: 1px solid var(--slate);
  border-radius: 8px;
  padding: 0.6rem 1.4rem;
  cursor: pointer;
  transition: background 0.15s ease, opacity 0.15s ease;
}

.signup-button:hover {
  background: #2a4152;
}

.signup-button:disabled {
  opacity: 0.55;
  cursor: default;
}

/* Honeypot — hidden from people, offered to bots */
.signup-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.signup-status {
  font-size: 0.95rem;
  margin: 0.35rem 0 0;
  min-height: 1.2em;
}

.signup-status.is-success {
  color: var(--slate);
}

.signup-status.is-error {
  color: #b0503a;
}

/* Slim contact line below the hero */
.contact {
  font-size: 1rem;
  color: var(--slate-soft);
  line-height: 1.7;
  margin: 0;
}

.contact a {
  color: var(--slate);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
}

.contact a:hover {
  border-bottom-color: var(--slate);
}

footer {
  flex: 0 0 auto;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-size: 0.875rem;
  color: var(--slate-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: space-between;
  align-items: baseline;
}

footer a {
  color: var(--slate-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

footer a:hover {
  color: var(--slate);
  border-bottom-color: var(--rule);
}

/* Privacy / interior pages */
.prose {
  padding: 1rem 0 2rem;
}

.prose h1 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  margin-bottom: 0.5rem;
}

.prose .effective {
  color: var(--slate-soft);
  font-size: 0.95rem;
  margin: 0 0 2.5rem;
}

.prose h2 {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 2.25rem 0 0.5rem;
}

.prose p {
  margin: 0 0 1rem;
}

.prose a {
  color: var(--slate);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
}

.prose a:hover {
  border-bottom-color: var(--slate);
}

.back {
  display: inline-block;
  margin-bottom: 2rem;
  font-size: 0.95rem;
  color: var(--slate-soft);
  text-decoration: none;
}

.back:hover {
  color: var(--slate);
}
