/* Shared by the teaser and the friends guide. Palette and A/B halves follow
   server/static/account.html. */
:root {
  color-scheme: dark;
  --bg: #020b1f; --card: rgba(8, 26, 60, 0.62); --field: rgba(1, 12, 34, 0.75);
  --fg: #e6f1ff; --muted: #8aa3c4; --line: rgba(120, 170, 230, 0.16);
  --cyan: #00affe; --mint: #3efabc; --teal: #01dabb; --warn: #ffc857;
  --grad: linear-gradient(100deg, var(--cyan), var(--teal) 55%, var(--mint));
  --lc: #ff4d6d;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0; padding: 28px 16px 56px; min-height: 100vh;
  font: 15px/1.6 system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--fg);
  background:
    radial-gradient(900px 520px at 12% -8%, rgba(0, 175, 254, 0.20), transparent 60%),
    radial-gradient(760px 480px at 95% 4%, rgba(62, 250, 188, 0.12), transparent 60%),
    radial-gradient(1000px 700px at 50% 120%, rgba(4, 29, 69, 0.9), transparent 70%),
    var(--bg);
  background-attachment: fixed;
}
main { max-width: 1000px; margin: 0 auto; }
a { color: var(--cyan); }
::selection { background: rgba(0, 175, 254, 0.35); }
code { font: 0.88em ui-monospace, SFMono-Regular, Menlo, monospace; color: #a8e6ff; }
pre { background: var(--field); border: 1px solid var(--line); border-radius: 9px; padding: 12px 14px; overflow-x: auto; margin: 10px 0; }
pre code { color: #cfeaff; font-size: 0.84rem; line-height: 1.55; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.brand { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 12px rgba(0, 175, 254, 0.35)); font-weight: 750; }

section {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 18px; margin-bottom: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
section::before { content: ""; position: absolute; left: 18px; right: 18px; top: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 175, 254, 0.6), rgba(62, 250, 188, 0.5), transparent); opacity: 0.55; }
section > p:first-child { margin-top: 0; } section > :last-child { margin-bottom: 0; }

/* ---- A (apps) blue, B (bridges) green */
.side-a { --hue: #00a2ff; --hue2: #3ccdff; --rgb: 0, 175, 254; --ink: #a8e2ff; }
.side-b { --hue: #00d69a; --hue2: #3efabc; --rgb: 62, 250, 188; --ink: #aaf5db; }
.side-a section { background: rgba(8, 28, 68, 0.62); }
.side-b section { background: rgba(5, 38, 50, 0.6); border-color: rgba(62, 250, 188, 0.12); }
:is(.side-a, .side-b) section::before { background: linear-gradient(90deg, transparent, rgba(var(--rgb), 0.8), transparent); opacity: 0.7; }
.side-head { display: flex; gap: 1px; align-items: stretch; margin: 30px 0 14px; }
.side-head h3 { margin: 0; font-size: 1.32rem; line-height: 1.15; padding-top: 0.06em; color: var(--ink); text-shadow: 0 0 14px rgba(var(--rgb), 0.35); }
.side-head p { margin: 0; padding-left: 2px; font-size: 0.85rem; color: var(--muted); }
.dropcap { font: 800 3.35rem/1 system-ui, -apple-system, sans-serif; margin: -0.13em 0 -0.12em; letter-spacing: -0.02em;
  background: linear-gradient(170deg, #fff 0%, var(--hue2) 30%, var(--hue) 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 10px rgba(var(--rgb), 0.6)) drop-shadow(0 0 26px rgba(var(--rgb), 0.25)); }
.split { display: block; }
.cable { display: none; }
@media (min-width: 760px) {
  .split { display: grid; grid-template-columns: minmax(0, 1fr) 46px minmax(0, 1fr); gap: 0 10px; align-items: start; }
  .split .side-head { margin-top: 6px; }
  .cable { display: block; align-self: stretch; position: relative; }
  .cable::before { content: ""; position: absolute; left: 50%; top: 18px; bottom: 30px; width: 2px; transform: translateX(-50%);
    background: linear-gradient(rgba(255,255,255,0.14), transparent); }
  .cable .plug { margin: 2px auto 0; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
    color: #01172b; background: linear-gradient(90deg, #00a2ff, #3efabc); box-shadow: -6px 0 18px rgba(0,175,254,0.45), 6px 0 18px rgba(62,250,188,0.45); }
  .cable .plug svg { width: 20px; height: 20px; transform: rotate(-90deg); }
}
.chips { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font-size: 0.8rem; padding: 3px 10px; border-radius: 999px; color: var(--ink);
  background: rgba(var(--rgb), 0.08); border: 1px solid rgba(var(--rgb), 0.28); }

/* ---- teaser */
.teaser .hero { text-align: center; margin: 7vh 0 34px; }
.teaser .logo { width: 112px; height: 112px; border-radius: 28px;
  box-shadow: 0 0 0 1px rgba(0, 175, 254, 0.35), 0 0 34px rgba(0, 175, 254, 0.4), 0 0 80px rgba(62, 250, 188, 0.18); }
.teaser h1 { font-size: 3rem; line-height: 1.1; margin: 18px 0 6px; letter-spacing: -0.02em; }
.teaser .tag { margin: 0; color: var(--muted); font-size: 1.1rem; }
.teaser .side-head { justify-content: center; }
.teaser .soon { text-align: center; color: var(--muted); margin-top: 34px; font-size: 0.9rem; letter-spacing: 0.12em; text-transform: uppercase; }
