/* Reusable components: buttons, store badges, cards, device frame, chips, specs, FAQ. */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 48px;
  padding: 0 var(--sp-5);
  border-radius: var(--r-md);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-on);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  background: var(--surface-hi);
}

.btn[aria-disabled="true"],
.btn:disabled {
  opacity: 0.75;
  cursor: not-allowed;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

/* Store badges */
.store-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
}

.store-note {
  font-size: var(--fs-small);
  color: var(--text-2);
}

.soon-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: 48px;
  padding: 0 var(--sp-4);
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-md);
  color: var(--text-2);
  font-weight: 500;
}

.soon-tag strong {
  color: var(--accent-text);
  font-weight: 600;
}

/* Cards */
.card {
  display: grid;
  align-content: start;
  gap: var(--sp-3);
  padding: var(--sp-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  min-width: 0;
}

.card p {
  color: var(--text-2);
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  background: var(--accent-subtle);
  color: var(--accent-text);
}

.card-icon svg {
  width: 22px;
  height: 22px;
}

.grid-3 {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.grid-4 {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
}

.ticks {
  list-style: none;
  display: grid;
  gap: var(--sp-2);
  color: var(--text-2);
  font-size: var(--fs-small);
}

.ticks li {
  display: flex;
  gap: var(--sp-2);
}

.ticks li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  margin-top: 0.6em;
  border-radius: 50%;
  background: var(--accent);
}

/* Device frames around real app screenshots (aspect comes from the img width/height) */
.device {
  width: min(100%, 280px);
  padding: 9px;
  background: var(--device);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-phone);
  box-shadow: 0 30px 80px -30px var(--glow);
}

.device img {
  width: 100%;
  height: auto;
  border-radius: calc(var(--r-phone) - 9px);
}

.device-tablet {
  width: min(100%, 460px);
  padding: 12px;
  border-radius: var(--r-tablet);
}

.device-tablet img {
  border-radius: calc(var(--r-tablet) - 12px);
}

/* Chips: effect names */
.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.chips li {
  padding: var(--sp-1) var(--sp-3);
  font-family: var(--font-mono);
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: var(--fs-small);
}

/* Spec rows */
.specs {
  display: grid;
  margin: 0;
  border-top: 1px solid var(--border);
}

.specs div {
  display: grid;
  grid-template-columns: minmax(8rem, 14rem) 1fr;
  gap: var(--sp-4);
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--border);
}

.specs dt {
  color: var(--text-2);
}

.specs dd {
  margin: 0;
}

@media (max-width: 520px) {
  .specs div {
    grid-template-columns: 1fr;
    gap: var(--sp-1);
  }
}

/* FAQ */
.faq {
  display: grid;
  gap: var(--sp-3);
  max-width: 48rem;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}

.faq summary {
  padding: var(--sp-4) var(--sp-5);
  font-weight: 600;
  cursor: pointer;
}

.faq details p {
  padding: 0 var(--sp-5) var(--sp-5);
  color: var(--text-2);
}
