/* ============================================================
   page.css — the one layout both coming-soon pages use. Every value
   comes from tokens.css; nothing is picked here.
   ============================================================ */

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 48px 24px;
  background: var(--surface);
  color: var(--text-default);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

/* The graph runs behind everything, edge to edge. It is the product's own
   home screen, so it belongs on the page — but it is the room, not the
   message, so the wash is drawn back over its middle and the column sits
   in the clear. */
.room { position: fixed; inset: 0; z-index: 0; }
.room canvas { display: block; width: 100%; height: 100%; }

.room::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    40% 62% at 50% 50%,
    var(--surface) 0%,
    var(--surface) 40%,
    var(--surface-fade) 100%
  );
  pointer-events: none;
}

/* Narrow: there is no room beside the column, so the clear area stops being
   a shape around the words and becomes a band across them. The room keeps
   only the strips above and below — which is the honest amount of room a
   phone has for it. */
@media (max-width: 960px) {
  .room::after {
    /* Measured off the column, not off the viewport: with the 84pt icon above
       them and the waitlist under them, the words run 600px (Tentanote) and
       491px (Tentabase) at 375px wide, so ±314 clears the taller one by 14px
       and the fade keeps its 108px tail. A percentage band would swallow the
       whole room on a tall window. Re-measure it if the mark or the form
       changes size again. */
    background: linear-gradient(
      to bottom,
      var(--surface-fade) calc(50% - 422px),
      var(--surface) calc(50% - 314px),
      var(--surface) calc(50% + 314px),
      var(--surface-fade) calc(50% + 422px)
    );
  }
}

main {
  position: relative;
  z-index: 1;
  max-width: 34rem;
  text-align: center;
}

/* The app icon, not the logo: it carries its own ground rather than taking
   the page's, so it is a macOS-style tile and keeps its light ground in dark
   mode, the way an app icon does in a dock. The flat logo is the other cut
   of the same mark (icon/logo-*.svg) and is for a header, where it sits
   beside a wordmark at text size and has to take the page's colour. */
.mark {
  display: block;
  margin: 0 auto 26px;
  width: 84px;
  height: 84px;
  border-radius: 22.37%;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.16), 0 8px 20px rgb(0 0 0 / 0.13);
}

h1 {
  margin: 0;
  font-size: clamp(2.5rem, 7vw, 3.75rem);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.lede {
  margin: 22px auto 0;
  max-width: 30rem;
  font-size: clamp(1.0625rem, 2.2vw, 1.1875rem);
  line-height: 1.55;
  color: var(--text-muted);
  text-wrap: pretty;
}

.status {
  margin: 30px auto 0;
  max-width: 26rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-faint);
  text-wrap: pretty;
}

footer {
  margin-top: 44px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  font-size: 0.8125rem;
  color: var(--text-faint);
}

footer .sep {
  width: 3px;
  height: 3px;
  border-radius: var(--radius-full);
  background: currentColor;
  opacity: 0.55;
}

a {
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--border-emphasis);
  padding-bottom: 1px;
  transition: color 120ms ease, border-color 120ms ease;
}

a:hover { color: var(--primary-text); border-bottom-color: var(--primary-border); }

a:focus-visible {
  outline: none;
  border-radius: var(--radius-sm);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--focus-ring) 40%, transparent);
}

@media (prefers-reduced-motion: reduce) {
  a { transition: none; }
}
