/*
 * Blyss: black, white and one red. The bl- sections and the touches on the shared chrome (navbar, footer, cards).
 * Colours come from the theme settings (--cl-*); red is the brand's and stays fixed.
 */

:root {
  --bl-red: #EB2030;
  --bl-red-hover: #FF3343;
  --bl-text: rgb(var(--cl-t-primary));
  --bl-muted: rgb(var(--cl-t-muted));
  --bl-bg: rgb(var(--cl-background));
  --bl-surface: rgb(var(--cl-surface));
  --bl-line: var(--cl-border);
  --bl-line-strong: rgba(var(--cl-t-primary), 0.16);
  --bl-mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --bl-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--bl-red);
  color: #fff;
}

h1, h2, h3, h4 {
  letter-spacing: -0.02em;
}

/* ── The mark ─────────────────────────────────────────────────────────────── */

.bl-mark {
  display: block;
  height: 30px;
  width: auto;
  overflow: visible;
}

.bl-mark-feather {
  transform-box: fill-box;
  transform-origin: 100% 50%;
  animation: bl-flap 6s ease-in-out infinite;
}

.bl-mark-feather:nth-child(2) { animation-delay: 0.1s; }
.bl-mark-feather:nth-child(3) { animation-delay: 0.2s; }

.bl-mark-halo {
  transform-box: view-box;
  transform-origin: 100px 17px;
  animation: bl-float 1.6s ease-in-out infinite alternate;
}

.bl-mark-spark {
  transform-box: fill-box;
  transform-origin: center;
  animation: bl-twinkle 0.9s ease-in-out infinite alternate;
}

.bl-mark--still .bl-mark-feather,
.bl-mark--still .bl-mark-halo,
.bl-mark--still .bl-mark-spark {
  animation: none;
}

@keyframes bl-flap {
  0% { transform: rotate(0deg); }
  9.9% { transform: rotate(9deg); }
  17.2% { transform: rotate(-3deg); }
  26%, 100% { transform: rotate(0deg); }
}

@keyframes bl-float {
  from { transform: none; }
  to { transform: translateY(-5px) rotate(-3deg); }
}

@keyframes bl-twinkle {
  from { transform: scale(0.5); opacity: 0.45; }
  to { transform: scale(1.15) rotate(45deg); opacity: 1; }
}

/* ── Buttons and links ────────────────────────────────────────────────────── */

.bl-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.bl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 160ms var(--bl-ease), border-color 160ms var(--bl-ease), color 160ms var(--bl-ease);
}

.bl-btn--red {
  background: var(--bl-red);
  color: #fff;
}

.bl-btn--red:hover {
  background: var(--bl-red-hover);
}

.bl-btn--ghost {
  border-color: var(--bl-line-strong);
  color: var(--bl-text);
}

.bl-btn--ghost:hover {
  background: rgba(var(--cl-t-primary), 0.06);
  border-color: rgba(var(--cl-t-primary), 0.28);
}

.bl-btn--block {
  display: flex;
  width: 100%;
}

.bl-btn:focus-visible,
.bl-link:focus-visible,
.bl-qa summary:focus-visible {
  outline: 2px solid var(--bl-text);
  outline-offset: 3px;
}

.bl-link {
  display: inline-flex;
  margin-top: 20px;
  font-size: 15px;
  font-weight: 500;
  color: var(--bl-text);
  text-decoration: underline;
  text-decoration-color: var(--bl-line-strong);
  text-underline-offset: 5px;
  transition: text-decoration-color 160ms var(--bl-ease);
}

.bl-link:hover {
  text-decoration-color: var(--bl-red);
}

/* ── Sections ─────────────────────────────────────────────────────────────── */

.bl-section {
  padding-block: 120px;
  border-top: 1px solid var(--bl-line);
  scroll-margin-top: 64px;
}

.bl-head {
  max-width: 640px;
  margin-bottom: 56px;
}

.bl-head--tight {
  margin-bottom: 0;
}

.bl-head-title {
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 600;
  color: var(--bl-text);
}

.bl-head-text {
  margin-top: 16px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--bl-muted);
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */

.bl-hero {
  padding-block: 112px 128px;
}

.bl-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: 72px;
}

.bl-hero-title {
  max-width: 12ch;
  font-size: clamp(2.75rem, 6.2vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -0.038em;
  font-weight: 600;
  color: var(--bl-text);
  text-wrap: balance;
}

.bl-hero-text {
  max-width: 34rem;
  margin-top: 28px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--bl-muted);
}

.bl-hero .bl-actions {
  margin-top: 40px;
}

.bl-hero-grid--solo {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  text-align: center;
}

.bl-hero-grid--solo .bl-hero-title {
  max-width: 14ch;
  margin-inline: auto;
}

.bl-hero-grid--solo .bl-hero-text {
  margin-inline: auto;
  text-wrap: balance;
}

.bl-hero-grid--solo .bl-actions {
  justify-content: center;
}

.bl-hero-mark {
  height: 104px;
  margin: 0 auto 40px;
}

.bl-shot {
  overflow: hidden;
  border: 1px solid var(--bl-line);
  border-radius: 16px;
  background: var(--bl-surface);
}

.bl-shot img {
  display: block;
  width: 100%;
  height: auto;
}

/* ── Highlights ───────────────────────────────────────────────────────────── */

.bl-cells {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--bl-line);
  border-left: 1px solid var(--bl-line);
}

.bl-cell {
  display: flex;
  flex-direction: column;
  padding: 32px 32px 36px;
  border-right: 1px solid var(--bl-line);
  border-bottom: 1px solid var(--bl-line);
  transition: background-color 200ms var(--bl-ease);
}

.bl-cell:hover {
  background: rgba(var(--cl-t-primary), 0.025);
}

.bl-cell-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  margin-bottom: 28px;
  border-radius: 10px;
  border: 1px solid var(--bl-line);
}

.bl-cell-index {
  font-family: var(--bl-mono);
  font-size: 13px;
  color: var(--bl-muted);
}

.bl-cell-title {
  margin-top: 44px;
  font-size: 19px;
  font-weight: 600;
  color: var(--bl-text);
}

.bl-cell-image + .bl-cell-index + .bl-cell-title {
  margin-top: 12px;
}

.bl-cell-text {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--bl-muted);
}

/* ── Pricing ──────────────────────────────────────────────────────────────── */

.bl-pricing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: 80px;
  align-items: start;
}

.bl-steps {
  margin-top: 48px;
  border-top: 1px solid var(--bl-line);
}

.bl-step {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 8px;
  padding: 24px 0;
  border-bottom: 1px solid var(--bl-line);
}

.bl-step-index {
  font-family: var(--bl-mono);
  font-size: 14px;
  line-height: 1.6;
  color: var(--bl-muted);
}

.bl-step-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--bl-text);
}

.bl-step-text {
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--bl-muted);
}

.bl-plan {
  padding: 36px;
  border: 1px solid var(--bl-line-strong);
  border-radius: 18px;
  background: var(--bl-surface);
}

.bl-plan-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--bl-muted);
}

.bl-plan-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 14px;
}

.bl-plan-amount {
  font-size: 56px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.045em;
  color: var(--bl-text);
}

.bl-plan-period {
  font-size: 16px;
  color: var(--bl-muted);
}

.bl-plan-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 32px 0;
  padding-top: 28px;
  border-top: 1px solid var(--bl-line);
}

.bl-plan-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--bl-text);
}

.bl-plan-list svg {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  color: var(--bl-muted);
}

.bl-plan-note {
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
  color: var(--bl-muted);
}

/* ── FAQ ──────────────────────────────────────────────────────────────────── */

.bl-faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 80px;
  align-items: start;
}

.bl-faq-list {
  border-top: 1px solid var(--bl-line);
}

.bl-qa {
  border-bottom: 1px solid var(--bl-line);
}

.bl-qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  font-size: 17px;
  font-weight: 500;
  color: var(--bl-text);
  cursor: pointer;
  list-style: none;
}

.bl-qa summary::-webkit-details-marker {
  display: none;
}

.bl-qa summary svg {
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--bl-muted);
  transition: transform 200ms var(--bl-ease), color 200ms var(--bl-ease);
}

.bl-qa[open] summary svg {
  transform: rotate(45deg);
  color: var(--bl-text);
}

.bl-qa-answer {
  max-width: 40rem;
  padding: 0 40px 26px 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--bl-muted);
}

.bl-qa-answer a {
  color: var(--bl-text);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ── Product text ─────────────────────────────────────────────────────────── */
/* Descriptions written as plain HTML (API or pasted) carry none of the editor's e- classes, so the tags get the look. */

.editor {
  max-width: 44rem;
  font-size: 16px;
  line-height: 1.7;
  color: var(--bl-muted);
}

.editor > * + * {
  margin-top: 16px;
}

.editor h2,
.editor h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--bl-text);
}

.editor > h2,
.editor > h3 {
  margin-top: 36px;
}

.editor > :first-child {
  margin-top: 0;
}

.editor > p:first-child {
  font-size: 18px;
  line-height: 1.6;
  color: var(--bl-text);
}

.editor strong {
  font-weight: 600;
  color: var(--bl-text);
}

.editor ul:not([class]) {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.editor ul:not([class]) > li {
  position: relative;
  padding-left: 20px;
}

.editor ul:not([class]) > li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.8em;
  width: 8px;
  height: 1px;
  background: var(--bl-muted);
}

.editor a:not([class]) {
  color: var(--bl-text);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.editor code {
  padding: 1px 6px;
  border-radius: 5px;
  font-family: var(--bl-mono);
  font-size: 0.9em;
  color: var(--bl-text);
  background: rgba(var(--cl-t-primary), 0.08);
}

/* ── Shared chrome ────────────────────────────────────────────────────────── */

.sa-navbar-logo .bl-mark {
  height: 34px;
}

.sa-navbar-logo span {
  font-size: 17px;
  letter-spacing: -0.02em;
}

.sa-footer .bl-mark {
  height: 34px;
}

.sa-footer {
  margin-top: 0;
}

.sa-tpl-shop .sa-breadcrumbs {
  display: none;
}

/* ── Smaller screens ──────────────────────────────────────────────────────── */

@media (max-width: 1023px) {
  .bl-hero {
    padding-block: 72px 88px;
  }

  .bl-hero-grid,
  .bl-pricing-grid,
  .bl-faq-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 56px;
  }

  .bl-cells {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 639px) {
  .bl-section {
    padding-block: 80px;
  }

  .bl-head {
    margin-bottom: 40px;
  }

  .bl-hero-text {
    font-size: 17px;
  }

  .bl-actions .bl-btn {
    flex: 1 1 auto;
  }

  .bl-hero-mark {
    height: 80px;
    margin-bottom: 32px;
  }

  .bl-cells {
    grid-template-columns: minmax(0, 1fr);
  }

  .bl-cell {
    padding: 28px 24px 30px;
  }

  .bl-cell-title {
    margin-top: 28px;
  }

  .bl-plan {
    padding: 28px 24px;
  }

  .bl-qa-answer {
    padding-right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bl-mark-feather,
  .bl-mark-halo,
  .bl-mark-spark {
    animation: none;
  }
}