/* You can sing — static site
   Accent #CD49FD is the app's own accent colour. */

:root {
  --bg: #000000;
  --surface: #0e0e11;
  --line: #212126;
  --text: #f4f4f6;
  --muted: #9c9ca6;
  --accent: #cd49fd;
  --accent-soft: #e0a5ff;
  --maxw: 1080px;
  --pad: clamp(20px, 5vw, 48px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { line-height: 1.08; letter-spacing: -0.02em; margin: 0; }

p { margin: 0; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px var(--pad);
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* The icon is black-on-black, so it needs a hairline to read as an icon. */
.brand img { border-radius: 8px; box-shadow: 0 0 0 1px #2c2c34; }

.brand-note {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
}

.brand-note:hover { color: var(--accent-soft); }

/* ---------- Layout ---------- */

section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(52px, 7.5vw, 96px) var(--pad);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  /* Clips the glow below, so it can never widen the page on narrow screens. */
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(32px, 6vw, 72px);
  padding-top: clamp(48px, 8vw, 90px);
}

/* Purple glow behind the hero, like the app's accent on black. */
.hero::before {
  content: "";
  position: absolute;
  top: -18%;
  left: 50%;
  width: min(1100px, 150vw);
  aspect-ratio: 1 / 1;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(205, 73, 253, 0.20) 0%, rgba(205, 73, 253, 0) 62%);
  pointer-events: none;
  z-index: -1;
}

h1 {
  font-size: clamp(46px, 8.5vw, 88px);
  font-weight: 700;
  letter-spacing: -0.035em;
}

.lead {
  margin-top: 24px;
  font-size: clamp(18px, 2.1vw, 22px);
  color: var(--text);
  max-width: 30ch;
}

.sub {
  margin-top: 12px;
  font-size: clamp(16px, 1.8vw, 19px);
  color: var(--muted);
  max-width: 36ch;
}

/* ---------- Phone frame ---------- */

.phone {
  position: relative;
  margin: 0 auto;
  max-width: 300px;
  border: 9px solid #1b1b20;
  border-radius: 46px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px #2e2e36,
    0 34px 70px rgba(0, 0, 0, 0.85),
    0 0 90px rgba(205, 73, 253, 0.13);
  background: #000;
}

.phone img { border-radius: 37px; }

/* The feature rows read better with a slightly smaller device. */
.feature .phone { max-width: 264px; }

/* ---------- Feature rows ---------- */

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
}

.feature.flip .feature-text { order: 2; }

.feature h2 {
  font-size: clamp(30px, 4.4vw, 46px);
  font-weight: 650;
}

.feature p {
  margin-top: 18px;
  color: var(--muted);
  font-size: clamp(17px, 1.9vw, 20px);
  max-width: 32ch;
}

/* ---------- Card rows ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  padding: 30px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
}

.card h3 {
  font-size: 20px;
  font-weight: 620;
  color: var(--accent-soft);
}

.card p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 16.5px;
}

.who { padding-top: 0; }

.after h2 {
  font-size: clamp(30px, 4.4vw, 46px);
  font-weight: 650;
  text-align: center;
  margin-bottom: 42px;
}

/* ---------- Closing ---------- */

.get {
  text-align: center;
  border-top: 1px solid var(--line);
}

.get-icon {
  margin: 0 auto 26px;
  border-radius: 20px;
  box-shadow: 0 0 0 1px #2c2c34, 0 0 70px rgba(205, 73, 253, 0.16);
}

.get h2 {
  font-size: clamp(30px, 4.4vw, 44px);
  font-weight: 650;
}

.get p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 19px;
}

/* ---------- Footer ---------- */

footer {
  padding: 34px var(--pad) 46px;
  text-align: center;
  color: #5f5f68;
  font-size: 14.5px;
  border-top: 1px solid var(--line);
}

/* ---------- Reveal on scroll ---------- */

.js-reveal .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js-reveal .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Narrow screens ---------- */

@media (max-width: 860px) {
  .hero,
  .feature {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text { order: 1; }
  .hero-shot { order: 2; }

  .feature.flip .feature-text { order: 0; }

  .lead, .sub, .feature p { margin-left: auto; margin-right: auto; }

  .phone { max-width: 268px; }

  .cards { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js-reveal .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Footer button ---------- */

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 22px;
}

.footer-button {
  display: inline-block;
  padding: 9px 20px;
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.footer-button:hover {
  color: var(--accent-soft);
  border-color: var(--accent);
}

/* ---------- Legal pages ---------- */

/* Narrower than the marketing sections: this is a page to read, not to scan. */
.legal {
  max-width: 760px;
  padding-top: clamp(36px, 5vw, 60px);
}

.legal-head { margin-bottom: 44px; }

.legal h1 {
  font-size: clamp(34px, 5.5vw, 52px);
  font-weight: 680;
}

.legal .updated {
  margin-top: 14px;
  color: var(--muted);
  font-size: 15px;
}

.legal .intro {
  margin-top: 20px;
  color: var(--text);
  font-size: clamp(17px, 1.9vw, 19px);
}

.legal h2 {
  margin-top: 52px;
  margin-bottom: 16px;
  font-size: clamp(22px, 2.8vw, 27px);
  font-weight: 640;
  scroll-margin-top: 80px;
}

.legal h3 {
  margin-top: 32px;
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: 620;
  color: var(--accent-soft);
}

.legal p { margin-top: 14px; color: var(--muted); }

.legal p.plain { color: var(--text); }

.legal ul {
  margin: 14px 0 0;
  padding-left: 22px;
  color: var(--muted);
}

.legal li { margin-top: 9px; }

.legal a { color: var(--accent-soft); }

.legal a:hover { color: var(--accent); }

.legal strong { color: var(--text); font-weight: 620; }

/* The short summary box under the title. */
.legal .summary {
  margin-top: 34px;
  padding: 26px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
}

/* The box opens on its heading, so it keeps no space above it. */
.legal .summary h2 { margin-top: 0; }

.legal .summary ul { margin-top: 0; }

/* The controller's own details, which have to stand out from the prose. */
.legal address {
  margin-top: 14px;
  font-style: normal;
  color: var(--text);
  line-height: 1.7;
}

/* Placeholders that MUST be replaced before this page goes online. Loud on
   purpose — a policy published with one of these still in it is worse than
   no policy at all. */
.todo {
  padding: 1px 7px;
  border-radius: 6px;
  background: rgba(255, 96, 96, 0.14);
  border: 1px dashed #ff6060;
  color: #ff8a8a;
  font-weight: 600;
  font-size: 0.94em;
}

/* Language switch, top right of a legal page. */
.legal-lang {
  display: flex;
  gap: 8px;
  margin-bottom: 26px;
}

.legal-lang a,
.legal-lang span {
  padding: 6px 14px;
  font-size: 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  text-decoration: none;
}

.legal-lang a { color: var(--muted); }

.legal-lang a:hover { color: var(--accent-soft); border-color: var(--accent); }

/* The language you are already reading. */
.legal-lang span {
  color: var(--text);
  background: var(--surface);
  border-color: #34343d;
}

@media (max-width: 860px) {
  .legal { text-align: left; }
}

/* ---------- Support page ---------- */

/* The address is the whole point of the page, so it gets the accent and a size
   that works as a tap target on a phone. */
.support-mail {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 34px auto 0;
  padding: 18px clamp(22px, 6vw, 34px);
  color: var(--accent-soft);
  text-decoration: none;
  /* Shrinks with the screen so the address stays on one line on a phone. */
  font-size: clamp(16px, 5.2vw, 24px);
  font-weight: 620;
  letter-spacing: -0.01em;
  text-align: center;
  overflow-wrap: anywhere;
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: 999px;
  box-shadow: 0 0 50px rgba(205, 73, 253, 0.14);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.support-mail:hover {
  color: var(--text);
  background: rgba(205, 73, 253, 0.16);
}

.support .support-note {
  margin-top: 18px;
  text-align: center;
}
