:root {
  --ink: #0d0d0d;
  --ink-soft: #2a2a2a;
  --paper: #fcf8f4;
  --font: 'Work Sans', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; }

html, body { height: 100%; }

body {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Aura background: the same artwork as the app's guest screens (assets/images/guest-hero-light.png) */
.aura {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--paper);
  overflow: hidden;
}

.aura::before {
  content: '';
  position: absolute;
  inset: -4%;
  background: url('aura.webp') center / cover no-repeat;
  /* Fade all four edges into the page so the photo has no visible border */
  --fade-x: linear-gradient(to right, transparent 0%, #000 18%, #000 82%, transparent 100%);
  --fade-y: linear-gradient(to bottom, transparent 0%, #000 14%, #000 86%, transparent 100%);
  -webkit-mask-image: var(--fade-x), var(--fade-y);
  -webkit-mask-composite: source-in;
  mask-image: var(--fade-x), var(--fade-y);
  mask-composite: intersect;
  animation: breathe 22s ease-in-out infinite alternate;
}

/* Same light wash the app lays over the artwork */
.aura::after { content: ''; position: absolute; inset: 0; background: rgba(255, 255, 255, .18); }

/* Landscape screens: keep the whole aura in view instead of cropping into its centre */
@media (min-aspect-ratio: 4/5) {
  .aura::before {
    inset: auto;
    left: 50%;
    top: 50%;
    height: 135%;
    aspect-ratio: 941 / 1672;
    translate: -50% -50%;
    --fade-x: linear-gradient(to right, transparent 0%, #000 30%, #000 70%, transparent 100%);
    --fade-y: linear-gradient(to bottom, transparent 8%, #000 30%, #000 70%, transparent 92%);
  }
}

@keyframes breathe {
  from { transform: scale(1) rotate(0deg); }
  to   { transform: scale(1.05) rotate(2deg); }
}

/* Layout */
main { flex: 1; }

.top, main, .foot { position: relative; z-index: 1; }

.top { display: flex; justify-content: center; padding: max(28px, env(safe-area-inset-top)) 16px 0; }

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  text-decoration: none;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: .01em;
}
.glyph { font-size: 26px; font-weight: 300; }

.hero {
  min-height: calc(100svh - 90px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 16px;
  max-width: 640px;
  margin: 0 auto;
  animation: rise 1.1s cubic-bezier(.2, .7, .2, 1) both;
}

.kicker {
  margin-top: 0;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .28em;
  text-transform: uppercase;
}

h1 {
  margin-top: 22px;
  font-size: clamp(26px, 5vw, 40px);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -.01em;
  text-wrap: balance;
}

.lede {
  margin-top: 22px;
  max-width: 30em;
  font-size: clamp(15px, 2.4vw, 17px);
  line-height: 1.6;
  letter-spacing: .02em;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.cta {
  margin-top: 34px;
  padding: 16px 44px;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  letter-spacing: .08em;
}

/* Selling points */
.features { max-width: 1040px; margin: 0 auto; padding: 24px 16px 96px; text-align: center; }
.features .kicker { margin-top: 0; }

.feature-list {
  list-style: none;
  padding: 0;
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  text-align: left;
}

.feature {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px 26px 30px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .55);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .65), 0 10px 30px rgba(40, 30, 80, .06);
}

.feature-num { display: flex; align-items: center; min-height: 22px; gap: 10px; font-size: 12px; letter-spacing: .2em; color: var(--ink-soft); }

.tag {
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(13, 13, 13, .25);
  font-size: 9.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.feature h2 { font-size: 22px; font-weight: 300; line-height: 1.25; }
.feature p { font-size: 14.5px; line-height: 1.6; letter-spacing: .01em; color: var(--ink-soft); }

@media (max-width: 820px) {
  .feature-list { grid-template-columns: 1fr; }
}

.foot {
  padding: 0 16px max(24px, env(safe-area-inset-bottom));
  text-align: center;
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--ink-soft);
}

.foot-links { display: flex; justify-content: center; gap: 22px; margin-bottom: 10px; }
.foot a { color: inherit; text-decoration: none; }
.foot a:hover, .foot a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* Legal pages: same aura, text on a readable frosted panel */
.legal {
  position: relative;
  z-index: 1;
  flex: 1;
  width: min(760px, calc(100% - 32px));
  margin: 40px auto 56px;
  padding: clamp(28px, 6vw, 56px);
  border-radius: 18px;
  background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: blur(24px) saturate(1.1);
  backdrop-filter: blur(24px) saturate(1.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7), 0 12px 40px rgba(40, 30, 80, .07);
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.legal .kicker { margin: 0; }
.legal h1 { margin-top: 14px; font-size: clamp(28px, 5vw, 38px); color: var(--ink); text-wrap: balance; }
.legal-meta { margin-top: 8px; font-size: 13px; color: var(--ink-soft); opacity: .8; }
.legal h2 { margin-top: 38px; font-size: 19px; font-weight: 500; line-height: 1.35; color: var(--ink); }
.legal h3 { margin-top: 22px; font-size: 15px; font-weight: 500; color: var(--ink); }
.legal p, .legal ul { margin-top: 12px; }
.legal ul { padding-left: 20px; }
.legal li + li { margin-top: 6px; }
.legal strong { font-weight: 500; color: var(--ink); }
.legal a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal > p:first-of-type + h1 + .legal-meta + p { margin-top: 28px; }

/* Keep the aura subtle behind long text */
.legal-page .aura::after { background: rgba(255, 255, 255, .35); }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
}
