:root {
  --cream: #efe4d1;
  --peach: #c88f84;
  --lavender: #a896bd;
  --lilac: #8f79aa;
  --mint: #8fb39c;
  --mint-dark: #426c53;
  --sand: #c9b58f;
  --terracotta: #ad6659;
  --ink: #241f29;
  --muted: #635b68;
  --line: #b7a9a3;
  --paper: #f8f1e6;
  --danger: #d39a96;
  --shadow: 0 18px 36px rgba(51, 38, 31, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(239, 228, 209, 0.92);
  border-bottom: 1px solid rgba(87, 73, 67, 0.16);
  backdrop-filter: blur(14px);
}

.brand,
.nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 50% 50% 48% 42%;
  background: linear-gradient(135deg, var(--mint), var(--lavender));
  border: 2px solid var(--ink);
}

.nav {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  border-radius: 999px;
  padding: 8px 12px;
  text-decoration: none;
  color: var(--muted);
}

.nav a:hover {
  background: #fff;
  color: var(--ink);
}

.nav a:focus-visible,
.button:focus-visible,
.buy-button:focus-visible,
.avatar:focus-visible,
.timeline button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--lilac);
  outline-offset: 3px;
}

.section {
  padding: clamp(48px, 7vw, 96px) clamp(18px, 5vw, 72px);
}

.warm {
  background: #e5d4bd;
}

.hero {
  min-height: calc(100vh - 66px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 560px);
  gap: clamp(32px, 7vw, 84px);
  align-items: center;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 10px;
  color: #6f5689;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.hero-copy > p:not(.eyebrow),
.section-head p:not(.eyebrow) {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.button:hover,
.service-card:hover {
  transform: translateY(-2px);
}

.primary {
  background: var(--mint);
  color: #173825;
  box-shadow: 0 8px 20px rgba(85, 154, 114, 0.22);
}

.ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}

.danger {
  background: var(--danger);
  color: #642827;
}

.hero-art {
  position: relative;
  min-height: 420px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 18% 18%, rgba(248, 241, 230, 0.9) 0 9%, transparent 10%),
    radial-gradient(circle at 84% 20%, rgba(216, 199, 165, 0.9) 0 11%, transparent 12%),
    linear-gradient(145deg, #bd9ba0, #a896bd 54%, #8fb39c);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-art::before {
  content: "";
  position: absolute;
  inset: auto 8% 0;
  height: 28%;
  border-radius: 50% 50% 0 0;
  background: rgba(248, 241, 230, 0.38);
}

.hero-figure {
  position: absolute;
  z-index: 1;
  width: min(42%, 230px);
  max-height: 86%;
  object-fit: contain;
  filter: drop-shadow(0 18px 22px rgba(36, 31, 41, 0.16));
}

.hero-figure-a {
  left: 9%;
  bottom: -5px;
}

.hero-figure-b {
  right: 7%;
  bottom: -10px;
  width: min(46%, 260px);
}

.section-head {
  margin-bottom: 28px;
}

.three-up,
.services {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.three-up article,
.service-card,
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.three-up article,
.service-card,
.panel {
  padding: 22px;
}

.three-up article {
  overflow: hidden;
}

.spot-art {
  display: block;
  width: 100%;
  height: 120px;
  margin: -8px 0 16px;
  object-fit: contain;
}

.service-card {
  position: relative;
  display: grid;
  min-height: 460px;
  align-content: start;
  gap: 12px;
  cursor: pointer;
  transition: transform 0.15s ease;
  overflow: hidden;
}

.service-card.selected {
  outline: 4px solid rgba(66, 108, 83, 0.35);
}

.product-card {
  border: 3px solid var(--card-accent);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0.18)),
    var(--paper);
}

.product-card::before {
  display: none;
}

.card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  gap: 12px;
}

.plan-label {
  color: color-mix(in srgb, var(--card-accent), #241f29 28%);
  font-weight: 900;
}

.discount {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 50%;
  background: var(--terracotta);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 900;
  text-align: center;
}

.card-illustration {
  position: relative;
  height: 138px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 82% 20%, rgba(255, 255, 255, 0.58) 0 15%, transparent 16%),
    linear-gradient(135deg, var(--card-accent), #efe4d1);
  overflow: hidden;
}

.card-illustration img {
  display: block;
  width: 100%;
  height: 150%;
  object-fit: contain;
  object-position: center bottom;
  transform: translateY(-18%);
  filter: drop-shadow(0 12px 14px rgba(36, 31, 41, 0.14));
}

.image-pair {
  position: relative;
  height: 100%;
}

.card-illustration .image-pair img {
  position: absolute;
  bottom: 0;
  object-fit: contain;
  object-position: center bottom;
  transform: none;
}

.image-pair .pair-1 {
  left: 18%;
  width: 42%;
  height: 108%;
}

.image-pair .pair-2 {
  right: 13%;
  width: 46%;
  height: 106%;
  transform: scaleX(-1);
}

.service-card[data-service="The Gut Check"] .card-illustration img,
.service-card[data-service="The Vent Box"] .card-illustration img,
.service-card[data-service="The Tough Love Audit"] .card-illustration img {
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  transform: none;
}

.service-card[data-service="Enduring Opinions"] .card-illustration img {
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: none;
  filter: saturate(0.85) sepia(0.08) drop-shadow(0 12px 14px rgba(36, 31, 41, 0.12));
}

.old-price {
  margin: 0;
  color: var(--muted);
  text-decoration: line-through;
}

.price {
  font-size: 2.2rem;
  font-weight: 900;
}

.buy-button {
  width: 100%;
  border: 2px solid color-mix(in srgb, var(--card-accent), #241f29 18%);
  border-radius: 8px;
  padding: 14px 16px;
  background: var(--card-accent);
  color: #241f29;
  cursor: pointer;
  font-weight: 900;
}

.benefit-list {
  display: grid;
  gap: 10px;
  margin: 4px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.benefit-list li::before {
  content: "✓";
  margin-right: 8px;
  color: var(--mint-dark);
  font-weight: 900;
}

.dash-grid,
.checkout-grid {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 18px;
}

.dash-grid {
  grid-template-columns: 320px 1fr;
}

.archive-panel,
.submission-panel {
  grid-column: span 2;
}

#waitlist .submission-panel {
  grid-column: 1 / -1;
}

.stack {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
  color: var(--ink);
}

textarea {
  resize: vertical;
}

.avatar-grid,
.request-list,
.timeline {
  display: grid;
  gap: 10px;
}

.avatar-grid {
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 18px;
}

.avatar {
  aspect-ratio: 1;
  border: 2px solid transparent;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.avatar.selected {
  border-color: var(--mint-dark);
}

.avatar::before {
  content: "";
  display: block;
  width: 52%;
  height: 52%;
  margin: 20% auto 0;
  border-radius: 50% 50% 46% 46%;
  background: var(--avatar, var(--lavender));
  border: 2px solid var(--ink);
}

.avatar::after {
  content: "";
  display: block;
  width: 42%;
  height: 22%;
  margin: 2px auto 0;
  border-radius: 999px 999px 8px 8px;
  background: var(--avatar, var(--lavender));
  border: 2px solid var(--ink);
}

.request,
.timeline button,
.chat-card,
.metric,
.selected-tier,
.entitlement-box,
.legal-callout,
.stripe-box {
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 14px;
}

.badge {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 10px;
  background: var(--lavender);
  color: #3f2d58;
  font-size: 0.8rem;
  font-weight: 900;
}

.timeline button {
  text-align: left;
  cursor: pointer;
}

.bubble-row {
  display: flex;
  margin: 12px 0;
}

.bubble-row.owner {
  justify-content: flex-end;
}

.chat-bubble {
  max-width: min(560px, 90%);
  border-radius: 18px;
  padding: 14px 16px;
  background: #eeeef1;
}

.owner .chat-bubble {
  background: var(--mint);
}

.legal-callout {
  background: #ead0cc;
  border-color: #ad6659;
  color: #5f2a28;
  font-weight: 700;
}

.terms-check {
  grid-template-columns: auto 1fr;
  align-items: start;
  margin-top: 14px;
  color: var(--ink);
  font-size: 0.88rem;
}

.terms-check input {
  width: auto;
  margin-top: 4px;
}

.field-note,
.entitlement-box p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.entitlement-box {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  background: #fffaf2;
}

.confirmation-panel {
  margin-top: 18px;
}

.tally-frame {
  width: 100%;
  min-height: 640px;
  border: 0;
  border-radius: 8px;
  background: #fff;
}

.stripe-box {
  display: grid;
  gap: 12px;
  margin: 16px 0;
}

.stripe-box span {
  display: block;
  height: 42px;
  border-radius: 8px;
  background: linear-gradient(90deg, #eee6f8, #fff, #dff3e6);
}

.footer {
  display: grid;
  gap: 14px;
  padding: 28px clamp(18px, 5vw, 72px);
  background: #2f2936;
  color: #fff9ef;
}

.footer p {
  max-width: 980px;
  margin: 0;
}

.modal {
  width: min(620px, calc(100vw - 32px));
  border: 0;
  border-radius: 8px;
  padding: 24px;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.modal::backdrop {
  background: rgba(47, 41, 54, 0.5);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

@media (max-width: 980px) {
  .hero,
  .dash-grid,
  .checkout-grid {
    grid-template-columns: 1fr;
  }

  .archive-panel,
  .submission-panel {
    grid-column: auto;
  }

  .services,
  .three-up {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .services,
  .three-up {
    grid-template-columns: 1fr;
  }

  .hero-art {
    min-height: 320px;
  }

  .hero-figure {
    width: min(45%, 180px);
  }
}
