/* Website Mockup Tool — styled to sit inside retentiongifts.com
   (black/white, red accent, Vollkorn headings, Helvetica body). */
:root {
  --ink: #111;
  --muted: #5a5858;
  --line: #e2e2e2;
  --soft: #f5f5f5;
  --red: #c50000;
  --red-dark: #9e0000;
  --radius: 10px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
body.embedded { background: transparent; }
.hidden { display: none !important; }

.mmw { max-width: 880px; margin: 0 auto; padding: 24px 16px 20px; text-align: center; }
.mmw.drag { outline: 2px dashed var(--red); outline-offset: -6px; border-radius: 12px; }

.mmw-title { font-family: Vollkorn, Georgia, serif; font-weight: 700; font-size: clamp(26px, 4.5vw, 38px); line-height: 1.15; margin: 0 0 8px; }
.mmw-sub { margin: 0 auto 20px; max-width: 560px; color: var(--muted); font-size: 16px; line-height: 1.45; }

/* step 1 */
.mmw-find { display: flex; gap: 8px; max-width: 520px; margin: 0 auto; }
#siteInput {
  flex: 1; min-width: 0; font-size: 17px; padding: 14px 16px;
  border: 1.5px solid #cfcfcf; border-radius: var(--radius); outline: none; background: #fff;
}
#siteInput:focus { border-color: var(--ink); }
.mmw-alt { margin-top: 10px; font-size: 15px; color: var(--muted); }
.linkish { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-weight: 600; }
.linkish:hover { color: var(--red); }
.mmw-status { min-height: 1.3em; margin: 10px 0 0; font-size: 15px; color: var(--muted); }
.mmw-status.err { color: var(--red); }

/* buttons */
.btn {
  font: inherit; font-weight: 700; font-size: 16px; border: 0; border-radius: var(--radius);
  padding: 14px 22px; cursor: pointer; transition: background .15s, transform .05s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: default; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #333; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-big { font-size: 18px; padding: 16px 28px; }

/* logo choices */
.mmw-pick { margin: 14px auto 0; }
.mmw-pick-label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.mmw-cands { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.cand {
  width: 72px; height: 52px; padding: 6px; background: var(--soft); border: 2px solid transparent;
  border-radius: 8px; cursor: pointer; display: grid; place-items: center;
  background-image: linear-gradient(45deg, #e9e9e9 25%, transparent 25%, transparent 75%, #e9e9e9 75%),
                    linear-gradient(45deg, #e9e9e9 25%, transparent 25%, transparent 75%, #e9e9e9 75%);
  background-size: 12px 12px; background-position: 0 0, 6px 6px;
}
.cand img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cand.sel { border-color: var(--ink); }

/* gallery */
.mmw-gallery { position: relative; margin: 22px auto 0; }
.track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  -webkit-overflow-scrolling: touch; border-radius: 14px;
}
.track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: center; margin: 0; }
.frame {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  aspect-ratio: 2 / 1; padding: 8px;
}
.frame canvas { width: 100%; height: 100%; object-fit: contain; display: block; }
.slide figcaption { margin-top: 12px; display: flex; flex-direction: column; gap: 2px; }
.slide figcaption strong { font-family: Vollkorn, Georgia, serif; font-size: 21px; font-weight: 700; }
.slide figcaption span { font-size: 14px; color: var(--muted); }

.nav {
  position: absolute; top: calc(50% - 30px); transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line);
  background: rgba(255,255,255,.95); box-shadow: 0 2px 8px rgba(0,0,0,.12);
  font-size: 28px; line-height: 1; cursor: pointer; color: var(--ink); padding: 0 0 4px;
}
.nav:hover { background: #fff; border-color: #bbb; }
.nav.prev { left: 8px; }
.nav.next { right: 8px; }

.dots { display: flex; gap: 8px; justify-content: center; margin-top: 12px; }
.dot { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; background: #cfcfcf; cursor: pointer; }
.dot.on { background: var(--ink); }

.mmw-cta { margin-top: 20px; }
.mmw-fine { font-size: 12.5px; color: var(--muted); margin: 10px auto 0; max-width: 480px; line-height: 1.4; }

/* popup */
.modal {
  position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 50;
  display: flex; align-items: center; justify-content: center; padding: 16px; overflow-y: auto;
}
body.embedded .modal { align-items: flex-start; padding-top: 24px; }
.modal-box {
  position: relative; background: #fff; border-radius: 14px; width: 100%; max-width: 480px;
  padding: 28px 22px 20px; text-align: center; box-shadow: 0 10px 40px rgba(0,0,0,.25);
}
.modal-x { position: absolute; top: 8px; right: 10px; border: 0; background: none; font-size: 28px; cursor: pointer; color: var(--muted); line-height: 1; padding: 4px 8px; }
.modal-title { font-family: Vollkorn, Georgia, serif; font-size: 26px; margin: 0 0 6px; }
.modal-sub { color: var(--muted); margin: 0 0 16px; font-size: 15px; line-height: 1.4; }
#leadForm { display: flex; flex-direction: column; gap: 10px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
#leadForm input, #leadForm textarea {
  font: inherit; font-size: 16px; padding: 12px 14px; border: 1.5px solid #cfcfcf;
  border-radius: 8px; outline: none; width: 100%; background: #fff;
}
#leadForm input:focus, #leadForm textarea:focus { border-color: var(--ink); }
#leadForm textarea { resize: vertical; }
#leadForm .btn { margin-top: 4px; width: 100%; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.lead-err { color: var(--red); min-height: 1.2em; margin: 0; font-size: 14px; }
.done { padding: 10px 0 6px; }
.done-check {
  width: 56px; height: 56px; border-radius: 50%; background: var(--ink); color: #fff;
  font-size: 30px; display: grid; place-items: center; margin: 0 auto 12px;
}
.done .btn { margin-top: 8px; display: inline-block; text-decoration: none; }

@media (max-width: 560px) {
  .mmw { padding: 18px 16px 16px; }
  .mmw-find { flex-direction: column; }
  .mmw-find .btn { width: 100%; }
  .nav { width: 36px; height: 36px; font-size: 24px; }
  .nav.prev { left: 4px; } .nav.next { right: 4px; }
  .grid2 { grid-template-columns: 1fr; }
  .btn-big { width: 100%; }
}

/* Netlify's "Powered by Netlify" badge/toolbar (injected by the host) —
   the site setting is off, this is a backstop so it never shows in the embed */
#nl-badge-frame, #nl-hud-frame { display: none !important; }
