/* SlowLight website: the Ember brand (see "Brand Book.md"). Dark only, like the app. */

:root {
  --night: #080404;
  --deep-ember: #8c140f;
  --ember: #f5523d;
  --begin: rgba(245, 82, 61, 0.6);
  --dim-ember: rgba(245, 82, 61, 0.6);
  --text: #ffdbd1;
  --subtitle: rgba(255, 219, 209, 0.7);
  --secondary: rgba(255, 219, 209, 0.55);
  --faint: rgba(255, 219, 209, 0.35);
  --card-fill: rgba(255, 255, 255, 0.045);
  --card-edge: rgba(245, 82, 61, 0.14);
  --quiet-fill: rgba(255, 255, 255, 0.1);
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { background: var(--night); }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 700px 520px at 50% 0, rgba(140, 20, 15, 0.35), transparent 70%),
    var(--night);
  color: var(--text);
  font: 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--text); text-underline-offset: 3px; text-decoration-color: var(--dim-ember); }

.page {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header and footer */

.site-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 0;
}
.site-header a { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.site-header img { width: 32px; height: 32px; border-radius: 8px; }
.site-header span { font: 300 22px var(--serif); }

.site-footer {
  margin-top: 72px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--card-edge);
  color: var(--faint);
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.site-footer a { color: var(--secondary); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.site-footer .copyright { margin-left: auto; }

/* Hero */

.hero {
  position: relative;
  text-align: center;
  padding: 48px 0 8px;
}

.orb {
  position: absolute;
  top: -40px;
  left: 50%;
  width: 360px;
  height: 360px;
  margin-left: -180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 82, 61, 0.55) 0%, rgba(140, 20, 15, 0.35) 35%, transparent 70%);
  filter: blur(8px);
  z-index: -1;
  /* One breath: 45% in, 55% out, at the calm pace the app slows to. */
  animation: breathe 10s ease-in-out infinite;
}
@keyframes breathe {
  0%   { transform: scale(0.82); opacity: 0.45; }
  45%  { transform: scale(1);    opacity: 0.9; }
  100% { transform: scale(0.82); opacity: 0.45; }
}
@media (prefers-reduced-motion: reduce) {
  .orb { animation: none; opacity: 0.7; }
}

.hero h1 {
  font: 300 clamp(44px, 11vw, 64px)/1.1 var(--serif);
  margin: 72px 0 16px;
}
.hero .tagline {
  font: 300 clamp(22px, 5.5vw, 28px)/1.35 var(--serif);
  margin: 0 0 12px;
}
.hero .lede {
  color: var(--subtitle);
  margin: 0 auto;
  max-width: 26em;
}

/* Cards */

.card {
  background: var(--card-fill);
  border: 1px solid var(--card-edge);
  border-radius: 22px;
  padding: 22px 22px;
  margin-top: 16px;
}
.card h2 {
  font: 500 15px var(--sans);
  color: var(--secondary);
  margin: 0 0 14px;
}

section { margin-top: 56px; }
section > h2 {
  font: 300 28px/1.2 var(--serif);
  margin: 0 0 8px;
  text-align: center;
}

/* Signup: the one ember button on the page. */

.signup { text-align: center; }
.signup p { color: var(--subtitle); margin: 0 0 16px; }
.signup form { display: flex; flex-direction: column; gap: 12px; }
.signup input {
  width: 100%;
  font: 17px var(--sans);
  color: var(--text);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(245, 82, 61, 0.25);
  border-radius: 999px;
  padding: 14px 20px;
  outline: none;
}
.signup input::placeholder { color: var(--faint); }
.signup input:focus { border-color: var(--dim-ember); }

.button {
  display: block;
  width: 100%;
  font: 500 17px var(--sans);
  color: var(--text);
  border: 0;
  border-radius: 999px;
  padding: 14px 20px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}
.button.begin {
  background: var(--begin);
  box-shadow: 0 0 28px rgba(245, 82, 61, 0.28);
}
.button.begin:hover { background: rgba(245, 82, 61, 0.7); }
.button.quiet { background: var(--quiet-fill); color: var(--secondary); cursor: default; }

.signup .note { color: var(--faint); font-size: 14px; margin: 12px 0 0; }
.signup .thanks { color: var(--text); margin: 4px 0 0; }

/* Steps (like the welcome screen) */

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 14px;
  align-items: start;
  padding: 10px 0;
}
.steps li::before {
  content: counter(step);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(245, 82, 61, 0.35);
  color: var(--dim-ember);
  font: 500 14px/26px var(--sans);
  text-align: center;
}
.steps strong { display: block; font-weight: 500; }
.steps span { color: var(--subtitle); }

/* Icon list */

.points { list-style: none; margin: 0; padding: 0; }
.points li { display: grid; grid-template-columns: 22px 1fr; gap: 14px; padding: 8px 0; }
.points li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin: 9px 0 0 7px;
  border-radius: 50%;
  background: var(--dim-ember);
  box-shadow: 0 0 10px rgba(245, 82, 61, 0.6);
}

.price { text-align: center; }
.price p { margin: 0; }
.price .small { color: var(--secondary); font-size: 15px; margin-top: 6px; }

.store { margin-top: 24px; }
.store .note { color: var(--faint); font-size: 14px; text-align: center; margin: 10px 0 0; }

.fineprint { color: var(--faint); font-size: 14px; text-align: center; margin-top: 40px; }

/* Text pages (privacy, support) */

.doc h1 { font: 300 clamp(34px, 9vw, 44px)/1.15 var(--serif); margin: 40px 0 8px; }
.doc .updated { color: var(--faint); font-size: 14px; margin: 0 0 32px; }
.doc h2 { font: 500 17px var(--sans); margin: 32px 0 6px; }
.doc p, .doc li { color: var(--subtitle); }
.doc ul { padding-left: 20px; }

.faq details {
  background: var(--card-fill);
  border: 1px solid var(--card-edge);
  border-radius: 22px;
  padding: 16px 22px;
  margin-top: 12px;
}
.faq summary { cursor: pointer; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "›"; color: var(--dim-ember); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(90deg); }
.faq details p { margin: 10px 0 0; color: var(--subtitle); }

.contact { text-align: center; }
.contact p { color: var(--subtitle); margin: 0 0 6px; }
.contact a { font-size: 19px; }
