/* Pricing page */

.pricing-hero {
  position: relative; overflow: hidden;
  background: var(--night); color: var(--night-text);
  padding: var(--s6) 0 var(--s6);
}
.pricing-hero::after {
  /* A warm glow low on the right, like the lantern on the home page. */
  content: ""; position: absolute; right: -10%; bottom: -60%;
  width: 60vw; height: 60vw; border-radius: 50%;
  background: radial-gradient(circle, rgba(250, 164, 47, .22), rgba(250, 164, 47, 0) 62%);
  pointer-events: none;
}
.pricing-hero .wrap { position: relative; z-index: 1; }
.pricing-hero h1 {
  font-size: clamp(2.5rem, 6.4vw, 4.25rem);
  font-weight: 800; font-variation-settings: "wdth" 82;
  letter-spacing: -0.025em; line-height: 1; max-width: 14ch;
  animation: rise .8s cubic-bezier(.2, .7, .2, 1) both;
}
.pricing-lede {
  margin-top: var(--s3); max-width: 52ch;
  color: var(--night-muted); font-size: clamp(1.125rem, 1.6vw, 1.25rem);
  animation: rise .8s cubic-bezier(.2, .7, .2, 1) .12s both;
}
.promise {
  list-style: none; padding: 0; margin: var(--s4) 0 0;
  display: flex; flex-wrap: wrap; gap: var(--s1) var(--s3);
  animation: rise .8s cubic-bezier(.2, .7, .2, 1) .24s both;
}
.promise li {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px; border: 1.5px solid var(--night-line); border-radius: 999px;
  font-weight: 700; font-size: 1rem;
}
.promise li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--flame); }

.section-lede { margin-top: var(--s2); color: var(--text-muted); max-width: 60ch; }
.section-night .section-lede { color: var(--night-muted); }

/* Packages */
.pkgs { display: grid; gap: var(--s3); margin-top: var(--s5); align-items: stretch; }
@media (min-width: 900px) { .pkgs { grid-template-columns: repeat(3, 1fr); } }
.pkg, .care {
  position: relative;
  display: flex; flex-direction: column;
  padding: var(--s4);
  border: 2px solid var(--line); border-radius: var(--radius);
  background: #FFFFFF;
  transition: border-color .3s ease, transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s ease;
}
@media (hover: hover) {
  .js .pkg.in:hover, .js .care.in:hover { transform: translateY(-4px); border-color: var(--ink); box-shadow: 0 24px 50px -32px rgba(24, 37, 45, .45); }
}
.pkg-feature { border-color: var(--ink); }
.pkg-flag {
  position: absolute; top: -14px; left: var(--s4);
  padding: 4px 12px; border-radius: 999px;
  background: var(--flame); color: var(--ink);
  font-family: var(--font-display); font-weight: 760; font-size: .875rem;
}
.pkg h3, .care h3 { font-size: 1.375rem; }
.pkg-price {
  margin-top: var(--s2) !important;
  font-family: var(--font-display); font-weight: 800; font-variation-settings: "wdth" 85;
  font-size: clamp(2.6rem, 5vw, 3.4rem); line-height: 1; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.pkg-price span { font-size: .36em; font-weight: 700; color: var(--text-muted); letter-spacing: 0; }
.pkg-price b { font-weight: inherit; }
.pkg-for { margin-top: var(--s2) !important; color: var(--text-muted); }

.ticks { list-style: none; padding: 0; margin: var(--s3) 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; }
/* Included: a green circle with a check. */
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .3em;
  width: 18px; height: 18px; border-radius: 50%; background: var(--pine);
}
.ticks li::after {
  content: ""; position: absolute; left: 5px; top: calc(.3em + 5px);
  width: 8px; height: 4px; border-left: 2px solid #FFFFFF; border-bottom: 2px solid #FFFFFF;
  transform: rotate(-45deg);
}
/* Costs extra: an amber circle with a plus. */
.ticks-plus li::before { background: var(--flame); }
.ticks-plus li::after {
  content: "+"; left: 0; top: .3em; width: 18px; height: 18px; border: 0; transform: none;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 15px; line-height: 1; color: var(--ink);
}
/* Paid to others: a simple amber dot. */
.ticks-dot li::before { width: 8px; height: 8px; top: .62em; left: 5px; background: var(--flame); }
.ticks-dot li::after { display: none; }

/* Care plans */
.cares { display: grid; gap: var(--s3); margin-top: var(--s5); }
@media (min-width: 768px) { .cares { grid-template-columns: 1fr 1fr; } }
.fine-note { margin-top: var(--s3); color: var(--text-muted); font-size: 1rem; max-width: 64ch; }

/* Calculator */
.calc-grid { display: grid; gap: var(--s4); }
@media (min-width: 900px) { .calc-grid { grid-template-columns: 4fr 7fr; gap: var(--s6); align-items: start; } }
.calc {
  display: grid; gap: var(--s3);
  padding: var(--s4); border-radius: var(--radius);
  background: var(--ink); color: var(--night-text);
}
.calc fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.calc legend { font-family: var(--font-display); font-weight: 760; font-size: 1.0625rem; margin-bottom: var(--s1); padding: 0; }
.calc-options { display: grid; gap: var(--s1); }
@media (min-width: 560px) { .calc-options { grid-template-columns: repeat(3, 1fr); } }
.calc-opt {
  position: relative; display: flex; cursor: pointer;
  border: 2px solid var(--night-line); border-radius: 10px;
  transition: border-color .2s ease, background-color .2s ease;
}
.calc-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.calc-opt span { display: grid; gap: 2px; padding: 12px 14px; width: 100%; color: var(--night-muted); font-size: .9375rem; }
.calc-opt b { color: var(--night-text); font-family: var(--font-display); font-size: 1.0625rem; }
.calc-opt:hover { border-color: #4B6370; }
.calc-opt:has(input:checked) { border-color: var(--flame); background: rgba(250, 164, 47, .1); }
.calc-opt:has(input:focus-visible) { outline: 3px solid var(--flame); outline-offset: 3px; }

.calc-out { border-top: 1px solid var(--night-line); padding-top: var(--s3); display: grid; gap: 10px; }
.calc-row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s2); color: var(--night-muted); }
.calc-row b { font-family: var(--font-display); font-weight: 760; font-size: 1.25rem; color: var(--night-text); font-variant-numeric: tabular-nums; }
.calc-total { padding-top: 10px; border-top: 1px dashed var(--night-line); }
.calc-total b { font-size: 1.75rem; }
.calc-monthly b { color: var(--flame); font-size: 1.75rem; }
.calc-row b.bump { animation: bump .35s cubic-bezier(.2, .7, .2, 1); }
@keyframes bump { 0% { transform: translateY(6px); opacity: .3; } 100% { transform: none; opacity: 1; } }
.calc-note { color: var(--night-muted); font-size: .9375rem; }

/* How paying works: a real sequence */
.pay-steps {
  list-style: none; margin: var(--s5) 0 0; padding: 0; counter-reset: pay;
  display: grid; gap: var(--s3);
}
@media (min-width: 900px) { .pay-steps { grid-template-columns: repeat(5, 1fr); } }
.pay-steps li { counter-increment: pay; border-top: 2px solid var(--ink); padding-top: var(--s2); }
.pay-steps li::before {
  content: counter(pay); display: block;
  font-family: var(--font-display); font-weight: 800; font-size: 2.25rem; line-height: 1;
  color: var(--pine); margin-bottom: var(--s1);
}
.pay-steps h3 { font-size: 1.125rem; }
.pay-steps p { margin-top: 6px; color: var(--text-muted); }

/* Extras */
.extras-grid { display: grid; gap: var(--s5); }
@media (min-width: 900px) { .extras-grid { grid-template-columns: 1fr 1fr; gap: var(--s6); } }
.extras-grid h2 { font-size: clamp(1.75rem, 3.2vw, 2.4rem); }

/* Closing call to action */
.pricing-cta { text-align: left; }
.pricing-cta p { margin-top: var(--s2); color: var(--night-muted); max-width: 52ch; }

@media (prefers-reduced-motion: reduce) {
  .pricing-hero h1, .pricing-lede, .promise, .calc-row b.bump { animation: none; }
  .pkg, .care, .calc-opt { transition: none; }
}

/* Founding-client offer */
.founding-wrap { padding: var(--s5) 0 0; }
.founding {
  position: relative;
  display: grid; gap: var(--s4);
  padding: var(--s4);
  border-radius: 16px;
  background: var(--ink); color: var(--night-text);
  border: 2px dashed rgba(250, 164, 47, .7);
  box-shadow: 0 30px 60px -40px rgba(24, 37, 45, .6);
}
@media (min-width: 900px) { .founding { grid-template-columns: 7fr 5fr; gap: var(--s6); padding: var(--s5); align-items: center; } }
.founding-badge {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  background: var(--flame); color: var(--ink);
  font-family: var(--font-display); font-weight: 800; font-size: .9375rem;
}
.founding h2 { margin-top: var(--s2); font-size: clamp(1.9rem, 4vw, 2.75rem); }
.founding-copy > p:not(.founding-badge) { margin-top: var(--s2); color: var(--night-muted); max-width: 52ch; }
.founding-copy .btn { margin-top: var(--s3); }
.founding-prices { margin: 0; display: grid; gap: 10px; }
.founding-prices div {
  display: flex; justify-content: space-between; align-items: baseline; gap: var(--s2);
  padding: 12px 16px; border-radius: 10px; background: rgba(255, 255, 255, .05);
}
.founding-prices dt { font-family: var(--font-display); font-weight: 760; }
.founding-prices dd { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; color: var(--flame); font-variant-numeric: tabular-nums; }
.founding-prices s { margin-right: 8px; font-size: 1rem; font-weight: 700; color: var(--night-muted); }
.founding-fine { margin-top: var(--s2); color: var(--night-muted); font-size: .9375rem; }

/* Calculator: founding price switch */
.calc-switch { display: flex; align-items: center; gap: 14px; cursor: pointer; padding: 12px 14px; border-radius: 10px; border: 2px dashed rgba(250, 164, 47, .55); }
.calc-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.calc-switch-track { position: relative; flex: none; width: 44px; height: 26px; border-radius: 13px; background: var(--night-line); transition: background-color .2s ease; }
.calc-switch-track::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--cream); transition: transform .2s cubic-bezier(.2, .7, .2, 1); }
.calc-switch input:checked + .calc-switch-track { background: var(--flame); }
.calc-switch input:checked + .calc-switch-track::after { transform: translateX(18px); }
.calc-switch input:focus-visible + .calc-switch-track { outline: 3px solid var(--flame); outline-offset: 3px; }
.calc-switch span:last-child { display: grid; color: var(--night-muted); font-size: .9375rem; }
.calc-switch b { color: var(--night-text); font-family: var(--font-display); font-size: 1.0625rem; }
.calc-was { margin-right: 8px; font-size: .9375rem; color: var(--night-muted); text-decoration: line-through; font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .calc-switch-track, .calc-switch-track::after { transition: none; } }
.calc-row .calc-was { margin-left: auto; }

/* The promise: a calm dark panel under the packages. */
.promise-box {
  display: grid; gap: var(--s4); margin-top: var(--s5);
  padding: var(--s4); border-radius: calc(var(--radius) + 4px);
  background: var(--ink); color: var(--night-text);
  box-shadow: 0 30px 60px -40px rgba(24, 37, 45, .6);
}
@media (min-width: 900px) { .promise-box { grid-template-columns: 4fr 7fr; gap: var(--s5); padding: var(--s5); align-items: start; } }
.promise-box .founding-badge { display: inline-block; }
.promise-head h3 { margin-top: var(--s2); font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.1; }
.promise-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); }
@media (min-width: 600px) { .promise-list { grid-template-columns: 1fr 1fr; } }
.promise-list li { padding-top: var(--s2); border-top: 1px solid var(--night-line); color: var(--night-muted); font-size: 1rem; }
.promise-list b { display: block; margin-bottom: 4px; color: var(--night-text); font-family: var(--font-display); font-size: 1.0625rem; }

/* Cancel anytime */
.cancel {
  margin-top: var(--s4); padding: var(--s4);
  border-radius: var(--radius); background: #FFFFFF; border: 2px dashed var(--line);
}
.cancel h3 { font-size: 1.375rem; }
@media (min-width: 900px) { .cancel .ticks { grid-template-columns: 1fr 1fr; gap: 12px var(--s4); } }
