/* === SUNPETAL — Botanical wellness brand theme ===
   Colors: sage green (#7A8B6F), cream (#F4EFE6), clay terracotta (#C97B5E)
   Fonts: Space Grotesk (body), Syne (display), Space Mono (mono/accent)
   All styles are scoped under `.sunpetal-scope` so they cannot leak onto
   Pixel Passport pages that load this stylesheet alongside theme.css.
*/

.sunpetal-scope {
  --sage: #7A8B6F;
  --sage-dim: rgba(122, 139, 111, 0.18);
  --sage-glow: rgba(122, 139, 111, 0.35);
  --cream: #F4EFE6;
  --cream-deep: #E8E1D5;
  --clay: #C97B5E;
  --clay-dim: rgba(201, 123, 94, 0.18);
  --clay-glow: rgba(201, 123, 94, 0.3);
  --ink: #2D3A2C;
  --ink-dim: #5C6B5A;
  --font-display: 'Syne', sans-serif;
  --font-body: 'Space Grotesk', sans-serif;
  --font-mono: 'Space Mono', monospace;
  --transition: 0.25s ease;
}

body.sunpetal-scope {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
}

.sunpetal-scope img { max-width: 100%; display: block; }
.sunpetal-scope a { color: inherit; text-decoration: none; }

/* ─── Nav ──────────────────────────────────────────────────── */
.sunpetal-scope .sp-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(244, 239, 230, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--sage-dim);
}
.sunpetal-scope .sp-nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sunpetal-scope .sp-nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sunpetal-scope .sp-nav-logo { width: 36px; height: 36px; object-fit: contain; }
.sunpetal-scope .sp-nav-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.sunpetal-scope .sp-nav-links { display: flex; align-items: center; gap: 24px; }
.sunpetal-scope .sp-nav-link {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-dim);
  transition: color var(--transition);
}
.sunpetal-scope .sp-nav-link:hover { color: var(--clay); }

/* ─── Hero ─────────────────────────────────────────────────── */
.sunpetal-scope .sp-hero {
  padding: 7rem 1.5rem 4rem;
  text-align: center;
  background:
    radial-gradient(ellipse at top, var(--sage-dim), transparent 60%),
    radial-gradient(ellipse at bottom, var(--clay-dim), transparent 60%);
}
.sunpetal-scope .sp-hero-inner { max-width: 820px; margin: 0 auto; }
.sunpetal-scope .sp-wordmark {
  max-width: 320px;
  width: 60%;
  margin: 0 auto 2rem;
  display: block;
  filter: drop-shadow(0 0 20px var(--sage-dim));
}
.sunpetal-scope .sp-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  border: 1px solid var(--sage);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: var(--ink);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.sunpetal-scope .sp-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.05;
  margin: 0 0 1.25rem;
  background: linear-gradient(120deg, var(--sage) 0%, var(--clay) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.sunpetal-scope .sp-sub {
  font-family: var(--font-body);
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--ink-dim);
  max-width: 640px;
  margin: 0 auto 2.25rem;
}

/* ─── Section + Cards (concept blocks) ─────────────────────── */
.sunpetal-scope .sp-section,
.sunpetal-scope .sp-concept { padding: 5rem 1.5rem; max-width: 920px; margin: 0 auto; }
.sunpetal-scope .sp-section-tag,
.sunpetal-scope .sp-concept-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.75rem;
}
.sunpetal-scope .sp-section-title,
.sunpetal-scope .sp-concept-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 3rem;
  color: var(--ink);
}
.sunpetal-scope .sp-card,
.sunpetal-scope .sp-concept-block {
  background: var(--cream-deep);
  border: 1px solid var(--sage-dim);
  border-radius: 16px;
  padding: 2.25rem 2rem;
  margin-bottom: 1.75rem;
  transition: border-color var(--transition), transform var(--transition);
}
.sunpetal-scope .sp-card:hover,
.sunpetal-scope .sp-concept-block:hover {
  border-color: var(--sage);
  transform: translateY(-2px);
}
.sunpetal-scope .sp-card h3,
.sunpetal-scope .sp-concept-block h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  margin: 0 0 0.85rem;
  color: var(--ink);
}
.sunpetal-scope .sp-card p,
.sunpetal-scope .sp-concept-block p {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-dim);
  margin: 0 0 0.85rem;
}
.sunpetal-scope .sp-card p:last-child,
.sunpetal-scope .sp-concept-block p:last-child { margin-bottom: 0; }
.sunpetal-scope .sp-signal-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.6rem;
  margin-top: 1.25rem;
  padding: 0;
  list-style: none;
}
.sunpetal-scope .sp-signal-list li {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--ink);
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--sage-dim);
  border-radius: 10px;
  text-align: center;
  background: var(--cream);
}

/* ─── Intake Section + Form ────────────────────────────────── */
.sunpetal-scope .sp-intake-section {
  padding: 3rem 1.5rem 6rem;
  max-width: 720px;
  margin: 0 auto;
}
.sunpetal-scope .sp-form {
  background: var(--cream-deep);
  border: 1px solid var(--sage-dim);
  border-radius: 16px;
  padding: 2.5rem 2rem;
}
.sunpetal-scope .sp-form-field { margin-bottom: 1.5rem; }
.sunpetal-scope .sp-form-field:last-of-type { margin-bottom: 2rem; }
.sunpetal-scope .sp-form-field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 0.55rem;
}
.sunpetal-scope .sp-form-field input[type="text"],
.sunpetal-scope .sp-form-field input[type="email"],
.sunpetal-scope .sp-form-field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--sage-dim);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  resize: vertical;
}
.sunpetal-scope .sp-form-field input[type="text"]::placeholder,
.sunpetal-scope .sp-form-field input[type="email"]::placeholder,
.sunpetal-scope .sp-form-field textarea::placeholder {
  color: rgba(92, 107, 90, 0.55);
}
.sunpetal-scope .sp-form-field input[type="text"]:focus,
.sunpetal-scope .sp-form-field input[type="email"]:focus,
.sunpetal-scope .sp-form-field textarea:focus {
  border-color: var(--sage);
  box-shadow: 0 0 18px var(--sage-dim);
}
.sunpetal-scope .sp-button-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

/* ─── Buttons (.btn-primary / .btn-secondary scoped) ───────── */
.sunpetal-scope .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--sage);
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  border: none;
  cursor: pointer;
  border-radius: 6px;
  clip-path: none;
  transition: filter var(--transition), transform var(--transition), background var(--transition);
}
.sunpetal-scope .btn-primary:hover {
  background: var(--clay);
  filter: none;
  transform: translateY(-2px);
}
.sunpetal-scope .btn-primary:visited,
.sunpetal-scope .btn-primary:active,
.sunpetal-scope .btn-primary:focus { color: var(--cream); }

.sunpetal-scope .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: transparent;
  color: var(--clay);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  border: 1px solid var(--clay);
  cursor: pointer;
  border-radius: 6px;
  clip-path: none;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}
.sunpetal-scope .btn-secondary:hover {
  background: var(--clay-dim);
  box-shadow: 0 0 18px var(--clay-dim);
}
.sunpetal-scope .btn-secondary:visited,
.sunpetal-scope .btn-secondary:active,
.sunpetal-scope .btn-secondary:focus { color: var(--clay); }

/* ─── Form / Confirm message pills ─────────────────────────── */
.sunpetal-scope .sp-msg, .sunpetal-scope .sp-err {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.5;
  display: none;
}
.sunpetal-scope .sp-msg {
  color: #1f4a32;
  background: var(--sage-dim);
  border: 1px solid var(--sage);
}
.sunpetal-scope .sp-err {
  color: #6b2d24;
  background: var(--clay-dim);
  border: 1px solid var(--clay);
}
.sunpetal-scope .sp-msg.visible, .sunpetal-scope .sp-err.visible { display: block; }

/* ─── Confirm Card ─────────────────────────────────────────── */
.sunpetal-scope .sp-confirm {
  background: var(--cream-deep);
  border: 1px solid var(--sage);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  text-align: center;
}
.sunpetal-scope .sp-confirm-card { /* alias used by JS-injected confirm markup */
  background: var(--cream-deep);
  border: 1px solid var(--sage);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  text-align: center;
}
.sunpetal-scope .sp-confirm-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 1rem;
}
.sunpetal-scope .sp-confirm-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--ink);
  margin: 0 0 0.85rem;
}
.sunpetal-scope .sp-confirm-body {
  font-family: var(--font-body);
  color: var(--ink-dim);
  line-height: 1.6;
  margin: 0 0 1.75rem;
}
.sunpetal-scope .sp-confirm-body strong { color: var(--ink); }

/* ─── Results Surface ──────────────────────────────────────── */
.sunpetal-scope .sp-results-section { max-width: 820px; margin: 0 auto; padding: 4rem 1.5rem 6rem; }
.sunpetal-scope .sp-results-empty {
  background: var(--cream-deep);
  border: 1px solid var(--sage-dim);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  text-align: center;
}
.sunpetal-scope .sp-results-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; }
.sunpetal-scope .sp-result-card {
  background: var(--cream-deep);
  border: 1px solid var(--sage-dim);
  border-radius: 14px;
  padding: 1.5rem 1.75rem;
}
.sunpetal-scope .sp-result-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
}
.sunpetal-scope .sp-result-title { font-family: var(--font-display); margin: 0.5rem 0 0.5rem; color: var(--ink); }
.sunpetal-scope .sp-result-body,
.sunpetal-scope .sp-result-notes { color: var(--ink-dim); margin: 0.25rem 0; }
.sunpetal-scope .sp-result-plants {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--sage-dim);
}
.sunpetal-scope .sp-plants-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
  margin-right: 0.5rem;
}
.sunpetal-scope .sp-plants-placeholder { color: var(--ink-dim); }

/* ─── Secondary CTA Box ────────────────────────────────────── */
.sunpetal-scope .sp-cta-section { padding: 5rem 1.5rem 6rem; text-align: center; }
.sunpetal-scope .sp-cta-box {
  max-width: 680px;
  margin: 0 auto;
  padding: 3rem 2rem;
  border-radius: 18px;
  background: var(--cream-deep);
  border: 1px solid var(--sage-dim);
}
.sunpetal-scope .sp-cta-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 1rem;
}
.sunpetal-scope .sp-cta-head {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.6rem;
  margin: 0 0 1rem;
  color: var(--ink);
}
.sunpetal-scope .sp-cta-text {
  font-family: var(--font-body);
  color: var(--ink-dim);
  margin: 0 0 1.75rem;
  line-height: 1.6;
}

/* ─── Footer ───────────────────────────────────────────────── */
.sunpetal-scope .sp-footer {
  background: var(--cream-deep);
  border-top: 1px solid var(--sage-dim);
  padding: 60px 24px 40px;
}
.sunpetal-scope .sp-footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  text-align: center;
}
.sunpetal-scope .sp-footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
}
.sunpetal-scope .sp-footer-logo { width: 40px; height: 40px; object-fit: contain; }
.sunpetal-scope .sp-footer-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
}
.sunpetal-scope .sp-footer-tagline {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--sage);
  text-transform: uppercase;
  margin-bottom: 28px;
}
.sunpetal-scope .sp-footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 28px;
}
.sunpetal-scope .sp-footer-links a {
  font-size: 0.875rem;
  color: var(--ink-dim);
  transition: color var(--transition);
}
.sunpetal-scope .sp-footer-links a:hover { color: var(--clay); }
.sunpetal-scope .sp-footer-copy { font-size: 0.78rem; color: var(--ink-dim); opacity: 0.7; }

/* ─── Responsive (mobile) ──────────────────────────────────── */
@media (max-width: 640px) {
  .sunpetal-scope .sp-hero { padding-top: 5rem; }
  .sunpetal-scope .sp-card,
  .sunpetal-scope .sp-form,
  .sunpetal-scope .sp-confirm,
  .sunpetal-scope .sp-cta-box { padding: 1.75rem 1.25rem; }
  .sunpetal-scope .sp-nav-links { gap: 14px; }
}
