/* Jupiterra / MasterApp site. Plain CSS, no build step. Light and dark follow the visitor's Mac. */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --accent: #0a66e8;
  --accent-text: #ffffff;
  --card: #ffffff;
  --shot-bg: #e8e8ed;
  --radius: 14px;
  --max: 1040px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111113;
    --bg-alt: #1b1b1e;
    --text: #f5f5f7;
    --muted: #a1a1a6;
    --line: #333338;
    --accent: #3b8bff;
    --card: #1f1f23;
    --shot-bg: #26262b;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

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

/* Header and footer */

.site-header {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  gap: 16px;
}

.brand { font-weight: 650; letter-spacing: -0.01em; color: var(--text); }
.brand:hover { text-decoration: none; }

.site-header nav { display: flex; gap: 22px; font-size: 15px; }
.site-header nav a { color: var(--muted); }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--text); text-decoration: none; }

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  padding: 28px 0 40px;
  margin-top: 72px;
}

.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.site-footer .wrap.stacked { flex-direction: column; gap: 4px; }

/* Hero */

.hero { text-align: center; padding-top: 72px; padding-bottom: 40px; }
.hero .icon { width: 128px; height: 128px; margin: 0 auto 20px; }
.hero h1 { font-size: clamp(36px, 6vw, 56px); line-height: 1.08; letter-spacing: -0.025em; margin: 0 0 14px; }
.hero .lede { font-size: clamp(19px, 2.4vw, 23px); color: var(--muted); max-width: 680px; margin: 0 auto 28px; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.button {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 980px;
  font-weight: 600;
  font-size: 16px;
  border: 1px solid var(--accent);
}
.button:hover { text-decoration: none; filter: brightness(1.08); }
.button.primary { background: var(--accent); color: var(--accent-text); }
.button.secondary { background: transparent; color: var(--accent); }

.fine { color: var(--muted); font-size: 14px; margin-top: 14px; }

/* Sections */

section { padding: 56px 0 8px; scroll-margin-top: 56px; }
section h2 { font-size: clamp(26px, 3.4vw, 34px); letter-spacing: -0.02em; margin: 0 0 12px; }
section > .wrap > p.intro { color: var(--muted); max-width: 720px; margin: 0 0 28px; }

.prose p { max-width: 720px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 18px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 18px;
}
.card h3 { margin: 0 0 6px; font-size: 18px; letter-spacing: -0.01em; }
.card p, .card ul { margin: 0; color: var(--muted); font-size: 15.5px; }
.card ul { padding-left: 18px; }
.card li + li { margin-top: 3px; }

.band { background: var(--bg-alt); margin-top: 56px; padding-bottom: 56px; }

/* Screenshots: a framed placeholder until the image is added. */

.shot {
  margin: 8px 0 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--shot-bg);
}
.shot img { width: 100%; }
.shot.placeholder {
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 15px;
  text-align: center;
  padding: 24px;
}
.shot figcaption { padding: 10px 14px; font-size: 14px; color: var(--muted); background: var(--card); border-top: 1px solid var(--line); }

.shot.wide { margin-top: 24px; }

.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 18px; margin-top: 18px; }

/* Price */

.price {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 18px;
  max-width: 760px;
}
.price .card { padding: 26px; }
.price .amount { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; color: var(--text); margin: 4px 0 8px; }
.price .card.highlight { border-color: var(--accent); }

/* Product card on the Jupiterra home page */

.product {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 24px;
  align-items: center;
  max-width: 760px;
  margin: 0 auto;
}
.product img { width: 112px; height: 112px; }
.product h2 { margin: 0 0 4px; }
.product p { margin: 0 0 14px; color: var(--muted); }

@media (max-width: 560px) {
  .product { grid-template-columns: 1fr; text-align: center; }
  .product img { margin: 0 auto; }
  .product .actions { justify-content: center; }
  .site-header nav { gap: 16px; }
}

@media (max-width: 380px) {
  .wrap { padding: 0 16px; }
  .site-header nav { gap: 12px; font-size: 14px; }
  .brand { font-size: 15px; }
}

.faq dt { font-weight: 600; margin-top: 18px; }
.faq dd { margin: 4px 0 0; color: var(--muted); max-width: 720px; }
