/* Shop — three Raven formats */

button.nav-link {
  font: inherit;
  border: none;
  cursor: pointer;
  background: none;
}

body.shop {
  background: var(--slate-50);
}

.shop-main {
  padding: 7.5rem 1.5rem 4rem;
}

.shop-intro {
  max-width: 42rem;
  margin: 0 auto 2.75rem;
  text-align: center;
}

.shop-intro h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.03em;
  color: var(--slate-900);
  margin: 0 0 0.75rem;
}

.shop-intro p {
  margin: 0;
  color: var(--slate-600);
  font-size: 1.08rem;
  line-height: 1.65;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  max-width: 1120px;
  margin: 0 auto;
}

.shop-card {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: 1.6rem 1.55rem 1.45rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.shop-card-kicker {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-500);
  margin: 0 0 0.4rem;
}

.shop-card h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--slate-900);
  margin: 0 0 0.35rem;
}

.shop-price {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--slate-900);
  margin: 0 0 0.85rem;
  letter-spacing: -0.03em;
}

.shop-price span {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--slate-600);
}

.shop-card > p {
  margin: 0 0 1rem;
  color: var(--slate-600);
  line-height: 1.6;
  font-size: 0.98rem;
}

.shop-includes {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  flex: 1;
}

.shop-includes li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.2rem;
  color: var(--slate-700);
  font-size: 0.95rem;
  line-height: 1.45;
}

.shop-includes li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--primary-600);
  font-weight: 700;
}

.shop-upgrade {
  margin: 0 0 1.15rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  background: var(--slate-50);
}

.shop-upgrade-row {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}

.shop-upgrade input {
  margin-top: 0.2rem;
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--primary-600);
}

.shop-upgrade label {
  font-weight: 650;
  color: var(--slate-900);
  font-size: 0.95rem;
}

.shop-upgrade-help {
  margin: 0.45rem 0 0 1.8rem;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--slate-600);
}

.shop-note {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  color: var(--slate-600);
}

.shop-banner {
  max-width: 1120px;
  margin: 0 auto 1.25rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--slate-200);
  color: var(--slate-700);
  text-align: center;
}

.shop-banner-ok {
  border-color: var(--accent-500);
  color: var(--slate-800);
}

.shop-downloads {
  max-width: 1120px;
  margin: 0 auto 1.75rem;
  padding: 1.25rem 1.35rem 1.35rem;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

.shop-downloads h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 0.4rem;
  color: var(--slate-900);
}

.shop-downloads > p {
  margin: 0 0 1rem;
  color: var(--slate-600);
  line-height: 1.55;
}

.shop-download-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.shop-download-list a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  text-decoration: none;
  color: var(--slate-900);
  font-weight: 650;
}

.shop-download-list a:hover {
  border-color: var(--primary-600);
}

.shop-download-list span {
  font-weight: 500;
  color: var(--slate-600);
  font-size: 0.9rem;
}

.shop-download-keep {
  word-break: break-all;
}

.shop-download-keep a {
  display: block;
  margin-top: 0.35rem;
  color: var(--primary-600);
}

.shop-auth-form {
  display: grid;
  gap: 0.45rem;
}

.shop-auth-form label {
  display: block;
  font-weight: 650;
  margin: 0 0 0.4rem;
  color: var(--slate-800);
}

.shop-auth-form input {
  width: 100%;
  box-sizing: border-box;
  min-height: 2.6rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  font: inherit;
  margin-bottom: 0.45rem;
}

.shop-auth-form .pill {
  border: none;
  cursor: pointer;
  font: inherit;
  width: 100%;
  margin-top: 0.35rem;
}

.shop-auth-toggle {
  display: flex;
  gap: 0.5rem;
  margin: 0 0 1rem;
}

.shop-auth-toggle button {
  border: 1px solid var(--slate-200);
  background: #fff;
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font: inherit;
  cursor: pointer;
}

.shop-auth-toggle button[aria-pressed="true"] {
  border-color: var(--primary-600);
  color: var(--primary-600);
  font-weight: 650;
}

body.auth-open {
  overflow: hidden;
}

.shop-card .pill,
.shop-card button.pill {
  width: 100%;
  border: none;
  cursor: pointer;
  font: inherit;
}

.shop-card .pill[hidden] {
  display: none;
}

.shop-card .pill[aria-disabled="true"] {
  opacity: 0.55;
  pointer-events: none;
  cursor: not-allowed;
}

.shop-footnote {
  max-width: 1120px;
  margin: 1.75rem auto 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--slate-600);
}

.checkout-dialog {
  max-width: min(520px, calc(100vw - 2rem));
}

.checkout-dialog-inner {
  padding-top: 2.5rem;
}

#checkout-embed {
  min-height: 12rem;
}

body.checkout-open {
  overflow: hidden;
}

@media (max-width: 960px) {
  .shop-grid {
    grid-template-columns: 1fr;
    max-width: 28rem;
  }
}
