/* Zui — public website.
   Single column, generous spacing. No frameworks, no external fonts. */

:root {
  color-scheme: dark;
  --ink: #fff;
  --ink-soft: rgba(255, 255, 255, .82);
  --ink-faint: rgba(255, 255, 255, .62);
  --accent: #a78bfa;
  --surface: rgba(255, 255, 255, .06);
  --line: rgba(255, 255, 255, .14);
  --shell: 72rem;
  --grad: linear-gradient(90deg, #6d5df6, #a855f7);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: linear-gradient(160deg, #1a1440 0%, #2d1b69 60%, #4c2ba0 100%);
  background-attachment: fixed;
  color: var(--ink);
  line-height: 1.55;
}

a { color: var(--accent); }
img { max-width: 100%; height: auto; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 20;
  background: #241a52;
  padding: .6rem 1rem;
  border-radius: 10px;
  color: #fff;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 15;
  background: rgba(26, 20, 64, .82);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header .shell {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: .8rem;
  padding-bottom: .8rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  flex-shrink: 0;
}
.brand img { width: 34px; height: 34px; border-radius: 9px; }

.site-nav {
  display: flex;
  gap: 1.6rem;
  margin: 0 auto;
}
.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: .96rem;
}
.site-nav a:hover { color: #fff; }

.btn {
  display: inline-block;
  padding: .8rem 1.8rem;
  border: 0;
  cursor: pointer;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  background: var(--grad);
}
.btn-sm { padding: .55rem 1.1rem; font-size: .92rem; }

/* ---------- sections ---------- */

main { flex: 1; width: 100%; }

.section {
  padding: 5.5rem 0;
  border-top: 1px solid var(--line);
}
.section:first-child { border-top: 0; }
.section h2 {
  font-size: 2.1rem;
  line-height: 1.2;
  margin: 0 0 .8rem;
  text-wrap: balance;
}
.section > .shell > p { color: var(--ink-soft); max-width: 40rem; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 .6rem;
}

.centered { text-align: center; }
.centered > p, .centered .eyebrow { margin-left: auto; margin-right: auto; }

/* ---------- hero ---------- */

.hero {
  text-align: center;
  padding: 5rem 0 4rem;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  line-height: 1.08;
  margin: 0 0 1rem;
  text-wrap: balance;
}
.hero h1 span { color: var(--accent); }
.hero .lead {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 36rem;
  margin: 0 auto 2rem;
}

.store-buttons {
  display: flex;
  gap: .9rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
/* Official Apple App Store badge: its own artwork provides the black rounded
   background, so it is not wrapped in the .store-btn box. Keep clear space and
   scale by height only, per Apple's badge guidelines. */
.store-badge-link {
  display: inline-flex;
  line-height: 0;
}
.store-badge {
  height: 52px;
  width: auto;
  display: block;
}
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  /* Vertical padding keeps ~52px height to match the App Store badge; the
     narrower horizontal padding + min-width bring the width close to the
     badge's (~155px) so the two CTAs don't look mismatched. */
  padding: .75rem .95rem;
  border-radius: 14px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, .3);
  color: #fff;
  text-decoration: none;
  min-width: 9.5rem;
}
.store-btn:hover { border-color: rgba(255, 255, 255, .6); }
.store-btn svg { width: 26px; height: 26px; flex-shrink: 0; fill: currentColor; }
.store-btn small { display: block; font-size: .68rem; opacity: .75; line-height: 1.2; }
.store-btn strong { display: block; font-size: 1.05rem; font-weight: 600; line-height: 1.2; }
.store-btn[aria-disabled="true"] {
  opacity: .55;
  cursor: default;
  pointer-events: none;
}

/* ---------- phone frame ---------- */

.phone {
  margin: 3.5rem auto 0;
  width: min(300px, 74vw);
  border-radius: 34px;
  border: 6px solid rgba(255, 255, 255, .16);
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .5);
  display: block;
  background: #120e2a;
}
.phone img { display: block; width: 100%; }
.phone-sm { width: min(250px, 62vw); margin-top: 2.5rem; }

/* ---------- role cards ---------- */

.roles {
  list-style: none;
  padding: 0;
  margin: 3rem 0 1.5rem;
  display: grid;
  gap: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}
.role {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.6rem;
  text-align: center;
}
.role img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
}
.role h3 { margin: 0 0 .3rem; font-size: 1.15rem; }
.role p { margin: 0; color: var(--ink-faint); font-size: .95rem; }

/* ---------- feature list ---------- */

.checks {
  list-style: none;
  padding: 0;
  margin: 1.8rem 0 0;
  display: grid;
  gap: .9rem;
  max-width: 40rem;
}
.checks li {
  padding-left: 1.9rem;
  position: relative;
  color: var(--ink-soft);
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .45em;
  width: .75rem;
  height: .4rem;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.centered .checks { margin-left: auto; margin-right: auto; text-align: left; }

/* ---------- prose (legal pages, support) ---------- */

.prose {
  background: var(--surface);
  border-radius: 16px;
  padding: 2rem;
  line-height: 1.6;
  /* Legal/support pages drop .prose straight into <main>, which has no inner
     padding — the width calc keeps a gutter on narrow screens. */
  width: calc(100% - 3rem);
  max-width: 48rem;
  margin: 3rem auto;
}
/* Legal pages carry wide tables and bare URLs; keep them inside the card
   instead of letting them push the page into horizontal scroll. */
.prose { overflow-x: auto; overflow-wrap: anywhere; }
.prose h1 { margin-top: 0; font-size: 1.9rem; }
.prose h2 { font-size: 1.25rem; margin-top: 1.8rem; }
.prose .updated { color: var(--ink-faint); font-size: .9rem; }
.prose table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: .5rem .7rem; text-align: left; }

label { display: block; margin: 1rem 0 .3rem; font-weight: 600; }
input[type=text], input[type=email], textarea {
  width: 100%;
  padding: .7rem .9rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(0, 0, 0, .25);
  color: #fff;
  font: inherit;
}
textarea { min-height: 9rem; resize: vertical; }
.prose .btn { margin-top: 1.4rem; }

.notice {
  background: rgba(109, 93, 246, .25);
  border: 1px solid #6d5df6;
  border-radius: 10px;
  padding: .9rem 1.1rem;
  margin-bottom: 1.2rem;
}
.error { color: #fca5a5; font-size: .9rem; margin-top: .25rem; }
.honeypot { position: absolute; left: -9999px; }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 3rem 0 2rem;
  font-size: .92rem;
}
.footer-cols {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 2fr 1fr 1fr;
}
.footer-brand p {
  color: var(--ink-faint);
  max-width: 24rem;
  margin: .8rem 0 0;
}
.site-footer h2 {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ink-faint);
  margin: 0 0 .9rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-legal {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---------- cookie banner ---------- */

#cookie-banner {
  position: fixed;
  inset: auto 1rem 1rem 1rem;
  z-index: 20;
  background: #241a52;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 14px;
  padding: 1rem 1.2rem;
  max-width: 34rem;
  margin-left: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .45);
  display: none;
}
#cookie-banner p { margin: 0 0 .8rem; font-size: .92rem; line-height: 1.45; }
#cookie-banner button {
  margin-right: .6rem;
  padding: .5rem 1.1rem;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, .3);
  cursor: pointer;
  font: inherit;
}
#cookie-accept { background: var(--grad); color: #fff; border: 0; }
#cookie-reject { background: transparent; color: #fff; }

/* ---------- responsive ---------- */

@media (max-width: 60rem) {
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 46rem) {
  .site-nav { display: none; }
  .site-header .shell { justify-content: space-between; }
  .section { padding: 4rem 0; }
  .section h2 { font-size: 1.7rem; }
  .hero { padding: 3rem 0 2.5rem; }
  .prose { padding: 1.4rem; }
  .footer-cols { grid-template-columns: 1fr; gap: 2rem; }
}
