/* The app's own look: violet, dark first with a light twin, Bricolage
   Grotesque for headings, IBM Plex Sans for text. Self-hosted, nothing
   loaded from other hosts. Colours taken from the app (palette.dart). */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/BricolageGrotesque-700.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/BricolageGrotesque-800.ttf") format("truetype");
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("/fonts/IBMPlexSans-400.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("/fonts/IBMPlexSans-600.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
:root {
  color-scheme: dark light;
  --bg: #0d0c1b;
  --panel: #18162a;
  --line: #2a2742;
  --ink: #f4f2ff;
  --muted: #a9a5c4;
  --accent: #7b4dff;
  --accent-soft: #2a2152;
  --on-accent: #ffffff;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f6fc;
    --panel: #ffffff;
    --line: #e3e0f0;
    --ink: #17162a;
    --muted: #5d5a75;
    --accent: #6a3cf0;
    --accent-soft: #ece6ff;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: inherit; text-underline-offset: 3px; }
h1, h2, h3, .button {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
}
h1, h2, h3 { line-height: 1.15; margin: 0 0 12px; }
p { margin: 0 0 14px; }

/* header */
.top {
  max-width: 68rem;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.brand img { display: block; height: 28px; width: auto; }
.top nav { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; font-size: 15px; }
.top nav a { text-decoration: none; color: var(--muted); }
.top nav a:hover { color: var(--ink); }
.top nav .lang {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 12px;
  color: var(--ink);
}

main {
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 20px 48px;
}

/* phone screenshots */
.phone {
  width: 100%;
  max-width: 300px;
  border-radius: 34px;
  padding: 8px;
  background: #050410;
  box-shadow: 0 0 0 1px var(--line), 0 24px 60px rgba(0, 0, 0, 0.35);
}
.phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 27px;
}

/* hero */
.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
  padding: 32px 0 56px;
}
.hero .phone { justify-self: center; max-width: 320px; }
.eyebrow {
  color: var(--accent);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(36px, 5.4vw, 60px);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}
.hero h1 .need { color: var(--accent); }
.lead { font-size: 19px; color: var(--muted); max-width: 34rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-top: 24px; }
.button {
  display: inline-block;
  background: var(--accent);
  color: var(--on-accent);
  text-decoration: none;
  font-weight: 700;
  font-size: 17px;
  padding: 12px 22px;
  border-radius: 14px;
}
.button:hover { filter: brightness(1.08); }
.button.ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}
.link { color: var(--muted); font-weight: 600; }

/* facts */
.facts {
  list-style: none;
  margin: 0 0 72px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.facts strong {
  display: block;
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-size: 24px;
  line-height: 1.2;
}
.facts span { color: var(--muted); font-size: 15px; }

/* how it works */
.how { margin-bottom: 88px; }
.how > h2, .feature h2, .about h2, .plain h2 { font-size: clamp(28px, 3.6vw, 38px); font-weight: 800; }
.how ol {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.how .phone { max-width: 250px; margin-bottom: 18px; }
.how h3 { font-size: 21px; }
.how p { color: var(--muted); }

/* features: picture and text, alternating */
.feature {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 80px;
}
.feature:nth-of-type(even) .phone { order: 2; }
.feature .phone { justify-self: center; max-width: 280px; }
.feature p { color: var(--muted); font-size: 18px; max-width: 32rem; }

/* about and community */
.about {
  background: var(--accent-soft);
  border-radius: 28px;
  padding: 40px;
  margin: 24px 0 72px;
}
.about h3 { font-size: 24px; margin-top: 28px; }
.about p { max-width: 44rem; }

/* plain sections */
.plain { margin-bottom: 64px; max-width: 46rem; }
.plain ul { padding-left: 20px; }
.plain li { margin-bottom: 8px; }
.next { list-style: none; padding: 0 !important; display: grid; gap: 16px; }
.next li { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; margin: 0; }
.next h3 { font-size: 20px; margin-bottom: 6px; }
.next p { color: var(--muted); margin: 0; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { color: var(--muted); margin: 10px 0 0; }

.note { color: var(--muted); font-size: 14px; }
.center { text-align: center; margin-top: -40px; margin-bottom: 48px; }
.trademark { max-width: 46rem; }

/* legal pages */
.doc { max-width: 46rem; padding-top: 16px; }
.doc h1 { font-size: clamp(30px, 4vw, 40px); font-weight: 800; }
.doc h2 { font-size: 22px; margin-top: 32px; }
.doc p { color: var(--ink); }

/* footer */
footer {
  max-width: 68rem;
  margin: 0 auto;
  padding: 24px 20px 40px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 14px;
  color: var(--muted);
}
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding-top: 16px; }
  .hero .phone { max-width: 260px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .how ol { grid-template-columns: 1fr; }
  .how .phone { max-width: 240px; }
  .feature { grid-template-columns: 1fr; gap: 24px; margin-bottom: 64px; }
  .feature:nth-of-type(even) .phone { order: 0; }
  .feature .phone { max-width: 240px; }
  .about { padding: 28px 22px; }
  .center { margin-top: -24px; }
}
