/* Furiosa CRM v2: pricing page. Builds on v2.css tokens. */

/* ---------- Hero ---------- */
.pr-hero { padding-block: clamp(8.5rem, 14vw, 11rem) clamp(9rem, 14vw, 12rem); overflow: hidden; }
.pr-hero-in { text-align: center; display: flex; flex-direction: column; align-items: center; }
.pr-hero .display-xl { max-width: 14ch; }
.pr-hero .lede { margin-top: 1.4rem; }

.billing {
  margin-top: 2.2rem; display: inline-flex; align-items: center; gap: .3rem; padding: .35rem;
  border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid var(--dark-line);
}
.billing-opt {
  font: 700 .98rem var(--body); color: var(--on-dark); background: transparent; border: 0; cursor: pointer;
  padding: .7rem 1.3rem; border-radius: 999px; transition: background .2s var(--ease), color .2s var(--ease);
}
.billing-opt[aria-pressed="true"] { background: var(--btn); color: #fff; }
.billing-opt:hover:not([aria-pressed="true"]) { background: rgba(255,255,255,.08); }
.billing-save { margin: 0 .6rem 0 .4rem; font-size: .85rem; font-weight: 700; color: var(--glow); }

.every-plan {
  margin-top: clamp(2.8rem, 5vw, 4rem);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px;
  border-radius: var(--r-lg); overflow: hidden; background: var(--dark-line); border: 1px solid var(--dark-line);
}
.every-plan li { display: flex; align-items: center; gap: .9rem; padding: 1.1rem 1.2rem; background: rgba(6,30,40,.92); color: var(--on-dark-2); font-size: .95rem; line-height: 1.35; }
.every-plan b { display: block; color: #fff; font-size: 1rem; }

/* ---------- Plan cards (pulled up over the hero) ---------- */
.pr-plans { margin-top: clamp(-7rem, -10vw, -5rem); position: relative; z-index: 2; padding-bottom: clamp(4.5rem, 8vw, 7rem); }
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column; gap: 1rem;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1.6rem 1.4rem 1.4rem; box-shadow: 0 1px 0 rgba(8,47,60,.04), 0 24px 50px -34px rgba(8,47,60,.45);
}
.plan-name { font-family: var(--display); font-stretch: 115%; font-weight: 800; font-size: 1.6rem; letter-spacing: -.03em; line-height: 1; }
.plan-desc { margin-top: .45rem; color: var(--muted); font-size: .93rem; line-height: 1.4; }
.plan-price { display: flex; flex-direction: column; gap: .15rem; }
.plan-price .price { font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: clamp(2.2rem, 3.2vw, 2.8rem); line-height: 1; letter-spacing: -.035em; color: var(--navy); font-variant-numeric: tabular-nums; }
.price-note { font-size: .85rem; color: var(--muted); }

.plan-limit { display: grid; gap: .5rem; padding: .8rem .9rem; border-radius: var(--r-md); background: var(--bg); }
.plan-limit-text { display: flex; align-items: center; gap: .5rem; font-weight: 700; font-size: .95rem; color: var(--navy); }
.plan-limit-text .i { width: 20px; height: 20px; color: var(--teal-ink); }
.meter { display: block; height: 6px; border-radius: 3px; background: var(--teal-mid); overflow: hidden; }
.meter span { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--teal-dark), var(--teal)); }

.plan-plus { font-size: .85rem; font-weight: 700; color: var(--teal-ink); }
.plan-feats { display: grid; gap: .5rem; flex: 1; }
.plan-feats li { display: flex; gap: .55rem; align-items: flex-start; font-size: .93rem; line-height: 1.35; }
.plan-feats .i { width: 18px; height: 18px; padding: 3px; flex: none; margin-top: .05rem; border-radius: 50%; background: var(--teal-light); color: var(--teal-ink); }
.plan-cta { width: 100%; margin-top: .4rem; }

/* Most popular */
.plan-featured {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%); color: var(--on-dark);
  border: 1.5px solid var(--teal); box-shadow: 0 0 0 6px rgba(0,176,198,.12), 0 30px 60px -28px rgba(0,176,198,.55);
}
.plan-featured .plan-desc, .plan-featured .price-note { color: var(--on-dark-2); }
.plan-featured .plan-price .price { color: #fff; }
.plan-featured .plan-limit { background: rgba(255,255,255,.07); }
.plan-featured .plan-limit-text { color: #fff; }
.plan-featured .plan-limit-text .i { color: var(--glow); }
.plan-featured .meter { background: rgba(255,255,255,.12); }
.plan-featured .meter span { background: linear-gradient(90deg, var(--teal), var(--glow)); }
.plan-featured .plan-plus { color: var(--glow); }
.plan-featured .plan-feats .i { background: rgba(0,176,198,.2); color: var(--glow); }
.plan-badge {
  position: absolute; top: -.85rem; left: 1.4rem; padding: .3rem .8rem; border-radius: 999px;
  background: var(--glow); color: var(--navy-deep); font-size: .8rem; font-weight: 800;
}

/* Enterprise */
.plan-enterprise {
  background: radial-gradient(120% 90% at 100% 0%, rgba(0,176,198,.35), transparent 60%), var(--navy-deep);
  border-color: var(--navy-deep); color: var(--on-dark); justify-content: space-between; overflow: hidden;
}
.plan-enterprise .plan-desc { color: var(--on-dark-2); }
.ent-art { display: flex; align-items: flex-end; gap: 6px; height: 72px; }
.ent-art span { width: 14px; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, var(--glow), var(--teal-dark)); }
.ent-art span:nth-child(1) { height: 30%; opacity: .5; }
.ent-art span:nth-child(2) { height: 52%; opacity: .7; }
.ent-art span:nth-child(3) { height: 76%; opacity: .85; }
.ent-art span:nth-child(4) { height: 100%; }

@media (max-width: 1100px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .every-plan { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) {
  .plans { grid-template-columns: 1fr; }
  .every-plan { grid-template-columns: 1fr; }
}

/* ---------- Ladder ---------- */
.ladder-sec { padding-block: clamp(4.5rem, 9vw, 7.5rem); overflow: hidden; }
.ladder { display: grid; gap: .7rem; }
.rung {
  display: grid; grid-template-columns: 7rem minmax(0, 1fr) 12rem 8.5rem; align-items: center; gap: 1.2rem;
  padding: .75rem 1rem; border-radius: 14px; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.06);
}
.rung-name { font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; color: #fff; }
.rung-bar { display: block; height: 14px; border-radius: 7px; background: rgba(255,255,255,.06); overflow: hidden; }
.rung-bar span { display: block; height: 100%; border-radius: 7px; background: linear-gradient(90deg, rgba(0,176,198,.5), var(--teal)); box-shadow: 0 0 18px rgba(0,176,198,.45); }
.rung-num { font-weight: 600; color: var(--on-dark); font-size: .95rem; }
.rung-price { text-align: right; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.rung-price small { font-weight: 500; color: var(--on-dark-2); font-size: .8rem; }
.rung-featured { background: rgba(0,176,198,.12); border-color: rgba(127,232,245,.45); }
.rung-featured .rung-bar span { background: linear-gradient(90deg, var(--teal), var(--glow)); }
.rung-ent .rung-bar span { background: repeating-linear-gradient(90deg, var(--glow) 0 10px, transparent 10px 16px); opacity: .7; box-shadow: none; }
.ladder-note { margin-top: 1.2rem; font-size: .88rem; color: var(--on-dark-2); }
@media (max-width: 760px) {
  .rung { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name price" "bar bar" "num num"; gap: .45rem 1rem; }
  .rung-name { grid-area: name; } .rung-price { grid-area: price; } .rung-bar { grid-area: bar; } .rung-num { grid-area: num; font-size: .9rem; color: var(--on-dark-2); }
}

/* ---------- Comparison grid ---------- */
.compare-scroll {
  position: relative; overflow-x: auto; overscroll-behavior-x: contain; border-radius: var(--r-lg);
  background: var(--white); border: 1px solid var(--line); box-shadow: 0 24px 50px -36px rgba(8,47,60,.45);
}
.compare { width: 100%; min-width: 860px; border-collapse: separate; border-spacing: 0; font-size: .95rem; }
.compare th, .compare td { padding: .95rem .8rem; text-align: center; border-bottom: 1px solid var(--line); }
.compare thead th {
  position: sticky; top: 0; background: var(--white); z-index: 1;
  font-family: var(--display); font-stretch: 110%; font-weight: 800; font-size: 1.05rem; letter-spacing: -.01em; color: var(--navy);
  padding-block: 1.2rem 1rem; vertical-align: bottom;
}
.compare thead th:first-child { text-align: left; font-family: var(--body); font-stretch: 100%; font-weight: 700; font-size: .9rem; color: var(--muted); }
.compare tbody th { text-align: left; font-weight: 600; color: var(--text); position: sticky; left: 0; background: var(--white); z-index: 1; min-width: 13rem; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare tbody tr:hover th, .compare tbody tr:hover td { background-color: #f7fbfc; }
.compare .col-featured { background: var(--teal-light); }
.compare tbody tr:hover td.col-featured { background: #d9f3f7; }
.compare thead .col-featured { background: var(--navy); color: #fff; border-radius: 14px 14px 0 0; }
.th-badge { display: block; margin-top: .3rem; font-family: var(--body); font-stretch: 100%; font-size: .72rem; font-weight: 700; color: var(--glow); }
.yes { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--teal); color: var(--navy-deep); }
.yes .i { width: 16px; height: 16px; }
.no { display: inline-block; width: 12px; height: 2px; border-radius: 1px; background: #c3ced3; vertical-align: middle; }
.val { display: inline-block; padding: .25rem .6rem; border-radius: 999px; background: var(--bg); font-weight: 700; font-size: .85rem; color: var(--navy); white-space: nowrap; }
.col-featured .val { background: #fff; }
.compare-hint { display: none; margin-top: .7rem; font-size: .88rem; color: var(--muted); text-align: center; }
@media (max-width: 900px) { .compare-hint { display: block; } .compare tbody th { min-width: 10rem; } }

/* ---------- FAQ spacing on this page ---------- */
.page-pricing .faq summary { font-size: 1.02rem; }

@media (prefers-reduced-motion: reduce) {
  .billing-opt { transition: none; }
}

/* Button colours on this page (a generic link colour rule would otherwise win) */
.page-pricing .btn-dark { color: #fff; }
.page-pricing .btn-primary { color: #fff; }
.page-pricing .plan .btn-ghost { color: var(--navy); }
.page-pricing .plan .btn-ghost:hover { color: #fff; }
.page-pricing .dark .btn-ghost { color: #fff; }
.page-pricing .dark .btn-ghost:hover { color: var(--navy-deep); }
.plan-enterprise { justify-content: flex-start; }
.plan-enterprise .plan-cta { margin-top: auto; }
.plan-enterprise .ent-art { margin-bottom: .6rem; }
