/* =========================================================
   pricing.css
   Uses index.css (body.home + navbar + brand tokens). Scoped
   to body.pricing-page.
   ========================================================= */

body.pricing-page .pricing-main {
  padding: clamp(1.2rem, 3vw, 2.2rem) 0 3rem;
}

body.pricing-page .pricing-hero {
  text-align: center;
  padding: 1.2rem 0 1.8rem;
}

body.pricing-page .pricing-title {
  font-size: clamp(2.3rem, 5vw, 3.4rem);
  margin: 0 0 0.6rem;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--ink);
}

body.pricing-page .pricing-title__muted {
  font-weight: 500;
  color: var(--ink-soft);
}

body.pricing-page .pricing-lead {
  margin: 0 auto;
  max-width: 56ch;
  color: var(--ink-soft);
  line-height: 1.7;
  font-size: 1.02rem;
}

/* =========================================================
   The free baseline — a plain statement, not a card competing
   with the add-ons below. Everyone has this; there's nothing
   to "choose."
   ========================================================= */
body.pricing-page .pricing-free {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.9rem 2.1rem;
  margin: 1.8rem 0;
  border-radius: 4px;
  background: #fffdf7;
  border: 1px solid rgba(22, 40, 74, 0.08);
  box-shadow: 0 16px 30px rgba(22, 40, 74, 0.07), 0 6px 12px rgba(22, 40, 74, 0.05);
  transform: rotate(-0.4deg);
}

/* a sheet of graph paper that only got half-ruled — not a uniform grid */
body.pricing-page .pricing-free::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(45, 69, 115, 0.14) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(45, 69, 115, 0.14) 1px, transparent 1px);
  background-size: 23px 23px;
  -webkit-mask-image: linear-gradient(118deg, transparent 0%, transparent 52%, black 82%, black 100%);
  mask-image: linear-gradient(118deg, transparent 0%, transparent 52%, black 82%, black 100%);
}

body.pricing-page .pricing-free__text,
body.pricing-page .pricing-free__cta {
  position: relative;
  z-index: 1;
}

body.pricing-page .pricing-free__label {
  display: inline-block;
  margin: 0 0 0.1rem;
  font-family: "Caveat", cursive;
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--mint-deep);
  transform: rotate(-1.2deg);
}

body.pricing-page .pricing-free__text h2 {
  margin: 0 0 1.1rem;
  font-size: 1.5rem;
}

body.pricing-page .pricing-free__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 0.7rem 2.4rem;
}

body.pricing-page .pricing-free__list li {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.4;
}

/* a small hand-drawn tick, not a stock icon */
body.pricing-page .pricing-free__check {
  flex-shrink: 0;
  width: 14px;
  height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3,12.5 C5,14 7,16.5 9.5,19 C13.5,13.5 17,8.5 21,4.5' stroke='%233a9f87' stroke-width='2.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    no-repeat center / contain;
  transform: translateY(2px) rotate(-3deg);
}

body.pricing-page .pricing-free__cta {
  flex-shrink: 0;
}

/* =========================================================
   The two optional/automatic add-ons — explicitly not framed
   as alternatives to each other.
   ========================================================= */
body.pricing-page .pricing-addons {
  padding: 1rem 0 1.5rem;
}

body.pricing-page .pricing-addons__title {
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  margin: 0 0 1.1rem;
  text-align: center;
}

body.pricing-page .pricing-addon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
}

body.pricing-page .pricing-addon {
  border-radius: 16px;
  padding: 1.5rem 1.5rem 1.3rem;
  background: #ffffff;
  border: 1px solid rgba(22, 40, 74, 0.08);
  box-shadow: 0 16px 30px rgba(22, 40, 74, 0.06), 0 6px 12px rgba(22, 40, 74, 0.05);
}

body.pricing-page .pricing-addon--mint {
  background: #f3fbf8;
  border-color: rgba(95, 216, 187, 0.45);
}

body.pricing-page .pricing-addon--navy {
  background: #f4f6fa;
  border-color: rgba(45, 69, 115, 0.25);
}

body.pricing-page .pricing-addon--gold {
  background: #fdf8ee;
  border-color: rgba(245, 166, 35, 0.4);
}

/* Two notes in a row under the cards: tighten the gap between them */
body.pricing-page .pricing-addons__note + .pricing-addons__note {
  margin-top: 0.6rem;
}

body.pricing-page .pricing-addon__label {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: "Playfair Display", serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
}

body.pricing-page .pricing-addon__tag {
  font-family: var(--font-base);
  font-weight: 600;
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(22, 40, 74, 0.08);
  color: var(--accent-deep);
}

body.pricing-page .pricing-addon__price {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  font-size: 1.9rem;
  margin: 0.6rem 0 0;
  color: var(--ink);
}

body.pricing-page .pricing-addon__price span {
  font-family: var(--font-base);
  font-weight: 500;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

body.pricing-page .pricing-addon__desc {
  margin: 0.6rem 0 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.55;
}

body.pricing-page .pricing-addon__footnote {
  margin: 0.7rem 0 0;
  font-size: 0.78rem;
  color: var(--ink-soft);
}

body.pricing-page .pricing-addon__footnote a {
  color: var(--accent);
  font-weight: 600;
}

body.pricing-page .pricing-addons__note {
  margin: 1.6rem auto 0;
  max-width: 54ch;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
  body.pricing-page .pricing-free {
    flex-direction: column;
    align-items: flex-start;
  }

  body.pricing-page .pricing-free__list {
    grid-template-columns: repeat(2, auto);
  }

  body.pricing-page .pricing-free__cta {
    width: 100%;
  }

  /* stacked layout: text sits above the button instead of beside it, so
     the fade needs to run top-to-bottom instead of the desktop diagonal
     to still land "faded over text, visible at the button". */
  body.pricing-page .pricing-free::before {
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, transparent 62%, black 90%, black 100%);
    mask-image: linear-gradient(180deg, transparent 0%, transparent 62%, black 90%, black 100%);
  }

  body.pricing-page .pricing-addon-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  body.pricing-page .pricing-free__list {
    grid-template-columns: 1fr;
  }
}
