/* ==========================================================================
   Sweetspot service site, Slugworth house style.
   Stolen wholesale (with love) from caelan.slugworth.org:
   cream paper, aubergine chrome, golden-ticket accents,
   Fraunces display + Inter body. Light scheme only, like the source.
   ========================================================================== */

:root {
  --aubergine: #2d1b4e;
  --aubergine-deep: #221238;
  --plum: #4a2c7a;
  --gold: #e8b34b;
  --gold-soft: #f4d68a;
  --cream: #faf3e3;
  --cream-dark: #efe3c8;
  --ink-text: #3b2a1d;
  --muted: #7a6a58;
  --white: #fffdf7;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --radius: 14px;
  --shadow: 0 10px 30px rgba(45, 27, 78, 0.14);
  --shadow-lift: 0 16px 36px rgba(45, 27, 78, 0.2);
  --maxw: 1080px;

  --text-base: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1.05rem + 0.4vw, 1.3125rem);
  --text-xl: clamp(1.9rem, 1.5rem + 1.6vw, 2.6rem);
  --text-2xl: clamp(2.6rem, 1.9rem + 3vw, 4.3rem);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--ink-text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--plum);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--aubergine-deep);
}

main {
  min-height: 50vh;
}

.container {
  width: min(100% - 2.5rem, var(--maxw));
  margin-inline: auto;
}

.container.narrow {
  width: min(100% - 2.5rem, 42rem);
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--cream-dark);
  border-radius: 4px;
  padding: 0.1em 0.35em;
}

/* ---------- Header (aubergine bar, gold pill CTA) ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(45, 27, 78, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(232, 179, 75, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  color: var(--cream);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
}

.brand:hover {
  color: var(--cream);
}

.brand-mark {
  color: var(--gold);
  font-size: 1.1rem;
}

.site-nav {
  display: flex;
  gap: 1.6rem;
  align-items: center;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--cream);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0.85;
  transition: opacity 0.15s;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  opacity: 1;
  color: var(--gold-soft);
}

.site-nav .nav-cta {
  background: var(--gold);
  color: var(--aubergine-deep);
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  opacity: 1;
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta.active {
  background: var(--gold-soft);
  color: var(--aubergine-deep);
}

/* ---------- Hero (twinkling aubergine sky) ---------- */

.hero {
  position: relative;
  background: radial-gradient(120% 90% at 50% 0%, var(--aubergine) 0%, var(--aubergine-deep) 65%);
  color: var(--cream);
  padding: clamp(4rem, 10vw, 6.5rem) 0 clamp(3.5rem, 8vw, 5.5rem);
  overflow: hidden;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  background-image:
    radial-gradient(2px 2px at 12% 22%, var(--gold) 45%, transparent 50%),
    radial-gradient(3px 3px at 78% 35%, var(--gold) 45%, transparent 50%),
    radial-gradient(2px 2px at 24% 68%, var(--gold-soft) 45%, transparent 50%),
    radial-gradient(2px 2px at 88% 75%, var(--gold) 45%, transparent 50%),
    radial-gradient(2px 2px at 42% 15%, var(--gold-soft) 45%, transparent 50%),
    radial-gradient(3px 3px at 64% 82%, var(--gold) 45%, transparent 50%),
    radial-gradient(2px 2px at 33% 48%, var(--gold) 45%, transparent 50%),
    radial-gradient(2px 2px at 90% 12%, var(--gold-soft) 45%, transparent 50%);
  background-size: 320px 320px;
  animation: twinkle 6s ease-in-out infinite alternate;
}

@keyframes twinkle {
  from { opacity: 0.12; }
  to { opacity: 0.22; }
}

.hero-inner {
  position: relative;
  max-width: 760px;
  margin-inline: auto;
}

.hero-kicker {
  color: var(--gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 600;
  margin: 0 0 1.2rem;
}

.hero h1 {
  font-size: var(--text-2xl);
  color: var(--white);
  margin: 0 0 1rem;
  letter-spacing: -0.01em;
}

.hero .lede {
  font-size: var(--text-lg);
  color: var(--cream-dark);
  margin: 0 auto 2rem;
  max-width: 34em;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-demo-link {
  margin-top: 1.25rem;
  font-size: 0.95rem;
}

.hero-demo-link a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero-demo-link a:hover {
  color: var(--gold-soft);
}

/* ---------- Buttons ---------- */

.button {
  display: inline-block;
  background: var(--gold);
  color: var(--aubergine-deep);
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(232, 179, 75, 0.35);
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  font-family: inherit;
}

.button:hover {
  background: var(--gold-soft);
  color: var(--aubergine-deep);
  transform: translateY(-2px);
}

/* Ghost on dark (hero / aubergine bands) */
.button-ghost {
  background: transparent;
  border-color: rgba(240, 214, 138, 0.5);
  color: var(--cream-dark);
  box-shadow: none;
}

.button-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--gold);
  color: var(--cream);
}

/* Ghost on light (cream sections) */
.section .button-ghost,
.section-soft .button-ghost,
.container .button-ghost,
.state-page .button-ghost,
.page-header .button-ghost {
  background: transparent;
  border-color: rgba(74, 44, 122, 0.4);
  color: var(--plum);
  box-shadow: none;
}

.section .button-ghost:hover,
.section-soft .button-ghost:hover,
.container .button-ghost:hover,
.state-page .button-ghost:hover {
  background: var(--cream-dark);
  border-color: var(--plum);
  color: var(--aubergine);
}

/* ---------- Sections ---------- */

.section {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}

.section-soft {
  background: var(--cream-dark);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section-head h2 {
  margin: 0;
  font-size: var(--text-xl);
  color: var(--aubergine);
}

.eyebrow {
  margin: 0 0 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--plum);
}

.eyebrow a {
  color: var(--plum);
  text-decoration: none;
}

/* ---------- Cards (golden-ticket top edge) ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 1.6rem;
}

.grid-3 {
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
}

.feature-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  padding: 1.9rem 1.7rem;
  box-shadow: var(--shadow);
  transition: transform 0.18s, box-shadow 0.18s;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.4rem;
  right: 1.4rem;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft), var(--gold));
  border-radius: 0 0 4px 4px;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.feature-card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.25rem;
  color: var(--aubergine);
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.answer-box {
  position: relative;
  margin: 1.75rem auto 0;
  max-width: 46rem;
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  padding: 1.6rem 1.8rem;
  box-shadow: var(--shadow);
  text-align: left;
}

.answer-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.4rem;
  right: 1.4rem;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft), var(--gold));
  border-radius: 0 0 4px 4px;
}

.answer-box p {
  margin: 0;
}

.answer-box p strong {
  color: var(--aubergine);
}

/* ---------- Steps ---------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem;
  align-items: start;
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
  box-shadow: var(--shadow);
}

.step-num {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  background: var(--gold);
  color: var(--aubergine-deep);
  font-weight: 700;
  font-family: var(--font-display);
  flex-shrink: 0;
}

.step h3 {
  margin: 0.15rem 0 0.3rem;
  font-size: 1.15rem;
  color: var(--aubergine);
}

.step p {
  margin: 0;
  color: var(--muted);
}

/* ---------- Email callout ---------- */

.email-callout {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.5rem 1.7rem;
  box-shadow: var(--shadow);
}

.email-callout h2 {
  margin: 0 0 0.6rem;
  font-size: 1.3rem;
  color: var(--aubergine);
}

.email-callout p {
  margin: 0.7rem 0 0;
  color: var(--muted);
}

.email-callout p strong {
  color: var(--aubergine);
}

/* ---------- FAQ ---------- */

.faq {
  display: grid;
  gap: 0;
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  padding: 0.4rem 1.4rem;
  box-shadow: var(--shadow);
}

.faq details {
  border-top: 1px solid var(--cream-dark);
}

.faq details:first-child {
  border-top: none;
}

.faq summary {
  cursor: pointer;
  padding: 1rem 0.25rem;
  font-weight: 600;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--aubergine);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "✦";
  color: var(--gold);
  font-size: 1rem;
  line-height: 1;
  transition: transform 0.15s;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  margin: 0;
  padding: 0 0.25rem 1.1rem;
  color: var(--muted);
  max-width: 62ch;
}

/* ---------- Page headers / meta ---------- */

.page-header {
  padding: clamp(3rem, 7vw, 4.5rem) 0 1.5rem;
  text-align: left;
}

.pricing-header {
  text-align: center;
  max-width: 36rem;
  margin-inline: auto;
}

.page-header h1 {
  margin: 0 0 0.5rem;
  font-size: var(--text-xl);
  color: var(--aubergine);
}

.lede {
  font-size: var(--text-lg);
  color: var(--muted);
  margin: 0;
}

/* ---------- Pricing ---------- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16.5rem, 1fr));
  gap: 1.6rem;
  align-items: stretch;
  margin-bottom: 2.5rem;
}

.tier {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem 1.7rem;
  box-shadow: var(--shadow);
}

.tier::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.4rem;
  right: 1.4rem;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft), var(--gold));
  border-radius: 0 0 4px 4px;
}

.tier-featured {
  border-color: var(--gold);
  box-shadow: var(--shadow-lift);
  transform: translateY(-4px);
}

.tier-badge {
  position: absolute;
  top: -0.8rem;
  left: 1.25rem;
  background: var(--gold);
  color: var(--aubergine-deep);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
}

.tier-name {
  margin: 0.2rem 0 0.25rem;
  font-size: 1.35rem;
  color: var(--aubergine);
}

.tier-blurb {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.92rem;
  min-height: 2.8em;
}

.price {
  margin: 0 0 1.1rem;
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--aubergine);
  letter-spacing: -0.02em;
  line-height: 1;
}

.price span {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}

.tier-features {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 0.55rem;
  flex: 1;
  font-size: 0.93rem;
}

.tier-features li {
  padding-left: 1.5rem;
  position: relative;
}

.tier-features li::before {
  content: "✦";
  position: absolute;
  left: 0;
  top: 0.1em;
  color: var(--gold);
  font-size: 0.85rem;
}

.tier .button {
  text-align: center;
  width: 100%;
}

.tier .button-ghost {
  border-color: rgba(74, 44, 122, 0.4);
  color: var(--plum);
  box-shadow: none;
}

/* ---------- Add-on + includes strip ---------- */

.addon-box {
  border: 1px dashed var(--gold);
  border-radius: var(--radius);
  background: var(--white);
  padding: 1.25rem 1.4rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
}

.addon-box h2 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
  color: var(--aubergine);
}

.addon-box p {
  margin: 0;
  color: var(--muted);
}

.includes-strip {
  text-align: center;
  margin-bottom: 2.5rem;
}

.includes-strip h2 {
  font-size: 1rem;
  margin: 0 0 0.9rem;
  color: var(--plum);
  font-weight: 600;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.includes-strip ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.6rem;
  justify-content: center;
}

.includes-strip li {
  border: 1px solid var(--cream-dark);
  background: var(--white);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  font-size: 0.88rem;
  color: var(--plum);
  font-weight: 500;
}

.pricing-notes {
  max-width: 40rem;
  margin: 0 auto 3rem;
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
}

.pricing-notes p {
  margin: 0 0 0.9rem;
}

.pricing-notes strong {
  color: var(--aubergine);
}

/* ---------- CTA band (aubergine, like the source site's links section) ---------- */

.cta-band {
  text-align: center;
  padding: clamp(3rem, 7vw, 4.5rem) 1.25rem;
  color: var(--cream);
}

.cta-band h2 {
  margin: 0 0 0.5rem;
  font-size: var(--text-xl);
  color: var(--white);
}

.cta-band p {
  color: rgba(255, 253, 247, 0.75);
  margin: 0 0 1.25rem;
}

.section-soft .cta-band {
  background:
    radial-gradient(120% 90% at 50% 0%, var(--aubergine) 0%, var(--aubergine-deep) 80%);
}

.cta-band .button + .button {
  margin-left: 0.5rem;
}

/* ---------- Forms ---------- */

.form {
  display: grid;
  gap: 0.9rem;
  max-width: 34rem;
  margin: 0 0 2.5rem;
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.form-field {
  display: grid;
  gap: 0.3rem;
}

.form-field label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--aubergine);
}

.form-field .hint {
  color: var(--muted);
  font-size: 0.85rem;
}

.form input,
.form select,
.form textarea {
  font: inherit;
  color: var(--ink-text);
  background: var(--cream);
  border: 1px solid var(--cream-dark);
  border-radius: 8px;
  padding: 0.7rem 0.9rem;
  width: 100%;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
  border-color: var(--gold);
}

.form textarea {
  min-height: 9rem;
  resize: vertical;
}

/* Off-screen honeypot: never display:none (bots skip those) */
.form .hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form .button {
  justify-self: start;
  border: none;
  margin-top: 0.4rem;
}

.form-note {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: -1rem;
  margin-bottom: 2rem;
}

/* ---------- Prose ---------- */

.prose {
  padding-bottom: 1rem;
  color: var(--ink-text);
}

.prose > * + * {
  margin-top: 1.1em;
}

.prose h2 {
  font-size: 1.35rem;
  color: var(--aubergine);
  margin-top: 2em;
}

.prose h3 {
  font-size: 1.1rem;
  color: var(--aubergine);
  margin-top: 1.6em;
}

.prose ul,
.prose ol {
  padding-left: 1.3em;
}

.prose blockquote {
  border-left: 3px solid var(--gold);
  margin-left: 0;
  padding: 0.2em 0 0.2em 1em;
  color: var(--muted);
  font-family: var(--font-display);
  font-style: italic;
}

.prose img {
  border-radius: var(--radius);
  border: 1px solid var(--cream-dark);
}

/* ---------- Footer (deep aubergine) ---------- */

.site-footer {
  background: var(--aubergine-deep);
  color: rgba(255, 253, 247, 0.75);
  margin-top: 0;
  padding: 3rem 0;
  font-size: 0.92rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  align-items: center;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

.brand-foot {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--gold);
  font-weight: 700;
}

.footer-quote {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold-soft);
}

.footer-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: rgba(255, 253, 247, 0.75);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--gold);
}

/* ---------- Thanks / 404 ---------- */

.state-page {
  text-align: center;
  padding: clamp(4rem, 12vw, 7rem) 1.25rem;
}

.state-page h1 {
  font-size: var(--text-xl);
  color: var(--aubergine);
  margin: 0 0 0.5rem;
}

.state-page p {
  color: var(--muted);
}

/* ---------- Utilities ---------- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .hero-bg {
    animation: none;
  }
  .feature-card:hover,
  .tier-featured,
  .button:hover {
    transform: none;
  }
}
