/* Glasscast's site. The system font, like the app; nothing loads from anyone else's server. */
:root {
  color-scheme: dark light;
  --night: #121327;
  --night-2: #1b1d3a;
  --ink: #e9eaf4;
  --muted: #a3a6c2;
  --signal: #8fa3ff;
  --rule: rgba(233, 234, 244, 0.12);
  --measure: 40rem;
}
@media (prefers-color-scheme: light) {
  :root {
    --night: #f6f6fb;
    --night-2: #eceefa;
    --ink: #1b1d33;
    --muted: #5b5e7a;
    --signal: #3247c8;
    --rule: rgba(27, 29, 51, 0.12);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--signal); text-underline-offset: 0.18em; }
a:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 4px; }
img { display: block; }

/* Header and footer, shared by every page. */
.bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  max-width: 64rem; margin: 0 auto; padding: 1.1rem 1.25rem;
}
.brand { display: flex; align-items: center; gap: 0.6rem; color: var(--ink); text-decoration: none; font-weight: 600; letter-spacing: -0.01em; }
.brand img { width: 30px; height: 30px; }
.bar nav { display: flex; gap: 1.25rem; font-size: 0.94rem; }
.bar nav a { color: var(--muted); text-decoration: none; }
.bar nav a:hover, .bar nav a[aria-current] { color: var(--ink); }

footer {
  border-top: 1px solid var(--rule);
  margin-top: 5rem;
  color: var(--muted);
  font-size: 0.88rem;
}
footer .inner { max-width: 64rem; margin: 0 auto; padding: 2rem 1.25rem 3rem; display: grid; gap: 0.75rem; }
footer nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; }
footer nav a { color: var(--ink); text-decoration: none; }
footer nav a:hover { text-decoration: underline; }
footer p { margin: 0; max-width: 46rem; }

/* Home: the icon broadcasting, as it does in the Dock. */
.hero { position: relative; overflow: hidden; text-align: center; padding: 4.5rem 1.25rem 5rem; }
.rings { position: absolute; left: 50%; top: 9.5rem; width: 0; height: 0; pointer-events: none; }
.rings span {
  position: absolute; left: 50%; top: 50%;
  border: 1.5px solid var(--signal); border-radius: 50%;
  translate: -50% -50%;
  opacity: 0;
  animation: ring 2.4s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.rings span:nth-child(1) { width: 300px; height: 300px; --o: 0.34; }
.rings span:nth-child(2) { width: 470px; height: 470px; --o: 0.2; animation-delay: 0.25s; }
.rings span:nth-child(3) { width: 660px; height: 660px; --o: 0.11; animation-delay: 0.5s; }
.rings span:nth-child(4) { width: 880px; height: 880px; --o: 0.06; animation-delay: 0.75s; }
@keyframes ring { from { opacity: 0; scale: 0.6; } to { opacity: var(--o); scale: 1; } }
.hero .icon { position: relative; width: 168px; height: 168px; margin: 0 auto 2.2rem; filter: drop-shadow(0 18px 40px rgba(40, 60, 190, 0.45)); }
.hero h1 {
  position: relative;
  font-size: clamp(2.6rem, 7vw, 4.6rem); line-height: 1.02; letter-spacing: -0.035em; font-weight: 700;
  margin: 0 auto 1.1rem; max-width: 14ch;
}
.hero .lede { position: relative; font-size: 1.25rem; line-height: 1.45; color: var(--muted); margin: 0 auto; max-width: 34rem; }
.hero .availability { position: relative; margin: 2rem 0 0; font-size: 0.98rem; }
.hero .availability strong { color: var(--ink); font-weight: 600; }
@media (prefers-reduced-motion: reduce) {
  .rings span { animation: none; opacity: var(--o); }
}

.section { max-width: 64rem; margin: 0 auto; padding: 0 1.25rem; }
.section + .section { margin-top: 5rem; }
.section h2 { font-size: 1.9rem; letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 0.5rem; }
.section > p { color: var(--muted); max-width: var(--measure); margin: 0 0 2rem; }

.byo {
  max-width: 64rem; margin: 0 auto 5rem; padding: 0 1.25rem;
}
.byo p {
  margin: 0; padding: 1.4rem 1.6rem; border-left: 3px solid var(--signal);
  background: var(--night-2); border-radius: 0 12px 12px 0; max-width: 46rem;
}

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 2.2rem 3rem; margin: 0; }
.features div { border-top: 1px solid var(--rule); padding-top: 1rem; }
.features dt { font-weight: 600; font-size: 1.06rem; margin-bottom: 0.35rem; }
.features dd { margin: 0; color: var(--muted); }

.price { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 2rem 3rem; }
.price div { border-top: 1px solid var(--rule); padding-top: 1rem; }
.price strong { display: block; font-size: 1.3rem; letter-spacing: -0.01em; margin-bottom: 0.3rem; }
.price span { color: var(--muted); }

/* Policy and help pages: one readable column. */
.doc { max-width: var(--measure); margin: 0 auto; padding: 2.5rem 1.25rem 0; }
.doc h1 { font-size: clamp(2rem, 5vw, 2.8rem); letter-spacing: -0.03em; line-height: 1.1; margin: 0 0 0.4rem; }
.doc .updated { color: var(--muted); margin: 0 0 2.5rem; }
.doc h2 { font-size: 1.3rem; letter-spacing: -0.01em; margin: 2.6rem 0 0.6rem; }
.doc h3 { font-size: 1.06rem; margin: 1.8rem 0 0.4rem; }
.doc p, .doc li { color: var(--ink); }
.doc ul { padding-left: 1.2rem; }
.doc li + li { margin-top: 0.45rem; }
.doc .summary { background: var(--night-2); border-radius: 12px; padding: 1.2rem 1.4rem; margin: 0 0 2rem; }
.doc .summary p { margin: 0; }
.doc table { width: 100%; border-collapse: collapse; font-size: 0.95rem; margin: 1rem 0; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 0.6rem 0.8rem 0.6rem 0; border-top: 1px solid var(--rule); }
.doc th { font-weight: 600; }
.doc .scroll { overflow-x: auto; }
.doc address { font-style: normal; }
.doc details { border-top: 1px solid var(--rule); padding: 0.9rem 0; }
.doc details:last-of-type { border-bottom: 1px solid var(--rule); }
.doc summary { cursor: pointer; font-weight: 600; }
.doc details p { margin: 0.6rem 0 0; }
.contact { font-size: 1.25rem; font-weight: 600; }

@media (max-width: 34rem) {
  .bar nav { gap: 0.9rem; font-size: 0.9rem; }
  .bar nav .wide { display: none; }
  .hero { padding-top: 3rem; }
  .rings { top: 8rem; }
  .hero .icon { width: 136px; height: 136px; }
}
