/* ActivePray — refined
   Calm · Precise · Beautiful
*/

:root {
  color-scheme: dark;
  --bg: #050506;
  --bg-elevated: #0c0c0e;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.055);
  --surface-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.12);
  --text: #f5f5f4;
  --text-secondary: #a8a29e;
  --text-muted: #78716c;
  --accent: #FF4D00;
  --accent-yellow: #FFB020;
  --accent-soft: rgba(255, 77, 0, 0.12);
  --accent-glow: rgba(255, 77, 0, 0.28);
  --radius: 22px;
  --radius-sm: 14px;
  --radius-lg: 30px;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  --font-serif: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --max: 1080px;
  --space: 8px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background: var(--bg);
  color-scheme: dark;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
  min-height: 100vh;
  font-feature-settings: "ss01", "cv01";
}

/* Ambient — very slow, orange + yellow */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 60% at 50% -25%, rgba(255, 77, 0, 0.11), transparent 55%),
    radial-gradient(ellipse 50% 40% at 90% 90%, rgba(255, 176, 32, 0.05), transparent 50%),
    radial-gradient(ellipse 35% 30% at 10% 60%, rgba(255, 77, 0, 0.03), transparent 45%);
  pointer-events: none;
  z-index: 0;
  animation: ambient 42s ease-in-out infinite alternate;
}

@keyframes ambient {
  0%   { opacity: 0.8; transform: scale(1) translateY(0); }
  100% { opacity: 1;   transform: scale(1.05) translateY(-1.5%); }
}

img {
  display: block;
  max-width: 100%;
  image-rendering: -webkit-optimize-contrast;
}

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

h1, h2, h3 {
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.serif {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.01em;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.75rem;
  position: relative;
  z-index: 1;
}

.section {
  padding: 7.5rem 0;
}

.section-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
}

/* ========== NAV ========== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  transition: background 0.35s ease, backdrop-filter 0.35s ease, border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(5, 5, 6, 0.72);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  border-bottom-color: var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.75rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
}

.logo-img {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  object-fit: contain;
  background: #000;
  flex-shrink: 0;
}

.logo-img.footer {
  width: 24px;
  height: 24px;
  border-radius: 7px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.nav-links a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color 0.2s;
  font-weight: 450;
}

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.15rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 999px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 28px var(--accent-glow);
}

/* ========== HERO ========== */
.hero {
  padding: 10rem 0 5rem;
  text-align: center;
  position: relative;
}

.hero-logo-watermark {
  position: absolute;
  top: 38%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(480px, 72vw);
  opacity: 0.038;
  pointer-events: none;
  z-index: 0;
  user-select: none;
}

.hero .container { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 1rem 0.4rem 0.55rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 2.25rem;
  letter-spacing: 0.01em;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.hero h1 {
  font-size: clamp(2.75rem, 6.5vw, 4.5rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  max-width: 13ch;
  margin: 0 auto 1.5rem;
  line-height: 1.08;
}

.hero h1 .accent { color: var(--accent); }

.hero-sub {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2.1vw, 1.35rem);
  color: var(--text-secondary);
  max-width: 34rem;
  margin: 0 auto 2.5rem;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 999px;
  transition: all 0.25s cubic-bezier(0.25, 0.1, 0.25, 1);
  /* Sized to hold "Download on the App Store" on one line; a min-width rather
     than a fixed width so the pair stays equal even if text metrics shift. */
  min-width: 264px;
  white-space: nowrap;
  height: 48px;
  box-sizing: border-box;
}

.btn svg {
  flex: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 28px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 36px var(--accent-glow);
}

.btn-secondary {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text);
}

.btn-secondary:hover {
  background: var(--surface-hover);
  border-color: rgba(255,255,255,0.18);
}

.hero-date {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  margin-bottom: 3.75rem;
}

.hero-date-main {
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--text);
}

.hero-date-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* Phone stage */
.phone-stage {
  position: relative;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  height: 640px;
}

.phone {
  background: #0e0e10;
  border-radius: 44px;
  padding: 11px;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.5),
    0 30px 60px -18px rgba(0,0,0,0.8),
    0 0 100px -30px var(--accent-glow);
  position: absolute;
  left: 50%;
  top: 0;
  width: 300px;
  transform: translateX(-50%) scale(0.97);
  transition: opacity 1s cubic-bezier(0.25, 0.1, 0.25, 1),
              transform 1s cubic-bezier(0.25, 0.1, 0.25, 1);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}

.phone.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 3;
  transform: translateX(-50%) scale(1);
}

.phone-notch {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 28px;
  background: #000;
  border-radius: 20px;
  z-index: 2;
}

.phone-screen {
  background: linear-gradient(180deg, #131316 0%, #0a0a0c 100%);
  border-radius: 34px;
  overflow: hidden;
  aspect-ratio: 9 / 19.4;
  display: flex;
  flex-direction: column;
}

.screen-status {
  display: flex;
  justify-content: space-between;
  padding: 16px 24px 10px;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.screen-content {
  flex: 1;
  padding: 0.35rem 1.15rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.screen-header {
  text-align: center;
  padding: 0.15rem 0 0.25rem;
}

.screen-path {
  font-size: 0.65rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
  font-weight: 500;
}

.screen-title {
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.screen-card {
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 1.05rem 1.15rem;
}

.screen-card-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
  letter-spacing: 0.02em;
}

.screen-card-value {
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.screen-card-sub {
  font-size: 0.72rem;
  color: var(--text-secondary);
  margin-top: 0.2rem;
}

.screen-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.screen-mini {
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 14px;
  padding: 0.9rem 0.75rem;
  text-align: center;
}

.screen-mini-label {
  font-size: 0.6rem;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
  letter-spacing: 0.02em;
}

.screen-mini-value {
  font-size: 0.95rem;
  font-weight: 500;
}

.screen-ring {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2.5px solid rgba(255,77,0,0.22);
  border-top-color: var(--accent);
  margin: 0.35rem auto 0;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent);
}

.screen-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.screen-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0.95rem;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  font-size: 0.84rem;
}

.screen-list-item span:last-child {
  color: var(--text-muted);
  font-size: 0.74rem;
}

.phone-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.75rem;
  position: relative;
  z-index: 5;
}

.phone-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  border: none;
  cursor: pointer;
  transition: all 0.35s ease;
  padding: 0;
}

.phone-dot.active {
  background: var(--accent);
  transform: scale(1.25);
  box-shadow: 0 0 10px var(--accent-glow);
}

/* ========== PATHS ========== */
.paths {
  background: linear-gradient(180deg, transparent, rgba(255,77,0,0.02) 50%, transparent);
}

.paths-intro {
  text-align: center;
  max-width: 34rem;
  margin: 0 auto 3.5rem;
}

.paths-intro h2 {
  font-size: clamp(2rem, 3.6vw, 2.6rem);
  margin-bottom: 1.1rem;
  letter-spacing: -0.035em;
}

.paths-intro p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.55;
}

.paths-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
}

.path-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.65rem;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
  display: flex;
  flex-direction: column;
  min-height: 300px;
}

.path-card:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.path-tradition {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.65rem;
  font-weight: 500;
}

.path-card h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
}

.path-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0;
  min-height: 5.5rem; /* locks divider position across all three cards */
}

.path-list li {
  font-size: 0.925rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.path-list li::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.75;
  flex-shrink: 0;
}

.path-glimpse {
  margin-top: auto;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}


/* ========== FEATURES ========== */
.features-intro {
  text-align: center;
  max-width: 34rem;
  margin: 0 auto 4rem;
}

.features-intro h2 {
  font-size: clamp(2rem, 3.6vw, 2.6rem);
  margin-bottom: 1.1rem;
  letter-spacing: -0.035em;
}

.features-intro p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.55;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem 1.9rem;
  transition: border-color 0.3s, background 0.3s, transform 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
}

.feature-card:hover {
  border-color: var(--border-strong);
  background: var(--surface-hover);
  transform: translateY(-2px);
}

.feature-card.wide {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 2.25rem;
  padding: 1.9rem 2.25rem;
}

.feature-card.wide .feature-text {
  text-align: left;
  max-width: 28rem;
}

.feature-text {
  text-align: center;
}

.feature-text h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  letter-spacing: -0.025em;
}

.feature-text p {
  color: var(--text-secondary);
  font-size: 0.925rem;
  line-height: 1.55;
}

/* Simple 2D screenshot placeholders */
.shot {
  width: 140px;
  flex-shrink: 0;
}

.shot-frame {
  background: #111;
  border-radius: 22px;
  padding: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 12px 28px -10px rgba(0,0,0,0.55);
}

.shot-island {
  width: 48px;
  height: 14px;
  background: #000;
  border-radius: 10px;
  margin: 0 auto 6px;
}

.shot-screen {
  background: linear-gradient(180deg, #161618 0%, #0c0c0e 100%);
  border-radius: 16px;
  aspect-ratio: 9 / 16;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border: 1px solid rgba(255,255,255,0.04);
}

.shot-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
}

.shot-hint {
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* When real screenshots arrive, use:
   <div class="shot"><img src="screens/today.png" alt="Today screen" class="shot-img" /></div>
   and style .shot-img { width:100%; border-radius:16px; display:block; }
*/

@media (max-width: 900px) {
  .features-grid { grid-template-columns: 1fr; }
  .feature-card.wide {
    flex-direction: column;
  }
  .feature-card.wide .feature-text {
    text-align: center;
  }
}

/* ========== PRIVACY ========== */
.privacy {
  text-align: center;
}

.privacy-inner {
  max-width: 620px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3.75rem 2.75rem;
}

.privacy h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.4rem);
  margin-bottom: 1.25rem;
  letter-spacing: -0.035em;
}

.privacy .lead {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.55;
}

.privacy-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
  text-align: left;
}

.privacy-point {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.privacy-point svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ========== ACTIVE+ ========== */
.plus {
  background: linear-gradient(180deg, transparent, rgba(255,77,0,0.025), transparent);
}

.plus-header {
  text-align: center;
  max-width: 30rem;
  margin: 0 auto 3.25rem;
}

.plus-header h2 {
  font-size: clamp(2rem, 3.6vw, 2.6rem);
  margin-bottom: 0.95rem;
  letter-spacing: -0.035em;
}

.plus-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.55;
}

.plus-card {
  max-width: 460px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 2.75rem 2.25rem;
  position: relative;
  overflow: hidden;
}

.plus-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1.5px;
  background: linear-gradient(90deg, transparent 5%, var(--accent) 40%, var(--accent-yellow) 60%, transparent 95%);
}

.plus-price {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin-bottom: 0.4rem;
}

.plus-price .amount {
  font-size: 2.6rem;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.plus-price .period {
  color: var(--text-secondary);
  font-size: 1rem;
}

.plus-note {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.9rem;
}

.plus-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.9rem;
}

.plus-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.plus-list li svg {
  width: 17px;
  height: 17px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 3px;
}

.plus-free {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  line-height: 1.45;
}

/* ========== LAUNCH ========== */
.launch {
  text-align: center;
  padding-bottom: 8rem;
}

.launch-date-large {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  margin-bottom: 2rem;
  padding: 1.25rem 2rem;
  background: var(--accent-soft);
  border: 1px solid rgba(255, 77, 0, 0.2);
  border-radius: var(--radius);
}

.launch-date-large .day {
  font-size: 2.9rem;
  font-weight: 500;
  letter-spacing: -0.05em;
  color: var(--accent);
  line-height: 1;
}

.launch-date-large .rest {
  font-size: 0.95rem;
  color: var(--accent);
  letter-spacing: 0.01em;
  opacity: 0.9;
}

.launch h2 {
  font-size: clamp(2rem, 3.6vw, 2.6rem);
  margin-bottom: 1.1rem;
  letter-spacing: -0.035em;
}

.launch p {
  color: var(--text-secondary);
  max-width: 28rem;
  margin: 0 auto 2.25rem;
  font-size: 1.1rem;
  line-height: 1.55;
}

/* ========== FOOTER ========== */
.footer {
  border-top: 1px solid var(--border);
  padding: 3.25rem 0 2.75rem;
  text-align: center;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  margin-bottom: 1.1rem;
}

.footer p {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 28rem;
  margin: 0 auto 1.6rem;
  line-height: 1.5;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.75rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.footer-links a:hover { color: var(--text); }

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .paths-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .privacy-points { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .phone-stage { height: 600px; }
  .phone { width: 280px; }
  .path-card { min-height: auto; }
}

@media (max-width: 600px) {
  .section { padding: 5rem 0; }
  .hero { padding: 8.5rem 0 4rem; }
  .privacy-inner { padding: 2.75rem 1.65rem; }
  .plus-card { padding: 2.25rem 1.65rem; }
  .hero-logo-watermark { width: min(340px, 88vw); opacity: 0.032; }
  .container { padding: 0 1.35rem; }
}

@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
  .phone { transition: none; }
}
