/* ============================================
   SYNCHRONICITY — Shared Stylesheet
   synchronicity.nerdvista.com
   ============================================ */


/* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
  /* Palette */
  --bg-base:      #1A1B26;
  --bg-surface:   #1E2033;
  --gold:         #C4A882;
  --gold-dim:     rgba(196, 168, 130, 0.10);
  --gold-border:  rgba(196, 168, 130, 0.16);

  /* Text */
  --text-primary:   #F4F1EA;
  --text-secondary: #8A8070;
  --text-muted:     #5A5448;

  /* Typography */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'General Sans', Inter, -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --s-1: 0.5rem;
  --s-2: 1rem;
  --s-3: 1.5rem;
  --s-4: 2rem;
  --s-5: 3rem;
  --s-6: 4rem;
  --s-7: 6rem;
  --s-8: 8rem;

  /* Radii */
  --r-sm:   6px;
  --r-md:   12px;
  --r-lg:   20px;
  --r-pill: 999px;
}


/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .fade-in {
    opacity: 1 !important;
    transform: none !important;
  }
}


/* ============================================
   SHARED LAYOUT
   ============================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  max-width: 680px;
  margin: 0 auto var(--s-6);
  text-align: center;
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--s-2);
  font-weight: 500;
}

.section-eyebrow--gold { color: var(--gold); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin-bottom: var(--s-3);
}

.section-lede {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.65;
}


/* ============================================
   SCROLL REVEAL
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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


/* ============================================
   GRAIN OVERLAY
   ============================================ */
.grain {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.055;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
}


/* ============================================
   APP STORE BADGE
   ============================================ */
.app-store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 1.1rem;
  background: var(--text-primary);
  color: var(--bg-base);
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-weight: 500;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.app-store-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(196, 168, 130, 0.18);
}

.app-store-badge__label {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-align: left;
}

.app-store-badge__label small {
  font-size: 0.68rem;
  opacity: 0.6;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.app-store-badge__label strong {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}


/* ============================================
   NAVIGATION  (subpages: privacy, support)
   ============================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: var(--s-2) var(--s-4);
  background: rgba(26, 27, 38, 0.94);
  border-bottom: 1px solid var(--gold-border);
}

.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.nav__icon {
  width: 30px;
  height: 30px;
  border-radius: 7px;
}

.nav__name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--text-primary);
  letter-spacing: 0.01em;
}

.nav__back {
  font-size: 0.875rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s ease;
}

.nav__back:hover { color: var(--gold); }


/* ============================================
   FOOTER  (shared)
   ============================================ */
.footer {
  background: var(--bg-base);
  border-top: 1px solid var(--gold-border);
}

.footer--landing {
  padding: var(--s-7) var(--s-4) var(--s-4);
}

.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--gold-border);
  margin-bottom: var(--s-3);
  gap: var(--s-3);
  flex-wrap: wrap;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: var(--s-2);
}

.footer__icon {
  width: 32px;
  height: 32px;
  border-radius: 7px;
}

.footer__wordmark {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 300;
  color: var(--text-primary);
  letter-spacing: 0.01em;
}

.footer--page {
  padding: var(--s-5) var(--s-4) var(--s-4);
  margin-top: var(--s-5);
}

.footer__inner {
  max-width: 720px;
  margin: 0 auto;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-2);
}

.footer__credit {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0;
}

.footer__credit a {
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(196, 168, 130, 0.28);
  padding-bottom: 1px;
  transition: color 0.2s ease;
}

.footer__credit a:hover { color: var(--gold); }

.footer__links {
  display: flex;
  gap: var(--s-3);
}

.footer__links a {
  color: var(--text-secondary);
  font-size: 0.85rem;
  transition: color 0.2s ease;
}

.footer__links a:hover { color: var(--gold); }


/* ============================================
   DOCUMENT PAGE LAYOUT  (privacy, support)
   ============================================ */
.page {
  max-width: 720px;
  margin: 0 auto;
  padding: calc(var(--s-7) + 60px) var(--s-4) var(--s-7);
}

.page-header { margin-bottom: var(--s-6); }

.page-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: var(--s-2);
}

.page-updated,
.page-lede {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.65;
}

.page-updated {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.highlight-block {
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  border-radius: var(--r-md);
  padding: var(--s-4);
  margin-bottom: var(--s-5);
}

.highlight-block p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.65;
  margin: 0;
}

.highlight-block strong {
  color: var(--gold);
  font-weight: 400;
}

.content-section {
  margin-bottom: var(--s-5);
  padding-bottom: var(--s-5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.content-section:last-child { border-bottom: none; }

.content-section h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: var(--s-3);
  letter-spacing: -0.01em;
}

.content-section p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: var(--s-3);
}

.content-section p:last-child { margin-bottom: 0; }

.content-section a {
  color: var(--gold);
  border-bottom: 1px solid rgba(196, 168, 130, 0.35);
  padding-bottom: 1px;
  transition: color 0.2s ease;
}

.content-section a:hover { color: var(--text-primary); }

.contact-block {
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  border-radius: var(--r-md);
  padding: var(--s-4);
  text-align: center;
  margin-top: var(--s-5);
}

.contact-block p {
  color: var(--text-secondary);
  margin-bottom: var(--s-3);
  font-size: 1rem;
}

.contact-link {
  display: inline-block;
  color: var(--gold);
  font-size: 1rem;
  border-bottom: 1px solid rgba(196, 168, 130, 0.4);
  padding-bottom: 2px;
  transition: color 0.2s ease;
}

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


/* ============================================
   HERO  (landing page)
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  padding: var(--s-7) var(--s-4) var(--s-8);
  background: var(--bg-base);
}

.hero__content {
  width: 100%;
  max-width: 1200px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--s-7);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__text {
  animation: fadeUp 1.2s 0.2s ease-out backwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  margin-bottom: var(--s-5);
}

.wordmark__icon {
  width: 40px;
  height: 40px;
  border-radius: 9px;
}

.wordmark__text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 300;
  letter-spacing: 0.01em;
  color: var(--text-primary);
}

.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: var(--s-4);
}

.hero__headline em {
  font-style: italic;
  color: var(--gold);
}

.hero__subline {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: var(--s-5);
  max-width: 32rem;
  line-height: 1.65;
}

.hero__visual {
  animation: fadeUp 1.2s 0.45s ease-out backwards;
  display: flex;
  justify-content: center;
  align-items: center;
}


/* ============================================
   HOOK SECTION
   ============================================ */
.hook {
  background: var(--bg-surface);
  padding: var(--s-8) var(--s-4);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--gold-border);
  border-bottom: 1px solid var(--gold-border);
}

.hook__content {
  text-align: center;
  max-width: 640px;
  position: relative;
  z-index: 1;
}

.hook__text {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 300;
  line-height: 1.55;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
  margin-bottom: var(--s-4);
}

.hook__text--accent {
  color: var(--text-primary);
  margin-bottom: 0;
}


/* ============================================
   HOW IT WORKS
   ============================================ */
.how {
  background: var(--bg-base);
  padding: var(--s-8) var(--s-4);
}

.how__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-3);
  max-width: 1100px;
  margin: 0 auto;
}

.step {
  display: flex;
  flex-direction: column;
  padding: var(--s-4);
  background: var(--bg-surface);
  border: 1px solid var(--gold-border);
  border-radius: var(--r-lg);
  transition: border-color 0.3s ease;
}

.step:hover { border-color: rgba(196, 168, 130, 0.32); }

.step__number {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: var(--s-3);
}

.step__title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 300;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: var(--s-2);
}

.step__body {
  color: var(--text-secondary);
  font-size: 0.97rem;
  line-height: 1.65;
}


/* ============================================
   WHAT TO LOG
   ============================================ */
.tags-section {
  background: var(--bg-surface);
  padding: var(--s-8) var(--s-4);
  border-top: 1px solid var(--gold-border);
  border-bottom: 1px solid var(--gold-border);
}

.tags-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  justify-content: center;
  max-width: 760px;
  margin: 0 auto;
}

.tag-item {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  padding: 0.6rem 1.1rem;
  background: var(--bg-base);
  border: 1px solid var(--gold-border);
  border-radius: var(--r-pill);
  color: var(--text-secondary);
  font-size: 0.92rem;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.tag-item:hover {
  border-color: var(--gold);
  color: var(--text-primary);
}

.tag-item__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.55;
  flex-shrink: 0;
}


/* ============================================
   PRIVACY SECTION
   ============================================ */
.privacy {
  background: var(--bg-base);
  padding: var(--s-8) var(--s-4);
}

.privacy__content {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}

.privacy__title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.5vw, 2.9rem);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: var(--s-3);
}

.privacy__lede {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: var(--s-5);
  line-height: 1.6;
}

.privacy__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  text-align: left;
  max-width: 440px;
  margin: 0 auto;
}

.privacy__item {
  display: flex;
  align-items: flex-start;
  gap: var(--s-2);
  color: var(--text-secondary);
  font-size: 1rem;
  padding: var(--s-2) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.privacy__item:last-child { border-bottom: none; }

.privacy__check {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--gold);
  margin-top: 3px;
}


/* ============================================
   TIP JAR SECTION
   ============================================ */
.tip {
  background: var(--bg-surface);
  padding: var(--s-8) var(--s-4);
  border-top: 1px solid var(--gold-border);
}

.tip__content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.tip__free-block {
  padding: var(--s-5) var(--s-4);
  background: var(--bg-base);
  border: 1px solid var(--gold-border);
  border-radius: var(--r-lg);
  margin-bottom: var(--s-5);
}

.tip__free-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 300;
  color: var(--text-primary);
  margin-bottom: var(--s-2);
  letter-spacing: -0.02em;
}

.tip__free-body {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.65;
  max-width: 380px;
  margin: 0 auto var(--s-4);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 1.4rem;
  background: transparent;
  color: var(--gold);
  border: 1px solid rgba(196, 168, 130, 0.38);
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.btn-ghost:hover {
  background: var(--gold-dim);
  border-color: var(--gold);
}

.tip__divider {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin: 0 0 var(--s-4);
  color: var(--text-muted);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tip__divider::before,
.tip__divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gold-border);
}

.tip__card {
  padding: var(--s-4);
  background: var(--bg-base);
  border: 1px solid var(--gold-border);
  border-radius: var(--r-lg);
  text-align: center;
}

.tip__card-label {
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin-bottom: var(--s-1);
  letter-spacing: 0.03em;
}

.tip__card-price {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--text-primary);
  margin-bottom: var(--s-1);
  letter-spacing: -0.02em;
}

.tip__card-note {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.55;
}


/* ============================================
   PHONE MOCKUP  (landing page)
   ============================================ */
.phone {
  position: relative;
  border-radius: 36px;
  background: var(--bg-base);
  padding: 8px;
  box-shadow:
    0 0 0 1px rgba(196, 168, 130, 0.16),
    0 20px 48px rgba(0, 0, 0, 0.55);
  flex-shrink: 0;
}

/* Hero variant */
.phone--hero {
  width: 260px;
  aspect-ratio: 9 / 19;
}

/* Step card variant */
.phone--sm {
  width: 150px;
  aspect-ratio: 9 / 19;
  border-radius: 28px;
  padding: 6px;
  margin: 0 auto var(--s-4);
  box-shadow:
    0 0 0 1px rgba(196, 168, 130, 0.14),
    0 10px 28px rgba(0, 0, 0, 0.45);
}

.phone__screen {
  width: 100%;
  height: 100%;
  border-radius: 30px;
  overflow: hidden;
  background: var(--bg-base);
}

.phone--sm .phone__screen {
  border-radius: 23px;
}

.phone__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}


/* ============================================
   SCROLL INDICATOR  (hero)
   ============================================ */
.hero__scroll {
  position: absolute;
  bottom: var(--s-3);
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  z-index: 1;
  animation: scrollBounce 2.4s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.4; }
  50%       { transform: translateX(-50%) translateY(8px); opacity: 0.85; }
}


/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 820px) {
  .hero__content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--s-6);
  }

  .wordmark { justify-content: center; }

  .hero__subline {
    margin-left: auto;
    margin-right: auto;
  }

  .how__steps {
    grid-template-columns: 1fr;
    gap: var(--s-3);
  }

  .footer__top {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .footer--page .footer__bottom {
    flex-direction: column;
    text-align: center;
  }
}