/* GraceSong App Landing — from gracesong_landing (2).html */
:root {
    --cream: #FAF6F0;
    --cream-2: #F5EFE4;
    --dark: #5C4523;
    --text: #2A1F15;
    --text-soft: #6B5A4A;
    --text-muted: #8A7864;
    --gold: #C4973A;
    --gold-light: #D9B05C;
    --gold-dark: #A47B28;
    --border: #E8DDC8;
    --white: #FFFFFF;
    --green: #5BA84A;
    --serif: 'Cormorant Garamond', Georgia, serif;
    --sans: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  }

body.gracesong-app-landing {
  padding-top: 84px;
  background: var(--cream);
  font-family: var(--sans);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}

body.gracesong-app-landing * { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

  /* ===== STICKY BAR ===== */
body.gracesong-app-landing .sticky-bar {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    z-index: 100;
    height: 84px;
    display: flex;
    align-items: center;
    padding: 0 14px;
    max-width: 480px;
    margin: 0 auto;
    gap: 12px;
  }

body.gracesong-app-landing .app-icon {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    border-radius: 13px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: relative;
    background: #000;
  }

body.gracesong-app-landing .app-icon img {
    position: absolute;
    inset: 0;
    width: 56px;
    height: 56px;
    object-fit: cover;
    display: block;
  }

body.gracesong-app-landing .app-info {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
  }

body.gracesong-app-landing .app-name {
    font-family: var(--sans);
    font-weight: 700;
    font-size: 15px;
    color: var(--text);
    line-height: 1.2;
    margin-bottom: 3px;
    letter-spacing: -0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

body.gracesong-app-landing .app-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: var(--text-soft);
    font-weight: 600;
  }

body.gracesong-app-landing .app-rating-score {
    color: var(--text);
    font-weight: 700;
    font-size: 12px;
  }

body.gracesong-app-landing .app-rating-stars {
    display: flex;
    gap: 1px;
    align-items: center;
  }

  .app-rating-stars svg { width: 11px; height: 11px; display: block; }

body.gracesong-app-landing .app-rating-count {
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 500;
  }

body.gracesong-app-landing .cta-pill {
    flex: 0 0 auto;
    background: linear-gradient(180deg, #D9B05C 0%, #C4973A 100%);
    color: var(--white);
    font-family: var(--sans);
    font-weight: 600;
    font-size: 13px;
    padding: 12px 16px;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(196, 151, 58, 0.3);
    letter-spacing: -0.1px;
    animation: pulseGold 2.5s ease-in-out infinite;
  }

  .cta-pill:active { transform: scale(0.97); }

  @keyframes pulseGold {
    0%, 100% { box-shadow: 0 2px 6px rgba(196, 151, 58, 0.3); }
    50% { box-shadow: 0 2px 14px rgba(196, 151, 58, 0.5); }
  }

body.gracesong-app-landing .container {
    max-width: 480px;
    margin: 0 auto;
    background: var(--cream);
  }

  /* ===== HERO ===== */
body.gracesong-app-landing .hero-screen {
    min-height: calc(100vh - 84px);
    display: flex;
    flex-direction: column;
    background: var(--cream);
  }

  /* === VARIANT 1: Tight gap + gold border === */
body.gracesong-app-landing .screenshot-carousel {
    height: 50vh;
    min-height: 380px;
    max-height: 560px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 24px 0 12px;
    scrollbar-width: none;
    flex-shrink: 0;
  }

body.gracesong-app-landing .screenshot-carousel::-webkit-scrollbar { display: none; }

body.gracesong-app-landing .carousel-track {
    display: flex;
    gap: 6px;                        /* ← прижатые скрины */
    padding: 0 20px;
    height: 100%;
  }

body.gracesong-app-landing .screenshot-slide {
    flex: 0 0 auto;
    height: 100%;
    aspect-ratio: 1100 / 2380;
    scroll-snap-align: center;
    border-radius: 18px;
    overflow: hidden;
    border: 1.5px solid var(--gold);     /* ← золотая обводка */
    box-shadow: 0 4px 16px rgba(196, 151, 58, 0.18); /* ← золотое свечение */
    background: var(--cream-2);
  }

body.gracesong-app-landing .screenshot-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

body.gracesong-app-landing .carousel-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 4px 0 0;
    flex-shrink: 0;
  }

body.gracesong-app-landing .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--border);
    transition: background 0.2s, width 0.2s;
  }

body.gracesong-app-landing .dot.active {
    background: var(--gold);
    width: 20px;
    border-radius: 3px;
  }

body.gracesong-app-landing .hero-spacer {
    flex: 1 1 auto;
    min-height: 40px;
  }

  /* ===== TRIAL ===== */
body.gracesong-app-landing .trial-block { padding: 28px 20px 28px; }

body.gracesong-app-landing .consent-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
  }

body.gracesong-app-landing .checkbox {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    border: 1.5px solid var(--gold);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
  }

  .checkbox svg { width: 14px; height: 14px; }

body.gracesong-app-landing .consent-text {
    font-size: 13px;
    color: var(--text-soft);
    line-height: 1.45;
  }

body.gracesong-app-landing .consent-text a {
    color: var(--text);
    text-decoration: underline;
    font-weight: 500;
  }

body.gracesong-app-landing .trial-text {
    font-size: 14px;
    color: var(--text);
    line-height: 1.55;
    margin-top: 6px;
  }

body.gracesong-app-landing .trial-text a {
    color: var(--gold-dark);
    text-decoration: underline;
    font-weight: 500;
  }

  /* ===== RATINGS SECTION ===== */
  .ratings-section { padding: 0 20px 28px; }

body.gracesong-app-landing .ratings-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
  }

body.gracesong-app-landing .ratings-heading h2 {
    font-family: var(--sans);
    font-weight: 700;
    font-size: 22px;
    color: var(--text);
    letter-spacing: -0.4px;
  }

body.gracesong-app-landing .app-store-badge {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    background: linear-gradient(180deg, #1a8fef, #0a6bc7);
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

body.gracesong-app-landing .ratings-card {
    background: var(--white);
    border: 1.5px solid var(--gold);
    border-radius: 18px;
    padding: 22px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
  }

body.gracesong-app-landing .rating-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 0 0 auto;
  }

body.gracesong-app-landing .rating-number {
    font-family: var(--sans);
    font-weight: 700;
    font-size: 48px;
    color: var(--text);
    line-height: 1;
    letter-spacing: -1px;
  }

body.gracesong-app-landing .rating-count {
    background: var(--gold);
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 100px;
    margin-top: 8px;
    white-space: nowrap;
  }

body.gracesong-app-landing .rating-bars {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
  }

body.gracesong-app-landing .rating-bar-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--text-soft);
  }

body.gracesong-app-landing .rating-bar-label {
    display: flex;
    align-items: center;
    gap: 2px;
    width: 22px;
  }

  .rating-bar-label svg { width: 10px; height: 10px; }

body.gracesong-app-landing .rating-bar-track {
    flex: 1;
    height: 6px;
    background: var(--cream-2);
    border-radius: 3px;
    overflow: hidden;
  }

body.gracesong-app-landing .rating-bar-fill {
    height: 100%;
    background: var(--green);
    border-radius: 3px;
  }

body.gracesong-app-landing .review-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px 18px 20px;
    margin-top: 14px;
  }

  .review-stars { display: flex; gap: 2px; margin-bottom: 8px; }
  .review-stars svg { width: 16px; height: 16px; }

body.gracesong-app-landing .review-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
  }

body.gracesong-app-landing .review-text {
    font-size: 14px;
    color: var(--text);
    line-height: 1.55;
  }

  /* ===== BOTTOM CTA ===== */
body.gracesong-app-landing .bottom-cta-section {
    padding: 30px 20px 32px;
    text-align: center;
  }

body.gracesong-app-landing .bottom-cta-section h3 {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 24px;
    color: var(--text);
    line-height: 1.25;
    margin-bottom: 14px;
    letter-spacing: -0.3px;
  }

body.gracesong-app-landing .bottom-cta-section p {
    font-size: 14px;
    color: var(--text-soft);
    margin-bottom: 20px;
    line-height: 1.5;
  }

body.gracesong-app-landing .bottom-cta-btn {
    display: block;
    width: 100%;
    background: linear-gradient(180deg, #D9B05C 0%, #C4973A 100%);
    color: var(--white);
    font-family: var(--sans);
    font-weight: 700;
    font-size: 17px;
    padding: 18px;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(196, 151, 58, 0.35);
    letter-spacing: -0.2px;
  }

  .bottom-cta-btn:active { transform: scale(0.98); }

body.gracesong-app-landing .bottom-cta-small {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 12px;
  }

  /* ===== FOOTER ===== */
body.gracesong-app-landing .footer {
	width: 96%;
    background: var(--dark);
    color: rgba(255,255,255,0.85);
    border-radius: 24px 24px 0 0;
    padding: 32px 24px 36px;
    margin-top: 12px;
  }

body.gracesong-app-landing .footer-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
  }

body.gracesong-app-landing .footer-icon {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    border-radius: 13px;
    overflow: hidden;
    position: relative;
    background: #000;
  }

body.gracesong-app-landing .footer-icon img {
    position: absolute;
    inset: 0;
    width: 56px;
    height: 56px;
    object-fit: cover;
    display: block;
  }

body.gracesong-app-landing .footer-app-name {
    font-family: var(--sans);
    font-weight: 700;
    font-size: 20px;
    color: var(--white);
    letter-spacing: -0.3px;
  }

body.gracesong-app-landing .footer-tagline {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    line-height: 1.5;
    margin-bottom: 28px;
  }

body.gracesong-app-landing .footer-section-title {
    font-family: var(--sans);
    font-weight: 700;
    font-size: 18px;
    color: var(--white);
    margin-bottom: 14px;
    letter-spacing: -0.2px;
  }

body.gracesong-app-landing .footer-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    color: rgba(255,255,255,0.85);
    font-size: 15px;
    text-decoration: none;
  }

body.gracesong-app-landing .footer-link svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    opacity: 0.8;
  }

body.gracesong-app-landing .footer-divider {
    height: 1px;
    background: rgba(255,255,255,0.15);
    margin: 24px 0;
  }

body.gracesong-app-landing .footer-legal-link {
    display: block;
    padding: 10px 0;
    color: rgba(255,255,255,0.85);
    font-size: 15px;
    text-decoration: none;
  }

body.gracesong-app-landing .footer-copyright {
    font-size: 13px;
    color: rgba(255,255,255,0.55);
    line-height: 1.6;
    margin-top: 20px;
  }

@media (min-width: 481px) {
  body.gracesong-app-landing { background: #E8DDC8; }
  body.gracesong-app-landing .sticky-bar { box-shadow: 0 2px 12px rgba(0,0,0,0.08); }
  body.gracesong-app-landing .container { box-shadow: 0 0 40px rgba(0,0,0,0.06); }
}

body.gracesong-app-landing .header-cta {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  max-width: min(168px, 42vw);
}

body.gracesong-app-landing .landing-payment-error {
  margin: 0;
  font-size: 11px;
  line-height: 1.3;
  color: #c62828;
  text-align: right;
  max-width: 168px;
}

body.gracesong-app-landing .cta-pill {
  appearance: none;
  -webkit-appearance: none;
}

body.gracesong-app-landing .sticky-bar {
  width: 100%;
}

body.gracesong-app-landing .landing-checkout-section {
  padding: 8px 16px 24px;
}

body.gracesong-app-landing .landing-checkout-card {
  background: var(--white);
  border-radius: 18px;
  border: 1.5px solid var(--border);
  padding: 20px 16px;
  box-shadow: 0 8px 28px rgba(92, 69, 35, 0.08);
}

body.gracesong-app-landing .landing-checkout-title {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  text-align: center;
  margin-bottom: 6px;
  color: var(--text);
}

body.gracesong-app-landing .landing-checkout-sub {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 18px;
}

body.gracesong-app-landing .landing-checkout-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-soft);
  margin-bottom: 6px;
}

body.gracesong-app-landing .landing-checkout-input {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 15px;
  font-family: var(--sans);
  margin-bottom: 14px;
  outline: none;
}

body.gracesong-app-landing .landing-checkout-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(196, 151, 58, 0.12);
}

body.gracesong-app-landing .landing-checkout-methods {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 12px;
}

body.gracesong-app-landing .landing-checkout-wallet {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  min-height: 48px;
}

body.gracesong-app-landing .landing-checkout-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  font-size: 12px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

body.gracesong-app-landing .landing-checkout-stripe-field {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  min-height: 44px;
}

body.gracesong-app-landing .landing-checkout-card-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

body.gracesong-app-landing .landing-checkout-card-row .landing-checkout-stripe-field:last-child {
  border-bottom: none;
}

body.gracesong-app-landing .landing-checkout-form-error {
  font-size: 13px;
  color: #c62828;
  margin-bottom: 10px;
  line-height: 1.4;
}

body.gracesong-app-landing .landing-checkout-submit {
  width: 100%;
  appearance: none;
  border: none;
  border-radius: 99px;
  padding: 16px;
  font-size: 16px;
  font-weight: 600;
  font-family: var(--sans);
  color: var(--white);
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(196, 151, 58, 0.35);
}

body.gracesong-app-landing .landing-checkout-submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

body.gracesong-app-landing .landing-checkout-processing {
  margin-top: 12px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}
