/* Pricing page and the price teaser on the home. Colours and type come from site.css tokens. */

.price-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ------------------------------------------------------------ hero and cycle */
.pricing-hero { padding-bottom: clamp(48px, 6vw, 80px); }
.pricing-hero .launch-lead { margin-bottom: 34px; }
.cycle[hidden] { display: none; }
.cycle { display: flex; width: fit-content; margin: 0 auto; padding: 4px; border: 1px solid var(--ground-line); border-radius: 12px; background: var(--ground-raised); }
.cycle label { position: relative; cursor: pointer; }
.cycle input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.cycle span { display: block; min-width: 108px; padding: 11px 20px; border-radius: 8px; text-align: center; font-size: 15px; font-weight: 600; color: var(--on-ground-soft); transition: background-color 160ms ease, color 160ms ease; }
.cycle input:checked + span { background: var(--action-wine); color: var(--demo-reply-ink); }
.price-workspace .cycle input:checked + span { background: var(--ground-line); color: var(--on-ground); }
.cycle input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.cycle-hint { margin: 14px auto 0; text-align: center; font-size: 14px; color: var(--on-ground-faint); }

/* Only the chosen cycle is shown. */
[data-pricing]:has(input[name="cycle"][value="annual"]:checked) [data-cycle="monthly"],
[data-pricing]:has(input[name="cycle"][value="monthly"]:checked) [data-cycle="annual"] { display: none; }

/* --------------------------------------------------------------- plan cards */
.price-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; }
.price-card { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: 32px; border: 1px solid var(--ground-line); border-radius: 20px; background: var(--ground-raised); }
.price-workspace { background-image: radial-gradient(ellipse 82% 60% at 104% 0%, #57384e, transparent 85%); --ground: #261e22; --on-ground: #faf7f8; --on-ground-soft: #d4ccd0; --on-ground-faint: #c0b4ba; --ghost-line: #64575e; --ground-line: #51434a; --ground-raised: #261e22; --ground-rgb: 38 30 34; color: #faf7f8; border-color: #261e22; }
.price-card .product-name { width: 100%; }
.price-card .product-audience { color: var(--on-ground-faint); }
.price { display: flex; align-items: baseline; gap: 6px; margin-top: 30px; color: var(--on-ground); }
.price b { font-size: clamp(44px, 4.6vw, 60px); line-height: 1; letter-spacing: -.045em; font-weight: 500; font-variant-numeric: tabular-nums; }
.price span { font-size: 17px; color: var(--on-ground-soft); }
.price-note { margin-top: 10px; font-size: 15px; color: var(--on-ground-soft); }
/* How many users, right under the price it changes. */
.price-steppers { width: 100%; margin-top: 24px; }
.stepper { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; }
.stepper + .stepper { border-top: 1px solid var(--ground-line); }
.stepper b { display: block; font-size: 17px; font-weight: 600; }
.stepper small { display: block; margin-top: 3px; font-size: 13px; color: var(--on-ground-faint); }
.stepper-buttons { display: flex; align-items: center; gap: 0; background: var(--ground-tint); border-radius: 10px; }
.stepper-buttons button { width: 40px; height: 40px; border: 0; border-radius: 10px; background: none; font-size: 20px; line-height: 1; color: var(--on-ground); cursor: pointer; transition: transform 120ms ease-out, background-color 150ms ease; }
.stepper-buttons button:hover:not(:disabled) { background: var(--ground-tint); }
.stepper-buttons button:active:not(:disabled) { transform: scale(.95); }
.stepper-buttons button:disabled { opacity: .35; cursor: default; }
.stepper-buttons output { min-width: 44px; text-align: center; font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.price-card .btn { margin-top: 22px; min-height: 48px; font-size: 15px; }
.price-includes { display: grid; gap: 13px; width: 100%; margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--ground-line); }
.price-includes li { display: flex; gap: 11px; font-size: 16px; line-height: 1.45; color: var(--on-ground); }
.price-includes .i { flex: none; width: 17px; height: 17px; margin-top: 3px; color: var(--brand-2); }
.price-extras { margin-top: auto; padding-top: 24px; font-size: 14px; line-height: 1.6; color: var(--on-ground-faint); }

/* ------------------------------------------- one product's price on its own page */
/* A single wide card: price and choice on the left, what comes with it on the right. Both columns
   stretch to the same height and the right one keeps its foot (extra users, guarantee, compare) at
   the bottom, level with the button, so no corner of the card is left empty. */
.price-section { padding-block: clamp(48px, 5vw, 76px); border-top: 1px solid var(--ground-hairline); }
.price-section > .wrap > h2 { max-width: none; margin-bottom: 28px; font-size: clamp(28px, 2.9vw, 40px); }
/* One plan in its own section (Extensão, Workspace, segments): the card keeps the same measure on every page. */
.price-section > .wrap { max-width: 50rem; }
.price-wide { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: stretch; gap: clamp(24px, 3.4vw, 44px); padding: 30px 32px; }
.price-wide-main, .price-wide-side { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.price-wide-side > * { width: 100%; }
@media (min-width: 721px) {
  .price-wide.price-workspace { grid-template-columns: min(46%, 20rem) minmax(0, 1fr); column-gap: clamp(20px, 2.4vw, 32px); }
}
.price-wide .cycle { margin: 22px 0 0; background: none; }
.price-wide .cycle span { min-width: 92px; padding: 9px 16px; font-size: 14px; }
.price-wide .price { margin-top: 22px; }
.price-wide .price b { font-size: clamp(40px, 4vw, 54px); }
.price-wide .end-actions { margin-top: auto; padding-top: 24px; }
.price-wide .btn { margin-top: 0; }
.price-wide .price-steppers { margin-top: 0; }
.price-wide .stepper { padding-block: 9px; }
.price-wide .price-includes { gap: 10px; margin-top: 18px; padding-top: 0; border-top: 0; }
.price-wide .price-includes li { font-size: 15px; }
.price-wide-foot { display: grid; justify-items: start; gap: 12px; margin-top: auto; padding-top: 22px; }
.price-wide .price-extras { margin-top: 0; padding-top: 0; font-size: 13px; }
.price-wide-foot .price-guarantee { margin-top: 0; }
/* On a phone the card is one column, in reading order: price, choices, button, then the list. */
@media (max-width: 720px) {
  .price-wide { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 24px 20px; }
  .price-wide-main, .price-wide-side, .price-wide-foot { display: contents; }
  .price-wide .price-steppers { order: 1; margin-top: 20px; }
  .price-wide .end-actions { order: 2; margin-top: 20px; padding-top: 0; }
  .price-wide .price-guarantee { order: 2; margin-top: 14px; }
  .price-wide .price-includes { order: 3; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--ground-line); }
  .price-wide .price-extras { order: 4; padding-top: 16px; }
  .price-wide-foot .link-arrow, .price-wide-foot > a { order: 5; margin-top: 16px; }
  .price-wide .cycle { align-self: flex-start; margin-top: 18px; }
  .price-wide .price { margin-top: 18px; }
}

/* -------------------------------------------------------------- comparison */
.price-compare { border-top: 1px solid var(--ground-hairline); }
.compare-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.compare-table th, .compare-table td { padding: 15px 16px; text-align: center; vertical-align: middle; }
.compare-table th:first-child { padding-left: 0; text-align: left; font-weight: 400; color: var(--on-ground); }
.compare-table thead th { position: sticky; top: var(--nav-height, 69px); z-index: 2; padding-block: 16px; border-bottom-color: var(--ground-line); background: var(--ground); font-size: 15px; font-weight: 600; color: var(--on-ground); }
.compare-table thead th:first-child { font-weight: 500; color: var(--on-ground-faint); }
.compare-table td { width: 23%; color: var(--on-ground); font-variant-numeric: tabular-nums; }
.compare-table .compare-group th { padding: 18px 0 10px; font-size: 17px; font-weight: 600; color: var(--on-ground); }
.compare-table tbody + tbody .compare-group th { border-top: 14px solid var(--ground); }
.compare-table tbody tr:not(.compare-group) th { padding-left: 0; }
.compare-yes .i { width: 18px; height: 18px; color: var(--brand); vertical-align: middle; }
.compare-no { display: inline-block; width: 12px; height: 2px; border-radius: 2px; background: var(--ghost-line); vertical-align: middle; }

/* ---------------------------------------------------------- teaser on home */
.price-teaser { border-top: 1px solid var(--ground-hairline); }
.price-teaser-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 6vw, 96px); }
.price-teaser-row > div > p { max-width: 40ch; margin: 20px 0 14px; font-size: 18px; }
.price-teaser li { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 22px 0; border-top: 1px solid var(--ground-line); }
.price-teaser li:last-child { border-bottom: 1px solid var(--ground-line); }
.price-teaser li > span { font-size: 18px; font-weight: 600; }
.price-teaser li p { display: flex; align-items: baseline; gap: 7px; white-space: nowrap; }
.price-teaser li small { font-size: 14px; color: var(--on-ground-faint); }
.price-teaser li b { font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -.035em; font-weight: 500; color: var(--on-ground); font-variant-numeric: tabular-nums; }

.end-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; }
/* The small "1" after the sentence and its note, which closes the block under the prices. */
.note-mark { margin-left: 2px; font-size: .6em; line-height: 0; vertical-align: super; }
.note-mark a { color: var(--on-ground-faint); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .note-mark a:hover { color: var(--on-ground); } }
.price-teaser-note { grid-column: 2; font-size: 13px; line-height: 1.6; color: var(--on-ground-faint); }
@media (min-width: 861px) { .price-teaser-row { row-gap: 16px; } }
.price-teaser-note sup { margin-right: 5px; font-size: .75em; line-height: 0; vertical-align: super; }

@media (max-width: 860px) {
  .price-pair, .price-teaser-row { grid-template-columns: 1fr; }
  .price-card { padding: 26px 22px; }
  .price-teaser-note { grid-column: 1; margin-top: -16px; }
}
@media (max-width: 560px) {
  .cycle span { min-width: 96px; padding-inline: 14px; }
  .compare-table { font-size: 14px; }
  .compare-table th, .compare-table td { padding: 13px 6px; }
  .compare-table td { width: 27%; }
  .compare-table thead th { font-size: 13px; }
  .price-teaser li { flex-direction: column; gap: 6px; }
  .price-includes li { font-size: 15px; }
}

/* Product pages: the closing call now has a second link to the prices. */
.product-end .end-actions { justify-content: center; margin-top: 28px; }
.product-end .end-actions .btn { margin-top: 0; }
/* Both cards start their price on the same line, with or without the badge. */
.price-card .product-name { min-height: 32px; }

/* Touch targets: the plan switch and the minus / plus buttons are 44px tall wherever they appear. */
.cycle span, .price-wide .cycle span { display: grid; place-items: center; min-height: 44px; padding-block: 0; }
.stepper-buttons button, .price-card .stepper-buttons button { width: 44px; height: 44px; }

/* Implantação é um serviço único. A mensalidade continua no preço principal. */
.setup-option { width: 100%; margin-top: 12px; padding: 12px 15px; border-radius: 12px; background: rgb(255 255 255 / 8%); }
.setup-option label { display: flex; gap: 11px; align-items: flex-start; font-size: 15px; font-weight: 600; line-height: 1.4; }
.setup-option label:has(input:enabled) { cursor: pointer; }
.setup-option input { width: 18px; height: 18px; flex: none; margin: 2px 0 0; accent-color: #f2c5d3; }
.setup-option input:disabled { opacity: 1; }
.setup-option p { color: var(--on-ground-soft); font-size: 14px; font-weight: 400; }
.setup-option p { margin: 7px 0 0 29px; line-height: 1.4; }

/* In the two-column plan, setup belongs with the price and uses its existing surface. */
.price-wide .setup-option { margin-top: 14px; padding: 0; background: transparent; }
.price-wide .setup-option label { gap: 8px; width: fit-content; }
.price-wide .setup-option p { margin-left: 26px; }

/* Guarantee at the foot of the plan (content/pricing.json plans.<id>.guarantee). */
.price-guarantee { display: flex; align-items: center; gap: 7px; margin-top: 14px; font-size: 14px; color: var(--on-ground-soft); }
.price-guarantee .i { width: 17px; height: 17px; color: var(--prompt-wine-light); }
html[data-site-theme="night"] .price-guarantee .i { color: #edbdce; }
