/* mindnumb.app: the app's night sky and type. Colours from Theme.swift. */

@font-face {
  font-family: "Inter";
  src: url("/assets/InterVariable.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --sky-deep: #16152f;
  --sky: #1f1e45;
  --cloud-blue: #3257a6;
  --cloud-violet: #4f3a93;
  --cloud-teal: #22508e;
  --ink: #f4f4fa;
  --ink-muted: #a3a6cc;
  --surface: rgba(255, 255, 255, 0.07);
  --surface-raised: rgba(255, 255, 255, 0.11);
  --rim: rgba(255, 255, 255, 0.18);
  --periwinkle: #bfc8fd;
  --orchid: #f0c3ff;
  --azure: #1e95ff;
}

* { box-sizing: border-box; }

html { background: var(--sky-deep); }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font: 17px/1.55 "Inter", system-ui, -apple-system, sans-serif;
  /* The sky, quietly: deep indigo easing to a touch of blue. */
  background: linear-gradient(170deg, var(--sky-deep) 0%, var(--sky) 55%, #1f2a5a 100%) fixed;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--periwinkle); text-underline-offset: 3px; }
a:hover { color: var(--orchid); }

.page {
  max-width: 680px;
  margin: 0 auto;
  padding: 40px 16px 64px;
}

/* The logotype, masked over the app's periwinkle-to-orchid gradient. */
/* The logotype, exactly centred; its ™ hangs off the right edge without
   taking any room. */
.brand {
  position: relative;
  width: 180px;
  margin: 0 auto 40px;
}
.tm {
  position: absolute;
  left: 100%;
  top: -4px;
  margin-left: 4px;
  font-size: 10px;
  line-height: 1;
  font-weight: 600;
  color: var(--orchid);
}

.wordmark {
  display: block;
  width: 180px;
  height: 17px;
  background: linear-gradient(90deg, var(--periwinkle), var(--orchid), var(--periwinkle));
  -webkit-mask: url("/assets/logo.svg") center / contain no-repeat;
  mask: url("/assets/logo.svg") center / contain no-repeat;
}
.wordmark span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

h1 { font-size: 34px; line-height: 1.2; font-weight: 700; margin: 0 0 8px; letter-spacing: -0.01em; }
h2 { font-size: 21px; font-weight: 650; margin: 36px 0 8px; }
h3 { font-size: 17px; font-weight: 650; margin: 24px 0 4px; }
.faq h3 { margin-top: 40px; }
.faq h2 + h3 { margin-top: 16px; }
p, li { color: var(--ink); }
.muted { color: var(--ink-muted); }
.lede { font-size: 19px; color: var(--ink-muted); margin: 0 0 28px; }
ul { padding-left: 22px; }
li { margin: 6px 0; }

.card {
  background: var(--surface);
  border: 1px solid var(--rim);
  border-radius: 24px;
  padding: 24px;
  margin: 24px 0;
}

.button {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  background: var(--surface-raised);
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.button:hover { background: rgba(255, 255, 255, 0.16); color: var(--ink); }
.button.quiet { border-color: transparent; }

.hero { text-align: center; padding-top: 24px; }
.hero .icon { width: 128px; height: 128px; border-radius: 28px; margin: 0 auto 28px; display: block;
  box-shadow: 0 18px 50px rgba(10, 10, 40, 0.6); }
.hero .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }

.code {
  font-size: 56px;
  font-weight: 700;
  letter-spacing: 0.18em;
  margin: 8px 0 4px;
  padding-left: 0.18em; /* balance the trailing letter-spacing */
}

footer {
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--rim);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 15px;
  color: var(--ink-muted);
}
footer a { color: var(--ink-muted); text-decoration: none; }
footer a:hover { color: var(--ink); }
footer .copyright { margin-left: auto; }

@media (max-width: 480px) {
  h1 { font-size: 28px; }
  .code { font-size: 44px; }
  footer .copyright { margin-left: 0; width: 100%; }
}

/* The home page: words on the left, the phone on the right; stacked on a
   phone, the phone first. */
.page.wide { max-width: 1040px; }

.split {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 64px;
  padding: 24px 0 16px;
}
.split-text h1 { font-size: 52px; margin-bottom: 4px; }
.split-text .lede { font-size: 22px; margin-bottom: 20px; }
.split-text p { max-width: 30em; }
.split-text .actions { margin-top: 28px; }

/* A minimal iPhone: a dark rounded slab with a faint rim of light, the
   screenshot inset (it carries its own Dynamic Island). */
.phone {
  width: 320px;
  padding: 11px;
  border-radius: 56px;
  background: #0c0b1d;
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.16),
    0 0 0 1px rgba(0, 0, 0, 0.6),
    0 40px 90px rgba(8, 8, 32, 0.7),
    0 0 120px rgba(80, 104, 220, 0.25);
}
.phone video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 46px;
  background: var(--sky);
  transition: opacity 0.45s ease;
}
.phone video.dim { opacity: 0; }

@media (max-width: 760px) {
  .split { grid-template-columns: 1fr; gap: 36px; text-align: center; padding-top: 0; }
  .split-phone { order: -1; }
  .phone { width: 250px; margin: 0 auto; border-radius: 44px; padding: 9px; }
  .phone video { border-radius: 36px; }
  .split-text h1 { font-size: 36px; }
  .split-text .lede { font-size: 19px; }
  .split-text p { margin-left: auto; margin-right: auto; }
}
