/* OnTheBlock website. Colors match the app (lib/theme.ts). */
:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --card: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --border: #e5e5ea;
  --blue: #1e6fd9;
  --blue-soft: rgba(30, 111, 217, 0.1);
  --red: #ff3b30;
  --radius: 22px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 30px rgba(0, 0, 0, 0.06);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-alt: #0f0f10;
    --card: #1c1c1e;
    --text: #f5f5f7;
    --muted: #98989f;
    --border: #2c2c2e;
    --blue: #4c94ff;
    --blue-soft: rgba(76, 148, 255, 0.16);
    --shadow: none;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Header */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 19px; letter-spacing: -0.3px; }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.nav-links a { color: var(--text); }
.nav-links .hide-sm { display: inline; }
@media (max-width: 720px) { .nav-links .hide-sm { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 980px; font-weight: 600; font-size: 16px;
  background: var(--blue); color: #fff; border: 0; cursor: pointer;
}
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn.secondary { background: var(--blue-soft); color: var(--blue); }
.btn.small { padding: 8px 16px; font-size: 15px; }

/* Hero */
.hero { padding: 72px 0 56px; text-align: center; }
.hero .icon { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto 24px; box-shadow: 0 10px 30px rgba(30, 111, 217, 0.25); }
.hero h1 { font-size: clamp(38px, 6vw, 64px); line-height: 1.05; letter-spacing: -1.5px; margin: 0 0 18px; font-weight: 800; }
.hero p.lead { font-size: clamp(19px, 2.4vw, 23px); color: var(--muted); max-width: 680px; margin: 0 auto 30px; }
.hero .ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .note { margin-top: 14px; font-size: 14px; color: var(--muted); }

/* Phone mockups */
.phones { display: flex; gap: 24px; justify-content: center; margin-top: 56px; flex-wrap: wrap; }
.phone {
  width: 280px; border-radius: 44px; padding: 12px; background: #1d1d1f; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.18);
}
.screen { background: #f2f2f7; border-radius: 34px; overflow: hidden; height: 520px; text-align: left; color: #000; font-size: 13px; }
.screen .bar { height: 34px; display: flex; justify-content: center; align-items: center; }
.screen .bar span { width: 90px; height: 24px; border-radius: 14px; background: #1d1d1f; }
.screen h3 { font-size: 26px; letter-spacing: -0.5px; margin: 8px 16px 12px; }
.screen .card { background: #fff; border-radius: 16px; margin: 0 12px 10px; padding: 12px 14px; }
.screen .tag { display: inline-block; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 10px; margin-bottom: 6px; }
.screen .tag.blue { background: rgba(30, 111, 217, 0.12); color: #1e6fd9; }
.screen .tag.orange { background: rgba(255, 149, 0, 0.14); color: #c46a00; }
.screen .tag.green { background: rgba(52, 199, 89, 0.14); color: #1f8a3b; }
.screen .tag.purple { background: rgba(175, 82, 222, 0.14); color: #9a3fc7; }
.screen .tag.red { background: rgba(255, 59, 48, 0.12); color: #e0281e; }
.screen .alert-card { box-shadow: inset 0 0 0 2px #ff3b30; }
.screen .card b { display: block; font-size: 14px; margin-bottom: 2px; }
.screen .card small { color: #6e6e73; }
.screen .bubbles { padding: 4px 12px; display: flex; flex-direction: column; gap: 8px; }
.screen .b { max-width: 78%; padding: 8px 12px; border-radius: 18px; background: #fff; }
.screen .b.me { align-self: flex-end; background: #1e6fd9; color: #fff; }
.screen .who { font-size: 10px; color: #6e6e73; margin: 0 0 2px 6px; }
.screen .alert { background: #ff3b30; color: #fff; }
.screen .status { display: block; font-size: 11px; font-weight: 700; margin-bottom: 4px; }
.screen .status.orange { color: #c46a00; }
.screen .status.purple { color: #5856d6; }
.screen .status.green { color: #1f8a3b; }
/* Photo placeholders: soft illustrated "photos" so the mockups show where pictures appear. */
.screen .photo { height: 92px; border-radius: 12px; margin-top: 8px; background-size: cover; }
.screen .photo.party { background: linear-gradient(160deg, #ffd27a 0%, #ff9f68 45%, #e8607b 100%); position: relative; overflow: hidden; }
.screen .photo.party::after { content: "🎉  🍔  🎈"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 26px; }
.screen .photo.gate { background: linear-gradient(170deg, #9ad0f5 0%, #6aa9d8 55%, #3f6e8f 100%); position: relative; overflow: hidden; }
.screen .photo.gate::after { content: "🏊‍♀️  🔒"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 26px; }
.screen .cal-title { text-align: center; margin-bottom: 6px; }
.screen .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; font-size: 11px; }
.screen .cal-grid i { font-style: normal; color: #8e8e93; font-weight: 600; padding-bottom: 2px; }
.screen .cal-grid span { position: relative; padding: 4px 0 7px; border-radius: 50%; }
.screen .cal-grid span.sel { background: #1e6fd9; color: #fff; font-weight: 700; }
.screen .cal-grid em { position: absolute; left: 50%; bottom: 1px; width: 4px; height: 4px; margin-left: -2px; border-radius: 2px; }
.screen .cal-grid em.dot-blue { background: #1e6fd9; } .screen .cal-grid em.dot-orange { background: #ff9500; }
.screen .cal-grid em.dot-purple { background: #af52de; } .screen .cal-grid em.dot-green { background: #34c759; }
.screen .cal-grid span.sel em { background: #fff; }
.screen .alert small { color: rgba(255, 255, 255, 0.85); }

/* Sections */
section { padding: 80px 0; }
section.alt { background: var(--bg-alt); }
.eyebrow { color: var(--blue); font-weight: 700; font-size: 15px; letter-spacing: 0.2px; margin-bottom: 8px; }
h2 { font-size: clamp(30px, 4.4vw, 46px); letter-spacing: -1px; line-height: 1.1; margin: 0 0 14px; font-weight: 800; }
.section-lead { color: var(--muted); font-size: 20px; max-width: 680px; margin: 0 0 40px; }
.center { text-align: center; }
.center .section-lead { margin-left: auto; margin-right: auto; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.feature { background: var(--card); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); border: 1px solid var(--border); }
.feature .ic { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; color: #fff; }
.feature h3 { margin: 0 0 6px; font-size: 19px; letter-spacing: -0.2px; }
.feature p { margin: 0; color: var(--muted); font-size: 16px; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; counter-reset: step; }
.step { padding: 4px 0; }
.step::before {
  counter-increment: step; content: counter(step);
  display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--blue); color: #fff; font-weight: 700; margin-bottom: 12px;
}
.step h3 { margin: 0 0 6px; font-size: 19px; }
.step p { margin: 0; color: var(--muted); }

/* Pricing */
.prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.price { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.price.featured { border: 2px solid var(--blue); }
.price h3 { margin: 0; font-size: 20px; }
.price .homes { color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.price .amt { font-size: 40px; font-weight: 800; letter-spacing: -1px; }
.price .amt span { font-size: 16px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price .yr { color: var(--muted); font-size: 15px; margin-top: 2px; }
.price ul { padding: 0; margin: 18px 0 0; list-style: none; font-size: 15px; }
.price li { padding: 4px 0 4px 24px; position: relative; }
.price li::before { content: "✓"; position: absolute; left: 0; color: var(--blue); font-weight: 700; }
.fine { color: var(--muted); font-size: 14px; margin-top: 18px; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
details { border-bottom: 1px solid var(--border); padding: 18px 0; }
summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--blue); font-size: 24px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: 10px 0 0; }

/* Callout */
.callout { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; text-align: center; box-shadow: var(--shadow); }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 36px 0 48px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer a { color: var(--muted); }
footer .links { display: flex; gap: 20px; flex-wrap: wrap; }
.disclaimer { max-width: 1080px; margin: 18px auto 0; padding: 0 20px; font-size: 12px; color: var(--muted); }

/* Legal pages */
.legal { max-width: 760px; margin: 0 auto; padding: 48px 20px 72px; }
.legal h1 { font-size: 40px; letter-spacing: -1px; line-height: 1.1; }
.legal h2 { font-size: 26px; margin-top: 40px; letter-spacing: -0.4px; }
.legal h3 { font-size: 19px; margin-top: 28px; }
.legal p, .legal li { color: var(--text); }
.legal table { border-collapse: collapse; width: 100%; margin: 16px 0; font-size: 15px; display: block; overflow-x: auto; }
.legal th, .legal td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; }
.legal th { background: var(--bg-alt); }
.legal blockquote { margin: 16px 0; padding: 12px 16px; border-left: 3px solid var(--blue); background: var(--bg-alt); border-radius: 0 12px 12px 0; }
.legal blockquote p { margin: 6px 0; }
.legal blockquote ul { margin: 6px 0; padding-left: 20px; }
.legal .legal-meta { color: var(--muted); font-size: 15px; margin-top: 4px; }
.legal h2 { scroll-margin-top: 80px; position: relative; }
.legal h3 { scroll-margin-top: 80px; }
.legal h2 .anchor { position: absolute; left: -0.9em; color: var(--muted); text-decoration: none; opacity: 0; transition: opacity 0.15s; }
.legal h2:hover .anchor { opacity: 1; }
.legal li { margin: 4px 0; line-height: 1.55; }
.legal p { line-height: 1.6; }
.legal-toc { margin: 28px 0 8px; padding: 16px 20px; border: 1px solid var(--border); border-radius: 16px; background: var(--bg-alt); }
.legal-toc b { display: block; margin-bottom: 6px; }
.legal-toc ol { margin: 0; padding-left: 0; list-style: none; columns: 2 220px; column-gap: 28px; }
.legal-toc li { margin: 4px 0; break-inside: avoid; font-size: 15px; }
.legal-toc a { color: var(--blue); text-decoration: none; }
.legal-toc a:hover { text-decoration: underline; }
.legal-other { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--muted); }
@media (max-width: 600px) { .legal h1 { font-size: 32px; } .legal h2 { font-size: 22px; } .legal h2 .anchor { display: none; } }
