:root {
  --forest: #1A431A; --cream: #F8F5F0; --clubhouse: #EFEBE6;
  --gold: #C8A26A; --charcoal: #4A4A4A;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--cream); color: var(--charcoal);
  font-family: "Merriweather Sans", system-ui, sans-serif; line-height: 1.5;
}
h1, h2, h3 { font-family: "Playfair Display", Georgia, serif; color: var(--forest); }
.hp-header { background: var(--forest); color: var(--cream); padding: 32px 24px; text-align: center; }
.hp-header h1 { color: var(--cream); margin: 0 0 8px; font-size: 2rem; }
.hp-header p { max-width: 640px; margin: 0 auto; opacity: .92; }
.hp-wrap { max-width: 960px; margin: 0 auto; padding: 24px; }
.hp-step { margin: 28px 0; }
.hp-step h2 { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; }
.hp-step h2 span {
  background: var(--gold); color: var(--forest); width: 28px; height: 28px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; font-family: "Merriweather Sans"; font-weight: 600;
}
.hp-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.hp-card {
  background: #fff; border: 1px solid var(--clubhouse); border-radius: 6px; padding: 16px;
  cursor: pointer; text-align: left; transition: border-color .15s, box-shadow .15s;
}
.hp-card:hover { border-color: var(--gold); }
.hp-card.selected { border-color: var(--forest); box-shadow: 0 0 0 2px var(--forest) inset; }
.hp-card strong { display: block; font-family: "Playfair Display", serif; color: var(--forest); margin-bottom: 4px; }
.hp-card span { font-size: .85rem; opacity: .8; }
.hp-subhead { font-family: "Playfair Display", serif; color: var(--forest); font-size: 1rem; margin: 16px 0 8px; }
#suede-step { margin-top: 14px; }
.hp-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.hp-swatch {
  display: inline-flex; align-items: center; gap: 7px; background: #fff; border: 1px solid var(--clubhouse);
  border-radius: 6px; padding: 6px 10px; cursor: pointer; font-size: .82rem; font-family: inherit; color: var(--charcoal);
}
.hp-swatch:hover { border-color: var(--gold); }
.hp-swatch.selected { border-color: var(--forest); box-shadow: 0 0 0 2px var(--forest) inset; }
.hp-swatch .dot { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(0,0,0,.2); display: inline-block; }
textarea, input[type=url] {
  width: 100%; padding: 12px; border: 1px solid var(--clubhouse); border-radius: 6px;
  font-family: inherit; font-size: 1rem; background: #fff;
}
.hp-voice { margin-top: 8px; background: #fff; border: 1px solid var(--clubhouse); border-radius: 6px;
  padding: 8px 14px; font-family: inherit; font-size: .85rem; color: var(--forest); cursor: pointer; }
.hp-voice:hover { border-color: var(--gold); }
.hp-voice.listening { background: #fbe9e7; color: #8a2b1e; border-color: #e0a99f; }
.hp-advanced { margin: 12px 0; }
.hp-advanced summary { cursor: pointer; font-size: .9rem; color: var(--forest); }
.hp-advanced input { margin-top: 8px; }
.hp-btn {
  background: var(--gold); color: var(--forest); border: none; border-radius: 6px;
  padding: 14px 28px; font-family: "Merriweather Sans"; font-weight: 600; font-size: 1rem; cursor: pointer; margin-top: 14px;
}
.hp-btn:disabled { opacity: .5; cursor: progress; }
.hp-note { font-size: .8rem; opacity: .7; margin-top: 8px; }
.hp-status { padding: 16px; border-radius: 6px; margin: 16px 0; text-align: center; }
.hp-status.loading { background: var(--clubhouse); }
.hp-status.error { background: #fbe9e7; color: #8a2b1e; border: 1px solid #e0a99f; }
.hp-result { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; margin-top: 24px; }
@media (max-width: 640px) { .hp-result { grid-template-columns: 1fr; } }
.hp-proof img, .hp-asset img { width: 100%; border-radius: 12px; display: block; }
.hp-asset { background: var(--clubhouse); border-radius: 12px; padding: 10px;
  background-image: linear-gradient(45deg,#ddd 25%,transparent 25%),linear-gradient(-45deg,#ddd 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#ddd 75%),linear-gradient(-45deg,transparent 75%,#ddd 75%);
  background-size: 16px 16px; background-position: 0 0,0 8px,8px -8px,-8px 0; }
.hp-prompt { margin-top: 14px; }
.hp-prompt summary { cursor: pointer; color: var(--forest); font-size: .9rem; }
.hp-prompt pre { white-space: pre-wrap; font-size: .78rem; background: #fff; border: 1px solid var(--clubhouse); border-radius: 6px; padding: 10px; }

/* --- email gate (unlock more AI generations) --- */
.hp-gate {
  background: var(--forest); color: var(--cream);
  border-radius: 12px; padding: 24px; margin-top: 16px;
}
.hp-gate h3 { color: var(--cream); margin: 0 0 8px; }
.hp-gate p { font-size: .92rem; line-height: 1.5; margin: 0 0 14px; opacity: .95; }
.hp-gate .hp-note { color: var(--cream); opacity: .65; }
.hp-gate-row { display: flex; gap: 10px; flex-wrap: wrap; }
.hp-gate-row input {
  flex: 1 1 220px; padding: 12px 14px; border-radius: 6px;
  border: 1px solid var(--gold); background: var(--cream); color: var(--charcoal);
  font-family: inherit; font-size: 1rem;
}
.hp-gate-row .hp-btn { margin: 0; }
.hp-gate-error { color: #ffd2c9 !important; opacity: 1 !important; font-size: .85rem; margin: 10px 0 0 !important; }

/* keep hidden elements hidden regardless of later display rules */
[hidden] { display: none !important; }

/* --- top nav bar + footer (site navigation + legal) --- */
.hp-topbar {
  display: flex; justify-content: space-between; align-items: center;
  background: #122e12; padding: 10px 24px; flex-wrap: wrap; gap: 8px;
}
.hp-topbar a { color: var(--cream); text-decoration: none; font-size: .9rem; font-weight: 600; }
.hp-topbar .hp-back:hover, .hp-topbar .hp-shop:hover { color: var(--gold); }
.hp-topbar .hp-shop { border: 1px solid var(--gold); border-radius: 6px; padding: 6px 14px; }
.hp-footer {
  background: var(--forest); color: var(--cream); margin-top: 40px;
  padding: 24px; font-size: .8rem; line-height: 1.55;
}
.hp-footer p { margin: 0 0 10px; opacity: .82; max-width: 70ch; }
.hp-footer a { color: var(--gold); }
