/* Advantage One Escrow landing page. A neutral placeholder: white page, near-black type,
   the approved green logo as the only color. The real site gets its own direction later. */

@font-face { font-family: 'Newsreader'; src: url('/fonts/newsreader.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }
@font-face { font-family: 'Mona Sans'; src: url('/fonts/mona-sans.woff2') format('woff2'); font-weight: 200 900; font-stretch: 75% 125%; font-display: swap; }

:root {
  --ink: #141414;
  --text: #2b2b2b;
  --muted: #666;
  --line: #e7e6e2;
  --field: #fbfbfa;
  --focus: #005941;
  --alert: #b42318;
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Mona Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--text); font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, p, dl, dd { margin: 0; }
.nowrap { white-space: nowrap; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.page { min-height: 100svh; display: grid; grid-template-rows: 1fr auto; }
.main {
  width: min(1120px, 100% - 32px); margin-inline: auto; padding-block: clamp(40px, 9vh, 112px);
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(36px, 7vw, 112px); align-items: center;
}

/* Left: the logo and the essentials */
.logo { width: clamp(230px, 27vw, 340px); }
h1 { margin-top: clamp(36px, 6vh, 56px); font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 4.6vw, 60px); line-height: 1.04; letter-spacing: -0.02em; color: var(--ink); text-wrap: balance; }
.lead { margin-top: 18px; max-width: 28em; font-size: 18.5px; line-height: 1.55; color: var(--text); text-wrap: pretty; }
.facts { margin-top: 34px; display: grid; gap: 14px; }
.facts div { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: baseline; }
.facts dt { font-stretch: 118%; font-weight: 600; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.facts dd { color: var(--ink); }
.facts a { text-decoration: none; border-bottom: 1px solid var(--line); transition: border-color 0.25s var(--ease); }
.facts a:hover { border-color: var(--ink); }

/* Right: the note */
.card {
  position: relative; padding: clamp(24px, 3.2vw, 40px); border-radius: 22px; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(20, 20, 20, 0.04), 0 30px 60px -36px rgba(20, 20, 20, 0.28);
}
.card h2 { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.15; color: var(--ink); margin-bottom: 22px; }
form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
label { font-weight: 600; font-size: 15px; color: var(--ink); }
.optional { font-weight: 400; color: var(--muted); }
.hint { margin-top: -2px; font-size: 14px; color: var(--muted); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
input, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--field); border: 1px solid #d9d8d3; border-radius: 12px;
  padding: 13px 14px; min-height: 50px; transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}
textarea { min-height: 112px; resize: vertical; }
input:hover, textarea:hover { border-color: #b9b8b2; }
input:focus, textarea:focus { outline: none; background: #fff; border-color: var(--focus); box-shadow: 0 0 0 4px rgba(0, 89, 65, 0.14); }
input[aria-invalid='true'] { border-color: var(--alert); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.send {
  justify-self: start; display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 28px; border-radius: 999px;
  border: 0; background: var(--ink); color: #fff; font: inherit; font-weight: 600; cursor: pointer;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.send:hover { background: #000; }
.send:active { transform: translateY(1px); }
.send[disabled] { opacity: 0.6; cursor: default; }
.error { color: var(--alert); font-size: 15px; font-weight: 560; }
.fine { font-size: 13.5px; color: var(--muted); }
.thanks { display: grid; gap: 12px; padding-block: 24px; }
.thanks h2 { margin: 0; }
.thanks[hidden], .form-wrap[hidden], .error[hidden] { display: none; }

/* Footer: the required lines, quiet */
.footer { width: min(1120px, 100% - 32px); margin-inline: auto; padding: 22px 0 28px; border-top: 1px solid var(--line); display: grid; gap: 6px; font-size: 13.5px; color: var(--muted); }
.footer .wire { color: var(--text); }
.footer .wire strong { color: var(--alert); font-weight: 600; }

/* A calm entrance */
@media (prefers-reduced-motion: no-preference) {
  .intro > *, .card { animation: rise 0.9s var(--ease) both; }
  .intro > *:nth-child(2) { animation-delay: 0.08s; }
  .intro > *:nth-child(3) { animation-delay: 0.14s; }
  .intro > *:nth-child(4) { animation-delay: 0.2s; }
  .card { animation-delay: 0.18s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}

@media (max-width: 880px) {
  .main { grid-template-columns: 1fr; align-items: start; }
  .logo { width: 240px; }
}
@media (max-width: 480px) {
  .two { grid-template-columns: 1fr; }
  .send { width: 100%; justify-content: center; }
}

/* Single-column pages: thanks, privacy, not found */
.main.single { grid-template-columns: minmax(0, 720px); justify-content: start; align-items: start; }
.back { margin-top: 28px; font-weight: 600; }
.prose { margin-top: 28px; max-width: 40em; }
.prose h2 { margin: 28px 0 8px; font-family: var(--sans); font-size: 18px; font-weight: 650; color: var(--ink); }
.prose p { color: var(--text); text-wrap: pretty; }
.prose .updated { color: var(--muted); font-size: 15px; }
