/* Circle Life brand: Night Ink shell, Warm Paper canvas, Pulse teal, Signal lime (see theme.ts). */
:root {
  --ink: #0B2430;
  --ink-raised: #12333D;
  --paper: #F8F6F0;
  --pulse: #00B89F;
  --primary: #007C70;
  --signal: #D8FF66;
  --muted: #52656D;
  --radius: 24px;
  color-scheme: light;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

a { color: var(--primary); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.25rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); text-align: center; }
h3 { font-size: 1.2rem; }

.nav {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1120px; margin: 0 auto; padding: 20px 24px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.brand img { border-radius: 9px; }
.nav nav { display: flex; gap: 24px; }
.nav nav a { color: var(--muted); text-decoration: none; font-weight: 500; }
.nav nav a:hover { color: var(--ink); }

.hero {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center;
  max-width: 1120px; margin: 0 auto; padding: 48px 24px 80px;
}
.eyebrow { color: var(--primary); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .85rem; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 34em; }
.hero-shot img, .showcase img {
  border-radius: 36px; border: 10px solid var(--ink);
  box-shadow: 0 30px 60px -20px rgba(11, 36, 48, .45);
  max-width: 320px; margin: 0 auto;
}

.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.stores.center { justify-content: center; }
.store {
  display: inline-block; padding: 14px 22px; border-radius: 999px;
  background: var(--ink); color: #fff; font-weight: 600; text-decoration: none;
}
.store:hover { background: var(--ink-raised); }

.features { background: var(--ink); color: var(--paper); padding: 88px 24px; }
.features .grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  max-width: 1120px; margin: 48px auto 0;
}
.features article { background: var(--ink-raised); border-radius: var(--radius); padding: 28px; }
.features article h3 { color: var(--signal); }
.features article p { margin: 0; color: rgba(248, 246, 240, .78); }

.showcase {
  display: flex; justify-content: center; gap: 48px; flex-wrap: wrap;
  padding: 88px 24px; max-width: 1120px; margin: 0 auto;
}
.showcase figure { margin: 0; }
.showcase figcaption { text-align: center; margin-top: 20px; font-weight: 600; }

.how { padding: 0 24px 96px; max-width: 760px; margin: 0 auto; }
.how ol { padding-left: 1.25em; font-size: 1.15rem; margin: 32px 0; }
.how li { margin-bottom: 14px; }

footer { border-top: 1px solid #E0E3E0; padding: 32px 24px; text-align: center; color: var(--muted); font-size: .95rem; }
footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; margin-bottom: 8px; }
footer a { color: var(--muted); }

/* Invite and 404 pages */
body.invite { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--ink); }
.card { background: var(--paper); border-radius: var(--radius); padding: 40px 32px; max-width: 460px; text-align: center; }
.card img { margin: 0 auto 20px; border-radius: 16px; }
.card h1 { font-size: 1.9rem; }
.code { font-size: 2.25rem; font-weight: 800; letter-spacing: .2em; color: var(--primary); margin: 0; }
.small { font-size: .9rem; margin-top: 28px; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 24px; }
  .lead { margin: 0 auto; }
  .stores { justify-content: center; }
  .features .grid { grid-template-columns: 1fr; }
  .nav nav a:not(:last-child) { display: none; }
}
