/* Plan cards (Sky, 10 Nov 2026), from pricing mockup D (brand/proposals/pricing/d-final.html): Membership, Plus and
   Pay per item, with tactile buttons after Scrolltide and the chrome ring after libraries.dev/metal, both rebuilt in
   CSS. Shared by learn.orism.ai/pricing.html and orism.ai (landing/build.mjs copies it). Brand roles only. */
@property --pl-m { syntax: "<angle>"; initial-value: 0deg; inherits: true; }

.pl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; align-items: start; }
.pl-card { position: relative; display: flex; flex-direction: column; gap: 1.1rem; min-width: 0; padding: 1.75rem; border-radius: 24px; border: 1px solid var(--color-border); background: var(--color-surface);
  transition: transform 0.25s ease, box-shadow 0.25s ease; }
.pl-card:hover { transform: translateY(-3px); box-shadow: 0 22px 44px -30px rgb(15 23 42 / 0.45); }
.pl-card--plus { border-color: color-mix(in srgb, var(--color-accent) 40%, var(--color-border));
  background: linear-gradient(180deg, color-mix(in srgb, var(--color-accent-soft) 60%, var(--color-surface)) 0%, var(--color-surface) 38%);
  box-shadow: 0 22px 44px -32px color-mix(in srgb, var(--color-accent) 70%, transparent); }
.pl-card__name { margin: 0; color: var(--color-text); font: 650 1.25rem / 1.2 var(--type-display-family); }
.pl-card__about { margin: 0.35rem 0 0; color: var(--color-text-muted); font: 400 14.5px / 1.55 var(--type-body-family); min-height: 2.9em; }
.pl-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.45rem; margin: 0; }
.pl-price__n { color: var(--color-text); font: 700 3.1rem / 1 var(--type-display-family); letter-spacing: -0.035em; font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; white-space: nowrap; }
.pl-price__u { color: var(--color-text-muted); font: 500 14.5px / 1.2 var(--type-label-family); }
.pl-price__note { margin: -0.55rem 0 0; color: var(--color-text-subtle); font: 400 13px / 1.45 var(--type-body-family); min-height: 1.45em; }
.pl-price__note b { color: var(--color-success); font-weight: 600; }
.pl-feat { display: grid; gap: 0.65rem; margin: 0; padding: 0; list-style: none; color: var(--color-text); font: 400 14.5px / 1.45 var(--type-body-family); }
.pl-feat li { display: flex; gap: 0.6rem; align-items: flex-start; }
.pl-feat .pl-i { margin-block-start: 0.15em; color: var(--color-success); }
.pl-feat .is-off { color: var(--color-text-subtle); } .pl-feat .is-off .pl-i { color: var(--color-text-subtle); }

/* Pay per item: the four buy-once prices */
.pl-kinds { display: grid; margin: 0; padding: 0; list-style: none; }
.pl-kind { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.75rem; align-items: center; padding: 0.7rem 0.75rem; margin-inline: -0.75rem; border-radius: 14px; transition: background-color 0.15s ease; }
.pl-kind:hover { background: var(--color-surface-sunken); }
.pl-kind b { display: block; color: var(--color-text); font: 650 15px / 1.3 var(--type-display-family); }
.pl-kind small { display: block; color: var(--color-text-subtle); font: 400 12.5px / 1.45 var(--type-body-family); }
.pl-kind__p { color: var(--color-text); font: 700 1.2rem / 1 var(--type-display-family); white-space: nowrap; direction: ltr; unicode-bidi: isolate; }
.pl-kind__p small { display: inline; margin-inline-start: 0.2rem; color: var(--color-text-muted); font: 500 12px / 1 var(--type-body-family); }

/* Icons: CSS masks, so no inline SVG and nothing the CSP has to allow beyond data: images */
.pl-i { display: inline-block; flex: none; inline-size: 1.1em; block-size: 1.1em; background: currentColor; -webkit-mask: var(--pl-i) center / contain no-repeat; mask: var(--pl-i) center / contain no-repeat; }
.pl-i--check { --pl-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.pl-i--x { --pl-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E"); }
.pl-i--arrow { --pl-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m13 6 6 6-6 6'/%3E%3C/svg%3E"); }
.pl-i--clock { --pl-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); }
.pl-i--spark { --pl-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 3v4M12 17v4M3 12h4M17 12h4M5.6 5.6l2.8 2.8M15.6 15.6l2.8 2.8M5.6 18.4l2.8-2.8M15.6 8.4l2.8-2.8'/%3E%3C/svg%3E"); }
.pl-i--info { --pl-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5M12 8h.01'/%3E%3C/svg%3E"); }
.pl-i--chev { --pl-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
[dir="rtl"] .pl-i--arrow { transform: scaleX(-1); }

/* The silver Recommended badge */
.pl-tag { position: absolute; inset-block-start: 1.5rem; inset-inline-end: 1.5rem; display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.32rem 0.75rem; border-radius: 999px; color: #1b202b;
  font: 650 12px / 1.2 var(--type-label-family); background: linear-gradient(180deg, #ffffff 0%, #e3e7ec 48%, #b9c0ca 100%); border: 1px solid #a3aab5; box-shadow: inset 0 1px 0 #ffffff, 0 1px 2px rgb(15 23 42 / 0.18); }

/* Buttons: tactile pills (gloss, press, sliding arrow, a light sweep) with the chrome ring */
.pl-btn { --lift: 0px; position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem; min-height: 3rem; padding: 0 1.4rem; border-radius: 999px; border: 1px solid transparent;
  font: 600 15px / 1 var(--type-label-family); text-decoration: none; cursor: pointer; white-space: nowrap; -webkit-tap-highlight-color: transparent; transform: translateY(var(--lift));
  transition: transform 0.16s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.pl-btn--wide { width: 100%; }
.pl-btn__arrow { transition: translate 0.2s ease; }
.pl-btn:hover:not(:disabled) { --lift: -1px; } .pl-btn:hover:not(:disabled) .pl-btn__arrow { translate: 3px 0; } [dir="rtl"] .pl-btn:hover:not(:disabled) .pl-btn__arrow { translate: -3px 0; }
.pl-btn:active:not(:disabled) { --lift: 1px; transition-duration: 0.06s; }
.pl-btn:focus-visible { outline: 2px solid var(--color-focus-ring); outline-offset: 3px; }
.pl-btn::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(110deg, transparent 35%, color-mix(in srgb, var(--color-accent) 12%, transparent) 50%, transparent 65%); translate: -120% 0; transition: translate 0.7s ease; }
.pl-btn:hover:not(:disabled)::after { translate: 120% 0; }
.pl-btn--soft { color: var(--color-text); border-color: var(--color-border-strong);
  background: linear-gradient(180deg, var(--color-surface) 0%, color-mix(in srgb, var(--color-surface-sunken) 70%, var(--color-surface)) 100%);
  box-shadow: inset 0 1px 0 color-mix(in srgb, white 55%, transparent), 0 1px 2px rgb(15 23 42 / 0.08); }
.pl-btn--soft:hover:not(:disabled) { border-color: var(--color-text-subtle); }
.pl-btn--soft:active:not(:disabled) { box-shadow: inset 0 2px 4px rgb(15 23 42 / 0.14); }
/* Checkout isn't open yet: an honest, quiet state, never a fake join */
.pl-btn--soon, .pl-btn--soon:disabled { color: var(--color-text-muted); border-color: var(--color-border); background: var(--color-surface-sunken); box-shadow: none; cursor: default; }
.pl-btn--soon::after { display: none; }

/* Chrome ring (libraries.dev/metal, rebuilt): it drifts, and its bright side turns to the cursor (pricing.js) */
.pl-card--plus::before, .pl-btn--metal::before { content: ""; position: absolute; border-radius: inherit; pointer-events: none;
  background: conic-gradient(from var(--pl-m), #ffffff, #8b929e 10%, #f4f6f9 20%, #4a515e 33%, #dde2e8 45%, #cdbdff 51%, #8d95a1 58%, #ffffff 70%, #5a616e 83%, #bdefff 92%, #ffffff);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: pl-metal 9s ease-in-out infinite alternate; }
.pl-card--plus::before { inset: -1px; padding: 1.5px; }
.pl-btn--metal::before { inset: 0; padding: 1.5px; z-index: 1; }
.pl-btn--soft.pl-btn--metal::before { opacity: 0; transition: opacity 0.25s ease; } .pl-btn--soft.pl-btn--metal:hover::before { opacity: 1; }
.pl-btn--soon.pl-btn--metal::before { opacity: 0.55; }
.is-bend::before { animation: none; }
@keyframes pl-metal { from { --pl-m: -50deg; } to { --pl-m: 310deg; } }

/* Dark: a soft halo instead of a shadow */
:root[data-theme="dark"] .pl-card--plus { box-shadow: 0 0 34px -14px rgb(220 228 240 / 0.28), 0 22px 44px -30px rgb(0 0 0 / 0.6); }
:root[data-theme="dark"] .pl-tag { box-shadow: inset 0 1px 0 #ffffff, 0 0 16px -3px rgb(230 236 245 / 0.55); }
:root[data-theme="dark"] .pl-btn--soft { box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.07), 0 1px 2px rgb(0 0 0 / 0.4); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .pl-card--plus { box-shadow: 0 0 34px -14px rgb(220 228 240 / 0.28), 0 22px 44px -30px rgb(0 0 0 / 0.6); }
  :root:not([data-theme="light"]) .pl-tag { box-shadow: inset 0 1px 0 #ffffff, 0 0 16px -3px rgb(230 236 245 / 0.55); }
  :root:not([data-theme="light"]) .pl-btn--soft { box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.07), 0 1px 2px rgb(0 0 0 / 0.4); }
}

@media (max-width: 60rem) {
  .pl-grid { grid-template-columns: minmax(0, 1fr); }
  .pl-card--plus { order: -1; }
  .pl-card__about { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .pl-card--plus::before, .pl-btn--metal::before { animation: none; }
  .pl-btn::after { display: none; }
  .pl-card, .pl-btn { transition: none; }
  .pl-card:hover { transform: none; }
}

/* The launch sale (sale.js): the price crossed out before the sale price, and one line under the page lead. */
.pl-price__was, .pl-was { margin-inline-end: 0.35em; color: var(--color-text-muted); font-weight: 500; text-decoration: line-through; text-decoration-thickness: 2px; direction: ltr; unicode-bidi: isolate; }
.pl-price__was { font: 600 1.45rem / 1 var(--type-display-family); letter-spacing: -0.02em; }
.pl-was { font-size: 0.85em; }
.pl-sale { display: inline-block; margin: 0.9rem 0 0; padding: 0.45rem 0.9rem; border-radius: 999px; background: var(--color-accent-soft); color: var(--color-text); font: 650 14px / 1.3 var(--type-body-family); }
.pl-sale[hidden] { display: none; }
