/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */
/* Prevent layout shift when scrollbar appears/disappears between pages */
html {
  scrollbar-gutter: stable;
}

/* Active nav link state — driven by aria-current because #site-nav is data-turbo-permanent */
a.nav-link[aria-current="page"] {
  color: #0F172A;
}
a.nav-link[aria-current="page"]::after {
  --tw-scale-x: 1;
}

/* Shared simple-calendar styles – mobile-first, no inline CSS in views */

.cal-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .cal-inner {
    min-width: 0;
  }

  .simple-calendar table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
  }

  .simple-calendar thead th {
    padding: 8px 4px;
    font-size: 10px;
    font-weight: 600;
    color: #64748b;
    text-transform: lowercase;
    border-bottom: 1px solid #e2e8f0;
    white-space: nowrap;
  }

  .simple-calendar tbody tr,
  .simple-calendar tbody tr.week,
  .simple-calendar tbody tr.week td {
    background: transparent !important;
  }

  .simple-calendar tbody td.day {
    vertical-align: top;
    padding: 6px 4px;
    min-height: 56px;
    height: auto;
    border-top: 1px solid #f1f5f9;
  }

  .sc-day {
    border-radius: 0.9rem;
    transition: background 0.14s ease, box-shadow 0.14s ease, transform 0.08s ease;
    padding: 3px 4px;
    display: grid;
    grid-template-rows: 20px 1fr;
  }

  .sc-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    min-height: 20px;
    margin-bottom: 0;
  }

  .sc-num {
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 600;
    color: #071b2f;
  }

  .sc-num--other {
    font-weight: 500;
    color: #64748b;
  }

  .sc-today-badge {
    display: none;
    align-items: center;
    gap: 0.25rem;
    border: 1px solid #bae6fd;
    background: #e0f2fe;
    color: #0369a1;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    margin-left: 0.375rem;
  }

  .sc-badge-label {
    font-size: 11px;
  }

  .sc-empty {
    display: none;
    font-size: 10px;
    line-height: 1;
    color: #9ca3af;
    margin-top: 0.25rem;
  }

  @media (min-width: 640px) {
    .simple-calendar thead th {
      padding: 12px 16px;
      font-size: 12px;
    }

    .simple-calendar tbody td.day {
      padding: 10px 12px;
      min-height: 76px;
    }

    .sc-day {
      padding: 4px 6px;
      grid-template-rows: 22px 1fr;
    }

    .sc-head {
      min-height: 22px;
      margin-bottom: 2px;
    }

    .sc-today-badge {
      display: inline-flex;
    }

    .sc-badge-label {
      display: inline;
    }

    .sc-empty {
      display: block;
    }
  }

  @media (hover: hover) {
    .sc-day:hover {
      background: #eff6ff;
      box-shadow: 0 0 0 1px rgba(34, 150, 202, 0.25);
      transform: translateY(-1px);
    }
  }


/* Plans showcase (catalog, practitioner, subscriptions) */
.pc-showcase {
  --pc-blue: #116d99;
  --pc-rose: #a4385c;
  --pc-teal: #0c7363;
  --pc-indigo: #3f47ad;
  --pc-amber: #8a5316;
  --pc-emerald: #167d50;
  --pc-violet: #5f45b8;
  --pc-slate: #3f5163;
  --pc-text-900: #071b2f;
  --pc-text-700: #2e4a62;
  --pc-text-500: #48657d;
  --pc-border: #c7dcee;

  border: 1px solid #dce8f2;
  border-radius: 28px;
  padding: 22px;
  background:
    radial-gradient(920px 340px at 85% -12%, rgba(30, 143, 199, 0.11), transparent 70%),
    linear-gradient(160deg, #f6fbff 0%, #fafdff 58%, #f3f8fd 100%);
}

.pc-showcase__tabs-wrap {
  margin-bottom: 20px;
}

.pc-showcase__tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid rgba(30, 143, 199, 0.2);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 6px 18px rgba(7, 27, 47, 0.08);
}

.pc-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  padding: 10px 16px;
  background: transparent;
  color: var(--pc-text-700);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.pc-tab__icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
}

.pc-tab__icon svg {
  width: 100%;
  height: 100%;
}

.pc-tab.is-active {
  background: var(--pc-blue);
  color: #fff;
  box-shadow: 0 8px 16px rgba(30, 143, 199, 0.28);
}

.pc-tab:not(.is-active):hover {
  background: rgba(30, 143, 199, 0.08);
  color: var(--pc-blue);
}

.pc-group[hidden] {
  display: none !important;
}

.pc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.pc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 395px;
  border-radius: 22px;
  border: 1px solid var(--pc-border);
  padding: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 10px rgba(7, 27, 47, 0.06), 0 1px 2px rgba(7, 27, 47, 0.03);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.pc-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(7, 27, 47, 0.1);
}

.pc-card--featured {
  border: 2px solid var(--pc-blue);
  box-shadow: 0 14px 34px rgba(30, 143, 199, 0.18), 0 4px 12px rgba(7, 27, 47, 0.06);
  background: linear-gradient(155deg, rgba(30, 143, 199, 0.05), rgba(255, 255, 255, 0.98));
}

.pc-card__tag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 999px;
  padding: 5px 11px;
  color: #fff;
  background: var(--pc-blue);
  font-size: 11px;
  font-weight: 950;
  box-shadow: 0 12px 20px rgba(30, 143, 199, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.pc-card__tag--popular {
  background: linear-gradient(135deg, #f97316, #ef4444);
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.35);
}

.pc-card__tag--recommended {
  background: linear-gradient(135deg, #10b981, #059669);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.35);
}

.pc-card__tag--highlight {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.35);
}

.pc-card__tag--new {
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.35);
}

.pc-card__head {
  margin-bottom: 12px;
}

.pc-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 950;
  border: 1px solid transparent;
}

.pc-badge--blue {
  background: rgba(30, 143, 199, 0.1);
  color: #155f88;
  border-color: rgba(30, 143, 199, 0.25);
}

.pc-badge--rose {
  background: rgba(200, 58, 96, 0.1);
  color: var(--pc-rose);
  border-color: rgba(200, 58, 96, 0.25);
}

.pc-badge--teal {
  background: rgba(13, 142, 121, 0.1);
  color: var(--pc-teal);
  border-color: rgba(13, 142, 121, 0.25);
}

.pc-badge--indigo {
  background: rgba(74, 78, 196, 0.1);
  color: var(--pc-indigo);
  border-color: rgba(74, 78, 196, 0.25);
}

.pc-badge--amber {
  background: rgba(163, 86, 10, 0.1);
  color: var(--pc-amber);
  border-color: rgba(163, 86, 10, 0.25);
}

.pc-badge--emerald {
  background: rgba(21, 168, 84, 0.1);
  color: var(--pc-emerald);
  border-color: rgba(21, 168, 84, 0.25);
}

.pc-badge--violet {
  background: rgba(110, 87, 200, 0.11);
  color: var(--pc-violet);
  border-color: rgba(110, 87, 200, 0.3);
}

.pc-badge--slate {
  background: rgba(90, 122, 146, 0.1);
  color: var(--pc-slate);
  border-color: rgba(90, 122, 146, 0.25);
}

.pc-badge--pop {
  background: var(--pc-blue);
  color: #fff;
  border-color: transparent;
}

.pc-card__title {
  margin: 8px 0 4px;
  font-size: 24px;
  line-height: 1.1;
  font-weight: 980;
  letter-spacing: -0.02em;
  color: var(--pc-text-900);
}

.pc-card__desc {
  margin: 0;
  color: var(--pc-text-500);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
  min-height: calc(1.45em * 2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pc-card__price-block {
  margin-bottom: 10px;
}

.pc-card__price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 2px;
}

.pc-card__installment-note {
  margin: 0;
  min-height: 1.6em;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--pc-text-500);
}

.pc-card__currency {
  font-size: 15px;
  line-height: 1;
  font-weight: 900;
  color: var(--pc-text-700);
  align-self: flex-start;
  transform: translateY(2px);
}

.pc-card__price-whole {
  font-size: 58px;
  line-height: 0.85;
  font-weight: 980;
  letter-spacing: -0.02em;
  color: var(--pc-text-900);
}

.pc-card__price-tail {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  margin-bottom: 8px;
}

.pc-card__price-cents {
  display: inline-block;
  font-size: 17px;
  line-height: 0.95;
  font-weight: 900;
  color: var(--pc-text-900);
}

.pc-card__price-unit {
  display: inline-block;
  color: var(--pc-text-500);
  font-size: 13px;
  line-height: 0.95;
  font-weight: 800;
}

.pc-card__fidelity {
  margin: 0 0 10px;
  color: var(--pc-text-500);
  font-size: 12px;
  font-weight: 700;
}

.pc-card__installment {
  display: flex;
  align-items: flex-start;
  gap: 2px;
  margin: 0 0 4px;
  line-height: 1;
}

.pc-card__installment-prefix {
  font-size: 11px;
  font-weight: 700;
  color: #6b7280;
  margin-right: 1px;
  padding-top: 2px;
}

.pc-card__installment-whole {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--pc-text, #0f1c2a);
}

.pc-card__installment-cents {
  font-size: 16px;
  font-weight: 700;
  color: var(--pc-text, #0f1c2a);
  align-self: flex-end;
  margin-bottom: 3px;
}

.pc-card__meta {
  margin: 0 0 12px;
}

.pc-card__meta div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

.pc-card__meta dt {
  margin: 0;
  font-size: 12px;
  color: var(--pc-text-500);
  font-weight: 750;
}

.pc-card__meta dd {
  margin: 0;
  text-align: right;
  font-size: 12px;
  color: var(--pc-text-700);
  font-weight: 800;
}

.pc-card__features {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}

.pc-card__features li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--pc-text-700);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
}

.pc-check {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  font-size: 12px;
  font-weight: 950;
  flex-shrink: 0;
}

.pc-check--blue {
  color: #155f88;
  background: rgba(30, 143, 199, 0.15);
}

.pc-check--rose {
  color: var(--pc-rose);
  background: rgba(200, 58, 96, 0.14);
}

.pc-check--teal {
  color: var(--pc-teal);
  background: rgba(13, 142, 121, 0.14);
}

.pc-check--indigo {
  color: var(--pc-indigo);
  background: rgba(74, 78, 196, 0.14);
}

.pc-check--amber {
  color: var(--pc-amber);
  background: rgba(163, 86, 10, 0.14);
}

.pc-check--emerald {
  color: var(--pc-emerald);
  background: rgba(21, 168, 84, 0.14);
}

.pc-check--violet {
  color: var(--pc-violet);
  background: rgba(110, 87, 200, 0.14);
}

.pc-check--slate {
  color: var(--pc-slate);
  background: rgba(90, 122, 146, 0.14);
}

.pc-card__actions {
  display: grid;
  gap: 8px;
}

.pc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  padding: 10px 14px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 900;
  border: 1.6px solid transparent;
  transition: filter 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.pc-btn--outline-blue { border-color: var(--pc-blue); color: var(--pc-blue); background: transparent; }
.pc-btn--outline-rose { border-color: var(--pc-rose); color: var(--pc-rose); background: transparent; }
.pc-btn--outline-teal { border-color: var(--pc-teal); color: var(--pc-teal); background: transparent; }
.pc-btn--outline-indigo { border-color: var(--pc-indigo); color: var(--pc-indigo); background: transparent; }
.pc-btn--outline-amber { border-color: var(--pc-amber); color: var(--pc-amber); background: transparent; }
.pc-btn--outline-emerald { border-color: var(--pc-emerald); color: var(--pc-emerald); background: transparent; }
.pc-btn--outline-violet { border-color: var(--pc-violet); color: var(--pc-violet); background: transparent; }
.pc-btn--outline-slate { border-color: var(--pc-slate); color: var(--pc-slate); background: transparent; }

.pc-btn--primary-blue { background: var(--pc-blue); color: #fff; }
.pc-btn--primary-rose { background: var(--pc-rose); color: #fff; }
.pc-btn--primary-teal { background: var(--pc-teal); color: #fff; }
.pc-btn--primary-indigo { background: var(--pc-indigo); color: #fff; }
.pc-btn--primary-amber { background: var(--pc-amber); color: #fff; }
.pc-btn--primary-emerald { background: var(--pc-emerald); color: #fff; }
.pc-btn--primary-violet { background: var(--pc-violet); color: #fff; }
.pc-btn--primary-slate { background: var(--pc-slate); color: #fff; }

.pc-btn:hover {
  filter: brightness(1.03);
}

.pc-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.pc-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.pc-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 27, 47, 0.55);
}

.pc-modal__box {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 22px;
  border: 1px solid #d7e5f1;
  padding: 22px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 24px 80px rgba(7, 27, 47, 0.3);
}

.pc-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid #d7e5f1;
  background: #fff;
  color: var(--pc-text-700);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.pc-modal__top {
  padding-right: 42px;
}

.pc-modal__pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.pc-modal__title {
  margin: 0 0 6px;
  color: var(--pc-text-900);
  font-size: 24px;
  font-weight: 980;
  letter-spacing: -0.02em;
}

.pc-modal__desc {
  margin: 0;
  color: var(--pc-text-500);
  font-size: 13px;
  line-height: 1.55;
}

.pc-modal__price-block {
  margin-top: 14px;
  border-radius: 14px;
  padding: 12px 14px;
  border: 1px solid #d7e5f1;
  background: #f2f7fb;
}

.pc-modal__price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.pc-modal__price {
  font-size: 28px;
  font-weight: 980;
  color: var(--pc-text-900);
}

.pc-modal__period {
  font-size: 13px;
  color: var(--pc-text-500);
  font-weight: 800;
}

.pc-modal__note {
  margin: 4px 0 0;
  color: var(--pc-text-500);
  font-size: 12px;
  font-weight: 700;
}

.pc-modal__features {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.pc-modal__features li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--pc-text-700);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 650;
}

.pc-modal__footer {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid #d7e5f1;
  color: var(--pc-text-500);
  font-size: 13px;
  line-height: 1.55;
  font-weight: 650;
}

@media (max-width: 1100px) {
  .pc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 740px) {
  .pc-showcase {
    border-radius: 20px;
    padding: 14px;
  }

  .pc-showcase__tabs {
    width: 100%;
    border-radius: 20px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pc-tab {
    justify-content: center;
    border-radius: 14px;
    padding: 10px 8px;
    font-size: 12px;
  }

  .pc-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .pc-card {
    min-height: 0;
    border-radius: 18px;
    padding: 18px 14px 14px;
  }

  .pc-card__title {
    font-size: 21px;
  }

  .pc-card__currency {
    font-size: 12px;
    transform: translateY(1px);
  }

  .pc-card__price-whole {
    font-size: 42px;
  }

  .pc-card__price-tail {
    margin-bottom: 5px;
  }

  .pc-card__price-cents {
    font-size: 14px;
  }

  .pc-card__price-unit {
    font-size: 11px;
  }

  .pc-modal__box {
    border-radius: 16px;
    padding: 16px 12px;
  }

  .pc-modal__title {
    font-size: 20px;
  }
}

.pc-collapsed-hidden {
  display: none !important;
}
