/* Jetsonsoft Realtor website. Brand colors are jetsonsoft.com's (src/brand.ts there). */

:root {
  --navy-top: #16263e;
  --navy-mid: #1f3a5f;
  --navy-bottom: #264a78;
  --cream: #ede6d0;
  --cream-dim: #b9c3d6;
  --accent: #8bdcff;
  --brand: #1f6feb;
  --card-border: #4e7c8f;

  --bg: #f6f7f9;
  --surface: #ffffff;
  --text: #1b2433;
  --muted: #566176;
  --line: #dde2ea;
  --link: #1859c4;
  --chip-bg: #e7effc;
  --chip-text: #1a4fa8;
  --shadow: 0 1px 2px rgb(16 24 40 / 6%), 0 4px 16px rgb(16 24 40 / 6%);

  --wrap: 1120px;
  font-family: "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1724;
    --surface: #172234;
    --text: #e6eaf2;
    --muted: #a3afc2;
    --line: #2a3850;
    --link: #8bdcff;
    --chip-bg: #1d3352;
    --chip-text: #a9d4ff;
    --shadow: none;
  }
}

* { box-sizing: border-box; }

html { scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
}

a { color: var(--link); }
img { max-width: 100%; height: auto; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus { left: 12px; top: 12px; z-index: 10; background: #fff; color: #000; padding: 8px 12px; }

/* --- header ------------------------------------------------------------ */

.site-head {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--navy-top);
  border-bottom: 1px solid #2e4a6e;
}
.head-row { display: flex; align-items: center; gap: 16px; min-height: 64px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--cream);
  text-decoration: none;
  font-weight: 600;
  font-size: 17px;
  white-space: nowrap;
}
.brand strong { color: var(--accent); font-weight: 700; }

.site-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.site-nav a:not(.button) {
  color: var(--cream-dim);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 15px;
}
.site-nav a:not(.button):hover { color: var(--cream); background: rgb(255 255 255 / 6%); }
.site-nav a[aria-current="page"] { color: var(--cream); box-shadow: inset 0 -2px var(--accent); border-radius: 0; }
.site-nav .button { margin-left: 8px; }

.menu-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--card-border);
  color: var(--cream);
  border-radius: 6px;
  padding: 6px 12px;
  font: inherit;
  font-size: 15px;
}

@media (max-width: 900px) {
  .head-row { flex-wrap: wrap; }
  .js .menu-toggle { display: block; }
  .js .site-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--navy-top);
    border-bottom: 1px solid #2e4a6e;
    padding: 8px 20px 16px;
  }
  .js .site-nav.open { display: flex; }
  .site-nav a[aria-current="page"] { box-shadow: inset 3px 0 var(--accent); }
  .js .site-nav .button { margin: 8px 0 0; text-align: center; }
}

/* --- buttons ----------------------------------------------------------- */

.button {
  display: inline-block;
  padding: 11px 20px;
  border-radius: 8px;
  border: 1px solid var(--card-border);
  color: var(--cream);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  background: rgb(46 74 102 / 35%);
  cursor: pointer;
  font-family: inherit;
}
.button:hover { border-color: var(--accent); }
.button.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.button.primary:hover { background: #2a7cf5; }
.button.small { padding: 6px 14px; font-size: 14px; }

/* --- hero -------------------------------------------------------------- */

.hero {
  background: linear-gradient(180deg, var(--navy-top) 0%, var(--navy-mid) 55%, var(--navy-bottom) 100%);
  color: var(--cream);
  padding: 72px 0 64px;
}
.hero.compact { padding: 48px 0 40px; }
.hero h1 { font-size: clamp(32px, 5vw, 50px); line-height: 1.12; margin: 0 0 18px; letter-spacing: -0.01em; }
.hero p.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--cream-dim); max-width: 760px; margin: 0 0 28px; }
.hero .eyebrow { color: var(--accent); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; font-size: 14px; margin: 0 0 10px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .shot { margin-top: 48px; }

/* --- sections ---------------------------------------------------------- */

section.band { padding: 64px 0; }
section.band + section.band { border-top: 1px solid var(--line); }
section.band.alt { background: var(--surface); }

h2 { font-size: clamp(26px, 3.2vw, 34px); line-height: 1.2; margin: 0 0 12px; letter-spacing: -0.01em; }
h3 { font-size: 20px; line-height: 1.3; margin: 0 0 8px; }
.section-lead { color: var(--muted); max-width: 760px; margin: 0 0 36px; font-size: 18px; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); }
@media (max-width: 520px) { .grid.two { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px 22px 18px;
  box-shadow: var(--shadow);
}
section.band.alt .card { background: var(--bg); box-shadow: none; }
.card p { margin: 0 0 10px; color: var(--muted); }
.card ul { margin: 0; padding-left: 20px; color: var(--muted); }
.card li { margin: 4px 0; }
a.card { display: block; text-decoration: none; color: inherit; transition: border-color 0.15s; }
a.card:hover { border-color: var(--link); }
a.card h3 { color: var(--text); }
a.card .more { color: var(--link); font-weight: 600; font-size: 15px; }

.icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--chip-bg);
  color: var(--chip-text);
  margin-bottom: 14px;
  font-size: 20px;
}

.chip {
  display: inline-block;
  background: var(--chip-bg);
  color: var(--chip-text);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 13px;
  font-weight: 600;
  margin: 0 4px 4px 0;
}

/* A feature page: a narrow column of headed blocks. */
.feature-list { display: grid; gap: 40px; }
.feature { display: grid; grid-template-columns: 280px 1fr; gap: 28px; align-items: start; }
.feature h3 { font-size: 21px; }
.feature .body p { margin: 0 0 12px; }
.feature .body ul { margin: 0 0 12px; padding-left: 20px; }
.feature .body li { margin: 5px 0; }
@media (max-width: 760px) { .feature { grid-template-columns: 1fr; gap: 8px; } }

.prose { max-width: 780px; }
.prose p, .prose li { color: var(--text); }
.prose h2 { margin-top: 44px; }
.prose h3 { margin-top: 28px; }

.note {
  border-left: 4px solid var(--brand);
  background: var(--chip-bg);
  color: var(--text);
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  margin: 20px 0;
}

table.spec { width: 100%; border-collapse: collapse; margin: 12px 0 28px; font-size: 16px; }
table.spec th, table.spec td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.spec th { color: var(--muted); font-weight: 600; width: 32%; }
@media (max-width: 600px) {
  table.spec th, table.spec td { display: block; width: auto; padding: 6px 0; }
  table.spec th { border-bottom: none; padding-top: 14px; }
}

/* Screenshots. */
figure.shot { margin: 0; }
figure.shot img {
  display: block;
  border-radius: 10px;
  border: 1px solid rgb(139 220 255 / 25%);
  box-shadow: 0 20px 60px rgb(0 0 0 / 35%);
  background: #0f1724;
}
figure.shot figcaption { color: var(--muted); font-size: 14px; margin-top: 10px; text-align: center; }
.hero figure.shot figcaption { color: var(--cream-dim); }
.feature .body figure.shot { margin: 18px 0 8px; }
figure.shot.phone img { max-width: 300px; margin: 0 auto; }

/* What's new. */
.release { border-left: 3px solid var(--line); padding: 0 0 8px 22px; margin: 0 0 30px; position: relative; }
.release::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 8px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--brand);
}
.release time { color: var(--muted); font-size: 15px; font-weight: 600; }
.release h3 { margin-top: 2px; }
.release ul { padding-left: 20px; }

/* Call to action. */
.cta {
  background: linear-gradient(135deg, var(--navy-mid), var(--navy-bottom));
  color: var(--cream);
  border-radius: 14px;
  padding: 36px;
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.cta h2 { color: var(--cream); margin: 0 0 6px; }
.cta p { margin: 0; color: var(--cream-dim); max-width: 620px; }

/* Contact form. */
.lead-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 720px; }
.lead-form label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.lead-form label.wide { grid-column: 1 / -1; }
.lead-form input, .lead-form textarea {
  font: inherit;
  font-weight: 400;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
}
.lead-form .trap { position: absolute; left: -9999px; }
.lead-form button { justify-self: start; }
@media (max-width: 600px) { .lead-form { grid-template-columns: 1fr; } }

/* --- footer ------------------------------------------------------------ */

.site-foot { background: var(--navy-top); color: var(--cream-dim); padding: 48px 0 24px; margin-top: 0; font-size: 15px; }
.site-foot a { color: var(--cream-dim); text-decoration: none; }
.site-foot a:hover { color: var(--cream); }
.site-foot .brand { color: var(--cream); }
.site-foot .muted { color: var(--cream-dim); opacity: 0.8; }
.site-foot h2 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--cream); margin: 4px 0 10px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin: 6px 0; }
.foot-grid { display: grid; gap: 28px; grid-template-columns: 1.4fr 1.2fr 1fr 1fr; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.copyright { border-top: 1px solid #2e4a6e; margin-top: 32px; padding-top: 18px; font-size: 14px; }

/* The four app tiles on the home page. The icons are square crops of rounded tiles. */
.grid.apps { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid.apps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .grid.apps { grid-template-columns: 1fr; } }
.card.app img { display: block; border-radius: 21%; margin: 0 0 14px; }
