/* RollDate Events Pro — commerce design system (light, brand blue) */

body.product-events[data-pro-page] {
  --accent: #2d7cff;
  --accent-hover: #1f5dc1;
  --accent-strong: #1a4fa8;
  --accent-soft: rgba(45, 124, 255, 0.1);
  --accent-ring: rgba(45, 124, 255, 0.28);
  --pro-ink: #1a1f29;
  --pro-muted: #55606e;
  --pro-faint: #8a929e;
  --pro-panel: #ffffff;
  --pro-panel-2: #f3f5f8;
  --pro-border: rgba(15, 25, 45, 0.1);
  --pro-border-strong: rgba(15, 25, 45, 0.16);
  --pro-shadow: 0 18px 48px -28px rgba(20, 40, 80, 0.35);
  --pro-shadow-sm: 0 8px 24px -16px rgba(20, 40, 80, 0.28);
  --pro-ok: #0f7b4a;
  --pro-ok-soft: rgba(15, 123, 74, 0.1);
  --pro-warn: #9a6700;
  --pro-warn-soft: rgba(154, 103, 0, 0.12);
  --pro-danger: #b42318;
  --pro-danger-soft: rgba(180, 35, 24, 0.1);
  --pro-info: #175cd3;
  --pro-info-soft: rgba(23, 92, 211, 0.1);
  --pro-radius: 16px;
  --pro-radius-sm: 12px;
  --pro-max: 1120px;
  --pro-narrow: 640px;
  color: var(--pro-ink);
  background:
    radial-gradient(1200px 480px at 12% -10%, rgba(45, 124, 255, 0.12), transparent 60%),
    radial-gradient(900px 420px at 88% 0%, rgba(26, 31, 41, 0.05), transparent 55%),
    #f6f7f9;
}

body.product-events[data-pro-page] .brand-wordmark__date {
  color: var(--accent);
}

.pro-page {
  padding: 40px 0 88px;
  min-height: calc(100vh - 180px);
}

.pro-shell {
  width: min(100% - 32px, var(--pro-max));
  margin: 0 auto;
}

.pro-shell--narrow {
  width: min(100% - 32px, var(--pro-narrow));
}


.pro-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--pro-border);
}

.pro-chrome__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  font-weight: 700;
}

.pro-chrome__brand img {
  width: 28px;
  height: 28px;
}

.pro-chrome__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.pro-chrome__meta a {
  color: var(--pro-muted);
  text-decoration: none;
  font-size: 0.92rem;
}

.pro-chrome__meta a:hover,
.pro-chrome__meta a:focus-visible {
  color: var(--accent);
}

.pro-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.pro-hero {
  display: grid;
  gap: 36px;
  align-items: center;
  margin: 8px 0 48px;
}

@media (min-width: 960px) {
  .pro-hero {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.12fr);
    gap: 40px;
  }
}

.pro-hero__copy h1 {
  margin: 0 0 14px;
  font-size: clamp(2.2rem, 4.4vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--pro-ink);
}

.pro-hero__lede {
  margin: 0 0 22px;
  font-size: 1.08rem;
  line-height: 1.55;
  color: var(--pro-muted);
  max-width: 38ch;
}

.pro-buy-panel {
  background: var(--pro-panel);
  border: 1px solid var(--pro-border);
  border-radius: var(--pro-radius);
  box-shadow: var(--pro-shadow-sm);
  padding: 22px;
}

.pro-price {
  margin: 0 0 6px;
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--pro-ink);
}

.pro-price[data-pro-price-state='loading'],
.pro-price[data-pro-price-state='error'] {
  font-size: 1rem;
  font-weight: 600;
  color: var(--pro-muted);
}

.pro-price[data-pro-price-state='error'] {
  color: var(--pro-danger);
}

.pro-fine {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--pro-muted);
}

.pro-fine--billing {
  margin-top: 2px;
  margin-bottom: 8px;
  font-weight: 650;
  color: var(--pro-ink);
}

.pro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 18px 0 12px;
}

.pro-actions .btn,
.pro-form .btn,
.pro-status .btn {
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.pro-actions .btn-primary,
.pro-form .btn-primary,
.pro-status .btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.pro-actions .btn-primary:hover:not(:disabled),
.pro-form .btn-primary:hover:not(:disabled),
.pro-status .btn-primary:hover:not(:disabled) {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.pro-actions .btn-primary:disabled,
.pro-form .btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.pro-actions .btn-ghost,
.pro-status .btn-ghost,
.pro-form .btn-ghost {
  background: transparent;
  border-color: var(--pro-border-strong);
  color: var(--pro-ink);
}

.pro-actions .btn-ghost:hover,
.pro-status .btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
  background: var(--accent-soft);
}

.pro-actions .btn:focus-visible,
.pro-form .btn:focus-visible,
.pro-status .btn:focus-visible,
.pro-form input:focus-visible,
.pro-legal-links a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.pro-sales-banner {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--pro-info-soft);
  color: var(--pro-info);
  font-size: 0.9rem;
  font-weight: 650;
}

.pro-sales-banner[hidden] {
  display: none;
}

.pro-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--pro-border);
}

.pro-legal-links a {
  color: var(--pro-muted);
  font-size: 0.88rem;
}

.pro-legal-links a:hover {
  color: var(--accent-strong);
}

/* Stylized calendar preview (real Events feature set, no stock art) */
.pro-preview {
  background: var(--pro-panel);
  border: 1px solid var(--pro-border);
  border-radius: calc(var(--pro-radius) + 4px);
  box-shadow: var(--pro-shadow);
  overflow: hidden;
}

.pro-preview__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--pro-border);
  background: linear-gradient(180deg, #fff, var(--pro-panel-2));
}

.pro-preview__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 750;
}

.pro-preview__views {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.pro-preview__views span {
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--pro-muted);
  background: rgba(15, 25, 45, 0.04);
}

.pro-preview__views span.is-active {
  color: #fff;
  background: var(--accent);
}

.pro-preview__grid {
  display: grid;
  grid-template-columns: 56px repeat(5, 1fr);
  min-height: 320px;
}

.pro-preview__times,
.pro-preview__day {
  border-right: 1px solid var(--pro-border);
}

.pro-preview__day:last-child {
  border-right: 0;
}

.pro-preview__times {
  display: grid;
  grid-template-rows: repeat(6, 1fr);
  padding: 28px 6px 10px;
  color: var(--pro-faint);
  font-size: 0.68rem;
  text-align: right;
  background: #fafbfc;
}

.pro-preview__day-head {
  padding: 10px 8px 8px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--pro-muted);
  border-bottom: 1px solid var(--pro-border);
  background: #fff;
}

.pro-preview__day-body {
  position: relative;
  height: 252px;
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 35px,
      rgba(15, 25, 45, 0.05) 35px,
      rgba(15, 25, 45, 0.05) 36px
    );
}

.pro-event {
  position: absolute;
  left: 6px;
  right: 6px;
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.25;
  color: #123;
  box-shadow: 0 4px 12px -8px rgba(20, 40, 80, 0.45);
}

.pro-event--blue {
  background: rgba(45, 124, 255, 0.18);
  border-left: 3px solid var(--accent);
  top: 18px;
  height: 54px;
}

.pro-event--slate {
  background: rgba(26, 31, 41, 0.08);
  border-left: 3px solid #445;
  top: 88px;
  height: 40px;
}

.pro-event--teal {
  background: rgba(15, 123, 74, 0.14);
  border-left: 3px solid #0f7b4a;
  top: 42px;
  height: 70px;
}

.pro-event--amber {
  background: rgba(154, 103, 0, 0.14);
  border-left: 3px solid #9a6700;
  top: 120px;
  height: 48px;
}

.pro-preview__caption {
  margin: 0;
  padding: 12px 16px 14px;
  border-top: 1px solid var(--pro-border);
  color: var(--pro-muted);
  font-size: 0.84rem;
  background: #fff;
}

.pro-section {
  margin: 0 0 36px;
}

.pro-section__head {
  max-width: 46rem;
  margin-bottom: 18px;
}

.pro-section__head h2 {
  margin: 0 0 8px;
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  letter-spacing: -0.02em;
}

.pro-section__head p {
  margin: 0;
  color: var(--pro-muted);
  line-height: 1.5;
}

.pro-feature-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.pro-card {
  background: var(--pro-panel);
  border: 1px solid var(--pro-border);
  border-radius: var(--pro-radius-sm);
  box-shadow: var(--pro-shadow-sm);
  padding: 18px 18px 16px;
}

.pro-card h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
}

.pro-card p,
.pro-card li {
  color: var(--pro-muted);
  line-height: 1.45;
  font-size: 0.94rem;
}

.pro-card p {
  margin: 0;
}

.pro-card ul {
  margin: 0;
  padding-left: 1.15em;
}

.pro-card li + li {
  margin-top: 6px;
}

.pro-include {
  display: grid;
  gap: 12px;
}

.pro-include__row {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  background: var(--pro-panel);
  border: 1px solid var(--pro-border);
  border-radius: var(--pro-radius-sm);
}

.pro-include__icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 800;
  font-size: 0.85rem;
}

.pro-include__row strong {
  display: block;
  margin-bottom: 2px;
}

.pro-include__row span {
  color: var(--pro-muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

.pro-purchase {
  display: grid;
  gap: 16px;
  padding: 22px;
  background: linear-gradient(180deg, #fff, #f7f9fc);
  border: 1px solid var(--pro-border);
  border-radius: var(--pro-radius);
  box-shadow: var(--pro-shadow-sm);
}

.pro-purchase h2 {
  margin: 0;
}

.pro-code {
  margin: 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: #12161f;
  color: #e8eef8;
  overflow-x: auto;
  font-size: 0.88rem;
}

.pro-code code {
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
}

/* Flow pages: status / download / recover */
.pro-flow-hero {
  margin-bottom: 14px;
}

.pro-flow-hero h1 {
  margin: 0 0 8px;
  max-width: 22ch;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  letter-spacing: -0.02em;
}

.pro-flow-hero p {
  margin: 0;
  max-width: 42ch;
  color: var(--pro-muted);
  line-height: 1.5;
}

.pro-status {
  position: relative;
  margin: 0 0 14px;
  padding: 22px 20px;
  background: var(--pro-panel);
  border: 1px solid var(--pro-border);
  border-radius: var(--pro-radius);
  box-shadow: var(--pro-shadow-sm);
}

.pro-status__icon {
  display: none;
}

.pro-status[hidden] {
  display: none !important;
}

.pro-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 10px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  text-transform: none;
}

.pro-status p,
.pro-portal > p {
  max-width: 46ch;
}

.pro-badge--info {
  background: var(--pro-info-soft);
  color: var(--pro-info);
}

.pro-badge--ok {
  background: var(--pro-ok-soft);
  color: var(--pro-ok);
}

.pro-badge--warn {
  background: var(--pro-warn-soft);
  color: var(--pro-warn);
}

.pro-badge--danger {
  background: var(--pro-danger-soft);
  color: var(--pro-danger);
}

.pro-status h2 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  font-weight: 700;
}

.pro-status p {
  margin: 0 0 8px;
  color: var(--pro-muted);
  line-height: 1.5;
  font-weight: 400;
}

.pro-status .pro-actions {
  margin-bottom: 0;
}

.pro-spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(45, 124, 255, 0.2);
  border-top-color: var(--accent);
  display: inline-block;
  vertical-align: -3px;
  animation: pro-spin 0.8s linear infinite;
}

@keyframes pro-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pro-spinner {
    animation: none;
    border-top-color: var(--accent);
    opacity: 0.7;
  }
  .pro-actions .btn,
  .pro-form .btn,
  .pro-status .btn {
    transition: none;
  }
}

.pro-portal {
  background: var(--pro-panel);
  border: 1px solid var(--pro-border);
  border-radius: var(--pro-radius);
  box-shadow: var(--pro-shadow-sm);
  padding: 22px 20px;
}

/* Download states already use .pro-status cards — avoid card-in-card squeeze */
.pro-portal:has(> .pro-status) {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.pro-portal:has(> .pro-status) > .pro-status {
  margin-bottom: 0;
}

.pro-portal__meta {
  display: grid;
  gap: 4px;
  margin-bottom: 16px;
}

.pro-portal__meta strong {
  font-size: 1.15rem;
}

.pro-portal__meta span {
  color: var(--pro-muted);
  font-size: 0.92rem;
}

.pro-steps {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.pro-steps li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--pro-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.pro-steps li::before {
  content: attr(data-step);
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.75rem;
  font-weight: 800;
}

.pro-steps li code {
  display: inline;
  padding: 0.05em 0.35em;
  border-radius: 6px;
  background: rgba(15, 25, 45, 0.06);
  font-size: 0.88em;
  white-space: nowrap;
}

.pro-form {
  display: grid;
  gap: 10px;
}

.pro-form label {
  font-weight: 700;
  font-size: 0.92rem;
}

.pro-form input {
  width: 100%;
  box-sizing: border-box;
  background: #fff;
  color: var(--pro-ink);
  border: 1px solid var(--pro-border-strong);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 1rem;
}

.pro-form input::placeholder {
  color: var(--pro-faint);
}

.pro-live {
  min-height: 1.4em;
  margin: 10px 0 0;
  font-size: 0.92rem;
  color: var(--pro-muted);
}

.pro-live[data-tone='ok'] {
  color: var(--pro-ok);
}

.pro-live[data-tone='danger'] {
  color: var(--pro-danger);
}

.pro-support-line {
  margin-top: 18px;
  font-size: 0.9rem;
  color: var(--pro-muted);
}

.pro-support-line a {
  color: var(--accent-strong);
}

@media (max-width: 640px) {
  .pro-page {
    padding: 24px 0 64px;
  }

  .pro-chrome {
    align-items: flex-start;
    flex-direction: column;
  }

  .pro-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .pro-actions .btn,
  .pro-form .btn,
  .pro-status .btn {
    width: 100%;
  }

  .pro-preview__grid {
    grid-template-columns: 44px repeat(3, 1fr);
  }

  .pro-preview__day:nth-child(n + 5) {
    display: none;
  }
}
