/* Cobalt's site. Colors, background and brush strokes come from the app and its icon. */
:root {
  color-scheme: dark;
  --text: #ccd9eb;  /* the theme's steel */
  --body: #a9b9d2;
  --muted: #94a6c2;
  --link: #68c3ff;
  --line: rgba(150,190,255,.14);
  --steel: linear-gradient(180deg, #ccd9eb, #94a6c2);
}
@property --sweep { syntax: '<angle>'; inherits: false; initial-value: 360deg; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: #020617; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; color: var(--body); overflow-x: hidden;
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Inter, Roboto, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
/* The app's own cobalt background, fixed behind the page. */
body::before { content: ''; position: fixed; inset: 0; z-index: -1; background: #020617 url(bg.jpg) center / cover no-repeat; }
a { color: var(--link); text-underline-offset: 3px; }
p { margin: 0 0 16px; }
:focus-visible { outline: 2px solid #68c3ff; outline-offset: 3px; }
main:focus { outline: none; }
.col { max-width: 620px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 10; padding: 10px 18px; border-radius: 999px; background: #fff; color: #080f33; font-weight: 600; text-decoration: none; }
.skip:focus { top: 16px; }

/* Top: the app's icon. The C paints itself, the brush draws underneath, then a glint sweeps across. */
.hero { padding: 80px 0 0; text-align: center; }
.icon { position: relative; width: 168px; height: 168px; margin: 0 auto 26px; border-radius: 22.4%; overflow: hidden; isolation: isolate;
  background: url(icon-back.jpg) center / cover; box-shadow: 0 14px 40px rgba(0,0,10,.55); animation: fade .5s ease both; }
.icon img { position: absolute; inset: 0; width: 100%; height: 100%; }
.icon .cee { clip-path: inset(0 0 18% 0);
  -webkit-mask: conic-gradient(from 90deg at 50% 47%, transparent calc(360deg - var(--sweep)), #000 0);
  mask: conic-gradient(from 90deg at 50% 47%, transparent calc(360deg - var(--sweep)), #000 0);
  animation: paint .9s cubic-bezier(.65,0,.35,1) both .1s; }
.icon .under { clip-path: inset(82% 0 0 0); animation: under .4s ease-out both .85s; }
.icon::after { content: ''; position: absolute; inset: -10% auto -10% 0; width: 28%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.24), transparent);
  transform: translateX(-160%) skewX(-18deg); animation: glint .8s ease-in-out both 1.15s; }
@keyframes fade { from { opacity: 0; } }
@keyframes paint { from { --sweep: 30deg; } to { --sweep: 360deg; } }
@keyframes under { from { clip-path: inset(82% 100% 0 0); } to { clip-path: inset(82% 0 0 0); } }
@keyframes glint { to { transform: translateX(460%) skewX(-18deg); } }
h1 { margin: 0; color: var(--text); font-weight: 800; letter-spacing: -.04em; line-height: 1.05; }
.hero h1 img { display: block; width: auto; height: 46px; margin: 0 auto; }
.tag { margin: 20px auto 0; font-size: 21px; line-height: 1.4; text-wrap: balance; }
.motto { margin: 10px 0 0; text-wrap: balance; font-size: 24px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; color: var(--text); }
.reveal { animation: up .6s ease both .5s; }
.reveal.late { animation-delay: .7s; }
@keyframes up { from { opacity: 0; transform: translateY(8px); } }

/* The brush from the icon. */
.stroke { display: block; width: 180px; height: 8px; margin: 12px 0 0; background: url(brush.png) center / 100% 100% no-repeat; opacity: .75; }

.discord { margin: 44px 0 28px; text-align: center; }
.private { margin: 0 auto; text-align: center; font-size: 15px; line-height: 1.45; color: var(--muted); }
.private strong, .private span { display: block; text-wrap: balance; }
.private strong { margin-bottom: 6px; font-size: 18px; font-weight: 600; color: var(--text); }

.groups { margin-top: 48px; }
.group + .group { margin-top: 44px; }
.group h2 { margin: 0 0 14px; font-size: 24px; line-height: 1.2; letter-spacing: -.01em; color: var(--text); }
.group h2::after { content: ''; display: block; width: 150px; height: 7px; margin-top: 8px; background: url(brush.png) center / 100% 100% no-repeat; opacity: .75; }
ul.plain { list-style: none; margin: 0; padding: 0; }
ul.plain li { padding: 11px 0; border-top: 1px solid var(--line); color: #b7c5db; line-height: 1.45; }
ul.plain li:first-child { border-top: 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 24px; border-radius: 999px;
  font-size: 16px; font-weight: 600; line-height: 1.3; text-align: center; text-decoration: none; transition: transform .2s, box-shadow .2s, background .2s; }
a.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(40,110,255,.4); }
.btn.steel { background: var(--steel); color: #080f33; }
.btn.glass { background: rgba(80,140,255,.14); color: var(--text); box-shadow: inset 0 0 0 1px rgba(150,200,255,.4); }
a.btn.glass:hover { background: rgba(80,140,255,.24); box-shadow: inset 0 0 0 1px rgba(150,200,255,.6), 0 10px 28px rgba(40,110,255,.3); }
.btn .soon { font-size: 13px; font-weight: 700; color: #2f4672; }
.btn .new { font-size: 13px; font-weight: 800; color: #ff7a9f; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
#testflight { padding: 64px 0 0; text-align: center; }
#testflight .note { margin: 16px 0 0; font-size: 15px; }

footer { padding: 56px 0 64px; text-align: center; font-size: 14px; color: var(--muted); }
footer p { margin: 0 0 6px; }
footer .disclaimer { font-size: 15px; color: var(--body); }

/* Guide, privacy policy and not-found pages. */
.page { max-width: 680px; padding-top: 48px; }
.page .home { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 36px; color: var(--text); font-weight: 700; text-decoration: none; }
.page .home img { width: 36px; height: 36px; border-radius: 22.4%; }
.page h1 { font-size: 42px; }
.page .sub { margin: 14px 0 0; font-size: 15px; color: var(--muted); }
.page h2 { margin: 40px 0 8px; font-size: 22px; line-height: 1.25; color: var(--text); }
.page li { margin: 6px 0; }
.page ul, .page ol { padding-left: 22px; }
dl.keys { display: grid; grid-template-columns: 220px 1fr; margin: 10px 0 0; }
dl.keys dt, dl.keys dd { margin: 0; padding: 10px 0; border-top: 1px solid var(--line); }
dl.keys dt { padding-right: 18px; color: var(--text); font-weight: 600; }
dl.keys dt:first-of-type, dl.keys dd:first-of-type { border-top: 0; }

@media (max-width: 640px) {
  /* Blends into Safari's own bars. */
  body::before { background: linear-gradient(#020617, transparent 70px, transparent calc(100% - 110px), #020617), #020617 url(bg.jpg) center / cover no-repeat; }
  .col { padding: 0 20px; }
  .hero { padding-top: 48px; }
  .icon { width: 148px; height: 148px; }
  .hero h1 img { height: 42px; }
  .tag { font-size: 19px; }
  .motto { font-size: 21px; }
  .page { padding-top: 28px; }
  .page h1 { font-size: 34px; }
  dl.keys { grid-template-columns: 1fr; }
  dl.keys dt { padding-bottom: 0; }
  dl.keys dd, dl.keys dd:first-of-type { padding-top: 2px; border-top: 0; }
}
/* Wide screens: the three groups side by side. */
@media (min-width: 1100px) {
  .col { max-width: 1120px; }
  .col.page { max-width: 760px; }
  .icon { width: 190px; height: 190px; }
  .hero h1 img { height: 58px; }
  .tag { font-size: 24px; }
  .motto { font-size: 27px; }
  .groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 56px; margin-top: 64px; }
  .group + .group { margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
/* Browsers leave backgrounds out when printing, so the text turns dark. */
@media print {
  :root { color-scheme: light; --text: #000; --body: #000; --muted: #333; --link: #000; --line: rgba(0,0,0,.2); }
  html { background: none; } body::before { display: none; }
    .hero h1 img { filter: brightness(0); }
  ul.plain li, .btn, .btn .soon, .btn .new { color: #000 !important; }
  *, *::before, *::after { animation: none !important; }
}
