/* SpacedRecall marketing site: shared styles.
   Palette/type/radii mirror constants/theme.ts (the mobile app's design
   tokens, transcribed from design/recall-web-app.html) so the site reads
   as the same product, not a separate skin. */

:root {
  --bg: #000000;
  --bar: #131119;
  --panel: #17151d;
  --panel2: #24222a;
  --panel3: #2c2a33;
  --line: #332f3b;
  --text: #ecEaef;
  --text2: #a29daa;
  --hint: #6f6a78;
  --accent: #dd6ea4;
  --accent-ink: #1a181e;
  --accent-soft: #2e2331;
  --accent-soft-ink: #ee9bc2;
  --violet: #8b7cf6;
  --danger: #e0707a;

  --font-display: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius-sm: 9px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --container: 1120px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}

p { margin: 0; }

.wrap {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Ambient background: dot grid + drifting aurora glow + film grain.
   Same three-layer recipe Vercel/Linear/Stripe hero sections use, tuned to
   this brand's pink/violet gradient instead of their blue. */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(70% 60% at 50% 0%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 0%, #000 40%, transparent 100%);
}

.glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(600px 420px at 15% -5%, rgba(221, 110, 164, 0.18), transparent 60%),
    radial-gradient(680px 480px at 100% 10%, rgba(139, 124, 246, 0.16), transparent 60%);
  animation: drift 22s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-2%, 3%) scale(1.06); }
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

/* Scroll-reveal: elements start slightly lowered/faded, JS adds .in-view */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.steps .step.reveal:nth-child(2) { transition-delay: 0.1s; }
.steps .step.reveal:nth-child(3) { transition-delay: 0.2s; }

.grid .card.reveal:nth-child(2) { transition-delay: 0.08s; }
.grid .card.reveal:nth-child(3) { transition-delay: 0.16s; }
.grid .card.reveal:nth-child(4) { transition-delay: 0.24s; }

/* ---------------------------------------------------------------------- */
/* Nav                                                                    */
/* ---------------------------------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
}

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a:not(.btn) {
  font-size: 14px;
  color: var(--text2);
  transition: color 0.15s ease;
}

.nav-links a:not(.btn):hover { color: var(--text); }

/* ---------------------------------------------------------------------- */
/* Buttons                                                                */
/* ---------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover { opacity: 0.92; }

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}

.btn-ghost:hover { border-color: var(--text2); }

.btn-block { width: 100%; }
.btn-lg { padding: 14px 26px; font-size: 15px; }

/* ---------------------------------------------------------------------- */
/* Hero                                                                   */
/* ---------------------------------------------------------------------- */

.hero {
  position: relative;
  z-index: 1;
  padding: 96px 0 80px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-soft-ink);
  background: var(--accent-soft);
  border: 1px solid rgba(221, 110, 164, 0.28);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 28px;
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.hero h1 {
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.06;
  max-width: 780px;
  margin: 0 auto;
}

.hero h1 .accent-text {
  background: linear-gradient(90deg, var(--accent), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  max-width: 560px;
  margin: 22px auto 0;
  font-size: 17px;
  color: var(--text2);
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.hero-hint {
  margin-top: 16px;
  font-size: 13px;
  color: var(--hint);
}

/* ---------------------------------------------------------------------- */
/* Visual: interval ladder mock                                          */
/* ---------------------------------------------------------------------- */

.visual {
  position: relative;
  z-index: 1;
  margin: 64px auto 0;
  max-width: 720px;
  padding: 0 24px;
}

.visual-card {
  background: linear-gradient(180deg, var(--panel2), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
}

.visual-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 4px;
}

.visual-row + .visual-row { border-top: 1px solid var(--line); }

.visual-fact {
  flex: 1;
  font-size: 14px;
  color: var(--text);
}

.visual-meta {
  font-size: 12px;
  color: var(--hint);
}

.visual-level {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  background: var(--accent-soft);
  color: var(--accent-soft-ink);
}

/* ---------------------------------------------------------------------- */
/* Section shell                                                         */
/* ---------------------------------------------------------------------- */

section { position: relative; z-index: 1; }

.section {
  padding: 96px 0;
}

.section-head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 56px;
}

.section-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.15;
}

.section-head p {
  margin-top: 14px;
  color: var(--text2);
  font-size: 16px;
}

/* ---------------------------------------------------------------------- */
/* Feature grid                                                          */
/* ---------------------------------------------------------------------- */

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.card-icon svg { width: 20px; height: 20px; }

.card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.card p {
  font-size: 14px;
  color: var(--text2);
}

.badge-soon {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 11px;
  font-weight: 600;
  color: var(--hint);
  border: 1px solid var(--line);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
}

/* ---------------------------------------------------------------------- */
/* Steps                                                                 */
/* ---------------------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.step {
  text-align: center;
  padding: 0 12px;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--accent);
}

.step h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.step p {
  font-size: 14px;
  color: var(--text2);
}

/* ---------------------------------------------------------------------- */
/* CTA band                                                              */
/* ---------------------------------------------------------------------- */

.cta {
  background: linear-gradient(135deg, var(--accent-soft), var(--panel));
  border: 1px solid rgba(221, 110, 164, 0.24);
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  text-align: center;
}

.cta h2 {
  font-size: clamp(24px, 3.4vw, 32px);
  margin-bottom: 12px;
}

.cta p {
  color: var(--text2);
  font-size: 15px;
  margin-bottom: 28px;
}

/* ---------------------------------------------------------------------- */
/* Footer                                                                 */
/* ---------------------------------------------------------------------- */

.footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--text2);
}

.footer-brand img { width: 20px; height: 20px; border-radius: 6px; }

.footer-copy {
  font-size: 13px;
  color: var(--hint);
}

/* ---------------------------------------------------------------------- */
/* Login page                                                            */
/* ---------------------------------------------------------------------- */

.auth-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
}

.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.auth-logo img { width: 40px; height: 40px; border-radius: 10px; }

.auth-card h1 {
  font-size: 22px;
  text-align: center;
  margin-bottom: 6px;
}

.auth-card .auth-sub {
  text-align: center;
  font-size: 14px;
  color: var(--text2);
  margin-bottom: 28px;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text2);
  margin-bottom: 7px;
}

.field input {
  width: 100%;
  background: var(--panel3);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s ease;
}

.field input:focus { border-color: var(--accent); }

.field input::placeholder { color: var(--hint); }

.auth-note {
  margin-top: 18px;
  font-size: 13px;
  color: var(--text2);
  background: var(--panel3);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  text-align: center;
  display: none;
}

.auth-note.visible { display: block; }

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  color: var(--hint);
  font-size: 12px;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.oauth-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-oauth {
  background: var(--panel3);
  border: 1px solid var(--line);
  color: var(--text);
}

.btn-oauth:hover { border-color: var(--text2); }

.auth-foot {
  text-align: center;
  font-size: 13px;
  color: var(--text2);
  margin-top: 24px;
}

.auth-foot a { color: var(--accent-soft-ink); font-weight: 600; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text2);
  padding: 20px 0 0 0;
}

.back-link:hover { color: var(--text); }

/* ---------------------------------------------------------------------- */
/* Responsive                                                             */
/* ---------------------------------------------------------------------- */

@media (max-width: 760px) {
  .nav-links { gap: 16px; }
  .nav-links a:not(.btn) { display: none; }
  .grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .hero { padding: 64px 0 56px; }
  .section { padding: 64px 0; }
  .cta { padding: 40px 24px; }
}
