/* Homepage-only overlay: closer visual match to the supplied campaign page.
   Scoped to .site-body so the dashboard keeps its own layout. */

.site-body {
  --source-green: #006b3c;
  --source-green-dark: #00472a;
  --source-ink: #17231d;
  --source-muted: #6b7a72;
  --source-line: #d7e7dd;
  --source-soft: #eaf8f1;
  background: #f2f6f3;
  color: var(--source-ink);
}

.site-body .skip-link { background: var(--source-green); }

/* Column ------------------------------------------------------------------ */

.site-body .source-main { padding: 24px 12px 60px; }
.site-body .source-column { width: min(760px, 100%); margin: 0 auto; }

/* Poster ------------------------------------------------------------------ */

/* Full-bleed hero: the artwork fills a responsive 1080 × 1080 square. */
.site-body .source-poster {
  width: calc(100% + 24px);
  margin: 0 -12px 14px;
  background: var(--source-green);
  border: 2px solid var(--source-green-dark);
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
}
.site-body .source-poster-art {
  position: relative;
  aspect-ratio: 1080 / 1080;
  height: auto;
  min-height: 0;
  display: grid;
  place-content: center;
  text-align: center;
  background:
    radial-gradient(circle at 50% 42%, rgba(255,255,255,0.16) 0 90px, transparent 91px),
    linear-gradient(135deg, #006b3c 0%, #00502d 100%);
}
/* The square is identical with or without artwork, so nothing letterboxes. */
.site-body .source-poster.has-poster .source-poster-art {
  aspect-ratio: 1080 / 1080;
  height: auto;
  min-height: 0;
}
.site-body .source-poster.has-poster .source-flag,
.site-body .source-poster.has-poster .source-poster-title,
.site-body .source-poster.has-poster .source-poster-sub { display: none; }
.site-body .source-flag { font-size: 2rem; }
.site-body .source-poster-image[hidden] { display: none; }
.site-body .source-poster-image:not([hidden]) {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  margin: 0;
  background: var(--source-green-dark);
}
.site-body .source-poster-image[hidden],
.site-body .source-poster-title[hidden],
.site-body .source-poster-sub[hidden],
.site-body .source-flag[hidden] { display: none; }
.site-body .source-poster-title {
  font-family: var(--mono);
  font-size: clamp(3rem, 10vw, 5.2rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.06em;
  color: #fff;
}
.site-body .source-poster-sub {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.34em;
  color: var(--lime);
}
.site-body .source-counter {
  margin: 0;
  padding: 16px 18px;
  background: #fff;
  border-top: 2px solid var(--source-green-dark);
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
}
.site-body .source-counter strong {
  color: var(--source-green);
  font-size: 1.45rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* Card -------------------------------------------------------------------- */

.site-body .source-card {
  background: #fff;
  border: 2px solid var(--source-ink);
  border-radius: 14px;
  box-shadow: var(--offset) var(--offset) 0 var(--source-ink);
  padding: 26px;
  margin-bottom: 14px;
}
.site-body .source-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 7px 12px;
  background: var(--source-soft);
  color: var(--source-green);
  border: 1px solid var(--source-green);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.3;
}
.site-body .source-live {
  width: 7px; height: 7px; flex: none;
  border-radius: 50%;
  background: var(--accent);
}
.site-body .source-powered {
  font-size: 0.72rem;
  color: var(--source-muted);
  text-align: center;
}
.site-body .source-powered strong { color: var(--source-green); }
/* "Powered by" drops to the bottom of the card with a small bounce. */
.site-body .source-powered-bottom {
  margin: 22px 0 0;
  padding-top: 16px;
  border-top: 1px dashed var(--source-line);
  animation: powered-drop 1.1s cubic-bezier(.22,.8,.28,1) both;
}
@keyframes powered-drop {
  0%   { opacity: 0; transform: translateY(-52px); }
  55%  { opacity: 1; transform: translateY(8px); }
  75%  { transform: translateY(-3px); }
  100% { transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .site-body .source-powered-bottom { animation: none; }
}

/* Panels ------------------------------------------------------------------ */

.site-body .wizard { display: block; background: transparent; border: 0; box-shadow: none; }
.site-body .wizard-body { padding: 0; }
.site-body .wizard-panel[hidden] { display: none !important; }
.site-body .wizard-panel.is-active { display: block; }
.site-body #source-title {
  margin: 0 0 10px;
  font-family: var(--sans);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--source-ink);
  text-align: center;
}
.site-body .source-card h2 { margin: 0 0 10px; font-family: var(--sans); font-size: 1.5rem; font-weight: 700; }
.site-body .source-eyebrow { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; color: var(--source-green); text-transform: uppercase; }
.site-body .source-copy { margin: 0 0 20px; color: var(--source-ink); font-size: 0.92rem; line-height: 1.65; }
/* The campaign statement sits in the middle of the card, not off to one side. */
.site-body .source-intro {
  max-width: 48ch;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Form -------------------------------------------------------------------- */

.site-body .source-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.site-body .source-field { display: flex; flex-direction: column; gap: 6px; font-size: 0.8rem; font-weight: 600; }
.site-body .source-field-wide { grid-column: 1 / -1; }
.site-body .source-field em { font-style: normal; font-weight: 400; color: var(--source-muted); }
.site-body .source-field input {
  width: 100%;
  padding: 13px 14px;
  background: #fff;
  border: 2px solid #ccc;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 400;
}
.site-body .source-field input:focus { border-color: var(--source-green); }
.site-body .checkbox-row { margin: 16px 0 4px; font-size: 0.8rem; }
.site-body .checkbox-row input { accent-color: var(--source-green); }
.site-body .btn {
  border-radius: 8px;
  font-size: 0.95rem;
}
.site-body .btn-primary {
  width: 100%;
  margin-top: 16px;
  padding: 14px 20px;
  background: var(--source-green);
  border: 2px solid var(--source-green-dark);
  border-radius: 8px;
  color: #fff;
  box-shadow: var(--offset) var(--offset) 0 var(--source-green-dark);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.site-body .btn-primary:hover { background: var(--source-green-dark); }
.site-body .btn-ghost { border-color: var(--source-green); color: var(--source-green); }
.site-body .btn-whatsapp { background: #25d366; border-color: #128c4a; color: #082b17; }
.site-body .source-share-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.site-body .source-share-actions .btn { flex: 1 1 220px; }
.site-body .source-share-again { width: 100%; margin: 16px 0 4px; font-size: 0.78rem; line-height: 1.4; text-align: center; }
/* Rotating loader + phone reveal ------------------------------------------ */

.site-body .source-rotate {
  display: grid;
  place-items: center;
  gap: 10px;
  padding: 26px 10px;
  text-align: center;
}
.site-body .source-form-row[hidden],
.site-body .source-rotate[hidden],
.site-body .source-phone-step[hidden] { display: none !important; }
.site-body .source-spinner {
  width: 54px;
  height: 54px;
  border: 5px solid var(--source-soft);
  border-top-color: var(--source-green);
  border-right-color: var(--accent);
  border-radius: 50%;
  animation: source-spin 0.7s linear 3;
}
@keyframes source-spin { to { transform: rotate(1080deg); } }
@media (prefers-reduced-motion: reduce) { .site-body .source-spinner { animation-duration: 2.1s; animation-iteration-count: 1; } }
.site-body .source-rotate-copy { margin: 0; font-family: var(--mono); font-size: 0.78rem; font-weight: 600; color: var(--source-green); }
.site-body .source-rotate-hint { margin: 0; font-size: 0.7rem; color: var(--source-muted); }
.site-body .source-phone-step {
  margin-top: 18px;
  padding: 18px;
  background: var(--source-soft);
  border: 2px solid var(--source-green);
  border-radius: 10px;
  animation: source-reveal 260ms ease-out;
}
@keyframes source-reveal { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.site-body .source-phone-step .link-button { display: block; margin-top: 10px; font-size: 0.75rem; }
.site-body [data-continue][hidden] { display: none !important; }

/* Comments ---------------------------------------------------------------- */

.site-body .source-subhead {
  margin: 20px 0 6px;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--source-ink);
}
.site-body .source-comment-form { display: grid; gap: 10px; margin: 12px 0 8px; }
.site-body .source-comment-form input:not(.honeypot),
.site-body .source-comment-form textarea {
  width: 100%;
  padding: 11px 12px;
  background: #fff;
  border: 2px solid #ccc;
  border-radius: 8px;
  font-size: 0.85rem;
}
.site-body .source-comment-form textarea { resize: vertical; }
.site-body .source-comment-form .btn { width: auto; margin-top: 0; }
.site-body .source-comment-list li { align-items: flex-start; }
.site-body .source-comment-list .message { margin: 3px 0 0; font-size: 0.82rem; line-height: 1.5; }

.comment-upload { display: grid; gap: 6px; }
.comment-upload-label { font-size: 0.78rem; font-weight: 600; color: var(--source-ink); }
.comment-upload-label em { font-style: normal; font-weight: 400; color: var(--source-muted); }
.site-body .source-comment-form .comment-upload input[type="file"] {
  padding: 9px;
  font-size: 0.78rem;
  background: #fff;
  border: 2px dashed var(--source-line);
}
.comment-preview {
  display: block;
  width: 88px; height: 88px;
  object-fit: cover;
  padding: 3px;
  background: var(--source-soft);
  border: 2px solid var(--source-green);
  border-radius: 8px;
}
.comment-preview[hidden] { display: none; }
.site-body .source-comment-form .comment-upload .link-button { justify-self: start; font-size: 0.72rem; }
.site-body .source-comment-form .field-hint { font-size: 0.7rem; color: var(--source-muted); }
.comment-thumb {
  width: 62px; height: 62px; flex: none;
  margin-left: auto;
  object-fit: cover;
  background: var(--source-soft);
  border: 2px solid var(--source-green);
  border-radius: 8px;
  box-shadow: var(--offset) var(--offset) 0 var(--source-soft);
}

.site-body .source-done {
  display: grid; place-items: center;
  width: 52px; height: 52px; margin-bottom: 16px;
  background: var(--lime);
  border: 2px solid var(--source-ink);
  border-radius: 50%;
  box-shadow: var(--offset) var(--offset) 0 var(--source-ink);
  font-size: 1.5rem;
}
.site-body .reference-box { background: var(--lime); border-color: var(--source-ink); box-shadow: var(--offset) var(--offset) 0 var(--source-ink); }

.site-body .share-message-rich {
  margin: 16px 0;
  padding: 14px 16px;
  background: #fff;
  border: 2px solid var(--source-green-dark);
  border-left-width: 6px;
  border-radius: 10px;
  font-size: 0.92rem;
  line-height: 1.55;
  box-shadow: calc(var(--offset) * 2) calc(var(--offset) * 2) 0 var(--source-green-dark);
}
.site-body .share-message-rich[hidden] { display: none !important; }
.site-body .share-message-rich p { margin: 0 0 10px; }
.site-body .share-message-rich p:last-child { margin-bottom: 0; }
.site-body .share-message-rich ol,
.site-body .share-message-rich ul { margin: 10px 0 0; padding-left: 22px; }
.site-body .share-message-rich li { margin: 6px 0; }
.site-body .share-progress { margin: 20px 0; }
.site-body .share-progress-bar { border-color: var(--source-green); }
.site-body .share-progress-bar span { background: var(--source-green); }
.site-body .link-button { color: var(--source-green); }

/* Social block ------------------------------------------------------------ */

.site-body .source-social {
  background: #fff;
  border: 2px solid var(--source-ink);
  border-radius: 14px;
  box-shadow: var(--offset) var(--offset) 0 var(--source-ink);
  padding: 20px 22px;
}
.site-body .source-social-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.site-body .source-social-head h2 { margin: 0; font-family: var(--sans); font-size: 1.1rem; font-weight: 700; }
.site-body .source-social-head .mono { font-size: 0.66rem; color: var(--source-muted); }
.site-body .source-engagement {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 0;
  border-bottom: 1px solid var(--source-line);
  font-size: 0.72rem;
  color: var(--source-muted);
}
.site-body .source-engagement strong { color: var(--source-ink); }
.site-body .source-action-row {
  display: flex;
  gap: 20px;
  padding: 10px 0 12px;
  border-bottom: 1px solid var(--source-line);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--source-muted);
}
.site-body .source-comments { margin: 0; padding: 0; list-style: none; }
.site-body .source-comments li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--source-line);
}
.site-body .source-comments .avatar {
  display: grid; place-items: center;
  width: 34px; height: 34px; flex: none;
  background: var(--source-green);
  color: #fff;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
}
.site-body .source-comments .who { font-size: 0.82rem; font-weight: 700; }
.site-body .source-comments .meta { display: none; }
.site-body .source-comments li.is-fresh {
  animation: comment-rise 0.45s ease-out;
}
@keyframes comment-rise {
  from { opacity: 0; transform: translateY(-10px); background: var(--source-soft); }
  to   { opacity: 1; transform: translateY(0); background: transparent; }
}
.site-body .community-empty { color: var(--source-muted); font-size: 0.82rem; }
.site-body .sample-tag { background: var(--source-soft); border-color: var(--source-green); color: var(--source-green); }
.site-body .source-disclaimer { margin: 18px 0 4px; font-size: 0.72rem; line-height: 1.5; color: var(--source-muted); }
.site-body .source-footer-meta { margin: 0; font-size: 0.62rem; color: var(--source-muted); }

/* Google-style ad slots --------------------------------------------------- */
.site-body .ad-slot { margin: 0 0 14px; }
.site-body .ad-slot[data-ad-slot="footer"] { margin: 18px 0 8px; }
.site-body .ad-slot-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #dfe1e5;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 3px rgba(60,64,67,.08);
}
.site-body .ad-slot-link:hover { box-shadow: 0 2px 8px rgba(60,64,67,.16); border-color: #c7ccd1; }
.site-body .ad-slot-badge {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  padding: 2px 6px;
  border-radius: 4px;
  background: #fff;
  border: 1px solid #188038;
  color: #188038;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
}
.site-body .ad-slot-logo {
  width: 44px;
  height: 44px;
  flex: none;
  object-fit: contain;
  border-radius: 8px;
  background: #f8f9fa;
  border: 1px solid #eceff1;
}
.site-body .ad-slot-copy { min-width: 0; display: grid; gap: 2px; }
.site-body .ad-slot-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1a0dab;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
}
.site-body .ad-slot-link:hover .ad-slot-text { text-decoration: underline; }
.site-body .ad-slot-url { font-size: 0.74rem; color: #188038; line-height: 1.2; word-break: break-word; }

body.ad-fullpage-open { overflow: hidden; }
.site-body .ad-fullpage {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(20, 20, 20, 0.72);
}
.site-body .ad-fullpage[hidden] { display: none !important; }
.site-body .ad-fullpage-inner {
  position: relative;
  width: min(720px, 100%);
  min-height: min(420px, 70vh);
  display: grid;
  place-items: center;
  gap: 14px;
  padding: 32px 24px;
  background: #fff;
  border: 2px solid #dfe1e5;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,.28);
  text-align: center;
}
.site-body .ad-fullpage-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 1px solid #dfe1e5;
  border-radius: 50%;
  background: #fff;
  color: #333;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.site-body .ad-fullpage-close:hover { background: #f5f5f5; }
.site-body .ad-fullpage-link {
  display: grid;
  justify-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}
.site-body .ad-fullpage-logo {
  width: min(180px, 50vw);
  max-height: 140px;
  object-fit: contain;
}
.site-body .ad-fullpage-text { font-size: clamp(1.4rem, 4vw, 2.4rem); font-weight: 800; color: #1a0dab; line-height: 1.2; }
.site-body .ad-fullpage-url { font-size: 0.95rem; color: #188038; }
.site-body .ad-fullpage-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 999px;
  background: #1a73e8;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
}
.site-body .ad-fullpage-link:hover .ad-fullpage-text { text-decoration: underline; }

@media (max-width: 600px) {
  .site-body .source-form-row { grid-template-columns: 1fr; }
  .site-body .source-card { padding: 20px 16px; }
  .site-body .source-main { padding: 12px 8px 48px; }
  .site-body .source-poster { width: calc(100% + 16px); margin-left: -8px; margin-right: -8px; }
  .site-body .source-poster-art,
  .site-body .source-poster.has-poster .source-poster-art { aspect-ratio: 1080 / 1080; height: auto; }
}
