/* The look of the website: the home page (index.html) and the pages that the stores ask for
   (privacy.html, terms.html, delete-account.html). Plain pages in the app's own colours,
   with no script and nothing fetched from another site. The rules for the home page alone
   are at the end, under "body.home". */
:root {
  color-scheme: dark;
  --canvas: #0A0717;
  --panel: #151027;
  --panel-2: #1D1636;
  --line: #2E2550;
  --text: #ECE7FA;
  --muted: #A99FC6;
  --accent: #B45CF8;
  --pale: #E9D5FF;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  padding: 0 20px 80px;
  background: radial-gradient(120% 70% at 0% 0%, #1B0F3A 0%, var(--canvas) 55%) fixed var(--canvas);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
main { max-width: 46rem; margin: 0 auto; }
header { padding: 48px 0 8px; border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.brand {
  font-size: 14px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); font-weight: 700; margin: 0 0 6px;
}
.brand a { color: inherit; text-decoration: none; }
h1 { font-size: clamp(1.7rem, 5vw, 2.3rem); line-height: 1.2; margin: 0 0 12px; font-weight: 800; }
h2 { font-size: 1.22rem; margin: 44px 0 12px; font-weight: 700; scroll-margin-top: 20px; }
h3 { font-size: 1.02rem; margin: 28px 0 8px; font-weight: 700; color: var(--pale); }
p, li { margin: 0 0 14px; }
ul, ol { padding-left: 22px; }
a { color: var(--pale); text-decoration: underline; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
.dates { color: var(--muted); font-size: .92rem; margin: 0; }
.lede {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 14px;
  padding: 18px 20px 6px;
  margin: 28px 0 8px;
}
nav.contents {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 20px 6px;
  margin: 24px 0 0;
}
nav.contents p { font-weight: 700; margin-bottom: 8px; }
nav.contents ol { columns: 2; column-gap: 32px; }
nav.contents li { margin-bottom: 6px; break-inside: avoid; }
@media (max-width: 560px) { nav.contents ol { columns: 1; } }
.table { overflow-x: auto; margin: 0 0 14px; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border: 1px solid var(--line); }
th { background: var(--panel-2); font-weight: 700; }
td { background: var(--panel); }
address { font-style: normal; margin: 0 0 14px; }
footer {
  margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: .92rem;
}
strong { color: #FFFFFF; }

/* ---------------------------------------------------------------------------------------
   The home page. Glass panels on the dark canvas, and one glowing violet action, as in the
   app (ui-design.png).
   --------------------------------------------------------------------------------------- */
body.home {
  padding-bottom: 40px;
  background:
    radial-gradient(60% 46% at 82% 4%, rgba(124, 58, 237, .30) 0%, rgba(124, 58, 237, 0) 70%),
    radial-gradient(120% 70% at 0% 0%, #1B0F3A 0%, var(--canvas) 55%) var(--canvas);
  background-repeat: no-repeat;
}
.home main { max-width: 68rem; }
.home .top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 0; margin: 0; border: 0;
}
.home .logo {
  display: flex; align-items: center; gap: 12px;
  font-size: 1.15rem; font-weight: 800; color: var(--text); text-decoration: none;
}
.home .logo img { border-radius: 50%; box-shadow: 0 0 22px rgba(180, 92, 248, .5); }
.home .pill {
  padding: 9px 18px; border-radius: 999px; white-space: nowrap;
  font-size: .95rem; font-weight: 600; color: var(--text); text-decoration: none;
  background: rgba(44, 37, 68, .55);
  border: 1px solid rgba(233, 213, 255, .18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07);
}
.home .pill:hover { border-color: rgba(233, 213, 255, .4); }

.home .hero {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 40px; align-items: center; padding: 44px 0 20px;
}
.home h1 {
  font-size: clamp(2.2rem, 5.4vw, 3.5rem); line-height: 1.07; letter-spacing: -.02em;
  margin: 0 0 20px;
}
.home .lead { font-size: 1.14rem; color: #DAD3EF; max-width: 34rem; margin-bottom: 28px; }
.home .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin: 0; }
.home .button {
  display: inline-block; padding: 14px 28px; border-radius: 999px;
  font-weight: 700; color: #FFFFFF; text-decoration: none;
  background: linear-gradient(180deg, #C98BFF 0%, #9146E6 52%, #6A2BC4 100%);
  border: 1px solid rgba(233, 213, 255, .6);
  box-shadow: 0 10px 34px rgba(180, 92, 248, .45), inset 0 1px 0 rgba(255, 255, 255, .4),
    inset 0 -2px 0 rgba(43, 19, 92, .35);
}
.home .button:hover { box-shadow: 0 12px 44px rgba(180, 92, 248, .65), inset 0 1px 0 rgba(255, 255, 255, .5); }
.home .soon { color: var(--muted); font-size: .98rem; }

/* Three screens of the app, the middle one in front. */
.home .phones { display: flex; justify-content: center; align-items: center; padding: 12px 0; }
.home .phone {
  flex: 0 0 37%; margin: 0; overflow: hidden; border-radius: 9% / 4.2%;
  background: #03030D; border: 1px solid rgba(233, 213, 255, .22);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .6), 0 0 50px rgba(124, 58, 237, .28);
}
.home .phone img { display: block; width: 100%; height: auto; }
.home .phone:nth-child(1) { transform: translateX(22%) rotate(-6deg) scale(.86); }
.home .phone:nth-child(2) { position: relative; z-index: 1; flex-basis: 42%; }
.home .phone:nth-child(3) { transform: translateX(-22%) rotate(6deg) scale(.86); }

.home h2 { font-size: 1.65rem; letter-spacing: -.01em; margin: 76px 0 8px; }
.home .sub { color: var(--muted); max-width: 44rem; margin-bottom: 26px; }
.home .cards + .sub { margin-top: 26px; }
.home .cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.home .card {
  padding: 22px 22px 8px; border-radius: 22px;
  background: linear-gradient(180deg, rgba(44, 37, 68, .58) 0%, rgba(23, 20, 38, .78) 100%);
  border: 1px solid rgba(233, 213, 255, .13);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 16px 40px rgba(0, 0, 0, .28);
}
.home .card h3 { margin: 0 0 8px; font-size: 1.08rem; color: #FFFFFF; }
.home .card p { color: #CFC8E6; font-size: .98rem; }
.home .wide { grid-column: span 3; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 36px; }
.home .wide h3 { grid-column: span 2; }
.home footer { margin-top: 72px; }
.home footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 14px; }

@media (max-width: 860px) {
  .home .hero { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 24px; }
  .home .phones { max-width: 30rem; margin: 0 auto; }
  .home .cards { grid-template-columns: minmax(0, 1fr); }
  .home .wide { grid-column: auto; grid-template-columns: minmax(0, 1fr); }
  .home .wide h3 { grid-column: auto; }
  .home h2 { margin-top: 56px; }
}
@media (max-width: 420px) {
  .home .top .pill { display: none; }
}
