/* ============================================================
   Juno+ Share Page — style.css
   ============================================================ */

:root {
  --c-cream:   #FEF3DD;
  --c-amber:   #F7A600;
  --c-purple:  #3A2665;
  --c-accent:  #584294;
  --c-white:   #FFFFFF;
  --c-lavender: #E4D9F7;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Mulish', -apple-system, BlinkMacSystemFont, sans-serif;

  --sp-1: 0.44rem;
  --sp-2: 0.67rem;
  --sp-3: 1rem;
  --sp-4: 1.5rem;
  --sp-5: 2.25rem;
  --sp-6: 3.38rem;
  --sp-7: 5.06rem;

  --shadow-soft: 0 8px 40px rgba(58,38,101,0.12);
  --shadow-card: 0 2px 16px rgba(58,38,101,0.08);
  --shadow-icon: 0 4px 16px rgba(58,38,101,0.22), 0 1px 4px rgba(58,38,101,0.12);

  --r-sm:  8px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 100px;

  --transition: 0.2s ease;
  --max-w: 1200px;
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--c-purple);
  background: var(--c-white);
  overflow-x: hidden;
}

/* Explicit reset — do NOT set height:auto globally so logo sizing works */
img { display: block; max-width: 100%; }
a   { text-decoration: none; color: inherit; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--sp-5);
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(58,38,101,0.07);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

/* App icon — small rounded square */
.logo-icon {
  display: block;
  width: 38px !important;
  height: 38px !important;
  min-width: 38px;
  min-height: 38px;
  max-width: 38px;
  max-height: 38px;
  border-radius: 10px;
  object-fit: contain;
  background: var(--c-cream);
  box-shadow: var(--shadow-icon);
  flex-shrink: 0;
  overflow: hidden;
}

/* SVG wordmark */
.logo-wordmark {
  display: block;
  height: 20px !important;
  width: auto !important;
  max-width: none;
  flex-shrink: 0;
}


.header-nav { display: flex; gap: var(--sp-5); align-items: center; }

.nav-link {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.45px;
  color: var(--c-purple);
  opacity: 0.55;
  transition: opacity var(--transition);
}
.nav-link:hover { opacity: 1; }

/* ============================================================
   Gradient wrapper — hero + features share one gradient bg
   ============================================================ */
.gradient-bg {
  background: linear-gradient(
    160deg,
    var(--c-cream) 0%,
    #EDE3FB 55%,
    var(--c-lavender) 100%
  );
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding-top: var(--sp-7);
  padding-bottom: 0;
  background: transparent;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-6);
  align-items: flex-end;
}

.hero-content { padding-bottom: var(--sp-7); }

.icon-row {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 1.5rem;
}

.app-icon-wrap { }

.hero-app-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  overflow: hidden;
  flex-shrink: 0;
  margin-bottom: var(--sp-4);
  box-shadow:
    0 1px 3px rgba(58,38,101,0.10),
    0 6px 18px rgba(58,38,101,0.18),
    0 18px 44px rgba(58,38,101,0.13);
}

.hero-app-icon img {
  display: block;
  width: 72px;
  height: 72px;
  object-fit: cover;
}

.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.45px;
  color: var(--c-amber);
  margin-bottom: var(--sp-3);
}

.eyebrow--center { display: block; text-align: center; }
.eyebrow--amber  { color: var(--c-amber); }

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -1.5px;
  color: var(--c-purple);
  margin-bottom: var(--sp-4);
}

.hero-title em { font-style: italic; color: var(--c-accent); }

.hero-desc {
  font-size: 1.05rem;
  color: rgba(58,38,101,0.65);
  max-width: 420px;
  line-height: 1.75;
  margin-bottom: var(--sp-5);
}

/* ─── Store buttons ─── */
.store-row {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
  margin-bottom: var(--sp-2);
}

.store-row--center { justify-content: center; }

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 13px 22px;
  border-radius: var(--r-md);
  border: 2px solid transparent;
  min-width: 165px;
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}

.store-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.store-btn:active { transform: none; }

.store-btn--dark    { background: var(--c-purple); color: var(--c-cream);  border-color: var(--c-purple); }
.store-btn--outline { background: rgba(255,255,255,0.75); color: var(--c-purple); border-color: rgba(58,38,101,0.18); backdrop-filter: blur(4px); }
.store-btn--amber   { background: var(--c-amber);  color: var(--c-purple); border-color: var(--c-amber); }
.store-btn--cream   { background: var(--c-cream);  color: var(--c-purple); border-color: rgba(58,38,101,0.12); }

.store-btn__icon { display: flex; align-items: center; flex-shrink: 0; }
.store-btn__text { display: flex; flex-direction: column; line-height: 1.2; }
.store-btn__text small  { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px; opacity: 0.7; }
.store-btn__text strong { font-size: 15px; font-weight: 800; }

.store-note {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: rgba(58,38,101,0.38);
  text-decoration: underline;
  margin-top: var(--sp-1);
}

/* ─── Hero image ─── */
.hero-image {
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.hero-image img {
  width: 100%;
  max-width: 520px;
  height: auto;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 32px 64px rgba(58,38,101,0.2));
}

/* ============================================================
   Features
   ============================================================ */
.features {
  padding-block: var(--sp-7);
  background: transparent;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.5px;
  line-height: 1.2;
  color: var(--c-purple);
  text-align: center;
  margin-bottom: var(--sp-6);
}

.section-title em { font-style: italic; color: var(--c-accent); }

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

.feature-card {
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(247,166,0,0.15);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-purple);
  margin-bottom: var(--sp-3);
}

.feature-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--c-purple);
  margin-bottom: var(--sp-2);
}

.feature-desc {
  font-size: 0.9rem;
  color: rgba(58,38,101,0.6);
  line-height: 1.65;
}

/* ============================================================
   CTA
   ============================================================ */
.cta {
  padding-block: var(--sp-7);
  background: var(--c-purple);
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: var(--c-accent);
  opacity: 0.15;
  top: -200px; left: -150px;
  pointer-events: none;
}

.cta::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: var(--c-amber);
  opacity: 0.08;
  bottom: -150px; right: -100px;
  pointer-events: none;
}

.cta-inner { text-align: center; position: relative; z-index: 1; }

.cta-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  letter-spacing: -0.5px;
  line-height: 1.15;
  color: var(--c-cream);
  margin-bottom: var(--sp-3);
}

.cta-title em { font-style: italic; color: var(--c-amber); }

.cta-desc {
  font-size: 1.05rem;
  color: rgba(254,243,221,0.55);
  margin-bottom: var(--sp-5);
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--c-purple);
  border-top: 1px solid rgba(254,243,221,0.1);
  padding-block: var(--sp-5);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

.footer-logo { display: flex; align-items: center; gap: 8px; }

.footer-wordmark {
  display: block;
  height: 18px !important;
  width: auto !important;
  max-width: none;
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

.footer-plus {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  font-style: italic;
  color: var(--c-amber);
  line-height: 1;
  margin-left: -3px;
}

.footer-nav { display: flex; gap: var(--sp-5); }

.footer-link {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.45px;
  color: rgba(254,243,221,0.45);
  transition: color var(--transition);
}
.footer-link:hover { color: var(--c-cream); }

.footer-copy {
  width: 100%;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(254,243,221,0.25);
  margin-top: var(--sp-2);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero { padding-top: var(--sp-6); }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: var(--sp-4);
    text-align: center;
  }

  .hero-content { padding-bottom: 0; order: 1; text-align: center; }
  .icon-row { justify-content: center; }
  .hero-desc  { max-width: 100%; }
  .store-row  { justify-content: center; }
  .store-note { text-align: center; }

  .hero-image { order: 0; }
  .hero-image img { max-width: 320px; margin-inline: auto; }

  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
  .footer-nav   { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 520px) {
  .container { padding-inline: var(--sp-4); }
  .features-grid { grid-template-columns: 1fr; }
  .store-btn { flex: 1; justify-content: center; min-width: 0; }
  .header-nav { display: none; }
  .hero-image img { max-width: 260px; }
}
