/* Shared card contract. Add classes explicitly in templates; never infer
   presentation from a component's legacy name. */
:root {
  --status-success: #4ade80;
  --surface-background: var(--bg-main, #000);
  --surface-text: var(--text-main, #fff);
  --surface-hover-border: rgba(96, 154, 235, 0.45);
  --surface-selected-border: var(--accent, #1f7bff);
  --card-heading-size: clamp(1.15rem, 2vw, 1.5rem);
}

.card-surface {
  background-color: var(--surface-background) !important;
  background-image: none !important;
  color: var(--surface-text);
  border: 1px solid transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* Only an explicitly interactive card receives a hover border. */
.card-surface.card-interactive:hover {
  border-color: var(--surface-hover-border) !important;
}

.card-surface:is(.selected, .active, [aria-selected="true"], [aria-pressed="true"]) {
  border-color: var(--surface-selected-border) !important;
}

.card-surface:focus-visible {
  outline: 2px solid var(--surface-selected-border);
  outline-offset: 3px;
}

.card-surface::after {
  background-image: none !important;
}

.card-surface :where(h2, h3, h4, h5, h6),
.surface-heading {
  font-family: inherit !important;
  font-weight: 700 !important;
  color: var(--surface-text) !important;
  line-height: 1.2 !important;
  letter-spacing: -0.025em;
}

.card-surface :where(h3, h4, h5, h6),
.card-heading {
  font-size: var(--card-heading-size) !important;
}

/* Linked service previews use a restrained underline instead of a frame. */
.card-surface.card-underline {
  position: relative;
}

.card-surface.card-underline::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background-color: var(--surface-selected-border);
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 380ms cubic-bezier(0.22, 1, 0.36, 1), opacity 180ms ease;
  pointer-events: none;
}

.card-surface.card-underline:is(:hover, :focus-visible)::after {
  opacity: 1;
  transform: scaleX(1);
}

@media (prefers-reduced-motion: reduce) {
  .card-surface.card-underline::after {
    transition: none;
  }
}

/* Reusable proof/assurance rows, without legacy pill styling. */
.assurance-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.assurance-item {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 34px;
  min-width: 0;
  max-width: 100%;
  padding: 0.5rem 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--surface-text) !important;
  font-size: 0.85rem;
  line-height: 1.5;
}

.assurance-item .status-check { flex-shrink: 0; }

.status-check,
.context-list li::before,
.package-includes li::before,
.package-preview-includes li::before,
.poster-info-panel li::before {
  color: var(--status-success) !important;
}

@media (max-width: 640px) {
  .assurance-list {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.step-marker { border-radius: 0 !important; }

input[type="checkbox"] { accent-color: var(--status-success) !important; }

.card-icon.status-check { background: transparent !important; }

/* Shared emphasis for current product prices in every locale and currency. */
.product-price {
  font-weight: 900 !important;
  color: #fff !important;
  font-variant-numeric: tabular-nums;
}

.product-price s {
  font-weight: 400;
  color: var(--text-muted);
}

/* Secondary actions share the same underline motion as linked cards. */
.button_secondary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.45rem;
  padding: .9rem 1.35rem;
  box-sizing: border-box;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: rgba(255,255,255,.9);
  font: inherit;
  font-size: .94rem;
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.button_secondary::after {
  content: "";
  position: absolute;
  inset: auto 1.35rem .5rem;
  height: 1px;
  background: var(--surface-selected-border);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 380ms cubic-bezier(.22,1,.36,1);
  pointer-events: none;
}

.button_secondary:is(:hover, :focus-visible) {
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #fff;
}

.button_secondary:is(:hover, :focus-visible)::after {
  transform: scaleX(1);
}

@media (max-width: 560px) {
  .button_secondary { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .button_secondary::after { transition: none; }
}

/* Pre-order material checks: shared independently of package buttons. */
.button_check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  width: fit-content;
  max-width: 100%;
  box-sizing: border-box;
  margin-top: 1.25rem;
  padding: .85rem 1rem;
  border: 1px solid rgba(31,123,255,.38);
  border-radius: 0;
  background: rgba(31,123,255,.14);
  color: #fff;
  font-family: inherit;
  font-size: .88rem;
  font-weight: 700;
  line-height: var(--line-ui);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.button_check:hover {
  background: rgba(31,123,255,.24);
  border-color: rgba(31,123,255,.7);
  transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
  .button_check { transition: none; }
  .button_check:hover { transform: none; }
}

/* Circular playback affordances are an exception to square UI surfaces. */
.play-control-round {
  border-radius: 50% !important;
}

/* Shared minimalist arrows for homepage and testimonial sliders. */
.slider-arrow {
  display: grid;
  place-items: center;
  width: 48px;
  height: 44px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease;
}

.slider-arrow svg {
  width: 32px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.slider-arrow:hover {
  color: #8bbcff;
  border-bottom-color: #8bbcff;
}

.slider-arrow:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  color: var(--text-main);
}

@media (prefers-reduced-motion: reduce) {
  .slider-arrow { transition: none; }
}
