:root {
    --creme:   #EEEFD8;
    --roxo:    #5B4B8A;
    --roxo-lt: #7B6BAA;
    --verde:   #8A9A4A;
    --verde-lt:#A8B86A;
    --texto:   #3A3060;
    --muted:   #8A8070;
    --borda:   rgba(91,75,138,0.15);
    --card-bg: rgba(255,255,255,0.55);
  }

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

  html { scroll-behavior: smooth; }

  body {
    background: var(--creme);
    font-family: 'Jost', sans-serif;
    color: var(--texto);
    min-height: 100vh;
  }

  /* ── HERO ─────────────────────────────────────────────────────── */
  .hero {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--creme);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  /* placeholder shown when no image */
  .hero-empty {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border: 1.5px dashed var(--borda);
  }
  .hero-empty p {
    font-family: 'Jost', sans-serif;
    font-size: 13px;
    color: var(--muted);
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
      to bottom,
      transparent 40%,
      rgba(238,239,216,0.85) 100%
    );
  }

  .hero-text {
    position: absolute;
    bottom: 48px;
    left: 0; right: 0;
    text-align: center;
    padding: 0 24px;
  }
  .hero-eyebrow {
    font-family: 'Jost', sans-serif;
    font-size: 11px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--roxo);
    margin-bottom: 10px;
  }
  .hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(42px, 8vw, 72px);
    line-height: 1.05;
    color: var(--roxo);
  }
  .hero-title em {
    font-style: italic;
    color: var(--roxo-lt);
  }

  /* ── GINKGO SVG ───────────────────────────────────────────────── */
  .ginkgo {
    width: 64px;
    height: auto;
    opacity: 0.6;
  }
  .ginkgo-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 48px auto 0;
  }
  .ginkgo-divider::before,
  .ginkgo-divider::after {
    content: '';
    flex: 1;
    max-width: 120px;
    height: 0.5px;
    background: var(--verde);
    opacity: 0.5;
  }

  /* ── INTRO ────────────────────────────────────────────────────── */
  .intro {
    max-width: 780px;
    margin: 0 auto;
    padding: 56px 24px 64px;
    text-align: center;
  }
  .intro-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: 42px;
    color: var(--roxo);
    margin-bottom: 20px;
  }
  .intro p {
    font-size: 20px;
    line-height: 1.9;
    color: var(--texto);
    font-weight: 400;
    text-wrap: pretty;
    max-width: 68ch;
    margin: 0 auto;
  }

  /* ── GRID ─────────────────────────────────────────────────────── */
  .section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px 96px;
  }

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

  /* ── CARD ─────────────────────────────────────────────────────── */
  .card {
    background: var(--card-bg);
    border: 0.5px solid var(--borda);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .25s, transform .25s;
    backdrop-filter: blur(4px);
  }
  .card:hover {
    box-shadow: 0 8px 32px rgba(91,75,138,0.12);
    transform: translateY(-3px);
  }

  .card-img-wrap {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: rgba(91,75,138,0.06);
    position: relative;
  }
  .card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
  }
  .card:hover .card-img-wrap img { transform: scale(1.04); }

  .card-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--borda);
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-family: 'Jost', sans-serif;
  }

  .card-body {
    padding: 20px 22px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .card-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    font-weight: 500;
    color: var(--roxo);
    line-height: 1.2;
  }

  .card-desc {
    font-size: 15px;
    line-height: 1.7;
    color: var(--texto);
    font-weight: 400;
    flex: 1;
  }

  .card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
    gap: 8px;
    flex-wrap: nowrap;
  }

  .card-price {
    font-family: 'Cormorant Garamond', serif;
    font-size: 26px;
    font-weight: 500;
    color: var(--roxo);
    white-space: nowrap;
  }
  .card-price.livre {
    font-size: 14px;
    font-style: italic;
    color: var(--muted);
    font-family: 'Jost', sans-serif;
    font-weight: 300;
  }

  .btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: 40px;
    font-family: 'Jost', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: background .2s, color .2s;
  }
  .btn-primary {
    background: var(--roxo);
    color: #fff;
  }
  .btn-primary:hover { background: var(--roxo-lt); }

  /* card livre destaque */
  .card.livre {
    border-color: var(--verde);
    background: rgba(138,154,74,0.06);
  }
  .card.livre .card-name { color: var(--verde); }

  /* ── PAGAMENTO INFO ───────────────────────────────────────────── */
  .payment-info {
    max-width: 600px;
    margin: 0 auto 80px;
    padding: 0 24px;
    text-align: center;
  }
  .payment-info p {
    font-size: 13px;
    color: var(--muted);
    font-weight: 300;
    line-height: 1.8;
  }
  .payment-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
  }
  .pay-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 40px;
    border: 0.5px solid var(--borda);
    font-size: 12px;
    color: var(--muted);
    font-weight: 400;
    letter-spacing: .04em;
  }

  /* ── FOOTER ───────────────────────────────────────────────────── */
  footer {
    border-top: 0.5px solid var(--borda);
    padding: 40px 24px;
    text-align: center;
  }
  footer .f-names {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    font-weight: 300;
    font-style: italic;
    color: var(--roxo);
    margin-bottom: 6px;
  }
  footer .f-date {
    font-size: 12px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
  }

  /* ── RESPONSIVE ───────────────────────────────────────────────── */
  @media (max-width: 860px) {
    .grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .hero-text { bottom: 28px; }
  }
  @media (max-width: 480px) {
    .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .card-body { padding: 14px 12px 16px; gap: 8px; }
    .card-name { font-size: 17px; }
    .card-desc { font-size: 13px; }
    .card-price { font-size: 20px; }
    .card-footer { flex-direction: column; align-items: center; gap: 8px; }
    .card-price { font-size: 26px; text-align: center; }
    .btn { padding: 8px 14px; font-size: 11px; width: 100%; justify-content: center; }
    .intro { padding: 40px 20px 48px; }
    .hero-title { font-size: 42px; }
    .hero { aspect-ratio: 4/3; }
    .hero-text { bottom: 32px; }
    .hero-eyebrow { font-size: 13px; letter-spacing: .16em; }
  }

  /* ── MODAL DE PAGAMENTO ────────────────────── */
  .pay-overlay {
    position: fixed; inset: 0; z-index: 1000; display: none;
    align-items: center; justify-content: center; padding: 24px;
    background: rgba(58,48,96,0.55);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  }
  .pay-overlay.open { display: flex; }
  .pay-modal {
    position: relative; width: 100%; max-width: 420px; max-height: 90vh;
    overflow-y: auto; background: var(--creme);
    border: 0.5px solid var(--borda); border-radius: 22px;
    padding: 34px 30px 30px; box-shadow: 0 20px 70px rgba(58,48,96,0.45);
    text-align: center; animation: payIn .28s ease;
  }
  @keyframes payIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
  .pay-close {
    position: absolute; top: 14px; right: 16px; width: 32px; height: 32px;
    border: none; background: none; color: var(--roxo); font-size: 26px;
    line-height: 1; cursor: pointer; opacity: .6; transition: opacity .2s;
  }
  .pay-close:hover { opacity: 1; }
  .pay-title {
    font-family: 'Cormorant Garamond', serif; font-size: 27px; font-weight: 500;
    color: var(--roxo); line-height: 1.15; padding: 0 18px; margin-bottom: 2px;
  }
  .pay-amount {
    font-family: 'Jost', sans-serif; font-size: 13px; letter-spacing: .1em;
    text-transform: uppercase; color: var(--muted); margin-bottom: 20px;
  }
  .pay-qr {
    display: inline-flex; padding: 14px; background: #fff; border-radius: 16px;
    border: 0.5px solid var(--borda); margin-bottom: 22px;
  }
  .pay-qr img { display: block; width: 210px; height: 210px; image-rendering: pixelated; }
  .pay-section-label {
    font-family: 'Jost', sans-serif; font-size: 11px; letter-spacing: .14em;
    text-transform: uppercase; color: var(--roxo-lt); margin-bottom: 8px;
  }
  .pay-pix {
    display: block; width: 100%; text-align: left;
    background: rgba(255,255,255,0.6); border: 0.5px solid var(--borda);
    border-radius: 12px; padding: 12px 14px; cursor: pointer;
    font-family: 'Jost', sans-serif; transition: border-color .2s, background .2s;
    margin-bottom: 18px;
  }
  .pay-pix:hover { border-color: var(--roxo-lt); background: rgba(255,255,255,0.85); }
  .pay-pix-code {
    display: block; font-size: 12px; line-height: 1.5; color: var(--texto);
    word-break: break-all; max-height: 66px; overflow: hidden;
  }
  .pay-pix-hint {
    display: block; margin-top: 8px; font-size: 11px; letter-spacing: .08em;
    text-transform: uppercase; font-weight: 500; color: var(--roxo);
  }
  .pay-pix.copied .pay-pix-hint { color: var(--verde); }
  .pay-card-btn, .pay-mp-btn {
    display: none; align-items: center; justify-content: center; gap: 8px;
    width: 100%; padding: 13px 18px; border-radius: 40px;
    font-family: 'Jost', sans-serif; font-size: 12px; font-weight: 500;
    letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
    cursor: pointer; transition: background .2s, color .2s;
  }
  .pay-card-btn { background: var(--roxo); color: #fff; margin-bottom: 10px; }
  .pay-card-btn:hover { background: var(--roxo-lt); }
  .pay-card-btn.show, .pay-mp-btn.show { display: inline-flex; }
  .pay-mp-btn { background: transparent; color: var(--roxo); border: 0.5px solid var(--roxo); }
  .pay-mp-btn:hover { background: rgba(91,75,138,0.08); }
  @media (max-width: 480px) {
    .pay-modal { padding: 30px 20px 24px; border-radius: 18px; }
    .pay-qr img { width: 180px; height: 180px; }
    .pay-title { font-size: 23px; }
  }
  /* == POPUP FLUTUANTE CONTRIBUICAO LIVRE == */
  .livre-pop {
    position: fixed; bottom: 24px; right: 24px; z-index: 995;
    width: 320px; max-width: calc(100vw - 32px);
    background: var(--creme); border: 0.5px solid var(--borda);
    border-radius: 20px; box-shadow: 0 16px 50px rgba(58,48,96,0.35);
    padding: 22px 20px 18px; text-align: center;
    transform: translateY(16px); opacity: 0; pointer-events: none;
    transition: transform .35s ease, opacity .35s ease;
  }
  .livre-pop.show { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .livre-pop-close {
    position: absolute; top: 8px; right: 10px; width: 28px; height: 28px;
    border: none; background: none; color: var(--roxo); font-size: 22px;
    line-height: 1; cursor: pointer; opacity: .55; transition: opacity .2s;
  }
  .livre-pop-close:hover { opacity: 1; }
  .livre-pop-title {
    font-family: 'Cormorant Garamond', serif; font-size: 21px; font-weight: 500;
    color: var(--roxo); line-height: 1.15; margin-bottom: 4px;
  }
  .livre-pop-text {
    font-family: 'Jost', sans-serif; font-size: 12px; color: var(--muted);
    line-height: 1.5; margin-bottom: 14px;
  }
  .livre-pop-qr {
    display: inline-flex; padding: 10px; background: #fff; border-radius: 12px;
    border: 0.5px solid var(--borda); margin-bottom: 14px;
  }
  .livre-pop-qr img { display: block; width: 150px; height: 150px; image-rendering: pixelated; }
  .livre-pop-copyrow { display: flex; align-items: stretch; gap: 8px; margin-bottom: 10px; }
  .livre-pop-code {
    flex: 1; min-width: 0; text-align: left;
    background: rgba(255,255,255,0.65); border: 0.5px solid var(--borda);
    border-radius: 10px; padding: 9px 11px; line-height: 1.4;
    font-family: 'Jost', sans-serif; font-size: 11px; color: var(--texto);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .livre-pop-copy {
    flex: none; border: none; cursor: pointer;
    background: var(--roxo); color: #fff; border-radius: 10px;
    padding: 0 16px; font-family: 'Jost', sans-serif; font-size: 11px;
    font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
    transition: background .2s;
  }
  .livre-pop-copy:hover { background: var(--roxo-lt); }
  .livre-pop-copy.copied { background: var(--verde); }
  .livre-pop-card {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; padding: 11px 16px; border-radius: 40px;
    background: transparent; color: var(--roxo); border: 0.5px solid var(--roxo);
    font-family: 'Jost', sans-serif; font-size: 11px; font-weight: 500;
    letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
    cursor: pointer; transition: background .2s;
  }
  .livre-pop-card:hover { background: rgba(91,75,138,0.08); }
  .livre-pop-toggle {
    display: none; position: absolute; top: 50%; right: 14px;
    transform: translateY(-50%); width: 30px; height: 30px;
    align-items: center; justify-content: center; border: none;
    background: rgba(91,75,138,0.12); border-radius: 50%;
    color: var(--roxo); cursor: pointer;
  }
  @media (max-width: 600px) {
    .livre-pop {
      left: 0; right: 0; bottom: 0; width: 100%; max-width: none;
      border-radius: 18px 18px 0 0; padding: 14px 16px 18px;
      transform: translateY(100%);
      box-shadow: 0 -8px 30px rgba(58,48,96,0.28);
    }
    .livre-pop.show { transform: translateY(0); }
    .livre-pop-title { font-size: 18px; }
    .livre-pop-text { font-size: 11px; margin-bottom: 10px; }
    .livre-pop-qr { padding: 8px; margin-bottom: 10px; }
    .livre-pop-qr img { width: 112px; height: 112px; }
    .livre-pop-copyrow { margin-bottom: 8px; }
    .livre-pop-code { font-size: 10px; padding: 8px 10px; }
    .livre-pop-copy { padding: 0 13px; }
    .livre-pop-card { padding: 10px 14px; }
    .livre-pop.mini { padding: 12px 50px 12px 18px; text-align: left; cursor: pointer; }
    .livre-pop.mini .livre-pop-close,
    .livre-pop.mini .livre-pop-text,
    .livre-pop.mini .livre-pop-qr,
    .livre-pop.mini .livre-pop-copyrow,
    .livre-pop.mini .livre-pop-card { display: none; }
    .livre-pop.mini .livre-pop-title { margin: 0; font-size: 15px; }
    .livre-pop.mini .livre-pop-toggle { display: flex; }
  }
