/* ============================================================
   Shiny Object Killer — shared stylesheet
   shinyobjectchecklist.com
   ============================================================ */

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

:root {
  --bg: #F5F0E8;
  --ink: #1A1A18;
  --red: #C0392B;
  --muted: #8a8479;
  --border: #D0C9BB;
  --white: #FDFAF5;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Libre Baskerville', Georgia, serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px 80px;
  position: relative;
  overflow-x: hidden;
}

/* subtle grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 200px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

.wrap {
  max-width: 780px;
  width: 100%;
  position: relative;
  z-index: 1;
}

/* ---- Typography ---- */
h1 {
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.5s ease 0.2s forwards;
}

h1 em {
  font-style: italic;
  color: var(--red);
}

.subhead {
  font-size: 1.25rem;
  line-height: 1.75;
  color: #3a3a36;
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.5s ease 0.3s forwards;
}

/* ---- Legal page body copy ---- */
.legal-body h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: 32px;
  opacity: 1;
  animation: none;
}

.legal-body h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 32px 0 12px;
}

.legal-body p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #3a3a36;
  margin-bottom: 16px;
}

.legal-body ul, .legal-body ol {
  margin: 0 0 16px 24px;
}

.legal-body li {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #3a3a36;
  margin-bottom: 8px;
}

.legal-body strong {
  color: var(--ink);
}

/* ---- CTA box ---- */
.cta-box {
  border: 2.5px solid var(--red);
  padding: 28px 28px 24px;
  margin-bottom: 44px;
  opacity: 0;
  animation: fadeUp 0.5s ease 0.25s forwards;
}

/* ---- Checklist preview ---- */
.preview {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 28px 28px 20px;
  margin-bottom: 44px;
  opacity: 0;
  animation: fadeUp 0.5s ease 0.4s forwards;
}

.preview-title {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.criteria-group {
  margin-bottom: 14px;
}

.group-label {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 8px;
}

.criteria-items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.criteria-item {
  font-size: 13px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 4px 10px;
  font-family: 'DM Mono', monospace;
}

.preview-blur {
  text-align: center;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--muted);
  padding-top: 16px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}

/* ---- Divider ---- */
hr.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin-bottom: 36px;
  opacity: 0;
  animation: fadeUp 0.4s ease 0.45s forwards;
}

/* ---- Form ---- */
.form-label {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 6px;
  display: block;
}

.form-sublabel {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 20px;
  display: block;
  font-family: 'DM Mono', monospace;
}

.form-row {
  display: flex;
  gap: 10px;
}

input[type="email"],
input[type="text"] {
  flex: 1;
  font-family: 'DM Mono', monospace;
  font-size: 15px;
  padding: 15px 16px;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s;
}

input[type="email"]:focus,
input[type="text"]:focus {
  border-color: var(--ink);
}

input[type="email"]::placeholder,
input[type="text"]::placeholder {
  color: var(--muted);
}

button[type="submit"] {
  font-family: 'DM Mono', monospace;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 15px 24px;
  background: var(--ink);
  color: var(--bg);
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

button[type="submit"]:hover {
  background: var(--red);
}

/* ---- Footer ---- */
.sok-footer {
  margin-top: 60px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  width: 100%;
  max-width: 780px;
  position: relative;
  z-index: 1;
}

.sok-footer p {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
}

.sok-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 12px;
  list-style: none;
}

.sok-footer-nav a {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.sok-footer-nav a:hover {
  color: var(--ink);
}

.sok-footer-social {
  display: flex;
  gap: 16px;
}

.sok-footer-social a {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.sok-footer-social a:hover {
  color: var(--ink);
}

/* ---- Confirmation page ---- */
.confirmation-wrap {
  text-align: center;
  padding-top: 80px;
}

.confirmation-wrap h1 {
  margin-bottom: 20px;
}

.confirmation-wrap p {
  font-size: 1.2rem;
  line-height: 1.75;
  color: #3a3a36;
  margin-bottom: 12px;
}

/* ---- Animations ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
  .form-row { flex-direction: column; }
  button[type="submit"] { width: 100%; }
  .preview { padding: 20px 16px; }
  .cta-box { padding: 20px 16px; }
}

/* ---- Confirmation note (big text) ---- */
.confirmation-note {
  font-size: 1.5rem;
  line-height: 1.7;
  color: #3a3a36;
  margin-bottom: 20px;
  font-weight: 700;
}
