/* Pricing page, V2 editorial edition. Plan cards in two bracketed frames
 * (Individual and Equipe) side by side, the credits band, the comparison
 * table in numbered groups, the add-ons (one wide card and a row) and the
 * questions. Builds on team-pages.css and its tokens. */

.team-page :is(#planos-e-precos, #creditos, #comparar, #add-ons, #perguntas, [id^="plano-"]) {
  scroll-margin-top: calc(var(--soceo-nav-height, 76px) + 20px);
}

.team-page .pricing-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Opening: one column, the title carries the page. */
.team-page .team-page__hero.pricing-hero {
  grid-template-columns: minmax(0, 1fr);
  min-height: 0;
  padding-block: clamp(34px, 4vw, 64px) clamp(30px, 3.4vw, 48px);
}
.team-page .pricing-hero .team-page__lede { max-width: 44rem; }
.team-page .pricing-hero__note {
  margin-top: 18px;
  color: var(--team-muted);
  font: 400 .75rem/1.5 var(--team-mono);
  letter-spacing: .05em;
}
.team-page .team-page__action.pricing-action--quiet {
  border: 1px solid #b9a8c7;
  background: var(--team-panel);
  color: var(--brand-navy);
}
.team-page .team-page__action.pricing-action--quiet:hover { background: #f4eff7; }

/* Marks shared by cards and table */
.team-page .pricing-mark {
  display: inline-grid;
  flex: none;
  width: 18px;
  height: 18px;
  place-items: center;
  color: var(--team-accent);
}
.team-page .pricing-mark__icon { width: 16px; height: 16px; }
.team-page .pricing-mark--soon::before {
  content: "";
  width: 9px;
  height: 9px;
  border: 1.4px dashed var(--team-accent);
  border-radius: 50%;
}
.team-page .pricing-soon {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border: 1px dashed #a48fbf;
  border-radius: 999px;
  background: #f6f1fa;
  color: var(--team-accent);
  font: 400 .64rem/1.4 var(--team-mono);
  letter-spacing: .07em;
  text-transform: uppercase;
  white-space: nowrap;
  vertical-align: .08em;
}
.team-page .pricing-dash { color: #a99fb5; font: 400 1.4rem/1 var(--team-mono); }
.team-page .pricing-addon {
  color: var(--team-ink);
  font: 400 .72rem/1.4 var(--team-mono);
  letter-spacing: .07em;
  text-transform: uppercase;
}
.team-page .pricing-tbd { color: var(--team-muted); }

/* Plan frames */
.team-page .pricing-plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 36px);
  padding-block: 26px clamp(40px, 4.4vw, 64px);
}
.team-page .pricing-frame {
  position: relative;
  min-width: 0;
  padding-top: 18px;
  border: 1px solid var(--team-rule);
  border-radius: 6px;
  background: var(--team-panel);
}
.team-page .pricing-frame::before,
.team-page .pricing-frame::after {
  content: "";
  position: absolute;
  top: -7px;
  width: 14px;
  height: 14px;
  border-top: 1.5px solid var(--team-accent);
  pointer-events: none;
}
.team-page .pricing-frame::before { left: -7px; border-left: 1.5px solid var(--team-accent); }
.team-page .pricing-frame::after { right: -7px; border-right: 1.5px solid var(--team-accent); }
.team-page .pricing-frame--equipe {
  background: var(--destination-lilac) var(--destination-grain);
}
.team-page .pricing-frame__label {
  position: absolute;
  top: 0;
  left: 50%;
  margin: 0;
  padding: 5px 16px;
  border: 1px solid var(--team-rule);
  border-radius: 4px;
  background: var(--team-bg, #faf9f6);
  color: var(--team-accent);
  font: 400 .75rem/1.4 var(--team-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  transform: translate(-50%, -50%);
}
.team-page .pricing-frame__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  height: 100%;
}
.team-page .pricing-card {
  display: grid;
  grid-template-rows: auto auto auto auto 1fr;
  align-content: start;
  gap: 18px;
  min-width: 0;
  padding: clamp(22px, 2.2vw, 32px) clamp(18px, 2vw, 28px) 30px;
}
.team-page .pricing-card + .pricing-card { border-left: 1px solid var(--team-rule); }
.team-page .pricing-card__head { display: grid; gap: 10px; min-height: 10.6rem; align-content: start; }
.team-page .pricing-card__glyph {
  position: relative;
  width: 24px;
  height: 24px;
  margin-bottom: 14px;
  border: 1.4px solid var(--team-accent);
  border-radius: 50%;
}
.team-page .pricing-card__glyph::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--team-accent);
}
.team-page .pricing-card__glyph--2::after { width: 10px; height: 10px; background: transparent; border: 1.4px solid var(--team-accent); }
.team-page .pricing-card__glyph--3 { border-radius: 3px; }
.team-page .pricing-card__glyph--3::after { width: 10px; height: 10px; border-radius: 50%; background: transparent; border: 1.4px solid var(--team-accent); }
.team-page .pricing-card__glyph--4 { border-radius: 3px; background: var(--team-accent); }
.team-page .pricing-card__glyph--4::after { width: 9px; height: 9px; background: var(--destination-lilac); }
.team-page .pricing-card__head h3 {
  font-size: clamp(1.7rem, 2.4vw, 2.2rem);
  line-height: 1.02;
  letter-spacing: -.032em;
}
.team-page .pricing-card__head p {
  max-width: 28ch;
  color: var(--team-muted);
  font-size: .92rem;
  line-height: 1.55;
}
.team-page .pricing-card__price {
  display: grid;
  gap: 4px;
  padding-top: 16px;
  border-top: 1px solid var(--team-rule);
}
.team-page .pricing-card__price strong {
  color: var(--team-ink);
  font: 600 1.55rem/1.1 var(--team-display);
  letter-spacing: -.02em;
}
.team-page .pricing-card__price span {
  color: var(--team-muted);
  font: 400 .72rem/1.4 var(--team-mono);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.team-page .team-page__action.pricing-card__cta {
  width: 100%;
  justify-content: space-between;
  padding-inline: 14px;
  font-size: .84rem;
  white-space: nowrap;
}
.team-page .pricing-frame--individual .pricing-card__cta {
  border: 1px solid #b9a8c7;
  background: var(--team-panel);
  color: var(--brand-navy);
}
.team-page .pricing-frame--individual .pricing-card__cta:hover { background: #f4eff7; }
.team-page .pricing-card__lead {
  color: var(--team-ink);
  font-size: .86rem;
  font-weight: 600;
}
.team-page .pricing-card__list { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; }
.team-page .pricing-card__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--team-ink);
  font-size: .9rem;
  line-height: 1.45;
}
.team-page .pricing-card__list li.is-soon { color: var(--team-muted); }
.team-page .pricing-card__list .pricing-soon { margin-left: 4px; }

/* Credits band */
.team-page .pricing-credits {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr) auto;
  align-items: center;
  gap: 18px clamp(24px, 4vw, 56px);
  margin: 0 var(--team-inset) clamp(34px, 4vw, 56px);
  padding: clamp(22px, 2.6vw, 34px) clamp(22px, 3vw, 40px);
  border: 1px solid var(--team-rule);
  border-radius: 6px;
  background: var(--brand-navy);
}
.team-page .pricing-credits .team-page__label { color: #c9b8ea; }
.team-page .pricing-credits h2 {
  margin-top: 8px;
  color: #fff;
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  line-height: 1.12;
  letter-spacing: -.025em;
}
.team-page .pricing-credits > p { color: #d7dcec; font-size: .95rem; line-height: 1.6; }
.team-page .pricing-credits .team-page__example-link {
  color: #fff;
  white-space: nowrap;
  text-decoration-color: #8d84b8;
}
.team-page .pricing-credits .team-page__example-link:hover { color: #e6dcfb; }

/* Section openings */
.team-page .pricing-intro { display: grid; gap: 10px; margin-bottom: 28px; }
.team-page .pricing-intro h2 { max-width: 22ch; }
.team-page .pricing-intro > p { color: var(--team-muted); font-size: 1rem; }
.team-page .pricing-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  color: var(--team-muted);
  font-size: .84rem;
}
.team-page .pricing-legend li { display: flex; align-items: center; gap: 8px; }

/* Comparison table */
.team-page .pricing-table__scroll {
  border: 1px solid var(--team-rule);
  border-radius: 6px;
  background: var(--team-panel);
}
.team-page .pricing-table__scroll:focus-visible { outline: 2px solid var(--team-accent); outline-offset: 3px; }
.team-page .pricing-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}
.team-page .pricing-table th,
.team-page .pricing-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--team-rule);
  color: var(--team-ink);
  font-size: .9rem;
  line-height: 1.4;
  text-align: center;
  vertical-align: middle;
}
.team-page .pricing-table :is(th, td) + :is(th, td) { border-left: 1px solid var(--team-rule); }
.team-page .pricing-table tbody th[scope="row"] {
  width: 34%;
  font-weight: 400;
  text-align: left;
}
.team-page .pricing-table thead :is(th, td) {
  position: sticky;
  top: var(--soceo-nav-height, 72px);
  z-index: 2;
  background: var(--team-panel);
  border-bottom: 1px solid var(--team-rule);
}
.team-page .pricing-table__corner { width: 34%; }
.team-page .pricing-table thead th { padding: 20px 14px 16px; }
.team-page .pricing-table__plan {
  display: block;
  font: 600 1.12rem/1.2 var(--team-display);
  letter-spacing: -.01em;
}
.team-page .pricing-table__price {
  display: block;
  margin-top: 3px;
  color: var(--team-muted);
  font: 400 .72rem/1.4 var(--team-mono);
  letter-spacing: .05em;
}
.team-page .pricing-table__cta {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  padding: 6px 12px;
  border: 1px solid #b9a8c7;
  border-radius: 999px;
  color: var(--brand-navy);
  font-size: .78rem;
  font-weight: 600;
  line-height: 1.2;
}
.team-page .pricing-table__cta:hover { background: #f4eff7; }
.team-page .pricing-table__group-head :is(th, td) {
  padding-block: 13px;
  background: var(--destination-lilac) var(--destination-grain);
  color: var(--team-muted);
  font: 400 .68rem/1.4 var(--team-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.team-page .pricing-table__group-head th {
  color: var(--team-ink);
  font: 600 1.02rem/1.3 var(--team-display);
  letter-spacing: -.005em;
  text-align: left;
  text-transform: none;
}
.team-page .pricing-table__group-head th span {
  margin-right: 8px;
  color: var(--team-accent);
  font: 400 .72rem/1 var(--team-mono);
  letter-spacing: .06em;
}
.team-page .pricing-table__group + .pricing-table__group .pricing-table__group-head :is(th, td) {
  border-top: 10px solid var(--team-bg, #faf9f6);
}
.team-page .pricing-table tbody:last-child tr:last-child :is(th, td) { border-bottom: 0; }

/* Add-ons */
.team-page .pricing-addon-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  overflow: hidden;
  border: 1px solid var(--team-rule);
  border-radius: 6px;
  background: var(--team-panel);
}
.team-page .pricing-addon-feature__main {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: clamp(22px, 2.6vw, 34px);
  border-right: 1px solid var(--team-rule);
}
.team-page .pricing-addon-feature__top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 18px;
}
.team-page .pricing-addon-feature h3 { font-size: clamp(1.5rem, 2.2vw, 1.9rem); letter-spacing: -.028em; }
.team-page .pricing-addon-feature__main > p { color: var(--team-muted); line-height: 1.6; }
.team-page .pricing-addon-feature__price { display: grid; gap: 2px; }
.team-page .pricing-addon-feature__price span {
  color: var(--team-muted);
  font: 400 .7rem/1.4 var(--team-mono);
  letter-spacing: .07em;
  text-transform: uppercase;
}
.team-page .pricing-addon-feature__price strong {
  color: var(--team-ink);
  font: 600 1.7rem/1.1 var(--team-display);
  letter-spacing: -.02em;
}
.team-page .pricing-addon-feature__list {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: clamp(22px, 2.6vw, 34px);
  background: var(--destination-lilac) var(--destination-grain);
}
.team-page .pricing-addon-feature__list .pricing-card__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; }
.team-page .pricing-addon-card__where {
  color: var(--team-accent);
  font: 400 .68rem/1.4 var(--team-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.team-page .pricing-addons__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.team-page .pricing-addon-card {
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: 10px;
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--team-rule);
  border-radius: 6px;
  background: var(--team-panel);
}
.team-page .pricing-addon-card h3 { font-size: 1.12rem; line-height: 1.3; }
.team-page .pricing-addon-card h3 .pricing-soon { margin-left: 4px; }
.team-page .pricing-addon-card > p:not([class]) { color: var(--team-muted); font-size: .9rem; line-height: 1.55; }
.team-page .pricing-addon-card__where { margin-top: 6px; }
.team-page .pricing-addon-card__price {
  color: var(--team-ink);
  font: 600 1.15rem/1.2 var(--team-display);
}
.team-page .pricing-addons__more { display: flex; justify-content: center; margin-top: 26px; }

/* Questions */
.team-page .pricing-faq {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 32px clamp(32px, 5vw, 84px);
}
.team-page .pricing-faq__copy { display: grid; align-content: start; gap: 12px; }
.team-page .pricing-faq__copy h2 { margin-bottom: 4px; }
.team-page .pricing-faq__item { border-top: 1px solid var(--team-rule); }
.team-page .pricing-faq__item:last-child { border-bottom: 1px solid var(--team-rule); }
.team-page .pricing-faq__item summary {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-block: 12px;
  color: var(--team-ink);
  font: 600 1.06rem/1.35 var(--team-display);
  cursor: pointer;
  list-style: none;
}
.team-page .pricing-faq__item summary::-webkit-details-marker { display: none; }
.team-page .pricing-faq__item summary span { color: var(--team-accent); font: 400 1.3rem/1 var(--team-mono); transition: transform .16s ease; }
.team-page .pricing-faq__item[open] summary span { transform: rotate(45deg); }
.team-page .pricing-faq__item summary:focus-visible { outline: 2px solid var(--team-accent); outline-offset: 3px; }
.team-page .pricing-faq__item p { padding-bottom: 18px; max-width: 62ch; color: var(--team-muted); line-height: 1.62; }

@media (max-width: 1180px) {
  .team-page .pricing-plans { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .team-page .pricing-addons__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-page .pricing-credits { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
  .team-page .pricing-credits .team-page__example-link { grid-column: 2; }
}

@media (max-width: 860px) {
  .team-page .pricing-credits,
  .team-page .pricing-faq,
  .team-page .pricing-addon-feature { grid-template-columns: minmax(0, 1fr); }
  .team-page .pricing-credits .team-page__example-link { grid-column: auto; }
  .team-page .pricing-addon-feature__main { border-right: 0; border-bottom: 1px solid var(--team-rule); }
  /* The table keeps its columns and scrolls sideways, with the feature column pinned. */
  .team-page .pricing-table__scroll { overflow-x: auto; overscroll-behavior-x: contain; }
  .team-page .pricing-table { min-width: 720px; }
  .team-page .pricing-table thead :is(th, td) { position: static; }
  .team-page .pricing-table tbody th[scope="row"],
  .team-page .pricing-table__corner,
  .team-page .pricing-table__group-head th {
    position: sticky;
    left: 0;
    z-index: 1;
    width: 190px;
    background: var(--team-panel);
    box-shadow: 1px 0 0 var(--team-rule);
  }
  .team-page .pricing-table__group-head th { background: var(--destination-lilac) var(--destination-grain); }
  .team-page .pricing-table :is(th, td) { padding: 12px 12px; font-size: .84rem; }
}

@media (max-width: 640px) {
  .team-page .pricing-frame__cards,
  .team-page .pricing-addons__grid,
  .team-page .pricing-addon-feature__list .pricing-card__list { grid-template-columns: minmax(0, 1fr); }
  .team-page .pricing-card + .pricing-card { border-left: 0; border-top: 1px solid var(--team-rule); }
  .team-page .pricing-card__head { min-height: 0; }
  .team-page .pricing-frame { padding-top: 14px; }
  .team-page .pricing-table { min-width: 640px; }
  .team-page .pricing-table tbody th[scope="row"],
  .team-page .pricing-table__corner,
  .team-page .pricing-table__group-head th { width: 148px; }
  .team-page .pricing-table__cta { padding-inline: 8px; font-size: .72rem; }
}

@media (prefers-reduced-motion: reduce) {
  .team-page .pricing-faq__item summary span { transition: none; }
}
