:root {
  --bg: #100b16;
  --surface: #1c1524;
  --surface-muted: #2a2133;
  --border: #2e2538;
  --primary: #f27ba8;
  --primary-light: #f7a8c6;
  --gold: #f3c98b;
  --text: #f6f0f8;
  --text-muted: #a99cb6;
  --display: "Playfair Display", Georgia, "Times New Roman", serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary-light);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--gold);
}

.wrap {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(16, 11, 22, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

/* Heavy geometric sans so every letter of the logo (the Q too) reads clearly. */
.wordmark {
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  font-weight: 800;
  font-size: 24px;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 2px;
}

.wordmark:hover {
  color: var(--gold);
}

.nav {
  display: flex;
  gap: 20px;
  font-size: 14px;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text);
}

/* Home */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 20px 88px;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto;
  height: 620px;
  background:
    radial-gradient(closest-side at 30% 50%, rgba(242, 123, 168, 0.28), transparent),
    radial-gradient(closest-side at 70% 40%, rgba(243, 201, 139, 0.16), transparent);
  filter: blur(10px);
  pointer-events: none;
}

.hero > * {
  position: relative;
}

.eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(28, 21, 36, 0.7);
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 0.4px;
}

.hero h1 {
  margin: 22px auto 0;
  max-width: 760px;
  font-family: var(--display);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.08;
}

.hero h1 em {
  color: var(--primary);
}

.hero p.lead {
  margin: 22px auto 0;
  max-width: 560px;
  color: var(--text-muted);
  font-size: 18px;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}

.store-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 15px;
}

/* The web app: same account and stories as the mobile app. */
.store-pill-primary {
  background: var(--primary);
  border-color: transparent;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.store-pill-primary small {
  color: rgba(255, 255, 255, 0.85);
}

.store-pill small {
  display: block;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.2;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  padding: 24px 20px 88px;
}

.card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: linear-gradient(180deg, var(--surface), rgba(28, 21, 36, 0.4));
}

.card .icon {
  font-size: 26px;
}

.card h3 {
  margin: 12px 0 6px;
  font-family: var(--display);
  font-style: italic;
  font-size: 22px;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
}

.promise {
  margin-bottom: 96px;
  padding: 40px 28px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  text-align: center;
}

.promise h2 {
  margin: 0;
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(26px, 4vw, 34px);
}

.promise p {
  margin: 12px auto 0;
  max-width: 620px;
  color: var(--text-muted);
}

/* Legal / document pages */
.doc {
  max-width: 760px;
  padding: 56px 20px 96px;
}

.doc h1 {
  margin: 0;
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(34px, 6vw, 48px);
  line-height: 1.15;
}

.doc .meta {
  margin: 10px 0 0;
  color: var(--text-muted);
  font-size: 14px;
}

.doc .summary {
  margin: 32px 0 8px;
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: 14px;
  background: var(--surface);
}

.doc .summary p {
  margin: 0;
}

.doc .summary ul {
  margin: 10px 0 0;
  padding-left: 20px;
}

.doc h2 {
  margin: 44px 0 10px;
  font-size: 21px;
  line-height: 1.35;
  color: var(--text);
}

.doc h3 {
  margin: 24px 0 6px;
  font-size: 17px;
  color: var(--gold);
}

.doc p,
.doc li {
  color: #ddd3e4;
}

.doc ul,
.doc ol {
  padding-left: 22px;
}

.doc li {
  margin: 6px 0;
}

.doc strong {
  color: var(--text);
}

.toc {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.toc a {
  display: inline-block;
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 13px;
  text-decoration: none;
}

.toc a:hover {
  color: var(--text);
  border-color: var(--primary);
}

.table-wrap {
  overflow-x: auto;
  margin: 14px 0;
  border: 1px solid var(--border);
  border-radius: 14px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

th {
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
}

tr:last-child td {
  border-bottom: 0;
}

td {
  color: #ddd3e4;
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
}

.steps li {
  counter-increment: step;
  position: relative;
  margin: 14px 0;
  padding: 16px 18px 16px 60px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  line-height: 28px;
  text-align: center;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 40px;
  color: var(--text-muted);
  font-size: 14px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  align-items: center;
  justify-content: space-between;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.site-footer a {
  color: var(--text-muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--text);
}

@media (max-width: 560px) {
  .nav {
    gap: 14px;
    font-size: 13px;
  }

  .hero {
    padding: 64px 20px 56px;
  }

  .hero p.lead {
    font-size: 16px;
  }

  .doc {
    padding-top: 40px;
  }
}
