/* Shared homepage plans and product modules. Load after site/home CSS.
   Header, footer, heroes and their motion stay in chrome.css/site.js. */
.plans-wrap {
  background: #07070b;
  color: #fff;
  padding-block: 72px 20px;
}
.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}
.plans > *, .product-page, .product-page * { min-inline-size: 0; }
/* Share each content row across adjacent cards without fixing or clipping their height.
   Cards in later rows and the single-column mobile layout remain content-sized. */
@supports (grid-template-rows: subgrid) {
  @media (min-width: 601px) {
    .plans > .plan {
      display: grid;
      grid-row: span 8;
      grid-template-rows: subgrid;
      row-gap: 0;
    }
    .plans > .plan > :is(h2, h3) { grid-row: 1; margin: 0; }
    .plans > .plan > .fit { grid-row: 2; }
    .plans > .plan > .sum {
      grid-row: 3;
      align-self: end;
    }
    .plans > .plan > .per { grid-row: 4; }
    .plans > .plan > .locl { grid-row: 5; }
    .plans > .plan > .cta { grid-row: 6; }
    .plans > .plan > ul { grid-row: 7; }
    .plans > .plan > .warn { grid-row: 8; }
  }
  @media (min-width: 601px) and (max-width: 900px) {
    .pfam .plans > .plan { display: block; grid-row: auto; }
  }
}
/* Desktop card boxes share one height. min-height comes from the design script.
   Content stays at the top and is not clipped. */
@media (min-width: 1001px) {
  .plans > .plan:not(.summary) {
    display: flex;
    flex-direction: column;
    grid-row: auto;
  }
}
.plan {
  background: #fff;
  color: #161616;
  border-radius: 28px;
  padding: 26px 22px 22px;
  text-align: start;
  overflow-wrap: anywhere;
}
.plan.mid, .plan.is-current {
  outline: 2px solid #37d67a;
  outline-offset: 0;
}
.plan h2, .plan h3 {
  margin: 0;
  color: #161616;
  font-size: 22px;
  font-weight: 800;
  line-height: normal;
  text-align: start;
  letter-spacing: normal;
}
.plan .fit { margin: 6px 0 0; color: #555; font-size: 14px; line-height: 1.4; }
.plan .sum { font-size: 40px; font-weight: 800; line-height: normal; margin: 8px 0 0; }
.plan .sum small { display: block; font-size: 16px; line-height: 1.5; }
.plan .sum bdi { display: inline-block; white-space: nowrap; unicode-bidi: isolate; }
.plan .per { color: #666; font-size: 16px; line-height: normal; margin: 0 0 14px; }
.plan .locl { margin: 2px 0 10px; color: #666; font-size: 13px; line-height: normal; }
.plan a.cta, .plan button.cta {
  display: block;
  inline-size: 100%;
  text-align: center;
  background: #6d4dff;
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 12px;
  font: inherit;
  font-weight: 800;
  line-height: normal;
  margin-block: 0 14px;
  cursor: pointer;
}
.plan.mid a.cta, .plan.mid button.cta,
.plan.is-current a.cta, .plan.is-current button.cta { background: #111; }
.plan ul { margin: 0; padding: 0; list-style: none; }
.plan li {
  position: relative;
  padding-block: 7px;
  padding-inline: 22px 0;
  font-size: 14px;
  line-height: normal;
}
.plan li::before {
  content: "✓";
  position: absolute;
  inset-inline-start: 0;
  color: #37a35a;
  font-weight: 800;
}
.plan .warn { margin: 10px 0 0; color: #6b4a12; font-size: 13px; line-height: normal; font-weight: 700; }
.plan .note, .plan.summary .note, .plan.summary .per { color: #5c5670; }
.plan .sum-lines { margin-block-start: 16px; font-size: 15px; line-height: 1.65; }
.plan .sum-lines p { margin-block: 0; padding-block: 10px; border-block-end: 1px solid #eceaf3; }
.plan .sum-lines p:last-child { border-block-end: 0; font-size: 18px; font-weight: 800; }
.plan .sum-lines bdi { unicode-bidi: isolate; white-space: nowrap; }

.product-page { padding-block-end: 36px; }
.product-page h2, .product-page h3, .product-page p { overflow-wrap: anywhere; }
.product-page h2 { margin: 0 0 14px; font-size: clamp(27px, 3vw, 36px); line-height: 1.25; text-align: start; letter-spacing: normal; }
.product-page h3 { margin: 0 0 10px; font-size: 21px; line-height: 1.35; letter-spacing: normal; }
.product-page p { line-height: 1.7; }
.product-page bdi, .product-page [dir="ltr"] { unicode-bidi: isolate; }
.product-page [id] { scroll-margin-block-start: 24px; }
.product-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-block: 14px 22px;
  margin-block-end: 28px;
  border-block-end: 1px solid #e9e5f0;
}
.product-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-block-size: 42px;
  padding: 8px 16px;
  background: #f4f2f8;
  border: 1px solid #e9e5f0;
  border-radius: 999px;
  color: #30263f;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}
.product-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: 36px; }
.product-intro > div > p { color: #5c5670; margin: 0 0 16px; max-inline-size: 62ch; }
.product-highlights { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.feature-tile {
  min-inline-size: 0;
  padding: 22px;
  border-radius: 24px;
  background: #f4f2f8;
  border: 1px solid #ebe7f2;
}
.feature-tile small, .feature-tile .label { display: block; color: #5c5670; font-size: 13px; line-height: 1.5; margin-block-end: 8px; }
.feature-tile strong { display: block; color: #2a1860; font-size: clamp(20px, 2.4vw, 29px); line-height: 1.25; font-weight: 800; overflow-wrap: anywhere; }
.feature-tile p { margin: 8px 0 0; color: #5c5670; font-size: 14px; line-height: 1.55; }
.product-section { margin-block-start: 56px; }
.section-heading { margin-block-end: 24px; max-inline-size: 72ch; }
.product-page .eyebrow { margin: 0 0 8px; color: #6744d8; font-size: 13px; line-height: 1.5; font-weight: 800; }
.section-heading > p:last-child { margin: 0; color: #5c5670; line-height: 1.7; }
.product-benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.benefit { padding: 24px; border: 1px solid #e9e5f0; border-radius: 26px; background: #fff; }
.benefit p { color: #5c5670; margin: 0; font-size: 15px; }
.benefit .icon, .benefit-icon { display: grid; place-items: center; inline-size: 42px; block-size: 42px; margin-block-end: 16px; border-radius: 14px; color: #6d4dff; background: #f1edff; }
.product-configurator { padding: 28px; background: #f4f2f8; border-radius: 28px; }
.product-configurator .buy { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 28px; align-items: start; }
.product-configurator .buy > div { min-inline-size: 0; }
.product-configurator .plan.summary { position: sticky; inset-block-start: 20px; border: 1px solid #e7e1f1; background: #fff; color: #161616; }
.product-configurator .cycles, .product-configurator .opts { margin-block: 0 22px; padding: 0; border: 0; gap: 10px; }
.product-configurator legend { float: none; inline-size: 100%; padding: 0; margin-block-end: 12px; color: #211b2b; font-size: 16px; font-weight: 800; }
.product-configurator .cycles label, .product-configurator .opts label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  max-inline-size: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd5ed;
  border-radius: 18px;
  background: #fff;
  line-height: 1.6;
  font-size: 14px;
  cursor: pointer;
}
.product-configurator label:has(input:checked) { border-color: #6d4dff; background: #f1edff; box-shadow: 0 0 0 1px #6d4dff; }
.product-configurator input[type="radio"], .product-configurator input[type="checkbox"] { flex: 0 0 18px; inline-size: 18px; block-size: 18px; margin-block: 3px 0; margin-inline: 0; accent-color: #6d4dff; }
.product-configurator #add { inline-size: 100%; max-inline-size: 360px; min-block-size: 48px; background: #6d4dff; }
.product-configurator .note { line-height: 1.65; font-size: 13px; }
.product-configurator.plans-wrap { background: #07070b; color: #fff; }
.product-configurator.plans-wrap .section-heading h2 { color: #fff; }
.product-configurator.plans-wrap .section-heading .eyebrow { color: #c0afff; }
.product-configurator.plans-wrap .section-heading > p:last-child { color: #c8c8d2; }
.product-configurator.plans-wrap .buy > div { padding: 24px; border-radius: 24px; background: #f4f2f8; color: #161616; }
.product-configurator .plan #add.cta { max-inline-size: none; }
.product-page .plan h2, .product-page .plan h3 { font-size: 22px; text-align: start; }
.product-specs dl { margin: 0; padding: 0; border: 1px solid #e9e5f0; border-radius: 24px; overflow: hidden; }
.product-specs .spec-row { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 20px; padding: 16px 20px; background: #fff; }
.product-specs .spec-row:nth-child(odd) { background: #f8f6fb; }
.product-specs .spec-row + .spec-row { border-block-start: 1px solid #e9e5f0; }
.product-specs dt { font-weight: 700; color: #3e344e; line-height: 1.6; }
.product-specs dd { margin: 0; color: #161616; line-height: 1.6; overflow-wrap: anywhere; }
.product-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.product-columns > * { min-inline-size: 0; }
.product-columns ul { margin: 0; padding-inline-start: 22px; line-height: 1.8; color: #5c5670; }
.product-columns li + li { margin-block-start: 8px; }
.product-media { margin: 0; padding: 14px; background: #241445; border-radius: 28px; overflow: hidden; }
.product-media img { display: block; inline-size: 100%; max-inline-size: 100%; block-size: auto; aspect-ratio: 7 / 5; object-fit: cover; border-radius: 18px; }
.product-media figcaption { margin-block-start: 12px; padding-inline: 4px; color: #e4def6; font-size: 13px; line-height: 1.6; }
.product-uses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.use-case { padding: 24px; border-radius: 24px; background: #f4f2f8; border: 1px solid #ebe7f2; }
.use-case p { color: #5c5670; margin: 0; font-size: 15px; line-height: 1.7; }
.table-scroll { max-inline-size: 100%; overflow-x: auto; border: 1px solid #e9e5f0; border-radius: 22px; }
.billing-table { inline-size: 100%; border-collapse: collapse; background: #fff; color: #161616; font-size: 14px; line-height: 1.6; }
.billing-table th, .billing-table td { padding: 14px 16px; text-align: start; vertical-align: top; border-block-end: 1px solid #e9e5f0; }
.billing-table th { background: #f4f2f8; color: #3e344e; font-weight: 800; }
.billing-table tbody tr:last-child td { border-block-end: 0; }
.billing-table bdi { white-space: nowrap; unicode-bidi: isolate; }
.product-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.product-steps .step { padding: 24px; border-radius: 26px; background: #f4f2f8; }
.step-number { display: grid; place-items: center; inline-size: 38px; block-size: 38px; margin-block-end: 18px; border-radius: 50%; background: #6d4dff; color: #fff; font-weight: 800; }
.product-steps .step p { margin: 0; color: #5c5670; font-size: 15px; }
.product-faq { border-block-start: 1px solid #e9e5f0; }
.product-faq details { border-block-end: 1px solid #e9e5f0; padding-block: 18px; }
.product-faq summary { cursor: pointer; color: #211b2b; font-size: 17px; font-weight: 700; line-height: 1.55; padding-inline-end: 12px; }
.product-faq details p { margin: 14px 0 0; color: #5c5670; max-inline-size: 75ch; font-size: 15px; }
.product-faq details[open] summary { color: #6744d8; }
.product-related.plans-wrap { padding: 32px; border-radius: 28px; }
.plans-wrap.category-plans { padding: 28px; border-radius: 32px; margin-block: 24px; }
.category-plans .section-heading h2 { color: #fff; }
.category-plans .section-heading .eyebrow { color: #c0afff; }
.category-plans .section-heading > p:last-child { color: #c8c8d2; }
.product-related.plans-wrap .section-heading h2 { color: #fff; }
.product-related.plans-wrap .eyebrow { color: #c0afff; }
.product-related.plans-wrap .section-heading > p:last-child { color: #c8c8d2; }
.product-related .plan { border: 1px solid #e9e5f0; }
.product-related.plans-wrap .plan { border-color: transparent; }
.product-contact { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 32px; border-radius: 28px; background: #14141a; color: #fff; }
.product-contact { margin-block-start: 48px; }
.category-plans .note { color: #c8c8d2; line-height: 1.6; }
.product-text-link { text-decoration: underline; text-underline-offset: 4px; font-weight: 700; }
.price-details { border-block-start: 1px solid #eceaf3; margin-block-start: 18px; padding-block-start: 14px; }
.price-details summary { cursor: pointer; font-size: 14px; font-weight: 700; color: #5c5670; }
.billing-guide { margin-block-start: 24px; padding: 20px; border-radius: 20px; background: #e9e1ff; color: #241445; }
.billing-guide h4 { margin: 8px 0; font-size: 25px; line-height: 1.35; }
.billing-guide p { margin: 0 0 10px; font-size: 14px; }
.billing-guide small { display: block; color: #5c5670; line-height: 1.6; }
.product-contact h2, .product-contact h3 { color: #fff; }
.product-contact p { margin: 0; color: #d5d0e6; max-inline-size: 64ch; }
.product-contact .btn, .product-contact .cta { flex-shrink: 0; display: inline-flex; justify-content: center; padding: 12px 22px; border-radius: 999px; background: #fff; color: #111; font-weight: 800; text-align: center; line-height: 1.5; }
.product-page a:focus-visible, .product-page button:focus-visible, .product-page summary:focus-visible,
.plan a:focus-visible, .plan button:focus-visible { outline: 3px solid #6d4dff; outline-offset: 4px; }
.product-page input:focus-visible { outline: 3px solid #6d4dff; outline-offset: 3px; }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .product-nav a, .plan a.cta, .plan button.cta, .product-contact .btn { transition: background-color .18s ease, box-shadow .18s ease; }
  .product-nav a:hover { background: #eae4fb; }
  .plan a.cta:hover, .plan button.cta:hover { background: #5132d7; box-shadow: 0 6px 18px #6d4dff24; }
  .plan.mid a.cta:hover, .plan.is-current a.cta:hover { background: #30263f; }
}
@media (max-width: 900px) {
  .plans { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1000px) {
  .product-page .plans, .category-plans .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-intro { gap: 24px; }
  .product-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .product-intro, .product-configurator .buy, .product-columns { grid-template-columns: minmax(0, 1fr); }
  .product-configurator .plan.summary { position: static; }
  .product-steps { grid-template-columns: minmax(0, 1fr); }
  .product-contact { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 600px) {
  .product-page .plans, .category-plans .plans { grid-template-columns: minmax(0, 1fr); }
  .product-benefits { grid-template-columns: minmax(0, 1fr); }
  .product-section { margin-block-start: 40px; }
  .product-nav { gap: 6px; margin-block-end: 22px; }
  .product-nav a { padding: 8px 12px; font-size: 13px; }
  .product-configurator { padding: 18px; border-radius: 24px; }
  .product-configurator.plans-wrap .buy > div { padding: 18px; }
  .product-configurator .buy { gap: 18px; }
  .product-configurator .cycles label, .product-configurator .opts label { inline-size: 100%; }
  .product-configurator #add { max-inline-size: none; }
  .product-related.plans-wrap, .plans-wrap.category-plans, .product-contact { padding: 22px 18px; border-radius: 24px; }
  .product-uses { grid-template-columns: minmax(0, 1fr); }
  .product-specs .spec-row { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 14px 16px; }
  .product-highlights { gap: 10px; }
  .feature-tile { padding: 16px; border-radius: 20px; }
  .feature-tile strong { font-size: 21px; }
}
@media (max-width: 380px) {
  .product-highlights { grid-template-columns: minmax(0, 1fr); }
  .product-page .plan, .category-plans .plan { padding: 24px 18px 20px; }
  .product-page .plan .sum, .category-plans .plan .sum { font-size: 36px; }
  .product-contact .btn { inline-size: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .product-page *, .product-page *::before, .product-page *::after,
  .plan, .plan a.cta, .plan button.cta { scroll-behavior: auto; transition: none; animation: none; }
}
