/* ============================================================
   OpenDoor — website styles
   Colours and shapes are lifted from the app so the site and
   the product read as one thing. Change them here, once.
   ============================================================ */

:root {
  --blue:        #2962EA;
  --blue-dark:   #1E4FC4;
  --navy:        #0F1A3A;
  --slate:       #4F5F7A;
  --slate-light: #667A98;
  --bg:          #F5F7FA;
  --card:        #FFFFFF;
  --border:      #DCE4F2;
  --border-soft: #E5EAF2;

  --radius:      16px;
  --radius-lg:   20px;
  --wrap:        1120px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
}

/* ── Base ─────────────────────────────────────────────────── */

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--navy);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue); }

h1, h2, h3 { line-height: 1.15; margin: 0; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--blue);
  color: #fff;
  padding: 12px 18px;
  border-radius: 0 0 var(--radius) 0;
  font-weight: 700;
  z-index: 100;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Header ───────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1.5px solid var(--border-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 20px;
  min-height: 68px;
  padding-block: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 800;
  color: var(--blue);
  text-decoration: none;
  letter-spacing: -.01em;
}

.site-header nav {
  display: flex;
  gap: 26px;
}

.site-header nav a {
  color: var(--slate);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.site-header nav a:hover {
  color: var(--navy);
  border-bottom-color: var(--blue);
}

/* ── Hero ─────────────────────────────────────────────────── */

.hero { padding: 72px 0 80px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 18px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--slate-light);
}

.hero h1 {
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 800;
  letter-spacing: -.02em;
}

.hero h1 .accent { color: var(--blue); }

.lead {
  margin: 22px 0 0;
  font-size: 19px;
  color: var(--slate);
  max-width: 46ch;
}

.pills {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 30px 0 0;
  padding: 0;
}

.pills li {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--slate);
}

.hero-shot img {
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
  box-shadow: 0 18px 40px -18px rgba(15, 26, 58, .28);
}

/* ── Sections ─────────────────────────────────────────────── */

.band { padding: 76px 0; }
.band.alt { background: var(--card); border-block: 1.5px solid var(--border-soft); }

.band h2 {
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 800;
  letter-spacing: -.015em;
}

.section-lead {
  margin: 12px 0 40px;
  font-size: 18px;
  color: var(--slate);
  max-width: 56ch;
}

.note {
  margin: 32px 0 0;
  font-size: 15px;
  color: var(--slate-light);
}

/* ── Steps ────────────────────────────────────────────────── */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.steps li {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px 24px;
}

.band.alt .steps li { background: var(--bg); }

.step-num {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  font-size: 19px;
  margin-bottom: 16px;
}

.steps h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
}

.steps p {
  margin: 0;
  font-size: 15.5px;
  color: var(--slate);
}

/* ── Screenshot figure ────────────────────────────────────── */

.shot-figure { margin: 48px 0 0; }

.shot-figure img {
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
  box-shadow: 0 18px 40px -18px rgba(15, 26, 58, .22);
}

.shot-figure figcaption {
  margin-top: 14px;
  font-size: 15px;
  color: var(--slate-light);
  text-align: center;
}

/* ── Category grid ────────────────────────────────────────── */

.cats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.cat {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
}

.cat-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--t);
  color: var(--c);
}

.cat-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cat h3 {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 6px;
}

.cat p {
  margin: 0;
  font-size: 14.5px;
  color: var(--slate);
  line-height: 1.45;
}

/* ── Footer ───────────────────────────────────────────────── */

.site-footer {
  background: var(--navy);
  color: #C6D2E8;
  padding: 44px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand img {
  background: #fff;
  border-radius: 8px;
  padding: 3px;
}

.footer-brand strong {
  display: block;
  color: #fff;
  font-size: 18px;
}

.footer-brand span { font-size: 14px; }

.footer-note {
  margin: 0;
  font-size: 15px;
  max-width: 44ch;
}

/* ── Responsive ───────────────────────────────────────────── */

@media (max-width: 1000px) {
  .cats { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 780px) {
  .hero { padding: 48px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .lead { max-width: none; }
  .band { padding: 56px 0; }
  .site-header nav { gap: 18px; }
  .site-header nav a { font-size: 15px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding-inline: 18px; }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .brand { font-size: 20px; }
  .brand img { width: 30px; height: 27px; }
  .site-header nav { gap: 16px; }
  .site-header nav a { font-size: 14px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
