:root {
  color-scheme: light;
  /* App palette (Midnight ink) */
  --bg: #F7F7F5;
  --surface: #FFFFFF;
  --accent: #3D4A9E;
  --fill: #1F2433;
  --success: #3A7A4F;
  --text: #1C1C1E;
  --secondary: #6B6B70;
  --outline: #E4E4E0;
  /* Night sky, shared by the home scene and the page bands */
  --night: #10142B;
  --dusk: #2A3375;
  --twilight: #6E5BA6;
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, serif;
}

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

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

a { color: inherit; text-decoration: none; }
img, svg { display: block; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

/* Header (always on the night sky) and footer */

.site-header { position: relative; z-index: 2; color: #FFFFFF; }

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

.site-header .wrap { height: 80px; }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.01em; }
.brand img { width: 30px; height: 30px; }

nav { display: flex; gap: 32px; font-size: 14px; }
.site-header nav { color: rgba(255, 255, 255, 0.72); }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: #FFFFFF; }

.site-footer { border-top: 1px solid var(--outline); margin-top: 120px; }
.site-footer .wrap { height: 72px; font-size: 14px; color: var(--secondary); }
.site-footer nav a:hover { color: var(--text); }

.button {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 24px;
  border-radius: 12px;
  background: #FFFFFF;
  color: var(--fill);
  font-size: 15px;
  font-weight: 600;
}

.button.dark { background: var(--fill); color: #FFFFFF; }

/* Home: full-screen night scene */

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: var(--night);
  color: #FFFFFF;
}

.scene { position: absolute; inset: 0; width: 100%; height: 100%; }

.hero-content { position: relative; z-index: 1; padding-top: min(18vh, 180px); }

.hero h1 {
  margin-bottom: 40px;
  font-family: var(--serif);
  font-size: clamp(64px, 11vw, 176px);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: -0.03em;
}

.star { animation: twinkle 4s ease-in-out infinite; }
.star:nth-child(3n) { animation-delay: 1.3s; }
.star:nth-child(3n + 1) { animation-delay: 2.6s; }
.mist { animation: drift 24s ease-in-out infinite alternate; }

@keyframes twinkle { 50% { opacity: 0.25; } }
@keyframes drift { to { transform: translateX(-60px); } }

@media (prefers-reduced-motion: reduce) {
  .star, .mist { animation: none; }
}

/* Home: features */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 120px;
}

.feature {
  overflow: hidden;
  border: 1px solid var(--outline);
  border-radius: 20px;
  background: var(--surface);
}

.visual {
  display: grid;
  place-items: center;
  height: 220px;
  border-bottom: 1px solid var(--outline);
  background: var(--bg);
}

.feature h2 { padding: 20px 24px; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid var(--outline);
  border-radius: 12px;
  background: var(--surface);
  font-size: 15px;
  font-weight: 500;
  color: var(--secondary);
  text-decoration: line-through;
}

.check { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--success); }
.check svg { width: 12px; height: 12px; }

.reward { font-family: var(--serif); font-size: 56px; font-weight: 600; letter-spacing: -0.03em; color: var(--success); }

.apps { position: relative; display: grid; grid-template-columns: repeat(2, 48px); gap: 10px; }
.apps span { height: 48px; border: 1px solid var(--outline); border-radius: 12px; background: var(--surface); }

.lock {
  position: absolute;
  right: -14px;
  bottom: -14px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 3px solid var(--bg);
  border-radius: 50%;
  background: var(--fill);
}

.lock svg { width: 14px; height: 14px; }

.statement { padding-top: 120px; text-align: center; }
.statement p { font-family: var(--serif); font-size: clamp(32px, 4.4vw, 56px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; }
.statement a { display: inline-block; margin-top: 16px; font-size: 15px; color: var(--accent); }

/* Privacy and Support: night band with the title, then a reading column */

.band {
  padding-bottom: 72px;
  background: linear-gradient(var(--night), var(--dusk) 70%, var(--twilight));
  color: #FFFFFF;
}

.band h1 {
  padding-top: 64px;
  font-family: var(--serif);
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
}

.band time { display: block; margin-top: 16px; font-size: 14px; color: rgba(255, 255, 255, 0.72); }

.doc { max-width: 680px; padding-top: 64px; }
.doc h2 { margin: 40px 0 8px; font-size: 18px; font-weight: 600; }
.doc h2:first-child { margin-top: 0; }
.doc p a { color: var(--accent); }

.faq { margin-top: 48px; border-top: 1px solid var(--outline); }
.faq details { padding: 20px 0; border-bottom: 1px solid var(--outline); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; font-weight: 600; list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 20px; font-weight: 400; line-height: 1.2; color: var(--secondary); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: 10px; color: var(--secondary); }

/* Narrow screens */

@media (max-width: 860px) {
  .wrap { padding: 0 20px; }
  nav { gap: 20px; }
  /* Keep the moon clear of the headline when the scene is cropped. */
  .moon { transform: translate(140px, -50px); }
  .features { grid-template-columns: 1fr; padding-top: 88px; }
  .statement { padding-top: 88px; }
}