/* Octzen Showcase: pricing */
.ocs-pr { --pr-radius: 22px; --pr-gap: 20px; --pr-just: center; position: relative; padding: clamp(8px, 2vw, 24px) 0; }
.ocs-pr .ocs-pr__head { max-width: 720px; margin: 0 auto 28px; text-align: center; }
.ocs-pr .ocs-pr__heading { margin: 0 0 10px;font-size: clamp(1.9rem, 4.6vw, 3.1rem); line-height: 1.05; letter-spacing: -0.02em; color: var(--ocs-text); }
.ocs-pr .ocs-pr__sub { margin: 0; color: var(--ocs-muted); font-size: clamp(1rem, 1.6vw, 1.12rem); }

.ocs-pr .ocs-pr__ctrl { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; justify-content: center; margin: 0 0 10px; }

/* tabs with sliding ink */
.ocs-pr .ocs-pr__tabs, .ocs-pr .ocs-pr__cur { position: relative; display: inline-flex; padding: 5px; border-radius: 999px; background: var(--ocs-surface); border: 1px solid var(--ocs-line); isolation: isolate; }
.ocs-pr .ocs-pr__tab, .ocs-pr .ocs-pr__c { position: relative; z-index: 1; appearance: none; border: 0; background: transparent; margin: 0; cursor: pointer; font-weight: 600; font-size: 0.92rem; line-height: 1; letter-spacing: 0; text-transform: none; color: var(--ocs-muted); padding: 12px 20px; border-radius: 999px; transition: color 0.25s; box-shadow: none; }
.ocs-pr .ocs-pr__c { padding: 10px 16px; font-size: 0.85rem; }
.ocs-pr .ocs-pr__tab:hover, .ocs-pr .ocs-pr__c:hover { color: var(--ocs-text); background: transparent; }
.ocs-pr .ocs-pr__tab.is-on, .ocs-pr .ocs-pr__c.is-on { color: var(--ocs-accent-ink); background: transparent; }
.ocs-pr .ocs-pr__tab:focus-visible, .ocs-pr .ocs-pr__c:focus-visible { outline: 2px solid var(--ocs-accent); outline-offset: 2px; }
.ocs-pr .ocs-pr__ink, .ocs-pr .ocs-pr__thumb { position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 0; width: 0; border-radius: 999px; background: var(--ocs-accent); box-shadow: 0 6px 20px -6px var(--ocs-accent); transform: translateX(var(--x, 0)); transition: transform 0.45s var(--ocs-ease), width 0.45s var(--ocs-ease); pointer-events: none; }

.ocs-pr .ocs-pr__ctrl { margin-bottom: clamp(22px, 3vw, 34px); }

/* panels + grid */
.ocs-pr .ocs-pr__panel { display: grid; gap: var(--pr-gap); grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); align-items: stretch; width: 100%; max-width: calc(var(--n, 3) * 420px + (var(--n, 3) - 1) * var(--pr-gap)); margin: 0 auto; }
.ocs-pr .ocs-pr__panel[hidden] { display: none; }
.ocs-pr .ocs-pr__panel.is-in .ocs-plan { animation: ocsPlanIn 0.6s var(--ocs-ease) both; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes ocsPlanIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.ocs-pr .ocs-plan { position: relative; border-radius: var(--pr-radius); background: var(--ocs-surface); border: 1px solid var(--ocs-line); transition: transform 0.4s var(--ocs-ease), border-color 0.3s; isolation: isolate; display: flex; }
.ocs-pr .ocs-plan__in { position: relative; z-index: 2; display: flex; flex-direction: column; width: 100%; padding: clamp(22px, 2.6vw, 32px); border-radius: inherit; }
.ocs-pr .ocs-plan:hover { transform: translateY(-4px); border-color: var(--ocs-line-strong); }
.ocs-pr .ocs-plan.is-featured { border-color: transparent; background: linear-gradient(180deg, var(--ocs-surface-2), var(--ocs-surface)); box-shadow: 0 30px 70px -30px rgba(255, 179, 71, 0.35); }

/* moving border */
.ocs-pr.has-glow .ocs-plan.is-featured::before { content: ""; position: absolute; inset: -1px; z-index: 0; border-radius: inherit; padding: 1.5px; background: conic-gradient(from var(--ang, 0deg), transparent 0 55%, var(--ocs-accent) 80%, var(--ocs-cool) 92%, transparent 100%); -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: ocsSpin 5s linear infinite; pointer-events: none; }
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes ocsSpin { to { --ang: 360deg; } }
.ocs-pr:not(.has-glow) .ocs-plan.is-featured { border-color: var(--ocs-accent); }

/* pointer spotlight */
.ocs-pr.has-spot .ocs-plan::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, 0.07), transparent 60%); opacity: 0; transition: opacity 0.3s; pointer-events: none; }
.ocs-pr.has-spot .ocs-plan:hover::after { opacity: 1; }

.ocs-pr .ocs-plan__badge { align-self: flex-start; margin: 0 0 14px; padding: 5px 12px; border-radius: 999px; font-weight: 700; font-size: 0.72rem; line-height: 1; letter-spacing: 0.06em; text-transform: uppercase; background: var(--ocs-accent); color: var(--ocs-accent-ink); }
.ocs-pr .ocs-plan__name { margin: 0;font-size: 1.35rem; line-height: 1.2; color: var(--ocs-text); }
.ocs-pr .ocs-plan__tag { margin: 6px 0 0; color: var(--ocs-muted); font-size: 0.95rem; }
.ocs-pr .ocs-plan__priceBox { margin: 22px 0 20px; padding: 0 0 20px; border-bottom: 1px solid var(--ocs-line); }
.ocs-pr .ocs-plan__price { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px;font-size: clamp(2rem, 3.4vw, 2.7rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; color: var(--ocs-text); font-variant-numeric: tabular-nums; }
.ocs-pr .ocs-plan__price--text { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.ocs-pr .ocs-price__old { order: 2; font-size: 0.5em; font-weight: 500; color: var(--ocs-muted); text-decoration: line-through; }
.ocs-pr .ocs-price__old:empty { display: none; }
.ocs-pr .ocs-plan__period { margin: 6px 0 0; font-size: 0.85rem; color: var(--ocs-muted); }
.ocs-pr .ocs-plan__list { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 11px; flex: 1; }
.ocs-pr .ocs-plan__list li { display: flex; gap: 11px; align-items: flex-start; margin: 0; padding: 0; font-size: 0.95rem; line-height: 1.45; color: var(--ocs-text); }
.ocs-pr .ocs-plan__list li::before { content: none; }
.ocs-pr .ocs-plan__tick { flex: none; display: grid; place-items: center; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; background: rgba(255, 179, 71, 0.16); color: var(--ocs-accent); }
.ocs-pr .ocs-plan__list li.is-no { color: var(--ocs-muted); text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, 0.2); }
.ocs-pr .ocs-plan__list li.is-no .ocs-plan__tick { background: rgba(255, 255, 255, 0.05); }
.ocs-pr .ocs-plan__list li.is-no .ocs-plan__tick::before { content: ""; width: 8px; height: 2px; border-radius: 2px; background: var(--ocs-muted); }
.ocs-pr .ocs-plan .ocs-btn { width: 100%; justify-content: center; text-align: center; }

/* hide the price until the currency is known (reveals itself even if JS never runs) */
.ocs-price[data-pending] .ocs-price__v, .ocs-price[data-pending] .ocs-price__old { animation: ocsPriceShow 0s 1.6s forwards; opacity: 0; }
@keyframes ocsPriceShow { to { opacity: 1; } }
.ocs-price .ocs-price__v, .ocs-price .ocs-price__old { transition: opacity 0.25s; }
.ocs-price.is-swap .ocs-price__v { animation: ocsSwap 0.35s var(--ocs-ease); }
@keyframes ocsSwap { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.ocs-price--inline { font-weight: 700; font-variant-numeric: tabular-nums; }

@media (max-width: 1024px) {
	.ocs-pr .ocs-pr__panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ocs-pr .ocs-plan .ocs-btn { width: auto; max-width: 100%; align-self: center; }
	.ocs-pr .ocs-pr__panel[style*="--n:1"] { grid-template-columns: minmax(0, 520px); justify-content: center; }
}
@media (max-width: 680px) {
	.ocs-pr .ocs-pr__panel { grid-template-columns: minmax(0, 1fr); max-width: 460px; }
	.ocs-pr .ocs-pr__tabs { display: inline-flex; width: auto; max-width: 100%; }
	.ocs-pr .ocs-pr__tab { flex: 0 1 auto; padding: 12px 18px; font-size: 0.86rem; white-space: nowrap; }
	.ocs-pr .ocs-plan.is-featured { order: -1; }
	.ocs-pr .ocs-plan:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
	.ocs-pr *, .ocs-pr *::before, .ocs-pr *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
}
.ocs-pr .screen-reader-text { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.ocs-pr .ocs-plan__from { display: block; margin: 0 0 2px; font-size: 0.85rem; font-weight: 600; color: var(--ocs-muted); }
.ocs-pr .ocs-plan__list { margin-bottom: 14px; }
.ocs-pr .ocs-plan__more { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin: 0 0 22px; font-size: 0.92rem; font-weight: 600; color: var(--ocs-accent); text-decoration: none; }
.ocs-pr .ocs-plan__more span { transition: transform 0.25s var(--ocs-ease); }
.ocs-pr .ocs-plan__more:hover span { transform: translateX(4px); }
.ocs-pr .ocs-plan:not(.is-featured) .ocs-plan__more { color: var(--ocs-text); }

/* phones: slimmer, more compact plan cards */
@media (max-width: 680px) {
	.ocs-pr { --pr-radius: 18px; --pr-gap: 14px; }
	.ocs-pr .ocs-pr__panel { max-width: 380px; }
	.ocs-pr .ocs-plan__in { padding: 18px 18px 20px; }
	.ocs-pr .ocs-plan__badge { margin-bottom: 10px; padding: 4px 10px; font-size: 0.66rem; }
	.ocs-pr .ocs-plan__name { font-size: 1.15rem; }
	.ocs-pr .ocs-plan__tag { margin-top: 4px; font-size: 0.86rem; line-height: 1.45; }
	.ocs-pr .ocs-plan__priceBox { margin: 14px 0 14px; padding-bottom: 14px; }
	.ocs-pr .ocs-plan__price { font-size: clamp(1.6rem, 7.4vw, 2rem); }
	.ocs-pr .ocs-plan__price--text { font-size: clamp(1.35rem, 6vw, 1.7rem); }
	.ocs-pr .ocs-plan__period { margin-top: 4px; font-size: 0.78rem; }
	.ocs-pr .ocs-plan__list { gap: 8px; margin-bottom: 18px; }
	.ocs-pr .ocs-plan__list li { gap: 9px; font-size: 0.86rem; line-height: 1.4; }
	.ocs-pr .ocs-plan__more { margin-bottom: 16px; font-size: 0.85rem; }
	.ocs-pr .ocs-plan .ocs-btn { min-height: 44px; font-size: 0.88rem; }
}
