/* condohall.com, the marketing site. The colours are the app's own (src/app/globals.css). */
:root {
  --background: #f6f6f4;
  --surface: #ffffff;
  --foreground: #1c1c1a;
  --muted: #5f5f5a;
  --border: #dcdcd6;
  --accent: #1f5f8b;
  --accent-strong: #174a6d;
  --accent-soft: #e6eef4;
  --accent-foreground: #ffffff;
  --band: #1f5f8b;
  --band-foreground: #ffffff;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 8px 24px rgb(0 0 0 / 0.06);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --background: #141413;
    --surface: #1e1e1c;
    --foreground: #ededea;
    --muted: #a6a69f;
    --border: #3a3a36;
    --accent: #6fb0dd;
    --accent-strong: #8cc2e6;
    --accent-soft: #1d2a33;
    --accent-foreground: #0c1a24;
    --band: #173a52;
    --band-foreground: #ededea;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px rgb(0 0 0 / 0.3);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
}
h1, h2, h3 { line-height: 1.2; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: var(--accent); }
img { display: block; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 744px) { .wrap { padding: 0 32px; } }

.skip {
  position: absolute; left: 16px; top: -48px; z-index: 10;
  background: var(--surface); color: var(--foreground);
  padding: 10px 14px; border-radius: 8px; border: 1px solid var(--border);
}
.skip:focus { top: 12px; }

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

/* The bar at the top */
.top {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--background) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--border);
}
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--foreground); text-decoration: none; font-weight: 650; font-size: 19px; }
.brand img { border-radius: 9px; }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: 12px;
  background: var(--accent); color: var(--accent-foreground);
  font-weight: 600; text-decoration: none; text-align: center;
  border: 1px solid transparent;
  transition: background-color 0.15s;
}
.button:hover { background: var(--accent-strong); }
.button.small { min-height: 40px; padding: 0 16px; font-size: 15px; border-radius: 10px; }
.button.quiet { background: var(--surface); color: var(--foreground); border-color: var(--border); }
.button.quiet:hover { background: var(--accent-soft); }
.button.light { background: var(--band-foreground); color: var(--band); }
.button.light:hover { background: color-mix(in srgb, var(--band-foreground) 88%, var(--band)); }

/* The opening section */
.hero { padding: 40px 0 56px; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.eyebrow { color: var(--accent); font-weight: 650; font-size: 15px; letter-spacing: 0.02em; margin-bottom: 12px; }
.hero h1 { font-size: 32px; letter-spacing: -0.01em; }
.lead { margin-top: 18px; font-size: 18px; color: var(--muted); max-width: 36em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.actions .button { flex: 1 1 220px; }
@media (min-width: 744px) {
  .hero { padding: 64px 0 72px; }
  .hero h1 { font-size: 42px; }
  .actions .button { flex: 0 0 auto; }
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 56px; }
  .hero h1 { font-size: 46px; }
}

/* A resident's Home, drawn in the page, as a picture of the app */
.phone {
  justify-self: center; width: 100%; max-width: 340px;
  background: var(--foreground); border-radius: 44px; padding: 12px;
  box-shadow: var(--shadow);
}
.phone-screen { background: var(--background); border-radius: 34px; padding: 28px 18px 22px; }
.phone-hello { font-size: 22px; font-weight: 700; }
.phone-suite { color: var(--muted); font-size: 14px; margin-top: 2px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.tile {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 12px; display: flex; flex-direction: column; gap: 2px; min-height: 92px;
}
.tile strong { font-size: 24px; color: var(--accent); line-height: 1.1; }
.tile span { font-size: 13px; color: var(--muted); line-height: 1.3; }
.phone-heading { margin-top: 20px; font-weight: 650; font-size: 15px; }
.phone-row {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 10px 12px; margin-top: 8px; font-size: 13px; line-height: 1.35;
}
.dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-top: 5px; }

/* What it does */
.features { padding: 56px 0; background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.features h2, .trust h2, .contact h2 { font-size: 28px; }
.section-lead { margin-top: 12px; color: var(--muted); font-size: 18px; max-width: 40em; }
.grid { display: grid; gap: 16px; margin-top: 32px; }
.card { background: var(--background); border: 1px solid var(--border); border-radius: 18px; padding: 22px; }
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { color: var(--muted); }
.card p + p { margin-top: 10px; }
@media (min-width: 744px) {
  .features { padding: 72px 0; }
  .features h2, .trust h2, .contact h2 { font-size: 34px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 20px; }
}
@media (min-width: 1180px) { .grid { grid-template-columns: repeat(3, 1fr); } }

/* How it keeps to the Act */
.trust { padding: 56px 0; }
.trust-grid { display: grid; gap: 28px; }
.trust-grid > div p { margin-top: 14px; color: var(--muted); font-size: 18px; }
.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.points li {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 18px 20px; color: var(--muted);
}
.points strong { display: block; color: var(--foreground); margin-bottom: 4px; }
@media (min-width: 744px) { .trust { padding: 72px 0; } }
@media (min-width: 1024px) { .trust-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; } }

/* Getting in touch */
.contact { padding: 0 0 56px; }
.contact-box {
  background: var(--band); color: var(--band-foreground);
  border-radius: 24px; padding: 32px 22px; text-align: center;
}
.contact-box p { margin: 14px auto 24px; max-width: 34em; opacity: 0.92; font-size: 18px; }
.contact-box .button { max-width: 100%; white-space: normal; padding-top: 10px; padding-bottom: 10px; }
@media (min-width: 744px) { .contact { padding-bottom: 72px; } .contact-box { padding: 48px 40px; } }

/* The bottom */
.bottom { border-top: 1px solid var(--border); padding: 24px 0 32px; color: var(--muted); font-size: 15px; }
.bottom-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
