/* Stop Being a Turd - preview styles */
:root {
  --ink: #2a1810;
  --ink-soft: #5a4032;
  --brown: #5c3317;
  --brown-mid: #7a4a28;
  --caramel: #c0894a;
  --gold: #e6b84a;
  --gold-deep: #c9962a;
  --gold-light: #f3d48a;
  --cream: #fbf4e6;
  --paper: #fff9f0;
  --tan: #e8d5b5;
  --line: #e2d0b4;
  --poop: #6b3a16;
  --danger: #9a3b24;
  --ok: #3d6b4f;
  --shadow: 0 18px 40px rgba(42, 24, 16, 0.12);
  --radius: 20px;
  --header-h: 72px;
  --font-display: "Fredoka", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  background-image:
    radial-gradient(rgba(192, 137, 74, 0.12) 0.8px, transparent 0.8px);
  background-size: 18px 18px;
  line-height: 1.55;
  min-height: 100%;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--brown); }
button, input, select, textarea { font: inherit; color: inherit; }

.preview-banner {
  background: var(--ink);
  color: var(--gold-light);
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.55rem 1rem;
}

.wrap {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(14px);
  background: rgba(251, 244, 230, 0.88);
  border-bottom: 1px solid rgba(92, 51, 23, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}
.logo-mark { width: 48px; height: 48px; flex: none; }
.logo-word {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.1rem;
  line-height: 1;
}
.logo-stop {
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.logo-turd {
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.site-footer .logo { margin-bottom: 0.85rem; }
.site-footer .logo-stop { color: #c8b197; }
.site-footer .logo-turd { color: var(--gold-light); }
.nav {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}
.nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 0.95rem;
}
.nav a:hover { color: var(--brown); }
.nav-cta { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  border-radius: 999px;
  padding: 0.75rem 1.25rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.03); }
.btn:active { transform: translateY(0); }
.btn-gold {
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  color: var(--ink);
  box-shadow: 0 8px 18px rgba(201, 150, 42, 0.28);
}
.btn-brown {
  background: var(--brown);
  color: #fff8ea;
}
.btn-ghost {
  background: transparent;
  border: 2px solid var(--tan);
  color: var(--ink);
}
.btn-lg { padding: 0.95rem 1.4rem; font-size: 1.05rem; width: 100%; }
.btn[disabled], .btn:disabled {
  cursor: not-allowed;
  filter: grayscale(0.15);
  opacity: 0.72;
  transform: none;
  box-shadow: none;
}

/* Hero */
.hero {
  padding: 3.2rem 0 3.5rem;
}
.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  background: #fff;
  border: 1px solid var(--tan);
  color: var(--brown);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
h1, h2, h3, .card-title {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 0.7rem;
}
h1 { font-size: clamp(2.6rem, 8vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: 1.2rem; }
.lede {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 36rem;
  margin: 0 0 1.5rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.1rem;
  margin-top: 1.4rem;
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 0.92rem;
}
.trust-row span { display: flex; align-items: center; gap: 0.4rem; }
.dot-ok {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(61, 107, 79, 0.15);
}

.hero-card {
  background: var(--paper);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 1.2rem 1.2rem 1.4rem;
  transform: rotate(2.2deg);
  border: 1px solid #f0e2c8;
  position: relative;
}
.hero-card::before {
  content: "";
  position: absolute;
  inset: 10px auto auto 18px;
  width: 70%;
  height: 16px;
  background: rgba(230, 184, 74, 0.25);
  filter: blur(8px);
  transform: rotate(-8deg);
}
.stamp {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 64px;
  height: 64px;
  border: 3px solid var(--gold-deep);
  border-radius: 8px;
  color: var(--gold-deep);
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: grid;
  place-items: center;
  text-align: center;
  transform: rotate(8deg);
  background: rgba(255, 249, 240, 0.9);
}
.hero-card .poop-art {
  width: 86%;
  aspect-ratio: 1;
  margin: 1.15rem auto 0.55rem;
  border-radius: 14px;
  overflow: hidden;
  background: #eee8dc;
}
.hero-card .poop-art img, .hero-card .poop-art picture {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-card .card-kicker {
  text-align: center;
  font-weight: 800;
  color: var(--brown);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
}
.hero-card h3 { text-align: center; font-size: 1.55rem; }
.hero-card p {
  text-align: center;
  margin: 0 1rem;
  color: var(--ink-soft);
  font-style: italic;
}

/* Sections */
section { padding: 3.2rem 0; }
.section-intro { max-width: 38rem; margin: 0 auto 2rem; text-align: center; }
.section-intro p { color: var(--ink-soft); margin: 0; }
.alt { background: rgba(255, 249, 240, 0.72); }

.steps {
  display: grid;
  gap: 1rem;
}
.step {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.25rem 1.4rem;
  box-shadow: 0 8px 20px rgba(42, 24, 16, 0.04);
}
.step-num {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  box-shadow: 0 6px 14px rgba(201, 150, 42, 0.25);
}
.step p { margin: 0; color: var(--ink-soft); }

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}
.poop-option {
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: 18px;
  padding: 0.9rem 0.7rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  position: relative;
}
.poop-option:hover { transform: translateY(-2px); border-color: var(--caramel); }
.poop-option[aria-pressed="true"], .poop-option.is-selected {
  border-color: var(--gold-deep);
  box-shadow: 0 0 0 4px rgba(230, 184, 74, 0.28), var(--shadow);
  background: #fff;
}
.poop-option .art {
  width: 100%;
  aspect-ratio: 1;
  margin: 0 0 0.55rem;
  border-radius: 12px;
  overflow: hidden;
  background: #eee8dc;
}
.poop-option .art img, .poop-option .art picture {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.poop-option .art img { display: block; height: 100%; }
.poop-option .animal {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--caramel);
}
.poop-option .name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0.15rem 0 0.2rem;
}
.poop-option .blurb {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

/* Builder */
.builder-grid {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.panel h3 { margin-bottom: 0.85rem; }
label, .label {
  display: block;
  font-weight: 800;
  font-size: 0.88rem;
  margin: 0.9rem 0 0.35rem;
}
.req { color: var(--danger); }
input[type="text"], input[type="email"], select, textarea {
  width: 100%;
  border: 2px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--gold-deep);
  box-shadow: 0 0 0 3px rgba(230, 184, 74, 0.28);
}
textarea { min-height: 110px; resize: vertical; }
.row-2, .row-3 { display: grid; gap: 0.7rem; }
.hint, .count, .note {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: 0.35rem 0 0;
}
.count { text-align: right; }
.warning {
  background: #fdecea;
  color: var(--danger);
  border: 1px solid #f3c4ba;
  border-radius: 12px;
  padding: 0.65rem 0.8rem;
  font-weight: 700;
  font-size: 0.9rem;
  margin-top: 0.6rem;
  display: none;
}
.warning.show { display: block; }

.choices { display: grid; gap: 0.6rem; }
.choice {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.7rem;
  align-items: center;
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 0.8rem 0.9rem;
  cursor: pointer;
  background: #fff;
}
.choice.is-selected {
  border-color: var(--gold-deep);
  box-shadow: 0 0 0 3px rgba(230, 184, 74, 0.22);
}
.choice b { display: block; font-size: 0.98rem; }
.choice small { color: var(--ink-soft); }
.price-tag {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--brown);
}
.check {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid var(--tan);
  display: grid; place-items: center;
}
.choice.is-selected .check {
  border-color: var(--gold-deep);
  background: var(--gold);
}
.choice.is-selected .check::after {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ink);
}

.toggle {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.9rem;
  font-weight: 700;
}
.toggle input { width: 18px; height: 18px; accent-color: var(--brown); }

.preview-col { position: relative; }
.live-card-wrap { position: sticky; top: calc(var(--header-h) + 18px); }
.live-card {
  background: #fffdf8;
  border-radius: 22px;
  border: 1px solid #ecdcc0;
  min-height: 420px;
  padding: 1.4rem 1.2rem 1.5rem;
  box-shadow: 8px 12px 0 rgba(92, 51, 23, 0.06), var(--shadow);
  position: relative;
}
.live-card .brand {
  text-align: center;
  font-weight: 800;
  letter-spacing: 0.14em;
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--caramel);
}
.live-card .foil {
  width: 54px; height: 4px;
  margin: 0.45rem auto 0.6rem;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--gold-light), var(--gold-deep));
}
.live-card .art {
  width: 78%;
  max-width: 280px;
  aspect-ratio: 1;
  margin: 0.45rem auto 0.55rem;
  border-radius: 14px;
  overflow: hidden;
  background: #eee8dc;
}
.live-card .art img, .live-card .art picture {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.live-card .animal-line {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--caramel);
  margin: 0;
}
.live-card h3 { text-align: center; font-size: 1.45rem; margin-bottom: 0.8rem; }
.live-message {
  font-style: italic;
  text-align: center;
  color: var(--ink-soft);
  min-height: 4.4em;
  margin: 0 0.4rem 1rem;
  white-space: pre-wrap;
}
.live-message.has-text { color: var(--ink); font-style: normal; }
.signed {
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-top: auto;
}
.envelope-note {
  text-align: center;
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin: 0.8rem 0 0;
}

.summary {
  margin-top: 1rem;
  border-top: 1px dashed var(--line);
  padding-top: 0.9rem;
}
.summary-row, .summary-total {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.25rem 0;
}
.summary-total {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-top: 0.5rem;
}
.checkout-note {
  text-align: center;
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin: 0.7rem 0 0;
}

/* Pricing */
.pricing {
  display: grid;
  gap: 1rem;
}
.price-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.4rem 1.25rem;
  text-align: center;
}
.price-card.featured {
  border-color: var(--gold-deep);
  box-shadow: 0 0 0 4px rgba(230, 184, 74, 0.2), var(--shadow);
  background: #fff;
}
.price-card .amount {
  font-family: var(--font-display);
  font-size: 2.4rem;
  margin: 0.2rem 0 0.5rem;
}
.price-card p { color: var(--ink-soft); margin: 0; }
.badge {
  display: inline-block;
  background: var(--gold);
  color: var(--ink);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  margin-bottom: 0.4rem;
}

/* FAQ */
.faq { display: grid; gap: 0.7rem; max-width: 760px; margin: 0 auto; }
.faq details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.95rem 1.1rem;
}
.faq summary {
  font-weight: 800;
  cursor: pointer;
}
.faq p { margin: 0.6rem 0 0; color: var(--ink-soft); }

/* Footer */
.site-footer {
  background: var(--ink);
  color: #f4e7d0;
  padding: 2.4rem 0 2rem;
  margin-top: 1rem;
}
.site-footer a { color: var(--gold-light); }
.footer-grid {
  display: grid;
  gap: 1.4rem;
}
.fine-print { font-size: 0.92rem; color: #e8d5b5; margin: 0; }
.copyright { margin: 1.4rem 0 0; font-size: 0.85rem; color: #c8b197; }

/* Opt-out page */
.page-hero { padding: 2.4rem 0 1rem; }
.form-narrow { max-width: 640px; margin: 0 auto; }

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(42, 24, 16, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 80;
}
.modal.open { display: flex; }
.modal-card {
  background: var(--paper);
  width: min(420px, 100%);
  border-radius: 22px;
  padding: 1.3rem;
  box-shadow: var(--shadow);
  max-height: 90vh;
  overflow: auto;
}
.share-link {
  background: #fff;
  border: 2px dashed var(--tan);
  border-radius: 12px;
  padding: 0.7rem;
  word-break: break-all;
  font-size: 0.9rem;
  margin: 0.7rem 0 1rem;
}

@media (min-width: 720px) {
  .nav-cta { display: inline-flex; }
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .pricing { grid-template-columns: repeat(3, 1fr); }
  .row-2 { grid-template-columns: 1fr 1fr; }
  .row-3 { grid-template-columns: 1.4fr 0.7fr 0.8fr; }
  .footer-grid { grid-template-columns: 1.4fr 1fr; }
}

@media (min-width: 960px) {
  .gallery { grid-template-columns: repeat(4, 1fr); }
  .builder-grid { grid-template-columns: 1.05fr 0.95fr; }
  .panel { padding: 1.5rem 1.45rem; }
}

@media (max-width: 719px) {
  .logo-mark { width: 44px; height: 44px; }
  .logo-stop { font-size: 0.62rem; letter-spacing: 0.07em; }
  .logo-turd { font-size: 1.12rem; }
  .nav a:not(.btn) { display: none; }
  .nav-cta { display: inline-flex; padding: 0.5rem 0.8rem; font-size: 0.82rem; }
}


/* Legal pages and form status */
.legal {
  max-width: 760px;
  margin: 0 auto;
}
.legal h2 {
  margin: 2rem 0 0.7rem;
  font-size: 1.45rem;
}
.legal h3 {
  margin: 1.4rem 0 0.5rem;
}
.legal p,
.legal li {
  color: var(--ink-soft);
}
.legal p { margin: 0 0 0.9rem; }
.legal ul,
.legal ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}
.legal li { margin: 0.35rem 0; }
.legal a { font-weight: 700; }
.updated {
  font-weight: 800;
  color: var(--brown);
  font-size: 0.92rem;
  margin: 0 0 1.2rem;
}
.contact-placeholder {
  background: #fff;
  border: 2px dashed var(--caramel);
  border-radius: 16px;
  padding: 1rem 1.1rem;
  margin: 0.8rem 0 1.2rem;
}
.contact-placeholder p {
  color: var(--ink);
  margin: 0 0 0.35rem;
}
.contact-placeholder p:last-child { margin-bottom: 0; }
.contact-placeholder .label-kicker {
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brown);
  margin-bottom: 0.45rem;
}
.form-status {
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  font-weight: 700;
  font-size: 0.92rem;
  margin-top: 0.8rem;
  display: none;
}
.form-status.show { display: block; }
.form-status.is-ok {
  background: #e7f3ea;
  color: var(--ok);
  border: 1px solid #b7d8c0;
}
.form-status.is-error {
  background: #fdecea;
  color: var(--danger);
  border: 1px solid #f3c4ba;
}
