/* Homeglass site: one stylesheet, system fonts, light and dark. Brand purple matches the app. */
:root {
  --brand: #6B4EFF;
  --ink: #1C1C1E;
  --muted: #5F5F66;
  --bg: #FFFFFF;
  --card: #F4F2FF;
  --line: #E6E3F5;
  --max: 980px;
}
@media (prefers-color-scheme: dark) {
  :root { --ink: #F5F5F7; --muted: #A1A1AA; --bg: #0E0E12; --card: #1C1A26; --line: #2A2738; --brand: #8B73FF; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
a { color: var(--brand); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header and footer */
header.site { border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; color: var(--ink); text-decoration: none; }
.logo .mark { width: 30px; height: 30px; border-radius: 8px; background: var(--brand); }
nav a { color: var(--muted); text-decoration: none; margin-left: 20px; font-size: 15px; }
nav a:hover { color: var(--ink); }
footer.site { border-top: 1px solid var(--line); margin-top: 80px; padding: 32px 0; color: var(--muted); font-size: 14px; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
footer.site a { color: var(--muted); text-decoration: none; margin-right: 18px; }

/* Landing */
.hero { text-align: center; padding: 88px 0 56px; }
.hero h1 { font-size: clamp(38px, 7vw, 64px); line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 18px; }
.hero p { font-size: 20px; color: var(--muted); max-width: 620px; margin: 0 auto 32px; }
.button { display: inline-block; background: var(--ink); color: var(--bg); padding: 14px 26px; border-radius: 999px; text-decoration: none; font-weight: 600; }
.note { font-size: 14px; color: var(--muted); margin-top: 12px; }
.placeholder {
  /* Wireframe box: swap for screenshots or a video once they exist. */
  background: var(--card); border: 2px dashed var(--line); border-radius: 28px; color: var(--muted);
  display: grid; place-items: center; text-align: center; font-size: 15px; padding: 24px;
}
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 8px 0 72px; }
.shots .placeholder { aspect-ratio: 9 / 19; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--card); border-radius: 22px; padding: 26px; }
.card h3 { margin: 0 0 8px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
section.band { padding: 64px 0 0; }
section.band h2 { font-size: 32px; letter-spacing: -0.01em; margin: 0 0 24px; text-align: center; }
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { list-style: none; counter-increment: step; }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; margin-bottom: 10px; }

/* Widget showcase: real widgets on a grid sized like a Home Screen (small = 1 column, medium = 2) */
.showcase { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 8px 0 72px; align-items: center; }
.showcase img { width: 100%; height: auto; display: block; filter: drop-shadow(0 10px 24px rgba(0,0,0,.14)); }
.showcase img.wide { grid-column: span 2; }

/* Legal and support pages */
.doc { max-width: 720px; padding-top: 48px; }
.doc h1 { font-size: 38px; letter-spacing: -0.01em; margin: 0 0 6px; }
.doc .updated { color: var(--muted); margin: 0 0 32px; }
.doc h2 { font-size: 22px; margin: 40px 0 10px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.doc .callout { background: var(--card); border-radius: 16px; padding: 18px 20px; margin: 20px 0; }

@media (max-width: 760px) {
  .shots, .features, .steps { grid-template-columns: 1fr; }
  .showcase { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .shots .placeholder { aspect-ratio: 16 / 10; }
  nav a { margin-left: 14px; }
}
