/* WEB-05 pricing. Builds on landing.css tokens.
 * Reference: wiki/sources/screens/landing/web-05a-for-me-desktop.png */

[data-billing="yearly"] .only-monthly,
[data-billing="monthly"] .only-yearly { display: none; }

.section--blue { background: var(--blue); }
.price-hero { background: var(--paper); text-align: center; }
.price-hero .section__lede { margin-left: auto; margin-right: auto; }

.switches { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin: 28px 0 40px; }
.switch { display: inline-flex; border: var(--line); background: var(--white); }
.switch__opt {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 20px;
  font: 600 13px/1 var(--sans); color: var(--black); background: var(--white);
  border: 0; text-decoration: none; cursor: pointer;
}
.switch__opt.is-on { background: var(--black); color: var(--white); }
.switch__opt:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.plans, .enterprise { display: grid; gap: 24px; text-align: left; align-items: start; }
.plan {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 24px;
  background: var(--white); border: var(--line);
}
.plan--featured { background: var(--blue); box-shadow: var(--shadow-lg); }
.plan--dark { background: var(--black); color: var(--white); box-shadow: 8px 8px 0 0 var(--blue); }
.plan h2 { margin: 0; font: 600 20px/1.2 var(--sans); }
.plan__who { margin: 0; font: 400 13px/1.4 var(--sans); color: var(--muted); }
.plan--dark .plan__who { color: #ccc; }
.plan__price { margin: 8px 0 0; font: 400 14px/1 var(--sans); }
.plan__price b { font: 700 40px/1 var(--sans); letter-spacing: -0.04em; }
.plan__sub { margin: 0; font: 400 12.5px/1.6 var(--sans); }
.plan__alt { text-align: center; font: 500 13px/1.4 var(--sans); color: inherit; text-decoration: underline; }
.plan__flag {
  position: absolute; top: -14px; left: 16px; padding: 4px 8px; background: var(--black);
  color: var(--yellow); font: 700 10px/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase;
}
.plan .btn { width: 100%; justify-content: center; }
.plan .sticker { font-size: 10px; padding: 2px 6px; }

/* Own names, not landing.css's .ticks/.compare, which are other components (UX-2). */
.plan-ticks { list-style: none; margin: 8px 0 0; padding: 14px 0 0; border-top: 1px solid rgba(0, 0, 0, 0.25); display: grid; gap: 8px; font: 400 13.5px/1.4 var(--sans); text-align: left; }
.plan--dark .plan-ticks { border-color: #444; }
.plan-ticks li { padding-left: 24px; position: relative; }
.plan-ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; font-weight: 700; }

.price-hero h2.section__title { margin-top: 56px; text-align: left; }
.table-scroll { position: relative; overflow-x: auto; margin-top: 20px; text-align: left; max-width: 100%; -webkit-overflow-scrolling: touch; }
.price-compare { width: 100%; min-width: 560px; border-collapse: collapse; background: var(--white); border: var(--line); font: 400 13.5px/1.4 var(--sans); }
.price-compare th, .price-compare td { padding: 14px 16px; border-bottom: 1px solid #ddd; text-align: left; }
.price-compare thead th { background: var(--paper); font-weight: 600; }
.price-compare tbody th { font-weight: 400; }
.price-hero .note { text-align: left; }

.steps { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 16px; counter-reset: step; }
.steps li { counter-increment: step; display: grid; gap: 6px; padding: 18px; border: var(--line); background: var(--white); font: 400 13px/1.5 var(--sans); color: var(--muted); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--black); color: var(--white); font: 700 12px/1 var(--sans); }
.steps b { font: 600 15px/1.3 var(--sans); color: var(--black); }
.callout { padding: 16px 20px; background: var(--yellow); border: var(--line); font: 400 13px/1.5 var(--sans); }

.price-cta .section__title { max-width: 18ch; }

/* WEB-05B: the team-size stepper on the Enterprise card. */
.seats { margin-top: 8px; padding: 14px; border: 1px solid #444; display: grid; gap: 10px; font: 400 13px/1.4 var(--sans); }
.seats__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 600; }
.stepper { display: inline-flex; border: 1px solid var(--white); }
.stepper button { width: 34px; height: 34px; border: 0; background: transparent; color: var(--white); font: 600 16px/1 var(--sans); cursor: pointer; }
.stepper input { width: 46px; height: 34px; border: 0; border-left: 1px solid var(--white); border-right: 1px solid var(--white); background: transparent; color: var(--white); text-align: center; font: 600 14px/1 var(--sans); -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper button:focus-visible, .stepper input:focus-visible { outline: 3px solid var(--blue); outline-offset: 1px; }
.seats__lines { margin: 0; display: grid; gap: 6px; color: #ccc; }
.seats__lines div { display: flex; justify-content: space-between; gap: 12px; }
.seats__lines dd { margin: 0; }
.seats__total { margin: 0; padding-top: 10px; border-top: 1px solid #444; display: flex; justify-content: space-between; gap: 12px; font: 600 15px/1.3 var(--sans); }

/* WEB-05B: what the team gets, as six cards. */
.team-gets { text-align: left; }
.price-hero .team-gets h2.section__title { margin-top: 0; }
.gets { display: grid; gap: 16px; margin-top: 16px; }
.gets__card { padding: 18px; background: var(--white); border: var(--line); }
.gets__card h3 { display: flex; align-items: center; gap: 10px; margin: 0; font: 600 15px/1.3 var(--sans); }
.gets__card h3 span { display: grid; place-items: center; width: 22px; height: 22px; background: var(--blue); border: var(--line); font: 700 11px/1 var(--sans); }
.gets__card p { margin: 8px 0 0; font: 400 13px/1.5 var(--sans); color: var(--muted); }

/* WEB-05B: separate accounts against one workspace. */
.vs { margin-top: 40px; padding: 20px; border: var(--line); background: var(--white); text-align: left; }
.price-hero .vs h2.section__title { margin: 0 0 14px; }
.vs__cols { display: grid; gap: 14px; }
.vs__col { padding: 14px 16px; border: var(--line); background: var(--paper); display: grid; gap: 4px; }
.vs__col small { font: 400 12px/1.3 var(--sans); color: var(--muted); }
.vs__col b { font: 700 20px/1.2 var(--sans); }
.vs__col p { margin: 0; font: 400 13px/1.5 var(--sans); }
.vs__col--team { background: var(--blue); }
.vs__col--team small { color: var(--black); }

/* The pricing FAQ is one column of ruled rows (WEB-05A). */
.faq--single { grid-template-columns: 1fr !important; }

@media (min-width: 900px) {
  .plans { grid-template-columns: repeat(3, 1fr); }
  .enterprise { grid-template-columns: 380px 1fr; gap: 48px; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .gets { grid-template-columns: repeat(2, 1fr); }
  .vs__cols { grid-template-columns: repeat(2, 1fr); }
}
