/*
 * Taxly V67 — premium interactive pricing.
 * Visual/commercial layer only. Official forms and tax engine are untouched.
 */
.taxly-v67-pricing {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 8%, rgba(193, 154, 75, .14), transparent 30%),
    radial-gradient(circle at 88% 18%, rgba(8, 64, 52, .10), transparent 34%),
    linear-gradient(180deg, #f6f2e9 0%, #fbfaf7 44%, #f2efe8 100%);
}

.taxly-v67-pricing::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background-image: linear-gradient(rgba(10, 56, 46, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(10, 56, 46, .035) 1px, transparent 1px);
  background-size: 42px 42px;
}

.taxly-v67-pricing > .container { position: relative; z-index: 1; }

.taxly-price-studio {
  max-width: 1180px;
  margin: 34px auto 0;
  border: 1px solid rgba(9, 55, 45, .13);
  border-radius: 34px;
  padding: clamp(18px, 3vw, 34px);
  background: rgba(255, 255, 255, .87);
  box-shadow: 0 30px 90px rgba(10, 45, 37, .13), inset 0 1px 0 rgba(255, 255, 255, .95);
  backdrop-filter: blur(18px);
}

.taxly-price-studio-head {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, .7fr);
  gap: 28px;
  align-items: end;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(9, 55, 45, .10);
}

.taxly-v67-free-pill,
.taxly-v67-fixed-pill,
.taxly-v67-recommendation,
.taxly-v67-plan-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  letter-spacing: .01em;
  font-weight: 800;
}

.taxly-v67-free-pill {
  padding: 8px 13px;
  margin-bottom: 12px;
  color: #fff;
  background: linear-gradient(135deg, #0a3d33, #176c58);
  box-shadow: 0 10px 26px rgba(10, 61, 51, .20);
}

.taxly-price-studio-head h3 {
  margin: 0 0 8px;
  color: #0a2f27;
  font-size: clamp(1.45rem, 2.7vw, 2.15rem);
  line-height: 1.15;
}

.taxly-price-studio-head p { margin: 0; color: #5f6e69; }

.taxly-refund-estimate-control {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  border: 1px solid rgba(9, 55, 45, .12);
  border-radius: 22px;
  background: linear-gradient(180deg, #fff, #f8f6f0);
  box-shadow: 0 14px 32px rgba(15, 53, 44, .07);
}

.taxly-refund-estimate-control > span {
  font-size: .88rem;
  font-weight: 800;
  color: #52625d;
}

.taxly-refund-estimate-input {
  display: flex;
  align-items: center;
  gap: 8px;
  direction: ltr;
}

.taxly-refund-estimate-input input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0;
  color: #082f26;
  background: transparent;
  font: 900 clamp(1.8rem, 4vw, 2.7rem)/1.1 inherit;
}

.taxly-refund-estimate-input b { color: #a47925; font-size: 1.35rem; }

.taxly-refund-estimate-control input[type="range"] {
  width: 100%;
  accent-color: #0c5b49;
  cursor: pointer;
}

.taxly-v67-price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.taxly-v67-price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 24px;
  border: 1px solid rgba(9, 55, 45, .12);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,.99), rgba(249,247,242,.98));
  box-shadow: 0 18px 44px rgba(10, 45, 37, .08);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.taxly-v67-price-card:hover,
.taxly-v67-price-card.is-selected,
.taxly-v67-price-card.is-recommended {
  transform: translateY(-4px);
  border-color: rgba(183, 137, 47, .58);
  box-shadow: 0 26px 64px rgba(10, 45, 37, .14), 0 0 0 3px rgba(193, 154, 75, .08);
}

.taxly-v67-price-card.is-recommended::after {
  content: "";
  position: absolute;
  inset: -1px;
  border: 1px solid rgba(193, 154, 75, .50);
  border-radius: inherit;
  pointer-events: none;
}

.taxly-v67-ai-card {
  color: #f9f7f1;
  border-color: rgba(213, 181, 109, .34);
  background:
    radial-gradient(circle at 85% 8%, rgba(210, 174, 91, .20), transparent 32%),
    linear-gradient(155deg, #0b3028 0%, #0c4438 55%, #071f1a 100%);
  box-shadow: 0 24px 60px rgba(6, 35, 29, .24);
}

.taxly-v67-ai-card h3,
.taxly-v67-ai-card .taxly-v67-live-price strong { color: #fff; }
.taxly-v67-ai-card p,
.taxly-v67-ai-card li,
.taxly-v67-ai-card .taxly-v67-live-price small { color: rgba(255,255,255,.76); }
.taxly-v67-ai-card li::marker { color: #d3b06b; }

.taxly-v67-price-card-top {
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 20px;
}

.taxly-v67-plan-tag {
  padding: 7px 11px;
  color: #0d5c4a;
  background: #e8f3ef;
  font-size: .78rem;
}

.taxly-v67-ai-card .taxly-v67-plan-tag {
  color: #2b2110;
  background: linear-gradient(135deg, #f2dfb0, #c99b43);
}

.taxly-v67-fixed-pill,
.taxly-v67-recommendation {
  padding: 6px 10px;
  font-size: .73rem;
}

.taxly-v67-fixed-pill {
  color: #efe0bd;
  border: 1px solid rgba(232, 203, 137, .35);
  background: rgba(255,255,255,.08);
}

.taxly-v67-recommendation {
  color: #6d4b09;
  background: #fff1cc;
  border: 1px solid rgba(191, 143, 49, .28);
}

.taxly-v67-price-card h3 {
  margin: 0 0 13px;
  color: #0b332a;
  font-size: 1.28rem;
}

.taxly-v67-live-price {
  display: grid;
  gap: 4px;
  min-height: 78px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(9, 55, 45, .10);
}

.taxly-v67-ai-card .taxly-v67-live-price { border-bottom-color: rgba(255,255,255,.14); }

.taxly-v67-live-price strong {
  color: #0a3d33;
  font-size: clamp(2rem, 3.3vw, 2.65rem);
  line-height: 1;
  letter-spacing: -.03em;
}

.taxly-v67-live-price small { color: #6b7874; font-weight: 700; }
.taxly-v67-price-card p { color: #52635e; line-height: 1.65; }
.taxly-v67-price-card ul { margin: 4px 0 22px; padding-inline-start: 19px; color: #445550; line-height: 1.8; }
.taxly-v67-price-card .btn { margin-top: auto; width: 100%; }

.taxly-v67-price-insight {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 22px;
  padding: 18px 20px;
  border: 1px solid rgba(183, 137, 47, .24);
  border-radius: 20px;
  background: linear-gradient(135deg, #fff8e6, #fbf7ee);
  color: #3d3c31;
}

.taxly-v67-price-insight > span { color: #a57820; font-size: 1.2rem; }
.taxly-v67-price-insight strong { display: block; color: #2e392f; margin-bottom: 3px; }
.taxly-v67-price-insight p { margin: 0; color: #64665d; line-height: 1.55; }

.taxly-v67-pricing-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  padding: 18px 20px;
  border: 1px dashed rgba(9, 55, 45, .18);
  border-radius: 20px;
  background: rgba(241, 246, 243, .70);
}

.taxly-v67-pricing-footer p { margin: 0; color: #50615c; }
.taxly-v67-pricing-footer .btn { flex: 0 0 auto; }

.taxly-pricing-consent { border-color: rgba(183, 137, 47, .30) !important; background: #fffaf0 !important; }

@media (max-width: 980px) {
  .taxly-price-studio-head { grid-template-columns: 1fr; align-items: stretch; }
  .taxly-v67-price-grid { grid-template-columns: 1fr; }
  .taxly-v67-price-card { min-height: auto; }
}

@media (max-width: 680px) {
  .taxly-price-studio { border-radius: 24px; padding: 14px; }
  .taxly-v67-price-card { border-radius: 22px; padding: 20px; }
  .taxly-v67-pricing-footer { align-items: stretch; flex-direction: column; }
  .taxly-v67-pricing-footer .btn { width: 100%; }
  .taxly-v67-price-card-top { align-items: flex-start; flex-wrap: wrap; }
}

/* V67 contrast guard: keep the premium AI card readable even after generic card rules. */
.taxly-v67-price-card.taxly-v67-ai-card h3,
.taxly-v67-price-card.taxly-v67-ai-card .taxly-v67-live-price strong {
  color: #fff;
}
.taxly-v67-price-card.taxly-v67-ai-card p,
.taxly-v67-price-card.taxly-v67-ai-card li,
.taxly-v67-price-card.taxly-v67-ai-card .taxly-v67-live-price small {
  color: rgba(255,255,255,.82);
}
.taxly-v67-price-card.taxly-v67-ai-card b,
.taxly-v67-price-card.taxly-v67-ai-card strong:not(.taxly-v67-live-price strong) {
  color: #f4d79c;
}
