:root {
  --accent: #6c5ce7;
  --accent-dark: #5a4bd1;
  --text: #2d3748;
  --text-muted: #64748b;
  --bg: #f2f5f9;
  --surface: #ffffff;
  --border: #dfe5ee;
  --gold: #b8912f;
  --radius: 14px;
  --measure: 800px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
}

img,
svg {
  max-width: 100%;
}

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

.site-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 32px 20px 8px;
  text-align: center;
}

.logo {
  display: inline-flex;
  text-decoration: none;
}

/* The artwork carries the wordmark, so it is sized by height to keep the
   header compact; the square master is mostly emblem. */
.logo-img {
  width: auto;
  height: 108px;
}

@media (max-width: 600px) {
  .logo-img {
    height: 88px;
  }
}

.toggle {
  display: inline-flex;
  padding: 4px;
  background: #e4e9f1;
  border-radius: 999px;
}

.toggle-btn {
  min-width: 108px;
  padding: 9px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-muted);
  transition: background-color 0.18s ease, color 0.18s ease;
}

.toggle-btn:hover {
  color: var(--text);
}

.toggle-btn.is-active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 10px rgba(108, 92, 231, 0.32);
}

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

.site-main {
  flex: 1;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 20px 56px;
}

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

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  padding: 16px 0 8px;
}

@media (min-width: 860px) {
  .hero {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    padding: 40px 0;
  }
  .hero--stacked {
    grid-template-columns: 1fr;
    max-width: 640px;
    margin: 0 auto;
  }
}

.hero-media {
  display: flex;
  justify-content: center;
}

/* No drop-shadow here: the app mockups ship with their own baked-in shadow. */
.hero-art {
  width: 100%;
  max-width: 400px;
  height: auto;
}

.hero-art--center {
  max-width: 360px;
}

.hero-copy h1 {
  margin: 0 0 10px;
  font-size: clamp(30px, 5vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero-copy--center {
  text-align: center;
}

.hero-subhead {
  margin: 0 0 18px;
  font-size: 19px;
  font-weight: 600;
  color: var(--accent);
}

.hero-body {
  margin: 0 0 28px;
  color: var(--text-muted);
}

.coming-soon {
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
}

/* ---------- Store buttons ---------- */

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(108, 92, 231, 0.28);
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.store-btn:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}

.store-btn svg {
  width: 26px;
  height: 26px;
  flex: none;
}

.store-btn span {
  display: flex;
  flex-direction: column;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
}

.store-btn small {
  font-size: 11px;
  font-weight: 400;
  opacity: 0.82;
}

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

.legal {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 32px clamp(20px, 5vw, 44px) 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 6px 28px rgba(45, 55, 72, 0.06);
}

.legal h1 {
  margin: 0 0 28px;
  font-size: clamp(26px, 4vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.legal h2 {
  margin: 36px 0 10px;
  font-size: 20px;
  line-height: 1.35;
  color: var(--accent-dark);
}

.legal h3 {
  margin: 26px 0 8px;
  font-size: 17px;
  line-height: 1.4;
}

.legal p {
  margin: 0 0 16px;
}

.legal ul {
  margin: 0 0 16px;
  padding-left: 22px;
}

.legal li {
  margin-bottom: 10px;
}

/* The table scrolls inside its own box so a long retention period can never
   force the whole page to scroll sideways on a phone. */
.table-wrap {
  margin: 0 0 20px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15.5px;
  text-align: left;
}

.legal th,
.legal td {
  padding: 12px 16px;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

.legal thead th {
  background: #f7f9fc;
  font-size: 14px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--accent-dark);
  white-space: nowrap;
}

.legal tbody th {
  font-weight: 600;
  min-width: 13rem;
}

.legal tbody tr:last-child th,
.legal tbody tr:last-child td {
  border-bottom: 0;
}

/* On phones, let both columns fit rather than forcing a sideways scroll to
   read any retention period. The .table-wrap scroll stays as a safety net. */
@media (max-width: 600px) {
  .legal table {
    font-size: 14.5px;
  }
  .legal th,
  .legal td {
    padding: 10px 12px;
  }
  .legal tbody th {
    min-width: 0;
  }
  .legal thead th {
    white-space: normal;
  }
}

.last-updated {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 15px;
  color: var(--text-muted);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
  padding: 8px 16px 8px 10px;
  border-radius: 999px;
  background: #f0f1fd;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.back-link:hover {
  background: #e5e3fb;
}

.back-icon {
  width: 18px;
  height: 18px;
}

.back-link--inline {
  padding: 8px 18px;
}

/* ---------- 404 ---------- */

.notfound {
  max-width: 520px;
  margin: 48px auto;
  text-align: center;
}

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

.site-footer {
  padding: 28px 20px 36px;
  text-align: center;
  border-top: 1px solid var(--border);
}

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

.footer-links a {
  font-size: 15px;
  color: var(--text-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.copyright {
  margin: 16px 0 0;
  font-size: 13px;
  color: #94a3b8;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
