:root {
  --accent: #4831B9;
  --accent-dark: #30217D;
  --bg: #F7F6FB;
  --surface: #FFFFFF;
  --text: #1C1A26;
  --text-secondary: #5E5A70;
  --border: #E4E1EE;
  --link: #4831B9;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121019;
    --surface: #1C1926;
    --text: #F2F0F8;
    --text-secondary: #A9A4BC;
    --border: #2E2A3C;
    --link: #A797F2;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

/* Top bar on the inner pages */
.bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0 24px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 19px;
}
.bar img { width: 32px; height: 32px; }

/* Landing */
.hero {
  text-align: center;
  padding: 48px 0 32px;
}
.hero .icon {
  width: 112px;
  height: 112px;
  filter: drop-shadow(0 10px 24px rgba(72, 49, 185, 0.35));
}
.hero h1 {
  margin: 20px 0 4px;
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.hero .subtitle {
  margin: 0;
  font-size: 21px;
  color: var(--text-secondary);
}
.hero .meaning {
  margin: 16px 0 0;
  font-size: 15px;
  color: var(--text-secondary);
}

.badge {
  display: inline-block;
  margin-top: 28px;
  padding: 12px 22px;
  border-radius: 999px;
  background: linear-gradient(var(--accent), var(--accent-dark));
  color: #FFFFFF;
  font-weight: 600;
  text-decoration: none;
}

.steps {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.steps li {
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}
.steps strong { display: block; font-size: 18px; margin-bottom: 2px; }
.steps span { color: var(--text-secondary); }

@media (min-width: 640px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}

/* Inner pages */
.doc h1 { font-size: 32px; line-height: 1.2; margin: 0 0 4px; letter-spacing: -0.01em; }
.doc .updated { margin: 0 0 28px; color: var(--text-secondary); font-size: 15px; }
.doc h2 { font-size: 20px; margin: 32px 0 8px; }
.doc ul { padding-left: 22px; }
.doc li { margin: 4px 0; }

.center { text-align: center; padding-top: 48px; }
.center .icon { width: 88px; height: 88px; }
.center h1 { font-size: 28px; margin: 20px 0 8px; }
.center p { color: var(--text-secondary); margin: 0 auto; max-width: 420px; }

footer {
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 15px;
  color: var(--text-secondary);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
footer a { color: var(--text-secondary); }

/* Shared-link pages (/e/, /u/), drawn by the Worker in site-worker/: the app's invite card on the site */
.link { max-width: 440px; padding-top: 16px; }
.link .bar { padding-bottom: 20px; }
.link .soon { margin: 24px 0 0; text-align: center; font-size: 14px; color: var(--text-secondary); }
.link .badge { display: block; width: fit-content; margin: 28px auto 0; }
.link .label { margin: 28px 4px 10px; font-size: 14px; color: var(--text-secondary); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(28, 26, 38, 0.10);
}
.card .cover {
  min-height: 112px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  background: linear-gradient(135deg, #2B1F7A, #0E0A26);
  color: #FFFFFF;
}
.card.over .cover { background: linear-gradient(135deg, #55525F, #22202A); }
.card .cover h1 { margin: 0; font-size: 26px; line-height: 1.15; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.card .state {
  align-self: flex-start;
  font-size: 13px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}
.card .rows { padding: 18px 20px 20px; display: grid; gap: 14px; }
/* What's in the plan, at the foot of the card */
.card .row.quiet { padding-top: 14px; border-top: 1px solid var(--border); }

/* The four things Hodimo does, under the card */
.why { margin: 28px 4px 0; display: grid; gap: 12px; }

.card .row,
.why .row {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.35;
}
.why .row { font-size: 15px; }
.card .row b,
.why .row b { color: var(--text); font-weight: 600; }
.card .row svg,
.why .row svg {
  width: 22px; height: 22px; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

/* A small card for each of a person's next events */
.card.mini {
  display: block;
  margin-bottom: 12px;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(28, 26, 38, 0.08);
}
.card.mini .cover { min-height: 64px; padding: 12px 16px; }
.card.mini .cover h2 { margin: 0; font-size: 20px; line-height: 1.2; overflow-wrap: anywhere; }
.card.mini .rows { padding: 14px 16px 16px; gap: 10px; }

.avatar {
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #F5A03C, #E8731A);
  color: #FFFFFF; font-weight: 700; font-size: 15px;
}
.avatar.xl { width: 88px; height: 88px; font-size: 34px; }

/* A profile: the photo beside the name, as at the top of the app's profile */
.phead { display: flex; align-items: center; gap: 18px; margin: 4px 0 20px; }
.phead h1 { font-size: 30px; margin: 0; line-height: 1.1; overflow-wrap: anywhere; }
.phead .sub { margin: 4px 0 0; color: var(--text-secondary); font-size: 15px; }
