/* Waypoint pages: the look of the app itself (night ground, mint and lavender, Syne and Onest). */
@font-face { font-family: "Syne"; src: url("fonts/Syne-latin-variable.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "Onest"; src: url("fonts/Onest-latin-variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  color-scheme: dark;
  --night: #121019;
  --raise: #1a1724;
  --glass: rgba(255, 255, 255, 0.045);
  --edge: rgba(236, 232, 246, 0.12);
  --field: rgba(236, 232, 246, 0.24);
  --text: #ece8f6;
  --soft: #a7a1b8;
  --mint: #a6e4c4;
  --lav: #c4b6f4;
  --butter: #eed596;
  --ink-on: #121019;
  --head: "Syne", "Avenir Next", sans-serif;
  --body: "Onest", "Avenir Next", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--text); font: 17px/1.6 var(--body);
  background:
    radial-gradient(900px 520px at 85% -10%, rgba(196, 182, 244, 0.16), transparent 70%),
    radial-gradient(700px 480px at -10% 40%, rgba(166, 228, 196, 0.08), transparent 70%),
    var(--night);
  background-attachment: fixed;
}
main { max-width: 760px; margin: 0 auto; padding: 56px 16px 72px; }
a { color: var(--lav); text-underline-offset: 3px; }
a:hover { color: var(--mint); }
:focus-visible { outline: 3px solid var(--lav); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--head); line-height: 1.12; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(2.25rem, 7vw, 3.6rem); font-weight: 700; }
h2 { font-size: 1.6rem; font-weight: 700; margin: 64px 0 16px; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 14px; max-width: 64ch; }
.sub, .soft { color: var(--soft); }
code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.88em; background: var(--glass); border: 1px solid var(--edge); border-radius: 6px; padding: 1px 6px; }
ul { padding-left: 1.2em; }
li { margin: 4px 0; max-width: 64ch; }

/* Brand line */
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 700; font-size: 1.25rem; color: var(--text); text-decoration: none; margin-bottom: 40px; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }

/* Hero */
.lede { font-size: 1.15rem; color: var(--soft); margin: 20px 0 28px; max-width: 58ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px;
  border-radius: 12px; font: 600 1rem var(--body); text-decoration: none; cursor: pointer;
  border: 1px solid var(--edge); background: var(--glass); color: var(--text);
}
.btn:hover { background: rgba(255, 255, 255, 0.08); color: var(--text); }
.btn.go { border: 0; color: var(--ink-on); background: linear-gradient(120deg, var(--mint), var(--lav)); box-shadow: 0 8px 28px rgba(166, 228, 196, 0.18); }
.btn.go:hover { color: var(--ink-on); filter: brightness(1.05); }
.note { font-size: 0.92rem; color: var(--soft); margin-top: 14px; }

/* The route: the one picture of the page. The stops are the steps of the app, in order. */
.route { list-style: none; margin: 8px 0 0; padding: 0; position: relative; }
/* The line runs from each stop to the next one, and ends at the last stop. */
.route li:not(:last-child)::after {
  content: ""; position: absolute; left: 9px; top: 22px; bottom: -6px; width: 2px;
  background: linear-gradient(var(--mint), var(--lav));
  transform-origin: top; animation: draw 0.45s ease-out both;
}
.route li:nth-child(2)::after { animation-delay: 0.35s; }
.route li:nth-child(3)::after { animation-delay: 0.7s; }
.route li { position: relative; padding: 0 0 30px 48px; margin: 0; max-width: none; }
.route li:last-child { padding-bottom: 0; }
.route li::before {
  content: ""; position: absolute; left: 3px; top: 6px; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid var(--night); background: var(--mint); box-shadow: 0 0 0 2px var(--mint), 0 0 18px rgba(166, 228, 196, 0.35);
}
.route li:nth-child(n+3)::before { background: var(--lav); box-shadow: 0 0 0 2px var(--lav), 0 0 18px rgba(196, 182, 244, 0.35); }
.route li:last-child::before { background: var(--night); }
.route h3 { margin-bottom: 6px; }
.route p { color: var(--soft); margin: 0; }
@keyframes draw { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* Plain boxes */
.card { background: var(--glass); border: 1px solid var(--edge); border-radius: 18px; padding: 20px 22px; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.facts .card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.facts .card p { color: var(--soft); font-size: 0.95rem; }
.never li::marker { color: var(--butter); }

/* The invite form */
form { display: grid; gap: 16px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: grid; gap: 6px; font-weight: 600; font-size: 0.95rem; }
label em { font-style: normal; font-weight: 400; color: var(--soft); }
input, textarea {
  width: 100%; font: 16px/1.5 var(--body); color: var(--text); background: rgba(18, 16, 25, 0.6);
  border: 1px solid var(--field); border-radius: 10px; padding: 11px 13px;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, textarea:focus { outline: none; border-color: var(--lav); box-shadow: 0 0 0 3px rgba(196, 182, 244, 0.25); }
form .btn { justify-self: start; }
.sent { display: none; color: var(--mint); margin: 4px 0 0; }
.sent.on { display: block; }

footer { margin-top: 72px; padding-top: 20px; border-top: 1px solid var(--edge); color: var(--soft); font-size: 0.92rem; display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a { color: var(--soft); }

@media (max-width: 560px) {
  main { padding-top: 32px; }
  .two { grid-template-columns: 1fr; }
  .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .route li::after { animation: none; }
}
