/* OpenDoor Intake website styles. No external fonts or scripts, so nothing tracks visitors. */

:root {
  --bg: #fbf8f4;          /* warm off-white */
  --surface: #ffffff;
  --ink: #2a2f2e;         /* main text */
  --muted: #5d6664;       /* secondary text */
  --brand: #2f5d57;       /* deep teal */
  --brand-dark: #234843;
  --sage: #e7efea;        /* soft green panel */
  --peach: #f6e8db;       /* soft warm panel */
  --line: #e4ddd3;
  --radius: 14px;
  --max: 1040px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 18px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; border-radius: 8px; z-index: 10; }

/* Header */
.site-header { padding: 20px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 650; font-size: 1.1rem; }
.logo svg { width: 30px; height: 30px; flex: none; }
.header-link { font-size: 0.95rem; font-weight: 600; text-decoration: none; }

/* Buttons */
.button {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 14px 26px;
  border-radius: 999px;
  transition: background 0.15s ease;
}
.button:hover, .button:focus { background: var(--brand-dark); color: #fff; }
.button:focus-visible, a:focus-visible { outline: 3px solid #9cc3bb; outline-offset: 3px; }
.button.secondary { background: transparent; color: var(--brand); box-shadow: inset 0 0 0 2px var(--brand); }
.button.secondary:hover { background: var(--sage); color: var(--brand-dark); }

/* Sections */
section { padding: 72px 0; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; font-weight: 700; color: var(--brand); margin-bottom: 0.8em; }
.lead { font-size: 1.2rem; color: var(--muted); }

.hero { padding: 56px 0 88px; }
.hero h1 { max-width: 14em; }
.hero .lead { max-width: 32em; margin-bottom: 1.6em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; }
.hero-note { font-size: 0.95rem; color: var(--muted); margin: 0; }

.problem { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* How it works */
.steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); counter-reset: step; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: inline-grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--sage); color: var(--brand); font-weight: 700;
  margin-bottom: 12px;
}
.steps p { color: var(--muted); margin: 0; font-size: 1rem; }

/* Demo video */
.demo { background: var(--sage); }
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  max-width: 820px;
  margin: 28px auto 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid #d3e0d8;
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-placeholder { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; color: var(--muted); }
.video-placeholder .play {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 14px;
  background: var(--sage); display: grid; place-items: center;
}
.video-placeholder strong { display: block; font-family: Georgia, serif; font-size: 1.35rem; color: var(--ink); }

/* Safety and trust */
.trust-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 32px; }
.trust-grid div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.trust-grid h3 { color: var(--brand); }
.trust-grid p { color: var(--muted); font-size: 1rem; margin: 0; }

/* Trial */
.trial-card { background: var(--peach); border-radius: 20px; padding: 44px 32px; text-align: center; }
.trial-card p { max-width: 36em; margin-left: auto; margin-right: auto; color: #4d4a45; }

/* Contact */
.contact { text-align: center; }
.contact .email { font-size: 1.25rem; font-weight: 600; word-break: break-word; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 0.95rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.site-footer a { color: var(--muted); }

/* Privacy page */
.policy { padding: 24px 0 72px; }
.policy h1 { font-size: clamp(1.9rem, 4vw, 2.5rem); }
.policy h2 { font-size: 1.35rem; margin-top: 1.8em; }
.policy ul { padding-left: 1.2em; }
.policy li { margin-bottom: 0.4em; }

@media (max-width: 600px) {
  body { font-size: 17px; }
  section { padding: 56px 0; }
  .hero { padding: 32px 0 64px; }
  .wrap { padding: 0 16px; }
  .trial-card { padding: 32px 20px; }
  .header-link { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
