/* padho.ai — Pricing (Core Views › 12 Pricing: web 2128:3857, phone 2131:3268). Chrome comes from site.css. */
/* Type as in the app: Inter's optical sizing on (site.css turns it off for the landing) and the DS weights. */
.pricing-page {
  background: var(--landing-cream);
  font-optical-sizing: auto;
}
.pricing-page main {
  padding-block: 80px 136px;
}

/* The page sits on cream; the footer returns to white edge to edge. The shadow paints the full-bleed band
 * without widening the page, which a 100vw box would on any browser with a classic scrollbar. */
.pricing-page .site-footer {
  padding-top: 40px;
  background: var(--color-surface);
  box-shadow: 0 0 0 100vmax var(--color-surface);
  clip-path: inset(0 -100vmax);
}

:where(.pricing-page, .next-pricing) .pricing-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 92px;
}
:where(.pricing-page, .next-pricing) .pricing-intro {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  align-self: flex-start;
}
:where(.pricing-page, .next-pricing) .pricing-intro h1 {
  font-size: 36px;
  line-height: 60px;
  font-weight: var(--text-h1--font-weight);
  color: var(--color-text);
}
:where(.pricing-page, .next-pricing) .pricing-intro p {
  color: var(--color-text-muted);
}

:where(.pricing-page, .next-pricing) .pricing-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 64px;
}
/* The coupon field opens as a small panel under its link, so the switch row never moves. */
:where(.pricing-page, .next-pricing) .coupon {
  position: relative;
}
:where(.pricing-page, .next-pricing) .coupon summary {
  color: var(--color-link);
  font-size: var(--text-body-sm);
  line-height: var(--text-body-sm--line-height);
  text-decoration: underline;
  text-underline-offset: 3px;
  list-style: none;
  cursor: pointer;
}
:where(.pricing-page, .next-pricing) .coupon summary::-webkit-details-marker {
  display: none;
}
:where(.pricing-page, .next-pricing) .coupon-form {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: var(--z-dropdown, 20);
  display: flex;
  gap: 8px;
  width: 336px;
  max-width: calc(100vw - 32px);
  padding: 16px;
  border: var(--stroke-default) solid var(--color-border);
  border-radius: var(--radius-small);
  background: var(--color-surface);
  box-shadow: var(--shadow-overlay);
}
:where(.pricing-page, .next-pricing) .coupon-form input {
  flex: 1;
  min-width: 0;
  min-height: var(--spacing-control-compact);
  padding-inline: 12px;
  border: var(--stroke-default) solid var(--color-border-strong);
  border-radius: var(--radius-control);
  background: var(--color-surface);
  color: var(--color-text);
}
:where(.pricing-page, .next-pricing) .coupon-form input:focus-visible {
  outline: var(--stroke-focus) solid var(--color-ring);
  outline-offset: 2px;
}
:where(.pricing-page, .next-pricing) .coupon-form .button {
  padding-block: 0;
}
:where(.pricing-page, .next-pricing) .coupon-state {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-success-text);
  font-size: var(--text-body-sm);
  line-height: var(--text-body-sm--line-height);
}
:where(.pricing-page, .next-pricing) .coupon-state[hidden] {
  display: none;
}
:where(.pricing-page, .next-pricing) .coupon-remove {
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
:where(.pricing-page, .next-pricing) .billing {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
:where(.pricing-page, .next-pricing) .segmented {
  display: flex;
  gap: 2px;
  padding: 2px;
  border-radius: var(--radius-control);
  background: var(--color-surface-2);
}
:where(.pricing-page, .next-pricing) .segmented label {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding-inline: 16px;
  border: var(--stroke-default) solid transparent;
  border-radius: var(--radius-small);
  color: var(--color-text-muted);
  font-size: var(--text-body-sm);
  line-height: var(--text-body-sm--line-height);
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--duration-fast),color var(--duration-fast);
}
:where(.pricing-page, .next-pricing) .segmented label:hover {
  color: var(--color-text);
}
:where(.pricing-page, .next-pricing) .segmented label:has(input:checked) {
  border-color: var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
}
:where(.pricing-page, .next-pricing) .segmented label:has(input:focus-visible) {
  outline: var(--stroke-focus) solid var(--color-ring);
  outline-offset: 2px;
}
:where(.pricing-page, .next-pricing) .segmented input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
:where(.pricing-page, .next-pricing) .badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--radius-small);
  background: var(--color-success-soft);
  color: var(--color-success-text);
  font-size: var(--text-body-sm);
  line-height: var(--text-body-sm--line-height);
  white-space: nowrap;
}
:where(.pricing-page, .next-pricing) .saving-beside {
  display: none;
}

:where(.pricing-page, .next-pricing) .plans {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 16px;
  margin-top: 32px;
}
:where(.pricing-page, .next-pricing) .plan {
  display: flex;
  flex-direction: column;
  min-width: 0;
  /* Room for the Recommended band, so every card's top edge lines up. */
  padding-top: 36px;
}
:where(.pricing-page, .next-pricing) .plan.is-recommended {
  padding-top: 0;
}
:where(.pricing-page, .next-pricing) .plan-flag {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  background: var(--color-accent);
  color: var(--color-primary-contrast);
  font-size: var(--text-body-sm);
  font-weight: 500;
}
:where(.pricing-page, .next-pricing) .plan-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 740px;
  padding: var(--spacing-card-padding);
  border: var(--stroke-default) solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
}
:where(.pricing-page, .next-pricing) .is-recommended .plan-card {
  border: 2px solid var(--color-accent);
  padding: calc(var(--spacing-card-padding) - 1px);
  border-radius: 0 0 var(--radius-card) var(--radius-card);
}
:where(.pricing-page, .next-pricing) .plan-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
:where(.pricing-page, .next-pricing) .plan-name {
  display: flex;
  align-items: center;
  gap: 12px;
}
:where(.pricing-page, .next-pricing) .plan-name img {
  width: var(--spacing-icon-xl);
  height: var(--spacing-icon-xl);
  flex-shrink: 0;
}
:where(.pricing-page, .next-pricing) .plan-name h2 {
  font-size: var(--text-title);
  line-height: var(--text-title--line-height);
  font-weight: var(--text-title--font-weight);
}
:where(.pricing-page, .next-pricing) .plan-tagline {
  color: var(--color-text-muted);
  font-size: var(--text-body-sm);
  line-height: var(--text-body-sm--line-height);
}
:where(.pricing-page, .next-pricing) .plan-price {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 4px;
  min-height: 104px;
  padding-top: 4px;
}
:where(.pricing-page, .next-pricing) .plan-price .was {
  min-height: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}
:where(.pricing-page, .next-pricing) .plan-price s {
  color: var(--color-text-muted);
}
:where(.pricing-page, .next-pricing) .plan-price .amount {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
:where(.pricing-page, .next-pricing) .plan-price .figure {
  font-size: var(--text-h1);
  line-height: var(--text-h1--line-height);
  font-weight: var(--text-h1--font-weight);
}
:where(.pricing-page, .next-pricing) .plan[data-plan="classroom"] .plan-price .figure {
  font-size: var(--text-display);
  line-height: var(--text-display--line-height);
  font-weight: var(--text-display--font-weight);
}
:where(.pricing-page, .next-pricing) .plan-price .per {
  color: var(--color-text-muted);
}
:where(.pricing-page, .next-pricing) .price-note {
  color: var(--color-text-muted);
  font-size: var(--text-caption);
  line-height: var(--text-caption--line-height);
  font-weight: var(--text-caption--font-weight);
}
:where(.pricing-page, .next-pricing) .button.plan-cta {
  width: 100%;
  min-height: var(--spacing-control);
  border-radius: var(--radius-control);
  font-size: var(--text-label);
}
/* The primary face sits on its 4px pressed edge inside the same 56px slot as the flat buttons. */
:where(.pricing-page, .next-pricing) .button.plan-cta.primary {
  min-height: calc(var(--spacing-control) - 4px);
  margin-bottom: 4px;
}
:where(.pricing-page, .next-pricing) .plan-divider {
  width: 100%;
  height: 1px;
  margin: 0;
  border: 0;
  background: var(--color-divider);
}
:where(.pricing-page, .next-pricing) .plan-features-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
:where(.pricing-page, .next-pricing) .plan-kicker {
  color: var(--color-text-muted);
  font-size: var(--text-overline);
  line-height: var(--text-overline--line-height);
  font-weight: var(--text-overline--font-weight);
  letter-spacing: var(--text-overline--letter-spacing);
  text-transform: uppercase;
}
:where(.pricing-page, .next-pricing) .plan-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
:where(.pricing-page, .next-pricing) .plan-features li {
  display: flex;
  gap: 12px;
}
:where(.pricing-page, .next-pricing) .plan-features li::before {
  content: '';
  flex: 0 0 var(--spacing-icon-md);
  height: var(--spacing-icon-md);
  margin-top: 2px;
  background: url('./assets/circle-check.svg') center/contain no-repeat;
}
/* Feature tooltip: hover or keyboard focus shows it; pricing.js adds tap-to-toggle and Escape. */
:where(.pricing-page, .next-pricing) .tip {
  position: relative;
  display: inline-flex;
  margin-left: 6px;
  vertical-align: -2px;
}
:where(.pricing-page, .next-pricing) .tip-trigger {
  position: relative;
  display: inline-flex;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
}
/* A 44px touch target around the 16px icon. */
:where(.pricing-page, .next-pricing) .tip-trigger::after {
  content: '';
  position: absolute;
  inset: -14px;
}
:where(.pricing-page, .next-pricing) .tip-bubble {
  position: absolute;
  z-index: 5;
  bottom: calc(100% + 10px);
  left: 50%;
  width: max-content;
  max-width: min(264px,70vw);
  padding: 10px 12px;
  border-radius: var(--radius-small);
  background: var(--color-text);
  color: var(--color-surface);
  box-shadow: var(--shadow-overlay);
  font-size: var(--text-body-sm);
  line-height: var(--text-body-sm--line-height);
  text-align: left;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%,4px);
  transition: opacity var(--duration-fast),transform var(--duration-fast),visibility var(--duration-fast);
}
/* Bridges the gap so the pointer can travel onto the bubble without it closing. */
:where(.pricing-page, .next-pricing) .tip-bubble::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 10px;
}
@media(hover:hover) {
  :where(.pricing-page, .next-pricing) .tip:hover .tip-bubble {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%,0);
  }
}
:where(.pricing-page, .next-pricing) .tip:focus-within .tip-bubble,:where(.pricing-page, .next-pricing) .tip.is-open .tip-bubble {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%,0);
}
:where(.pricing-page, .next-pricing) .tip.is-dismissed .tip-bubble {
  opacity: 0;
  visibility: hidden;
}
:where(.pricing-page, .next-pricing) .footnote {
  margin-top: 24px;
  color: var(--color-text-muted);
  font-size: var(--text-caption);
  line-height: var(--text-caption--line-height);
  font-weight: var(--text-caption--font-weight);
  text-align: center;
}

:where(.pricing-page, .next-pricing) .faq-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 44px;
}
:where(.pricing-page, .next-pricing) .faq-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
:where(.pricing-page, .next-pricing) .faq-head h2 {
  font-size: 24px;
  line-height: 30px;
  font-weight: var(--text-h2--font-weight);
}
:where(.pricing-page, .next-pricing) .faq-head p {
  color: var(--color-text-muted);
}
:where(.pricing-page, .next-pricing) .faq-head a,:where(.pricing-page, .next-pricing) .faq-list p a {
  color: var(--color-link);
  text-decoration: underline;
  text-underline-offset: 3px;
}
:where(.pricing-page, .next-pricing) .faq-list {
  overflow: hidden;
  border: var(--stroke-default) solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-surface);
}
:where(.pricing-page, .next-pricing) .faq-list details+details {
  border-top: var(--stroke-default) solid var(--color-divider);
}
:where(.pricing-page, .next-pricing) .faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
  padding: 16px 20px;
  font-size: var(--text-body);
  line-height: var(--text-body--line-height);
  font-weight: var(--text-title--font-weight);
  list-style: none;
  cursor: pointer;
  transition: background-color var(--duration-fast);
}
:where(.pricing-page, .next-pricing) .faq-list summary::-webkit-details-marker {
  display: none;
}
:where(.pricing-page, .next-pricing) .faq-list summary::after {
  content: '';
  flex: 0 0 20px;
  height: 20px;
  background: var(--color-text-muted);
  -webkit-mask: url('./assets/chevron-right.svg') center/contain no-repeat;
  mask: url('./assets/chevron-right.svg') center/contain no-repeat;
  transform: rotate(90deg);
  transition: transform var(--duration-standard) var(--ease-move);
}
:where(.pricing-page, .next-pricing) .faq-list details[open]>summary::after {
  transform: rotate(-90deg);
}
:where(.pricing-page, .next-pricing) .faq-list summary:hover {
  background: var(--color-surface-2);
}
:where(.pricing-page, .next-pricing) .faq-list summary:focus-visible {
  outline: var(--stroke-focus) solid var(--color-ring);
  outline-offset: -2px;
}
:where(.pricing-page, .next-pricing) .faq-list details p {
  max-width: 680px;
  padding: 0 24px 20px;
  color: var(--color-text);
  font-weight: 400;
  line-height: 26px;
}

/* Stack the plans in their reading order on smaller screens. */
@media(max-width:1023px) {
  :where(.pricing-page, .next-pricing) .coupon-form {right: auto; left: 0;}
  :where(.pricing-page, .next-pricing) .pricing-head {flex-direction: column; align-items: flex-start; gap: 28px; min-height: 0;}
  :where(.pricing-page, .next-pricing) .pricing-controls {gap: 16px;}
  :where(.pricing-page, .next-pricing) .plans {grid-template-columns: minmax(0,1fr); gap: 16px; margin-top: 24px;}
  :where(.pricing-page, .next-pricing) .plan {padding-top: 0;}
  :where(.pricing-page, .next-pricing) .plan-card {min-height: 700px;}
  :where(.pricing-page, .next-pricing) .plan[data-plan="classroom"] .plan-card {min-height: 585px;}
  :where(.pricing-page, .next-pricing) .faq-section {margin-top: 44px;}
}

@media(max-width:639px) {
  .pricing-page main {
    padding-block: 32px 80px;
  }
  :where(.pricing-page, .next-pricing) .pricing-intro h1 {
    font-size: var(--text-h2);
    line-height: var(--text-h2--line-height);
    font-weight: var(--text-h2--font-weight);
  }
  :where(.pricing-page, .next-pricing) .saving-inline {
    display: none;
  }
  :where(.pricing-page, .next-pricing) .saving-beside {
    display: inline-flex;
  }
  :where(.pricing-page, .next-pricing) .faq-head h2 {
    font-size: var(--text-h2);
    line-height: var(--text-h2--line-height);
  }
  :where(.pricing-page, .next-pricing) .faq-list summary {
    padding: 12px 20px;
    min-height: 72px;
    font-size: var(--text-body);
    line-height: var(--text-body--line-height);
    font-weight: 500;
  }
  :where(.pricing-page, .next-pricing) .faq-list details p {
    padding: 0 16px 16px;
  }
}

.plans-section [hidden] { display: none; }

@media(max-width:639px) {
  :where(.pricing-page, .next-pricing) .plan-features li {position: relative;}
  :where(.pricing-page, .next-pricing) .tip {position: static;}
  :where(.pricing-page, .next-pricing) .tip-bubble {left: 0; max-width: 100%; transform: translateY(4px);}
  :where(.pricing-page, .next-pricing) .tip:hover .tip-bubble,
  :where(.pricing-page, .next-pricing) .tip:focus-within .tip-bubble,
  :where(.pricing-page, .next-pricing) .tip.is-open .tip-bubble {transform: translateY(0);}
}
