/* Minimal reset */
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; }

:root{
  --bg: #F7F7F7;
  --card: #FFFFFF;
  --text: rgba(0,0,0,0.82);
  --muted: rgba(0,0,0,0.45);
  --muted2: rgba(0,0,0,0.20);
  --border: rgba(0,0,0,0.12);
  --accent: #1FBF99;
  --accent2: #2FD6AF;
  --shadow: 0 10px 30px rgba(0,0,0,0.06);
  --radius: 14px;
  --maxw: 1100px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

body{
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.35;
  overflow-x: hidden;
}

body.is-loading .card,
body.is-loading .footer,
body.is-loading .thanks-card {
  opacity: 0;
  transform: translateY(18px);
}

.page{
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 48px 18px;
}

.screen{
  width: 100%;
  display: none;
}
.screen.is-active{
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card{
  position: relative;
  width: min(var(--maxw), 100%);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 56px;
  transition: opacity 600ms ease, transform 600ms ease;
}

.brand-mark{
  position: absolute;
  height: 70px;
  top: -20px;
  left: -20px;
}

.card-grid{
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 56px;
  align-items: start;
}

.hero{
  margin: 0;
  font-size: clamp(2.1rem, 3.2vw, 3rem);
  letter-spacing: -0.04em;
  font-weight: 800;
  color: rgba(0,0,0,0.72);
}

.subhead{
  margin: 10px 0 0 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: #919191;
  letter-spacing: -0.02em;
}

.body-copy{
  margin-top: 18px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.body-copy p { margin: 14px 0; }
.body-copy ol{
  margin: 10px 0 12px 18px;
  padding: 0;
}
.body-copy li{
  margin: 6px 0;
}

.section-title{
  margin: 0;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: rgba(0,0,0,0.72);
}

.muted{
  margin: 10px 0 0 0;
  color: var(--muted);
}
.small{ font-size: 0.95rem; }

.logos{
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.logo{
  width: min(140px, 30%);
  height: 44px;
  object-fit: contain;
  opacity: 0.9;
}

.divider{
  border: 0;
  height: 2px;
  background: #e5e5e5;
  margin: 18px 0;
}

.form{
  margin-top: 14px;
  display: grid;
  gap: 12px;
}

.field input,
.field textarea{
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 14px 14px;
  font-size: 1rem;
  font-family: var(--font);
  color: rgba(0,0,0,0.72);
  outline: none;
  background: transparent;
}

.field textarea{
  resize: vertical;
  min-height: 120px;
}

.field input:focus,
.field textarea:focus{
  border-color: var(--accent2);
  box-shadow: 0 0 0 1px var(--accent2);
}

.btn{
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 6px;
  background: #545454;
  color: white;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  transition: background-color 160ms ease, opacity 160ms ease;
}

.btn:hover{ background: var(--accent2); }
.btn:disabled{ opacity: 0.55; cursor: default; }

.btn .spinner{
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.55);
  border-top-color: rgba(255,255,255,1);
  display: none;
  animation: spin 800ms linear infinite;
}

.btn.is-loading .btn-text{ opacity: 0; }
.btn.is-loading .spinner{ display: inline-block; }

@keyframes spin{
  to { transform: rotate(360deg); }
}

.btn.ghost{
  background: transparent;
  border: 1px solid var(--border);
  color: rgba(0,0,0,0.72);
  text-decoration: none;
}
.btn.ghost:hover{
  border-color: var(--accent2);
  color: var(--accent2);
}

.fineprint{
  margin: 6px 0 0 0;
  color: var(--muted2);
  font-size: 0.9rem;
  line-height: 1.6;
}

.error{
  margin: 0;
  min-height: 1.2em;
  color: #b42318;
  font-size: 0.95rem;
}

.footer{
  width: min(var(--maxw), 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding: 0 4px;
  transition: opacity 600ms ease, transform 600ms ease;
}

.social{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: rgba(0,0,0,0.55);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 12px;
  transition: border-color 160ms ease, color 160ms ease;
}
.social:hover{
  color: var(--accent2);
  border-color: var(--accent2);
}
.social svg{ fill: currentColor; }

.copyright{
  margin: 0;
  color: var(--muted2);
  font-size: 0.95rem;
}

/* Thank you screen */
.thanks-card{
  width: min(420px, 100%);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 42px;
  text-align: center;
  transition: opacity 600ms ease, transform 600ms ease;
}

.thanks-title{
  margin: 0;
  font-size: 1.8rem;
  letter-spacing: -0.02em;
}
.thanks-body{
  margin: 10px 0 18px 0;
  color: var(--muted);
  line-height: 1.65;
}

/* Accessibility helpers */
.sr-only{
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* Honeypot hidden */
.hp{
  display: none;
}

/* Responsive */
@media (max-width: 900px){
  .card{ padding: 36px 20px; }
  .card-grid{ grid-template-columns: 1fr; gap: 22px; }
  .brand-mark{ left: -10px; top: -18px; height: 60px; }
}

@media (max-width: 480px){
  .page{ padding: 34px 14px; }
  .footer{ flex-direction: column; gap: 10px; align-items: flex-start; }
}
