/* === LIFTLOG LANDING — CSS === */

:root {
  --bg:        #0B0B0D;
  --bg-2:      #111113;
  --bg-3:      #18181B;
  --fg:        #FFFFFF;
  --fg-muted:  #8B8B96;
  --fg-subtle: #4A4A52;
  --accent:    #D4FF3D;
  --accent-dim: #A8CC30;
  --border:    #222226;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* === NAV === */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  position: sticky;
  top: 0;
  background: rgba(11,11,13,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.nav-brand {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
  color: var(--fg);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.nav-logo-mark {
  width: 28px;
  height: 28px;
  background: var(--accent);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-logo-mark svg { display: block; }

.nav-tagline {
  font-size: 0.75rem;
  color: var(--fg-muted);
  letter-spacing: 0.05em;
}

/* === HERO === */
.hero {
  padding: 5rem 2rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text { grid-column: 1; }
.hero-image-wrap { grid-column: 2; }

.hero-eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(212,255,61,0.25);
  padding: 0.3rem 0.85rem;
  border-radius: 100px;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--fg-muted);
  line-height: 1.75;
  max-width: 440px;
  margin-bottom: 2.5rem;
  font-weight: 400;
}

.btn-appstore {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--accent);
  color: #0B0B0D;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.75rem;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
  letter-spacing: 0.01em;
}

.btn-appstore:hover { background: var(--accent-dim); transform: translateY(-1px); }
.btn-appstore:active { transform: translateY(0); }

.btn-appstore .btn-label { display: flex; flex-direction: column; line-height: 1.2; }
.btn-appstore .btn-small { font-size: 0.65rem; font-weight: 500; opacity: 0.7; text-transform: uppercase; letter-spacing: 0.05em; }
.btn-appstore .btn-large { font-size: 1rem; }

.btn-appstore svg { width: 24px; height: 24px; flex-shrink: 0; }

.hero-image-wrap {
  position: relative;
}

/* === iPhone 16 Device Frame === */
/* Images are sourced as iPhone 16 mockups (frame + screen as one asset).
   Preserve 19.5:9 ratio; do not stretch. */
.phone-wrap {
  position: relative;
  display: inline-block;
  width: 280px;
  /* height is auto — ratio locked by width + natural image dimensions */
}

.phone-wrap img {
  width: 100%;
  height: auto;
  display: block;
  /* lock aspect ratio — never squash or stretch */
  aspect-ratio: 19.5 / 9;
  object-fit: contain;
  border-radius: 36px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.08);
}

/* Hero image — larger, fits the layout */
.hero-image-wrap img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  border-radius: 36px;
  display: block;
  box-shadow: 0 32px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.06);
}

/* Feature row images */
.feature-row-img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  border-radius: 36px;
  display: block;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.05);
}

/* === SOCIAL PROOF === */
.social-proof {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
  padding: 2.5rem 2rem;
  text-align: center;
}

.social-proof-text {
  font-size: 1rem;
  color: var(--fg-muted);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
}

.social-proof-text strong { color: var(--fg); font-weight: 600; }

.stars {
  color: var(--accent);
  font-size: 1rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
  display: block;
}

/* === SECTION COMMON === */
.section {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.section-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 1rem;
  max-width: 600px;
}

.section-sub {
  font-size: 1rem;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 0;
}

/* === FEATURE: SESSION LOGGING === */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 5rem 0;
  border-bottom: 1px solid var(--border);
}

.feature-row:last-of-type { border-bottom: none; }

.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }

.feature-icon-wrap {
  width: 56px;
  height: 56px;
  background: rgba(212,255,61,0.1);
  border: 1px solid rgba(212,255,61,0.2);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.feature-icon-wrap svg { color: var(--accent); display: block; }

.feature-row-img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--border);
  display: block;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
}

/* === FEATURE: ICON BLOCKS GRID === */
.icon-blocks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  margin-top: 3rem;
  background: var(--border);
}

.icon-block {
  background: var(--bg);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.icon-block-icon {
  width: 40px;
  height: 40px;
  background: rgba(212,255,61,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-block-icon svg { color: var(--accent); display: block; }

.icon-block h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--fg);
}

.icon-block p {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* === PRICING === */
.pricing {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 6rem 2rem;
}

.pricing-inner { max-width: 1200px; margin: 0 auto; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.pricing-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color 0.2s;
}

.pricing-card:hover { border-color: #3a3a3e; }

.pricing-card.featured {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(212,255,61,0.05) 0%, var(--bg) 60%);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #0B0B0D;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.3rem 1rem;
  border-radius: 100px;
  white-space: nowrap;
}

.pricing-tier {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg-muted);
  margin-bottom: 0.5rem;
}

.pricing-price {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--fg);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.pricing-price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--fg-muted);
  font-family: var(--font-body);
}

.pricing-card.featured .pricing-price { color: var(--accent); }

.pricing-desc {
  font-size: 0.8rem;
  color: var(--fg-muted);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 2rem;
  flex: 1;
}

.pricing-features li {
  font-size: 0.875rem;
  color: var(--fg-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  line-height: 1.4;
}

.pricing-features li svg { color: var(--accent); flex-shrink: 0; }

.btn-pricing {
  display: block;
  text-align: center;
  padding: 0.85rem 1.5rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
  border: 1px solid var(--border);
  color: var(--fg);
  background: var(--bg-2);
}

.btn-pricing:hover { background: var(--bg-3); transform: translateY(-1px); }
.btn-pricing:active { transform: translateY(0); }

.btn-pricing.accent-btn {
  background: var(--accent);
  color: #0B0B0D;
  border-color: var(--accent);
}

.btn-pricing.accent-btn:hover { background: var(--accent-dim); }

/* === FINAL CTA === */
.final-cta {
  padding: 7rem 2rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.final-cta-headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--fg);
  margin-bottom: 1rem;
}

.final-cta-sub {
  font-size: 1rem;
  color: var(--fg-muted);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.final-cta-note {
  font-size: 0.8rem;
  color: var(--fg-subtle);
  margin-top: 1rem;
}

/* === FOOTER === */
.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
  background: var(--bg-2);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--fg);
}

.footer-logo-mark {
  width: 22px;
  height: 22px;
  background: var(--accent);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-logo-mark svg { display: block; }

.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  font-size: 0.8rem;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.15s;
}

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

.footer-copy {
  font-size: 0.75rem;
  color: var(--fg-subtle);
}

.footer-email {
  font-size: 0.8rem;
  color: var(--fg-muted);
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 2.5rem; padding: 4rem 1.5rem 3rem; }
  .hero-text { order: 1; }
  .hero-image-wrap { order: 0; grid-column: 1; }
  .hero-sub { max-width: none; }
  .feature-row { grid-template-columns: 1fr; gap: 2.5rem; padding: 3.5rem 0; }
  .feature-row.reverse { direction: ltr; }
  .pricing-grid { grid-template-columns: 1fr; gap: 2rem; }
  .icon-blocks { grid-template-columns: 1fr; }
  .section { padding: 4rem 1.5rem; }
  .pricing { padding: 4rem 1.5rem; }
  .final-cta { padding: 5rem 1.5rem; }
}

@media (max-width: 640px) {
  .nav-tagline { display: none; }
  .nav { padding: 1rem 1.5rem; }
  .section-headline { max-width: none; }
  .section-sub { max-width: none; }
  .btn-appstore { width: 100%; justify-content: center; }
  .footer-links { gap: 1.25rem; }
}

/* === WAITLIST FORMS === */

/* Hero inline waitlist */
.waitlist-hero {
  margin-top: 2rem;
}

.waitlist-hero-label {
  font-size: 0.8rem;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
  margin-bottom: 0.65rem;
  text-transform: uppercase;
  font-weight: 500;
}

.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.waitlist-input-row {
  display: flex;
  gap: 0.5rem;
  max-width: 420px;
}

.waitlist-input {
  flex: 1;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 0.65rem 1rem;
  outline: none;
  transition: border-color 0.15s;
  min-width: 0;
}

.waitlist-input::placeholder { color: var(--fg-subtle); }
.waitlist-input:focus { border-color: var(--accent); }

.waitlist-btn {
  background: var(--accent);
  color: #0B0B0D;
  border: none;
  border-radius: 8px;
  padding: 0.65rem 1.2rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, opacity 0.15s;
  flex-shrink: 0;
}

.waitlist-btn:hover { background: var(--accent-dim); }
.waitlist-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.waitlist-feedback {
  font-size: 0.8rem;
  margin-top: 0.5rem;
  min-height: 1.1em;
  color: var(--fg-muted);
}

.waitlist-feedback.success { color: var(--accent); }
.waitlist-feedback.error   { color: #FF6B6B; }

/* Footer waitlist section */
.waitlist-footer-section {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 4rem 2rem;
}

.waitlist-footer-inner {
  max-width: 540px;
  margin: 0 auto;
  text-align: center;
}

.waitlist-footer-heading {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.5rem;
}

.waitlist-footer-sub {
  color: var(--fg-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.waitlist-footer-inner .waitlist-input-row {
  max-width: 100%;
}

@media (max-width: 640px) {
  .waitlist-input-row { flex-direction: column; max-width: 100%; }
  .waitlist-btn { width: 100%; }
  .waitlist-footer-section { padding: 3rem 1.5rem; }
}