/* V10.2 · Clear glass controls and flexible cloud time. */
:root {
  --glass-control-ink: #31577e;
  --glass-control-line: #adc9e575;
  --glass-control-shadow: inset 0 1px 1px #fff, inset 0 -1px 1px #a0bbd520,
    0 4px 12px #6586a913, 0 1px 3px #6586a90c;
}

/* Keep the optical edge bright, with enough tint to identify the primary action. */
.button:is(.button-primary, .button-dark, .button-soft, .button-glass) {
  color: var(--glass-control-ink);
  background: linear-gradient(155deg, #fffffff5, #eef6ffc9 54%, #e2edf9c4);
  border: 1px solid var(--glass-control-line);
  box-shadow: var(--glass-control-shadow);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  text-shadow: 0 1px 0 #ffffff9c;
}

.button:is(.button-primary, .button-dark) {
  background: linear-gradient(155deg, #f9fdfff5, #dcedffda 56%, #d5e8f7d6);
  border-color: #97bbdf8f;
  color: #285483;
}

.button.button-glass {
  background: linear-gradient(145deg, #ffffffe3, #ffffff91 55%, #e9f3fad1);
}

.button .icon { opacity: .85; }
.button:focus-visible, .plan-tabs button:focus-visible,
.demo-groups button:focus-visible, .menu-toggle:focus-visible,
.copy-contact:focus-visible {
  outline: 3px solid #4779ac;
  outline-offset: 4px;
}

.button:active {
  box-shadow: inset 0 2px 5px #648cb223, inset 0 -1px 0 #fff;
}

.header-download { min-height: 38px; }
.download-platform .button { white-space: normal; text-align: center; }

.plan-tabs {
  background: linear-gradient(135deg, #ffffffa6, #dfeafa80);
  border-color: #fff;
  box-shadow: inset 0 1px 0 #fff, inset 0 -1px 3px #7b97b411, 0 5px 22px #607d9909;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.plan-tabs button { color: #64758a; }
.plan-tabs button.active, .plan-tabs button[aria-selected="true"] {
  background: linear-gradient(150deg, #fffffff7, #eff6fff2);
  color: #31577e;
  box-shadow: inset 0 1px 1px #fff, 0 2px 8px #6d8cac1c;
}

.demo-groups button { color: #566b83; border-color: #ffffff4a; }
.demo-groups button.active, .demo-groups button[aria-pressed="true"] {
  background: linear-gradient(140deg, #fffffff0, #e4eff9b3);
  border-color: #ffffffec;
  color: #31577e;
  box-shadow: var(--glass-control-shadow);
}

.menu-toggle {
  background: linear-gradient(145deg, #fffffff0, #e5effbc2);
  border-color: #ffffffd9;
  box-shadow: var(--glass-control-shadow);
}

.copy-contact {
  align-self: flex-start;
  padding: 7px 11px;
  margin-left: -11px;
  border: 1px solid #d3e0ed9c;
  border-radius: 12px;
  background: linear-gradient(150deg, #ffffffbe, #edf4fbad);
  color: #466384;
  box-shadow: inset 0 1px 0 #fff;
}

/* A luminous backdrop provides real depth beneath the translucent plan cards. */
.pricing-section {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-top: 88px;
  background: radial-gradient(ellipse at 10% 60%, #d6e8fb60, transparent 56%),
    radial-gradient(ellipse at 90% 65%, #ffe9d958, transparent 54%);
}

.pricing-section::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 150px -5% 25px;
  pointer-events: none;
  background: url("/glass-wallpaper.webp") center 56% / cover no-repeat;
  opacity: .18;
  mask-image: linear-gradient(transparent, #000 22%, #000 74%, transparent);
  -webkit-mask-image: linear-gradient(transparent, #000 22%, #000 74%, transparent);
}

.pricing-section .section-heading { margin-bottom: 35px; }
.pricing-section .section-heading > p:last-of-type { color: #65778b; }
.pricing-section .plan-tabs { margin-top: 28px; }
.pricing-section .price-grid { gap: 18px; align-items: stretch; }

.pricing-section .price-card {
  min-width: 0;
  padding: 27px 24px 25px;
  border-radius: 29px;
  border: 1px solid #ffffffed;
  background: linear-gradient(150deg, #ffffffd9, #ffffff9c 55%, #eef5fbb8);
  box-shadow: inset 0 1px 1px #fff, inset 0 -1px 0 #97b7d416,
    0 13px 30px -20px #587da04a, 0 2px 6px #728ca60a;
  backdrop-filter: blur(24px) saturate(145%);
  -webkit-backdrop-filter: blur(24px) saturate(145%);
}

.pricing-section .price-card.featured {
  border-color: #a9c9e9b3;
  background: linear-gradient(150deg, #ffffffea, #eaf4ffd1 55%, #e3effac4);
  box-shadow: inset 0 1px 1px #fff, inset 0 -1px 0 #a1c4e935,
    0 15px 36px -22px #4f80b05e, 0 0 0 1px #ffffffad;
}

.pricing-section .plan-tag {
  min-height: 28px;
  margin: 0;
  color: #60768b;
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: .03em;
}

.pricing-section .featured .plan-tag { padding-right: 75px; }
.pricing-section .recommended {
  inset: 25px 19px auto auto;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 700;
  color: #466e9a;
  background: linear-gradient(145deg, #ffffffec, #e2f0ffb8);
  border: 1px solid #b9d1e8b3;
  box-shadow: inset 0 1px 0 #fff;
}

.pricing-section .plan-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #466f9a;
}

.plan-badge .icon { width: 16px; height: 16px; }
.pricing-section .price-card h3 {
  margin-top: 7px;
  font-size: 24px;
  line-height: 1.5;
  letter-spacing: -.025em;
}

.pricing-section .plan-description {
  min-height: 43px;
  margin-top: 9px;
  color: #62758a;
  font-size: 13px;
  line-height: 1.65;
}

.pricing-section .price { min-height: 69px; margin: 15px 0 20px; }
.pricing-section .price strong { font-size: 56px; font-weight: 700; letter-spacing: -.06em; }
.pricing-section .price strong.custom-price { font-size: 30px; letter-spacing: -.03em; }
.pricing-section .price sup { color: #3d536c; }
.pricing-section .price > span { color: #65778c; font-size: 12px; margin-left: 9px; }
.pricing-section .price-card .button { min-height: 44px; padding-inline: 14px; font-size: 13px; }
.pricing-section .plan-points {
  display: grid;
  grid-template-columns: 1fr;
  gap: 11px;
  margin-top: 23px;
  padding-top: 20px;
  border-top-color: #a9bfd42b;
}

.pricing-section .plan-points li { margin: 0; font-size: 12px; color: #526981; gap: 8px; }
.pricing-section .plan-points .icon { width: 14px; height: 14px; color: #6e94b7; }
.pricing-section .pricing-note { color: #6b7d90; font-size: 11px; margin-top: 26px; }

@media (hover: hover) and (pointer: fine) {
  .button:is(.button-primary, .button-dark, .button-soft, .button-glass):hover {
    color: #234e79;
    background: linear-gradient(155deg, #fff, #edf6fff0 53%, #dbeefbeb);
    border-color: #91b6d6b3;
    box-shadow: inset 0 1px 1px #fff, inset 0 -1px 1px #a0bbd522, 0 7px 20px #668bb526;
  }
  .plan-tabs button:hover { color: #31577e; background-color: #ffffff69; }
  .demo-groups button:hover, .menu-toggle:hover, .copy-contact:hover {
    color: #31577e;
    background: #ffffffd9;
    border-color: #aac5dfad;
  }
}

/* These final breakpoints supersede the original three-card pricing layout. */
@media (min-width: 1100px) {
  .pricing-section #personalPlans { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pricing-section #teamPlans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 641px) and (max-width: 1099px) {
  .pricing-section .price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .pricing-section .price-card { padding: 28px; }
  .pricing-section .recommended { right: 24px; top: 27px; }
  .pricing-section .plan-description { min-height: 43px; }
  .pricing-section .plan-points li { font-size: 13px; }
}

@media (max-width: 640px) {
  .pricing-section { padding-top: 46px; }
  .pricing-section::before { inset: 220px -30% 20px; background-size: auto 100%; opacity: .15; }
  .pricing-section .section-heading { margin-bottom: 27px; }
  .pricing-section .price-grid { grid-template-columns: 1fr; gap: 20px; }
  .pricing-section .price-card { padding: 26px; border-radius: 27px; }
  .pricing-section .recommended { top: 24px; right: 23px; }
  .pricing-section .plan-tag { font-size: 12px; }
  .pricing-section .price-card h3 { font-size: 26px; }
  .pricing-section .plan-description { min-height: 0; font-size: 14px; }
  .pricing-section .price { margin-top: 19px; }
  .pricing-section .price-card .button { font-size: 14px; min-height: 46px; }
  .pricing-section .plan-points li { font-size: 13px; }
  .header-download { min-height: 36px; }
  .menu-toggle { width: 36px; height: 36px; }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .pricing-section .price-card, .pricing-section .price-card.featured,
  .button:is(.button-primary, .button-dark, .button-soft, .button-glass), .plan-tabs {
    background: linear-gradient(145deg, #fff, #eaf3fc);
  }
}

@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .pricing-section::before { display: none; }
  .pricing-section .price-card, .pricing-section .price-card.featured,
  .button:is(.button-primary, .button-dark, .button-soft, .button-glass),
  .button:is(.button-primary, .button-dark, .button-soft, .button-glass):is(:hover, :focus-visible, :active),
  .plan-tabs, .plan-tabs button.active, .demo-groups button, .menu-toggle, .copy-contact {
    background: #f3f8fe;
    border-color: #91abc6;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .pricing-section :is(.plan-description, .plan-points li, .plan-tag, .pricing-note) { color: #435a70; }
}

@media (forced-colors: active) {
  .pricing-section::before { display: none; }
  .pricing-section .price-card, .pricing-section .price-card.featured,
  .button, .plan-tabs, .plan-tabs button, .demo-groups button, .menu-toggle, .copy-contact {
    background: Canvas; color: CanvasText; border: 1px solid ButtonText; box-shadow: none;
    backdrop-filter: none; -webkit-backdrop-filter: none; text-shadow: none;
  }
  .plan-tabs button[aria-selected="true"], .demo-groups button[aria-pressed="true"] {
    background: Highlight; color: HighlightText;
  }
}
