/*
 * Pricing page — /pricing/
 * Color palette matches landing-page.css:
 *   --primary    #c96442
 *   --background #faf9f5
 *   --foreground #3d3929
 *   --border     #dad9d4
 *   --muted      #7a7568
 */

/* ── Page shell ─────────────────────────────────────────────────────────────── */

.ash-pricing {
  background: #faf9f5;
  color: #3d3929;
  font-family: inherit;
  padding: 0 0 80px;
}

.ash-pricing__hero {
  text-align: center;
  padding: 64px 24px 48px;
  max-width: 640px;
  margin: 0 auto;
}

.ash-pricing__hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: #3d3929;
  margin: 0 0 16px;
  line-height: 1.15;
  text-wrap: balance;
}

.ash-pricing__hero p {
  font-size: 1.125rem;
  color: #7a7568;
  margin: 0;
  text-wrap: balance;
}

/* ── Sections ───────────────────────────────────────────────────────────────── */

.ash-pricing__section {
  max-width: 1100px;
  margin: 0 auto 72px;
  padding: 0 24px;
}

.ash-pricing__section-header {
  text-align: center;
  margin-bottom: 40px;
}

.ash-pricing__section-header h2 {
  font-size: 1.625rem;
  font-weight: 700;
  color: #3d3929;
  margin: 0 0 8px;
  text-wrap: balance;
}

.ash-pricing__section-header p {
  font-size: 1rem;
  color: #7a7568;
  margin: 0;
  text-wrap: balance;
}

/* ── Grid ───────────────────────────────────────────────────────────────────── */

.ash-pricing__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  align-items: start;
}

/* ── Card ───────────────────────────────────────────────────────────────────── */

.ash-pricing__card {
  background: #fff;
  border: 1.5px solid #dad9d4;
  border-radius: 12px;
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow 0.15s ease;
}

.ash-pricing__card:hover {
  box-shadow: 0 4px 20px rgba(61, 57, 41, 0.08);
}

.ash-pricing__card--featured {
  border-color: #c96442;
  box-shadow: 0 0 0 1px #c96442;
}

.ash-pricing__card--current {
  border-color: #6b9e6b;
  box-shadow: 0 0 0 1px #6b9e6b;
}

/* Featured badge */

.ash-pricing__badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: #c96442;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 12px;
  border-radius: 20px;
  white-space: nowrap;
}

/* "Best Value" badge variant — forest green */
.ash-pricing__card:has(.ash-pricing__badge) .ash-pricing__badge:not(:empty) {
  /* default is terracotta — set above */
}

.ash-pricing__badge--best-value {
  background: #1f6f43;
}

/* Plan label + avatar + price */

.ash-pricing__plan-label {
  font-size: 1.0625rem;
  font-weight: 700;
  color: #3d3929;
  margin: 0 0 6px;
}

.ash-pricing__avatar {
  font-size: 0.875rem;
  color: #7a7568;
  margin: 0 0 14px;
  line-height: 1.5;
  text-wrap: balance;
}

.ash-pricing__price {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin-bottom: 24px;
  min-height: 42px;
}

.ash-pricing__price-amount {
  font-size: 2rem;
  font-weight: 700;
  color: #3d3929;
  line-height: 1;
}

.ash-pricing__price-period {
  font-size: 0.9375rem;
  color: #7a7568;
  margin-left: 2px;
}

.ash-pricing__price--tbd .ash-pricing__price-amount {
  font-size: 1.0625rem;
  color: #7a7568;
  font-weight: 500;
}

/* Features list */

.ash-pricing__features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ash-pricing__features li {
  font-size: 0.9375rem;
  color: #5a5647;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.4;
}

.ash-pricing__features li::before {
  content: '';
  display: inline-block;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Ccircle cx='8' cy='8' r='7.5' stroke='%23c96442'/%3E%3Cpath d='M4.5 8l2.5 2.5 4.5-5' stroke='%23c96442' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 16px;
  background-repeat: no-repeat;
}

/* CTA button */

.ash-pricing__cta {
  display: block;
  width: 100%;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  border: 2px solid #c96442;
  background: transparent;
  color: #c96442;
  transition: background 0.15s ease, color 0.15s ease;
  text-decoration: none;
}

.ash-pricing__cta:hover:not(:disabled) {
  background: #c96442;
  color: #fff;
}

.ash-pricing__card--featured .ash-pricing__cta {
  background: #c96442;
  color: #fff;
}

.ash-pricing__card--featured .ash-pricing__cta:hover:not(:disabled) {
  background: #b3583a;
  border-color: #b3583a;
}

.ash-pricing__cta--current,
.ash-pricing__cta:disabled {
  background: #f0ede7;
  border-color: #dad9d4;
  color: #7a7568;
  cursor: default;
}

/* Error message */

.ash-pricing__error {
  font-size: 0.875rem;
  color: #c0392b;
  margin: 10px 0 0;
  text-align: center;
}

/* Trial note */

.ash-pricing__trial-note {
  font-size: 0.8125rem;
  color: #7a7568;
  text-align: center;
  margin-top: 10px;
}

/* ── Divider ─────────────────────────────────────────────────────────────────── */

.ash-pricing__divider {
  border: none;
  border-top: 1px solid #dad9d4;
  max-width: 1100px;
  margin: 0 auto 72px;
}

/* ── FAQ / bottom note ───────────────────────────────────────────────────────── */

.ash-pricing__footer-note {
  text-align: center;
  padding: 0 24px;
  max-width: 600px;
  margin: 0 auto;
  color: #7a7568;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.ash-pricing__footer-note a {
  color: #c96442;
  text-decoration: none;
}

.ash-pricing__footer-note a:hover {
  text-decoration: underline;
}

/* ── Responsive ─────────────────────────────────────────────────────────────── */

@media (max-width: 640px) {
  .ash-pricing__hero {
    padding: 48px 20px 36px;
  }

  .ash-pricing__section {
    padding: 0 16px;
    margin-bottom: 56px;
  }

  .ash-pricing__card {
    padding: 28px 20px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ash-pricing__card,
  .ash-pricing__cta {
    transition: none;
  }
}
